From 5a368720edafa5bf7448bc2e3516bef11b79a883 Mon Sep 17 00:00:00 2001 From: Kachit Date: Sat, 9 Apr 2022 20:48:55 +0300 Subject: [PATCH] fixes --- transfers.go | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/transfers.go b/transfers.go index b3531fa..e7f898a 100644 --- a/transfers.go +++ b/transfers.go @@ -179,8 +179,12 @@ type TransfersResource struct { *ResourceAbstract } -//CreateTransfer method - allow you to transfer fund from one account to another. With this command you may transfer any of the available currencies that FasaPay supports. This function also permits you to perform multiple (bulk) transfers. -//xml format of single transfer request: +//CreateTransfer method - allow you to transfer fund from one account to another. +//With this command you may transfer any of the available currencies that FasaPay supports. +//This function also permits you to perform multiple (bulk) transfers. +// +//Xml format of single transfer request: +// // // // 11123548cd3a5e5613325132112becf @@ -193,7 +197,9 @@ type TransfersResource struct { // standart operation // // -//xml format of batch transfer request: +// +//Xml format of batch transfer request: +// // // // 11123548cd3a5e5613325132112becf @@ -218,6 +224,7 @@ type TransfersResource struct { // // // +// func (r *TransfersResource) CreateTransfer(transfers []*CreateTransferRequestParams, ctx context.Context, attributes *RequestParamsAttributes) (*CreateTransferResponse, *http.Response, error) { err := r.validateTransferParams(transfers) if err != nil { @@ -246,7 +253,9 @@ func (r *TransfersResource) CreateTransfer(transfers []*CreateTransferRequestPar //GetHistory method - allow you to receive history transaction of your FasaPay account. this command has many additional parameter to filter the response like date range, currencies, type of transaction, account target, etc. //Request history does not need any parameter to get 10 latest transactions -//basic xml format for history request: +// +//Basic xml format for history request: +// // // // 11123548cd3a5e5613325132112becf @@ -262,6 +271,7 @@ func (r *TransfersResource) CreateTransfer(transfers []*CreateTransferRequestPar // 5 // // +// func (r *TransfersResource) GetHistory(history *GetHistoryRequestParams, ctx context.Context, attributes *RequestParamsAttributes) (*GetHistoryResponse, *http.Response, error) { baseRequestParams := r.buildRequestParams(attributes) requestParams := &GetHistoryRequest{baseRequestParams, history} @@ -285,12 +295,19 @@ func (r *TransfersResource) GetHistory(history *GetHistoryRequestParams, ctx con } //GetDetails method - allow you to receive detail information of specific transaction. You can include more than one of this command in single request. +// //Detail-Request is used to get the detailed transaction information. +// //Detail-Request only needs BATCHNUMBER of transactions that you want to see. +// //Detail-Request can also use this parameter to search for specific transaction: +// //ref, REF parameter used to search for specific fp_merchant_ref string that was saved by FasaPay during Transaction using SCI +// //note, NOTE Parameter used to search for specific note string that was saved by FasaPay During Transaction. -//basic xml format for simple detail request: +// +//Xml format for simple detail request: +// // // // 11123548cd3a5e5613325132112becf @@ -298,7 +315,9 @@ func (r *TransfersResource) GetHistory(history *GetHistoryRequestParams, ctx con // // TR2012092712345 // -//basic xml format for simple detail request: +// +//Xml format for simple detail request: +// // // // 11123548cd3a5e5613325132112becf @@ -310,6 +329,7 @@ func (r *TransfersResource) GetHistory(history *GetHistoryRequestParams, ctx con // BL12345 // Pembayaran // +// func (r *TransfersResource) GetDetails(details []GetDetailsDetailParamsInterface, ctx context.Context, attributes *RequestParamsAttributes) (*GetDetailsResponse, *http.Response, error) { baseRequestParams := r.buildRequestParams(attributes) requestParams := &GetDetailsRequest{baseRequestParams, details}