billabear 1.0.0 → 1.1.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/README.md +509 -364
- data/billabear.gemspec +4 -4
- data/docs/Address.md +1 -1
- data/docs/BillingAdmin.md +1 -1
- data/docs/CheckoutApi.md +6 -6
- data/docs/CheckoutBody.md +1 -1
- data/docs/CheckoutItems.md +1 -1
- data/docs/CheckoutSubscriptions.md +1 -1
- data/docs/Cost.md +8 -0
- data/docs/Customer.md +3 -1
- data/docs/CustomerIdUasgelimitBody.md +8 -0
- data/docs/CustomersApi.md +319 -101
- data/docs/Error.md +1 -1
- data/docs/Event.md +11 -0
- data/docs/Feature.md +1 -1
- data/docs/FrontendToken.md +1 -1
- data/docs/InlineResponse200.md +1 -1
- data/docs/InlineResponse2001.md +3 -4
- data/docs/InlineResponse20010.md +2 -2
- data/docs/InlineResponse20011.md +4 -2
- data/docs/InlineResponse20012.md +4 -3
- data/docs/InlineResponse20013.md +7 -0
- data/docs/InlineResponse20014.md +8 -0
- data/docs/InlineResponse2002.md +4 -4
- data/docs/InlineResponse2003.md +2 -2
- data/docs/InlineResponse2004.md +2 -2
- data/docs/InlineResponse2005.md +2 -2
- data/docs/InlineResponse2006.md +2 -2
- data/docs/InlineResponse2007.md +2 -2
- data/docs/InlineResponse2008.md +2 -2
- data/docs/InlineResponse2009.md +2 -2
- data/docs/{InlineResponse2007Data.md → InlineResponse2009Data.md} +2 -2
- data/docs/{InlineResponse2007Receipts.md → InlineResponse2009Receipts.md} +1 -1
- data/docs/InlineResponse201.md +1 -1
- data/docs/InlineResponse201Lines.md +1 -1
- data/docs/InlineResponse400.md +1 -1
- data/docs/Invoice.md +1 -1
- data/docs/InvoiceLines.md +1 -1
- data/docs/InvoicesApi.md +17 -17
- data/docs/IssueRefundPayment.md +1 -1
- data/docs/Limit.md +1 -1
- data/docs/Metric.md +12 -0
- data/docs/MetricCost.md +10 -0
- data/docs/MetricFilter.md +11 -0
- data/docs/PaymentDetails.md +1 -1
- data/docs/PaymentDetailsApi.md +48 -52
- data/docs/PaymentsApi.md +41 -42
- data/docs/Price.md +2 -1
- data/docs/PricesApi.md +15 -16
- data/docs/Product.md +1 -1
- data/docs/ProductTaxType.md +1 -1
- data/docs/ProductsApi.md +23 -24
- data/docs/ReceiptApi.md +5 -5
- data/docs/Refund.md +1 -1
- data/docs/RefundsApi.md +17 -17
- data/docs/SeatsAddBody.md +1 -1
- data/docs/SeatsRemoveBody.md +1 -1
- data/docs/Subscription.md +2 -1
- data/docs/SubscriptionIdCancelBody.md +1 -1
- data/docs/SubscriptionIdExtendBody.md +1 -1
- data/docs/SubscriptionIdPlanBody.md +2 -2
- data/docs/SubscriptionIdPriceBody.md +1 -1
- data/docs/SubscriptionPlan.md +1 -1
- data/docs/SubscriptionStartBody.md +2 -1
- data/docs/SubscriptionTrialBody.md +1 -1
- data/docs/SubscriptionsApi.md +78 -79
- data/docs/UsageApi.md +279 -0
- data/docs/UsageLimit.md +9 -0
- data/docs/VoucherCode.md +1 -1
- data/git_push.sh +2 -2
- data/lib/{swagger_client → billabear}/api/checkout_api.rb +3 -3
- data/lib/{swagger_client → billabear}/api/customers_api.rb +284 -45
- data/lib/{swagger_client → billabear}/api/invoices_api.rb +9 -9
- data/lib/{swagger_client → billabear}/api/payment_details_api.rb +26 -26
- data/lib/{swagger_client → billabear}/api/payments_api.rb +20 -20
- data/lib/{swagger_client → billabear}/api/prices_api.rb +11 -11
- data/lib/{swagger_client → billabear}/api/products_api.rb +11 -11
- data/lib/{swagger_client → billabear}/api/receipt_api.rb +3 -3
- data/lib/{swagger_client → billabear}/api/refunds_api.rb +9 -9
- data/lib/{swagger_client → billabear}/api/subscriptions_api.rb +29 -29
- data/lib/billabear/api/usage_api.rb +314 -0
- data/lib/{swagger_client → billabear}/api_client.rb +4 -4
- data/lib/{swagger_client → billabear}/api_error.rb +3 -3
- data/lib/{swagger_client → billabear}/configuration.rb +3 -3
- data/lib/{swagger_client → billabear}/models/address.rb +6 -6
- data/lib/{swagger_client → billabear}/models/billing_admin.rb +6 -6
- data/lib/{swagger_client → billabear}/models/checkout_body.rb +6 -6
- data/lib/{swagger_client → billabear}/models/checkout_items.rb +6 -6
- data/lib/{swagger_client → billabear}/models/checkout_subscriptions.rb +6 -6
- data/lib/billabear/models/cost.rb +215 -0
- data/lib/{swagger_client → billabear}/models/customer.rb +45 -11
- data/lib/billabear/models/customer_id_uasgelimit_body.rb +259 -0
- data/lib/{swagger_client → billabear}/models/error.rb +6 -6
- data/lib/billabear/models/event.rb +262 -0
- data/lib/{swagger_client → billabear}/models/feature.rb +6 -6
- data/lib/{swagger_client → billabear}/models/frontend_token.rb +6 -6
- data/lib/{swagger_client → billabear}/models/inline_response_200.rb +6 -6
- data/lib/billabear/models/inline_response_200_1.rb +217 -0
- data/lib/{swagger_client → billabear}/models/inline_response_200_10.rb +6 -6
- data/lib/{swagger_client/models/inline_response_200_2.rb → billabear/models/inline_response_200_11.rb} +7 -7
- data/lib/billabear/models/inline_response_200_12.rb +226 -0
- data/lib/{swagger_client/models/inline_response_200_11.rb → billabear/models/inline_response_200_13.rb} +7 -7
- data/lib/{swagger_client/models/inline_response_200_12.rb → billabear/models/inline_response_200_14.rb} +7 -7
- data/lib/{swagger_client/models/inline_response_200_1.rb → billabear/models/inline_response_200_2.rb} +7 -7
- data/lib/{swagger_client → billabear}/models/inline_response_200_3.rb +6 -6
- data/lib/{swagger_client → billabear}/models/inline_response_200_4.rb +6 -6
- data/lib/{swagger_client → billabear}/models/inline_response_200_5.rb +6 -6
- data/lib/{swagger_client → billabear}/models/inline_response_200_6.rb +6 -6
- data/lib/{swagger_client → billabear}/models/inline_response_200_7.rb +6 -6
- data/lib/{swagger_client → billabear}/models/inline_response_200_8.rb +6 -6
- data/lib/{swagger_client → billabear}/models/inline_response_200_9.rb +6 -6
- data/lib/{swagger_client/models/inline_response_200_7_data.rb → billabear/models/inline_response_200_9_data.rb} +7 -7
- data/lib/{swagger_client/models/inline_response_200_7_receipts.rb → billabear/models/inline_response_200_9_receipts.rb} +7 -7
- data/lib/{swagger_client → billabear}/models/inline_response_201.rb +6 -6
- data/lib/{swagger_client → billabear}/models/inline_response_201_lines.rb +6 -6
- data/lib/{swagger_client → billabear}/models/inline_response_400.rb +6 -6
- data/lib/{swagger_client → billabear}/models/invoice.rb +6 -6
- data/lib/{swagger_client → billabear}/models/invoice_lines.rb +6 -6
- data/lib/{swagger_client → billabear}/models/issue_refund_payment.rb +6 -6
- data/lib/{swagger_client → billabear}/models/limit.rb +6 -6
- data/lib/billabear/models/metric.rb +288 -0
- data/lib/billabear/models/metric_cost.rb +234 -0
- data/lib/billabear/models/metric_filter.rb +276 -0
- data/lib/{swagger_client → billabear}/models/payment_details.rb +6 -6
- data/lib/{swagger_client → billabear}/models/price.rb +20 -11
- data/lib/{swagger_client → billabear}/models/product.rb +6 -6
- data/lib/{swagger_client → billabear}/models/product_tax_type.rb +6 -6
- data/lib/{swagger_client → billabear}/models/refund.rb +6 -6
- data/lib/{swagger_client → billabear}/models/seats_add_body.rb +6 -6
- data/lib/{swagger_client → billabear}/models/seats_remove_body.rb +6 -6
- data/lib/{swagger_client → billabear}/models/subscription.rb +16 -7
- data/lib/{swagger_client → billabear}/models/subscription_id_cancel_body.rb +6 -6
- data/lib/{swagger_client → billabear}/models/subscription_id_extend_body.rb +6 -6
- data/lib/{swagger_client → billabear}/models/subscription_id_plan_body.rb +11 -6
- data/lib/{swagger_client → billabear}/models/subscription_id_price_body.rb +6 -6
- data/lib/{swagger_client → billabear}/models/subscription_plan.rb +6 -6
- data/lib/{swagger_client → billabear}/models/subscription_start_body.rb +20 -10
- data/lib/{swagger_client → billabear}/models/subscription_trial_body.rb +6 -6
- data/lib/billabear/models/usage_limit.rb +258 -0
- data/lib/{swagger_client → billabear}/models/voucher_code.rb +6 -6
- data/lib/{swagger_client → billabear}/version.rb +4 -4
- data/lib/billabear.rb +105 -0
- data/spec/api/checkout_api_spec.rb +5 -5
- data/spec/api/customers_api_spec.rb +68 -17
- data/spec/api/invoices_api_spec.rb +7 -7
- data/spec/api/payment_details_api_spec.rb +10 -10
- data/spec/api/payments_api_spec.rb +10 -10
- data/spec/api/prices_api_spec.rb +7 -7
- data/spec/api/products_api_spec.rb +7 -7
- data/spec/api/receipt_api_spec.rb +5 -5
- data/spec/api/refunds_api_spec.rb +7 -7
- data/spec/api/subscriptions_api_spec.rb +13 -13
- data/spec/api/usage_api_spec.rb +96 -0
- data/spec/api_client_spec.rb +31 -31
- data/spec/configuration_spec.rb +5 -5
- data/spec/models/address_spec.rb +5 -5
- data/spec/models/billing_admin_spec.rb +5 -5
- data/spec/models/checkout_body_spec.rb +5 -5
- data/spec/models/checkout_items_spec.rb +5 -5
- data/spec/models/checkout_subscriptions_spec.rb +5 -5
- data/spec/models/cost_spec.rb +46 -0
- data/spec/models/customer_id_uasgelimit_body_spec.rb +50 -0
- data/spec/models/customer_spec.rb +21 -5
- data/spec/models/error_spec.rb +5 -5
- data/spec/models/event_spec.rb +64 -0
- data/spec/models/feature_spec.rb +5 -5
- data/spec/models/frontend_token_spec.rb +5 -5
- data/spec/models/inline_response_200_10_spec.rb +5 -5
- data/spec/models/inline_response_200_11_spec.rb +18 -6
- data/spec/models/inline_response_200_12_spec.rb +13 -11
- data/spec/models/inline_response_200_13_spec.rb +40 -0
- data/spec/models/inline_response_200_14_spec.rb +50 -0
- data/spec/models/inline_response_200_1_spec.rb +7 -13
- data/spec/models/inline_response_200_2_spec.rb +8 -8
- data/spec/models/inline_response_200_3_spec.rb +5 -5
- data/spec/models/inline_response_200_4_spec.rb +5 -5
- data/spec/models/inline_response_200_5_spec.rb +5 -5
- data/spec/models/inline_response_200_6_spec.rb +5 -5
- data/spec/models/inline_response_200_7_spec.rb +5 -5
- data/spec/models/inline_response_200_8_spec.rb +5 -5
- data/spec/models/{inline_response_200_7_data_spec.rb → inline_response_200_9_data_spec.rb} +8 -8
- data/spec/models/{inline_response_200_7_receipts_spec.rb → inline_response_200_9_receipts_spec.rb} +8 -8
- data/spec/models/inline_response_200_9_spec.rb +5 -5
- data/spec/models/inline_response_200_spec.rb +5 -5
- data/spec/models/inline_response_201_lines_spec.rb +5 -5
- data/spec/models/inline_response_201_spec.rb +5 -5
- data/spec/models/inline_response_400_spec.rb +5 -5
- data/spec/models/invoice_lines_spec.rb +5 -5
- data/spec/models/invoice_spec.rb +5 -5
- data/spec/models/issue_refund_payment_spec.rb +5 -5
- data/spec/models/limit_spec.rb +5 -5
- data/spec/models/metric_cost_spec.rb +58 -0
- data/spec/models/metric_filter_spec.rb +68 -0
- data/spec/models/metric_spec.rb +74 -0
- data/spec/models/payment_details_spec.rb +5 -5
- data/spec/models/price_spec.rb +11 -5
- data/spec/models/product_spec.rb +5 -5
- data/spec/models/product_tax_type_spec.rb +5 -5
- data/spec/models/refund_spec.rb +5 -5
- data/spec/models/seats_add_body_spec.rb +5 -5
- data/spec/models/seats_remove_body_spec.rb +5 -5
- data/spec/models/subscription_id_cancel_body_spec.rb +5 -5
- data/spec/models/subscription_id_extend_body_spec.rb +5 -5
- data/spec/models/subscription_id_plan_body_spec.rb +5 -5
- data/spec/models/subscription_id_price_body_spec.rb +5 -5
- data/spec/models/subscription_plan_spec.rb +5 -5
- data/spec/models/subscription_spec.rb +11 -5
- data/spec/models/subscription_start_body_spec.rb +11 -5
- data/spec/models/subscription_trial_body_spec.rb +5 -5
- data/spec/models/usage_limit_spec.rb +56 -0
- data/spec/models/voucher_code_spec.rb +5 -5
- data/spec/spec_helper.rb +3 -3
- metadata +110 -70
- data/lib/swagger_client.rb +0 -95
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
#The REST API provided by BillaBear
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.
|
|
6
|
+
OpenAPI spec version: 1.1.0
|
|
7
7
|
Contact: support@billabear.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 3.0.
|
|
9
|
+
Swagger Codegen version: 3.0.66
|
|
10
10
|
=end
|
|
11
11
|
|
|
12
|
-
module
|
|
12
|
+
module Billabear
|
|
13
13
|
class CustomersApi
|
|
14
14
|
attr_accessor :api_client
|
|
15
15
|
|
|
@@ -21,7 +21,7 @@ module SwaggerClient
|
|
|
21
21
|
# @param body
|
|
22
22
|
# @param subscription_id The id of the subscription to retrieve
|
|
23
23
|
# @param [Hash] opts the optional parameters
|
|
24
|
-
# @return [
|
|
24
|
+
# @return [InlineResponse20013]
|
|
25
25
|
def add_seats_subscriptions(body, subscription_id, opts = {})
|
|
26
26
|
data, _status_code, _headers = add_seats_subscriptions_with_http_info(body, subscription_id, opts)
|
|
27
27
|
data
|
|
@@ -32,7 +32,7 @@ module SwaggerClient
|
|
|
32
32
|
# @param body
|
|
33
33
|
# @param subscription_id The id of the subscription to retrieve
|
|
34
34
|
# @param [Hash] opts the optional parameters
|
|
35
|
-
# @return [Array<(
|
|
35
|
+
# @return [Array<(InlineResponse20013, Integer, Hash)>] InlineResponse20013 data, response status code and response headers
|
|
36
36
|
def add_seats_subscriptions_with_http_info(body, subscription_id, opts = {})
|
|
37
37
|
if @api_client.config.debugging
|
|
38
38
|
@api_client.config.logger.debug 'Calling API: CustomersApi.add_seats_subscriptions ...'
|
|
@@ -64,7 +64,7 @@ module SwaggerClient
|
|
|
64
64
|
# http body (model)
|
|
65
65
|
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
66
66
|
|
|
67
|
-
return_type = opts[:return_type] || '
|
|
67
|
+
return_type = opts[:return_type] || 'InlineResponse20013'
|
|
68
68
|
|
|
69
69
|
auth_names = opts[:auth_names] || ['ApiKeyAuth']
|
|
70
70
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
@@ -85,10 +85,10 @@ module SwaggerClient
|
|
|
85
85
|
# @param body
|
|
86
86
|
# @param customer_id The id of the customer to retrieve
|
|
87
87
|
# @param [Hash] opts the optional parameters
|
|
88
|
-
# @return [
|
|
88
|
+
# @return [nil]
|
|
89
89
|
def apply_voucher_to_customer(body, customer_id, opts = {})
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
apply_voucher_to_customer_with_http_info(body, customer_id, opts)
|
|
91
|
+
nil
|
|
92
92
|
end
|
|
93
93
|
|
|
94
94
|
# Apply voucher
|
|
@@ -96,7 +96,7 @@ module SwaggerClient
|
|
|
96
96
|
# @param body
|
|
97
97
|
# @param customer_id The id of the customer to retrieve
|
|
98
98
|
# @param [Hash] opts the optional parameters
|
|
99
|
-
# @return [Array<(
|
|
99
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
100
100
|
def apply_voucher_to_customer_with_http_info(body, customer_id, opts = {})
|
|
101
101
|
if @api_client.config.debugging
|
|
102
102
|
@api_client.config.logger.debug 'Calling API: CustomersApi.apply_voucher_to_customer ...'
|
|
@@ -128,7 +128,7 @@ module SwaggerClient
|
|
|
128
128
|
# http body (model)
|
|
129
129
|
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
130
130
|
|
|
131
|
-
return_type = opts[:return_type]
|
|
131
|
+
return_type = opts[:return_type]
|
|
132
132
|
|
|
133
133
|
auth_names = opts[:auth_names] || ['ApiKeyAuth']
|
|
134
134
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
@@ -202,21 +202,145 @@ module SwaggerClient
|
|
|
202
202
|
end
|
|
203
203
|
return data, status_code, headers
|
|
204
204
|
end
|
|
205
|
+
# Create Usage Limit
|
|
206
|
+
# Create Usage Limit for the custoemr
|
|
207
|
+
# @param body
|
|
208
|
+
# @param customer_id The id of the customer to retrieve
|
|
209
|
+
# @param [Hash] opts the optional parameters
|
|
210
|
+
# @return [UsageLimit]
|
|
211
|
+
def create_customer_usage_limit(body, customer_id, opts = {})
|
|
212
|
+
data, _status_code, _headers = create_customer_usage_limit_with_http_info(body, customer_id, opts)
|
|
213
|
+
data
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
# Create Usage Limit
|
|
217
|
+
# Create Usage Limit for the custoemr
|
|
218
|
+
# @param body
|
|
219
|
+
# @param customer_id The id of the customer to retrieve
|
|
220
|
+
# @param [Hash] opts the optional parameters
|
|
221
|
+
# @return [Array<(UsageLimit, Integer, Hash)>] UsageLimit data, response status code and response headers
|
|
222
|
+
def create_customer_usage_limit_with_http_info(body, customer_id, opts = {})
|
|
223
|
+
if @api_client.config.debugging
|
|
224
|
+
@api_client.config.logger.debug 'Calling API: CustomersApi.create_customer_usage_limit ...'
|
|
225
|
+
end
|
|
226
|
+
# verify the required parameter 'body' is set
|
|
227
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
228
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling CustomersApi.create_customer_usage_limit"
|
|
229
|
+
end
|
|
230
|
+
# verify the required parameter 'customer_id' is set
|
|
231
|
+
if @api_client.config.client_side_validation && customer_id.nil?
|
|
232
|
+
fail ArgumentError, "Missing the required parameter 'customer_id' when calling CustomersApi.create_customer_usage_limit"
|
|
233
|
+
end
|
|
234
|
+
# resource path
|
|
235
|
+
local_var_path = '/customer/{customerId}/uasge-limit'.sub('{' + 'customerId' + '}', customer_id.to_s)
|
|
236
|
+
|
|
237
|
+
# query parameters
|
|
238
|
+
query_params = opts[:query_params] || {}
|
|
239
|
+
|
|
240
|
+
# header parameters
|
|
241
|
+
header_params = opts[:header_params] || {}
|
|
242
|
+
# HTTP header 'Accept' (if needed)
|
|
243
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
244
|
+
# HTTP header 'Content-Type'
|
|
245
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
246
|
+
|
|
247
|
+
# form parameters
|
|
248
|
+
form_params = opts[:form_params] || {}
|
|
249
|
+
|
|
250
|
+
# http body (model)
|
|
251
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
252
|
+
|
|
253
|
+
return_type = opts[:return_type] || 'UsageLimit'
|
|
254
|
+
|
|
255
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth']
|
|
256
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
257
|
+
:header_params => header_params,
|
|
258
|
+
:query_params => query_params,
|
|
259
|
+
:form_params => form_params,
|
|
260
|
+
:body => post_body,
|
|
261
|
+
:auth_names => auth_names,
|
|
262
|
+
:return_type => return_type)
|
|
263
|
+
|
|
264
|
+
if @api_client.config.debugging
|
|
265
|
+
@api_client.config.logger.debug "API called: CustomersApi#create_customer_usage_limit\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
266
|
+
end
|
|
267
|
+
return data, status_code, headers
|
|
268
|
+
end
|
|
269
|
+
# Delete Usage Limit
|
|
270
|
+
# Delete Usage Limit for the custoemr
|
|
271
|
+
# @param customer_id The id of the customer to retrieve
|
|
272
|
+
# @param usage_limit_id The id of the usage limit
|
|
273
|
+
# @param [Hash] opts the optional parameters
|
|
274
|
+
# @return [nil]
|
|
275
|
+
def customer_customer_id_uasge_limit_limit_id_delete(customer_id, usage_limit_id, opts = {})
|
|
276
|
+
customer_customer_id_uasge_limit_limit_id_delete_with_http_info(customer_id, usage_limit_id, opts)
|
|
277
|
+
nil
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
# Delete Usage Limit
|
|
281
|
+
# Delete Usage Limit for the custoemr
|
|
282
|
+
# @param customer_id The id of the customer to retrieve
|
|
283
|
+
# @param usage_limit_id The id of the usage limit
|
|
284
|
+
# @param [Hash] opts the optional parameters
|
|
285
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
286
|
+
def customer_customer_id_uasge_limit_limit_id_delete_with_http_info(customer_id, usage_limit_id, opts = {})
|
|
287
|
+
if @api_client.config.debugging
|
|
288
|
+
@api_client.config.logger.debug 'Calling API: CustomersApi.customer_customer_id_uasge_limit_limit_id_delete ...'
|
|
289
|
+
end
|
|
290
|
+
# verify the required parameter 'customer_id' is set
|
|
291
|
+
if @api_client.config.client_side_validation && customer_id.nil?
|
|
292
|
+
fail ArgumentError, "Missing the required parameter 'customer_id' when calling CustomersApi.customer_customer_id_uasge_limit_limit_id_delete"
|
|
293
|
+
end
|
|
294
|
+
# verify the required parameter 'usage_limit_id' is set
|
|
295
|
+
if @api_client.config.client_side_validation && usage_limit_id.nil?
|
|
296
|
+
fail ArgumentError, "Missing the required parameter 'usage_limit_id' when calling CustomersApi.customer_customer_id_uasge_limit_limit_id_delete"
|
|
297
|
+
end
|
|
298
|
+
# resource path
|
|
299
|
+
local_var_path = '/customer/{customerId}/uasge-limit/{limitId}'.sub('{' + 'customerId' + '}', customer_id.to_s).sub('{' + 'usageLimitId' + '}', usage_limit_id.to_s)
|
|
300
|
+
|
|
301
|
+
# query parameters
|
|
302
|
+
query_params = opts[:query_params] || {}
|
|
303
|
+
|
|
304
|
+
# header parameters
|
|
305
|
+
header_params = opts[:header_params] || {}
|
|
306
|
+
|
|
307
|
+
# form parameters
|
|
308
|
+
form_params = opts[:form_params] || {}
|
|
309
|
+
|
|
310
|
+
# http body (model)
|
|
311
|
+
post_body = opts[:body]
|
|
312
|
+
|
|
313
|
+
return_type = opts[:return_type]
|
|
314
|
+
|
|
315
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth']
|
|
316
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
|
317
|
+
:header_params => header_params,
|
|
318
|
+
:query_params => query_params,
|
|
319
|
+
:form_params => form_params,
|
|
320
|
+
:body => post_body,
|
|
321
|
+
:auth_names => auth_names,
|
|
322
|
+
:return_type => return_type)
|
|
323
|
+
|
|
324
|
+
if @api_client.config.debugging
|
|
325
|
+
@api_client.config.logger.debug "API called: CustomersApi#customer_customer_id_uasge_limit_limit_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
326
|
+
end
|
|
327
|
+
return data, status_code, headers
|
|
328
|
+
end
|
|
205
329
|
# Disable Customer
|
|
206
330
|
# Disable customer
|
|
207
331
|
# @param customer_id The id of the customer to retrieve
|
|
208
332
|
# @param [Hash] opts the optional parameters
|
|
209
|
-
# @return [
|
|
333
|
+
# @return [nil]
|
|
210
334
|
def disable_customer(customer_id, opts = {})
|
|
211
|
-
|
|
212
|
-
|
|
335
|
+
disable_customer_with_http_info(customer_id, opts)
|
|
336
|
+
nil
|
|
213
337
|
end
|
|
214
338
|
|
|
215
339
|
# Disable Customer
|
|
216
340
|
# Disable customer
|
|
217
341
|
# @param customer_id The id of the customer to retrieve
|
|
218
342
|
# @param [Hash] opts the optional parameters
|
|
219
|
-
# @return [Array<(
|
|
343
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
220
344
|
def disable_customer_with_http_info(customer_id, opts = {})
|
|
221
345
|
if @api_client.config.debugging
|
|
222
346
|
@api_client.config.logger.debug 'Calling API: CustomersApi.disable_customer ...'
|
|
@@ -242,7 +366,7 @@ module SwaggerClient
|
|
|
242
366
|
# http body (model)
|
|
243
367
|
post_body = opts[:body]
|
|
244
368
|
|
|
245
|
-
return_type = opts[:return_type]
|
|
369
|
+
return_type = opts[:return_type]
|
|
246
370
|
|
|
247
371
|
auth_names = opts[:auth_names] || ['ApiKeyAuth']
|
|
248
372
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
@@ -262,17 +386,17 @@ module SwaggerClient
|
|
|
262
386
|
# Enable a customer
|
|
263
387
|
# @param customer_id The id of the customer to retrieve
|
|
264
388
|
# @param [Hash] opts the optional parameters
|
|
265
|
-
# @return [
|
|
389
|
+
# @return [nil]
|
|
266
390
|
def enable_customer(customer_id, opts = {})
|
|
267
|
-
|
|
268
|
-
|
|
391
|
+
enable_customer_with_http_info(customer_id, opts)
|
|
392
|
+
nil
|
|
269
393
|
end
|
|
270
394
|
|
|
271
395
|
# Enable Customer
|
|
272
396
|
# Enable a customer
|
|
273
397
|
# @param customer_id The id of the customer to retrieve
|
|
274
398
|
# @param [Hash] opts the optional parameters
|
|
275
|
-
# @return [Array<(
|
|
399
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
276
400
|
def enable_customer_with_http_info(customer_id, opts = {})
|
|
277
401
|
if @api_client.config.debugging
|
|
278
402
|
@api_client.config.logger.debug 'Calling API: CustomersApi.enable_customer ...'
|
|
@@ -298,7 +422,7 @@ module SwaggerClient
|
|
|
298
422
|
# http body (model)
|
|
299
423
|
post_body = opts[:body]
|
|
300
424
|
|
|
301
|
-
return_type = opts[:return_type]
|
|
425
|
+
return_type = opts[:return_type]
|
|
302
426
|
|
|
303
427
|
auth_names = opts[:auth_names] || ['ApiKeyAuth']
|
|
304
428
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
@@ -318,7 +442,7 @@ module SwaggerClient
|
|
|
318
442
|
# List all Active customer subscriptions
|
|
319
443
|
# @param customer_id The id of the customer to retrieve
|
|
320
444
|
# @param [Hash] opts the optional parameters
|
|
321
|
-
# @return [
|
|
445
|
+
# @return [InlineResponse2008]
|
|
322
446
|
def get_active_for_customer(customer_id, opts = {})
|
|
323
447
|
data, _status_code, _headers = get_active_for_customer_with_http_info(customer_id, opts)
|
|
324
448
|
data
|
|
@@ -328,7 +452,7 @@ module SwaggerClient
|
|
|
328
452
|
# List all Active customer subscriptions
|
|
329
453
|
# @param customer_id The id of the customer to retrieve
|
|
330
454
|
# @param [Hash] opts the optional parameters
|
|
331
|
-
# @return [Array<(
|
|
455
|
+
# @return [Array<(InlineResponse2008, Integer, Hash)>] InlineResponse2008 data, response status code and response headers
|
|
332
456
|
def get_active_for_customer_with_http_info(customer_id, opts = {})
|
|
333
457
|
if @api_client.config.debugging
|
|
334
458
|
@api_client.config.logger.debug 'Calling API: CustomersApi.get_active_for_customer ...'
|
|
@@ -354,7 +478,7 @@ module SwaggerClient
|
|
|
354
478
|
# http body (model)
|
|
355
479
|
post_body = opts[:body]
|
|
356
480
|
|
|
357
|
-
return_type = opts[:return_type] || '
|
|
481
|
+
return_type = opts[:return_type] || 'InlineResponse2008'
|
|
358
482
|
|
|
359
483
|
auth_names = opts[:auth_names] || ['ApiKeyAuth']
|
|
360
484
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
@@ -379,6 +503,7 @@ module SwaggerClient
|
|
|
379
503
|
# @option opts [String] :country The country code to search for
|
|
380
504
|
# @option opts [String] :reference The reference to search for
|
|
381
505
|
# @option opts [String] :external_reference The external reference to search for
|
|
506
|
+
# @option opts [String] :company_name The company name to search for
|
|
382
507
|
# @return [InlineResponse200]
|
|
383
508
|
def get_all_customers(opts = {})
|
|
384
509
|
data, _status_code, _headers = get_all_customers_with_http_info(opts)
|
|
@@ -394,6 +519,7 @@ module SwaggerClient
|
|
|
394
519
|
# @option opts [String] :country The country code to search for
|
|
395
520
|
# @option opts [String] :reference The reference to search for
|
|
396
521
|
# @option opts [String] :external_reference The external reference to search for
|
|
522
|
+
# @option opts [String] :company_name The company name to search for
|
|
397
523
|
# @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
|
|
398
524
|
def get_all_customers_with_http_info(opts = {})
|
|
399
525
|
if @api_client.config.debugging
|
|
@@ -410,6 +536,7 @@ module SwaggerClient
|
|
|
410
536
|
query_params[:'country'] = opts[:'country'] if !opts[:'country'].nil?
|
|
411
537
|
query_params[:'reference'] = opts[:'reference'] if !opts[:'reference'].nil?
|
|
412
538
|
query_params[:'external_reference'] = opts[:'external_reference'] if !opts[:'external_reference'].nil?
|
|
539
|
+
query_params[:'company_name'] = opts[:'company_name'] if !opts[:'company_name'].nil?
|
|
413
540
|
|
|
414
541
|
# header parameters
|
|
415
542
|
header_params = opts[:header_params] || {}
|
|
@@ -494,11 +621,67 @@ module SwaggerClient
|
|
|
494
621
|
end
|
|
495
622
|
return data, status_code, headers
|
|
496
623
|
end
|
|
624
|
+
# Usage Cost Estimate
|
|
625
|
+
# The estimated costs from usage based billing for a customer
|
|
626
|
+
# @param customer_id The id of the customer to retrieve
|
|
627
|
+
# @param [Hash] opts the optional parameters
|
|
628
|
+
# @return [InlineResponse2001]
|
|
629
|
+
def get_customer_costs(customer_id, opts = {})
|
|
630
|
+
data, _status_code, _headers = get_customer_costs_with_http_info(customer_id, opts)
|
|
631
|
+
data
|
|
632
|
+
end
|
|
633
|
+
|
|
634
|
+
# Usage Cost Estimate
|
|
635
|
+
# The estimated costs from usage based billing for a customer
|
|
636
|
+
# @param customer_id The id of the customer to retrieve
|
|
637
|
+
# @param [Hash] opts the optional parameters
|
|
638
|
+
# @return [Array<(InlineResponse2001, Integer, Hash)>] InlineResponse2001 data, response status code and response headers
|
|
639
|
+
def get_customer_costs_with_http_info(customer_id, opts = {})
|
|
640
|
+
if @api_client.config.debugging
|
|
641
|
+
@api_client.config.logger.debug 'Calling API: CustomersApi.get_customer_costs ...'
|
|
642
|
+
end
|
|
643
|
+
# verify the required parameter 'customer_id' is set
|
|
644
|
+
if @api_client.config.client_side_validation && customer_id.nil?
|
|
645
|
+
fail ArgumentError, "Missing the required parameter 'customer_id' when calling CustomersApi.get_customer_costs"
|
|
646
|
+
end
|
|
647
|
+
# resource path
|
|
648
|
+
local_var_path = '/customer/{customerId}/costs'.sub('{' + 'customerId' + '}', customer_id.to_s)
|
|
649
|
+
|
|
650
|
+
# query parameters
|
|
651
|
+
query_params = opts[:query_params] || {}
|
|
652
|
+
|
|
653
|
+
# header parameters
|
|
654
|
+
header_params = opts[:header_params] || {}
|
|
655
|
+
# HTTP header 'Accept' (if needed)
|
|
656
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
657
|
+
|
|
658
|
+
# form parameters
|
|
659
|
+
form_params = opts[:form_params] || {}
|
|
660
|
+
|
|
661
|
+
# http body (model)
|
|
662
|
+
post_body = opts[:body]
|
|
663
|
+
|
|
664
|
+
return_type = opts[:return_type] || 'InlineResponse2001'
|
|
665
|
+
|
|
666
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth']
|
|
667
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
668
|
+
:header_params => header_params,
|
|
669
|
+
:query_params => query_params,
|
|
670
|
+
:form_params => form_params,
|
|
671
|
+
:body => post_body,
|
|
672
|
+
:auth_names => auth_names,
|
|
673
|
+
:return_type => return_type)
|
|
674
|
+
|
|
675
|
+
if @api_client.config.debugging
|
|
676
|
+
@api_client.config.logger.debug "API called: CustomersApi#get_customer_costs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
677
|
+
end
|
|
678
|
+
return data, status_code, headers
|
|
679
|
+
end
|
|
497
680
|
# Fetch Customer Limits
|
|
498
681
|
# Limits for a specific customer
|
|
499
682
|
# @param customer_id The id of the customer to retrieve
|
|
500
683
|
# @param [Hash] opts the optional parameters
|
|
501
|
-
# @return [
|
|
684
|
+
# @return [InlineResponse2002]
|
|
502
685
|
def get_customer_limits_by_id(customer_id, opts = {})
|
|
503
686
|
data, _status_code, _headers = get_customer_limits_by_id_with_http_info(customer_id, opts)
|
|
504
687
|
data
|
|
@@ -508,7 +691,7 @@ module SwaggerClient
|
|
|
508
691
|
# Limits for a specific customer
|
|
509
692
|
# @param customer_id The id of the customer to retrieve
|
|
510
693
|
# @param [Hash] opts the optional parameters
|
|
511
|
-
# @return [Array<(
|
|
694
|
+
# @return [Array<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
|
|
512
695
|
def get_customer_limits_by_id_with_http_info(customer_id, opts = {})
|
|
513
696
|
if @api_client.config.debugging
|
|
514
697
|
@api_client.config.logger.debug 'Calling API: CustomersApi.get_customer_limits_by_id ...'
|
|
@@ -534,7 +717,7 @@ module SwaggerClient
|
|
|
534
717
|
# http body (model)
|
|
535
718
|
post_body = opts[:body]
|
|
536
719
|
|
|
537
|
-
return_type = opts[:return_type] || '
|
|
720
|
+
return_type = opts[:return_type] || 'InlineResponse2002'
|
|
538
721
|
|
|
539
722
|
auth_names = opts[:auth_names] || ['ApiKeyAuth']
|
|
540
723
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
@@ -550,11 +733,67 @@ module SwaggerClient
|
|
|
550
733
|
end
|
|
551
734
|
return data, status_code, headers
|
|
552
735
|
end
|
|
736
|
+
# Fetch Customer Usage Limits
|
|
737
|
+
# Usage Limits for a specific customer
|
|
738
|
+
# @param customer_id The id of the customer to retrieve
|
|
739
|
+
# @param [Hash] opts the optional parameters
|
|
740
|
+
# @return [InlineResponse2005]
|
|
741
|
+
def get_customer_usage_limits_by_id(customer_id, opts = {})
|
|
742
|
+
data, _status_code, _headers = get_customer_usage_limits_by_id_with_http_info(customer_id, opts)
|
|
743
|
+
data
|
|
744
|
+
end
|
|
745
|
+
|
|
746
|
+
# Fetch Customer Usage Limits
|
|
747
|
+
# Usage Limits for a specific customer
|
|
748
|
+
# @param customer_id The id of the customer to retrieve
|
|
749
|
+
# @param [Hash] opts the optional parameters
|
|
750
|
+
# @return [Array<(InlineResponse2005, Integer, Hash)>] InlineResponse2005 data, response status code and response headers
|
|
751
|
+
def get_customer_usage_limits_by_id_with_http_info(customer_id, opts = {})
|
|
752
|
+
if @api_client.config.debugging
|
|
753
|
+
@api_client.config.logger.debug 'Calling API: CustomersApi.get_customer_usage_limits_by_id ...'
|
|
754
|
+
end
|
|
755
|
+
# verify the required parameter 'customer_id' is set
|
|
756
|
+
if @api_client.config.client_side_validation && customer_id.nil?
|
|
757
|
+
fail ArgumentError, "Missing the required parameter 'customer_id' when calling CustomersApi.get_customer_usage_limits_by_id"
|
|
758
|
+
end
|
|
759
|
+
# resource path
|
|
760
|
+
local_var_path = '/customer/{customerId}/uasge-limit'.sub('{' + 'customerId' + '}', customer_id.to_s)
|
|
761
|
+
|
|
762
|
+
# query parameters
|
|
763
|
+
query_params = opts[:query_params] || {}
|
|
764
|
+
|
|
765
|
+
# header parameters
|
|
766
|
+
header_params = opts[:header_params] || {}
|
|
767
|
+
# HTTP header 'Accept' (if needed)
|
|
768
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
769
|
+
|
|
770
|
+
# form parameters
|
|
771
|
+
form_params = opts[:form_params] || {}
|
|
772
|
+
|
|
773
|
+
# http body (model)
|
|
774
|
+
post_body = opts[:body]
|
|
775
|
+
|
|
776
|
+
return_type = opts[:return_type] || 'InlineResponse2005'
|
|
777
|
+
|
|
778
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth']
|
|
779
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
780
|
+
:header_params => header_params,
|
|
781
|
+
:query_params => query_params,
|
|
782
|
+
:form_params => form_params,
|
|
783
|
+
:body => post_body,
|
|
784
|
+
:auth_names => auth_names,
|
|
785
|
+
:return_type => return_type)
|
|
786
|
+
|
|
787
|
+
if @api_client.config.debugging
|
|
788
|
+
@api_client.config.logger.debug "API called: CustomersApi#get_customer_usage_limits_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
789
|
+
end
|
|
790
|
+
return data, status_code, headers
|
|
791
|
+
end
|
|
553
792
|
# List Customer Subscriptions
|
|
554
793
|
# List all customer subscriptions<br><br><strong>Since 1.1</strong>
|
|
555
794
|
# @param customer_id The id of the customer to retrieve
|
|
556
795
|
# @param [Hash] opts the optional parameters
|
|
557
|
-
# @return [
|
|
796
|
+
# @return [InlineResponse2008]
|
|
558
797
|
def get_for_customer(customer_id, opts = {})
|
|
559
798
|
data, _status_code, _headers = get_for_customer_with_http_info(customer_id, opts)
|
|
560
799
|
data
|
|
@@ -564,7 +803,7 @@ module SwaggerClient
|
|
|
564
803
|
# List all customer subscriptions<br><br><strong>Since 1.1</strong>
|
|
565
804
|
# @param customer_id The id of the customer to retrieve
|
|
566
805
|
# @param [Hash] opts the optional parameters
|
|
567
|
-
# @return [Array<(
|
|
806
|
+
# @return [Array<(InlineResponse2008, Integer, Hash)>] InlineResponse2008 data, response status code and response headers
|
|
568
807
|
def get_for_customer_with_http_info(customer_id, opts = {})
|
|
569
808
|
if @api_client.config.debugging
|
|
570
809
|
@api_client.config.logger.debug 'Calling API: CustomersApi.get_for_customer ...'
|
|
@@ -590,7 +829,7 @@ module SwaggerClient
|
|
|
590
829
|
# http body (model)
|
|
591
830
|
post_body = opts[:body]
|
|
592
831
|
|
|
593
|
-
return_type = opts[:return_type] || '
|
|
832
|
+
return_type = opts[:return_type] || 'InlineResponse2008'
|
|
594
833
|
|
|
595
834
|
auth_names = opts[:auth_names] || ['ApiKeyAuth']
|
|
596
835
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
@@ -610,7 +849,7 @@ module SwaggerClient
|
|
|
610
849
|
# List Customer Invoices
|
|
611
850
|
# @param customer_id The id of the customer to retrieve
|
|
612
851
|
# @param [Hash] opts the optional parameters
|
|
613
|
-
# @return [
|
|
852
|
+
# @return [InlineResponse2006]
|
|
614
853
|
def get_invoices_for_customer(customer_id, opts = {})
|
|
615
854
|
data, _status_code, _headers = get_invoices_for_customer_with_http_info(customer_id, opts)
|
|
616
855
|
data
|
|
@@ -620,7 +859,7 @@ module SwaggerClient
|
|
|
620
859
|
# List Customer Invoices
|
|
621
860
|
# @param customer_id The id of the customer to retrieve
|
|
622
861
|
# @param [Hash] opts the optional parameters
|
|
623
|
-
# @return [Array<(
|
|
862
|
+
# @return [Array<(InlineResponse2006, Integer, Hash)>] InlineResponse2006 data, response status code and response headers
|
|
624
863
|
def get_invoices_for_customer_with_http_info(customer_id, opts = {})
|
|
625
864
|
if @api_client.config.debugging
|
|
626
865
|
@api_client.config.logger.debug 'Calling API: CustomersApi.get_invoices_for_customer ...'
|
|
@@ -646,7 +885,7 @@ module SwaggerClient
|
|
|
646
885
|
# http body (model)
|
|
647
886
|
post_body = opts[:body]
|
|
648
887
|
|
|
649
|
-
return_type = opts[:return_type] || '
|
|
888
|
+
return_type = opts[:return_type] || 'InlineResponse2006'
|
|
650
889
|
|
|
651
890
|
auth_names = opts[:auth_names] || ['ApiKeyAuth']
|
|
652
891
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
@@ -669,7 +908,7 @@ module SwaggerClient
|
|
|
669
908
|
# @option opts [Integer] :limit How many items to return at one time (max 100)
|
|
670
909
|
# @option opts [String] :last_key The key to be used in pagination to say what the last key of the previous page was
|
|
671
910
|
# @option opts [String] :name The name to search for
|
|
672
|
-
# @return [
|
|
911
|
+
# @return [InlineResponse2004]
|
|
673
912
|
def get_payments_for_customer(customer_id, opts = {})
|
|
674
913
|
data, _status_code, _headers = get_payments_for_customer_with_http_info(customer_id, opts)
|
|
675
914
|
data
|
|
@@ -682,7 +921,7 @@ module SwaggerClient
|
|
|
682
921
|
# @option opts [Integer] :limit How many items to return at one time (max 100)
|
|
683
922
|
# @option opts [String] :last_key The key to be used in pagination to say what the last key of the previous page was
|
|
684
923
|
# @option opts [String] :name The name to search for
|
|
685
|
-
# @return [Array<(
|
|
924
|
+
# @return [Array<(InlineResponse2004, Integer, Hash)>] InlineResponse2004 data, response status code and response headers
|
|
686
925
|
def get_payments_for_customer_with_http_info(customer_id, opts = {})
|
|
687
926
|
if @api_client.config.debugging
|
|
688
927
|
@api_client.config.logger.debug 'Calling API: CustomersApi.get_payments_for_customer ...'
|
|
@@ -711,7 +950,7 @@ module SwaggerClient
|
|
|
711
950
|
# http body (model)
|
|
712
951
|
post_body = opts[:body]
|
|
713
952
|
|
|
714
|
-
return_type = opts[:return_type] || '
|
|
953
|
+
return_type = opts[:return_type] || 'InlineResponse2004'
|
|
715
954
|
|
|
716
955
|
auth_names = opts[:auth_names] || ['ApiKeyAuth']
|
|
717
956
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
@@ -734,7 +973,7 @@ module SwaggerClient
|
|
|
734
973
|
# @option opts [Integer] :limit How many items to return at one time (max 100)
|
|
735
974
|
# @option opts [String] :last_key The key to be used in pagination to say what the last key of the previous page was
|
|
736
975
|
# @option opts [String] :name The name to search for
|
|
737
|
-
# @return [
|
|
976
|
+
# @return [InlineResponse2003]
|
|
738
977
|
def get_refunds_for_customer(customer_id, opts = {})
|
|
739
978
|
data, _status_code, _headers = get_refunds_for_customer_with_http_info(customer_id, opts)
|
|
740
979
|
data
|
|
@@ -747,7 +986,7 @@ module SwaggerClient
|
|
|
747
986
|
# @option opts [Integer] :limit How many items to return at one time (max 100)
|
|
748
987
|
# @option opts [String] :last_key The key to be used in pagination to say what the last key of the previous page was
|
|
749
988
|
# @option opts [String] :name The name to search for
|
|
750
|
-
# @return [Array<(
|
|
989
|
+
# @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
|
|
751
990
|
def get_refunds_for_customer_with_http_info(customer_id, opts = {})
|
|
752
991
|
if @api_client.config.debugging
|
|
753
992
|
@api_client.config.logger.debug 'Calling API: CustomersApi.get_refunds_for_customer ...'
|
|
@@ -776,7 +1015,7 @@ module SwaggerClient
|
|
|
776
1015
|
# http body (model)
|
|
777
1016
|
post_body = opts[:body]
|
|
778
1017
|
|
|
779
|
-
return_type = opts[:return_type] || '
|
|
1018
|
+
return_type = opts[:return_type] || 'InlineResponse2003'
|
|
780
1019
|
|
|
781
1020
|
auth_names = opts[:auth_names] || ['ApiKeyAuth']
|
|
782
1021
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
@@ -796,7 +1035,7 @@ module SwaggerClient
|
|
|
796
1035
|
# List all customers <br><br>Added in version 1.1
|
|
797
1036
|
# @param customer_id The id of the customer to retrieve
|
|
798
1037
|
# @param [Hash] opts the optional parameters
|
|
799
|
-
# @return [
|
|
1038
|
+
# @return [InlineResponse2007]
|
|
800
1039
|
def list_payment_details(customer_id, opts = {})
|
|
801
1040
|
data, _status_code, _headers = list_payment_details_with_http_info(customer_id, opts)
|
|
802
1041
|
data
|
|
@@ -806,7 +1045,7 @@ module SwaggerClient
|
|
|
806
1045
|
# List all customers <br><br>Added in version 1.1
|
|
807
1046
|
# @param customer_id The id of the customer to retrieve
|
|
808
1047
|
# @param [Hash] opts the optional parameters
|
|
809
|
-
# @return [Array<(
|
|
1048
|
+
# @return [Array<(InlineResponse2007, Integer, Hash)>] InlineResponse2007 data, response status code and response headers
|
|
810
1049
|
def list_payment_details_with_http_info(customer_id, opts = {})
|
|
811
1050
|
if @api_client.config.debugging
|
|
812
1051
|
@api_client.config.logger.debug 'Calling API: CustomersApi.list_payment_details ...'
|
|
@@ -832,7 +1071,7 @@ module SwaggerClient
|
|
|
832
1071
|
# http body (model)
|
|
833
1072
|
post_body = opts[:body]
|
|
834
1073
|
|
|
835
|
-
return_type = opts[:return_type] || '
|
|
1074
|
+
return_type = opts[:return_type] || 'InlineResponse2007'
|
|
836
1075
|
|
|
837
1076
|
auth_names = opts[:auth_names] || ['ApiKeyAuth']
|
|
838
1077
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
@@ -853,7 +1092,7 @@ module SwaggerClient
|
|
|
853
1092
|
# @param body
|
|
854
1093
|
# @param subscription_id The id of the subscription to retrieve
|
|
855
1094
|
# @param [Hash] opts the optional parameters
|
|
856
|
-
# @return [
|
|
1095
|
+
# @return [InlineResponse20013]
|
|
857
1096
|
def remove_seats_subscriptions(body, subscription_id, opts = {})
|
|
858
1097
|
data, _status_code, _headers = remove_seats_subscriptions_with_http_info(body, subscription_id, opts)
|
|
859
1098
|
data
|
|
@@ -864,7 +1103,7 @@ module SwaggerClient
|
|
|
864
1103
|
# @param body
|
|
865
1104
|
# @param subscription_id The id of the subscription to retrieve
|
|
866
1105
|
# @param [Hash] opts the optional parameters
|
|
867
|
-
# @return [Array<(
|
|
1106
|
+
# @return [Array<(InlineResponse20013, Integer, Hash)>] InlineResponse20013 data, response status code and response headers
|
|
868
1107
|
def remove_seats_subscriptions_with_http_info(body, subscription_id, opts = {})
|
|
869
1108
|
if @api_client.config.debugging
|
|
870
1109
|
@api_client.config.logger.debug 'Calling API: CustomersApi.remove_seats_subscriptions ...'
|
|
@@ -896,7 +1135,7 @@ module SwaggerClient
|
|
|
896
1135
|
# http body (model)
|
|
897
1136
|
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
898
1137
|
|
|
899
|
-
return_type = opts[:return_type] || '
|
|
1138
|
+
return_type = opts[:return_type] || 'InlineResponse20013'
|
|
900
1139
|
|
|
901
1140
|
auth_names = opts[:auth_names] || ['ApiKeyAuth']
|
|
902
1141
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|