maytes-api-client-rb 0.1.1
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 +7 -0
- data/Gemfile +9 -0
- data/LICENSE +21 -0
- data/README.md +47 -0
- data/Rakefile +10 -0
- data/docs/CancelCheckout409Response.md +24 -0
- data/docs/CancelCheckoutRequest.md +18 -0
- data/docs/CancelCheckoutResponse.md +18 -0
- data/docs/CaptureCheckout409Response.md +24 -0
- data/docs/CaptureCheckout422Response.md +24 -0
- data/docs/CaptureCheckoutRequest.md +24 -0
- data/docs/CaptureCheckoutResponse.md +18 -0
- data/docs/Checkout.md +48 -0
- data/docs/CheckoutCancelled.md +22 -0
- data/docs/CheckoutCaptured.md +28 -0
- data/docs/CheckoutCreated.md +24 -0
- data/docs/CheckoutDiscount.md +30 -0
- data/docs/CheckoutFee.md +32 -0
- data/docs/CreateCheckout401Response.md +24 -0
- data/docs/CreateCheckout409Response.md +24 -0
- data/docs/CreateCheckout422Response.md +24 -0
- data/docs/CreateCheckoutRequest.md +44 -0
- data/docs/CreateCheckoutResponse.md +18 -0
- data/docs/CreateRefundRequest.md +20 -0
- data/docs/CustomerData.md +22 -0
- data/docs/DefaultApi.md +633 -0
- data/docs/DigitalGoodsCustomData.md +18 -0
- data/docs/DigitalGoodsLineItem.md +38 -0
- data/docs/DonationLineItem.md +36 -0
- data/docs/ErrorResponseDto.md +24 -0
- data/docs/Fee.md +24 -0
- data/docs/FeeBreakdownLine.md +24 -0
- data/docs/FoodBeverageLineItem.md +36 -0
- data/docs/GetCheckout404Response.md +24 -0
- data/docs/GetCheckout422Response.md +24 -0
- data/docs/GetCheckoutResponse.md +18 -0
- data/docs/GetSettlementResponse.md +18 -0
- data/docs/HealthResponse.md +18 -0
- data/docs/LineItem.md +94 -0
- data/docs/ListSettlementsResponse.md +18 -0
- data/docs/OAuthTokenRequest.md +30 -0
- data/docs/OAuthTokenResponse.md +26 -0
- data/docs/OtherLineItem.md +36 -0
- data/docs/PhysicalGoodsCustomData.md +20 -0
- data/docs/PhysicalGoodsLineItem.md +38 -0
- data/docs/RefundCheckout402Response.md +24 -0
- data/docs/RefundCheckout409Response.md +24 -0
- data/docs/ServiceCustomData.md +18 -0
- data/docs/ServiceLineItem.md +38 -0
- data/docs/Settlement.md +52 -0
- data/docs/Tax.md +22 -0
- data/docs/TicketCustomData.md +40 -0
- data/docs/TicketLineItem.md +38 -0
- data/docs/TicketSeating.md +24 -0
- data/lib/maytes_api_client/api/default_api.rb +642 -0
- data/lib/maytes_api_client/api_client.rb +397 -0
- data/lib/maytes_api_client/api_error.rb +58 -0
- data/lib/maytes_api_client/api_model_base.rb +88 -0
- data/lib/maytes_api_client/configuration.rb +316 -0
- data/lib/maytes_api_client/managed_client.rb +140 -0
- data/lib/maytes_api_client/models/cancel_checkout409_response.rb +258 -0
- data/lib/maytes_api_client/models/cancel_checkout_request.rb +147 -0
- data/lib/maytes_api_client/models/cancel_checkout_response.rb +164 -0
- data/lib/maytes_api_client/models/capture_checkout409_response.rb +258 -0
- data/lib/maytes_api_client/models/capture_checkout422_response.rb +258 -0
- data/lib/maytes_api_client/models/capture_checkout_request.rb +218 -0
- data/lib/maytes_api_client/models/capture_checkout_response.rb +164 -0
- data/lib/maytes_api_client/models/checkout.rb +483 -0
- data/lib/maytes_api_client/models/checkout_cancelled.rb +202 -0
- data/lib/maytes_api_client/models/checkout_captured.rb +266 -0
- data/lib/maytes_api_client/models/checkout_created.rb +242 -0
- data/lib/maytes_api_client/models/checkout_discount.rb +329 -0
- data/lib/maytes_api_client/models/checkout_fee.rb +351 -0
- data/lib/maytes_api_client/models/create_checkout401_response.rb +258 -0
- data/lib/maytes_api_client/models/create_checkout409_response.rb +258 -0
- data/lib/maytes_api_client/models/create_checkout422_response.rb +258 -0
- data/lib/maytes_api_client/models/create_checkout_request.rb +444 -0
- data/lib/maytes_api_client/models/create_checkout_response.rb +164 -0
- data/lib/maytes_api_client/models/create_refund_request.rb +212 -0
- data/lib/maytes_api_client/models/customer_data.rb +168 -0
- data/lib/maytes_api_client/models/digital_goods_custom_data.rb +148 -0
- data/lib/maytes_api_client/models/digital_goods_line_item.rb +414 -0
- data/lib/maytes_api_client/models/donation_line_item.rb +405 -0
- data/lib/maytes_api_client/models/error_response_dto.rb +227 -0
- data/lib/maytes_api_client/models/fee.rb +271 -0
- data/lib/maytes_api_client/models/fee_breakdown_line.rb +266 -0
- data/lib/maytes_api_client/models/food_beverage_line_item.rb +405 -0
- data/lib/maytes_api_client/models/get_checkout404_response.rb +258 -0
- data/lib/maytes_api_client/models/get_checkout422_response.rb +258 -0
- data/lib/maytes_api_client/models/get_checkout_response.rb +164 -0
- data/lib/maytes_api_client/models/get_settlement_response.rb +164 -0
- data/lib/maytes_api_client/models/health_response.rb +164 -0
- data/lib/maytes_api_client/models/line_item.rb +65 -0
- data/lib/maytes_api_client/models/list_settlements_response.rb +166 -0
- data/lib/maytes_api_client/models/o_auth_token_request.rb +244 -0
- data/lib/maytes_api_client/models/o_auth_token_response.rb +251 -0
- data/lib/maytes_api_client/models/other_line_item.rb +405 -0
- data/lib/maytes_api_client/models/physical_goods_custom_data.rb +173 -0
- data/lib/maytes_api_client/models/physical_goods_line_item.rb +431 -0
- data/lib/maytes_api_client/models/refund_checkout402_response.rb +258 -0
- data/lib/maytes_api_client/models/refund_checkout409_response.rb +258 -0
- data/lib/maytes_api_client/models/service_custom_data.rb +148 -0
- data/lib/maytes_api_client/models/service_line_item.rb +414 -0
- data/lib/maytes_api_client/models/settlement.rb +526 -0
- data/lib/maytes_api_client/models/tax.rb +202 -0
- data/lib/maytes_api_client/models/ticket_custom_data.rb +333 -0
- data/lib/maytes_api_client/models/ticket_line_item.rb +431 -0
- data/lib/maytes_api_client/models/ticket_seating.rb +176 -0
- data/lib/maytes_api_client/version.rb +15 -0
- data/lib/maytes_api_client/webhook_verifier.rb +212 -0
- data/lib/maytes_api_client.rb +95 -0
- data/maytes_api_client.gemspec +39 -0
- data/spec/api/default_api_spec.rb +145 -0
- data/spec/models/cancel_checkout409_response_spec.rb +58 -0
- data/spec/models/cancel_checkout_request_spec.rb +36 -0
- data/spec/models/cancel_checkout_response_spec.rb +36 -0
- data/spec/models/capture_checkout409_response_spec.rb +58 -0
- data/spec/models/capture_checkout422_response_spec.rb +58 -0
- data/spec/models/capture_checkout_request_spec.rb +54 -0
- data/spec/models/capture_checkout_response_spec.rb +36 -0
- data/spec/models/checkout_cancelled_spec.rb +48 -0
- data/spec/models/checkout_captured_spec.rb +66 -0
- data/spec/models/checkout_created_spec.rb +54 -0
- data/spec/models/checkout_discount_spec.rb +76 -0
- data/spec/models/checkout_fee_spec.rb +86 -0
- data/spec/models/checkout_spec.rb +126 -0
- data/spec/models/create_checkout401_response_spec.rb +58 -0
- data/spec/models/create_checkout409_response_spec.rb +58 -0
- data/spec/models/create_checkout422_response_spec.rb +58 -0
- data/spec/models/create_checkout_request_spec.rb +118 -0
- data/spec/models/create_checkout_response_spec.rb +36 -0
- data/spec/models/create_refund_request_spec.rb +42 -0
- data/spec/models/customer_data_spec.rb +48 -0
- data/spec/models/digital_goods_custom_data_spec.rb +36 -0
- data/spec/models/digital_goods_line_item_spec.rb +100 -0
- data/spec/models/donation_line_item_spec.rb +94 -0
- data/spec/models/error_response_dto_spec.rb +54 -0
- data/spec/models/fee_breakdown_line_spec.rb +58 -0
- data/spec/models/fee_spec.rb +54 -0
- data/spec/models/food_beverage_line_item_spec.rb +94 -0
- data/spec/models/get_checkout404_response_spec.rb +58 -0
- data/spec/models/get_checkout422_response_spec.rb +58 -0
- data/spec/models/get_checkout_response_spec.rb +36 -0
- data/spec/models/get_settlement_response_spec.rb +36 -0
- data/spec/models/health_response_spec.rb +36 -0
- data/spec/models/line_item_spec.rb +44 -0
- data/spec/models/list_settlements_response_spec.rb +36 -0
- data/spec/models/o_auth_token_request_spec.rb +72 -0
- data/spec/models/o_auth_token_response_spec.rb +60 -0
- data/spec/models/other_line_item_spec.rb +94 -0
- data/spec/models/physical_goods_custom_data_spec.rb +42 -0
- data/spec/models/physical_goods_line_item_spec.rb +100 -0
- data/spec/models/refund_checkout402_response_spec.rb +58 -0
- data/spec/models/refund_checkout409_response_spec.rb +58 -0
- data/spec/models/service_custom_data_spec.rb +36 -0
- data/spec/models/service_line_item_spec.rb +100 -0
- data/spec/models/settlement_spec.rb +138 -0
- data/spec/models/tax_spec.rb +48 -0
- data/spec/models/ticket_custom_data_spec.rb +106 -0
- data/spec/models/ticket_line_item_spec.rb +100 -0
- data/spec/models/ticket_seating_spec.rb +54 -0
- data/spec/spec_helper.rb +111 -0
- metadata +295 -0
|
@@ -0,0 +1,642 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Maytes API
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.22.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module MaytesApiClient
|
|
16
|
+
class DefaultApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Cancel authorized checkout
|
|
23
|
+
# @param checkout_uuid [String]
|
|
24
|
+
# @param cancel_checkout_request [CancelCheckoutRequest]
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [CancelCheckoutResponse]
|
|
27
|
+
def cancel_checkout(checkout_uuid, cancel_checkout_request, opts = {})
|
|
28
|
+
data, _status_code, _headers = cancel_checkout_with_http_info(checkout_uuid, cancel_checkout_request, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Cancel authorized checkout
|
|
33
|
+
# @param checkout_uuid [String]
|
|
34
|
+
# @param cancel_checkout_request [CancelCheckoutRequest]
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(CancelCheckoutResponse, Integer, Hash)>] CancelCheckoutResponse data, response status code and response headers
|
|
37
|
+
def cancel_checkout_with_http_info(checkout_uuid, cancel_checkout_request, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.cancel_checkout ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'checkout_uuid' is set
|
|
42
|
+
if @api_client.config.client_side_validation && checkout_uuid.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'checkout_uuid' when calling DefaultApi.cancel_checkout"
|
|
44
|
+
end
|
|
45
|
+
# verify the required parameter 'cancel_checkout_request' is set
|
|
46
|
+
if @api_client.config.client_side_validation && cancel_checkout_request.nil?
|
|
47
|
+
fail ArgumentError, "Missing the required parameter 'cancel_checkout_request' when calling DefaultApi.cancel_checkout"
|
|
48
|
+
end
|
|
49
|
+
# resource path
|
|
50
|
+
local_var_path = '/api/merchant/v1/checkouts/{checkoutUuid}/cancel'.sub('{checkoutUuid}', CGI.escape(checkout_uuid.to_s))
|
|
51
|
+
|
|
52
|
+
# query parameters
|
|
53
|
+
query_params = opts[:query_params] || {}
|
|
54
|
+
|
|
55
|
+
# header parameters
|
|
56
|
+
header_params = opts[:header_params] || {}
|
|
57
|
+
# HTTP header 'Accept' (if needed)
|
|
58
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
59
|
+
# HTTP header 'Content-Type'
|
|
60
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
61
|
+
if !content_type.nil?
|
|
62
|
+
header_params['Content-Type'] = content_type
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# form parameters
|
|
66
|
+
form_params = opts[:form_params] || {}
|
|
67
|
+
|
|
68
|
+
# http body (model)
|
|
69
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(cancel_checkout_request)
|
|
70
|
+
|
|
71
|
+
# return_type
|
|
72
|
+
return_type = opts[:debug_return_type] || 'CancelCheckoutResponse'
|
|
73
|
+
|
|
74
|
+
# auth_names
|
|
75
|
+
auth_names = opts[:debug_auth_names] || ['bearer']
|
|
76
|
+
|
|
77
|
+
new_options = opts.merge(
|
|
78
|
+
:operation => :"DefaultApi.cancel_checkout",
|
|
79
|
+
:header_params => header_params,
|
|
80
|
+
:query_params => query_params,
|
|
81
|
+
:form_params => form_params,
|
|
82
|
+
:body => post_body,
|
|
83
|
+
:auth_names => auth_names,
|
|
84
|
+
:return_type => return_type
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
88
|
+
if @api_client.config.debugging
|
|
89
|
+
@api_client.config.logger.debug "API called: DefaultApi#cancel_checkout\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
90
|
+
end
|
|
91
|
+
return data, status_code, headers
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Capture authorized checkout
|
|
95
|
+
# @param checkout_uuid [String]
|
|
96
|
+
# @param capture_checkout_request [CaptureCheckoutRequest]
|
|
97
|
+
# @param [Hash] opts the optional parameters
|
|
98
|
+
# @return [CaptureCheckoutResponse]
|
|
99
|
+
def capture_checkout(checkout_uuid, capture_checkout_request, opts = {})
|
|
100
|
+
data, _status_code, _headers = capture_checkout_with_http_info(checkout_uuid, capture_checkout_request, opts)
|
|
101
|
+
data
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Capture authorized checkout
|
|
105
|
+
# @param checkout_uuid [String]
|
|
106
|
+
# @param capture_checkout_request [CaptureCheckoutRequest]
|
|
107
|
+
# @param [Hash] opts the optional parameters
|
|
108
|
+
# @return [Array<(CaptureCheckoutResponse, Integer, Hash)>] CaptureCheckoutResponse data, response status code and response headers
|
|
109
|
+
def capture_checkout_with_http_info(checkout_uuid, capture_checkout_request, opts = {})
|
|
110
|
+
if @api_client.config.debugging
|
|
111
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.capture_checkout ...'
|
|
112
|
+
end
|
|
113
|
+
# verify the required parameter 'checkout_uuid' is set
|
|
114
|
+
if @api_client.config.client_side_validation && checkout_uuid.nil?
|
|
115
|
+
fail ArgumentError, "Missing the required parameter 'checkout_uuid' when calling DefaultApi.capture_checkout"
|
|
116
|
+
end
|
|
117
|
+
# verify the required parameter 'capture_checkout_request' is set
|
|
118
|
+
if @api_client.config.client_side_validation && capture_checkout_request.nil?
|
|
119
|
+
fail ArgumentError, "Missing the required parameter 'capture_checkout_request' when calling DefaultApi.capture_checkout"
|
|
120
|
+
end
|
|
121
|
+
# resource path
|
|
122
|
+
local_var_path = '/api/merchant/v1/checkouts/{checkoutUuid}/capture'.sub('{checkoutUuid}', CGI.escape(checkout_uuid.to_s))
|
|
123
|
+
|
|
124
|
+
# query parameters
|
|
125
|
+
query_params = opts[:query_params] || {}
|
|
126
|
+
|
|
127
|
+
# header parameters
|
|
128
|
+
header_params = opts[:header_params] || {}
|
|
129
|
+
# HTTP header 'Accept' (if needed)
|
|
130
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
131
|
+
# HTTP header 'Content-Type'
|
|
132
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
133
|
+
if !content_type.nil?
|
|
134
|
+
header_params['Content-Type'] = content_type
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# form parameters
|
|
138
|
+
form_params = opts[:form_params] || {}
|
|
139
|
+
|
|
140
|
+
# http body (model)
|
|
141
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(capture_checkout_request)
|
|
142
|
+
|
|
143
|
+
# return_type
|
|
144
|
+
return_type = opts[:debug_return_type] || 'CaptureCheckoutResponse'
|
|
145
|
+
|
|
146
|
+
# auth_names
|
|
147
|
+
auth_names = opts[:debug_auth_names] || ['bearer']
|
|
148
|
+
|
|
149
|
+
new_options = opts.merge(
|
|
150
|
+
:operation => :"DefaultApi.capture_checkout",
|
|
151
|
+
:header_params => header_params,
|
|
152
|
+
:query_params => query_params,
|
|
153
|
+
:form_params => form_params,
|
|
154
|
+
:body => post_body,
|
|
155
|
+
:auth_names => auth_names,
|
|
156
|
+
:return_type => return_type
|
|
157
|
+
)
|
|
158
|
+
|
|
159
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
160
|
+
if @api_client.config.debugging
|
|
161
|
+
@api_client.config.logger.debug "API called: DefaultApi#capture_checkout\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
162
|
+
end
|
|
163
|
+
return data, status_code, headers
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# Create a new checkout
|
|
167
|
+
# @param create_checkout_request [CreateCheckoutRequest]
|
|
168
|
+
# @param [Hash] opts the optional parameters
|
|
169
|
+
# @return [CreateCheckoutResponse]
|
|
170
|
+
def create_checkout(create_checkout_request, opts = {})
|
|
171
|
+
data, _status_code, _headers = create_checkout_with_http_info(create_checkout_request, opts)
|
|
172
|
+
data
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Create a new checkout
|
|
176
|
+
# @param create_checkout_request [CreateCheckoutRequest]
|
|
177
|
+
# @param [Hash] opts the optional parameters
|
|
178
|
+
# @return [Array<(CreateCheckoutResponse, Integer, Hash)>] CreateCheckoutResponse data, response status code and response headers
|
|
179
|
+
def create_checkout_with_http_info(create_checkout_request, opts = {})
|
|
180
|
+
if @api_client.config.debugging
|
|
181
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.create_checkout ...'
|
|
182
|
+
end
|
|
183
|
+
# verify the required parameter 'create_checkout_request' is set
|
|
184
|
+
if @api_client.config.client_side_validation && create_checkout_request.nil?
|
|
185
|
+
fail ArgumentError, "Missing the required parameter 'create_checkout_request' when calling DefaultApi.create_checkout"
|
|
186
|
+
end
|
|
187
|
+
# resource path
|
|
188
|
+
local_var_path = '/api/merchant/v1/checkouts'
|
|
189
|
+
|
|
190
|
+
# query parameters
|
|
191
|
+
query_params = opts[:query_params] || {}
|
|
192
|
+
|
|
193
|
+
# header parameters
|
|
194
|
+
header_params = opts[:header_params] || {}
|
|
195
|
+
# HTTP header 'Accept' (if needed)
|
|
196
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
197
|
+
# HTTP header 'Content-Type'
|
|
198
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
199
|
+
if !content_type.nil?
|
|
200
|
+
header_params['Content-Type'] = content_type
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# form parameters
|
|
204
|
+
form_params = opts[:form_params] || {}
|
|
205
|
+
|
|
206
|
+
# http body (model)
|
|
207
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_checkout_request)
|
|
208
|
+
|
|
209
|
+
# return_type
|
|
210
|
+
return_type = opts[:debug_return_type] || 'CreateCheckoutResponse'
|
|
211
|
+
|
|
212
|
+
# auth_names
|
|
213
|
+
auth_names = opts[:debug_auth_names] || ['bearer']
|
|
214
|
+
|
|
215
|
+
new_options = opts.merge(
|
|
216
|
+
:operation => :"DefaultApi.create_checkout",
|
|
217
|
+
:header_params => header_params,
|
|
218
|
+
:query_params => query_params,
|
|
219
|
+
:form_params => form_params,
|
|
220
|
+
:body => post_body,
|
|
221
|
+
:auth_names => auth_names,
|
|
222
|
+
:return_type => return_type
|
|
223
|
+
)
|
|
224
|
+
|
|
225
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
226
|
+
if @api_client.config.debugging
|
|
227
|
+
@api_client.config.logger.debug "API called: DefaultApi#create_checkout\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
228
|
+
end
|
|
229
|
+
return data, status_code, headers
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
# Get checkout details
|
|
233
|
+
# @param checkout_uuid [String]
|
|
234
|
+
# @param [Hash] opts the optional parameters
|
|
235
|
+
# @option opts [String] :merchant_order_id
|
|
236
|
+
# @return [GetCheckoutResponse]
|
|
237
|
+
def get_checkout(checkout_uuid, opts = {})
|
|
238
|
+
data, _status_code, _headers = get_checkout_with_http_info(checkout_uuid, opts)
|
|
239
|
+
data
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
# Get checkout details
|
|
243
|
+
# @param checkout_uuid [String]
|
|
244
|
+
# @param [Hash] opts the optional parameters
|
|
245
|
+
# @option opts [String] :merchant_order_id
|
|
246
|
+
# @return [Array<(GetCheckoutResponse, Integer, Hash)>] GetCheckoutResponse data, response status code and response headers
|
|
247
|
+
def get_checkout_with_http_info(checkout_uuid, opts = {})
|
|
248
|
+
if @api_client.config.debugging
|
|
249
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.get_checkout ...'
|
|
250
|
+
end
|
|
251
|
+
# verify the required parameter 'checkout_uuid' is set
|
|
252
|
+
if @api_client.config.client_side_validation && checkout_uuid.nil?
|
|
253
|
+
fail ArgumentError, "Missing the required parameter 'checkout_uuid' when calling DefaultApi.get_checkout"
|
|
254
|
+
end
|
|
255
|
+
# resource path
|
|
256
|
+
local_var_path = '/api/merchant/v1/checkouts/{checkoutUuid}'.sub('{checkoutUuid}', CGI.escape(checkout_uuid.to_s))
|
|
257
|
+
|
|
258
|
+
# query parameters
|
|
259
|
+
query_params = opts[:query_params] || {}
|
|
260
|
+
query_params[:'merchant_order_id'] = opts[:'merchant_order_id'] if !opts[:'merchant_order_id'].nil?
|
|
261
|
+
|
|
262
|
+
# header parameters
|
|
263
|
+
header_params = opts[:header_params] || {}
|
|
264
|
+
# HTTP header 'Accept' (if needed)
|
|
265
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
266
|
+
|
|
267
|
+
# form parameters
|
|
268
|
+
form_params = opts[:form_params] || {}
|
|
269
|
+
|
|
270
|
+
# http body (model)
|
|
271
|
+
post_body = opts[:debug_body]
|
|
272
|
+
|
|
273
|
+
# return_type
|
|
274
|
+
return_type = opts[:debug_return_type] || 'GetCheckoutResponse'
|
|
275
|
+
|
|
276
|
+
# auth_names
|
|
277
|
+
auth_names = opts[:debug_auth_names] || ['bearer']
|
|
278
|
+
|
|
279
|
+
new_options = opts.merge(
|
|
280
|
+
:operation => :"DefaultApi.get_checkout",
|
|
281
|
+
:header_params => header_params,
|
|
282
|
+
:query_params => query_params,
|
|
283
|
+
:form_params => form_params,
|
|
284
|
+
:body => post_body,
|
|
285
|
+
:auth_names => auth_names,
|
|
286
|
+
:return_type => return_type
|
|
287
|
+
)
|
|
288
|
+
|
|
289
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
290
|
+
if @api_client.config.debugging
|
|
291
|
+
@api_client.config.logger.debug "API called: DefaultApi#get_checkout\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
292
|
+
end
|
|
293
|
+
return data, status_code, headers
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
# Health check
|
|
297
|
+
# @param [Hash] opts the optional parameters
|
|
298
|
+
# @return [HealthResponse]
|
|
299
|
+
def get_health(opts = {})
|
|
300
|
+
data, _status_code, _headers = get_health_with_http_info(opts)
|
|
301
|
+
data
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
# Health check
|
|
305
|
+
# @param [Hash] opts the optional parameters
|
|
306
|
+
# @return [Array<(HealthResponse, Integer, Hash)>] HealthResponse data, response status code and response headers
|
|
307
|
+
def get_health_with_http_info(opts = {})
|
|
308
|
+
if @api_client.config.debugging
|
|
309
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.get_health ...'
|
|
310
|
+
end
|
|
311
|
+
# resource path
|
|
312
|
+
local_var_path = '/api/health'
|
|
313
|
+
|
|
314
|
+
# query parameters
|
|
315
|
+
query_params = opts[:query_params] || {}
|
|
316
|
+
|
|
317
|
+
# header parameters
|
|
318
|
+
header_params = opts[:header_params] || {}
|
|
319
|
+
# HTTP header 'Accept' (if needed)
|
|
320
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
321
|
+
|
|
322
|
+
# form parameters
|
|
323
|
+
form_params = opts[:form_params] || {}
|
|
324
|
+
|
|
325
|
+
# http body (model)
|
|
326
|
+
post_body = opts[:debug_body]
|
|
327
|
+
|
|
328
|
+
# return_type
|
|
329
|
+
return_type = opts[:debug_return_type] || 'HealthResponse'
|
|
330
|
+
|
|
331
|
+
# auth_names
|
|
332
|
+
auth_names = opts[:debug_auth_names] || []
|
|
333
|
+
|
|
334
|
+
new_options = opts.merge(
|
|
335
|
+
:operation => :"DefaultApi.get_health",
|
|
336
|
+
:header_params => header_params,
|
|
337
|
+
:query_params => query_params,
|
|
338
|
+
:form_params => form_params,
|
|
339
|
+
:body => post_body,
|
|
340
|
+
:auth_names => auth_names,
|
|
341
|
+
:return_type => return_type
|
|
342
|
+
)
|
|
343
|
+
|
|
344
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
345
|
+
if @api_client.config.debugging
|
|
346
|
+
@api_client.config.logger.debug "API called: DefaultApi#get_health\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
347
|
+
end
|
|
348
|
+
return data, status_code, headers
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
# Issue an access token
|
|
352
|
+
# @param o_auth_token_request [OAuthTokenRequest]
|
|
353
|
+
# @param [Hash] opts the optional parameters
|
|
354
|
+
# @return [OAuthTokenResponse]
|
|
355
|
+
def get_o_auth_token(o_auth_token_request, opts = {})
|
|
356
|
+
data, _status_code, _headers = get_o_auth_token_with_http_info(o_auth_token_request, opts)
|
|
357
|
+
data
|
|
358
|
+
end
|
|
359
|
+
|
|
360
|
+
# Issue an access token
|
|
361
|
+
# @param o_auth_token_request [OAuthTokenRequest]
|
|
362
|
+
# @param [Hash] opts the optional parameters
|
|
363
|
+
# @return [Array<(OAuthTokenResponse, Integer, Hash)>] OAuthTokenResponse data, response status code and response headers
|
|
364
|
+
def get_o_auth_token_with_http_info(o_auth_token_request, opts = {})
|
|
365
|
+
if @api_client.config.debugging
|
|
366
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.get_o_auth_token ...'
|
|
367
|
+
end
|
|
368
|
+
# verify the required parameter 'o_auth_token_request' is set
|
|
369
|
+
if @api_client.config.client_side_validation && o_auth_token_request.nil?
|
|
370
|
+
fail ArgumentError, "Missing the required parameter 'o_auth_token_request' when calling DefaultApi.get_o_auth_token"
|
|
371
|
+
end
|
|
372
|
+
# resource path
|
|
373
|
+
local_var_path = '/oauth/token'
|
|
374
|
+
|
|
375
|
+
# query parameters
|
|
376
|
+
query_params = opts[:query_params] || {}
|
|
377
|
+
|
|
378
|
+
# header parameters
|
|
379
|
+
header_params = opts[:header_params] || {}
|
|
380
|
+
# HTTP header 'Accept' (if needed)
|
|
381
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
382
|
+
# HTTP header 'Content-Type'
|
|
383
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
384
|
+
if !content_type.nil?
|
|
385
|
+
header_params['Content-Type'] = content_type
|
|
386
|
+
end
|
|
387
|
+
|
|
388
|
+
# form parameters
|
|
389
|
+
form_params = opts[:form_params] || {}
|
|
390
|
+
|
|
391
|
+
# http body (model)
|
|
392
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(o_auth_token_request)
|
|
393
|
+
|
|
394
|
+
# return_type
|
|
395
|
+
return_type = opts[:debug_return_type] || 'OAuthTokenResponse'
|
|
396
|
+
|
|
397
|
+
# auth_names
|
|
398
|
+
auth_names = opts[:debug_auth_names] || []
|
|
399
|
+
|
|
400
|
+
new_options = opts.merge(
|
|
401
|
+
:operation => :"DefaultApi.get_o_auth_token",
|
|
402
|
+
:header_params => header_params,
|
|
403
|
+
:query_params => query_params,
|
|
404
|
+
:form_params => form_params,
|
|
405
|
+
:body => post_body,
|
|
406
|
+
:auth_names => auth_names,
|
|
407
|
+
:return_type => return_type
|
|
408
|
+
)
|
|
409
|
+
|
|
410
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
411
|
+
if @api_client.config.debugging
|
|
412
|
+
@api_client.config.logger.debug "API called: DefaultApi#get_o_auth_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
413
|
+
end
|
|
414
|
+
return data, status_code, headers
|
|
415
|
+
end
|
|
416
|
+
|
|
417
|
+
# Get a settlement by UUID
|
|
418
|
+
# @param uuid [String] Settlement UUID
|
|
419
|
+
# @param [Hash] opts the optional parameters
|
|
420
|
+
# @return [GetSettlementResponse]
|
|
421
|
+
def get_settlement(uuid, opts = {})
|
|
422
|
+
data, _status_code, _headers = get_settlement_with_http_info(uuid, opts)
|
|
423
|
+
data
|
|
424
|
+
end
|
|
425
|
+
|
|
426
|
+
# Get a settlement by UUID
|
|
427
|
+
# @param uuid [String] Settlement UUID
|
|
428
|
+
# @param [Hash] opts the optional parameters
|
|
429
|
+
# @return [Array<(GetSettlementResponse, Integer, Hash)>] GetSettlementResponse data, response status code and response headers
|
|
430
|
+
def get_settlement_with_http_info(uuid, opts = {})
|
|
431
|
+
if @api_client.config.debugging
|
|
432
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.get_settlement ...'
|
|
433
|
+
end
|
|
434
|
+
# verify the required parameter 'uuid' is set
|
|
435
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
|
436
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling DefaultApi.get_settlement"
|
|
437
|
+
end
|
|
438
|
+
# resource path
|
|
439
|
+
local_var_path = '/api/merchant/v1/settlements/{uuid}'.sub('{uuid}', CGI.escape(uuid.to_s))
|
|
440
|
+
|
|
441
|
+
# query parameters
|
|
442
|
+
query_params = opts[:query_params] || {}
|
|
443
|
+
|
|
444
|
+
# header parameters
|
|
445
|
+
header_params = opts[:header_params] || {}
|
|
446
|
+
# HTTP header 'Accept' (if needed)
|
|
447
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
448
|
+
|
|
449
|
+
# form parameters
|
|
450
|
+
form_params = opts[:form_params] || {}
|
|
451
|
+
|
|
452
|
+
# http body (model)
|
|
453
|
+
post_body = opts[:debug_body]
|
|
454
|
+
|
|
455
|
+
# return_type
|
|
456
|
+
return_type = opts[:debug_return_type] || 'GetSettlementResponse'
|
|
457
|
+
|
|
458
|
+
# auth_names
|
|
459
|
+
auth_names = opts[:debug_auth_names] || ['bearer']
|
|
460
|
+
|
|
461
|
+
new_options = opts.merge(
|
|
462
|
+
:operation => :"DefaultApi.get_settlement",
|
|
463
|
+
:header_params => header_params,
|
|
464
|
+
:query_params => query_params,
|
|
465
|
+
:form_params => form_params,
|
|
466
|
+
:body => post_body,
|
|
467
|
+
:auth_names => auth_names,
|
|
468
|
+
:return_type => return_type
|
|
469
|
+
)
|
|
470
|
+
|
|
471
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
472
|
+
if @api_client.config.debugging
|
|
473
|
+
@api_client.config.logger.debug "API called: DefaultApi#get_settlement\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
474
|
+
end
|
|
475
|
+
return data, status_code, headers
|
|
476
|
+
end
|
|
477
|
+
|
|
478
|
+
# List settlements for this merchant
|
|
479
|
+
# Returns settlements for the authenticated merchant. Default sort: created_at ASC.
|
|
480
|
+
# @param [Hash] opts the optional parameters
|
|
481
|
+
# @option opts [Object] :offset Pagination offset (default 0)
|
|
482
|
+
# @option opts [Object] :limit Max records to return (default 50, max 200)
|
|
483
|
+
# @option opts [String] :sort_dir Sort direction (default: asc)
|
|
484
|
+
# @option opts [String] :sort_by Field to sort by (default: created_at)
|
|
485
|
+
# @option opts [Object] :created_before Include settlements created at or before this ISO-8601 timestamp
|
|
486
|
+
# @option opts [Object] :created_after Include settlements created at or after this ISO-8601 timestamp
|
|
487
|
+
# @option opts [String] :status Filter by status
|
|
488
|
+
# @return [ListSettlementsResponse]
|
|
489
|
+
def list_settlements(opts = {})
|
|
490
|
+
data, _status_code, _headers = list_settlements_with_http_info(opts)
|
|
491
|
+
data
|
|
492
|
+
end
|
|
493
|
+
|
|
494
|
+
# List settlements for this merchant
|
|
495
|
+
# Returns settlements for the authenticated merchant. Default sort: created_at ASC.
|
|
496
|
+
# @param [Hash] opts the optional parameters
|
|
497
|
+
# @option opts [Object] :offset Pagination offset (default 0)
|
|
498
|
+
# @option opts [Object] :limit Max records to return (default 50, max 200)
|
|
499
|
+
# @option opts [String] :sort_dir Sort direction (default: asc)
|
|
500
|
+
# @option opts [String] :sort_by Field to sort by (default: created_at)
|
|
501
|
+
# @option opts [Object] :created_before Include settlements created at or before this ISO-8601 timestamp
|
|
502
|
+
# @option opts [Object] :created_after Include settlements created at or after this ISO-8601 timestamp
|
|
503
|
+
# @option opts [String] :status Filter by status
|
|
504
|
+
# @return [Array<(ListSettlementsResponse, Integer, Hash)>] ListSettlementsResponse data, response status code and response headers
|
|
505
|
+
def list_settlements_with_http_info(opts = {})
|
|
506
|
+
if @api_client.config.debugging
|
|
507
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.list_settlements ...'
|
|
508
|
+
end
|
|
509
|
+
allowable_values = ["asc", "desc"]
|
|
510
|
+
if @api_client.config.client_side_validation && opts[:'sort_dir'] && !allowable_values.include?(opts[:'sort_dir'])
|
|
511
|
+
fail ArgumentError, "invalid value for \"sort_dir\", must be one of #{allowable_values}"
|
|
512
|
+
end
|
|
513
|
+
allowable_values = ["created_at", "period_to", "settled_amount"]
|
|
514
|
+
if @api_client.config.client_side_validation && opts[:'sort_by'] && !allowable_values.include?(opts[:'sort_by'])
|
|
515
|
+
fail ArgumentError, "invalid value for \"sort_by\", must be one of #{allowable_values}"
|
|
516
|
+
end
|
|
517
|
+
allowable_values = ["CREATED", "PENDING", "COMPLETED", "FAILED", "NEEDS_REVIEW", "CANCELLED"]
|
|
518
|
+
if @api_client.config.client_side_validation && opts[:'status'] && !allowable_values.include?(opts[:'status'])
|
|
519
|
+
fail ArgumentError, "invalid value for \"status\", must be one of #{allowable_values}"
|
|
520
|
+
end
|
|
521
|
+
# resource path
|
|
522
|
+
local_var_path = '/api/merchant/v1/settlements'
|
|
523
|
+
|
|
524
|
+
# query parameters
|
|
525
|
+
query_params = opts[:query_params] || {}
|
|
526
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
527
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
528
|
+
query_params[:'sort_dir'] = opts[:'sort_dir'] if !opts[:'sort_dir'].nil?
|
|
529
|
+
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
|
530
|
+
query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
|
|
531
|
+
query_params[:'created_after'] = opts[:'created_after'] if !opts[:'created_after'].nil?
|
|
532
|
+
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
|
533
|
+
|
|
534
|
+
# header parameters
|
|
535
|
+
header_params = opts[:header_params] || {}
|
|
536
|
+
# HTTP header 'Accept' (if needed)
|
|
537
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
538
|
+
|
|
539
|
+
# form parameters
|
|
540
|
+
form_params = opts[:form_params] || {}
|
|
541
|
+
|
|
542
|
+
# http body (model)
|
|
543
|
+
post_body = opts[:debug_body]
|
|
544
|
+
|
|
545
|
+
# return_type
|
|
546
|
+
return_type = opts[:debug_return_type] || 'ListSettlementsResponse'
|
|
547
|
+
|
|
548
|
+
# auth_names
|
|
549
|
+
auth_names = opts[:debug_auth_names] || ['bearer']
|
|
550
|
+
|
|
551
|
+
new_options = opts.merge(
|
|
552
|
+
:operation => :"DefaultApi.list_settlements",
|
|
553
|
+
:header_params => header_params,
|
|
554
|
+
:query_params => query_params,
|
|
555
|
+
:form_params => form_params,
|
|
556
|
+
:body => post_body,
|
|
557
|
+
:auth_names => auth_names,
|
|
558
|
+
:return_type => return_type
|
|
559
|
+
)
|
|
560
|
+
|
|
561
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
562
|
+
if @api_client.config.debugging
|
|
563
|
+
@api_client.config.logger.debug "API called: DefaultApi#list_settlements\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
564
|
+
end
|
|
565
|
+
return data, status_code, headers
|
|
566
|
+
end
|
|
567
|
+
|
|
568
|
+
# Refund a captured checkout
|
|
569
|
+
# Initiates a full refund of the captured payment. Returns 204 immediately; Stripe confirms asynchronously via webhook. Poll GET /checkouts/:uuid for status and refund details.
|
|
570
|
+
# @param checkout_uuid [String]
|
|
571
|
+
# @param create_refund_request [CreateRefundRequest]
|
|
572
|
+
# @param [Hash] opts the optional parameters
|
|
573
|
+
# @return [nil]
|
|
574
|
+
def refund_checkout(checkout_uuid, create_refund_request, opts = {})
|
|
575
|
+
refund_checkout_with_http_info(checkout_uuid, create_refund_request, opts)
|
|
576
|
+
nil
|
|
577
|
+
end
|
|
578
|
+
|
|
579
|
+
# Refund a captured checkout
|
|
580
|
+
# Initiates a full refund of the captured payment. Returns 204 immediately; Stripe confirms asynchronously via webhook. Poll GET /checkouts/:uuid for status and refund details.
|
|
581
|
+
# @param checkout_uuid [String]
|
|
582
|
+
# @param create_refund_request [CreateRefundRequest]
|
|
583
|
+
# @param [Hash] opts the optional parameters
|
|
584
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
585
|
+
def refund_checkout_with_http_info(checkout_uuid, create_refund_request, opts = {})
|
|
586
|
+
if @api_client.config.debugging
|
|
587
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.refund_checkout ...'
|
|
588
|
+
end
|
|
589
|
+
# verify the required parameter 'checkout_uuid' is set
|
|
590
|
+
if @api_client.config.client_side_validation && checkout_uuid.nil?
|
|
591
|
+
fail ArgumentError, "Missing the required parameter 'checkout_uuid' when calling DefaultApi.refund_checkout"
|
|
592
|
+
end
|
|
593
|
+
# verify the required parameter 'create_refund_request' is set
|
|
594
|
+
if @api_client.config.client_side_validation && create_refund_request.nil?
|
|
595
|
+
fail ArgumentError, "Missing the required parameter 'create_refund_request' when calling DefaultApi.refund_checkout"
|
|
596
|
+
end
|
|
597
|
+
# resource path
|
|
598
|
+
local_var_path = '/api/merchant/v1/checkouts/{checkoutUuid}/refund'.sub('{checkoutUuid}', CGI.escape(checkout_uuid.to_s))
|
|
599
|
+
|
|
600
|
+
# query parameters
|
|
601
|
+
query_params = opts[:query_params] || {}
|
|
602
|
+
|
|
603
|
+
# header parameters
|
|
604
|
+
header_params = opts[:header_params] || {}
|
|
605
|
+
# HTTP header 'Accept' (if needed)
|
|
606
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
607
|
+
# HTTP header 'Content-Type'
|
|
608
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
609
|
+
if !content_type.nil?
|
|
610
|
+
header_params['Content-Type'] = content_type
|
|
611
|
+
end
|
|
612
|
+
|
|
613
|
+
# form parameters
|
|
614
|
+
form_params = opts[:form_params] || {}
|
|
615
|
+
|
|
616
|
+
# http body (model)
|
|
617
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_refund_request)
|
|
618
|
+
|
|
619
|
+
# return_type
|
|
620
|
+
return_type = opts[:debug_return_type]
|
|
621
|
+
|
|
622
|
+
# auth_names
|
|
623
|
+
auth_names = opts[:debug_auth_names] || ['bearer']
|
|
624
|
+
|
|
625
|
+
new_options = opts.merge(
|
|
626
|
+
:operation => :"DefaultApi.refund_checkout",
|
|
627
|
+
:header_params => header_params,
|
|
628
|
+
:query_params => query_params,
|
|
629
|
+
:form_params => form_params,
|
|
630
|
+
:body => post_body,
|
|
631
|
+
:auth_names => auth_names,
|
|
632
|
+
:return_type => return_type
|
|
633
|
+
)
|
|
634
|
+
|
|
635
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
636
|
+
if @api_client.config.debugging
|
|
637
|
+
@api_client.config.logger.debug "API called: DefaultApi#refund_checkout\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
638
|
+
end
|
|
639
|
+
return data, status_code, headers
|
|
640
|
+
end
|
|
641
|
+
end
|
|
642
|
+
end
|