Feature/virtual account #29
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Short Description / Link to Ticket
This pull request adds support for managing virtual accounts in the ZaiPayment library. The main change is the introduction of a new resource,
VirtualAccount, which provides methods for creating, listing, updating, and closing virtual accounts via the API. The changes also include updates to the main library and response handling to integrate this new resource.Virtual Account resource integration:
require_relative 'zai_payment/resources/virtual_account'tolib/zai_payment.rband introduced a newvirtual_accountsmethod to the mainZaiPaymentmodule for accessing the virtual account resource. [1] [2]New resource implementation:
lib/zai_payment/resources/virtual_account.rbwith a newVirtualAccountclass that supports listing, showing, creating, updating (AKA names and account name), and closing virtual accounts, including input validation and API field mapping.Response handling update:
RESPONSE_DATA_KEYSinlib/zai_payment/response.rbto includevirtual_accounts, ensuring that API responses for virtual accounts are parsed correctly.Testing
Additional Notes