genesis_ruby 0.2.8 → 0.3.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 28b3ffc2f8c2cb0705096ebfcccb8875a5c9c38e0d5e2231b5fa1b2cbdb24f67
4
- data.tar.gz: 95da15fb47cb68a96da44147e48143a395b06ebd0e64c707564cf0e6045c814d
3
+ metadata.gz: 12cd3e939b78536020d57469e7220098680c647f13ab38c88413b2e63d01fea0
4
+ data.tar.gz: 1073ba6ff04f83a1832c49960d3e448418bc04697921d4843cd8c05ec6201e42
5
5
  SHA512:
6
- metadata.gz: daada6305af5b16335f35653ccf946b376811b76c4768b702a4e7d3c1c2456355f123a9baf1d5c07a257e2242d5af303dbcdd9e67330a429f3681e4df6177f02
7
- data.tar.gz: b0298a9bff220ecdb6554dfe2a94faecc9cfd4dac03bbe1f1b90dbeb6baa2ff6a2b30c484214be3b385cb3d8d70f55af7485ccb2fd88b86cf0217504f9341338
6
+ metadata.gz: d003f0096e584454c1bae7e50d5414a0c1361e17619acd15f83e62782fa74988c3c0739cac2fec826ad9c28736bc5705293dcbfa5c861aead55e5556db9fe6ae
7
+ data.tar.gz: d47c721dc4883cbb8d447dc0373b354a4663bef49f9ea512b836e679a7646b9c5da7ed4ab10cbad4b1b234f33fe6003cf3c56b385f33c62f08c6d3b0cae2b5bc
data/CHANGELOG.md CHANGED
@@ -1,3 +1,23 @@
1
+ 0.3.1
2
+ -----
3
+
4
+ **Fixes**:
5
+
6
+ * Fixed Void transaction request execution
7
+
8
+ 0.3.0
9
+ -----
10
+ **Features**:
11
+
12
+ * Removed the following transaction types from Web Payment Form:
13
+ * banco_do_brasil
14
+ * bradesco
15
+ * itau
16
+ * pse
17
+ * redpagos
18
+ * santander
19
+ * webpay
20
+
1
21
  0.2.8
2
22
  -----
3
23
  **Features**
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- genesis_ruby (0.2.8)
4
+ genesis_ruby (0.3.1)
5
5
  net-http (~> 0.3.2)
6
6
  nokogiri (~> 1.14)
7
7
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.8
1
+ 0.3.1
@@ -30,6 +30,11 @@ module GenesisRuby
30
30
  super
31
31
  end
32
32
 
33
+ # Initialize Smart Router endpoint
34
+ def init_api_smart_router_configuration
35
+ api_config.url = build_request_url({ subdomain: 'smart_router', path: 'transactions' })
36
+ end
37
+
33
38
  end
34
39
  end
35
40
  end
@@ -43,11 +43,6 @@ module GenesisRuby
43
43
  }
44
44
  end
45
45
 
46
- # Initialize Smart Router endpoint
47
- def init_api_smart_router_configuration
48
- api_config.url = build_request_url({ subdomain: 'smart_router', path: 'transactions' })
49
- end
50
-
51
46
  # Initialize Financial class validations
52
47
  def init_field_validations
53
48
  super
@@ -9,6 +9,7 @@ module GenesisRuby
9
9
 
10
10
  include Mixins::Requests::Financial::BaseAttributes
11
11
  include Mixins::Requests::Financial::ReferenceAttributes
12
+ include Mixins::Requests::SmartRouterAttributes
12
13
 
13
14
  protected
14
15
 
@@ -17,6 +18,13 @@ module GenesisRuby
17
18
  Api::Constants::Transactions::VOID
18
19
  end
19
20
 
21
+ # Void transaction request configuration
22
+ def init_configuration
23
+ init_xml_configuration
24
+ init_api_gateway_configuration
25
+ init_api_smart_router_configuration if @configuration.force_smart_routing
26
+ end
27
+
20
28
  def init_field_validations
21
29
  required_fields.push *%i[transaction_id reference_id]
22
30
  end
@@ -14,21 +14,20 @@ module GenesisRuby
14
14
  def all # rubocop:disable Metrics/MethodLength
15
15
  [
16
16
  ACCOUNT_VERIFICATION, ALIPAY, ARGENCARD, APPLE_PAY, AURA, AUTHORIZE, AUTHORIZE_3D,
17
- BALOTO, BANCOMER, BANCONTACT, BANCO_DE_OCCIDENTE, BANCO_DO_BRASIL, BITPAY_PAYOUT, BITPAY_SALE, BOLETO,
18
- BRADESCO,
17
+ BALOTO, BANCOMER, BANCONTACT, BANCO_DE_OCCIDENTE, BITPAY_PAYOUT, BITPAY_SALE, BOLETO,
19
18
  CABAL, CASHU, CENCOSUD, DAVIVIENDA,
20
19
  EFECTY, ELO, EPS, EZEEWALLET, FASHIONCHEQUE,
21
20
  GOOGLE_PAY,
22
- IDEAL, IDEBIT_PAYIN, INSTA_DEBIT_PAYIN, INTERSOLVE, ITAU,
21
+ IDEAL, IDEBIT_PAYIN, INSTA_DEBIT_PAYIN, INTERSOLVE,
23
22
  MULTIBANCO, MY_BANK,
24
23
  NARANJA, NATIVA, NEOSURF, NETELLER,
25
24
  ONLINE_BANKING_PAYIN, OXXO,
26
- P24, PAGO_FACIL, PAY_PAL, PAYSAFECARD, PAYU, PIX, POLI, POST_FINANCE, PPRO, PSE,
27
- RAPI_PAGO, REDPAGOS, RUSSIAN_MOBILE_SALE,
28
- SAFETYPAY, SALE, SALE_3D, SANTANDER, SDD_INIT_RECURRING_SALE, SDD_SALE,
25
+ P24, PAGO_FACIL, PAY_PAL, PAYSAFECARD, PAYU, PIX, POLI, POST_FINANCE, PPRO,
26
+ RAPI_PAGO, RUSSIAN_MOBILE_SALE,
27
+ SAFETYPAY, SALE, SALE_3D, SDD_INIT_RECURRING_SALE, SDD_SALE,
29
28
  TARJETA_SHOPPING, TCS, TRUSTLY_SALE,
30
29
  UPI,
31
- WEBMONEY, WEBPAY, WECHAT
30
+ WEBMONEY, WECHAT
32
31
  ]
33
32
  end
34
33
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module GenesisRuby
4
4
 
5
- VERSION = '0.2.8'
5
+ VERSION = '0.3.1'
6
6
 
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: genesis_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - emerchantpay Ltd.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-08-08 00:00:00.000000000 Z
11
+ date: 2025-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-http
@@ -636,7 +636,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
636
636
  - !ruby/object:Gem::Version
637
637
  version: '0'
638
638
  requirements: []
639
- rubygems_version: 3.1.2
639
+ rubygems_version: 3.4.1
640
640
  signing_key:
641
641
  specification_version: 4
642
642
  summary: Ruby Client for Genesis Payment Processing Gateway