genesis_ruby 0.2.3 → 0.2.5

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 (123) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +78 -0
  3. data/Gemfile.lock +14 -14
  4. data/README.md +78 -0
  5. data/VERSION +1 -1
  6. data/lib/genesis_ruby/api/constants/currencies/iso4217.rb +6 -0
  7. data/lib/genesis_ruby/api/constants/non_financial/kyc/document_types.rb +49 -0
  8. data/lib/genesis_ruby/api/constants/non_financial/kyc/genders.rb +22 -0
  9. data/lib/genesis_ruby/api/constants/transactions/parameters/african_mobile_operators.rb +37 -0
  10. data/lib/genesis_ruby/api/constants/transactions/parameters/customer_identification/customer_identification_owner.rb +24 -0
  11. data/lib/genesis_ruby/api/constants/transactions/parameters/customer_identification/customer_identification_subtype.rb +24 -0
  12. data/lib/genesis_ruby/api/constants/transactions/parameters/customer_identification/customer_identification_type.rb +63 -0
  13. data/lib/genesis_ruby/api/constants/transactions/parameters/digital_asset_types.rb +31 -0
  14. data/lib/genesis_ruby/api/constants/transactions/parameters/non_financial/externally_processed.rb +22 -0
  15. data/lib/genesis_ruby/api/constants/transactions/parameters/non_financial/processing_type.rb +22 -0
  16. data/lib/genesis_ruby/api/constants/transactions/parameters/non_financial/sca_exemptions.rb +25 -0
  17. data/lib/genesis_ruby/api/constants/transactions/parameters/online_banking/iframe_targets.rb +26 -0
  18. data/lib/genesis_ruby/api/constants/transactions/parameters/purpose_of_payment.rb +136 -0
  19. data/lib/genesis_ruby/api/constants/transactions/parameters/source_of_funds.rb +34 -0
  20. data/lib/genesis_ruby/api/mixins/requests/digital_asset_type_attributes.rb +26 -0
  21. data/lib/genesis_ruby/api/mixins/requests/financial/african_mobile_attributes.rb +30 -0
  22. data/lib/genesis_ruby/api/mixins/requests/financial/beneficiary_attributes.rb +38 -0
  23. data/lib/genesis_ruby/api/mixins/requests/financial/cards/tokenization_params_attributes.rb +36 -0
  24. data/lib/genesis_ruby/api/mixins/requests/financial/customer_account_attributes.rb +21 -0
  25. data/lib/genesis_ruby/api/mixins/requests/financial/customer_identification_attributes.rb +82 -0
  26. data/lib/genesis_ruby/api/mixins/requests/financial/gift_cards_attributes.rb +26 -0
  27. data/lib/genesis_ruby/api/mixins/requests/financial/online_banking_payments/payer_attributes.rb +65 -0
  28. data/lib/genesis_ruby/api/mixins/requests/financial/preauthorization_attributes.rb +25 -0
  29. data/lib/genesis_ruby/api/mixins/requests/financial/purpose_of_payment_attributes.rb +29 -0
  30. data/lib/genesis_ruby/api/mixins/requests/financial/source_of_funds_attributes.rb +38 -0
  31. data/lib/genesis_ruby/api/mixins/requests/financial/travel_data/airline_itinerary_attributes.rb +1 -1
  32. data/lib/genesis_ruby/api/mixins/requests/non_financial/fx/id_attributes.rb +28 -0
  33. data/lib/genesis_ruby/api/mixins/requests/non_financial/fx/tier_id_attributes.rb +28 -0
  34. data/lib/genesis_ruby/api/mixins/requests/non_financial/kyc/customer_information_attributes.rb +62 -0
  35. data/lib/genesis_ruby/api/mixins/requests/non_financial/mode_attributes.rb +24 -0
  36. data/lib/genesis_ruby/api/mixins/requests/non_financial/tokenization/card_data_attributes.rb +62 -0
  37. data/lib/genesis_ruby/api/mixins/requests/non_financial/tokenization/token_attributes.rb +23 -0
  38. data/lib/genesis_ruby/api/mixins/requests/non_financial/tokenization/tokenization_attributes.rb +51 -0
  39. data/lib/genesis_ruby/api/request.rb +7 -0
  40. data/lib/genesis_ruby/api/requests/base/consumer.rb +24 -0
  41. data/lib/genesis_ruby/api/requests/base/financial.rb +10 -1
  42. data/lib/genesis_ruby/api/requests/base/financials/credit_card.rb +9 -9
  43. data/lib/genesis_ruby/api/requests/base/financials/south_american_payments.rb +11 -14
  44. data/lib/genesis_ruby/api/requests/base/non_financial/kyc/base.rb +33 -0
  45. data/lib/genesis_ruby/api/requests/base/reference.rb +3 -3
  46. data/lib/genesis_ruby/api/requests/financial/Preauthorizations/incremental_authorize.rb +24 -0
  47. data/lib/genesis_ruby/api/requests/financial/cards/authorize.rb +5 -1
  48. data/lib/genesis_ruby/api/requests/financial/cards/authorize3d.rb +5 -1
  49. data/lib/genesis_ruby/api/requests/financial/cards/bancontact.rb +8 -9
  50. data/lib/genesis_ruby/api/requests/financial/cards/credit.rb +39 -0
  51. data/lib/genesis_ruby/api/requests/financial/cards/payout.rb +72 -0
  52. data/lib/genesis_ruby/api/requests/financial/cards/sale.rb +3 -1
  53. data/lib/genesis_ruby/api/requests/financial/cards/sale3d.rb +3 -1
  54. data/lib/genesis_ruby/api/requests/financial/cash_payments/cash.rb +13 -14
  55. data/lib/genesis_ruby/api/requests/financial/cash_payments/pix.rb +23 -25
  56. data/lib/genesis_ruby/api/requests/financial/crypto/bit_pay/payout.rb +52 -0
  57. data/lib/genesis_ruby/api/requests/financial/crypto/bit_pay/refund.rb +36 -0
  58. data/lib/genesis_ruby/api/requests/financial/crypto/bit_pay/sale.rb +55 -0
  59. data/lib/genesis_ruby/api/requests/financial/gift_cards/fashioncheque.rb +47 -0
  60. data/lib/genesis_ruby/api/requests/financial/gift_cards/intersolve.rb +46 -0
  61. data/lib/genesis_ruby/api/requests/financial/gift_cards/tcs.rb +47 -0
  62. data/lib/genesis_ruby/api/requests/financial/mobile/african_mobile_sale.rb +81 -0
  63. data/lib/genesis_ruby/api/requests/financial/mobile/apple_pay.rb +18 -20
  64. data/lib/genesis_ruby/api/requests/financial/mobile/google_pay.rb +20 -24
  65. data/lib/genesis_ruby/api/requests/financial/mobile/russian_mobile_sale.rb +55 -0
  66. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/banco_do_brasil.rb +11 -14
  67. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/eps.rb +9 -10
  68. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/idebit/pay_in.rb +11 -18
  69. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/insta_debit/pay_in.rb +61 -0
  70. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/insta_debit/pay_out.rb +24 -0
  71. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/multibanco.rb +48 -0
  72. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/my_bank.rb +47 -0
  73. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/online_banking/pay_in.rb +17 -18
  74. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/online_banking/pay_out.rb +33 -38
  75. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/pay_u.rb +61 -0
  76. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/post_finance.rb +53 -0
  77. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/safety_pay.rb +57 -0
  78. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/sofort.rb +63 -0
  79. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/trustly_sale.rb +75 -0
  80. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/upi.rb +54 -0
  81. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/wechat.rb +11 -14
  82. data/lib/genesis_ruby/api/requests/financial/sdd/sale.rb +13 -17
  83. data/lib/genesis_ruby/api/requests/financial/void.rb +12 -5
  84. data/lib/genesis_ruby/api/requests/financial/vouchers/neosurf.rb +61 -0
  85. data/lib/genesis_ruby/api/requests/financial/wallets/alipay.rb +10 -13
  86. data/lib/genesis_ruby/api/requests/financial/wallets/pay_pal.rb +18 -20
  87. data/lib/genesis_ruby/api/requests/non_financial/consumers/create.rb +44 -0
  88. data/lib/genesis_ruby/api/requests/non_financial/consumers/disable.rb +40 -0
  89. data/lib/genesis_ruby/api/requests/non_financial/consumers/enable.rb +40 -0
  90. data/lib/genesis_ruby/api/requests/non_financial/consumers/get_cards.rb +40 -0
  91. data/lib/genesis_ruby/api/requests/non_financial/consumers/retrieve.rb +40 -0
  92. data/lib/genesis_ruby/api/requests/non_financial/consumers/update.rb +45 -0
  93. data/lib/genesis_ruby/api/requests/non_financial/fraud/chargeback/date_range.rb +82 -0
  94. data/lib/genesis_ruby/api/requests/non_financial/fraud/chargeback/transaction.rb +52 -0
  95. data/lib/genesis_ruby/api/requests/non_financial/fraud/reports/date_range.rb +108 -0
  96. data/lib/genesis_ruby/api/requests/non_financial/fraud/reports/transaction.rb +52 -0
  97. data/lib/genesis_ruby/api/requests/non_financial/fraud/retrieval/date_range.rb +81 -0
  98. data/lib/genesis_ruby/api/requests/non_financial/fraud/retrieval/transaction.rb +52 -0
  99. data/lib/genesis_ruby/api/requests/non_financial/fx/get_rate.rb +55 -0
  100. data/lib/genesis_ruby/api/requests/non_financial/fx/get_rates.rb +53 -0
  101. data/lib/genesis_ruby/api/requests/non_financial/fx/get_tier.rb +53 -0
  102. data/lib/genesis_ruby/api/requests/non_financial/fx/get_tiers.rb +35 -0
  103. data/lib/genesis_ruby/api/requests/non_financial/fx/search_rate.rb +61 -0
  104. data/lib/genesis_ruby/api/requests/non_financial/kyc/consumer_registration/create.rb +99 -0
  105. data/lib/genesis_ruby/api/requests/non_financial/processed_transactions/date_range.rb +68 -0
  106. data/lib/genesis_ruby/api/requests/non_financial/processed_transactions/post_date_range.rb +72 -0
  107. data/lib/genesis_ruby/api/requests/non_financial/processed_transactions/transaction.rb +48 -0
  108. data/lib/genesis_ruby/api/requests/non_financial/sca/checker.rb +77 -0
  109. data/lib/genesis_ruby/api/requests/non_financial/tokenization/cryptogram.rb +46 -0
  110. data/lib/genesis_ruby/api/requests/non_financial/tokenization/delete_token.rb +43 -0
  111. data/lib/genesis_ruby/api/requests/non_financial/tokenization/detokenize.rb +43 -0
  112. data/lib/genesis_ruby/api/requests/non_financial/tokenization/get_card.rb +43 -0
  113. data/lib/genesis_ruby/api/requests/non_financial/tokenization/tokenize.rb +45 -0
  114. data/lib/genesis_ruby/api/requests/non_financial/tokenization/update_token.rb +45 -0
  115. data/lib/genesis_ruby/api/requests/non_financial/tokenization/validate_token.rb +43 -0
  116. data/lib/genesis_ruby/api/requests/wpf/create.rb +3 -1
  117. data/lib/genesis_ruby/configuration.rb +4 -0
  118. data/lib/genesis_ruby/dependencies.rb +2 -0
  119. data/lib/genesis_ruby/utils/country.rb +272 -0
  120. data/lib/genesis_ruby/utils/formatters/response/formats/timestamp.rb +1 -1
  121. data/lib/genesis_ruby/utils/money/conversions/amount_to_exponent.rb +1 -4
  122. data/lib/genesis_ruby/version.rb +1 -1
  123. metadata +87 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f03e064990c5ab2c2f8d128db6cdda17ffb306ab6b945dbec7e66e28c9a40ebc
4
- data.tar.gz: 8aadefd87afbfb72e608fa702161a0ec5653397cc2a3e31f480004d631ae8985
3
+ metadata.gz: 23c3f5ca68fa323f565fdd6c719727c8766e5c48c8c0493565b1ddb94548bbc7
4
+ data.tar.gz: c0c05e008139fb2b329d85a35abfa6208687291e8774e2be883f146cdb5fa8f4
5
5
  SHA512:
6
- metadata.gz: bdee942af8926d926df609438829638c0bf71b404e03b85e9614e30e252d11a300f268aa6d12936ce19403898292556c631a3e05043941b30a6701378a6d4a0c
7
- data.tar.gz: 2f2bcfd52842fdf936589908a8d82b6dc97bfd928363cf663a83eebc6d2dad40067e6de916150428c919d6f9cd4ec195a9487ecc41b8626d0173726f204b6a09
6
+ metadata.gz: a4dae27aed3ece2f4dd94a591bc4f6c3835bc778545f288df1cccf933f6ada91548c13a1792e728ff7d56fdb2a122d9c8caa90ad77406a526a49aeb0b335b531
7
+ data.tar.gz: 0141ea62ea869aa01ab8cc12d44937d3f6264c4d6e1e360c213d251a3b33a360e5e3e4f4142acbbf071cf4e858cd865eadfae0f46ee65db4c4643c3fe58567d9
data/CHANGELOG.md CHANGED
@@ -1,3 +1,81 @@
1
+ 0.2.5
2
+ -----
3
+ **Features**:
4
+
5
+ * Added Incremental Authorize transaction request support
6
+ * Added Preauthorization attributes support to Authorize and Authorize 3D transaction requests
7
+ * Added BitPay Sale, Refund and Payout transaction requests support
8
+ * Added support for the following Gift Card transaction requests:
9
+ * Fashioncheque
10
+ * Intersolve
11
+ * TCS
12
+ * Added Chargeback API support with the following endpoints:
13
+ * Single/List
14
+ * By Date Range
15
+ * Added Fraud reports API support with the following endpoints:
16
+ * Single/List SAFE/TC40
17
+ * By Date Range
18
+ * Added FX API services support with the following endpoints:
19
+ * GetRate
20
+ * GetRates
21
+ * GetTier
22
+ * GetTiers
23
+ * SearchRate
24
+ * Added KYC Create Consumer Registration API request support
25
+ * Added XCG currency support
26
+ * Updated Tokenization Cryptogram API request support with mandatory parameter - transaction_reference
27
+ * Added Digital Asset Type attribute support to the following transaction requests:
28
+ * Authorize
29
+ * Authorize 3D
30
+ * Sale
31
+ * Sale 3D
32
+ * Web Payment Form
33
+ * Added African Mobile Sale transaction request support
34
+ * Added Russian Mobile Sale transaction request support
35
+ * Added Credit transaction request support
36
+ * Added Neosurf transaction request support
37
+ * Added Payout transaction request support
38
+
39
+ 0.2.4
40
+ -----
41
+ **Features**:
42
+
43
+ * Added Tokenization API support:
44
+ * Tokenize
45
+ * Detokenize
46
+ * Token
47
+ * Cryptogram
48
+ * Validate token
49
+ * Delete token
50
+ * Get Card
51
+ * Added Payer attributes support to Bank Payout
52
+ * Added Beneficiary attributes support to PIX transaction request
53
+ * Added Processed Transactions API support:
54
+ * Single Processed Transaction
55
+ * By Date Range
56
+ * Post By Date Range
57
+ * Added SCA Checker API support
58
+ * Added Retrieval API support:
59
+ * Single Retrieval
60
+ * List of Retrievals
61
+ * By Date Range
62
+ * Added Consumer API support:
63
+ * Create
64
+ * Retrieve
65
+ * Update
66
+ * Disable
67
+ * Enable
68
+ * Get Consumer Cards
69
+ * Added PayU transaction request support
70
+ * Added Post Finance transaction request support
71
+ * Added SafetyPay transaction request support
72
+ * Added TrustlySale transaction request support
73
+ * Added MyBank transaction request support
74
+ * Added InstaDebit transaction request support
75
+ * Added UPI transaction request support
76
+ * Added Sofort transaction request support
77
+ * Added Multibanco transaction request support
78
+
1
79
  0.2.3
2
80
  -----
3
81
  **Features**:
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- genesis_ruby (0.2.3)
4
+ genesis_ruby (0.2.5)
5
5
  net-http (~> 0.3.2)
6
6
  nokogiri (~> 1.14)
7
7
 
@@ -17,7 +17,7 @@ GEM
17
17
  crack (1.0.0)
18
18
  bigdecimal
19
19
  rexml
20
- csv (3.3.3)
20
+ csv (3.3.4)
21
21
  diff-lcs (1.6.1)
22
22
  faker (2.23.0)
23
23
  i18n (>= 1.8.11, < 2)
@@ -38,7 +38,7 @@ GEM
38
38
  multi_xml (>= 0.5.2)
39
39
  i18n (1.14.7)
40
40
  concurrent-ruby (~> 1.0)
41
- json (2.10.2)
41
+ json (2.11.3)
42
42
  language_server-protocol (3.17.0.4)
43
43
  lint_roller (1.1.0)
44
44
  mini_mime (1.1.5)
@@ -51,18 +51,18 @@ GEM
51
51
  nokogiri (1.15.7)
52
52
  mini_portile2 (~> 2.8.2)
53
53
  racc (~> 1.4)
54
- octokit (9.2.0)
54
+ octokit (10.0.0)
55
55
  faraday (>= 1, < 3)
56
56
  sawyer (~> 0.9)
57
- parallel (1.26.3)
58
- parser (3.3.7.4)
57
+ parallel (1.27.0)
58
+ parser (3.3.8.0)
59
59
  ast (~> 2.4.1)
60
60
  racc
61
61
  prism (1.4.0)
62
- pronto (0.11.3)
62
+ pronto (0.11.4)
63
63
  gitlab (>= 4.4.0, < 5.0)
64
64
  httparty (>= 0.13.7, < 1.0)
65
- octokit (>= 4.7.0, < 10.0)
65
+ octokit (>= 4.7.0, < 11.0)
66
66
  rainbow (>= 2.2, < 4.0)
67
67
  rexml (>= 3.2.5, < 4.0)
68
68
  rugged (>= 0.23.0, < 2.0)
@@ -86,16 +86,16 @@ GEM
86
86
  rspec-mocks (~> 3.13.0)
87
87
  rspec-core (3.13.3)
88
88
  rspec-support (~> 3.13.0)
89
- rspec-expectations (3.13.3)
89
+ rspec-expectations (3.13.4)
90
90
  diff-lcs (>= 1.2.0, < 2.0)
91
91
  rspec-support (~> 3.13.0)
92
- rspec-mocks (3.13.2)
92
+ rspec-mocks (3.13.3)
93
93
  diff-lcs (>= 1.2.0, < 2.0)
94
94
  rspec-support (~> 3.13.0)
95
- rspec-support (3.13.2)
95
+ rspec-support (3.13.3)
96
96
  rspec_junit_formatter (0.6.0)
97
97
  rspec-core (>= 2, < 4, != 2.12.0)
98
- rubocop (1.75.1)
98
+ rubocop (1.75.4)
99
99
  json (~> 2.3)
100
100
  language_server-protocol (~> 3.17.0.2)
101
101
  lint_roller (~> 1.1.0)
@@ -103,10 +103,10 @@ GEM
103
103
  parser (>= 3.3.0.2)
104
104
  rainbow (>= 2.2.2, < 4.0)
105
105
  regexp_parser (>= 2.9.3, < 3.0)
106
- rubocop-ast (>= 1.43.0, < 2.0)
106
+ rubocop-ast (>= 1.44.0, < 2.0)
107
107
  ruby-progressbar (~> 1.7)
108
108
  unicode-display_width (>= 2.4.0, < 4.0)
109
- rubocop-ast (1.44.0)
109
+ rubocop-ast (1.44.1)
110
110
  parser (>= 3.3.7.2)
111
111
  prism (~> 1.4)
112
112
  rubocop-capybara (2.22.1)
data/README.md CHANGED
@@ -1002,13 +1002,19 @@ GenesisRuby::Api::Requests::Financial::Cards::Cencosud
1002
1002
  GenesisRuby::Api::Requests::Financial::Cards::Elo
1003
1003
  GenesisRuby::Api::Requests::Financial::Cards::Naranja
1004
1004
  GenesisRuby::Api::Requests::Financial::Cards::Nativa
1005
+ GenesisRuby::Api::Requests::Financial::Cards::Payout
1005
1006
  GenesisRuby::Api::Requests::Financial::Cards::Sale
1006
1007
  GenesisRuby::Api::Requests::Financial::Cards::Sale3d
1007
1008
  GenesisRuby::Api::Requests::Financial::Cards::TarjetaShopping
1008
1009
 
1010
+ ## Preauthorizations
1011
+ GenesisRuby::Api::Requests::Financial::Preauthorizations::IncrementalAuthorize
1012
+
1009
1013
  ## Mobile
1010
1014
  GenesisRuby::Api::Requests::Financial::Mobile::ApplePay
1011
1015
  GenesisRuby::Api::Requests::Financial::Mobile::GooglePay
1016
+ GenesisRuby::Api::Requests::Financial::Mobile::AfricanMobileSale
1017
+ GenesisRuby::Api::Requests::Financial::Mobile::RussianMobileSale
1012
1018
 
1013
1019
  ## Wallets
1014
1020
  GenesisRuby::Api::Requests::Financial::Wallets::Alipay
@@ -1025,6 +1031,19 @@ GenesisRuby::Api::Requests::Financial::CashPayments::PagoFacil
1025
1031
  GenesisRuby::Api::Requests::Financial::CashPayments::Pix
1026
1032
  GenesisRuby::Api::Requests::Financial::CashPayments::Redpagos
1027
1033
 
1034
+ ## Crypto transactions
1035
+ GenesisRuby::Api::Requests::Financial::Crypto::BitPay::Sale
1036
+ GenesisRuby::Api::Requests::Financial::Crypto::BitPay::Refund
1037
+ GenesisRuby::Api::Requests::Financial::Crypto::BitPay::Payout
1038
+
1039
+ ## Gift Cards transactions
1040
+ GenesisRuby::Api::Requests::Financial::GiftCards::Intersolve
1041
+ GenesisRuby::Api::Requests::Financial::GiftCards::Fashioncheque
1042
+ GenesisRuby::Api::Requests::Financial::GiftCards::Tcs
1043
+
1044
+ ## Vouchers
1045
+ GenesisRuby::Api::Requests::Financial::Vouchers::Neosurf
1046
+
1028
1047
  # Web Payment Form
1029
1048
  ## Create
1030
1049
  GenesisRuby::Api::Requests::Wpf::Create
@@ -1038,9 +1057,17 @@ GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Bradesco
1038
1057
  GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Davivienda
1039
1058
  GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Eps
1040
1059
  GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Itau
1060
+ GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Multibanco
1061
+ GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::PayU
1062
+ GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::PostFinance
1063
+ GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::MyBank
1041
1064
  GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Pse
1042
1065
  GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::RapiPago
1066
+ GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::SafetyPay
1043
1067
  GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Santander
1068
+ GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::TrustlySale
1069
+ GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Upi
1070
+ GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Sofort
1044
1071
  GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Webpay
1045
1072
  GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Wechat
1046
1073
  # PayIn
@@ -1050,6 +1077,9 @@ GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::OnlineBanking::Pay
1050
1077
  # iDebit
1051
1078
  GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Idebit::PayIn
1052
1079
  GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Idebit::PayOut
1080
+ # InstaDebit
1081
+ GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::InstaDebit::PayIn
1082
+ GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::InstaDebit::PayOut
1053
1083
 
1054
1084
  # SDD
1055
1085
  GenesisRuby::Api::Requests::Financial::Sdd::Sale
@@ -1061,6 +1091,7 @@ GenesisRuby::Api::Requests::Financial::Void
1061
1091
  GenesisRuby::Api::Requests::Financial::Refund
1062
1092
  GenesisRuby::Api::Requests::Financial::Sdd::Refund
1063
1093
  GenesisRuby::Api::Requests::Financial::Sdd::Recurring::RecurringSale
1094
+ GenesisRuby::Api::Requests::Financial::Cards::Credit
1064
1095
 
1065
1096
  # Non Financial
1066
1097
  ## Reconcile
@@ -1073,6 +1104,53 @@ GenesisRuby::Api::Requests::NonFinancial::Installments::Fetch
1073
1104
  ## Billing API
1074
1105
  GenesisRuby::Api::Requests::NonFinancial::BillingApi::Transactions
1075
1106
 
1107
+ ## Consumer API
1108
+ GenesisRuby::Api::Requests::NonFinancial::Consumers::Create
1109
+ GenesisRuby::Api::Requests::NonFinancial::Consumers::Retrieve
1110
+ GenesisRuby::Api::Requests::NonFinancial::Consumers::Update
1111
+ GenesisRuby::Api::Requests::NonFinancial::Consumers::Disable
1112
+ GenesisRuby::Api::Requests::NonFinancial::Consumers::Enable
1113
+ GenesisRuby::Api::Requests::NonFinancial::Consumers::GetCards
1114
+
1115
+ ## Retrieval API
1116
+ GenesisRuby::Api::Requests::NonFinancial::Fraud::Retrieval::Transaction
1117
+ GenesisRuby::Api::Requests::NonFinancial::Fraud::Retrieval::DateRange
1118
+
1119
+ ## SCA API
1120
+ GenesisRuby::Api::Requests::NonFinancial::Sca::Checker
1121
+
1122
+ ## Processed Transaction API
1123
+ GenesisRuby::Api::Requests::NonFinancial::ProcessedTransactions::Transaction
1124
+ GenesisRuby::Api::Requests::NonFinancial::ProcessedTransactions::DateRange
1125
+ GenesisRuby::Api::Requests::NonFinancial::ProcessedTransactions::PostDateRange
1126
+
1127
+ ## Tokenization API
1128
+ GenesisRuby::Api::Requests::NonFinancial::Tokenization::Tokenize
1129
+ GenesisRuby::Api::Requests::NonFinancial::Tokenization::Detokenize
1130
+ GenesisRuby::Api::Requests::NonFinancial::Tokenization::UpdateToken
1131
+ GenesisRuby::Api::Requests::NonFinancial::Tokenization::Cryptogram
1132
+ GenesisRuby::Api::Requests::NonFinancial::Tokenization::ValidateToken
1133
+ GenesisRuby::Api::Requests::NonFinancial::Tokenization::DeleteToken
1134
+ GenesisRuby::Api::Requests::NonFinancial::Tokenization::GetCard
1135
+
1136
+ ## KYC Know Your Customer API
1137
+ GenesisRuby::Api::Requests::NonFinancial::Kyc::ConsumerRegistration::Create
1138
+
1139
+ ## Chargeback API
1140
+ GenesisRuby::Api::Requests::NonFinancial::Fraud::Chargeback::Transaction
1141
+ GenesisRuby::Api::Requests::NonFinancial::Fraud::Chargeback::DateRange
1142
+
1143
+ ## SAFE/TC40 Report
1144
+ GenesisRuby::Api::Requests::NonFinancial::Fraud::Reports::Transaction
1145
+ GenesisRuby::Api::Requests::NonFinancial::Fraud::Reports::DateRange
1146
+
1147
+ ## Fx API
1148
+ GenesisRuby::Api::Requests::NonFinancial::Fx::GetTiers
1149
+ GenesisRuby::Api::Requests::NonFinancial::Fx::GetTier
1150
+ GenesisRuby::Api::Requests::NonFinancial::Fx::GetRates
1151
+ GenesisRuby::Api::Requests::NonFinancial::Fx::GetRate
1152
+ GenesisRuby::Api::Requests::NonFinancial::Fx::SearchRate
1153
+
1076
1154
  ```
1077
1155
 
1078
1156
  ### Manual initialization
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.3
1
+ 0.2.5
@@ -1001,6 +1001,12 @@ module GenesisRuby
1001
1001
  country: 'SAINT VINCENT AND THE GRENADINES',
1002
1002
  exponent: '2'
1003
1003
  },
1004
+ XCG: {
1005
+ name: 'Netherlands Antillean guilder',
1006
+ code: '532',
1007
+ country: 'Curaçao (CW), Sint Maarten (SX)',
1008
+ exponent: '2'
1009
+ },
1004
1010
  XDR: {
1005
1011
  name: 'SDR (Special Drawing Right)',
1006
1012
  code: '960',
@@ -0,0 +1,49 @@
1
+ module GenesisRuby
2
+ module Api
3
+ module Constants
4
+ module NonFinancial
5
+ module Kyc
6
+ # Document Types allowed values
7
+ class DocumentTypes
8
+
9
+ extend Mixins::Constants::Common
10
+
11
+ # SSN
12
+ SSN = 0
13
+
14
+ # Passport Registry
15
+ PASSPORT_REGISTRY = 1
16
+
17
+ # Personal ID / National ID
18
+ PERSONAL_ID = 2
19
+
20
+ # Identity Card
21
+ IDENTITY_CARD = 3
22
+
23
+ # Driver License
24
+ DRIVER_LICENSE = 4
25
+
26
+ # Travel Document
27
+ TRAVEL_DOCUMENT = 8
28
+
29
+ # Residence Permit
30
+ RESIDENCE_PERMIT = 12
31
+
32
+ # Identity Certificate
33
+ IDENTITY_CERTIFICATE = 13
34
+
35
+ # Registro Federal de Contribuyentes
36
+ FEDERAL_REGISTER = 16
37
+
38
+ # Credencial de Elector
39
+ ELECTRON_CREDENTIALS = 17
40
+
41
+ # CPF
42
+ CPF = 18
43
+
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,22 @@
1
+ module GenesisRuby
2
+ module Api
3
+ module Constants
4
+ module NonFinancial
5
+ module Kyc
6
+ # Gender allowed values
7
+ class Genders
8
+
9
+ extend Mixins::Constants::Common
10
+
11
+ # Male
12
+ MALE = 'M'.freeze
13
+
14
+ # Female
15
+ FEMALE = 'F'.freeze
16
+
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,37 @@
1
+ module GenesisRuby
2
+ module Api
3
+ module Constants
4
+ module Transactions
5
+ module Parameters
6
+ # Names of supported African Mobile network operators
7
+ class AfricanMobileOperators
8
+
9
+ extend Mixins::Constants::Common
10
+
11
+ AIRTEL = 'AIRTEL'.freeze
12
+
13
+ MOVITEL = 'MOVITEL'.freeze
14
+
15
+ MTN = 'MTN'.freeze
16
+
17
+ SAFARICOM = 'SAFARICOM'.freeze
18
+
19
+ TIGO = 'TIGO'.freeze
20
+
21
+ VODACOM = 'VODACOM'.freeze
22
+
23
+ class << self
24
+
25
+ # Return African Mobile Sale operators
26
+ def sale
27
+ %w(VODACOM SAFARICOM AIRTEL MTN)
28
+ end
29
+
30
+ end
31
+
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,24 @@
1
+ module GenesisRuby
2
+ module Api
3
+ module Constants
4
+ module Transactions
5
+ module Parameters
6
+ module CustomerIdentification
7
+ # Specifies if the document ID belongs to the sender or the receiver of the OCT
8
+ class CustomerIdentificationOwner
9
+
10
+ extend Api::Mixins::Constants::Common
11
+
12
+ # Document ID belongs to
13
+ SENDER = 'sender'.freeze
14
+
15
+ # Document ID belongs to
16
+ RECEIVER = 'receiver'.freeze
17
+
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,24 @@
1
+ module GenesisRuby
2
+ module Api
3
+ module Constants
4
+ module Transactions
5
+ module Parameters
6
+ module CustomerIdentification
7
+ # Specifies the type of the document ID.
8
+ class CustomerIdentificationSubtype
9
+
10
+ extend Api::Mixins::Constants::Common
11
+
12
+ # Document ID type - business
13
+ BUSINESS = 'business'.freeze
14
+
15
+ # Document ID type - individual
16
+ INDIVIDUAL = 'individual'.freeze
17
+
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,63 @@
1
+ module GenesisRuby
2
+ module Api
3
+ module Constants
4
+ module Transactions
5
+ module Parameters
6
+ module CustomerIdentification
7
+ # Specifies the type of the document ID.
8
+ class CustomerIdentificationType
9
+
10
+ extend Api::Mixins::Constants::Common
11
+
12
+ # Document ID type - birthdate certificate
13
+ BIRTH_DATE = 'birth_date'.freeze
14
+
15
+ # Document ID type - unspecified
16
+ UNSPECIFIED = 'unspecified'.freeze
17
+
18
+ # Document ID type - national
19
+ NATIONAL = 'national'.freeze
20
+
21
+ # Document ID type - passport number
22
+ PASSPORT_NUMBER = 'passport_number'.freeze
23
+
24
+ # Document ID type - driver license
25
+ DRIVER_LICENSE = 'driver_license'.freeze
26
+
27
+ # Document ID type - tax
28
+ TAX = 'tax'.freeze
29
+
30
+ # Document ID type - company registration number
31
+ COMPANY_REGISTRATION_NUMBER = 'company_registration_number'.freeze
32
+
33
+ # Document ID type - proxy
34
+ PROXY = 'proxy'.freeze
35
+
36
+ # Document ID type - social security number
37
+ SOCIAL_SECURITY_NUMBER = 'social_security_number'.freeze
38
+
39
+ # Document ID type - alien registration number
40
+ ALIEN_REGISTRATION_NUMBER = 'alien_registration_number'.freeze
41
+
42
+ # Document ID type - law enforcement
43
+ LAW_ENFORCEMENT = 'law_enforcement'.freeze
44
+
45
+ # Document ID type - military
46
+ MILITARY = 'military'.freeze
47
+
48
+ # Document ID type - travel
49
+ TRAVEL = 'travel'.freeze
50
+
51
+ # Document ID type - email
52
+ EMAIL = 'email'.freeze
53
+
54
+ # Document ID type - phone number
55
+ PHONE_NUMBER = 'phone_number'.freeze
56
+
57
+ end
58
+ end
59
+ end
60
+ end
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,31 @@
1
+ module GenesisRuby
2
+ module Api
3
+ module Constants
4
+ module Transactions
5
+ module Parameters
6
+ # Digital Asset Types
7
+ class DigitalAssetTypes
8
+
9
+ extend Mixins::Constants::Common
10
+
11
+ # Default crypto flag
12
+ CRYPTO = 'crypto'.freeze
13
+
14
+ # Central Bank Digital Currency or tokenized deposits
15
+ CBDC = 'cbdc'.freeze
16
+
17
+ # Stablecoin (Fiat-backed)
18
+ STABLECOIN = 'stablecoin'.freeze
19
+
20
+ # Blockchain native token/coin
21
+ BLOCKCHAIN_NATIVE_TOKEN = 'blockchain_native_token'.freeze
22
+
23
+ # Non-fungible token
24
+ NFT = 'nft'.freeze
25
+
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
31
+ 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,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