eway_rapid 1.1.0 → 1.2.0
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/eway_rapid.gemspec +2 -2
- data/lib/eway_rapid/models/internal_models.rb +3 -3
- data/lib/eway_rapid/models/models.rb +4 -1
- data/lib/eway_rapid/rapid_client.rb +1 -0
- data/lib/eway_rapid/resources/err_code_resource_en.yml +12 -2
- data/lib/eway_rapid/version.rb +1 -1
- metadata +12 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f2a29f39ae0ac4978eb5f7ec2249cb8b1a8b557
|
4
|
+
data.tar.gz: f6e8c341f66dbc9cdfca0d86303cdb325547073a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ca7d2bb3517ec2858eb8f109a751c52ecb9d94973710bea5e57e2718475c3fa9708caefe72dd240d37ebb13a31f83ebc7389f76e944f3c9bbc31b0bdaa4408c
|
7
|
+
data.tar.gz: 3f02e43aedcd998edd56386c6da6abee30d996f76e5be97ea409cef7ff8b3808e6ea8ccf371b43f76585e4eb28902ba7f92300bc7353ec7986659280dbeb07e2
|
data/CHANGELOG.md
CHANGED
data/eway_rapid.gemspec
CHANGED
@@ -16,11 +16,11 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
17
|
spec.require_paths = ['lib']
|
18
18
|
|
19
|
-
spec.add_dependency 'rest-client', '
|
19
|
+
spec.add_dependency 'rest-client', ['>= 1.8.0', '< 3.0']
|
20
20
|
spec.add_dependency 'json', '~> 1.8.3'
|
21
21
|
|
22
22
|
spec.add_development_dependency 'bundler', '~> 1.10'
|
23
23
|
spec.add_development_dependency 'rake', '~> 10.0'
|
24
24
|
spec.add_development_dependency 'test-unit'
|
25
25
|
spec.add_development_dependency 'simplecov'
|
26
|
-
end
|
26
|
+
end
|
@@ -456,7 +456,7 @@ module EwayRapid
|
|
456
456
|
|
457
457
|
def self.from_array(array)
|
458
458
|
summaries = []
|
459
|
-
array.each {|summary_hash|
|
459
|
+
Array(array).each {|summary_hash|
|
460
460
|
obj = from_hash(summary_hash)
|
461
461
|
summaries.push(obj)
|
462
462
|
}
|
@@ -488,7 +488,7 @@ module EwayRapid
|
|
488
488
|
|
489
489
|
def self.from_array(array)
|
490
490
|
balances = []
|
491
|
-
array.each {|balance_hash|
|
491
|
+
Array(array).each {|balance_hash|
|
492
492
|
obj = from_hash(balance_hash)
|
493
493
|
balances.push(obj)
|
494
494
|
}
|
@@ -532,7 +532,7 @@ module EwayRapid
|
|
532
532
|
|
533
533
|
def self.from_array(array)
|
534
534
|
transactions = []
|
535
|
-
array.each {|transaction_hash|
|
535
|
+
Array(array).each {|transaction_hash|
|
536
536
|
obj = from_hash(transaction_hash)
|
537
537
|
transactions.push(obj)
|
538
538
|
}
|
@@ -244,8 +244,11 @@ module EwayRapid
|
|
244
244
|
# The partner ID generated from an eWAY partner agreement
|
245
245
|
attr_accessor :partner_id
|
246
246
|
|
247
|
-
#
|
247
|
+
# Deprecated, use secured_card_data
|
248
248
|
attr_accessor :third_party_wallet_id
|
249
|
+
|
250
|
+
# Card data ID, used for Secure Fields, Visa Checkout, AMEX Express Checkout and Android Pay
|
251
|
+
attr_accessor :secured_card_data
|
249
252
|
|
250
253
|
# The Transaction ID of an authorisation to capture
|
251
254
|
attr_accessor :auth_transaction_id
|
@@ -110,6 +110,7 @@ module EwayRapid
|
|
110
110
|
# code, invoice number, invoice reference
|
111
111
|
#
|
112
112
|
# @param [Enums::TransactionFilter] filter Filter definition for searching
|
113
|
+
# @return [QueryTransactionResponse]
|
113
114
|
def query_transaction_by_filter(filter)
|
114
115
|
index_of_value = filter.calculate_index_of_value
|
115
116
|
if index_of_value.nil?
|
@@ -103,12 +103,22 @@
|
|
103
103
|
- V6140: Merchant account is suspended
|
104
104
|
- V6141: Invalid PayPal account details or API signature
|
105
105
|
- V6142: Authorise not available for Bank/Branch
|
106
|
+
- V6143: Invalid Public Key
|
107
|
+
- V6146: Client Side Encryption Key Missing or Invalid
|
108
|
+
- V6147: Unable to Create One Time Code for Secure Field
|
109
|
+
- V6148: Secure Field has Expired
|
110
|
+
- V6149: Invalid Secure Field One Time Code
|
106
111
|
- V6150: Invalid Refund Amount
|
107
112
|
- V6151: Refund amount greater than original transaction
|
108
113
|
- V6152: Original transaction already refunded for total amount
|
109
114
|
- V6153: Card type not support by merchant
|
110
115
|
- V6160: Encryption Method Not Supported
|
111
116
|
- V6165: Invalid Visa Checkout data or decryption failed
|
117
|
+
- V6170: Invalid TransactionSearch, Invoice Number is not unique
|
118
|
+
- V6171: Invalid TransactionSearch, Invoice Number not found
|
119
|
+
- V6210: Secure Field Invalid Type
|
120
|
+
- V6211: Secure Field Invalid Div
|
121
|
+
- V6212: Invalid Style string for Secure Field
|
112
122
|
# Third party error code
|
113
123
|
- S5000: System Error
|
114
124
|
- S5011: PayPal Connection Error
|
@@ -125,8 +135,8 @@
|
|
125
135
|
- S9992: Communication error with Rapid API
|
126
136
|
- S9993: Authentication error with Rapid API
|
127
137
|
- S9994: Internal system error communicating with Rapid API
|
128
|
-
- S9995: Internal SDK Error, Bad Parameters
|
129
|
-
- S9996: Internal
|
138
|
+
- S9995: Internal SDK Error, Bad Parameters
|
139
|
+
- S9996: Internal Rapid server error
|
130
140
|
# Transaction response message
|
131
141
|
- A2000: Transaction Approved
|
132
142
|
- A2008: Honour With Identification
|
data/lib/eway_rapid/version.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eway_rapid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- eWAY
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.8.0
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
22
|
+
version: '3.0'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 1.8.0
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
32
|
+
version: '3.0'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: json
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|