| Age | Commit message (Collapse) | Author |
|
The share module has been migrated and renamed to
git.sr.ht/~shulhan/pakakeh.go.
|
|
The Timeout option affect how long the client wait for connect and waiting
for response.
|
|
While at it, change the code prefix from ResCodeXXX to StatusCodeXXX so
we can add another error codes later.
|
|
By returning 4xx error, client can return the correct error given by duitku
|
|
It allow the client to show error that comes from duitku
|
|
The golangci-lint is become unusable when building with Go tip and their
default run does not return any results.
This changes fix all code and comments reported by revive.
|
|
The idea is to allow the caller to know the Signature of request after
call to MerchantTxStatus and possibly log the whole request.
While at it, we change the method name to MerchantPaymentStatus and
the type from transactionStatus to PaymentStatus, and from
TxStatusResponse to PaymentStatusResponse.
|
|
This is to allow the MerchantInquiry API to be more customize able
instead of fixed, using specific merchant configuration.
While at it change the MerchantInquiry method parameter to pointer,
because to allow the caller receive filled Signature for audit.
|
|
The MerchantTxStatus method check the payment status by its orderID and
payment method.
Reference: https://docs.duitku.com/api/en/#check-transaction
|
|
The MerchantInquiry API request payment to the Duitku system (via virtual
account numbers, QRIS, e-wallet, and so on).
Ref: https://docs.duitku.com/api/en/#request-transaction
|
|
The MerchantPaymentMethod method return list of payment methods enabled
by merchant (your project).
|
|
This is to differentiate options between Merchant and Disbursement.
|
|
|
|
The actual response from Server does not return "disburseId", so we set
it in RtolTransfer to prevent 0 value.
|
|
The InquiryStatus get the status of previous Transfer.
Ref: https://docs.duitku.com/disbursement/en/#inquiry-status
|
|
Instead of using request and response from inquiry, pass the actual
Transfer type.
This is to minimize confusion and to allow the caller to log the request
on their side.
|
|
As long as the response body is valid, return it to caller and let them
check the response code manually.
This is to allow user to log the request and full response.
|
|
The Options method return the current client configuration.
|
|
The idea is to allow testing the client from other module without
using the provided APIs.
|
|
Instead of declaring the fixed prefix "/webapi/api" in the server URL,
define it in the path itself so the server URL can be cleanly mock up.
|
|
Since the call to inquiry/transfer modify the parameter fields, we
need to pass it as pointer so the caller can inspect or log the request
values.
|
|
|
|
The ClearingCallbackResponse contains fields that must be set in order
to response from ClearingTransfer callback.
|
|
The ClearingTransfer method do the clearing transfer using request and
response from Clearing Inquiry.
|
|
The type in request is always be an int.
|
|
The ClearingInquiry method is used to initiate the transfer for Clearing
using LLG, RTGS, H2H, or BI-FAST.
|
|
Since most methods are call to disbursement methods, adding Disbursement
in the method names not only make it longer but sligtly redundant.
|
|
This is to make documentation for the type that embed those types more
clear.
|
|
The RtolTransfer do the actual transfer to customer's bank account using
the request and response from RtolInquiry.
|
|
The RtolInquiry method get the information of the name of the account
owner of the transfer destination.
After getting this information, customers can determine whether the
purpose of such a transfer is in accordance with the intended or not.
If appropriate, the customer can proceed to the transfer process.
Ref: https://docs.duitku.com/disbursement/en/#transfer-online
|
|
This is to minimize the memory usage.
In the response struct we remove unused Data field.
|
|
The DisbursementCheckBalance return the current and effective user's
balance.
|
|
This is to make the consumer of the module able to mock the endpoint using
the known path.
|
|
Currently, the client provide API for fetching list of banks for
disbursement.
See https://docs.duitku.com/ for reference.
|