solidus-returnly 0.13.0 → 0.13.1

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: 49a3132d794c84523c95f735e48248ec39f4df2ed08650dfdc4770897b7478e4
4
- data.tar.gz: ed416b5e72b84d710baffc1bba8103282ed3637040ceb093622414f855c50fdc
3
+ metadata.gz: 7594c218615432f65ad5b224829ebf2df03f0db37e531d4126f7e62452a66b55
4
+ data.tar.gz: 4faf0637030be2940004a35ed4665f2543690f97c7970195d61a7c336454dca5
5
5
  SHA512:
6
- metadata.gz: f73a7bcf01193de619aac70ded0b6d7b5ac85968d7e75de241d0e8d243922e1dddea96bc240207bfdee8a39ebd867291f8af176a191220348bc4deaa2e0990aa
7
- data.tar.gz: 00fe2aac2e84fcd8f278547aadf930f112f1dc58ac20ee979c54dbe257553e58c12aa2d3602448054bfcc0af7ecdfa0fecb62630aab4a781faf7cafcfb72b2aa
6
+ metadata.gz: 85e37963b24df33daa88f893fb5741883c75bc28f72f00c70c5dd9ec052e7031674cc8a939d1302ab52a0f1935bc518424d6e58867ec0264498871044b28f395
7
+ data.tar.gz: 225785b8d814aef2b28dbc3a911eef6465430c2fa9a20df07121a15a27225d8e4813384e8eadb270e9aee3b651c8bd62ec4e2540627ffb37dc23f5294f5fedc1
@@ -44,13 +44,6 @@ class RefundPayments
44
44
  details[:avs_result_code] = payment.avs_response if payment.avs_response.present?
45
45
  details[:cvv_result_code] = payment.cvv_response_code if payment.cvv_response_code.present?
46
46
 
47
- source = payment.source
48
-
49
- if source.respond_to?(:number) || source.respond_to?(:last_digits)
50
- details[:credit_card_number] = source.number || source.last_digits if source.number.present? || source.last_digits.present?
51
- details[:credit_card_company] = source.brand if source.brand.present?
52
- end
53
-
54
47
  details[:gift_card_id] = @gift_card.id if @gift_card.id.present?
55
48
  details[:gift_card_code] = @gift_card.code if @gift_card.code.present?
56
49
 
@@ -94,13 +94,6 @@ module Returnly
94
94
  details[:avs_result_code] = payment.avs_response if payment.avs_response.present?
95
95
  details[:cvv_result_code] = payment.cvv_response_code if payment.cvv_response_code.present?
96
96
 
97
- source = payment.source
98
-
99
- if source.respond_to?(:number) || source.respond_to?(:last_digits)
100
- details[:credit_card_number] = source.number || source.last_digits if source.number.present? || source.last_digits.present?
101
- details[:credit_card_company] = source.brand if source.brand.present?
102
- end
103
-
104
97
  details[:gift_card_id] = gift_card.id if gift_card.id.present?
105
98
  details[:gift_card_code] = gift_card.code if gift_card.code.present?
106
99
 
@@ -1,5 +1,5 @@
1
1
  module Returnly
2
- VERSION = '0.13.0'
2
+ VERSION = '0.13.1'
3
3
 
4
4
  def platform_version
5
5
  defined?(Solidus)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus-returnly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Returnly Technologies, Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-02 00:00:00.000000000 Z
11
+ date: 2019-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: solidus