apimatic-stax-sdk 0.0.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/LICENSE +28 -0
- data/README.md +189 -0
- data/bin/console +15 -0
- data/lib/stax_fatt_merchant_api/api_helper.rb +10 -0
- data/lib/stax_fatt_merchant_api/apis/base_api.rb +67 -0
- data/lib/stax_fatt_merchant_api/apis/cache_api.rb +28 -0
- data/lib/stax_fatt_merchant_api/apis/charge_api.rb +29 -0
- data/lib/stax_fatt_merchant_api/apis/credit_api.rb +29 -0
- data/lib/stax_fatt_merchant_api/apis/customer_api.rb +307 -0
- data/lib/stax_fatt_merchant_api/apis/dispute_file_api.rb +46 -0
- data/lib/stax_fatt_merchant_api/apis/file_api.rb +115 -0
- data/lib/stax_fatt_merchant_api/apis/hello_sign_api.rb +103 -0
- data/lib/stax_fatt_merchant_api/apis/integration_api.rb +115 -0
- data/lib/stax_fatt_merchant_api/apis/invoice_api.rb +270 -0
- data/lib/stax_fatt_merchant_api/apis/invoice_schedule_api.rb +105 -0
- data/lib/stax_fatt_merchant_api/apis/item_api.rb +257 -0
- data/lib/stax_fatt_merchant_api/apis/merchant_admin_api.rb +323 -0
- data/lib/stax_fatt_merchant_api/apis/payment_method_api.rb +128 -0
- data/lib/stax_fatt_merchant_api/apis/reporting_api.rb +42 -0
- data/lib/stax_fatt_merchant_api/apis/sandbox_api.rb +45 -0
- data/lib/stax_fatt_merchant_api/apis/self_api.rb +186 -0
- data/lib/stax_fatt_merchant_api/apis/team_api.rb +143 -0
- data/lib/stax_fatt_merchant_api/apis/team_api_keys_api.rb +141 -0
- data/lib/stax_fatt_merchant_api/apis/team_funding_accounts_api.rb +175 -0
- data/lib/stax_fatt_merchant_api/apis/team_options_api.rb +141 -0
- data/lib/stax_fatt_merchant_api/apis/team_registration_api.rb +156 -0
- data/lib/stax_fatt_merchant_api/apis/team_users_api.rb +139 -0
- data/lib/stax_fatt_merchant_api/apis/terminal_api.rb +73 -0
- data/lib/stax_fatt_merchant_api/apis/transaction_api.rb +467 -0
- data/lib/stax_fatt_merchant_api/apis/user_admin_api.rb +161 -0
- data/lib/stax_fatt_merchant_api/apis/verify_api.rb +42 -0
- data/lib/stax_fatt_merchant_api/apis/web_payment_api.rb +28 -0
- data/lib/stax_fatt_merchant_api/apis/webhook_api.rb +98 -0
- data/lib/stax_fatt_merchant_api/client.rb +235 -0
- data/lib/stax_fatt_merchant_api/configuration.rb +179 -0
- data/lib/stax_fatt_merchant_api/exceptions/api_exception.rb +21 -0
- data/lib/stax_fatt_merchant_api/http/api_response.rb +19 -0
- data/lib/stax_fatt_merchant_api/http/auth/oauth_2.rb +53 -0
- data/lib/stax_fatt_merchant_api/http/http_call_back.rb +10 -0
- data/lib/stax_fatt_merchant_api/http/http_method_enum.rb +10 -0
- data/lib/stax_fatt_merchant_api/http/http_request.rb +10 -0
- data/lib/stax_fatt_merchant_api/http/http_response.rb +10 -0
- data/lib/stax_fatt_merchant_api/http/proxy_settings.rb +22 -0
- data/lib/stax_fatt_merchant_api/logging/configuration/api_logging_configuration.rb +186 -0
- data/lib/stax_fatt_merchant_api/logging/sdk_logger.rb +17 -0
- data/lib/stax_fatt_merchant_api/models/base_model.rb +110 -0
- data/lib/stax_fatt_merchant_api/models/delete_customer_bulk_request_body_json.rb +74 -0
- data/lib/stax_fatt_merchant_api/models/delete_item_bulk_request_body_json.rb +74 -0
- data/lib/stax_fatt_merchant_api/models/get_ephemeral_token_response200_json.rb +75 -0
- data/lib/stax_fatt_merchant_api/models/get_ephemeral_token_root_response200_json.rb +75 -0
- data/lib/stax_fatt_merchant_api/models/merge_customer_request_body_json.rb +76 -0
- data/lib/stax_fatt_merchant_api/models/post_cache_test_request_body_json.rb +74 -0
- data/lib/stax_fatt_merchant_api/models/post_capture_request_body_json.rb +75 -0
- data/lib/stax_fatt_merchant_api/models/post_credit_request_body_json.rb +96 -0
- data/lib/stax_fatt_merchant_api/models/post_dispute_file_request_body.rb +74 -0
- data/lib/stax_fatt_merchant_api/models/post_email_receipt_request_body_json.rb +75 -0
- data/lib/stax_fatt_merchant_api/models/post_file_request_body.rb +85 -0
- data/lib/stax_fatt_merchant_api/models/post_invoice_manual_payment_method.rb +52 -0
- data/lib/stax_fatt_merchant_api/models/post_invoice_manual_payment_request_body_json.rb +75 -0
- data/lib/stax_fatt_merchant_api/models/post_invoice_payment_request_body_json.rb +87 -0
- data/lib/stax_fatt_merchant_api/models/post_item_thumbnail_request_body.rb +74 -0
- data/lib/stax_fatt_merchant_api/models/post_payment_method_token_request_body_json.rb +85 -0
- data/lib/stax_fatt_merchant_api/models/post_receipt_method.rb +36 -0
- data/lib/stax_fatt_merchant_api/models/post_refund_request_body_json.rb +75 -0
- data/lib/stax_fatt_merchant_api/models/post_send_later_method.rb +36 -0
- data/lib/stax_fatt_merchant_api/models/post_send_later_request_body_json.rb +84 -0
- data/lib/stax_fatt_merchant_api/models/post_sms_receipt_request_body_json.rb +75 -0
- data/lib/stax_fatt_merchant_api/models/post_team_branding_request_body.rb +74 -0
- data/lib/stax_fatt_merchant_api/models/post_team_funding_account_file_request_body.rb +74 -0
- data/lib/stax_fatt_merchant_api/models/post_team_registration_file_request_body.rb +74 -0
- data/lib/stax_fatt_merchant_api/models/post_terminal_signature_request_body_json.rb +87 -0
- data/lib/stax_fatt_merchant_api/models/post_verification_request_body_json.rb +77 -0
- data/lib/stax_fatt_merchant_api/models/post_void_or_refund_request_body_json.rb +75 -0
- data/lib/stax_fatt_merchant_api/models/put_email_receipt_request_body_json.rb +75 -0
- data/lib/stax_fatt_merchant_api/models/put_notify_email_request_body_json.rb +75 -0
- data/lib/stax_fatt_merchant_api/models/put_publish_bulk_request_body_json.rb +74 -0
- data/lib/stax_fatt_merchant_api/models/put_receipt_bulk_method_method.rb +36 -0
- data/lib/stax_fatt_merchant_api/models/put_receipt_bulk_method_request_body_json.rb +77 -0
- data/lib/stax_fatt_merchant_api/models/put_receipt_bulk_request_body_json.rb +77 -0
- data/lib/stax_fatt_merchant_api/models/put_receipt_method.rb +36 -0
- data/lib/stax_fatt_merchant_api/models/put_receipt_request_body_json.rb +85 -0
- data/lib/stax_fatt_merchant_api/models/put_registration_sign_request_body_json.rb +76 -0
- data/lib/stax_fatt_merchant_api/models/put_restore_customer_bulk_request_body_json.rb +74 -0
- data/lib/stax_fatt_merchant_api/models/put_send_invoice_bulk_method.rb +36 -0
- data/lib/stax_fatt_merchant_api/models/put_send_invoice_bulk_request_body_json.rb +76 -0
- data/lib/stax_fatt_merchant_api/models/put_send_invoice_method.rb +36 -0
- data/lib/stax_fatt_merchant_api/models/put_set_default_merchant_request_body_json.rb +76 -0
- data/lib/stax_fatt_merchant_api/models/put_set_plan_request_body_json.rb +74 -0
- data/lib/stax_fatt_merchant_api/models/put_sms_receipt_request_body_json.rb +75 -0
- data/lib/stax_fatt_merchant_api/models/put_team_registration_file_request_body.rb +74 -0
- data/lib/stax_fatt_merchant_api/models/put_terminal_signature_request_body_json.rb +76 -0
- data/lib/stax_fatt_merchant_api/models/put_transaction_request_body_json.rb +74 -0
- data/lib/stax_fatt_merchant_api/models/put_unpublish_bulk_request_body_json.rb +74 -0
- data/lib/stax_fatt_merchant_api/models/put_verify_integration_token_request_body_json.rb +75 -0
- data/lib/stax_fatt_merchant_api/utilities/date_time_helper.rb +11 -0
- data/lib/stax_fatt_merchant_api/utilities/file_wrapper.rb +28 -0
- data/lib/stax_fatt_merchant_api.rb +154 -0
- metadata +182 -0
|
@@ -0,0 +1,467 @@
|
|
|
1
|
+
# stax_fatt_merchant_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC
|
|
4
|
+
# v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module StaxFattMerchantApi
|
|
7
|
+
# TransactionApi
|
|
8
|
+
class TransactionApi < BaseApi
|
|
9
|
+
# TODO: type endpoint description here
|
|
10
|
+
# @param [Integer] page Optional parameter: Page number for pagination
|
|
11
|
+
# @param [Integer] per_page Optional parameter: Number of items per page
|
|
12
|
+
# @param [String] keywords Optional parameter: TODO: type description here
|
|
13
|
+
# @param [Date] start_date Optional parameter: TODO: type description here
|
|
14
|
+
# @param [Date] end_date Optional parameter: TODO: type description here
|
|
15
|
+
# @param [String] type Optional parameter: TODO: type description here
|
|
16
|
+
# @param [TrueClass | FalseClass] success Optional parameter: TODO: type
|
|
17
|
+
# description here
|
|
18
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
19
|
+
def get_transactions(page: nil,
|
|
20
|
+
per_page: nil,
|
|
21
|
+
keywords: nil,
|
|
22
|
+
start_date: nil,
|
|
23
|
+
end_date: nil,
|
|
24
|
+
type: nil,
|
|
25
|
+
success: nil)
|
|
26
|
+
@api_call
|
|
27
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
28
|
+
'/transaction',
|
|
29
|
+
Server::DEFAULT)
|
|
30
|
+
.query_param(new_parameter(page, key: 'page'))
|
|
31
|
+
.query_param(new_parameter(per_page, key: 'per_page'))
|
|
32
|
+
.query_param(new_parameter(keywords, key: 'keywords'))
|
|
33
|
+
.query_param(new_parameter(start_date, key: 'startDate'))
|
|
34
|
+
.query_param(new_parameter(end_date, key: 'endDate'))
|
|
35
|
+
.query_param(new_parameter(type, key: 'type'))
|
|
36
|
+
.query_param(new_parameter(success, key: 'success'))
|
|
37
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
38
|
+
.auth(Single.new('bearerAuth')))
|
|
39
|
+
.response(new_response_handler
|
|
40
|
+
.deserializer(APIHelper.method(:json_deserialize))
|
|
41
|
+
.is_api_response(true))
|
|
42
|
+
.execute
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# TODO: type endpoint description here
|
|
46
|
+
# @param [Object] body Required parameter: TODO: type description here
|
|
47
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
48
|
+
def post_transaction(body)
|
|
49
|
+
@api_call
|
|
50
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
51
|
+
'/transaction',
|
|
52
|
+
Server::DEFAULT)
|
|
53
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
54
|
+
.body_param(new_parameter(body)
|
|
55
|
+
.is_required(true))
|
|
56
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
57
|
+
.body_serializer(APIHelper.method(:json_serialize))
|
|
58
|
+
.auth(Single.new('bearerAuth')))
|
|
59
|
+
.response(new_response_handler
|
|
60
|
+
.deserializer(APIHelper.method(:json_deserialize))
|
|
61
|
+
.is_api_response(true))
|
|
62
|
+
.execute
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# TODO: type endpoint description here
|
|
66
|
+
# @param [UUID | String] id Required parameter: TODO: type description
|
|
67
|
+
# here
|
|
68
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
69
|
+
def get_transaction(id)
|
|
70
|
+
@api_call
|
|
71
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
72
|
+
'/transaction/{id}',
|
|
73
|
+
Server::DEFAULT)
|
|
74
|
+
.template_param(new_parameter(id, key: 'id')
|
|
75
|
+
.is_required(true)
|
|
76
|
+
.should_encode(true))
|
|
77
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
78
|
+
.auth(Single.new('bearerAuth')))
|
|
79
|
+
.response(new_response_handler
|
|
80
|
+
.deserializer(APIHelper.method(:json_deserialize))
|
|
81
|
+
.is_api_response(true))
|
|
82
|
+
.execute
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# TODO: type endpoint description here
|
|
86
|
+
# @param [UUID | String] id Required parameter: TODO: type description
|
|
87
|
+
# here
|
|
88
|
+
# @param [PutTransactionRequestBodyJson] body Optional parameter: TODO: type
|
|
89
|
+
# description here
|
|
90
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
91
|
+
def put_transaction(id,
|
|
92
|
+
body: nil)
|
|
93
|
+
@api_call
|
|
94
|
+
.request(new_request_builder(HttpMethodEnum::PUT,
|
|
95
|
+
'/transaction/{id}',
|
|
96
|
+
Server::DEFAULT)
|
|
97
|
+
.template_param(new_parameter(id, key: 'id')
|
|
98
|
+
.is_required(true)
|
|
99
|
+
.should_encode(true))
|
|
100
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
101
|
+
.body_param(new_parameter(body))
|
|
102
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
103
|
+
.auth(Single.new('bearerAuth')))
|
|
104
|
+
.response(new_response_handler
|
|
105
|
+
.is_response_void(true)
|
|
106
|
+
.is_api_response(true))
|
|
107
|
+
.execute
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# TODO: type endpoint description here
|
|
111
|
+
# @param [UUID | String] id Required parameter: TODO: type description
|
|
112
|
+
# here
|
|
113
|
+
# @param [PostRefundRequestBodyJson] body Optional parameter: TODO: type
|
|
114
|
+
# description here
|
|
115
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
116
|
+
def post_refund(id,
|
|
117
|
+
body: nil)
|
|
118
|
+
@api_call
|
|
119
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
120
|
+
'/transaction/{id}/refund',
|
|
121
|
+
Server::DEFAULT)
|
|
122
|
+
.template_param(new_parameter(id, key: 'id')
|
|
123
|
+
.is_required(true)
|
|
124
|
+
.should_encode(true))
|
|
125
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
126
|
+
.body_param(new_parameter(body))
|
|
127
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
128
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
129
|
+
.auth(Single.new('bearerAuth')))
|
|
130
|
+
.response(new_response_handler
|
|
131
|
+
.deserializer(APIHelper.method(:json_deserialize))
|
|
132
|
+
.is_api_response(true))
|
|
133
|
+
.execute
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# TODO: type endpoint description here
|
|
137
|
+
# @param [UUID | String] id Required parameter: TODO: type description
|
|
138
|
+
# here
|
|
139
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
140
|
+
def post_void(id)
|
|
141
|
+
@api_call
|
|
142
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
143
|
+
'/transaction/{id}/void',
|
|
144
|
+
Server::DEFAULT)
|
|
145
|
+
.template_param(new_parameter(id, key: 'id')
|
|
146
|
+
.is_required(true)
|
|
147
|
+
.should_encode(true))
|
|
148
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
149
|
+
.auth(Single.new('bearerAuth')))
|
|
150
|
+
.response(new_response_handler
|
|
151
|
+
.deserializer(APIHelper.method(:json_deserialize))
|
|
152
|
+
.is_api_response(true))
|
|
153
|
+
.execute
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# TODO: type endpoint description here
|
|
157
|
+
# @param [UUID | String] id Required parameter: TODO: type description
|
|
158
|
+
# here
|
|
159
|
+
# @param [PostVoidOrRefundRequestBodyJson] body Optional parameter: TODO:
|
|
160
|
+
# type description here
|
|
161
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
162
|
+
def post_void_or_refund(id,
|
|
163
|
+
body: nil)
|
|
164
|
+
@api_call
|
|
165
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
166
|
+
'/transaction/{id}/void-or-refund',
|
|
167
|
+
Server::DEFAULT)
|
|
168
|
+
.template_param(new_parameter(id, key: 'id')
|
|
169
|
+
.is_required(true)
|
|
170
|
+
.should_encode(true))
|
|
171
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
172
|
+
.body_param(new_parameter(body))
|
|
173
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
174
|
+
.auth(Single.new('bearerAuth')))
|
|
175
|
+
.response(new_response_handler
|
|
176
|
+
.is_response_void(true)
|
|
177
|
+
.is_api_response(true))
|
|
178
|
+
.execute
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# TODO: type endpoint description here
|
|
182
|
+
# @param [UUID | String] id Required parameter: TODO: type description
|
|
183
|
+
# here
|
|
184
|
+
# @param [PostCaptureRequestBodyJson] body Optional parameter: TODO: type
|
|
185
|
+
# description here
|
|
186
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
187
|
+
def post_capture(id,
|
|
188
|
+
body: nil)
|
|
189
|
+
@api_call
|
|
190
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
191
|
+
'/transaction/{id}/capture',
|
|
192
|
+
Server::DEFAULT)
|
|
193
|
+
.template_param(new_parameter(id, key: 'id')
|
|
194
|
+
.is_required(true)
|
|
195
|
+
.should_encode(true))
|
|
196
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
197
|
+
.body_param(new_parameter(body))
|
|
198
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
199
|
+
.auth(Single.new('bearerAuth')))
|
|
200
|
+
.response(new_response_handler
|
|
201
|
+
.is_response_void(true)
|
|
202
|
+
.is_api_response(true))
|
|
203
|
+
.execute
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
# TODO: type endpoint description here
|
|
207
|
+
# @param [UUID | String] id Required parameter: TODO: type description
|
|
208
|
+
# here
|
|
209
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
210
|
+
def get_related_transaction(id)
|
|
211
|
+
@api_call
|
|
212
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
213
|
+
'/transaction/{id}/related',
|
|
214
|
+
Server::DEFAULT)
|
|
215
|
+
.template_param(new_parameter(id, key: 'id')
|
|
216
|
+
.is_required(true)
|
|
217
|
+
.should_encode(true))
|
|
218
|
+
.auth(Single.new('bearerAuth')))
|
|
219
|
+
.response(new_response_handler
|
|
220
|
+
.is_response_void(true)
|
|
221
|
+
.is_api_response(true))
|
|
222
|
+
.execute
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
# TODO: type endpoint description here
|
|
226
|
+
# @param [UUID | String] id Required parameter: TODO: type description
|
|
227
|
+
# here
|
|
228
|
+
# @param [PutReceiptMethod] method Required parameter: TODO: type
|
|
229
|
+
# description here
|
|
230
|
+
# @param [PutReceiptRequestBodyJson] body Optional parameter: TODO: type
|
|
231
|
+
# description here
|
|
232
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
233
|
+
def put_receipt(id,
|
|
234
|
+
method,
|
|
235
|
+
body: nil)
|
|
236
|
+
@api_call
|
|
237
|
+
.request(new_request_builder(HttpMethodEnum::PUT,
|
|
238
|
+
'/transaction/{id}/receipt/{method}',
|
|
239
|
+
Server::DEFAULT)
|
|
240
|
+
.template_param(new_parameter(id, key: 'id')
|
|
241
|
+
.is_required(true)
|
|
242
|
+
.should_encode(true))
|
|
243
|
+
.template_param(new_parameter(method, key: 'method')
|
|
244
|
+
.is_required(true)
|
|
245
|
+
.should_encode(true))
|
|
246
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
247
|
+
.body_param(new_parameter(body))
|
|
248
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
249
|
+
.auth(Single.new('bearerAuth')))
|
|
250
|
+
.response(new_response_handler
|
|
251
|
+
.is_response_void(true)
|
|
252
|
+
.is_api_response(true))
|
|
253
|
+
.execute
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
# TODO: type endpoint description here
|
|
257
|
+
# @param [UUID | String] id Required parameter: TODO: type description
|
|
258
|
+
# here
|
|
259
|
+
# @param [PostReceiptMethod] method Required parameter: TODO: type
|
|
260
|
+
# description here
|
|
261
|
+
# @param [Object] body Optional parameter: TODO: type description here
|
|
262
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
263
|
+
def post_receipt(id,
|
|
264
|
+
method,
|
|
265
|
+
body: nil)
|
|
266
|
+
@api_call
|
|
267
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
268
|
+
'/transaction/{id}/receipt/{method}',
|
|
269
|
+
Server::DEFAULT)
|
|
270
|
+
.template_param(new_parameter(id, key: 'id')
|
|
271
|
+
.is_required(true)
|
|
272
|
+
.should_encode(true))
|
|
273
|
+
.template_param(new_parameter(method, key: 'method')
|
|
274
|
+
.is_required(true)
|
|
275
|
+
.should_encode(true))
|
|
276
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
277
|
+
.body_param(new_parameter(body))
|
|
278
|
+
.body_serializer(APIHelper.method(:json_serialize))
|
|
279
|
+
.auth(Single.new('bearerAuth')))
|
|
280
|
+
.response(new_response_handler
|
|
281
|
+
.is_response_void(true)
|
|
282
|
+
.is_api_response(true))
|
|
283
|
+
.execute
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
# TODO: type endpoint description here
|
|
287
|
+
# @param [UUID | String] id Required parameter: TODO: type description
|
|
288
|
+
# here
|
|
289
|
+
# @param [PutEmailReceiptRequestBodyJson] body Optional parameter: TODO:
|
|
290
|
+
# type description here
|
|
291
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
292
|
+
def put_email_receipt(id,
|
|
293
|
+
body: nil)
|
|
294
|
+
@api_call
|
|
295
|
+
.request(new_request_builder(HttpMethodEnum::PUT,
|
|
296
|
+
'/transaction/{id}/receipt-email',
|
|
297
|
+
Server::DEFAULT)
|
|
298
|
+
.template_param(new_parameter(id, key: 'id')
|
|
299
|
+
.is_required(true)
|
|
300
|
+
.should_encode(true))
|
|
301
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
302
|
+
.body_param(new_parameter(body))
|
|
303
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
304
|
+
.auth(Single.new('bearerAuth')))
|
|
305
|
+
.response(new_response_handler
|
|
306
|
+
.is_response_void(true)
|
|
307
|
+
.is_api_response(true))
|
|
308
|
+
.execute
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
# TODO: type endpoint description here
|
|
312
|
+
# @param [UUID | String] id Required parameter: TODO: type description
|
|
313
|
+
# here
|
|
314
|
+
# @param [PostEmailReceiptRequestBodyJson] body Optional parameter: TODO:
|
|
315
|
+
# type description here
|
|
316
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
317
|
+
def post_email_receipt(id,
|
|
318
|
+
body: nil)
|
|
319
|
+
@api_call
|
|
320
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
321
|
+
'/transaction/{id}/receipt-email',
|
|
322
|
+
Server::DEFAULT)
|
|
323
|
+
.template_param(new_parameter(id, key: 'id')
|
|
324
|
+
.is_required(true)
|
|
325
|
+
.should_encode(true))
|
|
326
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
327
|
+
.body_param(new_parameter(body))
|
|
328
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
329
|
+
.auth(Single.new('bearerAuth')))
|
|
330
|
+
.response(new_response_handler
|
|
331
|
+
.is_response_void(true)
|
|
332
|
+
.is_api_response(true))
|
|
333
|
+
.execute
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
# TODO: type endpoint description here
|
|
337
|
+
# @param [UUID | String] id Required parameter: TODO: type description
|
|
338
|
+
# here
|
|
339
|
+
# @param [PutSmsReceiptRequestBodyJson] body Optional parameter: TODO: type
|
|
340
|
+
# description here
|
|
341
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
342
|
+
def put_sms_receipt(id,
|
|
343
|
+
body: nil)
|
|
344
|
+
@api_call
|
|
345
|
+
.request(new_request_builder(HttpMethodEnum::PUT,
|
|
346
|
+
'/transaction/{id}/receipt-sms',
|
|
347
|
+
Server::DEFAULT)
|
|
348
|
+
.template_param(new_parameter(id, key: 'id')
|
|
349
|
+
.is_required(true)
|
|
350
|
+
.should_encode(true))
|
|
351
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
352
|
+
.body_param(new_parameter(body))
|
|
353
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
354
|
+
.auth(Single.new('bearerAuth')))
|
|
355
|
+
.response(new_response_handler
|
|
356
|
+
.is_response_void(true)
|
|
357
|
+
.is_api_response(true))
|
|
358
|
+
.execute
|
|
359
|
+
end
|
|
360
|
+
|
|
361
|
+
# TODO: type endpoint description here
|
|
362
|
+
# @param [UUID | String] id Required parameter: TODO: type description
|
|
363
|
+
# here
|
|
364
|
+
# @param [PostSmsReceiptRequestBodyJson] body Optional parameter: TODO: type
|
|
365
|
+
# description here
|
|
366
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
367
|
+
def post_sms_receipt(id,
|
|
368
|
+
body: nil)
|
|
369
|
+
@api_call
|
|
370
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
371
|
+
'/transaction/{id}/receipt-sms',
|
|
372
|
+
Server::DEFAULT)
|
|
373
|
+
.template_param(new_parameter(id, key: 'id')
|
|
374
|
+
.is_required(true)
|
|
375
|
+
.should_encode(true))
|
|
376
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
377
|
+
.body_param(new_parameter(body))
|
|
378
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
379
|
+
.auth(Single.new('bearerAuth')))
|
|
380
|
+
.response(new_response_handler
|
|
381
|
+
.is_response_void(true)
|
|
382
|
+
.is_api_response(true))
|
|
383
|
+
.execute
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
# TODO: type endpoint description here
|
|
387
|
+
# @param [PutReceiptBulkMethodMethod] method Required parameter: TODO: type
|
|
388
|
+
# description here
|
|
389
|
+
# @param [PutReceiptBulkMethodRequestBodyJson] body Optional parameter:
|
|
390
|
+
# TODO: type description here
|
|
391
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
392
|
+
def put_receipt_bulk_method(method,
|
|
393
|
+
body: nil)
|
|
394
|
+
@api_call
|
|
395
|
+
.request(new_request_builder(HttpMethodEnum::PUT,
|
|
396
|
+
'/transaction/receipt/{method}/bulk',
|
|
397
|
+
Server::DEFAULT)
|
|
398
|
+
.template_param(new_parameter(method, key: 'method')
|
|
399
|
+
.is_required(true)
|
|
400
|
+
.should_encode(true))
|
|
401
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
402
|
+
.body_param(new_parameter(body))
|
|
403
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
404
|
+
.auth(Single.new('bearerAuth')))
|
|
405
|
+
.response(new_response_handler
|
|
406
|
+
.is_response_void(true)
|
|
407
|
+
.is_api_response(true))
|
|
408
|
+
.execute
|
|
409
|
+
end
|
|
410
|
+
|
|
411
|
+
# TODO: type endpoint description here
|
|
412
|
+
# @param [PutReceiptBulkRequestBodyJson] body Optional parameter: TODO: type
|
|
413
|
+
# description here
|
|
414
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
415
|
+
def put_receipt_bulk(body: nil)
|
|
416
|
+
@api_call
|
|
417
|
+
.request(new_request_builder(HttpMethodEnum::PUT,
|
|
418
|
+
'/transaction/receipt/bulk',
|
|
419
|
+
Server::DEFAULT)
|
|
420
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
421
|
+
.body_param(new_parameter(body))
|
|
422
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
423
|
+
.auth(Single.new('bearerAuth')))
|
|
424
|
+
.response(new_response_handler
|
|
425
|
+
.is_response_void(true)
|
|
426
|
+
.is_api_response(true))
|
|
427
|
+
.execute
|
|
428
|
+
end
|
|
429
|
+
|
|
430
|
+
# TODO: type endpoint description here
|
|
431
|
+
# @param [Object] body Optional parameter: TODO: type description here
|
|
432
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
433
|
+
def post_transaction_log(body: nil)
|
|
434
|
+
@api_call
|
|
435
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
436
|
+
'/transaction/log',
|
|
437
|
+
Server::DEFAULT)
|
|
438
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
439
|
+
.body_param(new_parameter(body))
|
|
440
|
+
.body_serializer(APIHelper.method(:json_serialize))
|
|
441
|
+
.auth(Single.new('bearerAuth')))
|
|
442
|
+
.response(new_response_handler
|
|
443
|
+
.is_response_void(true)
|
|
444
|
+
.is_api_response(true))
|
|
445
|
+
.execute
|
|
446
|
+
end
|
|
447
|
+
|
|
448
|
+
# TODO: type endpoint description here
|
|
449
|
+
# @param [UUID | String] id Required parameter: TODO: type description
|
|
450
|
+
# here
|
|
451
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
452
|
+
def get_transaction_funding(id)
|
|
453
|
+
@api_call
|
|
454
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
455
|
+
'/transaction/{id}/funding',
|
|
456
|
+
Server::DEFAULT)
|
|
457
|
+
.template_param(new_parameter(id, key: 'id')
|
|
458
|
+
.is_required(true)
|
|
459
|
+
.should_encode(true))
|
|
460
|
+
.auth(Single.new('bearerAuth')))
|
|
461
|
+
.response(new_response_handler
|
|
462
|
+
.is_response_void(true)
|
|
463
|
+
.is_api_response(true))
|
|
464
|
+
.execute
|
|
465
|
+
end
|
|
466
|
+
end
|
|
467
|
+
end
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
# stax_fatt_merchant_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC
|
|
4
|
+
# v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module StaxFattMerchantApi
|
|
7
|
+
# UserAdminApi
|
|
8
|
+
class UserAdminApi < BaseApi
|
|
9
|
+
# TODO: type endpoint description here
|
|
10
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
11
|
+
def admin_get_users
|
|
12
|
+
@api_call
|
|
13
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
14
|
+
'/user',
|
|
15
|
+
Server::DEFAULT)
|
|
16
|
+
.auth(Single.new('bearerAuth')))
|
|
17
|
+
.response(new_response_handler
|
|
18
|
+
.is_response_void(true)
|
|
19
|
+
.is_api_response(true))
|
|
20
|
+
.execute
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# TODO: type endpoint description here
|
|
24
|
+
# @param [Object] body Required parameter: TODO: type description here
|
|
25
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
26
|
+
def admin_post_user(body)
|
|
27
|
+
@api_call
|
|
28
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
29
|
+
'/user',
|
|
30
|
+
Server::DEFAULT)
|
|
31
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
32
|
+
.body_param(new_parameter(body)
|
|
33
|
+
.is_required(true))
|
|
34
|
+
.body_serializer(APIHelper.method(:json_serialize))
|
|
35
|
+
.auth(Single.new('bearerAuth')))
|
|
36
|
+
.response(new_response_handler
|
|
37
|
+
.is_response_void(true)
|
|
38
|
+
.is_api_response(true))
|
|
39
|
+
.execute
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# TODO: type endpoint description here
|
|
43
|
+
# @param [UUID | String] id Required parameter: TODO: type description
|
|
44
|
+
# here
|
|
45
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
46
|
+
def admin_get_user(id)
|
|
47
|
+
@api_call
|
|
48
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
49
|
+
'/user/{id}',
|
|
50
|
+
Server::DEFAULT)
|
|
51
|
+
.template_param(new_parameter(id, key: 'id')
|
|
52
|
+
.is_required(true)
|
|
53
|
+
.should_encode(true))
|
|
54
|
+
.auth(Single.new('bearerAuth')))
|
|
55
|
+
.response(new_response_handler
|
|
56
|
+
.is_response_void(true)
|
|
57
|
+
.is_api_response(true))
|
|
58
|
+
.execute
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# TODO: type endpoint description here
|
|
62
|
+
# @param [UUID | String] id Required parameter: TODO: type description
|
|
63
|
+
# here
|
|
64
|
+
# @param [Object] body Optional parameter: TODO: type description here
|
|
65
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
66
|
+
def admin_put_user(id,
|
|
67
|
+
body: nil)
|
|
68
|
+
@api_call
|
|
69
|
+
.request(new_request_builder(HttpMethodEnum::PUT,
|
|
70
|
+
'/user/{id}',
|
|
71
|
+
Server::DEFAULT)
|
|
72
|
+
.template_param(new_parameter(id, key: 'id')
|
|
73
|
+
.is_required(true)
|
|
74
|
+
.should_encode(true))
|
|
75
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
76
|
+
.body_param(new_parameter(body))
|
|
77
|
+
.body_serializer(APIHelper.method(:json_serialize))
|
|
78
|
+
.auth(Single.new('bearerAuth')))
|
|
79
|
+
.response(new_response_handler
|
|
80
|
+
.is_response_void(true)
|
|
81
|
+
.is_api_response(true))
|
|
82
|
+
.execute
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# TODO: type endpoint description here
|
|
86
|
+
# @param [UUID | String] id Required parameter: TODO: type description
|
|
87
|
+
# here
|
|
88
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
89
|
+
def admin_delete_user(id)
|
|
90
|
+
@api_call
|
|
91
|
+
.request(new_request_builder(HttpMethodEnum::DELETE,
|
|
92
|
+
'/user/{id}',
|
|
93
|
+
Server::DEFAULT)
|
|
94
|
+
.template_param(new_parameter(id, key: 'id')
|
|
95
|
+
.is_required(true)
|
|
96
|
+
.should_encode(true))
|
|
97
|
+
.auth(Single.new('bearerAuth')))
|
|
98
|
+
.response(new_response_handler
|
|
99
|
+
.is_response_void(true)
|
|
100
|
+
.is_api_response(true))
|
|
101
|
+
.execute
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# TODO: type endpoint description here
|
|
105
|
+
# @param [UUID | String] id Required parameter: TODO: type description
|
|
106
|
+
# here
|
|
107
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
108
|
+
def admin_put_resend_verification(id)
|
|
109
|
+
@api_call
|
|
110
|
+
.request(new_request_builder(HttpMethodEnum::PUT,
|
|
111
|
+
'/user/{id}/verify',
|
|
112
|
+
Server::DEFAULT)
|
|
113
|
+
.template_param(new_parameter(id, key: 'id')
|
|
114
|
+
.is_required(true)
|
|
115
|
+
.should_encode(true))
|
|
116
|
+
.auth(Single.new('bearerAuth')))
|
|
117
|
+
.response(new_response_handler
|
|
118
|
+
.is_response_void(true)
|
|
119
|
+
.is_api_response(true))
|
|
120
|
+
.execute
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# TODO: type endpoint description here
|
|
124
|
+
# @param [UUID | String] id Required parameter: TODO: type description
|
|
125
|
+
# here
|
|
126
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
127
|
+
def admin_restore_user(id)
|
|
128
|
+
@api_call
|
|
129
|
+
.request(new_request_builder(HttpMethodEnum::PUT,
|
|
130
|
+
'/user/{id}/restore',
|
|
131
|
+
Server::DEFAULT)
|
|
132
|
+
.template_param(new_parameter(id, key: 'id')
|
|
133
|
+
.is_required(true)
|
|
134
|
+
.should_encode(true))
|
|
135
|
+
.auth(Single.new('bearerAuth')))
|
|
136
|
+
.response(new_response_handler
|
|
137
|
+
.is_response_void(true)
|
|
138
|
+
.is_api_response(true))
|
|
139
|
+
.execute
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# TODO: type endpoint description here
|
|
143
|
+
# @param [UUID | String] id Required parameter: TODO: type description
|
|
144
|
+
# here
|
|
145
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
146
|
+
def admin_get_weekly_summaries(id)
|
|
147
|
+
@api_call
|
|
148
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
149
|
+
'/user/{id}/weeklysummary',
|
|
150
|
+
Server::DEFAULT)
|
|
151
|
+
.template_param(new_parameter(id, key: 'id')
|
|
152
|
+
.is_required(true)
|
|
153
|
+
.should_encode(true))
|
|
154
|
+
.auth(Single.new('bearerAuth')))
|
|
155
|
+
.response(new_response_handler
|
|
156
|
+
.is_response_void(true)
|
|
157
|
+
.is_api_response(true))
|
|
158
|
+
.execute
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# stax_fatt_merchant_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC
|
|
4
|
+
# v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module StaxFattMerchantApi
|
|
7
|
+
# VerifyApi
|
|
8
|
+
class VerifyApi < BaseApi
|
|
9
|
+
# TODO: type endpoint description here
|
|
10
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
11
|
+
def get_verifications
|
|
12
|
+
@api_call
|
|
13
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
14
|
+
'/verify',
|
|
15
|
+
Server::DEFAULT)
|
|
16
|
+
.auth(Single.new('bearerAuth')))
|
|
17
|
+
.response(new_response_handler
|
|
18
|
+
.is_response_void(true)
|
|
19
|
+
.is_api_response(true))
|
|
20
|
+
.execute
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# TODO: type endpoint description here
|
|
24
|
+
# @param [PostVerificationRequestBodyJson] body Optional parameter: TODO:
|
|
25
|
+
# type description here
|
|
26
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
27
|
+
def post_verification(body: nil)
|
|
28
|
+
@api_call
|
|
29
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
30
|
+
'/verify',
|
|
31
|
+
Server::DEFAULT)
|
|
32
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
33
|
+
.body_param(new_parameter(body))
|
|
34
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
35
|
+
.auth(Single.new('bearerAuth')))
|
|
36
|
+
.response(new_response_handler
|
|
37
|
+
.is_response_void(true)
|
|
38
|
+
.is_api_response(true))
|
|
39
|
+
.execute
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|