connect-sdk-ruby 2.38.0 → 2.39.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a71627fb52385ca0b227a3fb74603fa2e2ee282b292e9675cb394a88f07d465f
|
4
|
+
data.tar.gz: 89df17bef33a95169f3720d1d2a72aa85827919a5487d115ab4a9a6f0d7583d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09f9a13355618abe2ea3176e65c09ffd94bdda74ed1698202eb67fe67f9f33c7f7e3f2a522e27084f93613dd2db9827eff9cae6e16850324f39fada0b252f834'
|
7
|
+
data.tar.gz: a6440a7e5f92fd89dbe833e69dcfacb12776b0a7484aecbad94063e9a3e95b382c3874b71a2edf6a2107fad89b3aa3970bafb94e7e92fafcd3bdb8accec18e7a
|
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.39.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}
|
@@ -22,6 +22,7 @@ module Ingenico::Connect::SDK
|
|
22
22
|
# @attr [String] issue_date
|
23
23
|
# @attr [String] merchant_customer_id
|
24
24
|
# @attr [String] name
|
25
|
+
# @attr [Integer] number_in_party
|
25
26
|
# @attr [String] passenger_name
|
26
27
|
# @attr [Array<Ingenico::Connect::SDK::Domain::Definitions::AirlinePassenger>] passengers
|
27
28
|
# @attr [String] place_of_issue
|
@@ -62,6 +63,8 @@ module Ingenico::Connect::SDK
|
|
62
63
|
|
63
64
|
attr_accessor :name
|
64
65
|
|
66
|
+
attr_accessor :number_in_party
|
67
|
+
|
65
68
|
attr_accessor :passenger_name
|
66
69
|
|
67
70
|
attr_accessor :passengers
|
@@ -101,6 +104,7 @@ module Ingenico::Connect::SDK
|
|
101
104
|
hash['issueDate'] = @issue_date unless @issue_date.nil?
|
102
105
|
hash['merchantCustomerId'] = @merchant_customer_id unless @merchant_customer_id.nil?
|
103
106
|
hash['name'] = @name unless @name.nil?
|
107
|
+
hash['numberInParty'] = @number_in_party unless @number_in_party.nil?
|
104
108
|
hash['passengerName'] = @passenger_name unless @passenger_name.nil?
|
105
109
|
hash['passengers'] = @passengers.collect{|val| val.to_h} unless @passengers.nil?
|
106
110
|
hash['placeOfIssue'] = @place_of_issue unless @place_of_issue.nil?
|
@@ -158,6 +162,9 @@ module Ingenico::Connect::SDK
|
|
158
162
|
if hash.has_key? 'name'
|
159
163
|
@name = hash['name']
|
160
164
|
end
|
165
|
+
if hash.has_key? 'numberInParty'
|
166
|
+
@number_in_party = hash['numberInParty']
|
167
|
+
end
|
161
168
|
if hash.has_key? 'passengerName'
|
162
169
|
@passenger_name = hash['passengerName']
|
163
170
|
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.39.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
|
@@ -9,12 +9,14 @@ require 'ingenico/connect/sdk/multipart_form_data_request'
|
|
9
9
|
require 'ingenico/connect/sdk/uploadable_file'
|
10
10
|
|
11
11
|
describe 'multipart/form-data support' do
|
12
|
+
HTTPBIN_URL = ENV['httpbin_url'] || 'http://httpbin.org'
|
13
|
+
|
12
14
|
before(:context) { WebMock.allow_net_connect! }
|
13
15
|
after(:context) { WebMock.disable_net_connect! }
|
14
16
|
|
15
17
|
it 'Can send a Multipart Form Data Object POST upload with a response' do
|
16
18
|
configuration = Integration.init_communicator_configuration
|
17
|
-
configuration.api_endpoint =
|
19
|
+
configuration.api_endpoint = HTTPBIN_URL
|
18
20
|
|
19
21
|
multipart = Ingenico::Connect::SDK::MultipartFormDataObject.new
|
20
22
|
multipart.add_file 'file', Ingenico::Connect::SDK::UploadableFile.new(
|
@@ -34,7 +36,7 @@ describe 'multipart/form-data support' do
|
|
34
36
|
|
35
37
|
it 'Can send a Multipart Form Data Request POST upload with a response' do
|
36
38
|
configuration = Integration.init_communicator_configuration
|
37
|
-
configuration.api_endpoint =
|
39
|
+
configuration.api_endpoint = HTTPBIN_URL
|
38
40
|
|
39
41
|
multipart = Ingenico::Connect::SDK::MultipartFormDataObject.new
|
40
42
|
multipart.add_file 'file', Ingenico::Connect::SDK::UploadableFile.new(
|
@@ -54,7 +56,7 @@ describe 'multipart/form-data support' do
|
|
54
56
|
|
55
57
|
it 'Can send a Multipart Form Data Object POST upload with a binary response' do
|
56
58
|
configuration = Integration.init_communicator_configuration
|
57
|
-
configuration.api_endpoint =
|
59
|
+
configuration.api_endpoint = HTTPBIN_URL
|
58
60
|
|
59
61
|
multipart = Ingenico::Connect::SDK::MultipartFormDataObject.new
|
60
62
|
multipart.add_file 'file', Ingenico::Connect::SDK::UploadableFile.new(
|
@@ -77,7 +79,7 @@ describe 'multipart/form-data support' do
|
|
77
79
|
|
78
80
|
it 'Can send a Multipart Form Data Request POST upload with a binary response' do
|
79
81
|
configuration = Integration.init_communicator_configuration
|
80
|
-
configuration.api_endpoint =
|
82
|
+
configuration.api_endpoint = HTTPBIN_URL
|
81
83
|
|
82
84
|
multipart = Ingenico::Connect::SDK::MultipartFormDataObject.new
|
83
85
|
multipart.add_file 'file', Ingenico::Connect::SDK::UploadableFile.new(
|
@@ -100,7 +102,7 @@ describe 'multipart/form-data support' do
|
|
100
102
|
|
101
103
|
it 'Can send a Multipart Form Data Object PUT upload with a response' do
|
102
104
|
configuration = Integration.init_communicator_configuration
|
103
|
-
configuration.api_endpoint =
|
105
|
+
configuration.api_endpoint = HTTPBIN_URL
|
104
106
|
|
105
107
|
multipart = Ingenico::Connect::SDK::MultipartFormDataObject.new
|
106
108
|
multipart.add_file 'file', Ingenico::Connect::SDK::UploadableFile.new(
|
@@ -120,7 +122,7 @@ describe 'multipart/form-data support' do
|
|
120
122
|
|
121
123
|
it 'Can send a Multipart Form Data Request PUT upload with a response' do
|
122
124
|
configuration = Integration.init_communicator_configuration
|
123
|
-
configuration.api_endpoint =
|
125
|
+
configuration.api_endpoint = HTTPBIN_URL
|
124
126
|
|
125
127
|
multipart = Ingenico::Connect::SDK::MultipartFormDataObject.new
|
126
128
|
multipart.add_file 'file', Ingenico::Connect::SDK::UploadableFile.new(
|
@@ -140,7 +142,7 @@ describe 'multipart/form-data support' do
|
|
140
142
|
|
141
143
|
it 'Can send a Multipart Form Data Object PUT upload with a binary response' do
|
142
144
|
configuration = Integration.init_communicator_configuration
|
143
|
-
configuration.api_endpoint =
|
145
|
+
configuration.api_endpoint = HTTPBIN_URL
|
144
146
|
|
145
147
|
multipart = Ingenico::Connect::SDK::MultipartFormDataObject.new
|
146
148
|
multipart.add_file 'file', Ingenico::Connect::SDK::UploadableFile.new(
|
@@ -163,7 +165,7 @@ describe 'multipart/form-data support' do
|
|
163
165
|
|
164
166
|
it 'Can send a Multipart Form Data Request PUT upload with a binary response' do
|
165
167
|
configuration = Integration.init_communicator_configuration
|
166
|
-
configuration.api_endpoint =
|
168
|
+
configuration.api_endpoint = HTTPBIN_URL
|
167
169
|
|
168
170
|
multipart = Ingenico::Connect::SDK::MultipartFormDataObject.new
|
169
171
|
multipart.add_file 'file', Ingenico::Connect::SDK::UploadableFile.new(
|
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.39.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: 2023-
|
11
|
+
date: 2023-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|