connect-sdk-ruby 1.23.0 → 1.24.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/payout/card_payout_method_specific_input.rb +7 -0
- data/lib/ingenico/connect/sdk/domain/refund/bank_account_bban_refund.rb +7 -0
- data/lib/ingenico/connect/sdk/domain/refund/refund_customer.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: 727b5afdfef561e3deb6d664a160345ff7ce82817419f5c33f37aa36760a9f30
|
4
|
+
data.tar.gz: 3b1d4b5ee500b438d0679ccc7d849c9c34aad610cb1207d071c540936f371de7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9ab1c7de67289d82ebcf08e2b58e705c1008541aedfb551386ae33eae2b6ef68489d9759b505e7e8b13fd9e48d442f90eb4ea37c3c1387070a3d37aa8bab3c8
|
7
|
+
data.tar.gz: cd3d112e6641520b9543ecf467e70ede22aa2401ac3b491603fcf52ee62ce6f5bd473c54adc26cdfc6b0bc8f80d889f1119d0e1742580e7aa9509b6195ee35f2
|
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.24.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}
|
@@ -17,10 +17,14 @@ module Ingenico::Connect::SDK
|
|
17
17
|
# Integer
|
18
18
|
attr_accessor :payment_product_id
|
19
19
|
|
20
|
+
# String
|
21
|
+
attr_accessor :token
|
22
|
+
|
20
23
|
def to_h
|
21
24
|
hash = super
|
22
25
|
add_to_hash(hash, 'card', @card)
|
23
26
|
add_to_hash(hash, 'paymentProductId', @payment_product_id)
|
27
|
+
add_to_hash(hash, 'token', @token)
|
24
28
|
hash
|
25
29
|
end
|
26
30
|
|
@@ -35,6 +39,9 @@ module Ingenico::Connect::SDK
|
|
35
39
|
if hash.has_key?('paymentProductId')
|
36
40
|
@payment_product_id = hash['paymentProductId']
|
37
41
|
end
|
42
|
+
if hash.has_key?('token')
|
43
|
+
@token = hash['token']
|
44
|
+
end
|
38
45
|
end
|
39
46
|
end
|
40
47
|
end
|
@@ -13,12 +13,16 @@ module Ingenico::Connect::SDK
|
|
13
13
|
# String
|
14
14
|
attr_accessor :bank_city
|
15
15
|
|
16
|
+
# String
|
17
|
+
attr_accessor :patronymic_name
|
18
|
+
|
16
19
|
# String
|
17
20
|
attr_accessor :swift_code
|
18
21
|
|
19
22
|
def to_h
|
20
23
|
hash = super
|
21
24
|
add_to_hash(hash, 'bankCity', @bank_city)
|
25
|
+
add_to_hash(hash, 'patronymicName', @patronymic_name)
|
22
26
|
add_to_hash(hash, 'swiftCode', @swift_code)
|
23
27
|
hash
|
24
28
|
end
|
@@ -28,6 +32,9 @@ module Ingenico::Connect::SDK
|
|
28
32
|
if hash.has_key?('bankCity')
|
29
33
|
@bank_city = hash['bankCity']
|
30
34
|
end
|
35
|
+
if hash.has_key?('patronymicName')
|
36
|
+
@patronymic_name = hash['patronymicName']
|
37
|
+
end
|
31
38
|
if hash.has_key?('swiftCode')
|
32
39
|
@swift_code = hash['swiftCode']
|
33
40
|
end
|
@@ -22,11 +22,15 @@ module Ingenico::Connect::SDK
|
|
22
22
|
# {Ingenico::Connect::SDK::Domain::Definitions::ContactDetailsBase}
|
23
23
|
attr_accessor :contact_details
|
24
24
|
|
25
|
+
# String
|
26
|
+
attr_accessor :fiscal_number
|
27
|
+
|
25
28
|
def to_h
|
26
29
|
hash = super
|
27
30
|
add_to_hash(hash, 'address', @address)
|
28
31
|
add_to_hash(hash, 'companyInformation', @company_information)
|
29
32
|
add_to_hash(hash, 'contactDetails', @contact_details)
|
33
|
+
add_to_hash(hash, 'fiscalNumber', @fiscal_number)
|
30
34
|
hash
|
31
35
|
end
|
32
36
|
|
@@ -50,6 +54,9 @@ module Ingenico::Connect::SDK
|
|
50
54
|
end
|
51
55
|
@contact_details = Ingenico::Connect::SDK::Domain::Definitions::ContactDetailsBase.new_from_hash(hash['contactDetails'])
|
52
56
|
end
|
57
|
+
if hash.has_key?('fiscalNumber')
|
58
|
+
@fiscal_number = hash['fiscalNumber']
|
59
|
+
end
|
53
60
|
end
|
54
61
|
end
|
55
62
|
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.24.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.24.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: 2018-
|
11
|
+
date: 2018-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|