Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kachit committed Apr 9, 2022
1 parent 0ad493c commit faa698e
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,23 @@ type AccountsResource struct {
}

//GetBalances method - allow you to check your FasaPay account balance.
//
//Balance request is used to get the amount of balance in your account.
//
//Balance request only needs currency code of currency that you want to see. (IDR, USD)
//xml format for single balance request:
//
//Xml format for single balance request:
//
//<fasa_request id="1234567">
// <auth>
// <api_key>11123548cd3a5e5613325132112becf</api_key>
// <token>e910361e42dafdfd100b19701c2ef403858cab640fd699afc67b78c7603ddb1b</token>
// </auth>
// <balance>IDR</balance>
//</fasa_request>
//xml format for batch balances request:
//
//Xml format for batch balances request:
//
//<fasa_request id="1234567">
// <auth><!-- authentication tag. required on every request -->
// <api_key>11123548cd3a5e5613325132112becf</api_key>
Expand All @@ -70,6 +76,7 @@ type AccountsResource struct {
// <balance>IDR</balance>
// <balance>USD</balance>
//</fasa_request>
//
func (r *AccountsResource) GetBalances(currencies []CurrencyCode, ctx context.Context, attributes *RequestParamsAttributes) (*GetBalancesResponse, *http.Response, error) {
baseRequestParams := r.buildRequestParams(attributes)
requestParams := &GetBalancesRequest{baseRequestParams, currencies}
Expand All @@ -93,17 +100,23 @@ func (r *AccountsResource) GetBalances(currencies []CurrencyCode, ctx context.Co
}

//GetAccounts method - allow you to check specific FasaPay account, to indicate is it registered or not.
//
//Account request is used to get the information of certain FasaPay user by their account number.
//
//Account request only needs account number of FasaPay account that you want to see.
//basic xml format for single account request:
//
//Basic xml format for single account request:
//
//<fasa_request id="1234567">
// <auth>
// <api_key>11123548cd3a5e5613325132112becf</api_key>
// <token>e910361e42dafdfd100b19701c2ef403858cab640fd699afc67b78c7603ddb1b</token>
// </auth>
// <account>FP00001</account>
//</fasa_request>
//basic xml format for batch accounts request:
//
//Basic xml format for batch accounts request:
//
//<fasa_request id="1234567">
// <auth><!-- authentication tag. required on every request -->
// <api_key>11123548cd3a5e5613325132112becf</api_key>
Expand All @@ -112,6 +125,7 @@ func (r *AccountsResource) GetBalances(currencies []CurrencyCode, ctx context.Co
// <account>FP00001</account>
// <account>FP00002</account>
//</fasa_request>
//
func (r *AccountsResource) GetAccounts(accounts []string, ctx context.Context, attributes *RequestParamsAttributes) (*GetAccountsResponse, *http.Response, error) {
baseRequestParams := r.buildRequestParams(attributes)
requestParams := &GetAccountsRequest{baseRequestParams, accounts}
Expand Down

0 comments on commit faa698e

Please sign in to comment.