genesis_ruby 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +31 -0
- data/Gemfile.lock +50 -41
- data/README.md +20 -0
- data/VERSION +1 -1
- data/lib/genesis_ruby/api/constants/transactions/parameters/non_financial/billing_api/order_by_fields.rb +33 -0
- data/lib/genesis_ruby/api/constants/transactions/parameters/non_financial/billing_api/response_fields.rb +67 -0
- data/lib/genesis_ruby/api/constants/transactions/parameters/non_financial/billing_api/transaction_types.rb +48 -0
- data/lib/genesis_ruby/api/constants/transactions/parameters/non_financial/sort_directions.rb +24 -0
- data/lib/genesis_ruby/api/constants/transactions/parameters/online_banking/payment_types.rb +3 -0
- data/lib/genesis_ruby/api/constants/transactions/parameters/refund/credit_reason_indicators.rb +30 -0
- data/lib/genesis_ruby/api/constants/transactions/parameters/refund/ticket_change_indicators.rb +24 -0
- data/lib/genesis_ruby/api/constants/transactions.rb +5 -0
- data/lib/genesis_ruby/api/mixins/requests/financial/bank_attributes.rb +26 -0
- data/lib/genesis_ruby/api/mixins/requests/financial/cards/installment_attributes.rb +18 -0
- data/lib/genesis_ruby/api/mixins/requests/non_financial/billing_api/sort_attributes.rb +18 -0
- data/lib/genesis_ruby/api/mixins/requests/non_financial/date_attributes.rb +64 -0
- data/lib/genesis_ruby/api/mixins/requests/non_financial/paging_attributes.rb +33 -0
- data/lib/genesis_ruby/api/mixins/requests/restricted_setter.rb +18 -0
- data/lib/genesis_ruby/api/request.rb +21 -1
- data/lib/genesis_ruby/api/requests/base/graphql.rb +60 -0
- data/lib/genesis_ruby/api/requests/base/versioned.rb +88 -0
- data/lib/genesis_ruby/api/requests/financial/capture.rb +6 -3
- data/lib/genesis_ruby/api/requests/financial/cards/authorize.rb +22 -19
- data/lib/genesis_ruby/api/requests/financial/cards/authorize3d.rb +26 -23
- data/lib/genesis_ruby/api/requests/financial/cards/sale.rb +22 -19
- data/lib/genesis_ruby/api/requests/financial/cards/sale3d.rb +26 -23
- data/lib/genesis_ruby/api/requests/financial/online_banking_payments/banco_do_brasil.rb +60 -0
- data/lib/genesis_ruby/api/requests/financial/online_banking_payments/eps.rb +47 -0
- data/lib/genesis_ruby/api/requests/financial/online_banking_payments/idebit/pay_in.rb +55 -0
- data/lib/genesis_ruby/api/requests/financial/online_banking_payments/idebit/pay_out.rb +28 -0
- data/lib/genesis_ruby/api/requests/financial/online_banking_payments/wechat.rb +53 -0
- data/lib/genesis_ruby/api/requests/financial/refund.rb +32 -12
- data/lib/genesis_ruby/api/requests/financial/sdd/recurring/init_recurring_sale.rb +23 -0
- data/lib/genesis_ruby/api/requests/financial/sdd/recurring/recurring_sale.rb +28 -0
- data/lib/genesis_ruby/api/requests/financial/sdd/refund.rb +26 -0
- data/lib/genesis_ruby/api/requests/financial/sdd/sale.rb +61 -0
- data/lib/genesis_ruby/api/requests/financial/wallets/alipay.rb +49 -0
- data/lib/genesis_ruby/api/requests/non_financial/billing_api/transactions.rb +203 -0
- data/lib/genesis_ruby/api/requests/non_financial/installments/fetch.rb +59 -0
- data/lib/genesis_ruby/api/requests/non_financial/installments/show.rb +58 -0
- data/lib/genesis_ruby/api/requests/non_financial/reconcile/date_range.rb +2 -50
- data/lib/genesis_ruby/builder.rb +7 -0
- data/lib/genesis_ruby/builders/graphql.rb +118 -0
- data/lib/genesis_ruby/builders/json.rb +30 -0
- data/lib/genesis_ruby/configuration.rb +11 -2
- data/lib/genesis_ruby/dependencies.rb +3 -0
- data/lib/genesis_ruby/network/adapter/net_http_adapter.rb +22 -6
- data/lib/genesis_ruby/network/base_network.rb +1 -14
- data/lib/genesis_ruby/parser.rb +3 -0
- data/lib/genesis_ruby/parsers/json.rb +18 -0
- data/lib/genesis_ruby/utils/formatters/response/formats/timestamp.rb +1 -1
- data/lib/genesis_ruby/utils/options/api_config.rb +28 -0
- data/lib/genesis_ruby/utils/options/network_adapter_config.rb +49 -14
- data/lib/genesis_ruby/utils/transactions/financial_types.rb +1 -1
- data/lib/genesis_ruby/utils/transactions/references/refundable_types.rb +1 -1
- data/lib/genesis_ruby/utils/transactions/wpf_types.rb +1 -1
- data/lib/genesis_ruby/version.rb +1 -1
- metadata +32 -3
- /data/lib/genesis_ruby/api/requests/financial/wallets/{pay_pay.rb → pay_pal.rb} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f03e064990c5ab2c2f8d128db6cdda17ffb306ab6b945dbec7e66e28c9a40ebc
|
4
|
+
data.tar.gz: 8aadefd87afbfb72e608fa702161a0ec5653397cc2a3e31f480004d631ae8985
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdee942af8926d926df609438829638c0bf71b404e03b85e9614e30e252d11a300f268aa6d12936ce19403898292556c631a3e05043941b30a6701378a6d4a0c
|
7
|
+
data.tar.gz: 2f2bcfd52842fdf936589908a8d82b6dc97bfd928363cf663a83eebc6d2dad40067e6de916150428c919d6f9cd4ec195a9487ecc41b8626d0173726f204b6a09
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,34 @@
|
|
1
|
+
0.2.3
|
2
|
+
-----
|
3
|
+
**Features**:
|
4
|
+
|
5
|
+
* Added Billing API Support
|
6
|
+
* Added Alipay transaction request support
|
7
|
+
* Added the following SDD (Sepa Direct Debit) transaction requests support
|
8
|
+
* SDD Sale
|
9
|
+
* SDD Init Recurring Sale
|
10
|
+
* SDD Refund
|
11
|
+
* SDD Recurring Sale
|
12
|
+
* Added Spei payment type support to Online Banking PayIn
|
13
|
+
* Added EPS transaction request support
|
14
|
+
* Added WeChat transaction request support
|
15
|
+
* Added Banco Do Brasil transaction request support
|
16
|
+
* Added iDebit PayIn and PayOut transaction requests support
|
17
|
+
|
18
|
+
0.2.2
|
19
|
+
-----
|
20
|
+
**Features**:
|
21
|
+
|
22
|
+
* Added Installments API services support
|
23
|
+
* Added Installments attributes support to the following transaction requests:
|
24
|
+
* Authorize
|
25
|
+
* Authorize 3D
|
26
|
+
* Capture
|
27
|
+
* Sale
|
28
|
+
* Sale 3D
|
29
|
+
* Refund
|
30
|
+
* Added Level 3 Travel Data attributes support to Refund transaction request
|
31
|
+
|
1
32
|
0.2.1
|
2
33
|
-----
|
3
34
|
**Features**:
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
genesis_ruby (0.2.
|
4
|
+
genesis_ruby (0.2.3)
|
5
5
|
net-http (~> 0.3.2)
|
6
6
|
nokogiri (~> 1.14)
|
7
7
|
|
@@ -10,15 +10,15 @@ GEM
|
|
10
10
|
specs:
|
11
11
|
addressable (2.8.7)
|
12
12
|
public_suffix (>= 2.0.2, < 7.0)
|
13
|
-
ast (2.4.
|
13
|
+
ast (2.4.3)
|
14
14
|
base64 (0.2.0)
|
15
|
-
bigdecimal (3.1.
|
16
|
-
concurrent-ruby (1.3.
|
15
|
+
bigdecimal (3.1.9)
|
16
|
+
concurrent-ruby (1.3.5)
|
17
17
|
crack (1.0.0)
|
18
18
|
bigdecimal
|
19
19
|
rexml
|
20
|
-
csv (3.3.
|
21
|
-
diff-lcs (1.
|
20
|
+
csv (3.3.3)
|
21
|
+
diff-lcs (1.6.1)
|
22
22
|
faker (2.23.0)
|
23
23
|
i18n (>= 1.8.11, < 2)
|
24
24
|
faraday (2.8.1)
|
@@ -26,20 +26,21 @@ GEM
|
|
26
26
|
faraday-net_http (>= 2.0, < 3.1)
|
27
27
|
ruby2_keywords (>= 0.0.4)
|
28
28
|
faraday-net_http (3.0.2)
|
29
|
-
faraday-retry (2.
|
29
|
+
faraday-retry (2.3.1)
|
30
30
|
faraday (~> 2.0)
|
31
31
|
gitlab (4.20.1)
|
32
32
|
httparty (~> 0.20)
|
33
33
|
terminal-table (>= 1.5.1)
|
34
|
-
hashdiff (1.1.
|
35
|
-
httparty (0.
|
34
|
+
hashdiff (1.1.2)
|
35
|
+
httparty (0.23.1)
|
36
36
|
csv
|
37
37
|
mini_mime (>= 1.0.0)
|
38
38
|
multi_xml (>= 0.5.2)
|
39
|
-
i18n (1.14.
|
39
|
+
i18n (1.14.7)
|
40
40
|
concurrent-ruby (~> 1.0)
|
41
|
-
json (2.
|
42
|
-
language_server-protocol (3.17.0.
|
41
|
+
json (2.10.2)
|
42
|
+
language_server-protocol (3.17.0.4)
|
43
|
+
lint_roller (1.1.0)
|
43
44
|
mini_mime (1.1.5)
|
44
45
|
mini_portile2 (2.8.8)
|
45
46
|
multi_xml (0.6.0)
|
@@ -50,39 +51,40 @@ GEM
|
|
50
51
|
nokogiri (1.15.7)
|
51
52
|
mini_portile2 (~> 2.8.2)
|
52
53
|
racc (~> 1.4)
|
53
|
-
octokit (
|
54
|
+
octokit (9.2.0)
|
54
55
|
faraday (>= 1, < 3)
|
55
56
|
sawyer (~> 0.9)
|
56
57
|
parallel (1.26.3)
|
57
|
-
parser (3.3.
|
58
|
+
parser (3.3.7.4)
|
58
59
|
ast (~> 2.4.1)
|
59
60
|
racc
|
60
|
-
|
61
|
+
prism (1.4.0)
|
62
|
+
pronto (0.11.3)
|
61
63
|
gitlab (>= 4.4.0, < 5.0)
|
62
64
|
httparty (>= 0.13.7, < 1.0)
|
63
|
-
octokit (>= 4.7.0, <
|
65
|
+
octokit (>= 4.7.0, < 10.0)
|
64
66
|
rainbow (>= 2.2, < 4.0)
|
65
67
|
rexml (>= 3.2.5, < 4.0)
|
66
68
|
rugged (>= 0.23.0, < 2.0)
|
67
69
|
thor (>= 0.20.3, < 2.0)
|
68
|
-
pronto-rubocop (0.11.
|
70
|
+
pronto-rubocop (0.11.6)
|
69
71
|
pronto (~> 0.11.0)
|
70
72
|
rubocop (>= 0.63.1, < 2.0)
|
71
73
|
public_suffix (5.1.1)
|
72
74
|
racc (1.8.1)
|
73
|
-
rack (2.2.
|
75
|
+
rack (2.2.13)
|
74
76
|
rack-protection (3.2.0)
|
75
77
|
base64 (>= 0.1.0)
|
76
78
|
rack (~> 2.2, >= 2.2.4)
|
77
79
|
rainbow (3.1.1)
|
78
80
|
rake (13.2.1)
|
79
|
-
regexp_parser (2.
|
80
|
-
rexml (3.
|
81
|
+
regexp_parser (2.10.0)
|
82
|
+
rexml (3.4.1)
|
81
83
|
rspec (3.13.0)
|
82
84
|
rspec-core (~> 3.13.0)
|
83
85
|
rspec-expectations (~> 3.13.0)
|
84
86
|
rspec-mocks (~> 3.13.0)
|
85
|
-
rspec-core (3.13.
|
87
|
+
rspec-core (3.13.3)
|
86
88
|
rspec-support (~> 3.13.0)
|
87
89
|
rspec-expectations (3.13.3)
|
88
90
|
diff-lcs (>= 1.2.0, < 2.0)
|
@@ -90,28 +92,33 @@ GEM
|
|
90
92
|
rspec-mocks (3.13.2)
|
91
93
|
diff-lcs (>= 1.2.0, < 2.0)
|
92
94
|
rspec-support (~> 3.13.0)
|
93
|
-
rspec-support (3.13.
|
95
|
+
rspec-support (3.13.2)
|
94
96
|
rspec_junit_formatter (0.6.0)
|
95
97
|
rspec-core (>= 2, < 4, != 2.12.0)
|
96
|
-
rubocop (1.
|
98
|
+
rubocop (1.75.1)
|
97
99
|
json (~> 2.3)
|
98
|
-
language_server-protocol (
|
100
|
+
language_server-protocol (~> 3.17.0.2)
|
101
|
+
lint_roller (~> 1.1.0)
|
99
102
|
parallel (~> 1.10)
|
100
103
|
parser (>= 3.3.0.2)
|
101
104
|
rainbow (>= 2.2.2, < 4.0)
|
102
|
-
regexp_parser (>= 2.
|
103
|
-
rubocop-ast (>= 1.
|
105
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
106
|
+
rubocop-ast (>= 1.43.0, < 2.0)
|
104
107
|
ruby-progressbar (~> 1.7)
|
105
|
-
unicode-display_width (>= 2.4.0, <
|
106
|
-
rubocop-ast (1.
|
107
|
-
parser (>= 3.3.
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
rubocop (~> 1.
|
112
|
-
rubocop-
|
108
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
109
|
+
rubocop-ast (1.44.0)
|
110
|
+
parser (>= 3.3.7.2)
|
111
|
+
prism (~> 1.4)
|
112
|
+
rubocop-capybara (2.22.1)
|
113
|
+
lint_roller (~> 1.1)
|
114
|
+
rubocop (~> 1.72, >= 1.72.1)
|
115
|
+
rubocop-factory_bot (2.27.1)
|
116
|
+
lint_roller (~> 1.1)
|
117
|
+
rubocop (~> 1.72, >= 1.72.1)
|
118
|
+
rubocop-faker (1.3.0)
|
113
119
|
faker (>= 2.12.0)
|
114
|
-
|
120
|
+
lint_roller (~> 1.1)
|
121
|
+
rubocop (>= 1.72.1)
|
115
122
|
rubocop-rspec (2.31.0)
|
116
123
|
rubocop (~> 1.40)
|
117
124
|
rubocop-capybara (~> 2.17)
|
@@ -121,7 +128,7 @@ GEM
|
|
121
128
|
rubocop (~> 1.61)
|
122
129
|
ruby-progressbar (1.13.0)
|
123
130
|
ruby2_keywords (0.0.5)
|
124
|
-
rugged (1.
|
131
|
+
rugged (1.9.0)
|
125
132
|
sawyer (0.9.2)
|
126
133
|
addressable (>= 2.3.5)
|
127
134
|
faraday (>= 0.17.3, < 3)
|
@@ -130,13 +137,15 @@ GEM
|
|
130
137
|
rack (~> 2.2, >= 2.2.4)
|
131
138
|
rack-protection (= 3.2.0)
|
132
139
|
tilt (~> 2.0)
|
133
|
-
terminal-table (
|
134
|
-
unicode-display_width (>= 1.1.1, <
|
140
|
+
terminal-table (4.0.0)
|
141
|
+
unicode-display_width (>= 1.1.1, < 4)
|
135
142
|
thor (1.3.2)
|
136
|
-
tilt (2.
|
137
|
-
unicode-display_width (
|
143
|
+
tilt (2.6.0)
|
144
|
+
unicode-display_width (3.1.4)
|
145
|
+
unicode-emoji (~> 4.0, >= 4.0.4)
|
146
|
+
unicode-emoji (4.0.4)
|
138
147
|
uri (1.0.3)
|
139
|
-
webmock (3.
|
148
|
+
webmock (3.25.1)
|
140
149
|
addressable (>= 2.8.0)
|
141
150
|
crack (>= 0.3.2)
|
142
151
|
hashdiff (>= 0.4.0, < 2.0.0)
|
data/README.md
CHANGED
@@ -1011,6 +1011,7 @@ GenesisRuby::Api::Requests::Financial::Mobile::ApplePay
|
|
1011
1011
|
GenesisRuby::Api::Requests::Financial::Mobile::GooglePay
|
1012
1012
|
|
1013
1013
|
## Wallets
|
1014
|
+
GenesisRuby::Api::Requests::Financial::Wallets::Alipay
|
1014
1015
|
GenesisRuby::Api::Requests::Financial::Wallets::PayPal
|
1015
1016
|
|
1016
1017
|
## Cash Payments
|
@@ -1031,28 +1032,47 @@ GenesisRuby::Api::Requests::Wpf::Create
|
|
1031
1032
|
GenesisRuby::Api::Requests::Wpf::Reconcile
|
1032
1033
|
|
1033
1034
|
# Online Banking Payments
|
1035
|
+
GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::BancoDoBrasil
|
1034
1036
|
GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Bancomer
|
1035
1037
|
GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Bradesco
|
1036
1038
|
GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Davivienda
|
1039
|
+
GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Eps
|
1037
1040
|
GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Itau
|
1038
1041
|
GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Pse
|
1039
1042
|
GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::RapiPago
|
1040
1043
|
GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Santander
|
1041
1044
|
GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Webpay
|
1045
|
+
GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Wechat
|
1042
1046
|
# PayIn
|
1043
1047
|
GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::OnlineBanking::PayIn
|
1044
1048
|
# PayOut
|
1045
1049
|
GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::OnlineBanking::PayOut
|
1050
|
+
# iDebit
|
1051
|
+
GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Idebit::PayIn
|
1052
|
+
GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Idebit::PayOut
|
1053
|
+
|
1054
|
+
# SDD
|
1055
|
+
GenesisRuby::Api::Requests::Financial::Sdd::Sale
|
1056
|
+
GenesisRuby::Api::Requests::Financial::Sdd::Recurring::InitRecurringSale
|
1046
1057
|
|
1047
1058
|
# References
|
1048
1059
|
GenesisRuby::Api::Requests::Financial::Capture
|
1049
1060
|
GenesisRuby::Api::Requests::Financial::Void
|
1050
1061
|
GenesisRuby::Api::Requests::Financial::Refund
|
1062
|
+
GenesisRuby::Api::Requests::Financial::Sdd::Refund
|
1063
|
+
GenesisRuby::Api::Requests::Financial::Sdd::Recurring::RecurringSale
|
1051
1064
|
|
1052
1065
|
# Non Financial
|
1053
1066
|
## Reconcile
|
1054
1067
|
GenesisRuby::Api::Requests::NonFinancial::Reconcile::Transaction
|
1055
1068
|
GenesisRuby::Api::Requests::NonFinancial::Reconcile::DateRange
|
1069
|
+
|
1070
|
+
## Installments
|
1071
|
+
GenesisRuby::Api::Requests::NonFinancial::Installments::Fetch
|
1072
|
+
|
1073
|
+
## Billing API
|
1074
|
+
GenesisRuby::Api::Requests::NonFinancial::BillingApi::Transactions
|
1075
|
+
|
1056
1076
|
```
|
1057
1077
|
|
1058
1078
|
### Manual initialization
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.3
|
@@ -0,0 +1,33 @@
|
|
1
|
+
module GenesisRuby
|
2
|
+
module Api
|
3
|
+
module Constants
|
4
|
+
module Transactions
|
5
|
+
module Parameters
|
6
|
+
module NonFinancial
|
7
|
+
module BillingApi
|
8
|
+
# Billing API Order By Field allowed values
|
9
|
+
class OrderByFields
|
10
|
+
|
11
|
+
extend Mixins::Constants::Common
|
12
|
+
|
13
|
+
BILLING_STATEMENT = 'billingStatement'.freeze
|
14
|
+
TRANSACTION_DATE = 'transactionDate'.freeze
|
15
|
+
TRANSACTION_CURRENCY = 'transactionCurrency'.freeze
|
16
|
+
TRANSACTION_AMOUNT = 'transactionAmount'.freeze
|
17
|
+
EXCHANGE_RATE = 'exchangeRate'.freeze
|
18
|
+
BILLING_AMOUNT = 'billingAmount'.freeze
|
19
|
+
TRANSACTION_FEE_AMOUNT = 'transactionFeeAmount'.freeze
|
20
|
+
COMMISSION_PERCENT = 'commissionPercent'.freeze
|
21
|
+
COMMISSION_AMOUNT = 'commissionAmount'.freeze
|
22
|
+
INTERCHANGE_FEE = 'interchangeFee'.freeze
|
23
|
+
REGION = 'region'.freeze
|
24
|
+
SETTLEMENT_STATUS = 'settlementStatus'.freeze
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
module GenesisRuby
|
2
|
+
module Api
|
3
|
+
module Constants
|
4
|
+
module Transactions
|
5
|
+
module Parameters
|
6
|
+
module NonFinancial
|
7
|
+
module BillingApi
|
8
|
+
# Billing API Response Fields allowed values
|
9
|
+
class ResponseFields
|
10
|
+
|
11
|
+
extend Mixins::Constants::Common
|
12
|
+
|
13
|
+
ID = 'id'.freeze
|
14
|
+
BILLING_STATEMENT = 'billingStatement'.freeze
|
15
|
+
UNIQUE_ID = 'uniqueId'.freeze
|
16
|
+
ARN = 'arn'.freeze
|
17
|
+
TRANSACTION_DATE = 'transactionDate'.freeze
|
18
|
+
TRANSACTION_TYPE = 'transactionType'.freeze
|
19
|
+
TRANSACTION_CURRENCY = 'transactionCurrency'.freeze
|
20
|
+
TRANSACTION_AMOUNT = 'transactionAmount'.freeze
|
21
|
+
EXCHANGE_RATE = 'exchangeRate'.freeze
|
22
|
+
BILLING_CURRENCY = 'billingCurrency'.freeze
|
23
|
+
BILLING_AMOUNT = 'billingAmount'.freeze
|
24
|
+
TRANSACTION_FEE_CURRENCY = 'transactionFeeCurrency'.freeze
|
25
|
+
TRANSACTION_FEE_AMOUNT = 'transactionFeeAmount'.freeze
|
26
|
+
TRANSACTION_FEE_CHARGED_ON_BILLING_STATEMENT = 'transactionFeeChargedOnBillingStatement'.freeze
|
27
|
+
COMMISSION_PERCENT = 'commissionPercent'.freeze
|
28
|
+
COMMISSION_AMOUNT = 'commissionAmount'.freeze
|
29
|
+
INTERCHANGE_FEE = 'interchangeFee'.freeze
|
30
|
+
INTERCHANGE_CURRENCY = 'interchangeCurrency'.freeze
|
31
|
+
IS_INTERCHANGEPLUSPLUS = 'isInterchangeplusplus'.freeze
|
32
|
+
INTERCHANGEPLUSPLUS_CHARGED_ON_BILLING_STATEMENT = 'interchangeplusplusChargedOnBillingStatement'.freeze
|
33
|
+
SCHEME_FEE = 'schemeFee'.freeze
|
34
|
+
SCHEME_FEE_CURRENCY = 'schemeFeeCurrency'.freeze
|
35
|
+
STANDARD_DEBIT_CARD_RATE = 'standardDebitCardRate'.freeze
|
36
|
+
GST_AMOUNT = 'gstAmount'.freeze
|
37
|
+
GST_RATE = 'gstRate'.freeze
|
38
|
+
VAT_AMOUNT = 'vatAmount'.freeze
|
39
|
+
VAT_RATE = 'vatRate'.freeze
|
40
|
+
TERMINAL_NAME = 'terminalName'.freeze
|
41
|
+
REGION = 'region'.freeze
|
42
|
+
SETTLEMENT_BILLING_STATEMENTS = 'settlementBillingStatements'.freeze
|
43
|
+
SETTLEMENT_DATES = 'settlementDates'.freeze
|
44
|
+
SETTLEMENT_STATUS = 'settlementStatus'.freeze
|
45
|
+
MERCHANT_ID = 'merchantId'.freeze
|
46
|
+
MERCHANT_NAME = 'merchantName'.freeze
|
47
|
+
MERCHANT_TRANSACTION_ID = 'merchantTransactionId'.freeze
|
48
|
+
MASTER_ACCOUNT_NAME = 'masterAccountName'.freeze
|
49
|
+
VALUE_DATE = 'valueDate'.freeze
|
50
|
+
DOCUMENT_ID = 'documentId'.freeze
|
51
|
+
REFERENCE_ID = 'referenceId'.freeze
|
52
|
+
AUTH_CODE = 'authCode'.freeze
|
53
|
+
PAYMENT_TYPE = 'paymentType'.freeze
|
54
|
+
CARD_BRAND = 'cardBrand'.freeze
|
55
|
+
CARD_NUMBER = 'cardNumber'.freeze
|
56
|
+
CARD_HOLDER = 'cardHolder'.freeze
|
57
|
+
CARD_TYPE = 'cardType'.freeze
|
58
|
+
CARD_SUBTYPE = 'cardSubtype'.freeze
|
59
|
+
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
module GenesisRuby
|
2
|
+
module Api
|
3
|
+
module Constants
|
4
|
+
module Transactions
|
5
|
+
module Parameters
|
6
|
+
module NonFinancial
|
7
|
+
module BillingApi
|
8
|
+
# Billing API Transaction Types allowed values
|
9
|
+
class TransactionTypes
|
10
|
+
|
11
|
+
extend Mixins::Constants::Common
|
12
|
+
|
13
|
+
AUTHORISATION_APPROVED = 'Authorisation Approved'.freeze
|
14
|
+
AUTHORISATION_DECLINED = 'Authorisation Declined'.freeze
|
15
|
+
SETTLEMENT_APPROVED = 'Settlement Approved'.freeze
|
16
|
+
SETTLEMENT_DECLINED = 'Settlement Declined'.freeze
|
17
|
+
SALE_APPROVED = 'Sale Approved'.freeze
|
18
|
+
SALE_DECLINED = 'Sale Declined'.freeze
|
19
|
+
REFUND_APPROVED = 'Refund Approved'.freeze
|
20
|
+
REFUND_DECLINED = 'Refund Declined'.freeze
|
21
|
+
PAYOUT_APPROVED = 'Payout Approved'.freeze
|
22
|
+
PAYOUT_DECLINED = 'Payout Declined'.freeze
|
23
|
+
CFT_OTHER_APPROVED = 'CFT Other Approved'.freeze
|
24
|
+
CFT_DECLINED = 'CFT Declined'.freeze
|
25
|
+
CHARGEBACK = 'Chargeback'.freeze
|
26
|
+
CHARGEBACK_REVERSAL = 'Chargeback Reversal'.freeze
|
27
|
+
CHARGEBACK_REPRESENTMENT = 'Chargeback Representment'.freeze
|
28
|
+
RETRIEVAL_REQUEST = 'Retrieval Request'.freeze
|
29
|
+
VOID = 'Void'.freeze
|
30
|
+
VISA_EU_INTRAREGIONAL_FRAUD_CHARGEBACK = 'Visa EU Intraregional Fraud Chargeback'.freeze
|
31
|
+
MASTERCARD_EU_REGION_CHARGEBACK = 'MasterCard EU Region Chargeback'.freeze
|
32
|
+
SECOND_CHARGEBACK = 'Second Chargeback'.freeze
|
33
|
+
CFT_VISA_APPROVED = 'CFT Visa Approved'.freeze
|
34
|
+
CFT_MASTERCARD_APPROVED = 'CFT MasterCard Approved'.freeze
|
35
|
+
VISA_RDR = 'Visa RDR'.freeze
|
36
|
+
RDR_REVERSAL = 'RDR Reversal'.freeze
|
37
|
+
GATEWAY_TRANSACTION_FEE = 'Gateway Transaction Fee'.freeze
|
38
|
+
RISK_MANAGEMENT_TRANSACTION_FEE = 'Risk Management Transaction Fee'.freeze
|
39
|
+
FRAUD_ENGINE_TRANSACTION_FEE = 'Fraud Engine Transaction Fee'.freeze
|
40
|
+
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module GenesisRuby
|
2
|
+
module Api
|
3
|
+
module Constants
|
4
|
+
module Transactions
|
5
|
+
module Parameters
|
6
|
+
module NonFinancial
|
7
|
+
# Sort Direction constants
|
8
|
+
class SortDirections
|
9
|
+
|
10
|
+
extend Mixins::Constants::Common
|
11
|
+
|
12
|
+
# Ascending sort
|
13
|
+
ASCENDING_SORT = 'asc'.freeze
|
14
|
+
|
15
|
+
# Descending sort
|
16
|
+
DESCENDING_SORT = 'desc'.freeze
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
data/lib/genesis_ruby/api/constants/transactions/parameters/refund/credit_reason_indicators.rb
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
module GenesisRuby
|
2
|
+
module Api
|
3
|
+
module Constants
|
4
|
+
module Transactions
|
5
|
+
module Parameters
|
6
|
+
module Refund
|
7
|
+
# Credit Reason Indicator allowed values
|
8
|
+
class CreditReasonIndicators
|
9
|
+
|
10
|
+
extend Api::Mixins::Constants::Common
|
11
|
+
|
12
|
+
# Passenger Transport Ancillary Cancellation
|
13
|
+
INDICATOR_A = 'A'.freeze
|
14
|
+
|
15
|
+
# Travel Ticket and Passenger Transport
|
16
|
+
INDICATOR_B = 'B'.freeze
|
17
|
+
|
18
|
+
# Partial Refund of Travel Ticket
|
19
|
+
INDICATOR_P = 'P'.freeze
|
20
|
+
|
21
|
+
# Other
|
22
|
+
INDICATOR_O = 'O'.freeze
|
23
|
+
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
data/lib/genesis_ruby/api/constants/transactions/parameters/refund/ticket_change_indicators.rb
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
module GenesisRuby
|
2
|
+
module Api
|
3
|
+
module Constants
|
4
|
+
module Transactions
|
5
|
+
module Parameters
|
6
|
+
module Refund
|
7
|
+
# Ticket Change Indicator allowed values
|
8
|
+
class TicketChangeIndicators
|
9
|
+
|
10
|
+
extend Api::Mixins::Constants::Common
|
11
|
+
|
12
|
+
# Change to existing Ticket
|
13
|
+
INDICATOR_C = 'C'.freeze
|
14
|
+
|
15
|
+
# New ticket
|
16
|
+
INDICATOR_N = 'N'.freeze
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -21,6 +21,11 @@ module GenesisRuby
|
|
21
21
|
# operator
|
22
22
|
AFRICAN_MOBILE_SALE = 'african_mobile_sale'.freeze
|
23
23
|
|
24
|
+
# Alipay is an oBeP-style alternative payment method that allows you to pay directly with your ebank account.
|
25
|
+
# After initiating a transaction Alipay will redirect you to their page.
|
26
|
+
# There you will see a picture of a QR code, which you will have to scan with your Alipay mobile application.
|
27
|
+
ALIPAY = 'alipay'.freeze
|
28
|
+
|
24
29
|
# Apple pay is payment method working with apple devices
|
25
30
|
APPLE_PAY = 'apple_pay'.freeze
|
26
31
|
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module GenesisRuby
|
2
|
+
module Api
|
3
|
+
module Mixins
|
4
|
+
module Requests
|
5
|
+
module Financial
|
6
|
+
# Bank Attributes mixin
|
7
|
+
module BankAttributes
|
8
|
+
|
9
|
+
attr_reader :bic, :iban
|
10
|
+
|
11
|
+
# BIC parameter validation
|
12
|
+
def bic=(value)
|
13
|
+
limited_string attribute: __method__, value: value.to_s.empty? ? nil : value.to_s, min: 8, max: 11
|
14
|
+
end
|
15
|
+
|
16
|
+
# IBAN parameter validation
|
17
|
+
def iban=(value)
|
18
|
+
limited_string attribute: __method__, value: value.to_s.empty? ? nil : value.to_s, max: 34
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module GenesisRuby
|
2
|
+
module Api
|
3
|
+
module Mixins
|
4
|
+
module Requests
|
5
|
+
module Financial
|
6
|
+
module Cards
|
7
|
+
# Installment shared attributes mixin
|
8
|
+
module InstallmentAttributes
|
9
|
+
|
10
|
+
attr_accessor :installment_plan_id, :installment_plan_reference
|
11
|
+
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module GenesisRuby
|
2
|
+
module Api
|
3
|
+
module Mixins
|
4
|
+
module Requests
|
5
|
+
module NonFinancial
|
6
|
+
module BillingApi
|
7
|
+
# Sort Attributes mixin
|
8
|
+
module SortAttributes
|
9
|
+
|
10
|
+
attr_accessor :sort_by_field, :sort_by_direction
|
11
|
+
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|