jamm 1.3.0 → 1.4.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 +1 -1
- data/lib/jamm/api/api/customer_api.rb +82 -52
- data/lib/jamm/api/api/healthcheck_api.rb +18 -15
- data/lib/jamm/api/api/payment_api.rb +113 -62
- data/lib/jamm/api/api/webhook_service_api.rb +41 -28
- data/lib/jamm/api/api_client.rb +74 -66
- data/lib/jamm/api/api_error.rb +16 -16
- data/lib/jamm/api/configuration.rb +42 -34
- data/lib/jamm/api/models/apiv1_error.rb +56 -44
- data/lib/jamm/api/models/apiv1_status.rb +57 -47
- data/lib/jamm/api/models/customer_service_update_customer_body.rb +107 -69
- data/lib/jamm/api/models/googlerpc_status.rb +61 -45
- data/lib/jamm/api/models/protobuf_any.rb +42 -35
- data/lib/jamm/api/models/v1_add_charge_request.rb +59 -44
- data/lib/jamm/api/models/v1_add_charge_response.rb +59 -44
- data/lib/jamm/api/models/v1_bank.rb +150 -95
- data/lib/jamm/api/models/v1_bank_assets.rb +60 -47
- data/lib/jamm/api/models/v1_bank_branch.rb +83 -56
- data/lib/jamm/api/models/v1_bank_information.rb +71 -51
- data/lib/jamm/api/models/v1_bank_quota.rb +99 -64
- data/lib/jamm/api/models/v1_bank_scheduled_maintenance_period.rb +75 -52
- data/lib/jamm/api/models/v1_buyer.rb +104 -76
- data/lib/jamm/api/models/v1_charge.rb +67 -52
- data/lib/jamm/api/models/v1_charge_message.rb +151 -93
- data/lib/jamm/api/models/v1_charge_message_status.rb +17 -18
- data/lib/jamm/api/models/v1_charge_result.rb +152 -93
- data/lib/jamm/api/models/v1_contract.rb +64 -52
- data/lib/jamm/api/models/v1_contract_message.rb +67 -48
- data/lib/jamm/api/models/v1_contract_status.rb +20 -21
- data/lib/jamm/api/models/v1_create_contract_with_charge_request.rb +59 -44
- data/lib/jamm/api/models/v1_create_contract_with_charge_response.rb +67 -48
- data/lib/jamm/api/models/v1_create_contract_without_charge_request.rb +51 -40
- data/lib/jamm/api/models/v1_create_contract_without_charge_response.rb +59 -44
- data/lib/jamm/api/models/v1_create_customer_request.rb +42 -35
- data/lib/jamm/api/models/v1_create_customer_response.rb +42 -35
- data/lib/jamm/api/models/v1_customer.rb +91 -60
- data/lib/jamm/api/models/v1_delete_customer_response.rb +42 -35
- data/lib/jamm/api/models/v1_deposit_type.rb +14 -15
- data/lib/jamm/api/models/v1_error_detail.rb +57 -44
- data/lib/jamm/api/models/v1_error_response.rb +46 -38
- data/lib/jamm/api/models/v1_error_type.rb +30 -31
- data/lib/jamm/api/models/v1_event_type.rb +20 -21
- data/lib/jamm/api/models/v1_get_bank_response.rb +42 -35
- data/lib/jamm/api/models/v1_get_branch_response.rb +42 -35
- data/lib/jamm/api/models/v1_get_branches_response.rb +44 -36
- data/lib/jamm/api/models/v1_get_charge_response.rb +51 -40
- data/lib/jamm/api/models/v1_get_charges_response.rb +60 -45
- data/lib/jamm/api/models/v1_get_contract_response.rb +51 -40
- data/lib/jamm/api/models/v1_get_customer_response.rb +42 -35
- data/lib/jamm/api/models/v1_get_major_banks_response.rb +59 -44
- data/lib/jamm/api/models/v1_initial_charge.rb +61 -48
- data/lib/jamm/api/models/v1_kyc_status.rb +16 -17
- data/lib/jamm/api/models/v1_merchant.rb +51 -40
- data/lib/jamm/api/models/v1_merchant_customer.rb +51 -40
- data/lib/jamm/api/models/v1_merchant_webhook_message.rb +75 -57
- data/lib/jamm/api/models/v1_message_response.rb +67 -48
- data/lib/jamm/api/models/v1_off_session_payment_request.rb +51 -40
- data/lib/jamm/api/models/v1_off_session_payment_response.rb +51 -40
- data/lib/jamm/api/models/v1_on_session_payment_data.rb +67 -48
- data/lib/jamm/api/models/v1_on_session_payment_error.rb +55 -45
- data/lib/jamm/api/models/v1_on_session_payment_error_code.rb +21 -22
- data/lib/jamm/api/models/v1_on_session_payment_request.rb +67 -48
- data/lib/jamm/api/models/v1_on_session_payment_response.rb +59 -44
- data/lib/jamm/api/models/v1_pagination.rb +51 -40
- data/lib/jamm/api/models/v1_payment_authorization_status.rb +14 -15
- data/lib/jamm/api/models/v1_payment_link.rb +57 -44
- data/lib/jamm/api/models/v1_ping_response.rb +42 -35
- data/lib/jamm/api/models/v1_search_banks_response.rb +44 -36
- data/lib/jamm/api/models/v1_search_branches_response.rb +44 -36
- data/lib/jamm/api/models/v1_update_customer_response.rb +42 -35
- data/lib/jamm/api/models/v1_url.rb +48 -39
- data/lib/jamm/api/models/v1_user_account_message.rb +67 -48
- data/lib/jamm/api/models/v1_withdraw_request.rb +51 -40
- data/lib/jamm/api/models/v1_withdraw_response.rb +51 -40
- data/lib/jamm/api/version.rb +11 -11
- data/lib/jamm/api.rb +10 -10
- data/lib/jamm/charge.rb +12 -0
- data/lib/jamm/deprecation.rb +13 -0
- data/lib/jamm/payment.rb +61 -0
- data/lib/jamm/version.rb +1 -1
- data/lib/jamm.rb +2 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0d2599b17737c3fe2b5bdf37af1aab1423d5c1d3a0ae39d6f2c54c082d6a371
|
4
|
+
data.tar.gz: 3e6cf4f39c8e8655a5a3292e8d79bc4d323e980f20727c87234948b9d2faf711
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 501cde052501b4d6f57ba18c208b47b610994453f83e3e1e90d83298006df9c264b06f222c84c8652483dd4e45d325841afd4e3c0dc1347fa4d343cc80aeb026
|
7
|
+
data.tar.gz: ff3ef79d49811048a3da02f56288734658eda732c23c9ad160e012099e14763dff64f8f0ec29221ee7bb797c18df2d9ba131129217d49313bea3834b4cee0f11
|
data/Gemfile.lock
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
#
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
1
|
+
=begin
|
2
|
+
#Jamm 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
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.9.0
|
10
|
+
|
11
|
+
=end
|
12
12
|
|
13
13
|
require 'cgi'
|
14
14
|
|
@@ -19,10 +19,9 @@ module Api
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
|
23
22
|
# Create customer
|
24
23
|
# Intended for pre-registering merchant customer into Jamm.
|
25
|
-
# @param body [CreateCustomerRequest]
|
24
|
+
# @param body [CreateCustomerRequest]
|
26
25
|
# @param [Hash] opts the optional parameters
|
27
26
|
# @return [CreateCustomerResponse]
|
28
27
|
def create(body, opts = {})
|
@@ -32,14 +31,17 @@ module Api
|
|
32
31
|
|
33
32
|
# Create customer
|
34
33
|
# Intended for pre-registering merchant customer into Jamm.
|
35
|
-
# @param body [CreateCustomerRequest]
|
34
|
+
# @param body [CreateCustomerRequest]
|
36
35
|
# @param [Hash] opts the optional parameters
|
37
36
|
# @return [Array<(CreateCustomerResponse, Integer, Hash)>] CreateCustomerResponse data, response status code and response headers
|
38
37
|
def create_with_http_info(body, opts = {})
|
39
|
-
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: CustomerApi.create ...'
|
40
|
+
end
|
40
41
|
# verify the required parameter 'body' is set
|
41
|
-
|
42
|
-
|
42
|
+
if @api_client.config.client_side_validation && body.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling CustomerApi.create"
|
44
|
+
end
|
43
45
|
# resource path
|
44
46
|
local_var_path = '/v1/customers'
|
45
47
|
|
@@ -52,7 +54,9 @@ module Api
|
|
52
54
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
53
55
|
# HTTP header 'Content-Type'
|
54
56
|
content_type = @api_client.select_header_content_type(['application/json'])
|
55
|
-
|
57
|
+
if !content_type.nil?
|
58
|
+
header_params['Content-Type'] = content_type
|
59
|
+
end
|
56
60
|
|
57
61
|
# form parameters
|
58
62
|
form_params = opts[:form_params] || {}
|
@@ -77,13 +81,15 @@ module Api
|
|
77
81
|
)
|
78
82
|
|
79
83
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
80
|
-
|
81
|
-
|
84
|
+
if @api_client.config.debugging
|
85
|
+
@api_client.config.logger.debug "API called: CustomerApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
86
|
+
end
|
87
|
+
return data, status_code, headers
|
82
88
|
end
|
83
89
|
|
84
90
|
# Delete customer
|
85
91
|
# Delete customer from Jamm.
|
86
|
-
# @param customer [String]
|
92
|
+
# @param customer [String]
|
87
93
|
# @param [Hash] opts the optional parameters
|
88
94
|
# @return [DeleteCustomerResponse]
|
89
95
|
def delete(customer, opts = {})
|
@@ -93,16 +99,19 @@ module Api
|
|
93
99
|
|
94
100
|
# Delete customer
|
95
101
|
# Delete customer from Jamm.
|
96
|
-
# @param customer [String]
|
102
|
+
# @param customer [String]
|
97
103
|
# @param [Hash] opts the optional parameters
|
98
104
|
# @return [Array<(DeleteCustomerResponse, Integer, Hash)>] DeleteCustomerResponse data, response status code and response headers
|
99
105
|
def delete_with_http_info(customer, opts = {})
|
100
|
-
|
106
|
+
if @api_client.config.debugging
|
107
|
+
@api_client.config.logger.debug 'Calling API: CustomerApi.delete ...'
|
108
|
+
end
|
101
109
|
# verify the required parameter 'customer' is set
|
102
|
-
|
103
|
-
|
110
|
+
if @api_client.config.client_side_validation && customer.nil?
|
111
|
+
fail ArgumentError, "Missing the required parameter 'customer' when calling CustomerApi.delete"
|
112
|
+
end
|
104
113
|
# resource path
|
105
|
-
local_var_path = '/v1/customers/{customer}'.sub('{customer}', CGI.escape(customer.to_s))
|
114
|
+
local_var_path = '/v1/customers/{customer}'.sub('{' + 'customer' + '}', CGI.escape(customer.to_s))
|
106
115
|
|
107
116
|
# query parameters
|
108
117
|
query_params = opts[:query_params] || {}
|
@@ -135,13 +144,15 @@ module Api
|
|
135
144
|
)
|
136
145
|
|
137
146
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
138
|
-
|
139
|
-
|
147
|
+
if @api_client.config.debugging
|
148
|
+
@api_client.config.logger.debug "API called: CustomerApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
149
|
+
end
|
150
|
+
return data, status_code, headers
|
140
151
|
end
|
141
152
|
|
142
153
|
# Get customer
|
143
154
|
# Retrieve a merchant customer from Jamm. The merchant customer must be registered in Jamm.
|
144
|
-
# @param customer [String]
|
155
|
+
# @param customer [String]
|
145
156
|
# @param [Hash] opts the optional parameters
|
146
157
|
# @return [GetCustomerResponse]
|
147
158
|
def get(customer, opts = {})
|
@@ -151,16 +162,19 @@ module Api
|
|
151
162
|
|
152
163
|
# Get customer
|
153
164
|
# Retrieve a merchant customer from Jamm. The merchant customer must be registered in Jamm.
|
154
|
-
# @param customer [String]
|
165
|
+
# @param customer [String]
|
155
166
|
# @param [Hash] opts the optional parameters
|
156
167
|
# @return [Array<(GetCustomerResponse, Integer, Hash)>] GetCustomerResponse data, response status code and response headers
|
157
168
|
def get_with_http_info(customer, opts = {})
|
158
|
-
|
169
|
+
if @api_client.config.debugging
|
170
|
+
@api_client.config.logger.debug 'Calling API: CustomerApi.get ...'
|
171
|
+
end
|
159
172
|
# verify the required parameter 'customer' is set
|
160
|
-
|
161
|
-
|
173
|
+
if @api_client.config.client_side_validation && customer.nil?
|
174
|
+
fail ArgumentError, "Missing the required parameter 'customer' when calling CustomerApi.get"
|
175
|
+
end
|
162
176
|
# resource path
|
163
|
-
local_var_path = '/v1/customers/{customer}'.sub('{customer}', CGI.escape(customer.to_s))
|
177
|
+
local_var_path = '/v1/customers/{customer}'.sub('{' + 'customer' + '}', CGI.escape(customer.to_s))
|
164
178
|
|
165
179
|
# query parameters
|
166
180
|
query_params = opts[:query_params] || {}
|
@@ -193,8 +207,10 @@ module Api
|
|
193
207
|
)
|
194
208
|
|
195
209
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
196
|
-
|
197
|
-
|
210
|
+
if @api_client.config.debugging
|
211
|
+
@api_client.config.logger.debug "API called: CustomerApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
212
|
+
end
|
213
|
+
return data, status_code, headers
|
198
214
|
end
|
199
215
|
|
200
216
|
# Get a contract belongs to the customer
|
@@ -213,12 +229,15 @@ module Api
|
|
213
229
|
# @param [Hash] opts the optional parameters
|
214
230
|
# @return [Array<(GetContractResponse, Integer, Hash)>] GetContractResponse data, response status code and response headers
|
215
231
|
def get_contract_with_http_info(customer, opts = {})
|
216
|
-
|
232
|
+
if @api_client.config.debugging
|
233
|
+
@api_client.config.logger.debug 'Calling API: CustomerApi.get_contract ...'
|
234
|
+
end
|
217
235
|
# verify the required parameter 'customer' is set
|
218
|
-
|
219
|
-
|
236
|
+
if @api_client.config.client_side_validation && customer.nil?
|
237
|
+
fail ArgumentError, "Missing the required parameter 'customer' when calling CustomerApi.get_contract"
|
238
|
+
end
|
220
239
|
# resource path
|
221
|
-
local_var_path = '/v1/customers/{customer}/contract'.sub('{customer}', CGI.escape(customer.to_s))
|
240
|
+
local_var_path = '/v1/customers/{customer}/contract'.sub('{' + 'customer' + '}', CGI.escape(customer.to_s))
|
222
241
|
|
223
242
|
# query parameters
|
224
243
|
query_params = opts[:query_params] || {}
|
@@ -251,14 +270,16 @@ module Api
|
|
251
270
|
)
|
252
271
|
|
253
272
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
254
|
-
|
255
|
-
|
273
|
+
if @api_client.config.debugging
|
274
|
+
@api_client.config.logger.debug "API called: CustomerApi#get_contract\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
275
|
+
end
|
276
|
+
return data, status_code, headers
|
256
277
|
end
|
257
278
|
|
258
279
|
# Update customer
|
259
280
|
# Update customer metadata when they updated their information in merchant e-commerce store.
|
260
281
|
# @param customer [String] Immutable
|
261
|
-
# @param body [CustomerServiceUpdateCustomerBody]
|
282
|
+
# @param body [CustomerServiceUpdateCustomerBody]
|
262
283
|
# @param [Hash] opts the optional parameters
|
263
284
|
# @return [UpdateCustomerResponse]
|
264
285
|
def update(customer, body, opts = {})
|
@@ -269,18 +290,23 @@ module Api
|
|
269
290
|
# Update customer
|
270
291
|
# Update customer metadata when they updated their information in merchant e-commerce store.
|
271
292
|
# @param customer [String] Immutable
|
272
|
-
# @param body [CustomerServiceUpdateCustomerBody]
|
293
|
+
# @param body [CustomerServiceUpdateCustomerBody]
|
273
294
|
# @param [Hash] opts the optional parameters
|
274
295
|
# @return [Array<(UpdateCustomerResponse, Integer, Hash)>] UpdateCustomerResponse data, response status code and response headers
|
275
296
|
def update_with_http_info(customer, body, opts = {})
|
276
|
-
|
297
|
+
if @api_client.config.debugging
|
298
|
+
@api_client.config.logger.debug 'Calling API: CustomerApi.update ...'
|
299
|
+
end
|
277
300
|
# verify the required parameter 'customer' is set
|
278
|
-
|
301
|
+
if @api_client.config.client_side_validation && customer.nil?
|
302
|
+
fail ArgumentError, "Missing the required parameter 'customer' when calling CustomerApi.update"
|
303
|
+
end
|
279
304
|
# verify the required parameter 'body' is set
|
280
|
-
|
281
|
-
|
305
|
+
if @api_client.config.client_side_validation && body.nil?
|
306
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling CustomerApi.update"
|
307
|
+
end
|
282
308
|
# resource path
|
283
|
-
local_var_path = '/v1/customers/{customer}'.sub('{customer}', CGI.escape(customer.to_s))
|
309
|
+
local_var_path = '/v1/customers/{customer}'.sub('{' + 'customer' + '}', CGI.escape(customer.to_s))
|
284
310
|
|
285
311
|
# query parameters
|
286
312
|
query_params = opts[:query_params] || {}
|
@@ -291,7 +317,9 @@ module Api
|
|
291
317
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
292
318
|
# HTTP header 'Content-Type'
|
293
319
|
content_type = @api_client.select_header_content_type(['application/json'])
|
294
|
-
|
320
|
+
if !content_type.nil?
|
321
|
+
header_params['Content-Type'] = content_type
|
322
|
+
end
|
295
323
|
|
296
324
|
# form parameters
|
297
325
|
form_params = opts[:form_params] || {}
|
@@ -316,8 +344,10 @@ module Api
|
|
316
344
|
)
|
317
345
|
|
318
346
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
319
|
-
|
320
|
-
|
347
|
+
if @api_client.config.debugging
|
348
|
+
@api_client.config.logger.debug "API called: CustomerApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
349
|
+
end
|
350
|
+
return data, status_code, headers
|
321
351
|
end
|
322
352
|
end
|
323
353
|
end
|
@@ -1,14 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
#
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
1
|
+
=begin
|
2
|
+
#Jamm 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
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.9.0
|
10
|
+
|
11
|
+
=end
|
12
12
|
|
13
13
|
require 'cgi'
|
14
14
|
|
@@ -19,7 +19,6 @@ module Api
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
|
23
22
|
# Ping Jamm server to check connection
|
24
23
|
# Ping Jamm server to check connection
|
25
24
|
# @param [Hash] opts the optional parameters
|
@@ -34,7 +33,9 @@ module Api
|
|
34
33
|
# @param [Hash] opts the optional parameters
|
35
34
|
# @return [Array<(PingResponse, Integer, Hash)>] PingResponse data, response status code and response headers
|
36
35
|
def ping_with_http_info(opts = {})
|
37
|
-
|
36
|
+
if @api_client.config.debugging
|
37
|
+
@api_client.config.logger.debug 'Calling API: HealthcheckApi.ping ...'
|
38
|
+
end
|
38
39
|
# resource path
|
39
40
|
local_var_path = '/v1/healthcheck'
|
40
41
|
|
@@ -69,8 +70,10 @@ module Api
|
|
69
70
|
)
|
70
71
|
|
71
72
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
72
|
-
|
73
|
-
|
73
|
+
if @api_client.config.debugging
|
74
|
+
@api_client.config.logger.debug "API called: HealthcheckApi#ping\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
75
|
+
end
|
76
|
+
return data, status_code, headers
|
74
77
|
end
|
75
78
|
end
|
76
79
|
end
|