connect-sdk-ruby 1.35.0 → 1.36.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/examples/merchant/payments/create_payment_example.rb +0 -17
- data/lib/ingenico/connect/sdk/domain/payment/cash_payment_method_specific_input.rb +55 -0
- data/lib/ingenico/connect/sdk/domain/payment/cash_payment_product1521_specific_input.rb +31 -0
- data/lib/ingenico/connect/sdk/domain/payment/cash_payment_product1522_specific_input.rb +31 -0
- data/lib/ingenico/connect/sdk/domain/payment/cash_payment_product1523_specific_input.rb +31 -0
- data/lib/ingenico/connect/sdk/domain/payment/cash_payment_product1524_specific_input.rb +31 -0
- data/lib/ingenico/connect/sdk/domain/payment/cash_payment_product1526_specific_input.rb +31 -0
- data/lib/ingenico/connect/sdk/meta_data_provider.rb +1 -1
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c8b53bfd0b4a392933b09d4d7435701464ce081676943052b2dd2a8a5853f52
|
4
|
+
data.tar.gz: a79d1469b0490b835e08dfc14a5930697a9a9425e755ab345afba8ea17ccb476
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c19688df4d8761fed16c8f570965b5ca3eb67140048be4ccab6eb5b785b7f0d54aa5090d2456eb19f3100d7f2ff3dc599614217ad5c34718c2a9bac66db4d57d
|
7
|
+
data.tar.gz: 244676431d1f3f329b00c76bbd353d0adbf1bf22b5bbee904e108a719cbb6eb62e601632bdf81b62261405b3b277fbea500449f078a3fa8b963b34ba08408741
|
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.36.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}
|
@@ -14,7 +14,6 @@ require 'ingenico/connect/sdk/domain/payment/card_payment_method_specific_input'
|
|
14
14
|
require 'ingenico/connect/sdk/domain/payment/contact_details'
|
15
15
|
require 'ingenico/connect/sdk/domain/payment/create_payment_request'
|
16
16
|
require 'ingenico/connect/sdk/domain/payment/customer'
|
17
|
-
require 'ingenico/connect/sdk/domain/payment/device_render_options'
|
18
17
|
require 'ingenico/connect/sdk/domain/payment/external_cardholder_authentication_data'
|
19
18
|
require 'ingenico/connect/sdk/domain/payment/line_item'
|
20
19
|
require 'ingenico/connect/sdk/domain/payment/line_item_invoice_data'
|
@@ -23,7 +22,6 @@ require 'ingenico/connect/sdk/domain/payment/order_invoice_data'
|
|
23
22
|
require 'ingenico/connect/sdk/domain/payment/order_references'
|
24
23
|
require 'ingenico/connect/sdk/domain/payment/personal_information'
|
25
24
|
require 'ingenico/connect/sdk/domain/payment/personal_name'
|
26
|
-
require 'ingenico/connect/sdk/domain/payment/sdk_data_input'
|
27
25
|
require 'ingenico/connect/sdk/domain/payment/shipping'
|
28
26
|
require 'ingenico/connect/sdk/domain/payment/shopping_cart'
|
29
27
|
require 'ingenico/connect/sdk/domain/payment/three_d_secure'
|
@@ -54,27 +52,12 @@ def example
|
|
54
52
|
prior_three_d_secure_data.method = 'challenged'
|
55
53
|
prior_three_d_secure_data.utc_timestamp = '201901311530'
|
56
54
|
|
57
|
-
device_render_options = Payment::DeviceRenderOptions.new
|
58
|
-
device_render_options.sdk_interface = 'native'
|
59
|
-
device_render_options.sdk_ui_type = 'multi-select'
|
60
|
-
|
61
|
-
sdk_data = Payment::SdkDataInput.new
|
62
|
-
sdk_data.device_info = 'abc123'
|
63
|
-
sdk_data.device_render_options = device_render_options
|
64
|
-
sdk_data.sdk_app_id = 'xyz'
|
65
|
-
sdk_data.sdk_encrypted_data = 'abc123'
|
66
|
-
sdk_data.sdk_ephemeral_public_key = '123xyz'
|
67
|
-
sdk_data.sdk_max_timeout = '30'
|
68
|
-
sdk_data.sdk_reference_number = 'zaq123'
|
69
|
-
sdk_data.sdk_transaction_id = 'xsw321'
|
70
|
-
|
71
55
|
three_d_secure = Payment::ThreeDSecure.new
|
72
56
|
three_d_secure.authentication_flow = 'browser'
|
73
57
|
three_d_secure.challenge_canvas_size = '600x400'
|
74
58
|
three_d_secure.challenge_indicator = 'challenge-requested'
|
75
59
|
three_d_secure.external_cardholder_authentication_data = external_cardholder_authentication_data
|
76
60
|
three_d_secure.prior_three_d_secure_data = prior_three_d_secure_data
|
77
|
-
three_d_secure.sdk_data = sdk_data
|
78
61
|
three_d_secure.skip_authentication = false
|
79
62
|
|
80
63
|
card_payment_method_specific_input = Payment::CardPaymentMethodSpecificInput.new
|
@@ -5,6 +5,11 @@
|
|
5
5
|
require 'ingenico/connect/sdk/domain/payment/abstract_cash_payment_method_specific_input'
|
6
6
|
require 'ingenico/connect/sdk/domain/payment/cash_payment_product1503_specific_input'
|
7
7
|
require 'ingenico/connect/sdk/domain/payment/cash_payment_product1504_specific_input'
|
8
|
+
require 'ingenico/connect/sdk/domain/payment/cash_payment_product1521_specific_input'
|
9
|
+
require 'ingenico/connect/sdk/domain/payment/cash_payment_product1522_specific_input'
|
10
|
+
require 'ingenico/connect/sdk/domain/payment/cash_payment_product1523_specific_input'
|
11
|
+
require 'ingenico/connect/sdk/domain/payment/cash_payment_product1524_specific_input'
|
12
|
+
require 'ingenico/connect/sdk/domain/payment/cash_payment_product1526_specific_input'
|
8
13
|
|
9
14
|
module Ingenico::Connect::SDK
|
10
15
|
module Domain
|
@@ -20,10 +25,30 @@ module Ingenico::Connect::SDK
|
|
20
25
|
# {Ingenico::Connect::SDK::Domain::Payment::CashPaymentProduct1504SpecificInput}
|
21
26
|
attr_accessor :payment_product1504_specific_input
|
22
27
|
|
28
|
+
# {Ingenico::Connect::SDK::Domain::Payment::CashPaymentProduct1521SpecificInput}
|
29
|
+
attr_accessor :payment_product1521_specific_input
|
30
|
+
|
31
|
+
# {Ingenico::Connect::SDK::Domain::Payment::CashPaymentProduct1522SpecificInput}
|
32
|
+
attr_accessor :payment_product1522_specific_input
|
33
|
+
|
34
|
+
# {Ingenico::Connect::SDK::Domain::Payment::CashPaymentProduct1523SpecificInput}
|
35
|
+
attr_accessor :payment_product1523_specific_input
|
36
|
+
|
37
|
+
# {Ingenico::Connect::SDK::Domain::Payment::CashPaymentProduct1524SpecificInput}
|
38
|
+
attr_accessor :payment_product1524_specific_input
|
39
|
+
|
40
|
+
# {Ingenico::Connect::SDK::Domain::Payment::CashPaymentProduct1526SpecificInput}
|
41
|
+
attr_accessor :payment_product1526_specific_input
|
42
|
+
|
23
43
|
def to_h
|
24
44
|
hash = super
|
25
45
|
add_to_hash(hash, 'paymentProduct1503SpecificInput', @payment_product1503_specific_input)
|
26
46
|
add_to_hash(hash, 'paymentProduct1504SpecificInput', @payment_product1504_specific_input)
|
47
|
+
add_to_hash(hash, 'paymentProduct1521SpecificInput', @payment_product1521_specific_input)
|
48
|
+
add_to_hash(hash, 'paymentProduct1522SpecificInput', @payment_product1522_specific_input)
|
49
|
+
add_to_hash(hash, 'paymentProduct1523SpecificInput', @payment_product1523_specific_input)
|
50
|
+
add_to_hash(hash, 'paymentProduct1524SpecificInput', @payment_product1524_specific_input)
|
51
|
+
add_to_hash(hash, 'paymentProduct1526SpecificInput', @payment_product1526_specific_input)
|
27
52
|
hash
|
28
53
|
end
|
29
54
|
|
@@ -41,6 +66,36 @@ module Ingenico::Connect::SDK
|
|
41
66
|
end
|
42
67
|
@payment_product1504_specific_input = Ingenico::Connect::SDK::Domain::Payment::CashPaymentProduct1504SpecificInput.new_from_hash(hash['paymentProduct1504SpecificInput'])
|
43
68
|
end
|
69
|
+
if hash.has_key?('paymentProduct1521SpecificInput')
|
70
|
+
if !(hash['paymentProduct1521SpecificInput'].is_a? Hash)
|
71
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct1521SpecificInput']]
|
72
|
+
end
|
73
|
+
@payment_product1521_specific_input = Ingenico::Connect::SDK::Domain::Payment::CashPaymentProduct1521SpecificInput.new_from_hash(hash['paymentProduct1521SpecificInput'])
|
74
|
+
end
|
75
|
+
if hash.has_key?('paymentProduct1522SpecificInput')
|
76
|
+
if !(hash['paymentProduct1522SpecificInput'].is_a? Hash)
|
77
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct1522SpecificInput']]
|
78
|
+
end
|
79
|
+
@payment_product1522_specific_input = Ingenico::Connect::SDK::Domain::Payment::CashPaymentProduct1522SpecificInput.new_from_hash(hash['paymentProduct1522SpecificInput'])
|
80
|
+
end
|
81
|
+
if hash.has_key?('paymentProduct1523SpecificInput')
|
82
|
+
if !(hash['paymentProduct1523SpecificInput'].is_a? Hash)
|
83
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct1523SpecificInput']]
|
84
|
+
end
|
85
|
+
@payment_product1523_specific_input = Ingenico::Connect::SDK::Domain::Payment::CashPaymentProduct1523SpecificInput.new_from_hash(hash['paymentProduct1523SpecificInput'])
|
86
|
+
end
|
87
|
+
if hash.has_key?('paymentProduct1524SpecificInput')
|
88
|
+
if !(hash['paymentProduct1524SpecificInput'].is_a? Hash)
|
89
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct1524SpecificInput']]
|
90
|
+
end
|
91
|
+
@payment_product1524_specific_input = Ingenico::Connect::SDK::Domain::Payment::CashPaymentProduct1524SpecificInput.new_from_hash(hash['paymentProduct1524SpecificInput'])
|
92
|
+
end
|
93
|
+
if hash.has_key?('paymentProduct1526SpecificInput')
|
94
|
+
if !(hash['paymentProduct1526SpecificInput'].is_a? Hash)
|
95
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct1526SpecificInput']]
|
96
|
+
end
|
97
|
+
@payment_product1526_specific_input = Ingenico::Connect::SDK::Domain::Payment::CashPaymentProduct1526SpecificInput.new_from_hash(hash['paymentProduct1526SpecificInput'])
|
98
|
+
end
|
44
99
|
end
|
45
100
|
end
|
46
101
|
end
|
@@ -0,0 +1,31 @@
|
|
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
|
+
class CashPaymentProduct1521SpecificInput < Ingenico::Connect::SDK::DataObject
|
12
|
+
|
13
|
+
# String
|
14
|
+
attr_accessor :return_url
|
15
|
+
|
16
|
+
def to_h
|
17
|
+
hash = super
|
18
|
+
add_to_hash(hash, 'returnUrl', @return_url)
|
19
|
+
hash
|
20
|
+
end
|
21
|
+
|
22
|
+
def from_hash(hash)
|
23
|
+
super
|
24
|
+
if hash.has_key?('returnUrl')
|
25
|
+
@return_url = hash['returnUrl']
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,31 @@
|
|
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
|
+
class CashPaymentProduct1522SpecificInput < Ingenico::Connect::SDK::DataObject
|
12
|
+
|
13
|
+
# String
|
14
|
+
attr_accessor :return_url
|
15
|
+
|
16
|
+
def to_h
|
17
|
+
hash = super
|
18
|
+
add_to_hash(hash, 'returnUrl', @return_url)
|
19
|
+
hash
|
20
|
+
end
|
21
|
+
|
22
|
+
def from_hash(hash)
|
23
|
+
super
|
24
|
+
if hash.has_key?('returnUrl')
|
25
|
+
@return_url = hash['returnUrl']
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,31 @@
|
|
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
|
+
class CashPaymentProduct1523SpecificInput < Ingenico::Connect::SDK::DataObject
|
12
|
+
|
13
|
+
# String
|
14
|
+
attr_accessor :return_url
|
15
|
+
|
16
|
+
def to_h
|
17
|
+
hash = super
|
18
|
+
add_to_hash(hash, 'returnUrl', @return_url)
|
19
|
+
hash
|
20
|
+
end
|
21
|
+
|
22
|
+
def from_hash(hash)
|
23
|
+
super
|
24
|
+
if hash.has_key?('returnUrl')
|
25
|
+
@return_url = hash['returnUrl']
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,31 @@
|
|
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
|
+
class CashPaymentProduct1524SpecificInput < Ingenico::Connect::SDK::DataObject
|
12
|
+
|
13
|
+
# String
|
14
|
+
attr_accessor :return_url
|
15
|
+
|
16
|
+
def to_h
|
17
|
+
hash = super
|
18
|
+
add_to_hash(hash, 'returnUrl', @return_url)
|
19
|
+
hash
|
20
|
+
end
|
21
|
+
|
22
|
+
def from_hash(hash)
|
23
|
+
super
|
24
|
+
if hash.has_key?('returnUrl')
|
25
|
+
@return_url = hash['returnUrl']
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,31 @@
|
|
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
|
+
class CashPaymentProduct1526SpecificInput < Ingenico::Connect::SDK::DataObject
|
12
|
+
|
13
|
+
# String
|
14
|
+
attr_accessor :return_url
|
15
|
+
|
16
|
+
def to_h
|
17
|
+
hash = super
|
18
|
+
add_to_hash(hash, 'returnUrl', @return_url)
|
19
|
+
hash
|
20
|
+
end
|
21
|
+
|
22
|
+
def from_hash(hash)
|
23
|
+
super
|
24
|
+
if hash.has_key?('returnUrl')
|
25
|
+
@return_url = hash['returnUrl']
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
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.36.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.36.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: 2019-
|
11
|
+
date: 2019-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|
@@ -321,6 +321,11 @@ files:
|
|
321
321
|
- lib/ingenico/connect/sdk/domain/payment/cash_payment_method_specific_output.rb
|
322
322
|
- lib/ingenico/connect/sdk/domain/payment/cash_payment_product1503_specific_input.rb
|
323
323
|
- lib/ingenico/connect/sdk/domain/payment/cash_payment_product1504_specific_input.rb
|
324
|
+
- lib/ingenico/connect/sdk/domain/payment/cash_payment_product1521_specific_input.rb
|
325
|
+
- lib/ingenico/connect/sdk/domain/payment/cash_payment_product1522_specific_input.rb
|
326
|
+
- lib/ingenico/connect/sdk/domain/payment/cash_payment_product1523_specific_input.rb
|
327
|
+
- lib/ingenico/connect/sdk/domain/payment/cash_payment_product1524_specific_input.rb
|
328
|
+
- lib/ingenico/connect/sdk/domain/payment/cash_payment_product1526_specific_input.rb
|
324
329
|
- lib/ingenico/connect/sdk/domain/payment/complete_payment_card_payment_method_specific_input.rb
|
325
330
|
- lib/ingenico/connect/sdk/domain/payment/complete_payment_request.rb
|
326
331
|
- lib/ingenico/connect/sdk/domain/payment/complete_payment_response.rb
|