connect-sdk-ruby 2.37.0 → 2.38.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 906f6e5e5ff0dea08700dc1d74913cad10532f4b9cbe20921175ed0ae927d96b
|
4
|
+
data.tar.gz: c0e557fa38d036ebec36c09cd7c0074604b9af50a3790607de019913d8f4edb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33563bd74144ee838980f05ef5dd50d664966eeba23bcad19fa73529d087509c6f185ab88b9f35cfd4d1f61015e71c268fa025e97c94b210f23f170703190708
|
7
|
+
data.tar.gz: 5bde3b7d1e7a5a72de78d2735ff6cb958cd30b03d5d8b3d5d36113de066a779a791feb1c6e53e2b75929665d30ee904ee8352977d6f4fe952dd066d18b801d06
|
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.38.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}
|
@@ -5,6 +5,7 @@
|
|
5
5
|
require 'ingenico/connect/sdk/domain/definitions/card'
|
6
6
|
require 'ingenico/connect/sdk/domain/payment/abstract_card_payment_method_specific_input'
|
7
7
|
require 'ingenico/connect/sdk/domain/payment/external_cardholder_authentication_data'
|
8
|
+
require 'ingenico/connect/sdk/domain/payment/scheme_token_data'
|
8
9
|
require 'ingenico/connect/sdk/domain/payment/three_d_secure'
|
9
10
|
|
10
11
|
module Ingenico::Connect::SDK
|
@@ -15,6 +16,7 @@ module Ingenico::Connect::SDK
|
|
15
16
|
# @attr [Ingenico::Connect::SDK::Domain::Payment::ExternalCardholderAuthenticationData] external_cardholder_authentication_data
|
16
17
|
# @attr [true/false] is_recurring
|
17
18
|
# @attr [String] merchant_initiated_reason_indicator
|
19
|
+
# @attr [Ingenico::Connect::SDK::Domain::Payment::SchemeTokenData] network_token_data
|
18
20
|
# @attr [String] return_url
|
19
21
|
# @attr [Ingenico::Connect::SDK::Domain::Payment::ThreeDSecure] three_d_secure
|
20
22
|
class CardPaymentMethodSpecificInput < Ingenico::Connect::SDK::Domain::Payment::AbstractCardPaymentMethodSpecificInput
|
@@ -29,6 +31,8 @@ module Ingenico::Connect::SDK
|
|
29
31
|
|
30
32
|
attr_accessor :merchant_initiated_reason_indicator
|
31
33
|
|
34
|
+
attr_accessor :network_token_data
|
35
|
+
|
32
36
|
#
|
33
37
|
# @deprecated Use threeDSecure.redirectionData.returnUrl instead
|
34
38
|
attr_accessor :return_url
|
@@ -42,6 +46,7 @@ module Ingenico::Connect::SDK
|
|
42
46
|
hash['externalCardholderAuthenticationData'] = @external_cardholder_authentication_data.to_h unless @external_cardholder_authentication_data.nil?
|
43
47
|
hash['isRecurring'] = @is_recurring unless @is_recurring.nil?
|
44
48
|
hash['merchantInitiatedReasonIndicator'] = @merchant_initiated_reason_indicator unless @merchant_initiated_reason_indicator.nil?
|
49
|
+
hash['networkTokenData'] = @network_token_data.to_h unless @network_token_data.nil?
|
45
50
|
hash['returnUrl'] = @return_url unless @return_url.nil?
|
46
51
|
hash['threeDSecure'] = @three_d_secure.to_h unless @three_d_secure.nil?
|
47
52
|
hash
|
@@ -63,6 +68,10 @@ module Ingenico::Connect::SDK
|
|
63
68
|
if hash.has_key? 'merchantInitiatedReasonIndicator'
|
64
69
|
@merchant_initiated_reason_indicator = hash['merchantInitiatedReasonIndicator']
|
65
70
|
end
|
71
|
+
if hash.has_key? 'networkTokenData'
|
72
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['networkTokenData']] unless hash['networkTokenData'].is_a? Hash
|
73
|
+
@network_token_data = Ingenico::Connect::SDK::Domain::Payment::SchemeTokenData.new_from_hash(hash['networkTokenData'])
|
74
|
+
end
|
66
75
|
if hash.has_key? 'returnUrl'
|
67
76
|
@return_url = hash['returnUrl']
|
68
77
|
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
#
|
2
|
+
# This class was auto-generated from the API references found at
|
3
|
+
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
|
4
|
+
#
|
5
|
+
require 'ingenico/connect/sdk/data_object'
|
6
|
+
|
7
|
+
module Ingenico::Connect::SDK
|
8
|
+
module Domain
|
9
|
+
module Payment
|
10
|
+
|
11
|
+
# @attr [String] cryptogram
|
12
|
+
# @attr [String] eci
|
13
|
+
# @attr [String] network_token
|
14
|
+
# @attr [String] token_expiry_date
|
15
|
+
class SchemeTokenData < Ingenico::Connect::SDK::DataObject
|
16
|
+
|
17
|
+
attr_accessor :cryptogram
|
18
|
+
|
19
|
+
attr_accessor :eci
|
20
|
+
|
21
|
+
attr_accessor :network_token
|
22
|
+
|
23
|
+
attr_accessor :token_expiry_date
|
24
|
+
|
25
|
+
# @return (Hash)
|
26
|
+
def to_h
|
27
|
+
hash = super
|
28
|
+
hash['cryptogram'] = @cryptogram unless @cryptogram.nil?
|
29
|
+
hash['eci'] = @eci unless @eci.nil?
|
30
|
+
hash['networkToken'] = @network_token unless @network_token.nil?
|
31
|
+
hash['tokenExpiryDate'] = @token_expiry_date unless @token_expiry_date.nil?
|
32
|
+
hash
|
33
|
+
end
|
34
|
+
|
35
|
+
def from_hash(hash)
|
36
|
+
super
|
37
|
+
if hash.has_key? 'cryptogram'
|
38
|
+
@cryptogram = hash['cryptogram']
|
39
|
+
end
|
40
|
+
if hash.has_key? 'eci'
|
41
|
+
@eci = hash['eci']
|
42
|
+
end
|
43
|
+
if hash.has_key? 'networkToken'
|
44
|
+
@network_token = hash['networkToken']
|
45
|
+
end
|
46
|
+
if hash.has_key? 'tokenExpiryDate'
|
47
|
+
@token_expiry_date = hash['tokenExpiryDate']
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
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.38.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.38.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-04-
|
11
|
+
date: 2023-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|
@@ -459,6 +459,7 @@ files:
|
|
459
459
|
- lib/ingenico/connect/sdk/domain/payment/refund_output.rb
|
460
460
|
- lib/ingenico/connect/sdk/domain/payment/refund_payment_product840_customer_account.rb
|
461
461
|
- lib/ingenico/connect/sdk/domain/payment/refund_payment_product840_specific_output.rb
|
462
|
+
- lib/ingenico/connect/sdk/domain/payment/scheme_token_data.rb
|
462
463
|
- lib/ingenico/connect/sdk/domain/payment/sdk_data_input.rb
|
463
464
|
- lib/ingenico/connect/sdk/domain/payment/sdk_data_output.rb
|
464
465
|
- lib/ingenico/connect/sdk/domain/payment/seller.rb
|