From ae7c089ff88c9540b41750b7c330c61e5c1eaf6d Mon Sep 17 00:00:00 2001 From: rahmadiantio Date: Wed, 24 Apr 2024 14:47:17 +0700 Subject: [PATCH 01/10] add va aggregator --- Dockerfile | 4 +- Gemfile | 2 +- source/includes/static_va.md.erb | 198 +++++++++++++++---------------- source/layouts/layout.erb | 3 - 4 files changed, 102 insertions(+), 105 deletions(-) diff --git a/Dockerfile b/Dockerfile index efb59a3c..f6957e46 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ruby:2.6-slim +FROM ruby:3.0-slim WORKDIR /srv/slate @@ -8,7 +8,7 @@ VOLUME /srv/slate/source EXPOSE 4567 COPY Gemfile . -COPY Gemfile.lock . +# COPY Gemfile.lock . RUN apt-get update \ && apt-get install -y --no-install-recommends \ diff --git a/Gemfile b/Gemfile index 91a5e25c..ba382272 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,4 @@ -ruby '~> 2.5' +ruby '~> 3.0' source 'https://rubygems.org' # Middleman diff --git a/source/includes/static_va.md.erb b/source/includes/static_va.md.erb index e4b3c694..c379799d 100644 --- a/source/includes/static_va.md.erb +++ b/source/includes/static_va.md.erb @@ -282,24 +282,24 @@ trx_counter | Int | FALSE | -1/1 | Transaction counter to limit number of transa ### Response Parameters -Parameter | Type | Description ---------- | ---- | ----------- -status | Object | Status of response in Object `{code: , message: }` -amount | BigDecimal | Amount of VA transaction -va_number | String(20) | Generated VA number -id | String(36) | Unique VA ID -partner_user_id | String(255) | Your unique ID for specific user -bank_code | String(3) | Bank code for VA, see [VA Bank Code](https://api-docs.oyindonesia.com/#va-aggregator-bank-code-va-aggregator) -is_open | Boolean | True means VA number can accept any amount, False means VA number only accept the specified amount in the field amount -is_single_use | Boolean | True means that this VA should be closed/complete once there is a successful payment that is being made to this VA. -expiration_time | Long | Expiration time of VA on Unix timestamp in milliseconds, -1 means no expiration time. -va_status | String(16) | Status of VA, see [VA Status](https://api-docs.oyindonesia.com/#va-aggregator-status-va-aggregator) -username_display | String(255) | Customizable VA display name that will be seen by user, If empty willl be using partner username -trx_expiration_time | Long | Transaction expiration time on Unix timestamp in milliseconds, -1 means no expiration time. -partner_trx_id | String(255) | Partner unique Transaction ID of a VA -trx_counter | Int | Transaction counter to limit number of transaction that can be receive by va number, if empty will be use default value -1 for multiple use va, and 1 for single use va. If counter reach zero, va cannot be inquiry or accept payment. -counter_incoming_payment | Integer | Count total incoming payment of VA -full_name | String(255) | If `full_name` is needed when creating the transaction, the inputted `full_name` value at creation will be shown here +Parameter | Type | Nullable | Description +--------- | ---- | -------- | ----------- +status | Object | FALSE | Status of response in Object `{code: , message: }` +amount | BigDecimal | FALSE | Amount of VA transaction +va_number | String(20) | FALSE | Generated VA number +id | String(36) | FALSE | Unique VA ID +partner_user_id | String(255) | FALSE | Your unique ID for specific user +bank_code | String(3) | FALSE | Bank code for VA, see [VA Bank Code](https://api-docs.oyindonesia.com/#va-aggregator-bank-code-va-aggregator) +is_open | Boolean | FALSE | True means VA number can accept any amount, False means VA number only accept the specified amount in the field amount +is_single_use | Boolean | FALSE | True means that this VA should be closed/complete once there is a successful payment that is being made to this VA. +expiration_time | Long | FALSE | Expiration time of VA on Unix timestamp in milliseconds, -1 means no expiration time. +va_status | String(16) | FALSE | Status of VA, see [VA Status](https://api-docs.oyindonesia.com/#va-aggregator-status-va-aggregator) +username_display | String(255) | FALSE | Customizable VA display name that will be seen by user, If empty willl be using partner username +trx_expiration_time | Long | FALSE | Transaction expiration time on Unix timestamp in milliseconds, -1 means no expiration time. +partner_trx_id | String(255) | TRUE | Partner unique Transaction ID of a VA. This parameter will only be sent if end user fill the data +trx_counter | Int | FALSE | Transaction counter to limit number of transaction that can be receive by va number, if empty will be use default value -1 for multiple use va, and 1 for single use va. If counter reach zero, va cannot be inquiry or accept payment. +counter_incoming_payment | Integer | FALSE | Count total incoming payment of VA +full_name | String(255) | FALSE | If `full_name` is needed when creating the transaction, the inputted `full_name` value at creation will be shown here