billabear 1.0.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 (187) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +1340 -0
  4. data/Rakefile +8 -0
  5. data/billabear.gemspec +38 -0
  6. data/docs/Address.md +13 -0
  7. data/docs/BillingAdmin.md +8 -0
  8. data/docs/CheckoutApi.md +61 -0
  9. data/docs/CheckoutBody.md +12 -0
  10. data/docs/CheckoutItems.md +11 -0
  11. data/docs/CheckoutSubscriptions.md +9 -0
  12. data/docs/Customer.md +18 -0
  13. data/docs/CustomersApi.md +904 -0
  14. data/docs/Error.md +8 -0
  15. data/docs/Feature.md +10 -0
  16. data/docs/FrontendToken.md +7 -0
  17. data/docs/InlineResponse200.md +9 -0
  18. data/docs/InlineResponse2001.md +9 -0
  19. data/docs/InlineResponse20010.md +9 -0
  20. data/docs/InlineResponse20011.md +7 -0
  21. data/docs/InlineResponse20012.md +8 -0
  22. data/docs/InlineResponse2002.md +9 -0
  23. data/docs/InlineResponse2003.md +9 -0
  24. data/docs/InlineResponse2004.md +9 -0
  25. data/docs/InlineResponse2005.md +9 -0
  26. data/docs/InlineResponse2006.md +9 -0
  27. data/docs/InlineResponse2007.md +9 -0
  28. data/docs/InlineResponse2007Data.md +14 -0
  29. data/docs/InlineResponse2007Receipts.md +9 -0
  30. data/docs/InlineResponse2008.md +9 -0
  31. data/docs/InlineResponse2009.md +9 -0
  32. data/docs/InlineResponse201.md +15 -0
  33. data/docs/InlineResponse201Lines.md +14 -0
  34. data/docs/InlineResponse400.md +7 -0
  35. data/docs/Invoice.md +21 -0
  36. data/docs/InvoiceLines.md +12 -0
  37. data/docs/InvoicesApi.md +169 -0
  38. data/docs/IssueRefundPayment.md +9 -0
  39. data/docs/Limit.md +8 -0
  40. data/docs/PaymentDetails.md +14 -0
  41. data/docs/PaymentDetailsApi.md +447 -0
  42. data/docs/PaymentsApi.md +399 -0
  43. data/docs/Price.md +14 -0
  44. data/docs/PricesApi.md +122 -0
  45. data/docs/Product.md +10 -0
  46. data/docs/ProductTaxType.md +9 -0
  47. data/docs/ProductsApi.md +228 -0
  48. data/docs/ReceiptApi.md +61 -0
  49. data/docs/Refund.md +16 -0
  50. data/docs/RefundsApi.md +181 -0
  51. data/docs/SeatsAddBody.md +7 -0
  52. data/docs/SeatsRemoveBody.md +7 -0
  53. data/docs/Subscription.md +18 -0
  54. data/docs/SubscriptionIdCancelBody.md +10 -0
  55. data/docs/SubscriptionIdExtendBody.md +7 -0
  56. data/docs/SubscriptionIdPlanBody.md +9 -0
  57. data/docs/SubscriptionIdPriceBody.md +8 -0
  58. data/docs/SubscriptionPlan.md +20 -0
  59. data/docs/SubscriptionStartBody.md +14 -0
  60. data/docs/SubscriptionTrialBody.md +10 -0
  61. data/docs/SubscriptionsApi.md +731 -0
  62. data/docs/VoucherCode.md +7 -0
  63. data/git_push.sh +55 -0
  64. data/lib/swagger_client/api/checkout_api.rb +78 -0
  65. data/lib/swagger_client/api/customers_api.rb +980 -0
  66. data/lib/swagger_client/api/invoices_api.rb +188 -0
  67. data/lib/swagger_client/api/payment_details_api.rb +494 -0
  68. data/lib/swagger_client/api/payments_api.rb +432 -0
  69. data/lib/swagger_client/api/prices_api.rb +146 -0
  70. data/lib/swagger_client/api/products_api.rb +249 -0
  71. data/lib/swagger_client/api/receipt_api.rb +76 -0
  72. data/lib/swagger_client/api/refunds_api.rb +200 -0
  73. data/lib/swagger_client/api/subscriptions_api.rb +812 -0
  74. data/lib/swagger_client/api_client.rb +388 -0
  75. data/lib/swagger_client/api_error.rb +57 -0
  76. data/lib/swagger_client/configuration.rb +205 -0
  77. data/lib/swagger_client/models/address.rb +265 -0
  78. data/lib/swagger_client/models/billing_admin.rb +215 -0
  79. data/lib/swagger_client/models/checkout_body.rb +265 -0
  80. data/lib/swagger_client/models/checkout_items.rb +242 -0
  81. data/lib/swagger_client/models/checkout_subscriptions.rb +224 -0
  82. data/lib/swagger_client/models/customer.rb +370 -0
  83. data/lib/swagger_client/models/error.rb +225 -0
  84. data/lib/swagger_client/models/feature.rb +240 -0
  85. data/lib/swagger_client/models/frontend_token.rb +211 -0
  86. data/lib/swagger_client/models/inline_response_200.rb +226 -0
  87. data/lib/swagger_client/models/inline_response_200_1.rb +228 -0
  88. data/lib/swagger_client/models/inline_response_200_10.rb +226 -0
  89. data/lib/swagger_client/models/inline_response_200_11.rb +206 -0
  90. data/lib/swagger_client/models/inline_response_200_12.rb +250 -0
  91. data/lib/swagger_client/models/inline_response_200_2.rb +226 -0
  92. data/lib/swagger_client/models/inline_response_200_3.rb +226 -0
  93. data/lib/swagger_client/models/inline_response_200_4.rb +226 -0
  94. data/lib/swagger_client/models/inline_response_200_5.rb +226 -0
  95. data/lib/swagger_client/models/inline_response_200_6.rb +226 -0
  96. data/lib/swagger_client/models/inline_response_200_7.rb +226 -0
  97. data/lib/swagger_client/models/inline_response_200_7_data.rb +307 -0
  98. data/lib/swagger_client/models/inline_response_200_7_receipts.rb +224 -0
  99. data/lib/swagger_client/models/inline_response_200_8.rb +226 -0
  100. data/lib/swagger_client/models/inline_response_200_9.rb +226 -0
  101. data/lib/swagger_client/models/inline_response_201.rb +285 -0
  102. data/lib/swagger_client/models/inline_response_201_lines.rb +269 -0
  103. data/lib/swagger_client/models/inline_response_400.rb +213 -0
  104. data/lib/swagger_client/models/invoice.rb +334 -0
  105. data/lib/swagger_client/models/invoice_lines.rb +251 -0
  106. data/lib/swagger_client/models/issue_refund_payment.rb +232 -0
  107. data/lib/swagger_client/models/limit.rb +215 -0
  108. data/lib/swagger_client/models/payment_details.rb +271 -0
  109. data/lib/swagger_client/models/price.rb +325 -0
  110. data/lib/swagger_client/models/product.rb +240 -0
  111. data/lib/swagger_client/models/product_tax_type.rb +229 -0
  112. data/lib/swagger_client/models/refund.rb +324 -0
  113. data/lib/swagger_client/models/seats_add_body.rb +211 -0
  114. data/lib/swagger_client/models/seats_remove_body.rb +211 -0
  115. data/lib/swagger_client/models/subscription.rb +305 -0
  116. data/lib/swagger_client/models/subscription_id_cancel_body.rb +294 -0
  117. data/lib/swagger_client/models/subscription_id_extend_body.rb +211 -0
  118. data/lib/swagger_client/models/subscription_id_plan_body.rb +270 -0
  119. data/lib/swagger_client/models/subscription_id_price_body.rb +259 -0
  120. data/lib/swagger_client/models/subscription_plan.rb +330 -0
  121. data/lib/swagger_client/models/subscription_start_body.rb +314 -0
  122. data/lib/swagger_client/models/subscription_trial_body.rb +242 -0
  123. data/lib/swagger_client/models/voucher_code.rb +211 -0
  124. data/lib/swagger_client/version.rb +14 -0
  125. data/lib/swagger_client.rb +95 -0
  126. data/spec/api/checkout_api_spec.rb +46 -0
  127. data/spec/api/customers_api_spec.rb +241 -0
  128. data/spec/api/invoices_api_spec.rb +70 -0
  129. data/spec/api/payment_details_api_spec.rb +134 -0
  130. data/spec/api/payments_api_spec.rb +124 -0
  131. data/spec/api/prices_api_spec.rb +61 -0
  132. data/spec/api/products_api_spec.rb +84 -0
  133. data/spec/api/receipt_api_spec.rb +46 -0
  134. data/spec/api/refunds_api_spec.rb +75 -0
  135. data/spec/api/subscriptions_api_spec.rb +200 -0
  136. data/spec/api_client_spec.rb +225 -0
  137. data/spec/base_object_spec.rb +109 -0
  138. data/spec/configuration_spec.rb +41 -0
  139. data/spec/models/address_spec.rb +76 -0
  140. data/spec/models/billing_admin_spec.rb +46 -0
  141. data/spec/models/checkout_body_spec.rb +70 -0
  142. data/spec/models/checkout_items_spec.rb +64 -0
  143. data/spec/models/checkout_subscriptions_spec.rb +52 -0
  144. data/spec/models/customer_spec.rb +114 -0
  145. data/spec/models/error_spec.rb +46 -0
  146. data/spec/models/feature_spec.rb +58 -0
  147. data/spec/models/frontend_token_spec.rb +40 -0
  148. data/spec/models/inline_response_200_10_spec.rb +52 -0
  149. data/spec/models/inline_response_200_11_spec.rb +40 -0
  150. data/spec/models/inline_response_200_12_spec.rb +50 -0
  151. data/spec/models/inline_response_200_1_spec.rb +52 -0
  152. data/spec/models/inline_response_200_2_spec.rb +52 -0
  153. data/spec/models/inline_response_200_3_spec.rb +52 -0
  154. data/spec/models/inline_response_200_4_spec.rb +52 -0
  155. data/spec/models/inline_response_200_5_spec.rb +52 -0
  156. data/spec/models/inline_response_200_6_spec.rb +52 -0
  157. data/spec/models/inline_response_200_7_data_spec.rb +86 -0
  158. data/spec/models/inline_response_200_7_receipts_spec.rb +52 -0
  159. data/spec/models/inline_response_200_7_spec.rb +52 -0
  160. data/spec/models/inline_response_200_8_spec.rb +52 -0
  161. data/spec/models/inline_response_200_9_spec.rb +52 -0
  162. data/spec/models/inline_response_200_spec.rb +52 -0
  163. data/spec/models/inline_response_201_lines_spec.rb +82 -0
  164. data/spec/models/inline_response_201_spec.rb +88 -0
  165. data/spec/models/inline_response_400_spec.rb +40 -0
  166. data/spec/models/invoice_lines_spec.rb +70 -0
  167. data/spec/models/invoice_spec.rb +124 -0
  168. data/spec/models/issue_refund_payment_spec.rb +52 -0
  169. data/spec/models/limit_spec.rb +46 -0
  170. data/spec/models/payment_details_spec.rb +82 -0
  171. data/spec/models/price_spec.rb +86 -0
  172. data/spec/models/product_spec.rb +58 -0
  173. data/spec/models/product_tax_type_spec.rb +52 -0
  174. data/spec/models/refund_spec.rb +98 -0
  175. data/spec/models/seats_add_body_spec.rb +40 -0
  176. data/spec/models/seats_remove_body_spec.rb +40 -0
  177. data/spec/models/subscription_id_cancel_body_spec.rb +66 -0
  178. data/spec/models/subscription_id_extend_body_spec.rb +40 -0
  179. data/spec/models/subscription_id_plan_body_spec.rb +56 -0
  180. data/spec/models/subscription_id_price_body_spec.rb +50 -0
  181. data/spec/models/subscription_plan_spec.rb +118 -0
  182. data/spec/models/subscription_spec.rb +106 -0
  183. data/spec/models/subscription_start_body_spec.rb +86 -0
  184. data/spec/models/subscription_trial_body_spec.rb +58 -0
  185. data/spec/models/voucher_code_spec.rb +40 -0
  186. data/spec/spec_helper.rb +110 -0
  187. metadata +349 -0
@@ -0,0 +1,399 @@
1
+ # SwaggerClient::PaymentsApi
2
+
3
+ All URIs are relative to *https://{customerId}.billabear.cloud/api/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**charge_invoice**](PaymentsApi.md#charge_invoice) | **POST** /invoice/{invoiceId}/charge | Charge Invoice
8
+ [**download_invoice**](PaymentsApi.md#download_invoice) | **GET** /invoice/{invoiceId}/download | Download Invoice
9
+ [**download_receipt**](PaymentsApi.md#download_receipt) | **GET** /receipt/{receiptId}/download | Download Receipt
10
+ [**get_invoices_for_customer**](PaymentsApi.md#get_invoices_for_customer) | **GET** /customer/{customerId}/invoices | List Customer Invoices
11
+ [**get_payments_for_customer**](PaymentsApi.md#get_payments_for_customer) | **GET** /customer/{customerId}/payment | List Customer Payments
12
+ [**list_payment**](PaymentsApi.md#list_payment) | **GET** /payment | List
13
+ [**refund_payment**](PaymentsApi.md#refund_payment) | **POST** /payment/{paymentId}/refund | Refund Payment
14
+
15
+ # **charge_invoice**
16
+ > InlineResponse20012 charge_invoice(invoice_id)
17
+
18
+ Charge Invoice
19
+
20
+ Attempts to charge a card that is on file for the invoice amount
21
+
22
+ ### Example
23
+ ```ruby
24
+ # load the gem
25
+ require 'swagger_client'
26
+ # setup authorization
27
+ SwaggerClient.configure do |config|
28
+ # Configure API key authorization: ApiKeyAuth
29
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
30
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
31
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
32
+ end
33
+
34
+ api_instance = SwaggerClient::PaymentsApi.new
35
+ invoice_id = 'invoice_id_example' # String | The id of the invoice
36
+
37
+
38
+ begin
39
+ #Charge Invoice
40
+ result = api_instance.charge_invoice(invoice_id)
41
+ p result
42
+ rescue SwaggerClient::ApiError => e
43
+ puts "Exception when calling PaymentsApi->charge_invoice: #{e}"
44
+ end
45
+ ```
46
+
47
+ ### Parameters
48
+
49
+ Name | Type | Description | Notes
50
+ ------------- | ------------- | ------------- | -------------
51
+ **invoice_id** | **String**| The id of the invoice |
52
+
53
+ ### Return type
54
+
55
+ [**InlineResponse20012**](InlineResponse20012.md)
56
+
57
+ ### Authorization
58
+
59
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
60
+
61
+ ### HTTP request headers
62
+
63
+ - **Content-Type**: Not defined
64
+ - **Accept**: application/json
65
+
66
+
67
+
68
+ # **download_invoice**
69
+ > String download_invoice(invoice_id)
70
+
71
+ Download Invoice
72
+
73
+ Returns the pdf blob for the invoice
74
+
75
+ ### Example
76
+ ```ruby
77
+ # load the gem
78
+ require 'swagger_client'
79
+ # setup authorization
80
+ SwaggerClient.configure do |config|
81
+ # Configure API key authorization: ApiKeyAuth
82
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
83
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
84
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
85
+ end
86
+
87
+ api_instance = SwaggerClient::PaymentsApi.new
88
+ invoice_id = 'invoice_id_example' # String | The id of the invoice
89
+
90
+
91
+ begin
92
+ #Download Invoice
93
+ result = api_instance.download_invoice(invoice_id)
94
+ p result
95
+ rescue SwaggerClient::ApiError => e
96
+ puts "Exception when calling PaymentsApi->download_invoice: #{e}"
97
+ end
98
+ ```
99
+
100
+ ### Parameters
101
+
102
+ Name | Type | Description | Notes
103
+ ------------- | ------------- | ------------- | -------------
104
+ **invoice_id** | **String**| The id of the invoice |
105
+
106
+ ### Return type
107
+
108
+ **String**
109
+
110
+ ### Authorization
111
+
112
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
113
+
114
+ ### HTTP request headers
115
+
116
+ - **Content-Type**: Not defined
117
+ - **Accept**: application/pdf
118
+
119
+
120
+
121
+ # **download_receipt**
122
+ > String download_receipt(receipt)
123
+
124
+ Download Receipt
125
+
126
+ Returns the pdf blob for the Receipt
127
+
128
+ ### Example
129
+ ```ruby
130
+ # load the gem
131
+ require 'swagger_client'
132
+ # setup authorization
133
+ SwaggerClient.configure do |config|
134
+ # Configure API key authorization: ApiKeyAuth
135
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
136
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
137
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
138
+ end
139
+
140
+ api_instance = SwaggerClient::PaymentsApi.new
141
+ receipt = 'receipt_example' # String | The id of the receipt
142
+
143
+
144
+ begin
145
+ #Download Receipt
146
+ result = api_instance.download_receipt(receipt)
147
+ p result
148
+ rescue SwaggerClient::ApiError => e
149
+ puts "Exception when calling PaymentsApi->download_receipt: #{e}"
150
+ end
151
+ ```
152
+
153
+ ### Parameters
154
+
155
+ Name | Type | Description | Notes
156
+ ------------- | ------------- | ------------- | -------------
157
+ **receipt** | **String**| The id of the receipt |
158
+
159
+ ### Return type
160
+
161
+ **String**
162
+
163
+ ### Authorization
164
+
165
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
166
+
167
+ ### HTTP request headers
168
+
169
+ - **Content-Type**: Not defined
170
+ - **Accept**: application/pdf
171
+
172
+
173
+
174
+ # **get_invoices_for_customer**
175
+ > InlineResponse2004 get_invoices_for_customer(customer_id)
176
+
177
+ List Customer Invoices
178
+
179
+ List Customer Invoices
180
+
181
+ ### Example
182
+ ```ruby
183
+ # load the gem
184
+ require 'swagger_client'
185
+ # setup authorization
186
+ SwaggerClient.configure do |config|
187
+ # Configure API key authorization: ApiKeyAuth
188
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
189
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
190
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
191
+ end
192
+
193
+ api_instance = SwaggerClient::PaymentsApi.new
194
+ customer_id = 'customer_id_example' # String | The id of the customer to retrieve
195
+
196
+
197
+ begin
198
+ #List Customer Invoices
199
+ result = api_instance.get_invoices_for_customer(customer_id)
200
+ p result
201
+ rescue SwaggerClient::ApiError => e
202
+ puts "Exception when calling PaymentsApi->get_invoices_for_customer: #{e}"
203
+ end
204
+ ```
205
+
206
+ ### Parameters
207
+
208
+ Name | Type | Description | Notes
209
+ ------------- | ------------- | ------------- | -------------
210
+ **customer_id** | **String**| The id of the customer to retrieve |
211
+
212
+ ### Return type
213
+
214
+ [**InlineResponse2004**](InlineResponse2004.md)
215
+
216
+ ### Authorization
217
+
218
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
219
+
220
+ ### HTTP request headers
221
+
222
+ - **Content-Type**: Not defined
223
+ - **Accept**: application/json
224
+
225
+
226
+
227
+ # **get_payments_for_customer**
228
+ > InlineResponse2003 get_payments_for_customer(customer_id, opts)
229
+
230
+ List Customer Payments
231
+
232
+ List Customer Payment
233
+
234
+ ### Example
235
+ ```ruby
236
+ # load the gem
237
+ require 'swagger_client'
238
+ # setup authorization
239
+ SwaggerClient.configure do |config|
240
+ # Configure API key authorization: ApiKeyAuth
241
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
242
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
243
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
244
+ end
245
+
246
+ api_instance = SwaggerClient::PaymentsApi.new
247
+ customer_id = 'customer_id_example' # String | The id of the customer to retrieve
248
+ opts = {
249
+ limit: 56, # Integer | How many items to return at one time (max 100)
250
+ last_key: 'last_key_example', # String | The key to be used in pagination to say what the last key of the previous page was
251
+ name: 'name_example' # String | The name to search for
252
+ }
253
+
254
+ begin
255
+ #List Customer Payments
256
+ result = api_instance.get_payments_for_customer(customer_id, opts)
257
+ p result
258
+ rescue SwaggerClient::ApiError => e
259
+ puts "Exception when calling PaymentsApi->get_payments_for_customer: #{e}"
260
+ end
261
+ ```
262
+
263
+ ### Parameters
264
+
265
+ Name | Type | Description | Notes
266
+ ------------- | ------------- | ------------- | -------------
267
+ **customer_id** | **String**| The id of the customer to retrieve |
268
+ **limit** | **Integer**| How many items to return at one time (max 100) | [optional]
269
+ **last_key** | **String**| The key to be used in pagination to say what the last key of the previous page was | [optional]
270
+ **name** | **String**| The name to search for | [optional]
271
+
272
+ ### Return type
273
+
274
+ [**InlineResponse2003**](InlineResponse2003.md)
275
+
276
+ ### Authorization
277
+
278
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
279
+
280
+ ### HTTP request headers
281
+
282
+ - **Content-Type**: Not defined
283
+ - **Accept**: application/json
284
+
285
+
286
+
287
+ # **list_payment**
288
+ > InlineResponse2007 list_payment(opts)
289
+
290
+ List
291
+
292
+ List all payment
293
+
294
+ ### Example
295
+ ```ruby
296
+ # load the gem
297
+ require 'swagger_client'
298
+ # setup authorization
299
+ SwaggerClient.configure do |config|
300
+ # Configure API key authorization: ApiKeyAuth
301
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
302
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
303
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
304
+ end
305
+
306
+ api_instance = SwaggerClient::PaymentsApi.new
307
+ opts = {
308
+ limit: 56, # Integer | How many items to return at one time (max 100)
309
+ last_key: 'last_key_example', # String | The key to be used in pagination to say what the last key of the previous page was
310
+ name: 'name_example' # String | The name to search for
311
+ }
312
+
313
+ begin
314
+ #List
315
+ result = api_instance.list_payment(opts)
316
+ p result
317
+ rescue SwaggerClient::ApiError => e
318
+ puts "Exception when calling PaymentsApi->list_payment: #{e}"
319
+ end
320
+ ```
321
+
322
+ ### Parameters
323
+
324
+ Name | Type | Description | Notes
325
+ ------------- | ------------- | ------------- | -------------
326
+ **limit** | **Integer**| How many items to return at one time (max 100) | [optional]
327
+ **last_key** | **String**| The key to be used in pagination to say what the last key of the previous page was | [optional]
328
+ **name** | **String**| The name to search for | [optional]
329
+
330
+ ### Return type
331
+
332
+ [**InlineResponse2007**](InlineResponse2007.md)
333
+
334
+ ### Authorization
335
+
336
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
337
+
338
+ ### HTTP request headers
339
+
340
+ - **Content-Type**: Not defined
341
+ - **Accept**: application/json
342
+
343
+
344
+
345
+ # **refund_payment**
346
+ > String refund_payment(bodypayment_id)
347
+
348
+ Refund Payment
349
+
350
+ Issue a refund for payment
351
+
352
+ ### Example
353
+ ```ruby
354
+ # load the gem
355
+ require 'swagger_client'
356
+ # setup authorization
357
+ SwaggerClient.configure do |config|
358
+ # Configure API key authorization: ApiKeyAuth
359
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
360
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
361
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
362
+ end
363
+
364
+ api_instance = SwaggerClient::PaymentsApi.new
365
+ body = SwaggerClient::IssueRefundPayment.new # IssueRefundPayment |
366
+ payment_id = 'payment_id_example' # String | The id of the payment
367
+
368
+
369
+ begin
370
+ #Refund Payment
371
+ result = api_instance.refund_payment(bodypayment_id)
372
+ p result
373
+ rescue SwaggerClient::ApiError => e
374
+ puts "Exception when calling PaymentsApi->refund_payment: #{e}"
375
+ end
376
+ ```
377
+
378
+ ### Parameters
379
+
380
+ Name | Type | Description | Notes
381
+ ------------- | ------------- | ------------- | -------------
382
+ **body** | [**IssueRefundPayment**](IssueRefundPayment.md)| |
383
+ **payment_id** | **String**| The id of the payment |
384
+
385
+ ### Return type
386
+
387
+ **String**
388
+
389
+ ### Authorization
390
+
391
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
392
+
393
+ ### HTTP request headers
394
+
395
+ - **Content-Type**: application/json
396
+ - **Accept**: application/json
397
+
398
+
399
+
data/docs/Price.md ADDED
@@ -0,0 +1,14 @@
1
+ # SwaggerClient::Price
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | | [optional]
7
+ **amount** | **Integer** | |
8
+ **currency** | **String** | Three-letter ISO currency code. Must be upper-case |
9
+ **external_reference** | **String** | | [optional]
10
+ **recurring** | **BOOLEAN** | |
11
+ **schedule** | **String** | Required if recurring is true | [optional]
12
+ **including_tax** | **BOOLEAN** | If the price is including tax. If false tax will be added on top of the price. | [optional]
13
+ **public** | **BOOLEAN** | | [optional]
14
+
data/docs/PricesApi.md ADDED
@@ -0,0 +1,122 @@
1
+ # SwaggerClient::PricesApi
2
+
3
+ All URIs are relative to *https://{customerId}.billabear.cloud/api/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create_price**](PricesApi.md#create_price) | **POST** /product/{productId}/price | Create
8
+ [**list_price**](PricesApi.md#list_price) | **GET** /product/{productId}/price | List
9
+
10
+ # **create_price**
11
+ > String create_price(bodyproduct_id)
12
+
13
+ Create
14
+
15
+ Create a price
16
+
17
+ ### Example
18
+ ```ruby
19
+ # load the gem
20
+ require 'swagger_client'
21
+ # setup authorization
22
+ SwaggerClient.configure do |config|
23
+ # Configure API key authorization: ApiKeyAuth
24
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
25
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
26
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
27
+ end
28
+
29
+ api_instance = SwaggerClient::PricesApi.new
30
+ body = SwaggerClient::Price.new # Price |
31
+ product_id = 'product_id_example' # String | The id of the product to retrieve
32
+
33
+
34
+ begin
35
+ #Create
36
+ result = api_instance.create_price(bodyproduct_id)
37
+ p result
38
+ rescue SwaggerClient::ApiError => e
39
+ puts "Exception when calling PricesApi->create_price: #{e}"
40
+ end
41
+ ```
42
+
43
+ ### Parameters
44
+
45
+ Name | Type | Description | Notes
46
+ ------------- | ------------- | ------------- | -------------
47
+ **body** | [**Price**](Price.md)| |
48
+ **product_id** | **String**| The id of the product to retrieve |
49
+
50
+ ### Return type
51
+
52
+ **String**
53
+
54
+ ### Authorization
55
+
56
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
57
+
58
+ ### HTTP request headers
59
+
60
+ - **Content-Type**: application/json
61
+ - **Accept**: application/json
62
+
63
+
64
+
65
+ # **list_price**
66
+ > InlineResponse2009 list_price(product_id, opts)
67
+
68
+ List
69
+
70
+ List all prices
71
+
72
+ ### Example
73
+ ```ruby
74
+ # load the gem
75
+ require 'swagger_client'
76
+ # setup authorization
77
+ SwaggerClient.configure do |config|
78
+ # Configure API key authorization: ApiKeyAuth
79
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
80
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
81
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
82
+ end
83
+
84
+ api_instance = SwaggerClient::PricesApi.new
85
+ product_id = 'product_id_example' # String | The id of the product to retrieve
86
+ opts = {
87
+ limit: 56, # Integer | How many items to return at one time (max 100)
88
+ last_key: 'last_key_example' # String | The key to be used in pagination to say what the last key of the previous page was
89
+ }
90
+
91
+ begin
92
+ #List
93
+ result = api_instance.list_price(product_id, opts)
94
+ p result
95
+ rescue SwaggerClient::ApiError => e
96
+ puts "Exception when calling PricesApi->list_price: #{e}"
97
+ end
98
+ ```
99
+
100
+ ### Parameters
101
+
102
+ Name | Type | Description | Notes
103
+ ------------- | ------------- | ------------- | -------------
104
+ **product_id** | **String**| The id of the product to retrieve |
105
+ **limit** | **Integer**| How many items to return at one time (max 100) | [optional]
106
+ **last_key** | **String**| The key to be used in pagination to say what the last key of the previous page was | [optional]
107
+
108
+ ### Return type
109
+
110
+ [**InlineResponse2009**](InlineResponse2009.md)
111
+
112
+ ### Authorization
113
+
114
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
115
+
116
+ ### HTTP request headers
117
+
118
+ - **Content-Type**: Not defined
119
+ - **Accept**: application/json
120
+
121
+
122
+
data/docs/Product.md ADDED
@@ -0,0 +1,10 @@
1
+ # SwaggerClient::Product
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | | [optional]
7
+ **name** | **String** | |
8
+ **external_reference** | **String** | The reference given by the payment provider | [optional]
9
+ **tax_type** | [**ProductTaxType**](ProductTaxType.md) | | [optional]
10
+
@@ -0,0 +1,9 @@
1
+ # SwaggerClient::ProductTaxType
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | | [optional]
7
+ **name** | **String** | |
8
+ **default** | **BOOLEAN** | | [optional]
9
+