connect-sdk-ruby 2.40.0 → 2.41.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/capture/capture_status_output.rb +19 -0
- data/lib/ingenico/connect/sdk/domain/definitions/order_status_output.rb +19 -0
- data/lib/ingenico/connect/sdk/domain/payment/order_references.rb +14 -0
- data/lib/ingenico/connect/sdk/domain/payment/payment_status_output.rb +0 -19
- data/lib/ingenico/connect/sdk/domain/payment/refund_card_method_specific_output.rb +17 -0
- 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: 83d223cc9f1bfaa4816a663a2d956acb31bc824040555feb2c52b302141aa4b9
|
4
|
+
data.tar.gz: 8cc332fa3ec1f5aeadef7b5a8974112816849346ed067cc84e39f4dc1ba067e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8577eb5cc025a722d4f098d9de0d6b754daf0da769ecb300001954c610bcd0433afecfcb9445b1d1c38ff54521fd62bb11d4b1aa30c04d857131a5b80eb95065
|
7
|
+
data.tar.gz: 552e9c5ac59e4d209dffce4da7b21b1ba8a9c2ced074ac1eff0dc069bcbd2894ca45e01991dd99b0928d6080faa0a1a153fb91d4d92799feef8b98156423a2c4
|
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 = '2.
|
3
|
+
spec.version = '2.41.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}
|
@@ -3,25 +3,44 @@
|
|
3
3
|
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
|
4
4
|
#
|
5
5
|
require 'ingenico/connect/sdk/data_object'
|
6
|
+
require 'ingenico/connect/sdk/domain/definitions/key_value_pair'
|
6
7
|
|
7
8
|
module Ingenico::Connect::SDK
|
8
9
|
module Domain
|
9
10
|
module Capture
|
10
11
|
|
12
|
+
# @attr [true/false] is_retriable
|
13
|
+
# @attr [Array<Ingenico::Connect::SDK::Domain::Definitions::KeyValuePair>] provider_raw_output
|
11
14
|
# @attr [Integer] status_code
|
12
15
|
class CaptureStatusOutput < Ingenico::Connect::SDK::DataObject
|
13
16
|
|
17
|
+
attr_accessor :is_retriable
|
18
|
+
|
19
|
+
attr_accessor :provider_raw_output
|
20
|
+
|
14
21
|
attr_accessor :status_code
|
15
22
|
|
16
23
|
# @return (Hash)
|
17
24
|
def to_h
|
18
25
|
hash = super
|
26
|
+
hash['isRetriable'] = @is_retriable unless @is_retriable.nil?
|
27
|
+
hash['providerRawOutput'] = @provider_raw_output.collect{|val| val.to_h} unless @provider_raw_output.nil?
|
19
28
|
hash['statusCode'] = @status_code unless @status_code.nil?
|
20
29
|
hash
|
21
30
|
end
|
22
31
|
|
23
32
|
def from_hash(hash)
|
24
33
|
super
|
34
|
+
if hash.has_key? 'isRetriable'
|
35
|
+
@is_retriable = hash['isRetriable']
|
36
|
+
end
|
37
|
+
if hash.has_key? 'providerRawOutput'
|
38
|
+
raise TypeError, "value '%s' is not an Array" % [hash['providerRawOutput']] unless hash['providerRawOutput'].is_a? Array
|
39
|
+
@provider_raw_output = []
|
40
|
+
hash['providerRawOutput'].each do |e|
|
41
|
+
@provider_raw_output << Ingenico::Connect::SDK::Domain::Definitions::KeyValuePair.new_from_hash(e)
|
42
|
+
end
|
43
|
+
end
|
25
44
|
if hash.has_key? 'statusCode'
|
26
45
|
@status_code = hash['statusCode']
|
27
46
|
end
|
@@ -3,6 +3,7 @@
|
|
3
3
|
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
|
4
4
|
#
|
5
5
|
require 'ingenico/connect/sdk/data_object'
|
6
|
+
require 'ingenico/connect/sdk/domain/definitions/key_value_pair'
|
6
7
|
require 'ingenico/connect/sdk/domain/errors/api_error'
|
7
8
|
|
8
9
|
module Ingenico::Connect::SDK
|
@@ -11,6 +12,8 @@ module Ingenico::Connect::SDK
|
|
11
12
|
|
12
13
|
# @attr [Array<Ingenico::Connect::SDK::Domain::Errors::APIError>] errors
|
13
14
|
# @attr [true/false] is_cancellable
|
15
|
+
# @attr [true/false] is_retriable
|
16
|
+
# @attr [Array<Ingenico::Connect::SDK::Domain::Definitions::KeyValuePair>] provider_raw_output
|
14
17
|
# @attr [String] status_category
|
15
18
|
# @attr [Integer] status_code
|
16
19
|
# @attr [String] status_code_change_date_time
|
@@ -20,6 +23,10 @@ module Ingenico::Connect::SDK
|
|
20
23
|
|
21
24
|
attr_accessor :is_cancellable
|
22
25
|
|
26
|
+
attr_accessor :is_retriable
|
27
|
+
|
28
|
+
attr_accessor :provider_raw_output
|
29
|
+
|
23
30
|
attr_accessor :status_category
|
24
31
|
|
25
32
|
attr_accessor :status_code
|
@@ -31,6 +38,8 @@ module Ingenico::Connect::SDK
|
|
31
38
|
hash = super
|
32
39
|
hash['errors'] = @errors.collect{|val| val.to_h} unless @errors.nil?
|
33
40
|
hash['isCancellable'] = @is_cancellable unless @is_cancellable.nil?
|
41
|
+
hash['isRetriable'] = @is_retriable unless @is_retriable.nil?
|
42
|
+
hash['providerRawOutput'] = @provider_raw_output.collect{|val| val.to_h} unless @provider_raw_output.nil?
|
34
43
|
hash['statusCategory'] = @status_category unless @status_category.nil?
|
35
44
|
hash['statusCode'] = @status_code unless @status_code.nil?
|
36
45
|
hash['statusCodeChangeDateTime'] = @status_code_change_date_time unless @status_code_change_date_time.nil?
|
@@ -49,6 +58,16 @@ module Ingenico::Connect::SDK
|
|
49
58
|
if hash.has_key? 'isCancellable'
|
50
59
|
@is_cancellable = hash['isCancellable']
|
51
60
|
end
|
61
|
+
if hash.has_key? 'isRetriable'
|
62
|
+
@is_retriable = hash['isRetriable']
|
63
|
+
end
|
64
|
+
if hash.has_key? 'providerRawOutput'
|
65
|
+
raise TypeError, "value '%s' is not an Array" % [hash['providerRawOutput']] unless hash['providerRawOutput'].is_a? Array
|
66
|
+
@provider_raw_output = []
|
67
|
+
hash['providerRawOutput'].each do |e|
|
68
|
+
@provider_raw_output << Ingenico::Connect::SDK::Domain::Definitions::KeyValuePair.new_from_hash(e)
|
69
|
+
end
|
70
|
+
end
|
52
71
|
if hash.has_key? 'statusCategory'
|
53
72
|
@status_category = hash['statusCategory']
|
54
73
|
end
|
@@ -13,6 +13,8 @@ module Ingenico::Connect::SDK
|
|
13
13
|
# @attr [Ingenico::Connect::SDK::Domain::Payment::OrderInvoiceData] invoice_data
|
14
14
|
# @attr [Integer] merchant_order_id
|
15
15
|
# @attr [String] merchant_reference
|
16
|
+
# @attr [String] provider_id
|
17
|
+
# @attr [String] provider_merchant_id
|
16
18
|
class OrderReferences < Ingenico::Connect::SDK::DataObject
|
17
19
|
|
18
20
|
attr_accessor :descriptor
|
@@ -23,6 +25,10 @@ module Ingenico::Connect::SDK
|
|
23
25
|
|
24
26
|
attr_accessor :merchant_reference
|
25
27
|
|
28
|
+
attr_accessor :provider_id
|
29
|
+
|
30
|
+
attr_accessor :provider_merchant_id
|
31
|
+
|
26
32
|
# @return (Hash)
|
27
33
|
def to_h
|
28
34
|
hash = super
|
@@ -30,6 +36,8 @@ module Ingenico::Connect::SDK
|
|
30
36
|
hash['invoiceData'] = @invoice_data.to_h unless @invoice_data.nil?
|
31
37
|
hash['merchantOrderId'] = @merchant_order_id unless @merchant_order_id.nil?
|
32
38
|
hash['merchantReference'] = @merchant_reference unless @merchant_reference.nil?
|
39
|
+
hash['providerId'] = @provider_id unless @provider_id.nil?
|
40
|
+
hash['providerMerchantId'] = @provider_merchant_id unless @provider_merchant_id.nil?
|
33
41
|
hash
|
34
42
|
end
|
35
43
|
|
@@ -48,6 +56,12 @@ module Ingenico::Connect::SDK
|
|
48
56
|
if hash.has_key? 'merchantReference'
|
49
57
|
@merchant_reference = hash['merchantReference']
|
50
58
|
end
|
59
|
+
if hash.has_key? 'providerId'
|
60
|
+
@provider_id = hash['providerId']
|
61
|
+
end
|
62
|
+
if hash.has_key? 'providerMerchantId'
|
63
|
+
@provider_merchant_id = hash['providerMerchantId']
|
64
|
+
end
|
51
65
|
end
|
52
66
|
end
|
53
67
|
end
|
@@ -2,7 +2,6 @@
|
|
2
2
|
# This class was auto-generated from the API references found at
|
3
3
|
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
|
4
4
|
#
|
5
|
-
require 'ingenico/connect/sdk/domain/definitions/key_value_pair'
|
6
5
|
require 'ingenico/connect/sdk/domain/definitions/order_status_output'
|
7
6
|
|
8
7
|
module Ingenico::Connect::SDK
|
@@ -11,8 +10,6 @@ module Ingenico::Connect::SDK
|
|
11
10
|
|
12
11
|
# @attr [true/false] is_authorized
|
13
12
|
# @attr [true/false] is_refundable
|
14
|
-
# @attr [true/false] is_retriable
|
15
|
-
# @attr [Array<Ingenico::Connect::SDK::Domain::Definitions::KeyValuePair>] provider_raw_output
|
16
13
|
# @attr [String] three_d_secure_status
|
17
14
|
class PaymentStatusOutput < Ingenico::Connect::SDK::Domain::Definitions::OrderStatusOutput
|
18
15
|
|
@@ -20,10 +17,6 @@ module Ingenico::Connect::SDK
|
|
20
17
|
|
21
18
|
attr_accessor :is_refundable
|
22
19
|
|
23
|
-
attr_accessor :is_retriable
|
24
|
-
|
25
|
-
attr_accessor :provider_raw_output
|
26
|
-
|
27
20
|
attr_accessor :three_d_secure_status
|
28
21
|
|
29
22
|
# @return (Hash)
|
@@ -31,8 +24,6 @@ module Ingenico::Connect::SDK
|
|
31
24
|
hash = super
|
32
25
|
hash['isAuthorized'] = @is_authorized unless @is_authorized.nil?
|
33
26
|
hash['isRefundable'] = @is_refundable unless @is_refundable.nil?
|
34
|
-
hash['isRetriable'] = @is_retriable unless @is_retriable.nil?
|
35
|
-
hash['providerRawOutput'] = @provider_raw_output.collect{|val| val.to_h} unless @provider_raw_output.nil?
|
36
27
|
hash['threeDSecureStatus'] = @three_d_secure_status unless @three_d_secure_status.nil?
|
37
28
|
hash
|
38
29
|
end
|
@@ -45,16 +36,6 @@ module Ingenico::Connect::SDK
|
|
45
36
|
if hash.has_key? 'isRefundable'
|
46
37
|
@is_refundable = hash['isRefundable']
|
47
38
|
end
|
48
|
-
if hash.has_key? 'isRetriable'
|
49
|
-
@is_retriable = hash['isRetriable']
|
50
|
-
end
|
51
|
-
if hash.has_key? 'providerRawOutput'
|
52
|
-
raise TypeError, "value '%s' is not an Array" % [hash['providerRawOutput']] unless hash['providerRawOutput'].is_a? Array
|
53
|
-
@provider_raw_output = []
|
54
|
-
hash['providerRawOutput'].each do |e|
|
55
|
-
@provider_raw_output << Ingenico::Connect::SDK::Domain::Definitions::KeyValuePair.new_from_hash(e)
|
56
|
-
end
|
57
|
-
end
|
58
39
|
if hash.has_key? 'threeDSecureStatus'
|
59
40
|
@three_d_secure_status = hash['threeDSecureStatus']
|
60
41
|
end
|
@@ -8,7 +8,24 @@ module Ingenico::Connect::SDK
|
|
8
8
|
module Domain
|
9
9
|
module Payment
|
10
10
|
|
11
|
+
# @attr [String] authorisation_code
|
11
12
|
class RefundCardMethodSpecificOutput < Ingenico::Connect::SDK::Domain::Payment::RefundMethodSpecificOutput
|
13
|
+
|
14
|
+
attr_accessor :authorisation_code
|
15
|
+
|
16
|
+
# @return (Hash)
|
17
|
+
def to_h
|
18
|
+
hash = super
|
19
|
+
hash['authorisationCode'] = @authorisation_code unless @authorisation_code.nil?
|
20
|
+
hash
|
21
|
+
end
|
22
|
+
|
23
|
+
def from_hash(hash)
|
24
|
+
super
|
25
|
+
if hash.has_key? 'authorisationCode'
|
26
|
+
@authorisation_code = hash['authorisationCode']
|
27
|
+
end
|
28
|
+
end
|
12
29
|
end
|
13
30
|
end
|
14
31
|
end
|
@@ -7,7 +7,7 @@ module Ingenico::Connect::SDK
|
|
7
7
|
#
|
8
8
|
# @attr_reader [Array<Ingenico::Connect::SDK::RequestHeader>] meta_data_headers List of headers that should be used in all requests.
|
9
9
|
class MetaDataProvider
|
10
|
-
@@SDK_VERSION = '2.
|
10
|
+
@@SDK_VERSION = '2.41.0'
|
11
11
|
@@SERVER_META_INFO_HEADER = 'X-GCS-ServerMetaInfo'
|
12
12
|
@@PROHIBITED_HEADERS = [@@SERVER_META_INFO_HEADER, 'X-GCS-Idempotence-Key',
|
13
13
|
'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: 2.
|
4
|
+
version: 2.41.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: 2023-
|
11
|
+
date: 2023-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|