connect-sdk-ruby 1.25.0 → 1.26.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/connect-sdk-ruby.gemspec +1 -1
- data/lib/ingenico/connect/sdk/domain/payment/payment_status_output.rb +7 -0
- data/lib/ingenico/connect/sdk/merchant/payments/payments_client.rb +2 -11
- data/lib/ingenico/connect/sdk/merchant/payouts/payouts_client.rb +1 -3
- data/lib/ingenico/connect/sdk/meta_data_provider.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 357b25635fc640a2ff926d575f1fda56a7894387d03396ece7f2d79f048bf872
|
4
|
+
data.tar.gz: 6439c3caf5881ecdb1811a2a16e5a9f92d3cdba41ccaf7cd42cdeb455c80ee0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7ce97837f7711c8b641d3babf71e59c48f83e9e553b015599166049e7490a2e38aa736d0a73554f2a8a993ad6b8357251ba2afeaafdb163aa8e90937ae6082f
|
7
|
+
data.tar.gz: f52cad9b839552ae561e38110754488a97a82ce0fc6f29eea9c870ff77670fc3dc620c9408531ba9ff5ad6f93a5b06887f4141f0fb12d504527c69b8db4d8f93
|
data/connect-sdk-ruby.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = 'connect-sdk-ruby'
|
3
|
-
spec.version = '1.
|
3
|
+
spec.version = '1.26.0'
|
4
4
|
spec.authors = ['Ingenico ePayments']
|
5
5
|
spec.email = ['github@epay.ingenico.com']
|
6
6
|
spec.summary = %q{SDK to communicate with the Ingenico ePayments platform using the Ingenico Connect Server API}
|
@@ -16,10 +16,14 @@ module Ingenico::Connect::SDK
|
|
16
16
|
# true/false
|
17
17
|
attr_accessor :is_refundable
|
18
18
|
|
19
|
+
# String
|
20
|
+
attr_accessor :three_d_secure_status
|
21
|
+
|
19
22
|
def to_h
|
20
23
|
hash = super
|
21
24
|
add_to_hash(hash, 'isAuthorized', @is_authorized)
|
22
25
|
add_to_hash(hash, 'isRefundable', @is_refundable)
|
26
|
+
add_to_hash(hash, 'threeDSecureStatus', @three_d_secure_status)
|
23
27
|
hash
|
24
28
|
end
|
25
29
|
|
@@ -31,6 +35,9 @@ module Ingenico::Connect::SDK
|
|
31
35
|
if hash.has_key?('isRefundable')
|
32
36
|
@is_refundable = hash['isRefundable']
|
33
37
|
end
|
38
|
+
if hash.has_key?('threeDSecureStatus')
|
39
|
+
@three_d_secure_status = hash['threeDSecureStatus']
|
40
|
+
end
|
34
41
|
end
|
35
42
|
end
|
36
43
|
end
|
@@ -60,13 +60,7 @@ module Ingenico::Connect::SDK
|
|
60
60
|
Ingenico::Connect::SDK::Domain::Payment::CreatePaymentResponse,
|
61
61
|
context)
|
62
62
|
rescue ResponseException => e
|
63
|
-
error_type =
|
64
|
-
400 => Ingenico::Connect::SDK::Domain::Payment::PaymentErrorResponse,
|
65
|
-
402 => Ingenico::Connect::SDK::Domain::Payment::PaymentErrorResponse,
|
66
|
-
403 => Ingenico::Connect::SDK::Domain::Payment::PaymentErrorResponse,
|
67
|
-
502 => Ingenico::Connect::SDK::Domain::Payment::PaymentErrorResponse,
|
68
|
-
503 => Ingenico::Connect::SDK::Domain::Payment::PaymentErrorResponse,
|
69
|
-
}.fetch(e.status_code, Ingenico::Connect::SDK::Domain::Errors::ErrorResponse)
|
63
|
+
error_type = Ingenico::Connect::SDK::Domain::Payment::PaymentErrorResponse
|
70
64
|
error_object = @communicator.marshaller.unmarshal(e.body, error_type)
|
71
65
|
raise create_exception(e.status_code, e.body, error_object, context)
|
72
66
|
end
|
@@ -428,10 +422,7 @@ module Ingenico::Connect::SDK
|
|
428
422
|
Ingenico::Connect::SDK::Domain::Refund::RefundResponse,
|
429
423
|
context)
|
430
424
|
rescue ResponseException => e
|
431
|
-
error_type =
|
432
|
-
400 => Ingenico::Connect::SDK::Domain::Refund::RefundErrorResponse,
|
433
|
-
404 => Ingenico::Connect::SDK::Domain::Refund::RefundErrorResponse,
|
434
|
-
}.fetch(e.status_code, Ingenico::Connect::SDK::Domain::Errors::ErrorResponse)
|
425
|
+
error_type = Ingenico::Connect::SDK::Domain::Refund::RefundErrorResponse
|
435
426
|
error_object = @communicator.marshaller.unmarshal(e.body, error_type)
|
436
427
|
raise create_exception(e.status_code, e.body, error_object, context)
|
437
428
|
end
|
@@ -48,9 +48,7 @@ module Ingenico::Connect::SDK
|
|
48
48
|
Ingenico::Connect::SDK::Domain::Payout::PayoutResponse,
|
49
49
|
context)
|
50
50
|
rescue ResponseException => e
|
51
|
-
error_type =
|
52
|
-
400 => Ingenico::Connect::SDK::Domain::Payout::PayoutErrorResponse,
|
53
|
-
}.fetch(e.status_code, Ingenico::Connect::SDK::Domain::Errors::ErrorResponse)
|
51
|
+
error_type = Ingenico::Connect::SDK::Domain::Payout::PayoutErrorResponse
|
54
52
|
error_object = @communicator.marshaller.unmarshal(e.body, error_type)
|
55
53
|
raise create_exception(e.status_code, e.body, error_object, context)
|
56
54
|
end
|
@@ -5,7 +5,7 @@ module Ingenico::Connect::SDK
|
|
5
5
|
|
6
6
|
# Manages metadata about the server using the SDK
|
7
7
|
class MetaDataProvider
|
8
|
-
@@SDK_VERSION = '1.
|
8
|
+
@@SDK_VERSION = '1.26.0'
|
9
9
|
@@SERVER_META_INFO_HEADER = 'X-GCS-ServerMetaInfo'
|
10
10
|
@@PROHIBITED_HEADERS = [@@SERVER_META_INFO_HEADER, 'X-GCS-Idempotence-Key',
|
11
11
|
'Date', 'Content-Type', 'Authorization'].sort!.freeze
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: connect-sdk-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.26.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ingenico ePayments
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09
|
11
|
+
date: 2018-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|