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 InvoicesApi
|
|
14
14
|
attr_accessor :api_client
|
|
15
15
|
|
|
@@ -20,7 +20,7 @@ module SwaggerClient
|
|
|
20
20
|
# Attempts to charge a card that is on file for the invoice amount
|
|
21
21
|
# @param invoice_id The id of the invoice
|
|
22
22
|
# @param [Hash] opts the optional parameters
|
|
23
|
-
# @return [
|
|
23
|
+
# @return [InlineResponse20014]
|
|
24
24
|
def charge_invoice(invoice_id, opts = {})
|
|
25
25
|
data, _status_code, _headers = charge_invoice_with_http_info(invoice_id, opts)
|
|
26
26
|
data
|
|
@@ -30,7 +30,7 @@ module SwaggerClient
|
|
|
30
30
|
# Attempts to charge a card that is on file for the invoice amount
|
|
31
31
|
# @param invoice_id The id of the invoice
|
|
32
32
|
# @param [Hash] opts the optional parameters
|
|
33
|
-
# @return [Array<(
|
|
33
|
+
# @return [Array<(InlineResponse20014, Integer, Hash)>] InlineResponse20014 data, response status code and response headers
|
|
34
34
|
def charge_invoice_with_http_info(invoice_id, opts = {})
|
|
35
35
|
if @api_client.config.debugging
|
|
36
36
|
@api_client.config.logger.debug 'Calling API: InvoicesApi.charge_invoice ...'
|
|
@@ -56,7 +56,7 @@ module SwaggerClient
|
|
|
56
56
|
# http body (model)
|
|
57
57
|
post_body = opts[:body]
|
|
58
58
|
|
|
59
|
-
return_type = opts[:return_type] || '
|
|
59
|
+
return_type = opts[:return_type] || 'InlineResponse20014'
|
|
60
60
|
|
|
61
61
|
auth_names = opts[:auth_names] || ['ApiKeyAuth']
|
|
62
62
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
@@ -132,7 +132,7 @@ module SwaggerClient
|
|
|
132
132
|
# List Customer Invoices
|
|
133
133
|
# @param customer_id The id of the customer to retrieve
|
|
134
134
|
# @param [Hash] opts the optional parameters
|
|
135
|
-
# @return [
|
|
135
|
+
# @return [InlineResponse2006]
|
|
136
136
|
def get_invoices_for_customer(customer_id, opts = {})
|
|
137
137
|
data, _status_code, _headers = get_invoices_for_customer_with_http_info(customer_id, opts)
|
|
138
138
|
data
|
|
@@ -142,7 +142,7 @@ module SwaggerClient
|
|
|
142
142
|
# List Customer Invoices
|
|
143
143
|
# @param customer_id The id of the customer to retrieve
|
|
144
144
|
# @param [Hash] opts the optional parameters
|
|
145
|
-
# @return [Array<(
|
|
145
|
+
# @return [Array<(InlineResponse2006, Integer, Hash)>] InlineResponse2006 data, response status code and response headers
|
|
146
146
|
def get_invoices_for_customer_with_http_info(customer_id, opts = {})
|
|
147
147
|
if @api_client.config.debugging
|
|
148
148
|
@api_client.config.logger.debug 'Calling API: InvoicesApi.get_invoices_for_customer ...'
|
|
@@ -168,7 +168,7 @@ module SwaggerClient
|
|
|
168
168
|
# http body (model)
|
|
169
169
|
post_body = opts[:body]
|
|
170
170
|
|
|
171
|
-
return_type = opts[:return_type] || '
|
|
171
|
+
return_type = opts[:return_type] || 'InlineResponse2006'
|
|
172
172
|
|
|
173
173
|
auth_names = opts[:auth_names] || ['ApiKeyAuth']
|
|
174
174
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
@@ -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 PaymentDetailsApi
|
|
14
14
|
attr_accessor :api_client
|
|
15
15
|
|
|
@@ -84,17 +84,17 @@ module SwaggerClient
|
|
|
84
84
|
# Delete Payment Details
|
|
85
85
|
# @param payment_details_id The id of the payment details
|
|
86
86
|
# @param [Hash] opts the optional parameters
|
|
87
|
-
# @return [
|
|
87
|
+
# @return [nil]
|
|
88
88
|
def delete_payment_details(payment_details_id, opts = {})
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
delete_payment_details_with_http_info(payment_details_id, opts)
|
|
90
|
+
nil
|
|
91
91
|
end
|
|
92
92
|
|
|
93
93
|
# Delete
|
|
94
94
|
# Delete Payment Details
|
|
95
95
|
# @param payment_details_id The id of the payment details
|
|
96
96
|
# @param [Hash] opts the optional parameters
|
|
97
|
-
# @return [Array<(
|
|
97
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
98
98
|
def delete_payment_details_with_http_info(payment_details_id, opts = {})
|
|
99
99
|
if @api_client.config.debugging
|
|
100
100
|
@api_client.config.logger.debug 'Calling API: PaymentDetailsApi.delete_payment_details ...'
|
|
@@ -120,7 +120,7 @@ module SwaggerClient
|
|
|
120
120
|
# http body (model)
|
|
121
121
|
post_body = opts[:body]
|
|
122
122
|
|
|
123
|
-
return_type = opts[:return_type]
|
|
123
|
+
return_type = opts[:return_type]
|
|
124
124
|
|
|
125
125
|
auth_names = opts[:auth_names] || ['ApiKeyAuth']
|
|
126
126
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
|
@@ -141,10 +141,10 @@ module SwaggerClient
|
|
|
141
141
|
# @param customer_id The id of the customer to retrieve
|
|
142
142
|
# @param payment_details_id The id of the payment details
|
|
143
143
|
# @param [Hash] opts the optional parameters
|
|
144
|
-
# @return [
|
|
144
|
+
# @return [nil]
|
|
145
145
|
def delete_payment_details_customer(customer_id, payment_details_id, opts = {})
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
delete_payment_details_customer_with_http_info(customer_id, payment_details_id, opts)
|
|
147
|
+
nil
|
|
148
148
|
end
|
|
149
149
|
|
|
150
150
|
# Delete With Customer
|
|
@@ -152,7 +152,7 @@ module SwaggerClient
|
|
|
152
152
|
# @param customer_id The id of the customer to retrieve
|
|
153
153
|
# @param payment_details_id The id of the payment details
|
|
154
154
|
# @param [Hash] opts the optional parameters
|
|
155
|
-
# @return [Array<(
|
|
155
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
156
156
|
def delete_payment_details_customer_with_http_info(customer_id, payment_details_id, opts = {})
|
|
157
157
|
if @api_client.config.debugging
|
|
158
158
|
@api_client.config.logger.debug 'Calling API: PaymentDetailsApi.delete_payment_details_customer ...'
|
|
@@ -182,7 +182,7 @@ module SwaggerClient
|
|
|
182
182
|
# http body (model)
|
|
183
183
|
post_body = opts[:body]
|
|
184
184
|
|
|
185
|
-
return_type = opts[:return_type]
|
|
185
|
+
return_type = opts[:return_type]
|
|
186
186
|
|
|
187
187
|
auth_names = opts[:auth_names] || ['ApiKeyAuth']
|
|
188
188
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
|
@@ -258,7 +258,7 @@ module SwaggerClient
|
|
|
258
258
|
# List all customers <br><br>Added in version 1.1
|
|
259
259
|
# @param customer_id The id of the customer to retrieve
|
|
260
260
|
# @param [Hash] opts the optional parameters
|
|
261
|
-
# @return [
|
|
261
|
+
# @return [InlineResponse2007]
|
|
262
262
|
def list_payment_details(customer_id, opts = {})
|
|
263
263
|
data, _status_code, _headers = list_payment_details_with_http_info(customer_id, opts)
|
|
264
264
|
data
|
|
@@ -268,7 +268,7 @@ module SwaggerClient
|
|
|
268
268
|
# List all customers <br><br>Added in version 1.1
|
|
269
269
|
# @param customer_id The id of the customer to retrieve
|
|
270
270
|
# @param [Hash] opts the optional parameters
|
|
271
|
-
# @return [Array<(
|
|
271
|
+
# @return [Array<(InlineResponse2007, Integer, Hash)>] InlineResponse2007 data, response status code and response headers
|
|
272
272
|
def list_payment_details_with_http_info(customer_id, opts = {})
|
|
273
273
|
if @api_client.config.debugging
|
|
274
274
|
@api_client.config.logger.debug 'Calling API: PaymentDetailsApi.list_payment_details ...'
|
|
@@ -294,7 +294,7 @@ module SwaggerClient
|
|
|
294
294
|
# http body (model)
|
|
295
295
|
post_body = opts[:body]
|
|
296
296
|
|
|
297
|
-
return_type = opts[:return_type] || '
|
|
297
|
+
return_type = opts[:return_type] || 'InlineResponse2007'
|
|
298
298
|
|
|
299
299
|
auth_names = opts[:auth_names] || ['ApiKeyAuth']
|
|
300
300
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
@@ -315,10 +315,10 @@ module SwaggerClient
|
|
|
315
315
|
# @param customer_id The id of the customer to retrieve
|
|
316
316
|
# @param payment_details_id The id of the payment details
|
|
317
317
|
# @param [Hash] opts the optional parameters
|
|
318
|
-
# @return [
|
|
318
|
+
# @return [nil]
|
|
319
319
|
def make_default_payment_details(customer_id, payment_details_id, opts = {})
|
|
320
|
-
|
|
321
|
-
|
|
320
|
+
make_default_payment_details_with_http_info(customer_id, payment_details_id, opts)
|
|
321
|
+
nil
|
|
322
322
|
end
|
|
323
323
|
|
|
324
324
|
# Make Default
|
|
@@ -326,7 +326,7 @@ module SwaggerClient
|
|
|
326
326
|
# @param customer_id The id of the customer to retrieve
|
|
327
327
|
# @param payment_details_id The id of the payment details
|
|
328
328
|
# @param [Hash] opts the optional parameters
|
|
329
|
-
# @return [Array<(
|
|
329
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
330
330
|
def make_default_payment_details_with_http_info(customer_id, payment_details_id, opts = {})
|
|
331
331
|
if @api_client.config.debugging
|
|
332
332
|
@api_client.config.logger.debug 'Calling API: PaymentDetailsApi.make_default_payment_details ...'
|
|
@@ -356,7 +356,7 @@ module SwaggerClient
|
|
|
356
356
|
# http body (model)
|
|
357
357
|
post_body = opts[:body]
|
|
358
358
|
|
|
359
|
-
return_type = opts[:return_type]
|
|
359
|
+
return_type = opts[:return_type]
|
|
360
360
|
|
|
361
361
|
auth_names = opts[:auth_names] || ['ApiKeyAuth']
|
|
362
362
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
@@ -377,10 +377,10 @@ module SwaggerClient
|
|
|
377
377
|
# @param customer_id The id of the customer to retrieve
|
|
378
378
|
# @param payment_details_id The id of the payment details
|
|
379
379
|
# @param [Hash] opts the optional parameters
|
|
380
|
-
# @return [
|
|
380
|
+
# @return [nil]
|
|
381
381
|
def make_default_payment_details_customer(customer_id, payment_details_id, opts = {})
|
|
382
|
-
|
|
383
|
-
|
|
382
|
+
make_default_payment_details_customer_with_http_info(customer_id, payment_details_id, opts)
|
|
383
|
+
nil
|
|
384
384
|
end
|
|
385
385
|
|
|
386
386
|
# Make Default With Customer
|
|
@@ -388,7 +388,7 @@ module SwaggerClient
|
|
|
388
388
|
# @param customer_id The id of the customer to retrieve
|
|
389
389
|
# @param payment_details_id The id of the payment details
|
|
390
390
|
# @param [Hash] opts the optional parameters
|
|
391
|
-
# @return [Array<(
|
|
391
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
392
392
|
def make_default_payment_details_customer_with_http_info(customer_id, payment_details_id, opts = {})
|
|
393
393
|
if @api_client.config.debugging
|
|
394
394
|
@api_client.config.logger.debug 'Calling API: PaymentDetailsApi.make_default_payment_details_customer ...'
|
|
@@ -418,7 +418,7 @@ module SwaggerClient
|
|
|
418
418
|
# http body (model)
|
|
419
419
|
post_body = opts[:body]
|
|
420
420
|
|
|
421
|
-
return_type = opts[:return_type]
|
|
421
|
+
return_type = opts[:return_type]
|
|
422
422
|
|
|
423
423
|
auth_names = opts[:auth_names] || ['ApiKeyAuth']
|
|
424
424
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
@@ -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 PaymentsApi
|
|
14
14
|
attr_accessor :api_client
|
|
15
15
|
|
|
@@ -20,7 +20,7 @@ module SwaggerClient
|
|
|
20
20
|
# Attempts to charge a card that is on file for the invoice amount
|
|
21
21
|
# @param invoice_id The id of the invoice
|
|
22
22
|
# @param [Hash] opts the optional parameters
|
|
23
|
-
# @return [
|
|
23
|
+
# @return [InlineResponse20014]
|
|
24
24
|
def charge_invoice(invoice_id, opts = {})
|
|
25
25
|
data, _status_code, _headers = charge_invoice_with_http_info(invoice_id, opts)
|
|
26
26
|
data
|
|
@@ -30,7 +30,7 @@ module SwaggerClient
|
|
|
30
30
|
# Attempts to charge a card that is on file for the invoice amount
|
|
31
31
|
# @param invoice_id The id of the invoice
|
|
32
32
|
# @param [Hash] opts the optional parameters
|
|
33
|
-
# @return [Array<(
|
|
33
|
+
# @return [Array<(InlineResponse20014, Integer, Hash)>] InlineResponse20014 data, response status code and response headers
|
|
34
34
|
def charge_invoice_with_http_info(invoice_id, opts = {})
|
|
35
35
|
if @api_client.config.debugging
|
|
36
36
|
@api_client.config.logger.debug 'Calling API: PaymentsApi.charge_invoice ...'
|
|
@@ -56,7 +56,7 @@ module SwaggerClient
|
|
|
56
56
|
# http body (model)
|
|
57
57
|
post_body = opts[:body]
|
|
58
58
|
|
|
59
|
-
return_type = opts[:return_type] || '
|
|
59
|
+
return_type = opts[:return_type] || 'InlineResponse20014'
|
|
60
60
|
|
|
61
61
|
auth_names = opts[:auth_names] || ['ApiKeyAuth']
|
|
62
62
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
@@ -188,7 +188,7 @@ module SwaggerClient
|
|
|
188
188
|
# List Customer Invoices
|
|
189
189
|
# @param customer_id The id of the customer to retrieve
|
|
190
190
|
# @param [Hash] opts the optional parameters
|
|
191
|
-
# @return [
|
|
191
|
+
# @return [InlineResponse2006]
|
|
192
192
|
def get_invoices_for_customer(customer_id, opts = {})
|
|
193
193
|
data, _status_code, _headers = get_invoices_for_customer_with_http_info(customer_id, opts)
|
|
194
194
|
data
|
|
@@ -198,7 +198,7 @@ module SwaggerClient
|
|
|
198
198
|
# List Customer Invoices
|
|
199
199
|
# @param customer_id The id of the customer to retrieve
|
|
200
200
|
# @param [Hash] opts the optional parameters
|
|
201
|
-
# @return [Array<(
|
|
201
|
+
# @return [Array<(InlineResponse2006, Integer, Hash)>] InlineResponse2006 data, response status code and response headers
|
|
202
202
|
def get_invoices_for_customer_with_http_info(customer_id, opts = {})
|
|
203
203
|
if @api_client.config.debugging
|
|
204
204
|
@api_client.config.logger.debug 'Calling API: PaymentsApi.get_invoices_for_customer ...'
|
|
@@ -224,7 +224,7 @@ module SwaggerClient
|
|
|
224
224
|
# http body (model)
|
|
225
225
|
post_body = opts[:body]
|
|
226
226
|
|
|
227
|
-
return_type = opts[:return_type] || '
|
|
227
|
+
return_type = opts[:return_type] || 'InlineResponse2006'
|
|
228
228
|
|
|
229
229
|
auth_names = opts[:auth_names] || ['ApiKeyAuth']
|
|
230
230
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
@@ -247,7 +247,7 @@ module SwaggerClient
|
|
|
247
247
|
# @option opts [Integer] :limit How many items to return at one time (max 100)
|
|
248
248
|
# @option opts [String] :last_key The key to be used in pagination to say what the last key of the previous page was
|
|
249
249
|
# @option opts [String] :name The name to search for
|
|
250
|
-
# @return [
|
|
250
|
+
# @return [InlineResponse2004]
|
|
251
251
|
def get_payments_for_customer(customer_id, opts = {})
|
|
252
252
|
data, _status_code, _headers = get_payments_for_customer_with_http_info(customer_id, opts)
|
|
253
253
|
data
|
|
@@ -260,7 +260,7 @@ module SwaggerClient
|
|
|
260
260
|
# @option opts [Integer] :limit How many items to return at one time (max 100)
|
|
261
261
|
# @option opts [String] :last_key The key to be used in pagination to say what the last key of the previous page was
|
|
262
262
|
# @option opts [String] :name The name to search for
|
|
263
|
-
# @return [Array<(
|
|
263
|
+
# @return [Array<(InlineResponse2004, Integer, Hash)>] InlineResponse2004 data, response status code and response headers
|
|
264
264
|
def get_payments_for_customer_with_http_info(customer_id, opts = {})
|
|
265
265
|
if @api_client.config.debugging
|
|
266
266
|
@api_client.config.logger.debug 'Calling API: PaymentsApi.get_payments_for_customer ...'
|
|
@@ -289,7 +289,7 @@ module SwaggerClient
|
|
|
289
289
|
# http body (model)
|
|
290
290
|
post_body = opts[:body]
|
|
291
291
|
|
|
292
|
-
return_type = opts[:return_type] || '
|
|
292
|
+
return_type = opts[:return_type] || 'InlineResponse2004'
|
|
293
293
|
|
|
294
294
|
auth_names = opts[:auth_names] || ['ApiKeyAuth']
|
|
295
295
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
@@ -311,7 +311,7 @@ module SwaggerClient
|
|
|
311
311
|
# @option opts [Integer] :limit How many items to return at one time (max 100)
|
|
312
312
|
# @option opts [String] :last_key The key to be used in pagination to say what the last key of the previous page was
|
|
313
313
|
# @option opts [String] :name The name to search for
|
|
314
|
-
# @return [
|
|
314
|
+
# @return [InlineResponse2009]
|
|
315
315
|
def list_payment(opts = {})
|
|
316
316
|
data, _status_code, _headers = list_payment_with_http_info(opts)
|
|
317
317
|
data
|
|
@@ -323,7 +323,7 @@ module SwaggerClient
|
|
|
323
323
|
# @option opts [Integer] :limit How many items to return at one time (max 100)
|
|
324
324
|
# @option opts [String] :last_key The key to be used in pagination to say what the last key of the previous page was
|
|
325
325
|
# @option opts [String] :name The name to search for
|
|
326
|
-
# @return [Array<(
|
|
326
|
+
# @return [Array<(InlineResponse2009, Integer, Hash)>] InlineResponse2009 data, response status code and response headers
|
|
327
327
|
def list_payment_with_http_info(opts = {})
|
|
328
328
|
if @api_client.config.debugging
|
|
329
329
|
@api_client.config.logger.debug 'Calling API: PaymentsApi.list_payment ...'
|
|
@@ -348,7 +348,7 @@ module SwaggerClient
|
|
|
348
348
|
# http body (model)
|
|
349
349
|
post_body = opts[:body]
|
|
350
350
|
|
|
351
|
-
return_type = opts[:return_type] || '
|
|
351
|
+
return_type = opts[:return_type] || 'InlineResponse2009'
|
|
352
352
|
|
|
353
353
|
auth_names = opts[:auth_names] || ['ApiKeyAuth']
|
|
354
354
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
@@ -369,10 +369,10 @@ module SwaggerClient
|
|
|
369
369
|
# @param body
|
|
370
370
|
# @param payment_id The id of the payment
|
|
371
371
|
# @param [Hash] opts the optional parameters
|
|
372
|
-
# @return [
|
|
372
|
+
# @return [nil]
|
|
373
373
|
def refund_payment(body, payment_id, opts = {})
|
|
374
|
-
|
|
375
|
-
|
|
374
|
+
refund_payment_with_http_info(body, payment_id, opts)
|
|
375
|
+
nil
|
|
376
376
|
end
|
|
377
377
|
|
|
378
378
|
# Refund Payment
|
|
@@ -380,7 +380,7 @@ module SwaggerClient
|
|
|
380
380
|
# @param body
|
|
381
381
|
# @param payment_id The id of the payment
|
|
382
382
|
# @param [Hash] opts the optional parameters
|
|
383
|
-
# @return [Array<(
|
|
383
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
384
384
|
def refund_payment_with_http_info(body, payment_id, opts = {})
|
|
385
385
|
if @api_client.config.debugging
|
|
386
386
|
@api_client.config.logger.debug 'Calling API: PaymentsApi.refund_payment ...'
|
|
@@ -412,7 +412,7 @@ module SwaggerClient
|
|
|
412
412
|
# http body (model)
|
|
413
413
|
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
414
414
|
|
|
415
|
-
return_type = opts[:return_type]
|
|
415
|
+
return_type = opts[:return_type]
|
|
416
416
|
|
|
417
417
|
auth_names = opts[:auth_names] || ['ApiKeyAuth']
|
|
418
418
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
@@ -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 PricesApi
|
|
14
14
|
attr_accessor :api_client
|
|
15
15
|
|
|
@@ -21,10 +21,10 @@ module SwaggerClient
|
|
|
21
21
|
# @param body
|
|
22
22
|
# @param product_id The id of the product to retrieve
|
|
23
23
|
# @param [Hash] opts the optional parameters
|
|
24
|
-
# @return [
|
|
24
|
+
# @return [nil]
|
|
25
25
|
def create_price(body, product_id, opts = {})
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
create_price_with_http_info(body, product_id, opts)
|
|
27
|
+
nil
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
# Create
|
|
@@ -32,7 +32,7 @@ module SwaggerClient
|
|
|
32
32
|
# @param body
|
|
33
33
|
# @param product_id The id of the product to retrieve
|
|
34
34
|
# @param [Hash] opts the optional parameters
|
|
35
|
-
# @return [Array<(
|
|
35
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
36
36
|
def create_price_with_http_info(body, product_id, opts = {})
|
|
37
37
|
if @api_client.config.debugging
|
|
38
38
|
@api_client.config.logger.debug 'Calling API: PricesApi.create_price ...'
|
|
@@ -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]
|
|
68
68
|
|
|
69
69
|
auth_names = opts[:auth_names] || ['ApiKeyAuth']
|
|
70
70
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
@@ -86,7 +86,7 @@ module SwaggerClient
|
|
|
86
86
|
# @param [Hash] opts the optional parameters
|
|
87
87
|
# @option opts [Integer] :limit How many items to return at one time (max 100)
|
|
88
88
|
# @option opts [String] :last_key The key to be used in pagination to say what the last key of the previous page was
|
|
89
|
-
# @return [
|
|
89
|
+
# @return [InlineResponse20011]
|
|
90
90
|
def list_price(product_id, opts = {})
|
|
91
91
|
data, _status_code, _headers = list_price_with_http_info(product_id, opts)
|
|
92
92
|
data
|
|
@@ -98,7 +98,7 @@ module SwaggerClient
|
|
|
98
98
|
# @param [Hash] opts the optional parameters
|
|
99
99
|
# @option opts [Integer] :limit How many items to return at one time (max 100)
|
|
100
100
|
# @option opts [String] :last_key The key to be used in pagination to say what the last key of the previous page was
|
|
101
|
-
# @return [Array<(
|
|
101
|
+
# @return [Array<(InlineResponse20011, Integer, Hash)>] InlineResponse20011 data, response status code and response headers
|
|
102
102
|
def list_price_with_http_info(product_id, opts = {})
|
|
103
103
|
if @api_client.config.debugging
|
|
104
104
|
@api_client.config.logger.debug 'Calling API: PricesApi.list_price ...'
|
|
@@ -126,7 +126,7 @@ module SwaggerClient
|
|
|
126
126
|
# http body (model)
|
|
127
127
|
post_body = opts[:body]
|
|
128
128
|
|
|
129
|
-
return_type = opts[:return_type] || '
|
|
129
|
+
return_type = opts[:return_type] || 'InlineResponse20011'
|
|
130
130
|
|
|
131
131
|
auth_names = opts[:auth_names] || ['ApiKeyAuth']
|
|
132
132
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
@@ -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 ProductsApi
|
|
14
14
|
attr_accessor :api_client
|
|
15
15
|
|
|
@@ -20,17 +20,17 @@ module SwaggerClient
|
|
|
20
20
|
# Create a product
|
|
21
21
|
# @param body
|
|
22
22
|
# @param [Hash] opts the optional parameters
|
|
23
|
-
# @return [
|
|
23
|
+
# @return [nil]
|
|
24
24
|
def create_product(body, opts = {})
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
create_product_with_http_info(body, opts)
|
|
26
|
+
nil
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
# Create
|
|
30
30
|
# Create a product
|
|
31
31
|
# @param body
|
|
32
32
|
# @param [Hash] opts the optional parameters
|
|
33
|
-
# @return [Array<(
|
|
33
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
34
34
|
def create_product_with_http_info(body, opts = {})
|
|
35
35
|
if @api_client.config.debugging
|
|
36
36
|
@api_client.config.logger.debug 'Calling API: ProductsApi.create_product ...'
|
|
@@ -58,7 +58,7 @@ module SwaggerClient
|
|
|
58
58
|
# http body (model)
|
|
59
59
|
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
60
60
|
|
|
61
|
-
return_type = opts[:return_type]
|
|
61
|
+
return_type = opts[:return_type]
|
|
62
62
|
|
|
63
63
|
auth_names = opts[:auth_names] || ['ApiKeyAuth']
|
|
64
64
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
@@ -80,7 +80,7 @@ module SwaggerClient
|
|
|
80
80
|
# @option opts [Integer] :limit How many items to return at one time (max 100)
|
|
81
81
|
# @option opts [String] :last_key The key to be used in pagination to say what the last key of the previous page was
|
|
82
82
|
# @option opts [String] :name The name to search for
|
|
83
|
-
# @return [
|
|
83
|
+
# @return [InlineResponse20010]
|
|
84
84
|
def list_product(opts = {})
|
|
85
85
|
data, _status_code, _headers = list_product_with_http_info(opts)
|
|
86
86
|
data
|
|
@@ -92,7 +92,7 @@ module SwaggerClient
|
|
|
92
92
|
# @option opts [Integer] :limit How many items to return at one time (max 100)
|
|
93
93
|
# @option opts [String] :last_key The key to be used in pagination to say what the last key of the previous page was
|
|
94
94
|
# @option opts [String] :name The name to search for
|
|
95
|
-
# @return [Array<(
|
|
95
|
+
# @return [Array<(InlineResponse20010, Integer, Hash)>] InlineResponse20010 data, response status code and response headers
|
|
96
96
|
def list_product_with_http_info(opts = {})
|
|
97
97
|
if @api_client.config.debugging
|
|
98
98
|
@api_client.config.logger.debug 'Calling API: ProductsApi.list_product ...'
|
|
@@ -117,7 +117,7 @@ module SwaggerClient
|
|
|
117
117
|
# http body (model)
|
|
118
118
|
post_body = opts[:body]
|
|
119
119
|
|
|
120
|
-
return_type = opts[:return_type] || '
|
|
120
|
+
return_type = opts[:return_type] || 'InlineResponse20010'
|
|
121
121
|
|
|
122
122
|
auth_names = opts[:auth_names] || ['ApiKeyAuth']
|
|
123
123
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
@@ -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 ReceiptApi
|
|
14
14
|
attr_accessor :api_client
|
|
15
15
|
|
|
@@ -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 RefundsApi
|
|
14
14
|
attr_accessor :api_client
|
|
15
15
|
|
|
@@ -23,7 +23,7 @@ module SwaggerClient
|
|
|
23
23
|
# @option opts [Integer] :limit How many items to return at one time (max 100)
|
|
24
24
|
# @option opts [String] :last_key The key to be used in pagination to say what the last key of the previous page was
|
|
25
25
|
# @option opts [String] :name The name to search for
|
|
26
|
-
# @return [
|
|
26
|
+
# @return [InlineResponse2003]
|
|
27
27
|
def get_refunds_for_customer(customer_id, opts = {})
|
|
28
28
|
data, _status_code, _headers = get_refunds_for_customer_with_http_info(customer_id, opts)
|
|
29
29
|
data
|
|
@@ -36,7 +36,7 @@ module SwaggerClient
|
|
|
36
36
|
# @option opts [Integer] :limit How many items to return at one time (max 100)
|
|
37
37
|
# @option opts [String] :last_key The key to be used in pagination to say what the last key of the previous page was
|
|
38
38
|
# @option opts [String] :name The name to search for
|
|
39
|
-
# @return [Array<(
|
|
39
|
+
# @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
|
|
40
40
|
def get_refunds_for_customer_with_http_info(customer_id, opts = {})
|
|
41
41
|
if @api_client.config.debugging
|
|
42
42
|
@api_client.config.logger.debug 'Calling API: RefundsApi.get_refunds_for_customer ...'
|
|
@@ -65,7 +65,7 @@ module SwaggerClient
|
|
|
65
65
|
# http body (model)
|
|
66
66
|
post_body = opts[:body]
|
|
67
67
|
|
|
68
|
-
return_type = opts[:return_type] || '
|
|
68
|
+
return_type = opts[:return_type] || 'InlineResponse2003'
|
|
69
69
|
|
|
70
70
|
auth_names = opts[:auth_names] || ['ApiKeyAuth']
|
|
71
71
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
@@ -87,7 +87,7 @@ module SwaggerClient
|
|
|
87
87
|
# @option opts [Integer] :limit How many items to return at one time (max 100)
|
|
88
88
|
# @option opts [String] :last_key The key to be used in pagination to say what the last key of the previous page was
|
|
89
89
|
# @option opts [String] :name The name to search for
|
|
90
|
-
# @return [
|
|
90
|
+
# @return [InlineResponse2003]
|
|
91
91
|
def list_refund(opts = {})
|
|
92
92
|
data, _status_code, _headers = list_refund_with_http_info(opts)
|
|
93
93
|
data
|
|
@@ -99,7 +99,7 @@ module SwaggerClient
|
|
|
99
99
|
# @option opts [Integer] :limit How many items to return at one time (max 100)
|
|
100
100
|
# @option opts [String] :last_key The key to be used in pagination to say what the last key of the previous page was
|
|
101
101
|
# @option opts [String] :name The name to search for
|
|
102
|
-
# @return [Array<(
|
|
102
|
+
# @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
|
|
103
103
|
def list_refund_with_http_info(opts = {})
|
|
104
104
|
if @api_client.config.debugging
|
|
105
105
|
@api_client.config.logger.debug 'Calling API: RefundsApi.list_refund ...'
|
|
@@ -124,7 +124,7 @@ module SwaggerClient
|
|
|
124
124
|
# http body (model)
|
|
125
125
|
post_body = opts[:body]
|
|
126
126
|
|
|
127
|
-
return_type = opts[:return_type] || '
|
|
127
|
+
return_type = opts[:return_type] || 'InlineResponse2003'
|
|
128
128
|
|
|
129
129
|
auth_names = opts[:auth_names] || ['ApiKeyAuth']
|
|
130
130
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|