-
Notifications
You must be signed in to change notification settings - Fork 2
CheckBankDefaultsValidity
PatrickLane edited this page Oct 29, 2014
·
2 revisions
The CheckBankDefaultsValidity
function indicates whether the bank defaults currently saved in the system are valid or not. They could be invalid following an import which changed all GL categories and tax codes for example.
This way, it is possible to determine whether the defaults are correct and can be used to create new codes or need to be adjusted with the GetBankDefaults
/SaveBankDefaults
methods.
public WSResult2OfBoolean CheckBankDefaultsValidity(string token)
Public Function CheckBankDefaultsValidity(ByVal token As String) As WSResult2OfBoolean
Parameter | Type | Description |
---|---|---|
token | String | The session token retrieved during authentication. |
The following example checks the validity of the current bank defaults:
Integration ws = new Integration();
String auth = ws.Login(entityID, partnerKey, userKey);
if( auth != null )
{
WSResult2OfBoolean validity = this.ws.CheckBankDefaultsValidity(this.auth);
// etc.
}
Dim ws As New Integration_1_1
Dim auth As String = ws.Login(entityID, partnerKey, userKey)
If (Not Me.auth Is Nothing) Then
Dim validity As WSResult2OfBoolean = Me.ws.CheckBankDefaultsValidity(Me.auth)
' etc.
End If