SaveBankDefaults - accountsIQ/API-Wiki GitHub Wiki
The SaveBankDefaults
function validates and modifies the bank defaults.
public WSResultStatus SaveBankDefaults(string token, BankDefaults bankDefaults)
Public Function SaveBankDefaults(ByVal token As String, ByVak bankDefaults AS BankDefaults) As WSResultStatus
Parameter | Type | Description |
---|---|---|
token | String | The session token retrieved during authentication. |
bankDefaults | BankDefaults | The modified bank defaults to save. |
The following example loads and then modifies the current bank defaults:
Integration ws = new Integration();
String auth = ws.Login(entityID, partnerKey, userKey);
if( auth != null )
{
WSResult2OfBankDefaults defaults = this.ws.GetBankDefaults(this.auth);
if( defaults.Status == OperationStatus.SUCCESS )
{
defaults.TaxID = "V01";
WSResultStatus result = this.ws.SaveBankDefaults(this.auth, defaults);
if( result.Status == OperationStatus.SUCCESS )
{
// SUCCESS
}
else
{
// FAILURE
}
}
}
Dim ws As New Integration_1_1
Dim auth As String = ws.Login(entityID, partnerKey, userKey)
If (Not Me.auth Is Nothing) Then
Dim defaults As WSResult2OfBankDefaults = Me.ws.GetBankDefaults(Me.auth)
If (defaults.Status = OperationStatus.Success) Then
defaults.TaxID = "V01"
Dim result AS WSResultStatus = Me.ws.SaveBankDefaults(Me.auth, defaults)
If ( result.Status = OperationStatus.Success ) Then
' SUCCESS
Else
' FAILURE
End If
End If
End If