solidus_mp_dois 0.0.12 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 74e7c22a9ffdc640e96a03feaa6c0861e27bbb9dca376665a0712728a322374b
4
- data.tar.gz: 034cedccb5784dc40a60d1380c65af9605b620b0d97acfe043b05a6d3c18a8ad
3
+ metadata.gz: eb956fb58c63e4cae3e5314e2d9249384c0ec41a59be411af3a0b530281769e3
4
+ data.tar.gz: 68a9332bf90f336b9fbf9195f616cc480e55ca1a5ab58fb84afb66051b87b770
5
5
  SHA512:
6
- metadata.gz: 9c407881be2d45eee817d5eb092d9594f61d009e0bce234ce77cdb130116d635bdae77b335ace42d103dbf1e8906ae69887980825ce78d718ccfb6d49193f08f
7
- data.tar.gz: b6071db18ddd76e2acbf53e37cb18590a600df4c8d72206d53a7c5e7f962a4dbdb294cad80474c67f5b90187d83b5ea5048b937757a86cdc2e95db771bda9746
6
+ metadata.gz: 8b9562a0f079359eb0afcb4e1beede5cc87412ae1169071c545c88e61af326b375d83114a74373dbc24d9e27875ae318e1b3afc946ec704772f14eabaa52363a
7
+ data.tar.gz: 83e9bf7c1af82a7b48dc1bdcad506a0531c32a8efaa182d8f79ede1c44e02e82f061f89aa8fa4503f446b96e918ee95f207328aee0370991ccc256d22ab367d3
@@ -8,7 +8,7 @@
8
8
 
9
9
  <div class="field">
10
10
  <%= label_tag :external_id, "ID" %>
11
- <%= text_field_tag :txid, payment.source.external_id, class:"fullwidth", disabled: true %>
11
+ <%= text_field_tag :external_id, payment.source.external_id, class:"fullwidth", disabled: true %>
12
12
  </div>
13
13
 
14
14
  <div class="field">
@@ -45,7 +45,7 @@
45
45
 
46
46
  <div class="field">
47
47
  <%= label_tag :card_brand, "Bandeira" %>
48
- <%= text_field_tag :card_brand, payment.source.card_brand.upcase, class:"fullwidth", disabled: true %>
48
+ <%= text_field_tag :card_brand, payment.source.try(:card_brand)&.upcase, class:"fullwidth", disabled: true %>
49
49
  </div>
50
50
 
51
51
  <div class="field">
@@ -40,7 +40,7 @@
40
40
 
41
41
  <div class="field">
42
42
  <%= label_tag :expiration, "Expiração" %>
43
- <%= text_field_tag :expiration, payment.source.expiration.in_time_zone('America/Sao_Paulo').strftime("%d/%m/%Y às %H:%M"), class:"fullwidth", disabled: true %>
43
+ <%= text_field_tag :expiration, payment.source.try(:expiration)&.in_time_zone('America/Sao_Paulo')&.strftime("%d/%m/%Y às %H:%M"), class:"fullwidth", disabled: true %>
44
44
  </div>
45
45
  </div>
46
46
 
@@ -1 +1,5 @@
1
- json.call(payment_source, :id, :external_id, :status, :amount, :expiration, :email, :tax_id, :payment_method_id, :qr_code)
1
+ if payment_source.respond_to?(:expiration)
2
+ json.call(payment_source, :id, :external_id, :status, :amount, :expiration, :email, :tax_id, :payment_method_id, :qr_code)
3
+ else
4
+ json.call(payment_source, :id, :external_id, :status, :amount, :expiration_date, :email, :tax_id, :payment_method_id, :qr_code)
5
+ end
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_mp_dois
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Todas Essas Coisas
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2024-12-17 00:00:00.000000000 Z
@@ -72,7 +72,7 @@ files:
72
72
  homepage: https://github.com/todasessascoisas/solidus_mp_dois
73
73
  licenses: []
74
74
  metadata: {}
75
- post_install_message:
75
+ post_install_message:
76
76
  rdoc_options: []
77
77
  require_paths:
78
78
  - lib
@@ -87,8 +87,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
89
  requirements: []
90
- rubygems_version: 3.5.10
91
- signing_key:
90
+ rubygems_version: 3.5.3
91
+ signing_key:
92
92
  specification_version: 4
93
93
  summary: ''
94
94
  test_files: []