connect-sdk-ruby 1.14.0 → 1.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/connect-sdk-ruby.gemspec +1 -1
- data/lib/ingenico/connect/sdk/domain/mandates/create_mandate_base.rb +0 -7
- data/lib/ingenico/connect/sdk/domain/mandates/create_mandate_request.rb +2 -2
- data/lib/ingenico/connect/sdk/domain/mandates/create_mandate_with_return_url.rb +31 -0
- data/lib/ingenico/connect/sdk/domain/payment/abstract_sepa_direct_debit_payment_method_specific_input.rb +15 -0
- data/lib/ingenico/connect/sdk/domain/payment/abstract_sepa_direct_debit_payment_product771_specific_input.rb +31 -0
- data/lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input.rb +13 -2
- data/lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input_base.rb +5 -5
- data/lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_product771_specific_input.rb +5 -12
- data/lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_product771_specific_input_base.rb +35 -0
- data/lib/ingenico/connect/sdk/meta_data_provider.rb +1 -1
- metadata +7 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 60d2b09edea200a56f2c7f531df2fbb1cba07b99c652e6bf175df68a42d4190d
|
4
|
+
data.tar.gz: 1548c437ca4f0af5a03dfb83b75b10f2120fe8e12e364e86703a7f178bef7be1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fc58cb465cf11c3efde6b7dfb9659dd57e9c6aa811570423a311913d5cea6d12e501954f333719d42ec841545ad3fa82c3d4b230f0b150ab187e44566158b55
|
7
|
+
data.tar.gz: 7a6ca83a0dbed0ddaeea333bd1eaad2ad07100a69dbab5a1aa5fa115efb266a69ca5fb8ae553fb27802b56bd37e7c320ccddf0be85f0c5103692931fd64a4467
|
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.15.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}
|
@@ -23,9 +23,6 @@ module Ingenico::Connect::SDK
|
|
23
23
|
# String
|
24
24
|
attr_accessor :recurrence_type
|
25
25
|
|
26
|
-
# String
|
27
|
-
attr_accessor :return_url
|
28
|
-
|
29
26
|
# String
|
30
27
|
attr_accessor :signature_type
|
31
28
|
|
@@ -35,7 +32,6 @@ module Ingenico::Connect::SDK
|
|
35
32
|
add_to_hash(hash, 'customerReference', @customer_reference)
|
36
33
|
add_to_hash(hash, 'language', @language)
|
37
34
|
add_to_hash(hash, 'recurrenceType', @recurrence_type)
|
38
|
-
add_to_hash(hash, 'returnUrl', @return_url)
|
39
35
|
add_to_hash(hash, 'signatureType', @signature_type)
|
40
36
|
hash
|
41
37
|
end
|
@@ -57,9 +53,6 @@ module Ingenico::Connect::SDK
|
|
57
53
|
if hash.has_key?('recurrenceType')
|
58
54
|
@recurrence_type = hash['recurrenceType']
|
59
55
|
end
|
60
|
-
if hash.has_key?('returnUrl')
|
61
|
-
@return_url = hash['returnUrl']
|
62
|
-
end
|
63
56
|
if hash.has_key?('signatureType')
|
64
57
|
@signature_type = hash['signatureType']
|
65
58
|
end
|
@@ -2,13 +2,13 @@
|
|
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/mandates/
|
5
|
+
require 'ingenico/connect/sdk/domain/mandates/create_mandate_with_return_url'
|
6
6
|
|
7
7
|
module Ingenico::Connect::SDK
|
8
8
|
module Domain
|
9
9
|
module Mandates
|
10
10
|
|
11
|
-
class CreateMandateRequest < Ingenico::Connect::SDK::Domain::Mandates::
|
11
|
+
class CreateMandateRequest < Ingenico::Connect::SDK::Domain::Mandates::CreateMandateWithReturnUrl
|
12
12
|
end
|
13
13
|
end
|
14
14
|
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/domain/mandates/create_mandate_base'
|
6
|
+
|
7
|
+
module Ingenico::Connect::SDK
|
8
|
+
module Domain
|
9
|
+
module Mandates
|
10
|
+
|
11
|
+
class CreateMandateWithReturnUrl < Ingenico::Connect::SDK::Domain::Mandates::CreateMandateBase
|
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,15 @@
|
|
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/domain/definitions/abstract_payment_method_specific_input'
|
6
|
+
|
7
|
+
module Ingenico::Connect::SDK
|
8
|
+
module Domain
|
9
|
+
module Payment
|
10
|
+
|
11
|
+
class AbstractSepaDirectDebitPaymentMethodSpecificInput < Ingenico::Connect::SDK::Domain::Definitions::AbstractPaymentMethodSpecificInput
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
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 AbstractSepaDirectDebitPaymentProduct771SpecificInput < Ingenico::Connect::SDK::DataObject
|
12
|
+
|
13
|
+
# String
|
14
|
+
attr_accessor :mandate_reference
|
15
|
+
|
16
|
+
def to_h
|
17
|
+
hash = super
|
18
|
+
add_to_hash(hash, 'mandateReference', @mandate_reference)
|
19
|
+
hash
|
20
|
+
end
|
21
|
+
|
22
|
+
def from_hash(hash)
|
23
|
+
super
|
24
|
+
if hash.has_key?('mandateReference')
|
25
|
+
@mandate_reference = hash['mandateReference']
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
data/lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input.rb
CHANGED
@@ -2,13 +2,14 @@
|
|
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/payment/
|
5
|
+
require 'ingenico/connect/sdk/domain/payment/abstract_sepa_direct_debit_payment_method_specific_input'
|
6
|
+
require 'ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_product771_specific_input'
|
6
7
|
|
7
8
|
module Ingenico::Connect::SDK
|
8
9
|
module Domain
|
9
10
|
module Payment
|
10
11
|
|
11
|
-
class SepaDirectDebitPaymentMethodSpecificInput < Ingenico::Connect::SDK::Domain::Payment::
|
12
|
+
class SepaDirectDebitPaymentMethodSpecificInput < Ingenico::Connect::SDK::Domain::Payment::AbstractSepaDirectDebitPaymentMethodSpecificInput
|
12
13
|
|
13
14
|
# String
|
14
15
|
attr_accessor :date_collect
|
@@ -19,6 +20,9 @@ module Ingenico::Connect::SDK
|
|
19
20
|
# true/false
|
20
21
|
attr_accessor :is_recurring
|
21
22
|
|
23
|
+
# {Ingenico::Connect::SDK::Domain::Payment::SepaDirectDebitPaymentProduct771SpecificInput}
|
24
|
+
attr_accessor :payment_product771_specific_input
|
25
|
+
|
22
26
|
# String
|
23
27
|
attr_accessor :recurring_payment_sequence_indicator
|
24
28
|
|
@@ -33,6 +37,7 @@ module Ingenico::Connect::SDK
|
|
33
37
|
add_to_hash(hash, 'dateCollect', @date_collect)
|
34
38
|
add_to_hash(hash, 'directDebitText', @direct_debit_text)
|
35
39
|
add_to_hash(hash, 'isRecurring', @is_recurring)
|
40
|
+
add_to_hash(hash, 'paymentProduct771SpecificInput', @payment_product771_specific_input)
|
36
41
|
add_to_hash(hash, 'recurringPaymentSequenceIndicator', @recurring_payment_sequence_indicator)
|
37
42
|
add_to_hash(hash, 'token', @token)
|
38
43
|
add_to_hash(hash, 'tokenize', @tokenize)
|
@@ -50,6 +55,12 @@ module Ingenico::Connect::SDK
|
|
50
55
|
if hash.has_key?('isRecurring')
|
51
56
|
@is_recurring = hash['isRecurring']
|
52
57
|
end
|
58
|
+
if hash.has_key?('paymentProduct771SpecificInput')
|
59
|
+
if !(hash['paymentProduct771SpecificInput'].is_a? Hash)
|
60
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct771SpecificInput']]
|
61
|
+
end
|
62
|
+
@payment_product771_specific_input = Ingenico::Connect::SDK::Domain::Payment::SepaDirectDebitPaymentProduct771SpecificInput.new_from_hash(hash['paymentProduct771SpecificInput'])
|
63
|
+
end
|
53
64
|
if hash.has_key?('recurringPaymentSequenceIndicator')
|
54
65
|
@recurring_payment_sequence_indicator = hash['recurringPaymentSequenceIndicator']
|
55
66
|
end
|
data/lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input_base.rb
CHANGED
@@ -2,16 +2,16 @@
|
|
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/
|
6
|
-
require 'ingenico/connect/sdk/domain/payment/
|
5
|
+
require 'ingenico/connect/sdk/domain/payment/abstract_sepa_direct_debit_payment_method_specific_input'
|
6
|
+
require 'ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_product771_specific_input_base'
|
7
7
|
|
8
8
|
module Ingenico::Connect::SDK
|
9
9
|
module Domain
|
10
10
|
module Payment
|
11
11
|
|
12
|
-
class SepaDirectDebitPaymentMethodSpecificInputBase < Ingenico::Connect::SDK::Domain::
|
12
|
+
class SepaDirectDebitPaymentMethodSpecificInputBase < Ingenico::Connect::SDK::Domain::Payment::AbstractSepaDirectDebitPaymentMethodSpecificInput
|
13
13
|
|
14
|
-
# {Ingenico::Connect::SDK::Domain::Payment::
|
14
|
+
# {Ingenico::Connect::SDK::Domain::Payment::SepaDirectDebitPaymentProduct771SpecificInputBase}
|
15
15
|
attr_accessor :payment_product771_specific_input
|
16
16
|
|
17
17
|
def to_h
|
@@ -26,7 +26,7 @@ module Ingenico::Connect::SDK
|
|
26
26
|
if !(hash['paymentProduct771SpecificInput'].is_a? Hash)
|
27
27
|
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct771SpecificInput']]
|
28
28
|
end
|
29
|
-
@payment_product771_specific_input = Ingenico::Connect::SDK::Domain::Payment::
|
29
|
+
@payment_product771_specific_input = Ingenico::Connect::SDK::Domain::Payment::SepaDirectDebitPaymentProduct771SpecificInputBase.new_from_hash(hash['paymentProduct771SpecificInput'])
|
30
30
|
end
|
31
31
|
end
|
32
32
|
end
|
data/lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_product771_specific_input.rb
CHANGED
@@ -2,25 +2,21 @@
|
|
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/
|
6
|
-
require 'ingenico/connect/sdk/domain/
|
5
|
+
require 'ingenico/connect/sdk/domain/mandates/create_mandate_with_return_url'
|
6
|
+
require 'ingenico/connect/sdk/domain/payment/abstract_sepa_direct_debit_payment_product771_specific_input'
|
7
7
|
|
8
8
|
module Ingenico::Connect::SDK
|
9
9
|
module Domain
|
10
10
|
module Payment
|
11
11
|
|
12
|
-
class SepaDirectDebitPaymentProduct771SpecificInput < Ingenico::Connect::SDK::
|
12
|
+
class SepaDirectDebitPaymentProduct771SpecificInput < Ingenico::Connect::SDK::Domain::Payment::AbstractSepaDirectDebitPaymentProduct771SpecificInput
|
13
13
|
|
14
|
-
# {Ingenico::Connect::SDK::Domain::Mandates::
|
14
|
+
# {Ingenico::Connect::SDK::Domain::Mandates::CreateMandateWithReturnUrl}
|
15
15
|
attr_accessor :mandate
|
16
16
|
|
17
|
-
# String
|
18
|
-
attr_accessor :mandate_reference
|
19
|
-
|
20
17
|
def to_h
|
21
18
|
hash = super
|
22
19
|
add_to_hash(hash, 'mandate', @mandate)
|
23
|
-
add_to_hash(hash, 'mandateReference', @mandate_reference)
|
24
20
|
hash
|
25
21
|
end
|
26
22
|
|
@@ -30,10 +26,7 @@ module Ingenico::Connect::SDK
|
|
30
26
|
if !(hash['mandate'].is_a? Hash)
|
31
27
|
raise TypeError, "value '%s' is not a Hash" % [hash['mandate']]
|
32
28
|
end
|
33
|
-
@mandate = Ingenico::Connect::SDK::Domain::Mandates::
|
34
|
-
end
|
35
|
-
if hash.has_key?('mandateReference')
|
36
|
-
@mandate_reference = hash['mandateReference']
|
29
|
+
@mandate = Ingenico::Connect::SDK::Domain::Mandates::CreateMandateWithReturnUrl.new_from_hash(hash['mandate'])
|
37
30
|
end
|
38
31
|
end
|
39
32
|
end
|
@@ -0,0 +1,35 @@
|
|
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/domain/mandates/create_mandate_base'
|
6
|
+
require 'ingenico/connect/sdk/domain/payment/abstract_sepa_direct_debit_payment_product771_specific_input'
|
7
|
+
|
8
|
+
module Ingenico::Connect::SDK
|
9
|
+
module Domain
|
10
|
+
module Payment
|
11
|
+
|
12
|
+
class SepaDirectDebitPaymentProduct771SpecificInputBase < Ingenico::Connect::SDK::Domain::Payment::AbstractSepaDirectDebitPaymentProduct771SpecificInput
|
13
|
+
|
14
|
+
# {Ingenico::Connect::SDK::Domain::Mandates::CreateMandateBase}
|
15
|
+
attr_accessor :mandate
|
16
|
+
|
17
|
+
def to_h
|
18
|
+
hash = super
|
19
|
+
add_to_hash(hash, 'mandate', @mandate)
|
20
|
+
hash
|
21
|
+
end
|
22
|
+
|
23
|
+
def from_hash(hash)
|
24
|
+
super
|
25
|
+
if hash.has_key?('mandate')
|
26
|
+
if !(hash['mandate'].is_a? Hash)
|
27
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['mandate']]
|
28
|
+
end
|
29
|
+
@mandate = Ingenico::Connect::SDK::Domain::Mandates::CreateMandateBase.new_from_hash(hash['mandate'])
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
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.15.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.15.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: 2017-
|
11
|
+
date: 2017-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|
@@ -242,6 +242,7 @@ files:
|
|
242
242
|
- lib/ingenico/connect/sdk/domain/mandates/create_mandate_base.rb
|
243
243
|
- lib/ingenico/connect/sdk/domain/mandates/create_mandate_request.rb
|
244
244
|
- lib/ingenico/connect/sdk/domain/mandates/create_mandate_response.rb
|
245
|
+
- lib/ingenico/connect/sdk/domain/mandates/create_mandate_with_return_url.rb
|
245
246
|
- lib/ingenico/connect/sdk/domain/mandates/get_mandate_response.rb
|
246
247
|
- lib/ingenico/connect/sdk/domain/mandates/mandate_address.rb
|
247
248
|
- lib/ingenico/connect/sdk/domain/mandates/mandate_contact_details.rb
|
@@ -253,6 +254,8 @@ files:
|
|
253
254
|
- lib/ingenico/connect/sdk/domain/mandates/mandate_response.rb
|
254
255
|
- lib/ingenico/connect/sdk/domain/metadata/shopping_cart_extension.rb
|
255
256
|
- lib/ingenico/connect/sdk/domain/payment/abstract_payment_method_specific_output.rb
|
257
|
+
- lib/ingenico/connect/sdk/domain/payment/abstract_sepa_direct_debit_payment_method_specific_input.rb
|
258
|
+
- lib/ingenico/connect/sdk/domain/payment/abstract_sepa_direct_debit_payment_product771_specific_input.rb
|
256
259
|
- lib/ingenico/connect/sdk/domain/payment/additional_order_input.rb
|
257
260
|
- lib/ingenico/connect/sdk/domain/payment/address_personal.rb
|
258
261
|
- lib/ingenico/connect/sdk/domain/payment/amount_breakdown.rb
|
@@ -355,6 +358,7 @@ files:
|
|
355
358
|
- lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input_base.rb
|
356
359
|
- lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_output.rb
|
357
360
|
- lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_product771_specific_input.rb
|
361
|
+
- lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_product771_specific_input_base.rb
|
358
362
|
- lib/ingenico/connect/sdk/domain/payment/shopping_cart.rb
|
359
363
|
- lib/ingenico/connect/sdk/domain/payment/third_party_status_response.rb
|
360
364
|
- lib/ingenico/connect/sdk/domain/payment/three_d_secure_results.rb
|
@@ -611,7 +615,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
611
615
|
version: '0'
|
612
616
|
requirements: []
|
613
617
|
rubyforge_project:
|
614
|
-
rubygems_version: 2.
|
618
|
+
rubygems_version: 2.7.3
|
615
619
|
signing_key:
|
616
620
|
specification_version: 4
|
617
621
|
summary: SDK to communicate with the Ingenico ePayments platform using the Ingenico
|