connect-sdk-ruby 2.34.0 → 2.35.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5ff3202abf8abffc3ff97112e9fc380d855a3c152c0a0e82dc720136fde125a
|
4
|
+
data.tar.gz: 6b3981fb7950b89b496dcfa0b22b604952339436e5b2a725afd0b39fe47240ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 200d55eaca4cc11fd4b753869145c3dd4c4da95cb71c4c5602d46ac41d63d74982101b261cedfa50c29cccef62f2f3084eb03f12a6657a9d22a62be87965ebeb
|
7
|
+
data.tar.gz: 32b7b43d6388f05b53b7e98228761ee64d565e61dc910ff72d803c248d41dc1d7e34a43dfa9514e02648e358036a7430da1126dc134958adaa8a3d0956e6b9d8
|
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.35.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}
|
@@ -10,6 +10,7 @@ require 'ingenico/connect/sdk/domain/payout/bank_transfer_payout_method_specific
|
|
10
10
|
require 'ingenico/connect/sdk/domain/payout/card_payout_method_specific_input'
|
11
11
|
require 'ingenico/connect/sdk/domain/payout/payout_customer'
|
12
12
|
require 'ingenico/connect/sdk/domain/payout/payout_details'
|
13
|
+
require 'ingenico/connect/sdk/domain/payout/payout_merchant'
|
13
14
|
require 'ingenico/connect/sdk/domain/payout/payout_references'
|
14
15
|
|
15
16
|
module Ingenico::Connect::SDK
|
@@ -22,6 +23,7 @@ module Ingenico::Connect::SDK
|
|
22
23
|
# @attr [Ingenico::Connect::SDK::Domain::Payout::BankTransferPayoutMethodSpecificInput] bank_transfer_payout_method_specific_input
|
23
24
|
# @attr [Ingenico::Connect::SDK::Domain::Payout::CardPayoutMethodSpecificInput] card_payout_method_specific_input
|
24
25
|
# @attr [Ingenico::Connect::SDK::Domain::Payout::PayoutCustomer] customer
|
26
|
+
# @attr [Ingenico::Connect::SDK::Domain::Payout::PayoutMerchant] merchant
|
25
27
|
# @attr [String] payout_date
|
26
28
|
# @attr [Ingenico::Connect::SDK::Domain::Payout::PayoutDetails] payout_details
|
27
29
|
# @attr [String] payout_text
|
@@ -49,6 +51,8 @@ module Ingenico::Connect::SDK
|
|
49
51
|
# @deprecated Moved to PayoutDetails
|
50
52
|
attr_accessor :customer
|
51
53
|
|
54
|
+
attr_accessor :merchant
|
55
|
+
|
52
56
|
#
|
53
57
|
# @deprecated Moved to BankTransferPayoutMethodSpecificInput
|
54
58
|
attr_accessor :payout_date
|
@@ -76,6 +80,7 @@ module Ingenico::Connect::SDK
|
|
76
80
|
hash['bankTransferPayoutMethodSpecificInput'] = @bank_transfer_payout_method_specific_input.to_h unless @bank_transfer_payout_method_specific_input.nil?
|
77
81
|
hash['cardPayoutMethodSpecificInput'] = @card_payout_method_specific_input.to_h unless @card_payout_method_specific_input.nil?
|
78
82
|
hash['customer'] = @customer.to_h unless @customer.nil?
|
83
|
+
hash['merchant'] = @merchant.to_h unless @merchant.nil?
|
79
84
|
hash['payoutDate'] = @payout_date unless @payout_date.nil?
|
80
85
|
hash['payoutDetails'] = @payout_details.to_h unless @payout_details.nil?
|
81
86
|
hash['payoutText'] = @payout_text unless @payout_text.nil?
|
@@ -110,6 +115,10 @@ module Ingenico::Connect::SDK
|
|
110
115
|
raise TypeError, "value '%s' is not a Hash" % [hash['customer']] unless hash['customer'].is_a? Hash
|
111
116
|
@customer = Ingenico::Connect::SDK::Domain::Payout::PayoutCustomer.new_from_hash(hash['customer'])
|
112
117
|
end
|
118
|
+
if hash.has_key? 'merchant'
|
119
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['merchant']] unless hash['merchant'].is_a? Hash
|
120
|
+
@merchant = Ingenico::Connect::SDK::Domain::Payout::PayoutMerchant.new_from_hash(hash['merchant'])
|
121
|
+
end
|
113
122
|
if hash.has_key? 'payoutDate'
|
114
123
|
@payout_date = hash['payoutDate']
|
115
124
|
end
|
@@ -0,0 +1,32 @@
|
|
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 Payout
|
10
|
+
|
11
|
+
# @attr [String] configuration_id
|
12
|
+
class PayoutMerchant < Ingenico::Connect::SDK::DataObject
|
13
|
+
|
14
|
+
attr_accessor :configuration_id
|
15
|
+
|
16
|
+
# @return (Hash)
|
17
|
+
def to_h
|
18
|
+
hash = super
|
19
|
+
hash['configurationId'] = @configuration_id unless @configuration_id.nil?
|
20
|
+
hash
|
21
|
+
end
|
22
|
+
|
23
|
+
def from_hash(hash)
|
24
|
+
super
|
25
|
+
if hash.has_key? 'configurationId'
|
26
|
+
@configuration_id = hash['configurationId']
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
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.35.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.35.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:
|
11
|
+
date: 2023-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|
@@ -486,6 +486,7 @@ files:
|
|
486
486
|
- lib/ingenico/connect/sdk/domain/payout/payout_customer.rb
|
487
487
|
- lib/ingenico/connect/sdk/domain/payout/payout_details.rb
|
488
488
|
- lib/ingenico/connect/sdk/domain/payout/payout_error_response.rb
|
489
|
+
- lib/ingenico/connect/sdk/domain/payout/payout_merchant.rb
|
489
490
|
- lib/ingenico/connect/sdk/domain/payout/payout_recipient.rb
|
490
491
|
- lib/ingenico/connect/sdk/domain/payout/payout_references.rb
|
491
492
|
- lib/ingenico/connect/sdk/domain/payout/payout_response.rb
|