wallee-ruby-sdk 7.0.0 → 8.0.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 +4 -4
- data/Gemfile.lock +16 -16
- data/README.md +38 -1
- data/lib/wallee-ruby-sdk/api_client.rb +1 -1
- data/lib/wallee-ruby-sdk/models/charge_attempt_projection.rb +13 -4
- data/lib/wallee-ruby-sdk/models/express_checkout_session.rb +449 -0
- data/lib/wallee-ruby-sdk/models/express_checkout_session_create.rb +381 -0
- data/lib/wallee-ruby-sdk/models/express_checkout_session_create_response.rb +241 -0
- data/lib/wallee-ruby-sdk/models/express_checkout_session_process_request.rb +329 -0
- data/lib/wallee-ruby-sdk/models/express_checkout_session_process_response.rb +231 -0
- data/lib/wallee-ruby-sdk/models/express_checkout_session_state.rb +53 -0
- data/lib/wallee-ruby-sdk/models/express_checkout_shipping_option.rb +303 -0
- data/lib/wallee-ruby-sdk/models/express_checkout_wallet_type.rb +255 -0
- data/lib/wallee-ruby-sdk/models/fulfillment_state.rb +2 -1
- data/lib/wallee-ruby-sdk/models/merchant_application_submit_request_dto.rb +232 -0
- data/lib/wallee-ruby-sdk/models/merchant_application_submitted_dto.rb +273 -0
- data/lib/wallee-ruby-sdk/models/{payment_terminal_update.rb → payment_terminal_update_request.rb} +15 -41
- data/lib/wallee-ruby-sdk/models/subscription_partial_update_request.rb +250 -0
- data/lib/wallee-ruby-sdk/models/subscription_update_request.rb +45 -22
- data/lib/wallee-ruby-sdk/models/transaction_amounts.rb +257 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_create_partnership_api_request_dto.rb +20 -1
- data/lib/wallee-ruby-sdk/service/express_checkout_session_service.rb +255 -0
- data/lib/wallee-ruby-sdk/service/merchant_applications_service.rb +151 -0
- data/lib/wallee-ruby-sdk/service/payment_terminals_service.rb +9 -9
- data/lib/wallee-ruby-sdk/service/subscriptions_service.rb +9 -9
- data/lib/wallee-ruby-sdk/version.rb +1 -1
- data/lib/wallee-ruby-sdk.rb +14 -1
- data/wallee-ruby-sdk.gemspec +3 -3
- metadata +962 -931
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
# Wallee AG Ruby SDK
|
|
3
|
+
#
|
|
4
|
+
# This library allows to interact with the Wallee AG payment service.
|
|
5
|
+
#
|
|
6
|
+
# Copyright owner: Wallee AG
|
|
7
|
+
# Website: https://en.wallee.com
|
|
8
|
+
# Developer email: ecosystem-team@wallee.com
|
|
9
|
+
#
|
|
10
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
+
# you may not use this file except in compliance with the License.
|
|
12
|
+
# You may obtain a copy of the License at
|
|
13
|
+
#
|
|
14
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
+
#
|
|
16
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
17
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
+
# See the License for the specific language governing permissions and
|
|
20
|
+
# limitations under the License.
|
|
21
|
+
=end
|
|
22
|
+
|
|
23
|
+
require 'cgi'
|
|
24
|
+
|
|
25
|
+
module WalleeRubySdk
|
|
26
|
+
class ExpressCheckoutSessionService
|
|
27
|
+
attr_accessor :api_client
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def initialize(api_client = ApiClient.default)
|
|
31
|
+
@api_client = api_client
|
|
32
|
+
end
|
|
33
|
+
# Get Express Checkout Session details
|
|
34
|
+
# @param session_id [Integer]
|
|
35
|
+
# @param space [Integer] Specifies the ID of the space the operation should be executed in.
|
|
36
|
+
# @param [Hash] opts the optional parameters
|
|
37
|
+
# @return [ExpressCheckoutSession]
|
|
38
|
+
def get_express_checkout_session(session_id, space, opts = {})
|
|
39
|
+
data, _status_code, _headers = get_express_checkout_session_with_http_info(session_id, space, opts)
|
|
40
|
+
data
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Get Express Checkout Session details
|
|
44
|
+
|
|
45
|
+
# @param session_id [Integer]
|
|
46
|
+
# @param space [Integer] Specifies the ID of the space the operation should be executed in.
|
|
47
|
+
# @param [Hash] opts the optional parameters
|
|
48
|
+
# @return [Array<(ExpressCheckoutSession, Integer, Hash)>] ExpressCheckoutSession data, response status code and response headers
|
|
49
|
+
def get_express_checkout_session_with_http_info(session_id, space, opts = {})
|
|
50
|
+
if @api_client.config.debugging
|
|
51
|
+
@api_client.config.logger.debug 'Calling API: ExpressCheckoutSessionService.get_express_checkout_session ...'
|
|
52
|
+
end
|
|
53
|
+
# verify the required parameter 'session_id' is set
|
|
54
|
+
if @api_client.config.client_side_validation && session_id.nil?
|
|
55
|
+
fail ArgumentError, "Missing the required parameter 'session_id' when calling ExpressCheckoutSessionService.get_express_checkout_session"
|
|
56
|
+
end
|
|
57
|
+
# verify the required parameter 'space' is set
|
|
58
|
+
if @api_client.config.client_side_validation && space.nil?
|
|
59
|
+
fail ArgumentError, "Missing the required parameter 'space' when calling ExpressCheckoutSessionService.get_express_checkout_session"
|
|
60
|
+
end
|
|
61
|
+
# resource path
|
|
62
|
+
local_var_path = '/express-checkout/session'
|
|
63
|
+
|
|
64
|
+
# query parameters
|
|
65
|
+
query_params = opts[:query_params] || {}
|
|
66
|
+
query_params[:'sessionId'] = session_id
|
|
67
|
+
|
|
68
|
+
# header parameters
|
|
69
|
+
header_params = opts[:header_params] || {}
|
|
70
|
+
# HTTP header 'Accept' (if needed)
|
|
71
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
72
|
+
header_params[:'space'] = space
|
|
73
|
+
|
|
74
|
+
# form parameters
|
|
75
|
+
form_params = opts[:form_params] || {}
|
|
76
|
+
|
|
77
|
+
# connection timeout
|
|
78
|
+
connection_timeout = @api_client.config.timeout
|
|
79
|
+
|
|
80
|
+
# http body (model)
|
|
81
|
+
post_body = opts[:debug_body]
|
|
82
|
+
|
|
83
|
+
# return_type
|
|
84
|
+
return_type = opts[:debug_return_type] || 'ExpressCheckoutSession'
|
|
85
|
+
|
|
86
|
+
new_options = opts.merge(
|
|
87
|
+
:operation => :"ExpressCheckoutSessionService.get_express_checkout_session",
|
|
88
|
+
:header_params => header_params,
|
|
89
|
+
:query_params => query_params,
|
|
90
|
+
:form_params => form_params,
|
|
91
|
+
:body => post_body,
|
|
92
|
+
:return_type => return_type
|
|
93
|
+
)
|
|
94
|
+
|
|
95
|
+
data, status_code, headers = @api_client.call_api(:GET.to_sym.downcase, local_var_path, new_options, connection_timeout)
|
|
96
|
+
if @api_client.config.debugging
|
|
97
|
+
@api_client.config.logger.debug "API called: ExpressCheckoutSessionService#get_express_checkout_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
|
|
98
|
+
end
|
|
99
|
+
return data, status_code, headers
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
# Create a new Express Checkout Session
|
|
104
|
+
# Creates a new Express Checkout session and returns both sessionId and sessionToken. Use the sessionToken to render the wallet widget, and persist the sessionId for the later process call.
|
|
105
|
+
# @param space [Integer] Specifies the ID of the space the operation should be executed in.
|
|
106
|
+
# @param express_checkout_session_create [ExpressCheckoutSessionCreate]
|
|
107
|
+
# @param [Hash] opts the optional parameters
|
|
108
|
+
# @return [ExpressCheckoutSessionCreateResponse]
|
|
109
|
+
def post_express_checkout_session_create(space, express_checkout_session_create, opts = {})
|
|
110
|
+
data, _status_code, _headers = post_express_checkout_session_create_with_http_info(space, express_checkout_session_create, opts)
|
|
111
|
+
data
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# Create a new Express Checkout Session
|
|
115
|
+
# Creates a new Express Checkout session and returns both sessionId and sessionToken. Use the sessionToken to render the wallet widget, and persist the sessionId for the later process call.
|
|
116
|
+
|
|
117
|
+
# @param space [Integer] Specifies the ID of the space the operation should be executed in.
|
|
118
|
+
# @param express_checkout_session_create [ExpressCheckoutSessionCreate]
|
|
119
|
+
# @param [Hash] opts the optional parameters
|
|
120
|
+
# @return [Array<(ExpressCheckoutSessionCreateResponse, Integer, Hash)>] ExpressCheckoutSessionCreateResponse data, response status code and response headers
|
|
121
|
+
def post_express_checkout_session_create_with_http_info(space, express_checkout_session_create, opts = {})
|
|
122
|
+
if @api_client.config.debugging
|
|
123
|
+
@api_client.config.logger.debug 'Calling API: ExpressCheckoutSessionService.post_express_checkout_session_create ...'
|
|
124
|
+
end
|
|
125
|
+
# verify the required parameter 'space' is set
|
|
126
|
+
if @api_client.config.client_side_validation && space.nil?
|
|
127
|
+
fail ArgumentError, "Missing the required parameter 'space' when calling ExpressCheckoutSessionService.post_express_checkout_session_create"
|
|
128
|
+
end
|
|
129
|
+
# verify the required parameter 'express_checkout_session_create' is set
|
|
130
|
+
if @api_client.config.client_side_validation && express_checkout_session_create.nil?
|
|
131
|
+
fail ArgumentError, "Missing the required parameter 'express_checkout_session_create' when calling ExpressCheckoutSessionService.post_express_checkout_session_create"
|
|
132
|
+
end
|
|
133
|
+
# resource path
|
|
134
|
+
local_var_path = '/express-checkout/session/create'
|
|
135
|
+
|
|
136
|
+
# query parameters
|
|
137
|
+
query_params = opts[:query_params] || {}
|
|
138
|
+
|
|
139
|
+
# header parameters
|
|
140
|
+
header_params = opts[:header_params] || {}
|
|
141
|
+
# HTTP header 'Accept' (if needed)
|
|
142
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
143
|
+
# HTTP header 'Content-Type'
|
|
144
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
145
|
+
if !content_type.nil?
|
|
146
|
+
header_params['Content-Type'] = content_type
|
|
147
|
+
end
|
|
148
|
+
header_params[:'space'] = space
|
|
149
|
+
|
|
150
|
+
# form parameters
|
|
151
|
+
form_params = opts[:form_params] || {}
|
|
152
|
+
|
|
153
|
+
# connection timeout
|
|
154
|
+
connection_timeout = @api_client.config.timeout
|
|
155
|
+
|
|
156
|
+
# http body (model)
|
|
157
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(express_checkout_session_create)
|
|
158
|
+
|
|
159
|
+
# return_type
|
|
160
|
+
return_type = opts[:debug_return_type] || 'ExpressCheckoutSessionCreateResponse'
|
|
161
|
+
|
|
162
|
+
new_options = opts.merge(
|
|
163
|
+
:operation => :"ExpressCheckoutSessionService.post_express_checkout_session_create",
|
|
164
|
+
:header_params => header_params,
|
|
165
|
+
:query_params => query_params,
|
|
166
|
+
:form_params => form_params,
|
|
167
|
+
:body => post_body,
|
|
168
|
+
:return_type => return_type
|
|
169
|
+
)
|
|
170
|
+
|
|
171
|
+
data, status_code, headers = @api_client.call_api(:POST.to_sym.downcase, local_var_path, new_options, connection_timeout)
|
|
172
|
+
if @api_client.config.debugging
|
|
173
|
+
@api_client.config.logger.debug "API called: ExpressCheckoutSessionService#post_express_checkout_session_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
|
|
174
|
+
end
|
|
175
|
+
return data, status_code, headers
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
# Process Express Checkout Session
|
|
180
|
+
# Processes the approved session and returns the redirect URL to continue checkout. Customer language and time zone are automatically derived from the HTTP request when available.
|
|
181
|
+
# @param space [Integer] Specifies the ID of the space the operation should be executed in.
|
|
182
|
+
# @param express_checkout_session_process_request [ExpressCheckoutSessionProcessRequest]
|
|
183
|
+
# @param [Hash] opts the optional parameters
|
|
184
|
+
# @return [ExpressCheckoutSessionProcessResponse]
|
|
185
|
+
def post_express_checkout_session_process(space, express_checkout_session_process_request, opts = {})
|
|
186
|
+
data, _status_code, _headers = post_express_checkout_session_process_with_http_info(space, express_checkout_session_process_request, opts)
|
|
187
|
+
data
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# Process Express Checkout Session
|
|
191
|
+
# Processes the approved session and returns the redirect URL to continue checkout. Customer language and time zone are automatically derived from the HTTP request when available.
|
|
192
|
+
|
|
193
|
+
# @param space [Integer] Specifies the ID of the space the operation should be executed in.
|
|
194
|
+
# @param express_checkout_session_process_request [ExpressCheckoutSessionProcessRequest]
|
|
195
|
+
# @param [Hash] opts the optional parameters
|
|
196
|
+
# @return [Array<(ExpressCheckoutSessionProcessResponse, Integer, Hash)>] ExpressCheckoutSessionProcessResponse data, response status code and response headers
|
|
197
|
+
def post_express_checkout_session_process_with_http_info(space, express_checkout_session_process_request, opts = {})
|
|
198
|
+
if @api_client.config.debugging
|
|
199
|
+
@api_client.config.logger.debug 'Calling API: ExpressCheckoutSessionService.post_express_checkout_session_process ...'
|
|
200
|
+
end
|
|
201
|
+
# verify the required parameter 'space' is set
|
|
202
|
+
if @api_client.config.client_side_validation && space.nil?
|
|
203
|
+
fail ArgumentError, "Missing the required parameter 'space' when calling ExpressCheckoutSessionService.post_express_checkout_session_process"
|
|
204
|
+
end
|
|
205
|
+
# verify the required parameter 'express_checkout_session_process_request' is set
|
|
206
|
+
if @api_client.config.client_side_validation && express_checkout_session_process_request.nil?
|
|
207
|
+
fail ArgumentError, "Missing the required parameter 'express_checkout_session_process_request' when calling ExpressCheckoutSessionService.post_express_checkout_session_process"
|
|
208
|
+
end
|
|
209
|
+
# resource path
|
|
210
|
+
local_var_path = '/express-checkout/session/process'
|
|
211
|
+
|
|
212
|
+
# query parameters
|
|
213
|
+
query_params = opts[:query_params] || {}
|
|
214
|
+
|
|
215
|
+
# header parameters
|
|
216
|
+
header_params = opts[:header_params] || {}
|
|
217
|
+
# HTTP header 'Accept' (if needed)
|
|
218
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
219
|
+
# HTTP header 'Content-Type'
|
|
220
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
221
|
+
if !content_type.nil?
|
|
222
|
+
header_params['Content-Type'] = content_type
|
|
223
|
+
end
|
|
224
|
+
header_params[:'space'] = space
|
|
225
|
+
|
|
226
|
+
# form parameters
|
|
227
|
+
form_params = opts[:form_params] || {}
|
|
228
|
+
|
|
229
|
+
# connection timeout
|
|
230
|
+
connection_timeout = @api_client.config.timeout
|
|
231
|
+
|
|
232
|
+
# http body (model)
|
|
233
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(express_checkout_session_process_request)
|
|
234
|
+
|
|
235
|
+
# return_type
|
|
236
|
+
return_type = opts[:debug_return_type] || 'ExpressCheckoutSessionProcessResponse'
|
|
237
|
+
|
|
238
|
+
new_options = opts.merge(
|
|
239
|
+
:operation => :"ExpressCheckoutSessionService.post_express_checkout_session_process",
|
|
240
|
+
:header_params => header_params,
|
|
241
|
+
:query_params => query_params,
|
|
242
|
+
:form_params => form_params,
|
|
243
|
+
:body => post_body,
|
|
244
|
+
:return_type => return_type
|
|
245
|
+
)
|
|
246
|
+
|
|
247
|
+
data, status_code, headers = @api_client.call_api(:POST.to_sym.downcase, local_var_path, new_options, connection_timeout)
|
|
248
|
+
if @api_client.config.debugging
|
|
249
|
+
@api_client.config.logger.debug "API called: ExpressCheckoutSessionService#post_express_checkout_session_process\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
|
|
250
|
+
end
|
|
251
|
+
return data, status_code, headers
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
end
|
|
255
|
+
end
|
|
@@ -30,6 +30,74 @@ module WalleeRubySdk
|
|
|
30
30
|
def initialize(api_client = ApiClient.default)
|
|
31
31
|
@api_client = api_client
|
|
32
32
|
end
|
|
33
|
+
# Retrieve a merchant application by account
|
|
34
|
+
# Returns the merchant application for the account specified in the account header.
|
|
35
|
+
# @param account [Integer] Specifies the ID of the account the operation should be executed in.
|
|
36
|
+
# @param [Hash] opts the optional parameters
|
|
37
|
+
# @option opts [Array<String>] :expand
|
|
38
|
+
# @return [MerchantApplicationDataDto]
|
|
39
|
+
def get_onboarding_merchant_applications_by_account(account, opts = {})
|
|
40
|
+
data, _status_code, _headers = get_onboarding_merchant_applications_by_account_with_http_info(account, opts)
|
|
41
|
+
data
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Retrieve a merchant application by account
|
|
45
|
+
# Returns the merchant application for the account specified in the account header.
|
|
46
|
+
|
|
47
|
+
# @param account [Integer] Specifies the ID of the account the operation should be executed in.
|
|
48
|
+
# @param [Hash] opts the optional parameters
|
|
49
|
+
# @option opts [Array<String>] :expand
|
|
50
|
+
# @return [Array<(MerchantApplicationDataDto, Integer, Hash)>] MerchantApplicationDataDto data, response status code and response headers
|
|
51
|
+
def get_onboarding_merchant_applications_by_account_with_http_info(account, opts = {})
|
|
52
|
+
if @api_client.config.debugging
|
|
53
|
+
@api_client.config.logger.debug 'Calling API: MerchantApplicationsService.get_onboarding_merchant_applications_by_account ...'
|
|
54
|
+
end
|
|
55
|
+
# verify the required parameter 'account' is set
|
|
56
|
+
if @api_client.config.client_side_validation && account.nil?
|
|
57
|
+
fail ArgumentError, "Missing the required parameter 'account' when calling MerchantApplicationsService.get_onboarding_merchant_applications_by_account"
|
|
58
|
+
end
|
|
59
|
+
# resource path
|
|
60
|
+
local_var_path = '/onboarding/merchant-applications/by-account'
|
|
61
|
+
|
|
62
|
+
# query parameters
|
|
63
|
+
query_params = opts[:query_params] || {}
|
|
64
|
+
query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?
|
|
65
|
+
|
|
66
|
+
# header parameters
|
|
67
|
+
header_params = opts[:header_params] || {}
|
|
68
|
+
# HTTP header 'Accept' (if needed)
|
|
69
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
70
|
+
header_params[:'account'] = account
|
|
71
|
+
|
|
72
|
+
# form parameters
|
|
73
|
+
form_params = opts[:form_params] || {}
|
|
74
|
+
|
|
75
|
+
# connection timeout
|
|
76
|
+
connection_timeout = @api_client.config.timeout
|
|
77
|
+
|
|
78
|
+
# http body (model)
|
|
79
|
+
post_body = opts[:debug_body]
|
|
80
|
+
|
|
81
|
+
# return_type
|
|
82
|
+
return_type = opts[:debug_return_type] || 'MerchantApplicationDataDto'
|
|
83
|
+
|
|
84
|
+
new_options = opts.merge(
|
|
85
|
+
:operation => :"MerchantApplicationsService.get_onboarding_merchant_applications_by_account",
|
|
86
|
+
:header_params => header_params,
|
|
87
|
+
:query_params => query_params,
|
|
88
|
+
:form_params => form_params,
|
|
89
|
+
:body => post_body,
|
|
90
|
+
:return_type => return_type
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
data, status_code, headers = @api_client.call_api(:GET.to_sym.downcase, local_var_path, new_options, connection_timeout)
|
|
94
|
+
if @api_client.config.debugging
|
|
95
|
+
@api_client.config.logger.debug "API called: MerchantApplicationsService#get_onboarding_merchant_applications_by_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
|
|
96
|
+
end
|
|
97
|
+
return data, status_code, headers
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
|
|
33
101
|
# Retrieve a merchant application status
|
|
34
102
|
# @param id [Integer]
|
|
35
103
|
# @param account [Integer] Specifies the ID of the account the operation should be executed in.
|
|
@@ -330,5 +398,88 @@ module WalleeRubySdk
|
|
|
330
398
|
return data, status_code, headers
|
|
331
399
|
end
|
|
332
400
|
|
|
401
|
+
|
|
402
|
+
# Submit a merchant application and create an organization
|
|
403
|
+
# @param id [Integer]
|
|
404
|
+
# @param account [Integer] Specifies the ID of the account the operation should be executed in.
|
|
405
|
+
# @param merchant_application_submit_request_dto [MerchantApplicationSubmitRequestDto]
|
|
406
|
+
# @param [Hash] opts the optional parameters
|
|
407
|
+
# @option opts [Array<String>] :expand
|
|
408
|
+
# @return [MerchantApplicationSubmittedDto]
|
|
409
|
+
def post_onboarding_merchant_applications_id_submit(id, account, merchant_application_submit_request_dto, opts = {})
|
|
410
|
+
data, _status_code, _headers = post_onboarding_merchant_applications_id_submit_with_http_info(id, account, merchant_application_submit_request_dto, opts)
|
|
411
|
+
data
|
|
412
|
+
end
|
|
413
|
+
|
|
414
|
+
# Submit a merchant application and create an organization
|
|
415
|
+
|
|
416
|
+
# @param id [Integer]
|
|
417
|
+
# @param account [Integer] Specifies the ID of the account the operation should be executed in.
|
|
418
|
+
# @param merchant_application_submit_request_dto [MerchantApplicationSubmitRequestDto]
|
|
419
|
+
# @param [Hash] opts the optional parameters
|
|
420
|
+
# @option opts [Array<String>] :expand
|
|
421
|
+
# @return [Array<(MerchantApplicationSubmittedDto, Integer, Hash)>] MerchantApplicationSubmittedDto data, response status code and response headers
|
|
422
|
+
def post_onboarding_merchant_applications_id_submit_with_http_info(id, account, merchant_application_submit_request_dto, opts = {})
|
|
423
|
+
if @api_client.config.debugging
|
|
424
|
+
@api_client.config.logger.debug 'Calling API: MerchantApplicationsService.post_onboarding_merchant_applications_id_submit ...'
|
|
425
|
+
end
|
|
426
|
+
# verify the required parameter 'id' is set
|
|
427
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
428
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling MerchantApplicationsService.post_onboarding_merchant_applications_id_submit"
|
|
429
|
+
end
|
|
430
|
+
# verify the required parameter 'account' is set
|
|
431
|
+
if @api_client.config.client_side_validation && account.nil?
|
|
432
|
+
fail ArgumentError, "Missing the required parameter 'account' when calling MerchantApplicationsService.post_onboarding_merchant_applications_id_submit"
|
|
433
|
+
end
|
|
434
|
+
# verify the required parameter 'merchant_application_submit_request_dto' is set
|
|
435
|
+
if @api_client.config.client_side_validation && merchant_application_submit_request_dto.nil?
|
|
436
|
+
fail ArgumentError, "Missing the required parameter 'merchant_application_submit_request_dto' when calling MerchantApplicationsService.post_onboarding_merchant_applications_id_submit"
|
|
437
|
+
end
|
|
438
|
+
# resource path
|
|
439
|
+
local_var_path = '/onboarding/merchant-applications/{id}/submit'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
440
|
+
|
|
441
|
+
# query parameters
|
|
442
|
+
query_params = opts[:query_params] || {}
|
|
443
|
+
query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?
|
|
444
|
+
|
|
445
|
+
# header parameters
|
|
446
|
+
header_params = opts[:header_params] || {}
|
|
447
|
+
# HTTP header 'Accept' (if needed)
|
|
448
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
449
|
+
# HTTP header 'Content-Type'
|
|
450
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
451
|
+
if !content_type.nil?
|
|
452
|
+
header_params['Content-Type'] = content_type
|
|
453
|
+
end
|
|
454
|
+
header_params[:'account'] = account
|
|
455
|
+
|
|
456
|
+
# form parameters
|
|
457
|
+
form_params = opts[:form_params] || {}
|
|
458
|
+
|
|
459
|
+
# connection timeout
|
|
460
|
+
connection_timeout = @api_client.config.timeout
|
|
461
|
+
|
|
462
|
+
# http body (model)
|
|
463
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(merchant_application_submit_request_dto)
|
|
464
|
+
|
|
465
|
+
# return_type
|
|
466
|
+
return_type = opts[:debug_return_type] || 'MerchantApplicationSubmittedDto'
|
|
467
|
+
|
|
468
|
+
new_options = opts.merge(
|
|
469
|
+
:operation => :"MerchantApplicationsService.post_onboarding_merchant_applications_id_submit",
|
|
470
|
+
:header_params => header_params,
|
|
471
|
+
:query_params => query_params,
|
|
472
|
+
:form_params => form_params,
|
|
473
|
+
:body => post_body,
|
|
474
|
+
:return_type => return_type
|
|
475
|
+
)
|
|
476
|
+
|
|
477
|
+
data, status_code, headers = @api_client.call_api(:POST.to_sym.downcase, local_var_path, new_options, connection_timeout)
|
|
478
|
+
if @api_client.config.debugging
|
|
479
|
+
@api_client.config.logger.debug "API called: MerchantApplicationsService#post_onboarding_merchant_applications_id_submit\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
|
|
480
|
+
end
|
|
481
|
+
return data, status_code, headers
|
|
482
|
+
end
|
|
483
|
+
|
|
333
484
|
end
|
|
334
485
|
end
|
|
@@ -535,12 +535,12 @@ module WalleeRubySdk
|
|
|
535
535
|
# Update a payment terminal
|
|
536
536
|
# @param id [Integer]
|
|
537
537
|
# @param space [Integer] Specifies the ID of the space the operation should be executed in.
|
|
538
|
-
# @param
|
|
538
|
+
# @param payment_terminal_update_request [PaymentTerminalUpdateRequest]
|
|
539
539
|
# @param [Hash] opts the optional parameters
|
|
540
540
|
# @option opts [Array<String>] :expand
|
|
541
541
|
# @return [PaymentTerminal]
|
|
542
|
-
def patch_payment_terminals_id(id, space,
|
|
543
|
-
data, _status_code, _headers = patch_payment_terminals_id_with_http_info(id, space,
|
|
542
|
+
def patch_payment_terminals_id(id, space, payment_terminal_update_request, opts = {})
|
|
543
|
+
data, _status_code, _headers = patch_payment_terminals_id_with_http_info(id, space, payment_terminal_update_request, opts)
|
|
544
544
|
data
|
|
545
545
|
end
|
|
546
546
|
|
|
@@ -548,11 +548,11 @@ module WalleeRubySdk
|
|
|
548
548
|
|
|
549
549
|
# @param id [Integer]
|
|
550
550
|
# @param space [Integer] Specifies the ID of the space the operation should be executed in.
|
|
551
|
-
# @param
|
|
551
|
+
# @param payment_terminal_update_request [PaymentTerminalUpdateRequest]
|
|
552
552
|
# @param [Hash] opts the optional parameters
|
|
553
553
|
# @option opts [Array<String>] :expand
|
|
554
554
|
# @return [Array<(PaymentTerminal, Integer, Hash)>] PaymentTerminal data, response status code and response headers
|
|
555
|
-
def patch_payment_terminals_id_with_http_info(id, space,
|
|
555
|
+
def patch_payment_terminals_id_with_http_info(id, space, payment_terminal_update_request, opts = {})
|
|
556
556
|
if @api_client.config.debugging
|
|
557
557
|
@api_client.config.logger.debug 'Calling API: PaymentTerminalsService.patch_payment_terminals_id ...'
|
|
558
558
|
end
|
|
@@ -564,9 +564,9 @@ module WalleeRubySdk
|
|
|
564
564
|
if @api_client.config.client_side_validation && space.nil?
|
|
565
565
|
fail ArgumentError, "Missing the required parameter 'space' when calling PaymentTerminalsService.patch_payment_terminals_id"
|
|
566
566
|
end
|
|
567
|
-
# verify the required parameter '
|
|
568
|
-
if @api_client.config.client_side_validation &&
|
|
569
|
-
fail ArgumentError, "Missing the required parameter '
|
|
567
|
+
# verify the required parameter 'payment_terminal_update_request' is set
|
|
568
|
+
if @api_client.config.client_side_validation && payment_terminal_update_request.nil?
|
|
569
|
+
fail ArgumentError, "Missing the required parameter 'payment_terminal_update_request' when calling PaymentTerminalsService.patch_payment_terminals_id"
|
|
570
570
|
end
|
|
571
571
|
# resource path
|
|
572
572
|
local_var_path = '/payment/terminals/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
@@ -593,7 +593,7 @@ module WalleeRubySdk
|
|
|
593
593
|
connection_timeout = @api_client.config.timeout
|
|
594
594
|
|
|
595
595
|
# http body (model)
|
|
596
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
|
596
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(payment_terminal_update_request)
|
|
597
597
|
|
|
598
598
|
# return_type
|
|
599
599
|
return_type = opts[:debug_return_type] || 'PaymentTerminal'
|
|
@@ -385,12 +385,12 @@ module WalleeRubySdk
|
|
|
385
385
|
# Update a subscription
|
|
386
386
|
# @param id [Integer]
|
|
387
387
|
# @param space [Integer] Specifies the ID of the space the operation should be executed in.
|
|
388
|
-
# @param
|
|
388
|
+
# @param subscription_partial_update_request [SubscriptionPartialUpdateRequest]
|
|
389
389
|
# @param [Hash] opts the optional parameters
|
|
390
390
|
# @option opts [Array<String>] :expand
|
|
391
391
|
# @return [Subscription]
|
|
392
|
-
def patch_subscriptions_id(id, space,
|
|
393
|
-
data, _status_code, _headers = patch_subscriptions_id_with_http_info(id, space,
|
|
392
|
+
def patch_subscriptions_id(id, space, subscription_partial_update_request, opts = {})
|
|
393
|
+
data, _status_code, _headers = patch_subscriptions_id_with_http_info(id, space, subscription_partial_update_request, opts)
|
|
394
394
|
data
|
|
395
395
|
end
|
|
396
396
|
|
|
@@ -398,11 +398,11 @@ module WalleeRubySdk
|
|
|
398
398
|
|
|
399
399
|
# @param id [Integer]
|
|
400
400
|
# @param space [Integer] Specifies the ID of the space the operation should be executed in.
|
|
401
|
-
# @param
|
|
401
|
+
# @param subscription_partial_update_request [SubscriptionPartialUpdateRequest]
|
|
402
402
|
# @param [Hash] opts the optional parameters
|
|
403
403
|
# @option opts [Array<String>] :expand
|
|
404
404
|
# @return [Array<(Subscription, Integer, Hash)>] Subscription data, response status code and response headers
|
|
405
|
-
def patch_subscriptions_id_with_http_info(id, space,
|
|
405
|
+
def patch_subscriptions_id_with_http_info(id, space, subscription_partial_update_request, opts = {})
|
|
406
406
|
if @api_client.config.debugging
|
|
407
407
|
@api_client.config.logger.debug 'Calling API: SubscriptionsService.patch_subscriptions_id ...'
|
|
408
408
|
end
|
|
@@ -414,9 +414,9 @@ module WalleeRubySdk
|
|
|
414
414
|
if @api_client.config.client_side_validation && space.nil?
|
|
415
415
|
fail ArgumentError, "Missing the required parameter 'space' when calling SubscriptionsService.patch_subscriptions_id"
|
|
416
416
|
end
|
|
417
|
-
# verify the required parameter '
|
|
418
|
-
if @api_client.config.client_side_validation &&
|
|
419
|
-
fail ArgumentError, "Missing the required parameter '
|
|
417
|
+
# verify the required parameter 'subscription_partial_update_request' is set
|
|
418
|
+
if @api_client.config.client_side_validation && subscription_partial_update_request.nil?
|
|
419
|
+
fail ArgumentError, "Missing the required parameter 'subscription_partial_update_request' when calling SubscriptionsService.patch_subscriptions_id"
|
|
420
420
|
end
|
|
421
421
|
# resource path
|
|
422
422
|
local_var_path = '/subscriptions/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
@@ -443,7 +443,7 @@ module WalleeRubySdk
|
|
|
443
443
|
connection_timeout = @api_client.config.timeout
|
|
444
444
|
|
|
445
445
|
# http body (model)
|
|
446
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
|
446
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(subscription_partial_update_request)
|
|
447
447
|
|
|
448
448
|
# return_type
|
|
449
449
|
return_type = opts[:debug_return_type] || 'Subscription'
|
data/lib/wallee-ruby-sdk.rb
CHANGED
|
@@ -232,6 +232,14 @@ require 'wallee-ruby-sdk/models/dunning_flow_list_response'
|
|
|
232
232
|
require 'wallee-ruby-sdk/models/dunning_flow_search_response'
|
|
233
233
|
require 'wallee-ruby-sdk/models/dunning_flow_type'
|
|
234
234
|
require 'wallee-ruby-sdk/models/environment'
|
|
235
|
+
require 'wallee-ruby-sdk/models/express_checkout_session'
|
|
236
|
+
require 'wallee-ruby-sdk/models/express_checkout_session_create'
|
|
237
|
+
require 'wallee-ruby-sdk/models/express_checkout_session_create_response'
|
|
238
|
+
require 'wallee-ruby-sdk/models/express_checkout_session_process_request'
|
|
239
|
+
require 'wallee-ruby-sdk/models/express_checkout_session_process_response'
|
|
240
|
+
require 'wallee-ruby-sdk/models/express_checkout_session_state'
|
|
241
|
+
require 'wallee-ruby-sdk/models/express_checkout_shipping_option'
|
|
242
|
+
require 'wallee-ruby-sdk/models/express_checkout_wallet_type'
|
|
235
243
|
require 'wallee-ruby-sdk/models/extended_rest_o_auth_client'
|
|
236
244
|
require 'wallee-ruby-sdk/models/external_transfer_bank_transaction'
|
|
237
245
|
require 'wallee-ruby-sdk/models/external_transfer_bank_transaction_list_response'
|
|
@@ -307,6 +315,8 @@ require 'wallee-ruby-sdk/models/manual_task_type'
|
|
|
307
315
|
require 'wallee-ruby-sdk/models/merchant_application_data_dto'
|
|
308
316
|
require 'wallee-ruby-sdk/models/merchant_application_state'
|
|
309
317
|
require 'wallee-ruby-sdk/models/merchant_application_status_dto'
|
|
318
|
+
require 'wallee-ruby-sdk/models/merchant_application_submit_request_dto'
|
|
319
|
+
require 'wallee-ruby-sdk/models/merchant_application_submitted_dto'
|
|
310
320
|
require 'wallee-ruby-sdk/models/merchant_bank_details_dto'
|
|
311
321
|
require 'wallee-ruby-sdk/models/merchant_company_details_dto'
|
|
312
322
|
require 'wallee-ruby-sdk/models/merchant_contract_revenue_dto'
|
|
@@ -423,7 +433,7 @@ require 'wallee-ruby-sdk/models/payment_terminal_transaction_sum'
|
|
|
423
433
|
require 'wallee-ruby-sdk/models/payment_terminal_transaction_summary'
|
|
424
434
|
require 'wallee-ruby-sdk/models/payment_terminal_transaction_summary_reference'
|
|
425
435
|
require 'wallee-ruby-sdk/models/payment_terminal_type'
|
|
426
|
-
require 'wallee-ruby-sdk/models/
|
|
436
|
+
require 'wallee-ruby-sdk/models/payment_terminal_update_request'
|
|
427
437
|
require 'wallee-ruby-sdk/models/payout_account_info'
|
|
428
438
|
require 'wallee-ruby-sdk/models/permission'
|
|
429
439
|
require 'wallee-ruby-sdk/models/permission_list_response'
|
|
@@ -581,6 +591,7 @@ require 'wallee-ruby-sdk/models/subscription_metric_type'
|
|
|
581
591
|
require 'wallee-ruby-sdk/models/subscription_metric_update'
|
|
582
592
|
require 'wallee-ruby-sdk/models/subscription_metric_usage_report'
|
|
583
593
|
require 'wallee-ruby-sdk/models/subscription_metric_usage_report_create'
|
|
594
|
+
require 'wallee-ruby-sdk/models/subscription_partial_update_request'
|
|
584
595
|
require 'wallee-ruby-sdk/models/subscription_pending'
|
|
585
596
|
require 'wallee-ruby-sdk/models/subscription_period_bill'
|
|
586
597
|
require 'wallee-ruby-sdk/models/subscription_period_bill_list_response'
|
|
@@ -646,6 +657,7 @@ require 'wallee-ruby-sdk/models/tokenized_card_data_create'
|
|
|
646
657
|
require 'wallee-ruby-sdk/models/tokenized_card_request'
|
|
647
658
|
require 'wallee-ruby-sdk/models/tracking_number_request'
|
|
648
659
|
require 'wallee-ruby-sdk/models/transaction'
|
|
660
|
+
require 'wallee-ruby-sdk/models/transaction_amounts'
|
|
649
661
|
require 'wallee-ruby-sdk/models/transaction_client_platform_information'
|
|
650
662
|
require 'wallee-ruby-sdk/models/transaction_comment'
|
|
651
663
|
require 'wallee-ruby-sdk/models/transaction_comment_active'
|
|
@@ -743,6 +755,7 @@ require 'wallee-ruby-sdk/service/dunning_case_levels_service'
|
|
|
743
755
|
require 'wallee-ruby-sdk/service/dunning_cases_service'
|
|
744
756
|
require 'wallee-ruby-sdk/service/dunning_flow_levels_service'
|
|
745
757
|
require 'wallee-ruby-sdk/service/dunning_flows_service'
|
|
758
|
+
require 'wallee-ruby-sdk/service/express_checkout_session_service'
|
|
746
759
|
require 'wallee-ruby-sdk/service/external_transfer_bank_transactions_service'
|
|
747
760
|
require 'wallee-ruby-sdk/service/fulfillments_service'
|
|
748
761
|
require 'wallee-ruby-sdk/service/human_users_service'
|
data/wallee-ruby-sdk.gemspec
CHANGED
|
@@ -40,11 +40,11 @@ Gem::Specification.new do |s|
|
|
|
40
40
|
}
|
|
41
41
|
s.required_ruby_version = ">= 3.2.0"
|
|
42
42
|
|
|
43
|
-
s.add_runtime_dependency 'faraday', '
|
|
43
|
+
s.add_runtime_dependency 'faraday', '>= 2.14.3', '< 3.0'
|
|
44
44
|
s.add_runtime_dependency 'faraday-multipart', '~> 1.1.0'
|
|
45
|
-
s.add_runtime_dependency 'jwt', '~> 2.10.
|
|
45
|
+
s.add_runtime_dependency 'jwt', '~> 2.10.3'
|
|
46
46
|
s.add_runtime_dependency 'marcel', '~> 1.0.4'
|
|
47
|
-
s.add_runtime_dependency 'concurrent-ruby', '~> 1.3.
|
|
47
|
+
s.add_runtime_dependency 'concurrent-ruby', '~> 1.3.7'
|
|
48
48
|
|
|
49
49
|
s.add_development_dependency 'rake', '~> 13.0'
|
|
50
50
|
s.add_development_dependency 'test-unit', '~> 3.6.7'
|