spree-returnly 0.13.0 → 0.13.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: abacb9ca4551621d1cecf6e0c51003b692606e7b58f6d8a235f586aec75f216a
4
- data.tar.gz: 6be91cd2cd61ef37257e433b5ebdf81aa7adc5e8e761ff40b2a602cab9722f10
3
+ metadata.gz: a1c1b7e36b99b6f546fd27006870f129217b30d90644a03ce143b6c137e0fba4
4
+ data.tar.gz: 4faf0637030be2940004a35ed4665f2543690f97c7970195d61a7c336454dca5
5
5
  SHA512:
6
- metadata.gz: 3491d355992e2084e9a47acf969a2106251528da9e8398dc06e9df17f43e24f75381d8a29b626062b657ceb2a7f138020a083a41ff60b38ba723a223722f5eed
7
- data.tar.gz: 67426fe2170d1bbd41b13ecbdbd59020865b5cb6fb42b2c096b83a36a9d7d98aad06df15e4ccf8f880a5bb291ee6b0f4009292849d5457b8965c6e22e4b25bad
6
+ metadata.gz: 5c806d3f2b02a211e37fa502b9e6586d0d0556bb5caf1014a6665aea8cee0d2b1ab4e091e812c1b8fe6f415e94c7f1b2ba8681feb3aaf6ece9ea62bbd7f90b3b
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: spree-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: spree