connect-sdk-ruby 2.6.0 → 2.7.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/lib/ingenico/connect/sdk/domain/payment/refund_cash_method_specific_output.rb +15 -0
- data/lib/ingenico/connect/sdk/domain/payment/refund_method_specific_output.rb +7 -0
- data/lib/ingenico/connect/sdk/domain/payment/refund_output.rb +9 -0
- data/lib/ingenico/connect/sdk/domain/product/payment_product_field_validators.rb +8 -0
- data/lib/ingenico/connect/sdk/domain/token/create_token_request.rb +7 -0
- data/lib/ingenico/connect/sdk/meta_data_provider.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6099cda6eac7da4737b0bea9a334ca8fedbe9b355f93a9908bfc8db10052a58
|
4
|
+
data.tar.gz: 3ffabf9da99a3aef5dfe82ea229c3f923f8aae83f67bde5058babc4591ce52d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17cb263f8f4be7e76d0d63be7d280f2114e57e1e2747686be149c899ca9abd0bf870ec4d20cb4995a34ede144092191c7b503d7c247d1122dfda568357fc33e2
|
7
|
+
data.tar.gz: 04e61626b2be322fdc2ad6be73985adf6a260851d3f24acf91544c797cf69332e341d661c4244a304e8d89fd9c5105a429db0eef346ddec36c1d41e98c5ea004
|
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.7.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}
|
@@ -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/payment/refund_method_specific_output'
|
6
|
+
|
7
|
+
module Ingenico::Connect::SDK
|
8
|
+
module Domain
|
9
|
+
module Payment
|
10
|
+
|
11
|
+
class RefundCashMethodSpecificOutput < Ingenico::Connect::SDK::Domain::Payment::RefundMethodSpecificOutput
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -8,10 +8,13 @@ module Ingenico::Connect::SDK
|
|
8
8
|
module Domain
|
9
9
|
module Payment
|
10
10
|
|
11
|
+
# @attr [Integer] refund_product_id
|
11
12
|
# @attr [Integer] total_amount_paid
|
12
13
|
# @attr [Integer] total_amount_refunded
|
13
14
|
class RefundMethodSpecificOutput < Ingenico::Connect::SDK::DataObject
|
14
15
|
|
16
|
+
attr_accessor :refund_product_id
|
17
|
+
|
15
18
|
attr_accessor :total_amount_paid
|
16
19
|
|
17
20
|
attr_accessor :total_amount_refunded
|
@@ -19,6 +22,7 @@ module Ingenico::Connect::SDK
|
|
19
22
|
# @return (Hash)
|
20
23
|
def to_h
|
21
24
|
hash = super
|
25
|
+
hash['refundProductId'] = @refund_product_id unless @refund_product_id.nil?
|
22
26
|
hash['totalAmountPaid'] = @total_amount_paid unless @total_amount_paid.nil?
|
23
27
|
hash['totalAmountRefunded'] = @total_amount_refunded unless @total_amount_refunded.nil?
|
24
28
|
hash
|
@@ -26,6 +30,9 @@ module Ingenico::Connect::SDK
|
|
26
30
|
|
27
31
|
def from_hash(hash)
|
28
32
|
super
|
33
|
+
if hash.has_key? 'refundProductId'
|
34
|
+
@refund_product_id = hash['refundProductId']
|
35
|
+
end
|
29
36
|
if hash.has_key? 'totalAmountPaid'
|
30
37
|
@total_amount_paid = hash['totalAmountPaid']
|
31
38
|
end
|
@@ -5,6 +5,7 @@
|
|
5
5
|
require 'ingenico/connect/sdk/domain/payment/order_output'
|
6
6
|
require 'ingenico/connect/sdk/domain/payment/refund_bank_method_specific_output'
|
7
7
|
require 'ingenico/connect/sdk/domain/payment/refund_card_method_specific_output'
|
8
|
+
require 'ingenico/connect/sdk/domain/payment/refund_cash_method_specific_output'
|
8
9
|
require 'ingenico/connect/sdk/domain/payment/refund_e_invoice_method_specific_output'
|
9
10
|
require 'ingenico/connect/sdk/domain/payment/refund_e_wallet_method_specific_output'
|
10
11
|
require 'ingenico/connect/sdk/domain/payment/refund_mobile_method_specific_output'
|
@@ -16,6 +17,7 @@ module Ingenico::Connect::SDK
|
|
16
17
|
# @attr [Integer] amount_paid
|
17
18
|
# @attr [Ingenico::Connect::SDK::Domain::Payment::RefundBankMethodSpecificOutput] bank_refund_method_specific_output
|
18
19
|
# @attr [Ingenico::Connect::SDK::Domain::Payment::RefundCardMethodSpecificOutput] card_refund_method_specific_output
|
20
|
+
# @attr [Ingenico::Connect::SDK::Domain::Payment::RefundCashMethodSpecificOutput] cash_refund_method_specific_output
|
19
21
|
# @attr [Ingenico::Connect::SDK::Domain::Payment::RefundEInvoiceMethodSpecificOutput] e_invoice_refund_method_specific_output
|
20
22
|
# @attr [Ingenico::Connect::SDK::Domain::Payment::RefundEWalletMethodSpecificOutput] e_wallet_refund_method_specific_output
|
21
23
|
# @attr [Ingenico::Connect::SDK::Domain::Payment::RefundMobileMethodSpecificOutput] mobile_refund_method_specific_output
|
@@ -28,6 +30,8 @@ module Ingenico::Connect::SDK
|
|
28
30
|
|
29
31
|
attr_accessor :card_refund_method_specific_output
|
30
32
|
|
33
|
+
attr_accessor :cash_refund_method_specific_output
|
34
|
+
|
31
35
|
attr_accessor :e_invoice_refund_method_specific_output
|
32
36
|
|
33
37
|
attr_accessor :e_wallet_refund_method_specific_output
|
@@ -42,6 +46,7 @@ module Ingenico::Connect::SDK
|
|
42
46
|
hash['amountPaid'] = @amount_paid unless @amount_paid.nil?
|
43
47
|
hash['bankRefundMethodSpecificOutput'] = @bank_refund_method_specific_output.to_h unless @bank_refund_method_specific_output.nil?
|
44
48
|
hash['cardRefundMethodSpecificOutput'] = @card_refund_method_specific_output.to_h unless @card_refund_method_specific_output.nil?
|
49
|
+
hash['cashRefundMethodSpecificOutput'] = @cash_refund_method_specific_output.to_h unless @cash_refund_method_specific_output.nil?
|
45
50
|
hash['eInvoiceRefundMethodSpecificOutput'] = @e_invoice_refund_method_specific_output.to_h unless @e_invoice_refund_method_specific_output.nil?
|
46
51
|
hash['eWalletRefundMethodSpecificOutput'] = @e_wallet_refund_method_specific_output.to_h unless @e_wallet_refund_method_specific_output.nil?
|
47
52
|
hash['mobileRefundMethodSpecificOutput'] = @mobile_refund_method_specific_output.to_h unless @mobile_refund_method_specific_output.nil?
|
@@ -62,6 +67,10 @@ module Ingenico::Connect::SDK
|
|
62
67
|
raise TypeError, "value '%s' is not a Hash" % [hash['cardRefundMethodSpecificOutput']] unless hash['cardRefundMethodSpecificOutput'].is_a? Hash
|
63
68
|
@card_refund_method_specific_output = Ingenico::Connect::SDK::Domain::Payment::RefundCardMethodSpecificOutput.new_from_hash(hash['cardRefundMethodSpecificOutput'])
|
64
69
|
end
|
70
|
+
if hash.has_key? 'cashRefundMethodSpecificOutput'
|
71
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['cashRefundMethodSpecificOutput']] unless hash['cashRefundMethodSpecificOutput'].is_a? Hash
|
72
|
+
@cash_refund_method_specific_output = Ingenico::Connect::SDK::Domain::Payment::RefundCashMethodSpecificOutput.new_from_hash(hash['cashRefundMethodSpecificOutput'])
|
73
|
+
end
|
65
74
|
if hash.has_key? 'eInvoiceRefundMethodSpecificOutput'
|
66
75
|
raise TypeError, "value '%s' is not a Hash" % [hash['eInvoiceRefundMethodSpecificOutput']] unless hash['eInvoiceRefundMethodSpecificOutput'].is_a? Hash
|
67
76
|
@e_invoice_refund_method_specific_output = Ingenico::Connect::SDK::Domain::Payment::RefundEInvoiceMethodSpecificOutput.new_from_hash(hash['eInvoiceRefundMethodSpecificOutput'])
|
@@ -23,6 +23,7 @@ module Ingenico::Connect::SDK
|
|
23
23
|
# @attr [Ingenico::Connect::SDK::Domain::Product::EmptyValidator] luhn
|
24
24
|
# @attr [Ingenico::Connect::SDK::Domain::Product::RangeValidator] range
|
25
25
|
# @attr [Ingenico::Connect::SDK::Domain::Product::RegularExpressionValidator] regular_expression
|
26
|
+
# @attr [Ingenico::Connect::SDK::Domain::Product::EmptyValidator] resident_id_number
|
26
27
|
# @attr [Ingenico::Connect::SDK::Domain::Product::EmptyValidator] terms_and_conditions
|
27
28
|
class PaymentProductFieldValidators < Ingenico::Connect::SDK::DataObject
|
28
29
|
|
@@ -44,6 +45,8 @@ module Ingenico::Connect::SDK
|
|
44
45
|
|
45
46
|
attr_accessor :regular_expression
|
46
47
|
|
48
|
+
attr_accessor :resident_id_number
|
49
|
+
|
47
50
|
attr_accessor :terms_and_conditions
|
48
51
|
|
49
52
|
# @return (Hash)
|
@@ -58,6 +61,7 @@ module Ingenico::Connect::SDK
|
|
58
61
|
hash['luhn'] = @luhn.to_h unless @luhn.nil?
|
59
62
|
hash['range'] = @range.to_h unless @range.nil?
|
60
63
|
hash['regularExpression'] = @regular_expression.to_h unless @regular_expression.nil?
|
64
|
+
hash['residentIdNumber'] = @resident_id_number.to_h unless @resident_id_number.nil?
|
61
65
|
hash['termsAndConditions'] = @terms_and_conditions.to_h unless @terms_and_conditions.nil?
|
62
66
|
hash
|
63
67
|
end
|
@@ -100,6 +104,10 @@ module Ingenico::Connect::SDK
|
|
100
104
|
raise TypeError, "value '%s' is not a Hash" % [hash['regularExpression']] unless hash['regularExpression'].is_a? Hash
|
101
105
|
@regular_expression = Ingenico::Connect::SDK::Domain::Product::RegularExpressionValidator.new_from_hash(hash['regularExpression'])
|
102
106
|
end
|
107
|
+
if hash.has_key? 'residentIdNumber'
|
108
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['residentIdNumber']] unless hash['residentIdNumber'].is_a? Hash
|
109
|
+
@resident_id_number = Ingenico::Connect::SDK::Domain::Product::EmptyValidator.new_from_hash(hash['residentIdNumber'])
|
110
|
+
end
|
103
111
|
if hash.has_key? 'termsAndConditions'
|
104
112
|
raise TypeError, "value '%s' is not a Hash" % [hash['termsAndConditions']] unless hash['termsAndConditions'].is_a? Hash
|
105
113
|
@terms_and_conditions = Ingenico::Connect::SDK::Domain::Product::EmptyValidator.new_from_hash(hash['termsAndConditions'])
|
@@ -14,6 +14,7 @@ module Ingenico::Connect::SDK
|
|
14
14
|
|
15
15
|
# @attr [Ingenico::Connect::SDK::Domain::Token::TokenCard] card
|
16
16
|
# @attr [Ingenico::Connect::SDK::Domain::Token::TokenEWallet] e_wallet
|
17
|
+
# @attr [String] encrypted_customer_input
|
17
18
|
# @attr [Ingenico::Connect::SDK::Domain::Token::TokenNonSepaDirectDebit] non_sepa_direct_debit
|
18
19
|
# @attr [Integer] payment_product_id
|
19
20
|
# @attr [Ingenico::Connect::SDK::Domain::Token::TokenSepaDirectDebitWithoutCreditor] sepa_direct_debit
|
@@ -23,6 +24,8 @@ module Ingenico::Connect::SDK
|
|
23
24
|
|
24
25
|
attr_accessor :e_wallet
|
25
26
|
|
27
|
+
attr_accessor :encrypted_customer_input
|
28
|
+
|
26
29
|
attr_accessor :non_sepa_direct_debit
|
27
30
|
|
28
31
|
attr_accessor :payment_product_id
|
@@ -34,6 +37,7 @@ module Ingenico::Connect::SDK
|
|
34
37
|
hash = super
|
35
38
|
hash['card'] = @card.to_h unless @card.nil?
|
36
39
|
hash['eWallet'] = @e_wallet.to_h unless @e_wallet.nil?
|
40
|
+
hash['encryptedCustomerInput'] = @encrypted_customer_input unless @encrypted_customer_input.nil?
|
37
41
|
hash['nonSepaDirectDebit'] = @non_sepa_direct_debit.to_h unless @non_sepa_direct_debit.nil?
|
38
42
|
hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil?
|
39
43
|
hash['sepaDirectDebit'] = @sepa_direct_debit.to_h unless @sepa_direct_debit.nil?
|
@@ -50,6 +54,9 @@ module Ingenico::Connect::SDK
|
|
50
54
|
raise TypeError, "value '%s' is not a Hash" % [hash['eWallet']] unless hash['eWallet'].is_a? Hash
|
51
55
|
@e_wallet = Ingenico::Connect::SDK::Domain::Token::TokenEWallet.new_from_hash(hash['eWallet'])
|
52
56
|
end
|
57
|
+
if hash.has_key? 'encryptedCustomerInput'
|
58
|
+
@encrypted_customer_input = hash['encryptedCustomerInput']
|
59
|
+
end
|
53
60
|
if hash.has_key? 'nonSepaDirectDebit'
|
54
61
|
raise TypeError, "value '%s' is not a Hash" % [hash['nonSepaDirectDebit']] unless hash['nonSepaDirectDebit'].is_a? Hash
|
55
62
|
@non_sepa_direct_debit = Ingenico::Connect::SDK::Domain::Token::TokenNonSepaDirectDebit.new_from_hash(hash['nonSepaDirectDebit'])
|
@@ -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.7.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.7.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: 2020-
|
11
|
+
date: 2020-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|
@@ -412,6 +412,7 @@ files:
|
|
412
412
|
- lib/ingenico/connect/sdk/domain/payment/redirection_data.rb
|
413
413
|
- lib/ingenico/connect/sdk/domain/payment/refund_bank_method_specific_output.rb
|
414
414
|
- lib/ingenico/connect/sdk/domain/payment/refund_card_method_specific_output.rb
|
415
|
+
- lib/ingenico/connect/sdk/domain/payment/refund_cash_method_specific_output.rb
|
415
416
|
- lib/ingenico/connect/sdk/domain/payment/refund_e_invoice_method_specific_output.rb
|
416
417
|
- lib/ingenico/connect/sdk/domain/payment/refund_e_wallet_method_specific_output.rb
|
417
418
|
- lib/ingenico/connect/sdk/domain/payment/refund_method_specific_output.rb
|