connect-sdk-ruby 2.18.1 → 2.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/connect-sdk-ruby.gemspec +1 -1
- data/examples/merchant/payments/complete_payment_example.rb +1 -1
- data/examples/merchant/payments/create_payment_example.rb +1 -1
- data/examples/merchant/riskassessments/risk_assessment_cards_example.rb +1 -1
- data/examples/merchant/tokens/update_token_example.rb +1 -1
- data/lib/ingenico/connect/sdk/domain/payment/non_sepa_direct_debit_payment_method_specific_input.rb +7 -0
- data/lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input.rb +7 -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: ab500d1794ddeac60cc23464a21c5b96093f594f42410f708de6185080ea8432
|
4
|
+
data.tar.gz: bcfab9d7858aa7f249e400f4e14b9bc0faf2df97901880328e5301f21014d0d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c362b90a182eca7d0ec52b61b9095a4e3982e84cbcdd4c39a4a49fde7ef557c46a2398632adc62109f21e1cbcfc44f02c0d0b1af4ba0debd329227cd8884401f
|
7
|
+
data.tar.gz: 06d5e09ea6c58b8fafb75559d1ef50a439bab792d0ea74cfb3612d68b991b5a95ce02f2bcd9dcaca897d3d107ffcbbb36dd0c943835dc144ade6cbaeacabf11f
|
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.19.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}
|
@@ -15,7 +15,7 @@ def example
|
|
15
15
|
card = Definitions::CardWithoutCvv.new
|
16
16
|
card.card_number = '67030000000000003'
|
17
17
|
card.cardholder_name = 'Wile E. Coyote'
|
18
|
-
card.expiry_date = '
|
18
|
+
card.expiry_date = '1299'
|
19
19
|
|
20
20
|
card_payment_method_specific_input = Payment::CompletePaymentCardPaymentMethodSpecificInput.new
|
21
21
|
card_payment_method_specific_input.card = card
|
@@ -37,7 +37,7 @@ def example
|
|
37
37
|
card.card_number = '4567350000427977'
|
38
38
|
card.cardholder_name = 'Wile E. Coyote'
|
39
39
|
card.cvv = '123'
|
40
|
-
card.expiry_date = '
|
40
|
+
card.expiry_date = '1299'
|
41
41
|
|
42
42
|
authentication_amount = Definitions::AmountOfMoney.new
|
43
43
|
authentication_amount.amount = 2980
|
@@ -47,7 +47,7 @@ def example
|
|
47
47
|
card_without_cvv = Definitions::CardWithoutCvv.new
|
48
48
|
card_without_cvv.card_number = '4567350000427977'
|
49
49
|
card_without_cvv.cardholder_name = 'Wile E. Coyote'
|
50
|
-
card_without_cvv.expiry_date = '
|
50
|
+
card_without_cvv.expiry_date = '1299'
|
51
51
|
card_without_cvv.issue_number = '12'
|
52
52
|
|
53
53
|
data = Token::TokenCardData.new
|
data/lib/ingenico/connect/sdk/domain/payment/non_sepa_direct_debit_payment_method_specific_input.rb
CHANGED
@@ -16,6 +16,7 @@ module Ingenico::Connect::SDK
|
|
16
16
|
# @attr [Ingenico::Connect::SDK::Domain::Payment::NonSepaDirectDebitPaymentProduct705SpecificInput] payment_product705_specific_input
|
17
17
|
# @attr [Ingenico::Connect::SDK::Domain::Payment::NonSepaDirectDebitPaymentProduct730SpecificInput] payment_product730_specific_input
|
18
18
|
# @attr [String] recurring_payment_sequence_indicator
|
19
|
+
# @attr [true/false] requires_approval
|
19
20
|
# @attr [String] token
|
20
21
|
# @attr [true/false] tokenize
|
21
22
|
class NonSepaDirectDebitPaymentMethodSpecificInput < Ingenico::Connect::SDK::Domain::Definitions::AbstractPaymentMethodSpecificInput
|
@@ -32,6 +33,8 @@ module Ingenico::Connect::SDK
|
|
32
33
|
|
33
34
|
attr_accessor :recurring_payment_sequence_indicator
|
34
35
|
|
36
|
+
attr_accessor :requires_approval
|
37
|
+
|
35
38
|
attr_accessor :token
|
36
39
|
|
37
40
|
attr_accessor :tokenize
|
@@ -45,6 +48,7 @@ module Ingenico::Connect::SDK
|
|
45
48
|
hash['paymentProduct705SpecificInput'] = @payment_product705_specific_input.to_h unless @payment_product705_specific_input.nil?
|
46
49
|
hash['paymentProduct730SpecificInput'] = @payment_product730_specific_input.to_h unless @payment_product730_specific_input.nil?
|
47
50
|
hash['recurringPaymentSequenceIndicator'] = @recurring_payment_sequence_indicator unless @recurring_payment_sequence_indicator.nil?
|
51
|
+
hash['requiresApproval'] = @requires_approval unless @requires_approval.nil?
|
48
52
|
hash['token'] = @token unless @token.nil?
|
49
53
|
hash['tokenize'] = @tokenize unless @tokenize.nil?
|
50
54
|
hash
|
@@ -72,6 +76,9 @@ module Ingenico::Connect::SDK
|
|
72
76
|
if hash.has_key? 'recurringPaymentSequenceIndicator'
|
73
77
|
@recurring_payment_sequence_indicator = hash['recurringPaymentSequenceIndicator']
|
74
78
|
end
|
79
|
+
if hash.has_key? 'requiresApproval'
|
80
|
+
@requires_approval = hash['requiresApproval']
|
81
|
+
end
|
75
82
|
if hash.has_key? 'token'
|
76
83
|
@token = hash['token']
|
77
84
|
end
|
data/lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input.rb
CHANGED
@@ -14,6 +14,7 @@ module Ingenico::Connect::SDK
|
|
14
14
|
# @attr [true/false] is_recurring
|
15
15
|
# @attr [Ingenico::Connect::SDK::Domain::Payment::SepaDirectDebitPaymentProduct771SpecificInput] payment_product771_specific_input
|
16
16
|
# @attr [String] recurring_payment_sequence_indicator
|
17
|
+
# @attr [true/false] requires_approval
|
17
18
|
# @attr [String] token
|
18
19
|
# @attr [true/false] tokenize
|
19
20
|
class SepaDirectDebitPaymentMethodSpecificInput < Ingenico::Connect::SDK::Domain::Payment::AbstractSepaDirectDebitPaymentMethodSpecificInput
|
@@ -28,6 +29,8 @@ module Ingenico::Connect::SDK
|
|
28
29
|
|
29
30
|
attr_accessor :recurring_payment_sequence_indicator
|
30
31
|
|
32
|
+
attr_accessor :requires_approval
|
33
|
+
|
31
34
|
attr_accessor :token
|
32
35
|
|
33
36
|
attr_accessor :tokenize
|
@@ -40,6 +43,7 @@ module Ingenico::Connect::SDK
|
|
40
43
|
hash['isRecurring'] = @is_recurring unless @is_recurring.nil?
|
41
44
|
hash['paymentProduct771SpecificInput'] = @payment_product771_specific_input.to_h unless @payment_product771_specific_input.nil?
|
42
45
|
hash['recurringPaymentSequenceIndicator'] = @recurring_payment_sequence_indicator unless @recurring_payment_sequence_indicator.nil?
|
46
|
+
hash['requiresApproval'] = @requires_approval unless @requires_approval.nil?
|
43
47
|
hash['token'] = @token unless @token.nil?
|
44
48
|
hash['tokenize'] = @tokenize unless @tokenize.nil?
|
45
49
|
hash
|
@@ -63,6 +67,9 @@ module Ingenico::Connect::SDK
|
|
63
67
|
if hash.has_key? 'recurringPaymentSequenceIndicator'
|
64
68
|
@recurring_payment_sequence_indicator = hash['recurringPaymentSequenceIndicator']
|
65
69
|
end
|
70
|
+
if hash.has_key? 'requiresApproval'
|
71
|
+
@requires_approval = hash['requiresApproval']
|
72
|
+
end
|
66
73
|
if hash.has_key? 'token'
|
67
74
|
@token = hash['token']
|
68
75
|
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.19.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.19.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: 2021-
|
11
|
+
date: 2021-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|