genesis_ruby 0.1.8 → 0.1.9

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 (41) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +31 -0
  3. data/Gemfile.lock +2 -2
  4. data/README.md +29 -0
  5. data/VERSION +1 -1
  6. data/lib/genesis_ruby/api/constants/transactions/parameters/cash_payments/company_types.rb +45 -0
  7. data/lib/genesis_ruby/api/constants/transactions/parameters/cash_payments/genders.rb +27 -0
  8. data/lib/genesis_ruby/api/constants/transactions/parameters/cash_payments/marital_statuses.rb +39 -0
  9. data/lib/genesis_ruby/api/constants/transactions/parameters/wallets/pay_pal/payment_types.rb +31 -0
  10. data/lib/genesis_ruby/api/mixins/requests/customer_address/billing_info_attributes.rb +11 -10
  11. data/lib/genesis_ruby/api/mixins/requests/customer_address/shipping_info_attributes.rb +11 -10
  12. data/lib/genesis_ruby/api/mixins/requests/financial/consumer_identifier_attributes.rb +26 -0
  13. data/lib/genesis_ruby/api/requests/base/financials/south_american_payments.rb +59 -0
  14. data/lib/genesis_ruby/api/requests/financial/cards/argencard.rb +26 -0
  15. data/lib/genesis_ruby/api/requests/financial/cards/aura.rb +26 -0
  16. data/lib/genesis_ruby/api/requests/financial/cards/cabal.rb +26 -0
  17. data/lib/genesis_ruby/api/requests/financial/cards/cencosud.rb +26 -0
  18. data/lib/genesis_ruby/api/requests/financial/cards/elo.rb +26 -0
  19. data/lib/genesis_ruby/api/requests/financial/cards/naranja.rb +26 -0
  20. data/lib/genesis_ruby/api/requests/financial/cards/nativa.rb +26 -0
  21. data/lib/genesis_ruby/api/requests/financial/cards/tarjeta_shopping.rb +26 -0
  22. data/lib/genesis_ruby/api/requests/financial/cash_payments/baloto.rb +26 -0
  23. data/lib/genesis_ruby/api/requests/financial/cash_payments/banco_de_occidente.rb +26 -0
  24. data/lib/genesis_ruby/api/requests/financial/cash_payments/boleto.rb +26 -0
  25. data/lib/genesis_ruby/api/requests/financial/cash_payments/efecty.rb +26 -0
  26. data/lib/genesis_ruby/api/requests/financial/cash_payments/oxxo.rb +26 -0
  27. data/lib/genesis_ruby/api/requests/financial/cash_payments/pago_facil.rb +26 -0
  28. data/lib/genesis_ruby/api/requests/financial/cash_payments/pix.rb +92 -0
  29. data/lib/genesis_ruby/api/requests/financial/cash_payments/redpagos.rb +26 -0
  30. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/bancomer.rb +33 -0
  31. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/bradesco.rb +33 -0
  32. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/davivienda.rb +34 -0
  33. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/itau.rb +33 -0
  34. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/pse.rb +33 -0
  35. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/rapi_pago.rb +33 -0
  36. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/santander.rb +33 -0
  37. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/webpay.rb +33 -0
  38. data/lib/genesis_ruby/api/requests/financial/wallets/pay_pay.rb +65 -0
  39. data/lib/genesis_ruby/dependencies.rb +1 -0
  40. data/lib/genesis_ruby/version.rb +1 -1
  41. metadata +34 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a4bea22025e527f7dacbc7289c230b6f28124b6535c471c267225b608660d40c
4
- data.tar.gz: c437ee21a72d4d19686f908f59358245ec87356f84fa270e9a000c7a4f276d81
3
+ metadata.gz: 4b6a3bc808c8337039cad21fe38a3a45bee0cf9d4ccc9c1f60910d42b4e5f625
4
+ data.tar.gz: e120729e9f6bb2434e5997951cd34b4eca9239474b85f695a55d865bc9c4d4b9
5
5
  SHA512:
6
- metadata.gz: 79f51dcf85135a053d6556b3fb4096ecae5d8bef785c42714e40a32a6b25f299d36ed98cc25c8cb3e7c7741d247724d7ceba997d5e86a4e8016846bc5f7c9940
7
- data.tar.gz: 30030ba067499b12f280699ab2460840705c4b1fe24007047bfb3ebeba8e52b23f56a987ce094145db814425f6418384703b2bde54d967110bc78e4e38698109
6
+ metadata.gz: 4dbdef97fd80acf9e748d2e1279c8067522c0ba8091f53447f13c5c1c3e199fe3d0dd2344e1100db16170c33ea580c79755664f81c74fa7c63847723b68b622e
7
+ data.tar.gz: 1131aedc74b6ed7f60948cdcc9b53c268317519c78d6be600fbbc2f6a62744368c627e914037d202bcaf0cf267d8c6a734e56e18a95b02f21430c539a62cf47c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,34 @@
1
+ 0.1.9
2
+ -----
3
+ **Features**:
4
+
5
+ * Added PayPal transaction request
6
+ * Added PIX transaction request
7
+ * Added Boleto transaction request
8
+ * Added Neighborhood parameter support to Billing and Shipping address attributes
9
+ * Added Argencard transaction request
10
+ * Added Aura transaction request
11
+ * Added Baloto transaction request
12
+ * Added Banco de Occidente transaction request
13
+ * Added Bancomer transaction request
14
+ * Added Bradesco transaction request
15
+ * Added Cabal transaction request
16
+ * Added Cencosud transaction request
17
+ * Added Davivienda transaction request
18
+ * Added Efecty transaction request
19
+ * Added Elo transaction request
20
+ * Added Itau transaction request
21
+ * Added Naranja transaction request
22
+ * Added Nativa transaction request
23
+ * Added OXXO transaction request
24
+ * Added Pago Facil transaction request
25
+ * Added PSE transaction request
26
+ * Added RapiPago transaction request
27
+ * Added Redpagos transaction request
28
+ * Added Santander transaction request
29
+ * Added Tarjeta Shopping transaction request
30
+ * Added Webpay transaction request
31
+
1
32
  0.1.8
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.1.8)
4
+ genesis_ruby (0.1.9)
5
5
  net-http (~> 0.3.2)
6
6
  nokogiri (~> 1.14)
7
7
 
@@ -70,7 +70,7 @@ GEM
70
70
  rubocop (>= 0.63.1, < 2.0)
71
71
  public_suffix (5.1.1)
72
72
  racc (1.8.1)
73
- rack (2.2.9)
73
+ rack (2.2.10)
74
74
  rack-protection (3.2.0)
75
75
  base64 (>= 0.1.0)
76
76
  rack (~> 2.2, >= 2.2.4)
data/README.md CHANGED
@@ -992,15 +992,36 @@ You can use the following request classes to initialize the Genesis client:
992
992
  ```ruby
993
993
  # Financial
994
994
  ## Cards
995
+ GenesisRuby::Api::Requests::Financial::Cards::Argencard
996
+ GenesisRuby::Api::Requests::Financial::Cards::Aura
995
997
  GenesisRuby::Api::Requests::Financial::Cards::Authorize
996
998
  GenesisRuby::Api::Requests::Financial::Cards::Authorize3d
999
+ GenesisRuby::Api::Requests::Financial::Cards::Cabal
1000
+ GenesisRuby::Api::Requests::Financial::Cards::Cencosud
1001
+ GenesisRuby::Api::Requests::Financial::Cards::Elo
1002
+ GenesisRuby::Api::Requests::Financial::Cards::Naranja
1003
+ GenesisRuby::Api::Requests::Financial::Cards::Nativa
997
1004
  GenesisRuby::Api::Requests::Financial::Cards::Sale
998
1005
  GenesisRuby::Api::Requests::Financial::Cards::Sale3d
1006
+ GenesisRuby::Api::Requests::Financial::Cards::TarjetaShopping
999
1007
 
1000
1008
  ## Mobile
1001
1009
  GenesisRuby::Api::Requests::Financial::Mobile::ApplePay
1002
1010
  GenesisRuby::Api::Requests::Financial::Mobile::GooglePay
1003
1011
 
1012
+ ## Wallets
1013
+ GenesisRuby::Api::Requests::Financial::Wallets::PayPal
1014
+
1015
+ ## Cash Payments
1016
+ GenesisRuby::Api::Requests::Financial::CashPayments::Baloto
1017
+ GenesisRuby::Api::Requests::Financial::CashPayments::BancoDeOccidente
1018
+ GenesisRuby::Api::Requests::Financial::CashPayments::Boleto
1019
+ GenesisRuby::Api::Requests::Financial::CashPayments::Efecty
1020
+ GenesisRuby::Api::Requests::Financial::CashPayments::Oxxo
1021
+ GenesisRuby::Api::Requests::Financial::CashPayments::PagoFacil
1022
+ GenesisRuby::Api::Requests::Financial::CashPayments::Pix
1023
+ GenesisRuby::Api::Requests::Financial::CashPayments::Redpagos
1024
+
1004
1025
  # Web Payment Form
1005
1026
  ## Create
1006
1027
  GenesisRuby::Api::Requests::Wpf::Create
@@ -1008,6 +1029,14 @@ GenesisRuby::Api::Requests::Wpf::Create
1008
1029
  GenesisRuby::Api::Requests::Wpf::Reconcile
1009
1030
 
1010
1031
  # Online Banking Payments
1032
+ GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Bancomer
1033
+ GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Bradesco
1034
+ GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Davivienda
1035
+ GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Itau
1036
+ GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Pse
1037
+ GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::RapiPago
1038
+ GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Santander
1039
+ GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::Webpay
1011
1040
  # PayIn
1012
1041
  GenesisRuby::Api::Requests::Financial::OnlineBankingPayments::OnlineBanking::PayIn
1013
1042
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.8
1
+ 0.1.9
@@ -0,0 +1,45 @@
1
+ module GenesisRuby
2
+ module Api
3
+ module Constants
4
+ module Transactions
5
+ module Parameters
6
+ module CashPayments
7
+ # Company Types allowed values
8
+ class CompanyTypes
9
+
10
+ extend Api::Mixins::Constants::Common
11
+
12
+ # SA
13
+ SA = 0
14
+
15
+ # LTDA
16
+ LTDA = 1
17
+
18
+ # MEI
19
+ MEI = 2
20
+
21
+ # ME
22
+ ME = 3
23
+
24
+ # EIRELI
25
+ EIRELI = 4
26
+
27
+ # CONDOMINIUM
28
+ CONDOMINIUM = 5
29
+
30
+ # Closed
31
+ CLOSED = 6
32
+
33
+ # SIMPLE EIRELI
34
+ SIMPLE_EIRELI = 7
35
+
36
+ # OUTROS
37
+ OUTROS = 8
38
+
39
+ end
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,27 @@
1
+ module GenesisRuby
2
+ module Api
3
+ module Constants
4
+ module Transactions
5
+ module Parameters
6
+ module CashPayments
7
+ # Genders allowed values
8
+ class Genders
9
+
10
+ extend Mixins::Constants::Common
11
+
12
+ # Male
13
+ MALE = 0
14
+
15
+ # Female
16
+ FEMALE = 1
17
+
18
+ # Other
19
+ OTHER = 2
20
+
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,39 @@
1
+ module GenesisRuby
2
+ module Api
3
+ module Constants
4
+ module Transactions
5
+ module Parameters
6
+ module CashPayments
7
+ # Marital Statuses allowed values
8
+ class MaritalStatuses
9
+
10
+ extend Api::Mixins::Constants::Common
11
+
12
+ # Not Married
13
+ NOT_MARRIED = 0
14
+
15
+ # Married
16
+ MARRIED = 1
17
+
18
+ # Divorced
19
+ DIVORCED = 2
20
+
21
+ # Separate
22
+ SEPARATE = 3
23
+
24
+ # Widower
25
+ WIDOWER = 4
26
+
27
+ # Single
28
+ SINGLE = 5
29
+
30
+ # Other
31
+ OTHER = 6
32
+
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,31 @@
1
+ module GenesisRuby
2
+ module Api
3
+ module Constants
4
+ module Transactions
5
+ module Parameters
6
+ module Wallets
7
+ module PayPal
8
+ # Pay Pal allowed payment types
9
+ class PaymentTypes
10
+
11
+ extend Api::Mixins::Constants::Common
12
+
13
+ # Creates an order that should be captured later.
14
+ AUTHORIZE = 'authorize'.freeze
15
+
16
+ # Captures the created order immediately after the buyer confirms the payment.
17
+ SALE = 'sale'.freeze
18
+
19
+ # Creates an Express Checkout PayPal payment. Express Checkout eliminates one of the
20
+ # major causes of checkout abandonment by giving buyers all the transaction details at
21
+ # once, including order details, shipping options, insurance choices, and tax totals.
22
+ EXPRESS = 'express'.freeze
23
+
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
@@ -7,21 +7,22 @@ module GenesisRuby
7
7
  module BillingInfoAttributes
8
8
 
9
9
  attr_accessor :billing_first_name, :billing_last_name, :billing_address1, :billing_address2,
10
- :billing_zip_code, :billing_city, :billing_state, :billing_country
10
+ :billing_zip_code, :billing_city, :billing_state, :billing_country, :billing_neighborhood
11
11
 
12
12
  protected
13
13
 
14
14
  # Build Hash with all parameters
15
- def billing_address_parameters_structure
15
+ def billing_address_parameters_structure # rubocop:disable Metrics/MethodLength
16
16
  {
17
- first_name: billing_first_name,
18
- last_name: billing_last_name,
19
- address1: billing_address1,
20
- address2: billing_address2,
21
- zip_code: billing_zip_code,
22
- city: billing_city,
23
- state: billing_state,
24
- country: billing_country
17
+ first_name: billing_first_name,
18
+ last_name: billing_last_name,
19
+ address1: billing_address1,
20
+ address2: billing_address2,
21
+ zip_code: billing_zip_code,
22
+ city: billing_city,
23
+ state: billing_state,
24
+ neighborhood: billing_neighborhood,
25
+ country: billing_country
25
26
  }
26
27
  end
27
28
 
@@ -7,21 +7,22 @@ module GenesisRuby
7
7
  module ShippingInfoAttributes
8
8
 
9
9
  attr_accessor :shipping_first_name, :shipping_last_name, :shipping_address1, :shipping_address2,
10
- :shipping_zip_code, :shipping_city, :shipping_state, :shipping_country
10
+ :shipping_zip_code, :shipping_city, :shipping_state, :shipping_country, :shipping_neighborhood
11
11
 
12
12
  protected
13
13
 
14
14
  # Build Hash with all parameters
15
- def shipping_address_parameters_structure
15
+ def shipping_address_parameters_structure # rubocop:disable Metrics/MethodLength
16
16
  {
17
- first_name: shipping_first_name,
18
- last_name: shipping_last_name,
19
- address1: shipping_address1,
20
- address2: shipping_address2,
21
- zip_code: shipping_zip_code,
22
- city: shipping_city,
23
- state: shipping_state,
24
- country: shipping_country
17
+ first_name: shipping_first_name,
18
+ last_name: shipping_last_name,
19
+ address1: shipping_address1,
20
+ address2: shipping_address2,
21
+ zip_code: shipping_zip_code,
22
+ city: shipping_city,
23
+ state: shipping_state,
24
+ neighborhood: shipping_neighborhood,
25
+ country: shipping_country
25
26
  }
26
27
  end
27
28
 
@@ -0,0 +1,26 @@
1
+ module GenesisRuby
2
+ module Api
3
+ module Mixins
4
+ module Requests
5
+ module Financial
6
+ # Consumer Identifier Attributes
7
+ module ConsumerIdentifierAttributes
8
+
9
+ attr_reader :consumer_reference, :national_id
10
+
11
+ # Consumer reference is a unique consumer identifier
12
+ def consumer_reference=(value)
13
+ limited_string attribute: __method__, value: value.to_s.empty? ? nil : value.to_s, max: 20
14
+ end
15
+
16
+ # National Id of the consumer
17
+ def national_id=(value)
18
+ limited_string attribute: __method__, value: value.to_s.empty? ? nil : value.to_s, max: 20
19
+ end
20
+
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,59 @@
1
+ module GenesisRuby
2
+ module Api
3
+ module Requests
4
+ module Base
5
+ module Financials
6
+ # South American Payments base class
7
+ class SouthAmericanPayments < Base::Financial
8
+
9
+ include Api::Mixins::Requests::AddressInfoAttributes
10
+ include Api::Mixins::Requests::Financial::AsyncAttributes
11
+ include Api::Mixins::Requests::BirthDateAttributes
12
+ include Api::Mixins::Requests::Financial::PaymentAttributes
13
+ include Api::Mixins::Requests::Financial::ConsumerIdentifierAttributes
14
+
15
+ # Billing Country custom accessor
16
+ def billing_country
17
+ return nil unless @billing_country
18
+
19
+ @billing_country.to_s.upcase
20
+ end
21
+
22
+ protected
23
+
24
+ # Defines allowed billing countries
25
+ def allowed_billing_countries
26
+ raise NoMethodError, 'South American Payment requests require definition of allowed billing countries'
27
+ end
28
+
29
+ def init_field_validations
30
+ super
31
+
32
+ required_fields.push *%i[transaction_id return_success_url return_failure_url amount currency
33
+ consumer_reference national_id customer_email billing_country]
34
+
35
+ field_values.merge! billing_country: allowed_billing_countries
36
+ end
37
+
38
+ # South American payments
39
+ def payment_transaction_structure # rubocop:disable Metrics/MethodLength
40
+ payment_attributes_structure.merge(
41
+ {
42
+ return_success_url: return_success_url,
43
+ return_failure_url: return_failure_url,
44
+ consumer_reference: consumer_reference,
45
+ national_id: national_id,
46
+ birth_date: birth_date,
47
+ customer_email: customer_email,
48
+ billing_address: billing_address_parameters_structure,
49
+ shipping_address: shipping_address_parameters_structure
50
+ }
51
+ )
52
+ end
53
+
54
+ end
55
+ end
56
+ end
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,26 @@
1
+ module GenesisRuby
2
+ module Api
3
+ module Requests
4
+ module Financial
5
+ module Cards
6
+ # Argencard is a debit or credit card used in Argentina.
7
+ class Argencard < Base::Financials::SouthAmericanPayments
8
+
9
+ protected
10
+
11
+ # Argencard transaction type
12
+ def transaction_type
13
+ Api::Constants::Transactions::ARGENCARD
14
+ end
15
+
16
+ # Argencard allowed billing countries
17
+ def allowed_billing_countries
18
+ %w(AR)
19
+ end
20
+
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,26 @@
1
+ module GenesisRuby
2
+ module Api
3
+ module Requests
4
+ module Financial
5
+ module Cards
6
+ # Aura is a local Brazilian credit card.
7
+ class Aura < Base::Financials::SouthAmericanPayments
8
+
9
+ protected
10
+
11
+ # Aura transaction type
12
+ def transaction_type
13
+ Api::Constants::Transactions::AURA
14
+ end
15
+
16
+ # Allowed Billing Countries for Aura transaction request
17
+ def allowed_billing_countries
18
+ %w(BR)
19
+ end
20
+
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,26 @@
1
+ module GenesisRuby
2
+ module Api
3
+ module Requests
4
+ module Financial
5
+ module Cards
6
+ # Cabal is a local debit/credit card brand in Argentina which can be used for online purchases.
7
+ class Cabal < Base::Financials::SouthAmericanPayments
8
+
9
+ protected
10
+
11
+ # Cabal transaction type
12
+ def transaction_type
13
+ Api::Constants::Transactions::CABAL
14
+ end
15
+
16
+ # Allowed billing countries for Cabal transaction type
17
+ def allowed_billing_countries
18
+ %w(AR)
19
+ end
20
+
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,26 @@
1
+ module GenesisRuby
2
+ module Api
3
+ module Requests
4
+ module Financial
5
+ module Cards
6
+ # Cencosud is a local credit card in Argentina
7
+ class Cencosud < Base::Financials::SouthAmericanPayments
8
+
9
+ protected
10
+
11
+ # Cencosud transaction type
12
+ def transaction_type
13
+ Api::Constants::Transactions::CENCOSUD
14
+ end
15
+
16
+ # Allowed billing countries for Cencosud transaction request
17
+ def allowed_billing_countries
18
+ %w(AR)
19
+ end
20
+
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,26 @@
1
+ module GenesisRuby
2
+ module Api
3
+ module Requests
4
+ module Financial
5
+ module Cards
6
+ # Elo is a local Brazilian payment card.
7
+ class Elo < Base::Financials::SouthAmericanPayments
8
+
9
+ protected
10
+
11
+ # Elo transaction type
12
+ def transaction_type
13
+ Api::Constants::Transactions::ELO
14
+ end
15
+
16
+ # Allowed billing countries for Elo transaction request
17
+ def allowed_billing_countries
18
+ %w(BR)
19
+ end
20
+
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,26 @@
1
+ module GenesisRuby
2
+ module Api
3
+ module Requests
4
+ module Financial
5
+ module Cards
6
+ # Naranja is a local credit card issued in Argentina which can be used for purchases over the internet.
7
+ class Naranja < Base::Financials::SouthAmericanPayments
8
+
9
+ protected
10
+
11
+ # Naranja transaction type
12
+ def transaction_type
13
+ Api::Constants::Transactions::NARANJA
14
+ end
15
+
16
+ # Allowed billing countries for Naranja transaction request
17
+ def allowed_billing_countries
18
+ %w(AR)
19
+ end
20
+
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,26 @@
1
+ module GenesisRuby
2
+ module Api
3
+ module Requests
4
+ module Financial
5
+ module Cards
6
+ # Nativa is an Argentinian credit card provided by the National Bank of Argentina.
7
+ class Nativa < Base::Financials::SouthAmericanPayments
8
+
9
+ protected
10
+
11
+ # Nativa transaction type
12
+ def transaction_type
13
+ Api::Constants::Transactions::NATIVA
14
+ end
15
+
16
+ # Allowed billing countries for Nativa transaction request
17
+ def allowed_billing_countries
18
+ %w(AR)
19
+ end
20
+
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,26 @@
1
+ module GenesisRuby
2
+ module Api
3
+ module Requests
4
+ module Financial
5
+ module Cards
6
+ # Tarjeta Shopping is a cash payment in Argentina
7
+ class TarjetaShopping < Base::Financials::SouthAmericanPayments
8
+
9
+ protected
10
+
11
+ # Tarjeta Shopping transaction type
12
+ def transaction_type
13
+ Api::Constants::Transactions::TARJETA_SHOPPING
14
+ end
15
+
16
+ # Allowed billing countries for Tarjeta Shopping transaction request
17
+ def allowed_billing_countries
18
+ %w(AR)
19
+ end
20
+
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,26 @@
1
+ module GenesisRuby
2
+ module Api
3
+ module Requests
4
+ module Financial
5
+ module CashPayments
6
+ # Baloto is a cash payment option in Colombia.
7
+ class Baloto < Base::Financials::SouthAmericanPayments
8
+
9
+ protected
10
+
11
+ # Baloto transaction type
12
+ def transaction_type
13
+ Api::Constants::Transactions::BALOTO
14
+ end
15
+
16
+ # Baloto allowed billing countries
17
+ def allowed_billing_countries
18
+ %w(CO)
19
+ end
20
+
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end