genesis_ruby 0.2.2 → 0.2.4

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.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +57 -0
  3. data/Gemfile.lock +50 -41
  4. data/README.md +56 -0
  5. data/VERSION +1 -1
  6. data/lib/genesis_ruby/api/constants/transactions/parameters/non_financial/billing_api/order_by_fields.rb +33 -0
  7. data/lib/genesis_ruby/api/constants/transactions/parameters/non_financial/billing_api/response_fields.rb +67 -0
  8. data/lib/genesis_ruby/api/constants/transactions/parameters/non_financial/billing_api/transaction_types.rb +48 -0
  9. data/lib/genesis_ruby/api/constants/transactions/parameters/non_financial/externally_processed.rb +22 -0
  10. data/lib/genesis_ruby/api/constants/transactions/parameters/non_financial/processing_type.rb +22 -0
  11. data/lib/genesis_ruby/api/constants/transactions/parameters/non_financial/sca_exemptions.rb +25 -0
  12. data/lib/genesis_ruby/api/constants/transactions/parameters/non_financial/sort_directions.rb +24 -0
  13. data/lib/genesis_ruby/api/constants/transactions/parameters/online_banking/iframe_targets.rb +26 -0
  14. data/lib/genesis_ruby/api/constants/transactions/parameters/online_banking/payment_types.rb +3 -0
  15. data/lib/genesis_ruby/api/constants/transactions.rb +5 -0
  16. data/lib/genesis_ruby/api/mixins/requests/financial/bank_attributes.rb +26 -0
  17. data/lib/genesis_ruby/api/mixins/requests/financial/beneficiary_attributes.rb +38 -0
  18. data/lib/genesis_ruby/api/mixins/requests/financial/customer_account_attributes.rb +21 -0
  19. data/lib/genesis_ruby/api/mixins/requests/financial/online_banking_payments/payer_attributes.rb +65 -0
  20. data/lib/genesis_ruby/api/mixins/requests/non_financial/billing_api/sort_attributes.rb +18 -0
  21. data/lib/genesis_ruby/api/mixins/requests/non_financial/date_attributes.rb +64 -0
  22. data/lib/genesis_ruby/api/mixins/requests/non_financial/mode_attributes.rb +24 -0
  23. data/lib/genesis_ruby/api/mixins/requests/non_financial/paging_attributes.rb +33 -0
  24. data/lib/genesis_ruby/api/mixins/requests/non_financial/tokenization/card_data_attributes.rb +62 -0
  25. data/lib/genesis_ruby/api/mixins/requests/non_financial/tokenization/token_attributes.rb +23 -0
  26. data/lib/genesis_ruby/api/mixins/requests/non_financial/tokenization/tokenization_attributes.rb +51 -0
  27. data/lib/genesis_ruby/api/mixins/requests/restricted_setter.rb +18 -0
  28. data/lib/genesis_ruby/api/request.rb +15 -0
  29. data/lib/genesis_ruby/api/requests/base/consumer.rb +24 -0
  30. data/lib/genesis_ruby/api/requests/base/financial.rb +10 -1
  31. data/lib/genesis_ruby/api/requests/base/financials/credit_card.rb +5 -7
  32. data/lib/genesis_ruby/api/requests/base/financials/south_american_payments.rb +11 -14
  33. data/lib/genesis_ruby/api/requests/base/graphql.rb +60 -0
  34. data/lib/genesis_ruby/api/requests/base/reference.rb +2 -1
  35. data/lib/genesis_ruby/api/requests/financial/cards/bancontact.rb +8 -9
  36. data/lib/genesis_ruby/api/requests/financial/cash_payments/cash.rb +13 -14
  37. data/lib/genesis_ruby/api/requests/financial/cash_payments/pix.rb +23 -25
  38. data/lib/genesis_ruby/api/requests/financial/mobile/apple_pay.rb +18 -20
  39. data/lib/genesis_ruby/api/requests/financial/mobile/google_pay.rb +20 -24
  40. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/banco_do_brasil.rb +57 -0
  41. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/eps.rb +46 -0
  42. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/idebit/pay_in.rb +48 -0
  43. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/idebit/pay_out.rb +28 -0
  44. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/insta_debit/pay_in.rb +61 -0
  45. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/insta_debit/pay_out.rb +24 -0
  46. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/multibanco.rb +48 -0
  47. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/my_bank.rb +47 -0
  48. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/online_banking/pay_in.rb +17 -18
  49. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/online_banking/pay_out.rb +33 -38
  50. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/pay_u.rb +61 -0
  51. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/post_finance.rb +53 -0
  52. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/safety_pay.rb +57 -0
  53. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/sofort.rb +63 -0
  54. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/trustly_sale.rb +75 -0
  55. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/upi.rb +54 -0
  56. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/wechat.rb +50 -0
  57. data/lib/genesis_ruby/api/requests/financial/sdd/recurring/init_recurring_sale.rb +23 -0
  58. data/lib/genesis_ruby/api/requests/financial/sdd/recurring/recurring_sale.rb +28 -0
  59. data/lib/genesis_ruby/api/requests/financial/sdd/refund.rb +26 -0
  60. data/lib/genesis_ruby/api/requests/financial/sdd/sale.rb +57 -0
  61. data/lib/genesis_ruby/api/requests/financial/void.rb +12 -5
  62. data/lib/genesis_ruby/api/requests/financial/wallets/alipay.rb +46 -0
  63. data/lib/genesis_ruby/api/requests/financial/wallets/{pay_pay.rb → pay_pal.rb} +18 -20
  64. data/lib/genesis_ruby/api/requests/non_financial/billing_api/transactions.rb +203 -0
  65. data/lib/genesis_ruby/api/requests/non_financial/consumers/create.rb +44 -0
  66. data/lib/genesis_ruby/api/requests/non_financial/consumers/disable.rb +40 -0
  67. data/lib/genesis_ruby/api/requests/non_financial/consumers/enable.rb +40 -0
  68. data/lib/genesis_ruby/api/requests/non_financial/consumers/get_cards.rb +40 -0
  69. data/lib/genesis_ruby/api/requests/non_financial/consumers/retrieve.rb +40 -0
  70. data/lib/genesis_ruby/api/requests/non_financial/consumers/update.rb +45 -0
  71. data/lib/genesis_ruby/api/requests/non_financial/fraud/retrieval/date_range.rb +81 -0
  72. data/lib/genesis_ruby/api/requests/non_financial/fraud/retrieval/transaction.rb +52 -0
  73. data/lib/genesis_ruby/api/requests/non_financial/processed_transactions/date_range.rb +68 -0
  74. data/lib/genesis_ruby/api/requests/non_financial/processed_transactions/post_date_range.rb +72 -0
  75. data/lib/genesis_ruby/api/requests/non_financial/processed_transactions/transaction.rb +48 -0
  76. data/lib/genesis_ruby/api/requests/non_financial/reconcile/date_range.rb +2 -50
  77. data/lib/genesis_ruby/api/requests/non_financial/sca/checker.rb +77 -0
  78. data/lib/genesis_ruby/api/requests/non_financial/tokenization/cryptogram.rb +43 -0
  79. data/lib/genesis_ruby/api/requests/non_financial/tokenization/delete_token.rb +43 -0
  80. data/lib/genesis_ruby/api/requests/non_financial/tokenization/detokenize.rb +43 -0
  81. data/lib/genesis_ruby/api/requests/non_financial/tokenization/get_card.rb +43 -0
  82. data/lib/genesis_ruby/api/requests/non_financial/tokenization/tokenize.rb +45 -0
  83. data/lib/genesis_ruby/api/requests/non_financial/tokenization/update_token.rb +45 -0
  84. data/lib/genesis_ruby/api/requests/non_financial/tokenization/validate_token.rb +43 -0
  85. data/lib/genesis_ruby/builder.rb +5 -0
  86. data/lib/genesis_ruby/builders/graphql.rb +118 -0
  87. data/lib/genesis_ruby/configuration.rb +11 -2
  88. data/lib/genesis_ruby/dependencies.rb +3 -0
  89. data/lib/genesis_ruby/network/adapter/net_http_adapter.rb +20 -9
  90. data/lib/genesis_ruby/network/base_network.rb +1 -14
  91. data/lib/genesis_ruby/utils/formatters/response/formats/timestamp.rb +1 -1
  92. data/lib/genesis_ruby/utils/options/api_config.rb +19 -0
  93. data/lib/genesis_ruby/utils/options/network_adapter_config.rb +49 -14
  94. data/lib/genesis_ruby/utils/transactions/financial_types.rb +1 -1
  95. data/lib/genesis_ruby/utils/transactions/references/refundable_types.rb +1 -1
  96. data/lib/genesis_ruby/utils/transactions/wpf_types.rb +1 -1
  97. data/lib/genesis_ruby/version.rb +1 -1
  98. metadata +66 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b8bb23a143ba4c359861d35f9e03cfde80130d4e7566cd95a899e27e5f77b8d2
4
- data.tar.gz: 72496117a1a8a3ec4dcca3b39f41ac080b9696b1d16e2844c3f3488b11b15104
3
+ metadata.gz: 9072aff1c90817e3c33b33fb2edb13dd233eb1215a431ea48929f04097f0bb0b
4
+ data.tar.gz: 3799ea143d2abddaf7c8afded420e332a60ceeef1218c839483575428c735eda
5
5
  SHA512:
6
- metadata.gz: 54bfbce4e0a95961f64aafdc168e8509f810c070d9a24ff1430648da7f12611f87e418dea7483e97e655065b24a83bf80d61a9fe870ac6656e9bfd55704e2474
7
- data.tar.gz: 9a10b7cd257d4dacb18b420d454cc564c265f0e636221454b00b6ed86ca95002a8cc8dfc9212ad599002fd6101da571a63063d14f1c71fe1675430a38443a47b
6
+ metadata.gz: ed1030a2956b575dc61ff111e07bc89f45b78a61c33c2d8ae5b0278c350313c1308fec9c046e2bcb59a33e4b258b765ca49761f052fa10ce95d5514f40d6379e
7
+ data.tar.gz: 6efa9c63b505b4c5ab09518e12db4e68131e93e203c964bf20b57263c2569d67ef5fb72acf0c742fbe9027783bae64d891a43cd58d79de4af25bae71a738814b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,60 @@
1
+ 0.2.4
2
+ -----
3
+ **Features**:
4
+
5
+ * Added Tokenization API support:
6
+ * Tokenize
7
+ * Detokenize
8
+ * Token
9
+ * Cryptogram
10
+ * Validate token
11
+ * Delete token
12
+ * Get Card
13
+ * Added Payer attributes support to Bank Payout
14
+ * Added Beneficiary attributes support to PIX transaction request
15
+ * Added Processed Transactions API support:
16
+ * Single Processed Transaction
17
+ * By Date Range
18
+ * Post By Date Range
19
+ * Added SCA Checker API support
20
+ * Added Retrieval API support:
21
+ * Single Retrieval
22
+ * List of Retrievals
23
+ * By Date Range
24
+ * Added Consumer API support:
25
+ * Create
26
+ * Retrieve
27
+ * Update
28
+ * Disable
29
+ * Enable
30
+ * Get Consumer Cards
31
+ * Added PayU transaction request support
32
+ * Added Post Finance transaction request support
33
+ * Added SafetyPay transaction request support
34
+ * Added TrustlySale transaction request support
35
+ * Added MyBank transaction request support
36
+ * Added InstaDebit transaction request support
37
+ * Added UPI transaction request support
38
+ * Added Sofort transaction request support
39
+ * Added Multibanco transaction request support
40
+
41
+ 0.2.3
42
+ -----
43
+ **Features**:
44
+
45
+ * Added Billing API Support
46
+ * Added Alipay transaction request support
47
+ * Added the following SDD (Sepa Direct Debit) transaction requests support
48
+ * SDD Sale
49
+ * SDD Init Recurring Sale
50
+ * SDD Refund
51
+ * SDD Recurring Sale
52
+ * Added Spei payment type support to Online Banking PayIn
53
+ * Added EPS transaction request support
54
+ * Added WeChat transaction request support
55
+ * Added Banco Do Brasil transaction request support
56
+ * Added iDebit PayIn and PayOut transaction requests support
57
+
1
58
  0.2.2
2
59
  -----
3
60
  **Features**:
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- genesis_ruby (0.2.2)
4
+ genesis_ruby (0.2.4)
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.2)
13
+ ast (2.4.3)
14
14
  base64 (0.2.0)
15
- bigdecimal (3.1.8)
16
- concurrent-ruby (1.3.4)
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.0)
21
- diff-lcs (1.5.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.2.1)
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.1)
35
- httparty (0.22.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.6)
39
+ i18n (1.14.7)
40
40
  concurrent-ruby (~> 1.0)
41
- json (2.7.2)
42
- language_server-protocol (3.17.0.3)
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 (7.2.0)
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.5.0)
58
+ parser (3.3.7.4)
58
59
  ast (~> 2.4.1)
59
60
  racc
60
- pronto (0.11.2)
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, < 8.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.5)
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.10)
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.9.2)
80
- rexml (3.3.8)
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.1)
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.1)
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.66.1)
98
+ rubocop (1.75.1)
97
99
  json (~> 2.3)
98
- language_server-protocol (>= 3.17.0)
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.4, < 3.0)
103
- rubocop-ast (>= 1.32.2, < 2.0)
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, < 3.0)
106
- rubocop-ast (1.32.3)
107
- parser (>= 3.3.1.0)
108
- rubocop-capybara (2.21.0)
109
- rubocop (~> 1.41)
110
- rubocop-factory_bot (2.26.1)
111
- rubocop (~> 1.61)
112
- rubocop-faker (1.1.0)
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
- rubocop (>= 0.82.0)
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.7.2)
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 (3.0.2)
134
- unicode-display_width (>= 1.1.1, < 3)
140
+ terminal-table (4.0.0)
141
+ unicode-display_width (>= 1.1.1, < 4)
135
142
  thor (1.3.2)
136
- tilt (2.4.0)
137
- unicode-display_width (2.6.0)
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.24.0)
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,23 +1032,46 @@ 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
1041
+ GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Multibanco
1042
+ GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::PayU
1043
+ GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::PostFinance
1044
+ GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::MyBank
1038
1045
  GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Pse
1039
1046
  GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::RapiPago
1047
+ GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::SafetyPay
1040
1048
  GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Santander
1049
+ GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::TrustlySale
1050
+ GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Upi
1051
+ GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Sofort
1041
1052
  GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Webpay
1053
+ GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Wechat
1042
1054
  # PayIn
1043
1055
  GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::OnlineBanking::PayIn
1044
1056
  # PayOut
1045
1057
  GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::OnlineBanking::PayOut
1058
+ # iDebit
1059
+ GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Idebit::PayIn
1060
+ GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Idebit::PayOut
1061
+ # InstaDebit
1062
+ GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::InstaDebit::PayIn
1063
+ GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::InstaDebit::PayOut
1064
+
1065
+ # SDD
1066
+ GenesisRuby::Api::Requests::Financial::Sdd::Sale
1067
+ GenesisRuby::Api::Requests::Financial::Sdd::Recurring::InitRecurringSale
1046
1068
 
1047
1069
  # References
1048
1070
  GenesisRuby::Api::Requests::Financial::Capture
1049
1071
  GenesisRuby::Api::Requests::Financial::Void
1050
1072
  GenesisRuby::Api::Requests::Financial::Refund
1073
+ GenesisRuby::Api::Requests::Financial::Sdd::Refund
1074
+ GenesisRuby::Api::Requests::Financial::Sdd::Recurring::RecurringSale
1051
1075
 
1052
1076
  # Non Financial
1053
1077
  ## Reconcile
@@ -1057,6 +1081,38 @@ GenesisRuby::Api::Requests::NonFinancial::Reconcile::DateRange
1057
1081
  ## Installments
1058
1082
  GenesisRuby::Api::Requests::NonFinancial::Installments::Fetch
1059
1083
 
1084
+ ## Billing API
1085
+ GenesisRuby::Api::Requests::NonFinancial::BillingApi::Transactions
1086
+
1087
+ ## Consumer API
1088
+ GenesisRuby::Api::Requests::NonFinancial::Consumers::Create
1089
+ GenesisRuby::Api::Requests::NonFinancial::Consumers::Retrieve
1090
+ GenesisRuby::Api::Requests::NonFinancial::Consumers::Update
1091
+ GenesisRuby::Api::Requests::NonFinancial::Consumers::Disable
1092
+ GenesisRuby::Api::Requests::NonFinancial::Consumers::Enable
1093
+ GenesisRuby::Api::Requests::NonFinancial::Consumers::GetCards
1094
+
1095
+ ## Retrieval API
1096
+ GenesisRuby::Api::Requests::NonFinancial::Fraud::Retrieval::Transaction
1097
+ GenesisRuby::Api::Requests::NonFinancial::Fraud::Retrieval::DateRange
1098
+
1099
+ ## SCA API
1100
+ GenesisRuby::Api::Requests::NonFinancial::Sca::Checker
1101
+
1102
+ ## Processed Transaction API
1103
+ GenesisRuby::Api::Requests::NonFinancial::ProcessedTransactions::Transaction
1104
+ GenesisRuby::Api::Requests::NonFinancial::ProcessedTransactions::DateRange
1105
+ GenesisRuby::Api::Requests::NonFinancial::ProcessedTransactions::PostDateRange
1106
+
1107
+ ## Tokenization API
1108
+ GenesisRuby::Api::Requests::NonFinancial::Tokenization::Tokenize
1109
+ GenesisRuby::Api::Requests::NonFinancial::Tokenization::Detokenize
1110
+ GenesisRuby::Api::Requests::NonFinancial::Tokenization::UpdateToken
1111
+ GenesisRuby::Api::Requests::NonFinancial::Tokenization::Cryptogram
1112
+ GenesisRuby::Api::Requests::NonFinancial::Tokenization::ValidateToken
1113
+ GenesisRuby::Api::Requests::NonFinancial::Tokenization::DeleteToken
1114
+ GenesisRuby::Api::Requests::NonFinancial::Tokenization::GetCard
1115
+
1060
1116
  ```
1061
1117
 
1062
1118
  ### Manual initialization
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.4
@@ -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,22 @@
1
+ module GenesisRuby
2
+ module Api
3
+ module Constants
4
+ module Transactions
5
+ module Parameters
6
+ module NonFinancial
7
+ # Filter requests by being externally processed or being native to Genesis
8
+ class ExternallyProcessed
9
+
10
+ extend Mixins::Constants::Common
11
+
12
+ GENESIS = 'genesis'.freeze
13
+ EXTERNAL = 'external'.freeze
14
+ ALL = 'all'.freeze
15
+
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,22 @@
1
+ module GenesisRuby
2
+ module Api
3
+ module Constants
4
+ module Transactions
5
+ module Parameters
6
+ module NonFinancial
7
+ # Filter requests by being card present or card not present
8
+ class ProcessingType
9
+
10
+ extend Mixins::Constants::Common
11
+
12
+ CARD_PRESENT = 'card_present'.freeze
13
+ CARD_NOT_PRESENT = 'card_not_present'.freeze
14
+ ALL = 'all'.freeze
15
+
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,25 @@
1
+ module GenesisRuby
2
+ module Api
3
+ module Constants
4
+ module Transactions
5
+ module Parameters
6
+ module NonFinancial
7
+ # SCA Exemption Values
8
+ class ScaExemptions
9
+
10
+ extend Mixins::Constants::Common
11
+
12
+ LOW_VALUE = 'low_value'.freeze
13
+ LOW_RISK = 'low_risk'.freeze
14
+ TRUSTED_MERCHANT = 'trusted_merchant'.freeze
15
+ CORPORATE_PAYMENT = 'corporate_payment'.freeze
16
+ DELEGATED_AUTHENTICATION = 'delegated_authentication'.freeze
17
+ AUTH_NETWORK_OUTAGE = 'auth_network_outage'.freeze
18
+
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
25
+ 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
@@ -0,0 +1,26 @@
1
+ module GenesisRuby
2
+ module Api
3
+ module Constants
4
+ module Transactions
5
+ module Parameters
6
+ module OnlineBanking
7
+ # Return URL Target attributes
8
+ class IframeTargets
9
+
10
+ extend Api::Mixins::Constants::Common
11
+
12
+ # URL target for successful payment in Trustly iFrame.
13
+ # Self
14
+ SELF = 'self'.freeze
15
+ # Parent
16
+ PARENT = 'parent'.freeze
17
+ # Top
18
+ TOP = 'TOP'.freeze
19
+
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
@@ -27,6 +27,9 @@ module GenesisRuby
27
27
  # Payment Scotia Bank
28
28
  SCOTIABANK = 'scotiabank'.freeze
29
29
 
30
+ # Payment SPEI
31
+ SPEI = 'spei'.freeze
32
+
30
33
  end
31
34
  end
32
35
  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