-
Notifications
You must be signed in to change notification settings - Fork 2
GetBankDefaults
PatrickLane edited this page Oct 29, 2014
·
2 revisions
The GetBankDefaults
function retrieves all default values used when creating new banks.
public WSResult2OfBankDefaults GetBankDefaults(string token)
Public Function GetBankDefaults(ByVal token As String) As WSResult2OfBankDefaults
Parameter | Type | Description |
---|---|---|
token | String | The session token retrieved during authentication. |
The following example loads a 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 )
{
String code = defaults.CurrencyCode;
String glCat = defaults.GLCategoryID;
String glSubCat = defaults.GLSubCategoryID;
String taxID = defaults.TaxID;
}
}
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
Dim code, glCat, glSubCat, taxID As String
code = defaults.CurrencyCode
glCat = defaults.GLCategoryID
glSubCat = defaults.GLSubCategoryID
taxID = defaults.TaxID
End If
End If