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.
Files changed (215) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +509 -364
  3. data/billabear.gemspec +4 -4
  4. data/docs/Address.md +1 -1
  5. data/docs/BillingAdmin.md +1 -1
  6. data/docs/CheckoutApi.md +6 -6
  7. data/docs/CheckoutBody.md +1 -1
  8. data/docs/CheckoutItems.md +1 -1
  9. data/docs/CheckoutSubscriptions.md +1 -1
  10. data/docs/Cost.md +8 -0
  11. data/docs/Customer.md +3 -1
  12. data/docs/CustomerIdUasgelimitBody.md +8 -0
  13. data/docs/CustomersApi.md +319 -101
  14. data/docs/Error.md +1 -1
  15. data/docs/Event.md +11 -0
  16. data/docs/Feature.md +1 -1
  17. data/docs/FrontendToken.md +1 -1
  18. data/docs/InlineResponse200.md +1 -1
  19. data/docs/InlineResponse2001.md +3 -4
  20. data/docs/InlineResponse20010.md +2 -2
  21. data/docs/InlineResponse20011.md +4 -2
  22. data/docs/InlineResponse20012.md +4 -3
  23. data/docs/InlineResponse20013.md +7 -0
  24. data/docs/InlineResponse20014.md +8 -0
  25. data/docs/InlineResponse2002.md +4 -4
  26. data/docs/InlineResponse2003.md +2 -2
  27. data/docs/InlineResponse2004.md +2 -2
  28. data/docs/InlineResponse2005.md +2 -2
  29. data/docs/InlineResponse2006.md +2 -2
  30. data/docs/InlineResponse2007.md +2 -2
  31. data/docs/InlineResponse2008.md +2 -2
  32. data/docs/InlineResponse2009.md +2 -2
  33. data/docs/{InlineResponse2007Data.md → InlineResponse2009Data.md} +2 -2
  34. data/docs/{InlineResponse2007Receipts.md → InlineResponse2009Receipts.md} +1 -1
  35. data/docs/InlineResponse201.md +1 -1
  36. data/docs/InlineResponse201Lines.md +1 -1
  37. data/docs/InlineResponse400.md +1 -1
  38. data/docs/Invoice.md +1 -1
  39. data/docs/InvoiceLines.md +1 -1
  40. data/docs/InvoicesApi.md +17 -17
  41. data/docs/IssueRefundPayment.md +1 -1
  42. data/docs/Limit.md +1 -1
  43. data/docs/Metric.md +12 -0
  44. data/docs/MetricCost.md +10 -0
  45. data/docs/MetricFilter.md +11 -0
  46. data/docs/PaymentDetails.md +1 -1
  47. data/docs/PaymentDetailsApi.md +48 -52
  48. data/docs/PaymentsApi.md +41 -42
  49. data/docs/Price.md +2 -1
  50. data/docs/PricesApi.md +15 -16
  51. data/docs/Product.md +1 -1
  52. data/docs/ProductTaxType.md +1 -1
  53. data/docs/ProductsApi.md +23 -24
  54. data/docs/ReceiptApi.md +5 -5
  55. data/docs/Refund.md +1 -1
  56. data/docs/RefundsApi.md +17 -17
  57. data/docs/SeatsAddBody.md +1 -1
  58. data/docs/SeatsRemoveBody.md +1 -1
  59. data/docs/Subscription.md +2 -1
  60. data/docs/SubscriptionIdCancelBody.md +1 -1
  61. data/docs/SubscriptionIdExtendBody.md +1 -1
  62. data/docs/SubscriptionIdPlanBody.md +2 -2
  63. data/docs/SubscriptionIdPriceBody.md +1 -1
  64. data/docs/SubscriptionPlan.md +1 -1
  65. data/docs/SubscriptionStartBody.md +2 -1
  66. data/docs/SubscriptionTrialBody.md +1 -1
  67. data/docs/SubscriptionsApi.md +78 -79
  68. data/docs/UsageApi.md +279 -0
  69. data/docs/UsageLimit.md +9 -0
  70. data/docs/VoucherCode.md +1 -1
  71. data/git_push.sh +2 -2
  72. data/lib/{swagger_client → billabear}/api/checkout_api.rb +3 -3
  73. data/lib/{swagger_client → billabear}/api/customers_api.rb +284 -45
  74. data/lib/{swagger_client → billabear}/api/invoices_api.rb +9 -9
  75. data/lib/{swagger_client → billabear}/api/payment_details_api.rb +26 -26
  76. data/lib/{swagger_client → billabear}/api/payments_api.rb +20 -20
  77. data/lib/{swagger_client → billabear}/api/prices_api.rb +11 -11
  78. data/lib/{swagger_client → billabear}/api/products_api.rb +11 -11
  79. data/lib/{swagger_client → billabear}/api/receipt_api.rb +3 -3
  80. data/lib/{swagger_client → billabear}/api/refunds_api.rb +9 -9
  81. data/lib/{swagger_client → billabear}/api/subscriptions_api.rb +29 -29
  82. data/lib/billabear/api/usage_api.rb +314 -0
  83. data/lib/{swagger_client → billabear}/api_client.rb +4 -4
  84. data/lib/{swagger_client → billabear}/api_error.rb +3 -3
  85. data/lib/{swagger_client → billabear}/configuration.rb +3 -3
  86. data/lib/{swagger_client → billabear}/models/address.rb +6 -6
  87. data/lib/{swagger_client → billabear}/models/billing_admin.rb +6 -6
  88. data/lib/{swagger_client → billabear}/models/checkout_body.rb +6 -6
  89. data/lib/{swagger_client → billabear}/models/checkout_items.rb +6 -6
  90. data/lib/{swagger_client → billabear}/models/checkout_subscriptions.rb +6 -6
  91. data/lib/billabear/models/cost.rb +215 -0
  92. data/lib/{swagger_client → billabear}/models/customer.rb +45 -11
  93. data/lib/billabear/models/customer_id_uasgelimit_body.rb +259 -0
  94. data/lib/{swagger_client → billabear}/models/error.rb +6 -6
  95. data/lib/billabear/models/event.rb +262 -0
  96. data/lib/{swagger_client → billabear}/models/feature.rb +6 -6
  97. data/lib/{swagger_client → billabear}/models/frontend_token.rb +6 -6
  98. data/lib/{swagger_client → billabear}/models/inline_response_200.rb +6 -6
  99. data/lib/billabear/models/inline_response_200_1.rb +217 -0
  100. data/lib/{swagger_client → billabear}/models/inline_response_200_10.rb +6 -6
  101. data/lib/{swagger_client/models/inline_response_200_2.rb → billabear/models/inline_response_200_11.rb} +7 -7
  102. data/lib/billabear/models/inline_response_200_12.rb +226 -0
  103. data/lib/{swagger_client/models/inline_response_200_11.rb → billabear/models/inline_response_200_13.rb} +7 -7
  104. data/lib/{swagger_client/models/inline_response_200_12.rb → billabear/models/inline_response_200_14.rb} +7 -7
  105. data/lib/{swagger_client/models/inline_response_200_1.rb → billabear/models/inline_response_200_2.rb} +7 -7
  106. data/lib/{swagger_client → billabear}/models/inline_response_200_3.rb +6 -6
  107. data/lib/{swagger_client → billabear}/models/inline_response_200_4.rb +6 -6
  108. data/lib/{swagger_client → billabear}/models/inline_response_200_5.rb +6 -6
  109. data/lib/{swagger_client → billabear}/models/inline_response_200_6.rb +6 -6
  110. data/lib/{swagger_client → billabear}/models/inline_response_200_7.rb +6 -6
  111. data/lib/{swagger_client → billabear}/models/inline_response_200_8.rb +6 -6
  112. data/lib/{swagger_client → billabear}/models/inline_response_200_9.rb +6 -6
  113. data/lib/{swagger_client/models/inline_response_200_7_data.rb → billabear/models/inline_response_200_9_data.rb} +7 -7
  114. data/lib/{swagger_client/models/inline_response_200_7_receipts.rb → billabear/models/inline_response_200_9_receipts.rb} +7 -7
  115. data/lib/{swagger_client → billabear}/models/inline_response_201.rb +6 -6
  116. data/lib/{swagger_client → billabear}/models/inline_response_201_lines.rb +6 -6
  117. data/lib/{swagger_client → billabear}/models/inline_response_400.rb +6 -6
  118. data/lib/{swagger_client → billabear}/models/invoice.rb +6 -6
  119. data/lib/{swagger_client → billabear}/models/invoice_lines.rb +6 -6
  120. data/lib/{swagger_client → billabear}/models/issue_refund_payment.rb +6 -6
  121. data/lib/{swagger_client → billabear}/models/limit.rb +6 -6
  122. data/lib/billabear/models/metric.rb +288 -0
  123. data/lib/billabear/models/metric_cost.rb +234 -0
  124. data/lib/billabear/models/metric_filter.rb +276 -0
  125. data/lib/{swagger_client → billabear}/models/payment_details.rb +6 -6
  126. data/lib/{swagger_client → billabear}/models/price.rb +20 -11
  127. data/lib/{swagger_client → billabear}/models/product.rb +6 -6
  128. data/lib/{swagger_client → billabear}/models/product_tax_type.rb +6 -6
  129. data/lib/{swagger_client → billabear}/models/refund.rb +6 -6
  130. data/lib/{swagger_client → billabear}/models/seats_add_body.rb +6 -6
  131. data/lib/{swagger_client → billabear}/models/seats_remove_body.rb +6 -6
  132. data/lib/{swagger_client → billabear}/models/subscription.rb +16 -7
  133. data/lib/{swagger_client → billabear}/models/subscription_id_cancel_body.rb +6 -6
  134. data/lib/{swagger_client → billabear}/models/subscription_id_extend_body.rb +6 -6
  135. data/lib/{swagger_client → billabear}/models/subscription_id_plan_body.rb +11 -6
  136. data/lib/{swagger_client → billabear}/models/subscription_id_price_body.rb +6 -6
  137. data/lib/{swagger_client → billabear}/models/subscription_plan.rb +6 -6
  138. data/lib/{swagger_client → billabear}/models/subscription_start_body.rb +20 -10
  139. data/lib/{swagger_client → billabear}/models/subscription_trial_body.rb +6 -6
  140. data/lib/billabear/models/usage_limit.rb +258 -0
  141. data/lib/{swagger_client → billabear}/models/voucher_code.rb +6 -6
  142. data/lib/{swagger_client → billabear}/version.rb +4 -4
  143. data/lib/billabear.rb +105 -0
  144. data/spec/api/checkout_api_spec.rb +5 -5
  145. data/spec/api/customers_api_spec.rb +68 -17
  146. data/spec/api/invoices_api_spec.rb +7 -7
  147. data/spec/api/payment_details_api_spec.rb +10 -10
  148. data/spec/api/payments_api_spec.rb +10 -10
  149. data/spec/api/prices_api_spec.rb +7 -7
  150. data/spec/api/products_api_spec.rb +7 -7
  151. data/spec/api/receipt_api_spec.rb +5 -5
  152. data/spec/api/refunds_api_spec.rb +7 -7
  153. data/spec/api/subscriptions_api_spec.rb +13 -13
  154. data/spec/api/usage_api_spec.rb +96 -0
  155. data/spec/api_client_spec.rb +31 -31
  156. data/spec/configuration_spec.rb +5 -5
  157. data/spec/models/address_spec.rb +5 -5
  158. data/spec/models/billing_admin_spec.rb +5 -5
  159. data/spec/models/checkout_body_spec.rb +5 -5
  160. data/spec/models/checkout_items_spec.rb +5 -5
  161. data/spec/models/checkout_subscriptions_spec.rb +5 -5
  162. data/spec/models/cost_spec.rb +46 -0
  163. data/spec/models/customer_id_uasgelimit_body_spec.rb +50 -0
  164. data/spec/models/customer_spec.rb +21 -5
  165. data/spec/models/error_spec.rb +5 -5
  166. data/spec/models/event_spec.rb +64 -0
  167. data/spec/models/feature_spec.rb +5 -5
  168. data/spec/models/frontend_token_spec.rb +5 -5
  169. data/spec/models/inline_response_200_10_spec.rb +5 -5
  170. data/spec/models/inline_response_200_11_spec.rb +18 -6
  171. data/spec/models/inline_response_200_12_spec.rb +13 -11
  172. data/spec/models/inline_response_200_13_spec.rb +40 -0
  173. data/spec/models/inline_response_200_14_spec.rb +50 -0
  174. data/spec/models/inline_response_200_1_spec.rb +7 -13
  175. data/spec/models/inline_response_200_2_spec.rb +8 -8
  176. data/spec/models/inline_response_200_3_spec.rb +5 -5
  177. data/spec/models/inline_response_200_4_spec.rb +5 -5
  178. data/spec/models/inline_response_200_5_spec.rb +5 -5
  179. data/spec/models/inline_response_200_6_spec.rb +5 -5
  180. data/spec/models/inline_response_200_7_spec.rb +5 -5
  181. data/spec/models/inline_response_200_8_spec.rb +5 -5
  182. data/spec/models/{inline_response_200_7_data_spec.rb → inline_response_200_9_data_spec.rb} +8 -8
  183. data/spec/models/{inline_response_200_7_receipts_spec.rb → inline_response_200_9_receipts_spec.rb} +8 -8
  184. data/spec/models/inline_response_200_9_spec.rb +5 -5
  185. data/spec/models/inline_response_200_spec.rb +5 -5
  186. data/spec/models/inline_response_201_lines_spec.rb +5 -5
  187. data/spec/models/inline_response_201_spec.rb +5 -5
  188. data/spec/models/inline_response_400_spec.rb +5 -5
  189. data/spec/models/invoice_lines_spec.rb +5 -5
  190. data/spec/models/invoice_spec.rb +5 -5
  191. data/spec/models/issue_refund_payment_spec.rb +5 -5
  192. data/spec/models/limit_spec.rb +5 -5
  193. data/spec/models/metric_cost_spec.rb +58 -0
  194. data/spec/models/metric_filter_spec.rb +68 -0
  195. data/spec/models/metric_spec.rb +74 -0
  196. data/spec/models/payment_details_spec.rb +5 -5
  197. data/spec/models/price_spec.rb +11 -5
  198. data/spec/models/product_spec.rb +5 -5
  199. data/spec/models/product_tax_type_spec.rb +5 -5
  200. data/spec/models/refund_spec.rb +5 -5
  201. data/spec/models/seats_add_body_spec.rb +5 -5
  202. data/spec/models/seats_remove_body_spec.rb +5 -5
  203. data/spec/models/subscription_id_cancel_body_spec.rb +5 -5
  204. data/spec/models/subscription_id_extend_body_spec.rb +5 -5
  205. data/spec/models/subscription_id_plan_body_spec.rb +5 -5
  206. data/spec/models/subscription_id_price_body_spec.rb +5 -5
  207. data/spec/models/subscription_plan_spec.rb +5 -5
  208. data/spec/models/subscription_spec.rb +11 -5
  209. data/spec/models/subscription_start_body_spec.rb +11 -5
  210. data/spec/models/subscription_trial_body_spec.rb +5 -5
  211. data/spec/models/usage_limit_spec.rb +56 -0
  212. data/spec/models/voucher_code_spec.rb +5 -5
  213. data/spec/spec_helper.rb +3 -3
  214. metadata +110 -70
  215. 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.0.0
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.56
9
+ Swagger Codegen version: 3.0.66
10
10
  =end
11
11
 
12
- module SwaggerClient
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 [InlineResponse20012]
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<(InlineResponse20012, Integer, Hash)>] InlineResponse20012 data, response status code and response headers
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] || 'InlineResponse20012'
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 [InlineResponse2004]
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<(InlineResponse2004, Integer, Hash)>] InlineResponse2004 data, response status code and response headers
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] || 'InlineResponse2004'
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.0.0
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.56
9
+ Swagger Codegen version: 3.0.66
10
10
  =end
11
11
 
12
- module SwaggerClient
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 [String]
87
+ # @return [nil]
88
88
  def delete_payment_details(payment_details_id, opts = {})
89
- data, _status_code, _headers = delete_payment_details_with_http_info(payment_details_id, opts)
90
- data
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<(String, Integer, Hash)>] String data, response status code and response headers
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] || 'String'
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 [String]
144
+ # @return [nil]
145
145
  def delete_payment_details_customer(customer_id, payment_details_id, opts = {})
146
- data, _status_code, _headers = delete_payment_details_customer_with_http_info(customer_id, payment_details_id, opts)
147
- data
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<(String, Integer, Hash)>] String data, response status code and response headers
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] || 'String'
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 [InlineResponse2005]
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 &lt;br&gt;&lt;br&gt;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<(InlineResponse2005, Integer, Hash)>] InlineResponse2005 data, response status code and response headers
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] || 'InlineResponse2005'
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 [String]
318
+ # @return [nil]
319
319
  def make_default_payment_details(customer_id, payment_details_id, opts = {})
320
- data, _status_code, _headers = make_default_payment_details_with_http_info(customer_id, payment_details_id, opts)
321
- data
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<(String, Integer, Hash)>] String data, response status code and response headers
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] || 'String'
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 [String]
380
+ # @return [nil]
381
381
  def make_default_payment_details_customer(customer_id, payment_details_id, opts = {})
382
- data, _status_code, _headers = make_default_payment_details_customer_with_http_info(customer_id, payment_details_id, opts)
383
- data
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<(String, Integer, Hash)>] String data, response status code and response headers
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] || 'String'
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.0.0
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.56
9
+ Swagger Codegen version: 3.0.66
10
10
  =end
11
11
 
12
- module SwaggerClient
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 [InlineResponse20012]
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<(InlineResponse20012, Integer, Hash)>] InlineResponse20012 data, response status code and response headers
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] || 'InlineResponse20012'
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 [InlineResponse2004]
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<(InlineResponse2004, Integer, Hash)>] InlineResponse2004 data, response status code and response headers
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] || 'InlineResponse2004'
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 [InlineResponse2003]
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<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
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] || 'InlineResponse2003'
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 [InlineResponse2007]
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<(InlineResponse2007, Integer, Hash)>] InlineResponse2007 data, response status code and response headers
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] || 'InlineResponse2007'
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 [String]
372
+ # @return [nil]
373
373
  def refund_payment(body, payment_id, opts = {})
374
- data, _status_code, _headers = refund_payment_with_http_info(body, payment_id, opts)
375
- data
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<(String, Integer, Hash)>] String data, response status code and response headers
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] || 'String'
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.0.0
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.56
9
+ Swagger Codegen version: 3.0.66
10
10
  =end
11
11
 
12
- module SwaggerClient
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 [String]
24
+ # @return [nil]
25
25
  def create_price(body, product_id, opts = {})
26
- data, _status_code, _headers = create_price_with_http_info(body, product_id, opts)
27
- data
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<(String, Integer, Hash)>] String data, response status code and response headers
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] || 'String'
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 [InlineResponse2009]
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<(InlineResponse2009, Integer, Hash)>] InlineResponse2009 data, response status code and response headers
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] || 'InlineResponse2009'
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.0.0
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.56
9
+ Swagger Codegen version: 3.0.66
10
10
  =end
11
11
 
12
- module SwaggerClient
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 [String]
23
+ # @return [nil]
24
24
  def create_product(body, opts = {})
25
- data, _status_code, _headers = create_product_with_http_info(body, opts)
26
- data
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<(String, Integer, Hash)>] String data, response status code and response headers
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] || 'String'
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 [InlineResponse2008]
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<(InlineResponse2008, Integer, Hash)>] InlineResponse2008 data, response status code and response headers
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] || 'InlineResponse2008'
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.0.0
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.56
9
+ Swagger Codegen version: 3.0.66
10
10
  =end
11
11
 
12
- module SwaggerClient
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.0.0
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.56
9
+ Swagger Codegen version: 3.0.66
10
10
  =end
11
11
 
12
- module SwaggerClient
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 [InlineResponse2002]
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<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
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] || 'InlineResponse2002'
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 [InlineResponse2002]
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<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
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] || 'InlineResponse2002'
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,