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
data/README.md ADDED
@@ -0,0 +1,1340 @@
1
+ # swagger_client
2
+
3
+ SwaggerClient - the Ruby gem for the BillaBear
4
+
5
+ The REST API provided by BillaBear
6
+
7
+ This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
+
9
+ - API version: 1.0.0
10
+ - Package version: 1.0.0
11
+ - Build package: io.swagger.codegen.v3.generators.ruby.RubyClientCodegen
12
+ For more information, please visit [http://www.billabear.com/support](http://www.billabear.com/support)
13
+
14
+ ## Installation
15
+
16
+ ### Build a gem
17
+
18
+ To build the Ruby code into a gem:
19
+
20
+ ```shell
21
+ gem build swagger_client.gemspec
22
+ ```
23
+
24
+ Then either install the gem locally:
25
+
26
+ ```shell
27
+ gem install ./swagger_client-1.0.0.gem
28
+ ```
29
+ (for development, run `gem install --dev ./swagger_client-1.0.0.gem` to install the development dependencies)
30
+
31
+ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
+
33
+ Finally add this to the Gemfile:
34
+
35
+ gem 'swagger_client', '~> 1.0.0'
36
+
37
+ ### Install from Git
38
+
39
+ If the Ruby gem is hosted at a git repository: https://github.com/billabear/ruby-sdk, then add the following in the Gemfile:
40
+
41
+ gem 'swagger_client', :git => 'https://github.com/billabear/ruby-sdk.git'
42
+
43
+ ### Include the Ruby code directly
44
+
45
+ Include the Ruby code directly using `-I` as follows:
46
+
47
+ ```shell
48
+ ruby -Ilib script.rb
49
+ ```
50
+
51
+ ## Getting Started
52
+
53
+ Please follow the [installation](#installation) procedure and then run the following code:
54
+ ```ruby
55
+ # Load the gem
56
+ require 'swagger_client'
57
+ # Setup authorization
58
+ SwaggerClient.configure do |config|
59
+ # Configure API key authorization: ApiKeyAuth
60
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
61
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
62
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
63
+ end
64
+
65
+ api_instance = SwaggerClient::CheckoutApi.new
66
+ body = SwaggerClient::CheckoutBody.new # CheckoutBody |
67
+
68
+
69
+ begin
70
+ #Create Checkout
71
+ result = api_instance.create_checkout(body)
72
+ p result
73
+ rescue SwaggerClient::ApiError => e
74
+ puts "Exception when calling CheckoutApi->create_checkout: #{e}"
75
+ end
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::CustomersApi.new
85
+ body = SwaggerClient::SeatsAddBody.new # SeatsAddBody |
86
+ subscription_id = 'subscription_id_example' # String | The id of the subscription to retrieve
87
+
88
+
89
+ begin
90
+ #Add Seats
91
+ result = api_instance.add_seats_subscriptions(body, subscription_id)
92
+ p result
93
+ rescue SwaggerClient::ApiError => e
94
+ puts "Exception when calling CustomersApi->add_seats_subscriptions: #{e}"
95
+ end
96
+ # Setup authorization
97
+ SwaggerClient.configure do |config|
98
+ # Configure API key authorization: ApiKeyAuth
99
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
100
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
101
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
102
+ end
103
+
104
+ api_instance = SwaggerClient::CustomersApi.new
105
+ body = SwaggerClient::VoucherCode.new # VoucherCode |
106
+ customer_id = 'customer_id_example' # String | The id of the customer to retrieve
107
+
108
+
109
+ begin
110
+ #Apply voucher
111
+ result = api_instance.apply_voucher_to_customer(body, customer_id)
112
+ p result
113
+ rescue SwaggerClient::ApiError => e
114
+ puts "Exception when calling CustomersApi->apply_voucher_to_customer: #{e}"
115
+ end
116
+ # Setup authorization
117
+ SwaggerClient.configure do |config|
118
+ # Configure API key authorization: ApiKeyAuth
119
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
120
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
121
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
122
+ end
123
+
124
+ api_instance = SwaggerClient::CustomersApi.new
125
+ body = SwaggerClient::Customer.new # Customer |
126
+
127
+
128
+ begin
129
+ #Create
130
+ result = api_instance.create_customer(body)
131
+ p result
132
+ rescue SwaggerClient::ApiError => e
133
+ puts "Exception when calling CustomersApi->create_customer: #{e}"
134
+ end
135
+ # Setup authorization
136
+ SwaggerClient.configure do |config|
137
+ # Configure API key authorization: ApiKeyAuth
138
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
139
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
140
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
141
+ end
142
+
143
+ api_instance = SwaggerClient::CustomersApi.new
144
+ customer_id = 'customer_id_example' # String | The id of the customer to retrieve
145
+
146
+
147
+ begin
148
+ #Disable Customer
149
+ result = api_instance.disable_customer(customer_id)
150
+ p result
151
+ rescue SwaggerClient::ApiError => e
152
+ puts "Exception when calling CustomersApi->disable_customer: #{e}"
153
+ end
154
+ # Setup authorization
155
+ SwaggerClient.configure do |config|
156
+ # Configure API key authorization: ApiKeyAuth
157
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
158
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
159
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
160
+ end
161
+
162
+ api_instance = SwaggerClient::CustomersApi.new
163
+ customer_id = 'customer_id_example' # String | The id of the customer to retrieve
164
+
165
+
166
+ begin
167
+ #Enable Customer
168
+ result = api_instance.enable_customer(customer_id)
169
+ p result
170
+ rescue SwaggerClient::ApiError => e
171
+ puts "Exception when calling CustomersApi->enable_customer: #{e}"
172
+ end
173
+ # Setup authorization
174
+ SwaggerClient.configure do |config|
175
+ # Configure API key authorization: ApiKeyAuth
176
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
177
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
178
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
179
+ end
180
+
181
+ api_instance = SwaggerClient::CustomersApi.new
182
+ customer_id = 'customer_id_example' # String | The id of the customer to retrieve
183
+
184
+
185
+ begin
186
+ #List Customer Active Subscriptions
187
+ result = api_instance.get_active_for_customer(customer_id)
188
+ p result
189
+ rescue SwaggerClient::ApiError => e
190
+ puts "Exception when calling CustomersApi->get_active_for_customer: #{e}"
191
+ end
192
+ # Setup authorization
193
+ SwaggerClient.configure do |config|
194
+ # Configure API key authorization: ApiKeyAuth
195
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
196
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
197
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
198
+ end
199
+
200
+ api_instance = SwaggerClient::CustomersApi.new
201
+ opts = {
202
+ limit: 56, # Integer | How many items to return at one time (max 100)
203
+ last_key: 'last_key_example', # String | The key to be used in pagination to say what the last key of the previous page was
204
+ email: 'email_example', # String | The email to search for
205
+ country: 'country_example', # String | The country code to search for
206
+ reference: 'reference_example', # String | The reference to search for
207
+ external_reference: 'external_reference_example' # String | The external reference to search for
208
+ }
209
+
210
+ begin
211
+ #List
212
+ result = api_instance.get_all_customers(opts)
213
+ p result
214
+ rescue SwaggerClient::ApiError => e
215
+ puts "Exception when calling CustomersApi->get_all_customers: #{e}"
216
+ end
217
+ # Setup authorization
218
+ SwaggerClient.configure do |config|
219
+ # Configure API key authorization: ApiKeyAuth
220
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
221
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
222
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
223
+ end
224
+
225
+ api_instance = SwaggerClient::CustomersApi.new
226
+ customer_id = 'customer_id_example' # String | The id of the customer to retrieve
227
+
228
+
229
+ begin
230
+ #Detail
231
+ result = api_instance.get_customer_by_id(customer_id)
232
+ p result
233
+ rescue SwaggerClient::ApiError => e
234
+ puts "Exception when calling CustomersApi->get_customer_by_id: #{e}"
235
+ end
236
+ # Setup authorization
237
+ SwaggerClient.configure do |config|
238
+ # Configure API key authorization: ApiKeyAuth
239
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
240
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
241
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
242
+ end
243
+
244
+ api_instance = SwaggerClient::CustomersApi.new
245
+ customer_id = 'customer_id_example' # String | The id of the customer to retrieve
246
+
247
+
248
+ begin
249
+ #Fetch Customer Limits
250
+ result = api_instance.get_customer_limits_by_id(customer_id)
251
+ p result
252
+ rescue SwaggerClient::ApiError => e
253
+ puts "Exception when calling CustomersApi->get_customer_limits_by_id: #{e}"
254
+ end
255
+ # Setup authorization
256
+ SwaggerClient.configure do |config|
257
+ # Configure API key authorization: ApiKeyAuth
258
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
259
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
260
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
261
+ end
262
+
263
+ api_instance = SwaggerClient::CustomersApi.new
264
+ customer_id = 'customer_id_example' # String | The id of the customer to retrieve
265
+
266
+
267
+ begin
268
+ #List Customer Subscriptions
269
+ result = api_instance.get_for_customer(customer_id)
270
+ p result
271
+ rescue SwaggerClient::ApiError => e
272
+ puts "Exception when calling CustomersApi->get_for_customer: #{e}"
273
+ end
274
+ # Setup authorization
275
+ SwaggerClient.configure do |config|
276
+ # Configure API key authorization: ApiKeyAuth
277
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
278
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
279
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
280
+ end
281
+
282
+ api_instance = SwaggerClient::CustomersApi.new
283
+ customer_id = 'customer_id_example' # String | The id of the customer to retrieve
284
+
285
+
286
+ begin
287
+ #List Customer Invoices
288
+ result = api_instance.get_invoices_for_customer(customer_id)
289
+ p result
290
+ rescue SwaggerClient::ApiError => e
291
+ puts "Exception when calling CustomersApi->get_invoices_for_customer: #{e}"
292
+ end
293
+ # Setup authorization
294
+ SwaggerClient.configure do |config|
295
+ # Configure API key authorization: ApiKeyAuth
296
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
297
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
298
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
299
+ end
300
+
301
+ api_instance = SwaggerClient::CustomersApi.new
302
+ customer_id = 'customer_id_example' # String | The id of the customer to retrieve
303
+ opts = {
304
+ limit: 56, # Integer | How many items to return at one time (max 100)
305
+ last_key: 'last_key_example', # String | The key to be used in pagination to say what the last key of the previous page was
306
+ name: 'name_example' # String | The name to search for
307
+ }
308
+
309
+ begin
310
+ #List Customer Payments
311
+ result = api_instance.get_payments_for_customer(customer_id, opts)
312
+ p result
313
+ rescue SwaggerClient::ApiError => e
314
+ puts "Exception when calling CustomersApi->get_payments_for_customer: #{e}"
315
+ end
316
+ # Setup authorization
317
+ SwaggerClient.configure do |config|
318
+ # Configure API key authorization: ApiKeyAuth
319
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
320
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
321
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
322
+ end
323
+
324
+ api_instance = SwaggerClient::CustomersApi.new
325
+ customer_id = 'customer_id_example' # String | The id of the customer to retrieve
326
+ opts = {
327
+ limit: 56, # Integer | How many items to return at one time (max 100)
328
+ last_key: 'last_key_example', # String | The key to be used in pagination to say what the last key of the previous page was
329
+ name: 'name_example' # String | The name to search for
330
+ }
331
+
332
+ begin
333
+ #List Customer Refunds
334
+ result = api_instance.get_refunds_for_customer(customer_id, opts)
335
+ p result
336
+ rescue SwaggerClient::ApiError => e
337
+ puts "Exception when calling CustomersApi->get_refunds_for_customer: #{e}"
338
+ end
339
+ # Setup authorization
340
+ SwaggerClient.configure do |config|
341
+ # Configure API key authorization: ApiKeyAuth
342
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
343
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
344
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
345
+ end
346
+
347
+ api_instance = SwaggerClient::CustomersApi.new
348
+ customer_id = 'customer_id_example' # String | The id of the customer to retrieve
349
+
350
+
351
+ begin
352
+ #List Customer's Payment Details
353
+ result = api_instance.list_payment_details(customer_id)
354
+ p result
355
+ rescue SwaggerClient::ApiError => e
356
+ puts "Exception when calling CustomersApi->list_payment_details: #{e}"
357
+ end
358
+ # Setup authorization
359
+ SwaggerClient.configure do |config|
360
+ # Configure API key authorization: ApiKeyAuth
361
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
362
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
363
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
364
+ end
365
+
366
+ api_instance = SwaggerClient::CustomersApi.new
367
+ body = SwaggerClient::SeatsRemoveBody.new # SeatsRemoveBody |
368
+ subscription_id = 'subscription_id_example' # String | The id of the subscription to retrieve
369
+
370
+
371
+ begin
372
+ #Remove Seats
373
+ result = api_instance.remove_seats_subscriptions(body, subscription_id)
374
+ p result
375
+ rescue SwaggerClient::ApiError => e
376
+ puts "Exception when calling CustomersApi->remove_seats_subscriptions: #{e}"
377
+ end
378
+ # Setup authorization
379
+ SwaggerClient.configure do |config|
380
+ # Configure API key authorization: ApiKeyAuth
381
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
382
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
383
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
384
+ end
385
+
386
+ api_instance = SwaggerClient::CustomersApi.new
387
+ body = SwaggerClient::Customer.new # Customer |
388
+ customer_id = 'customer_id_example' # String | The id of the customer to retrieve
389
+
390
+
391
+ begin
392
+ #Update
393
+ result = api_instance.update_customer(body, customer_id)
394
+ p result
395
+ rescue SwaggerClient::ApiError => e
396
+ puts "Exception when calling CustomersApi->update_customer: #{e}"
397
+ end
398
+ # Setup authorization
399
+ SwaggerClient.configure do |config|
400
+ # Configure API key authorization: ApiKeyAuth
401
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
402
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
403
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
404
+ end
405
+
406
+ api_instance = SwaggerClient::InvoicesApi.new
407
+ invoice_id = 'invoice_id_example' # String | The id of the invoice
408
+
409
+
410
+ begin
411
+ #Charge Invoice
412
+ result = api_instance.charge_invoice(invoice_id)
413
+ p result
414
+ rescue SwaggerClient::ApiError => e
415
+ puts "Exception when calling InvoicesApi->charge_invoice: #{e}"
416
+ end
417
+ # Setup authorization
418
+ SwaggerClient.configure do |config|
419
+ # Configure API key authorization: ApiKeyAuth
420
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
421
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
422
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
423
+ end
424
+
425
+ api_instance = SwaggerClient::InvoicesApi.new
426
+ invoice_id = 'invoice_id_example' # String | The id of the invoice
427
+
428
+
429
+ begin
430
+ #Download Invoice
431
+ result = api_instance.download_invoice(invoice_id)
432
+ p result
433
+ rescue SwaggerClient::ApiError => e
434
+ puts "Exception when calling InvoicesApi->download_invoice: #{e}"
435
+ end
436
+ # Setup authorization
437
+ SwaggerClient.configure do |config|
438
+ # Configure API key authorization: ApiKeyAuth
439
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
440
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
441
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
442
+ end
443
+
444
+ api_instance = SwaggerClient::InvoicesApi.new
445
+ customer_id = 'customer_id_example' # String | The id of the customer to retrieve
446
+
447
+
448
+ begin
449
+ #List Customer Invoices
450
+ result = api_instance.get_invoices_for_customer(customer_id)
451
+ p result
452
+ rescue SwaggerClient::ApiError => e
453
+ puts "Exception when calling InvoicesApi->get_invoices_for_customer: #{e}"
454
+ end
455
+ # Setup authorization
456
+ SwaggerClient.configure do |config|
457
+ # Configure API key authorization: ApiKeyAuth
458
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
459
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
460
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
461
+ end
462
+
463
+ api_instance = SwaggerClient::PaymentDetailsApi.new
464
+ body = SwaggerClient::FrontendToken.new # FrontendToken |
465
+ customer_id = 'customer_id_example' # String | The id of the customer to retrieve
466
+
467
+
468
+ begin
469
+ #Complete Frontend Detail Collection
470
+ result = api_instance.complete_frontend_payment_details(body, customer_id)
471
+ p result
472
+ rescue SwaggerClient::ApiError => e
473
+ puts "Exception when calling PaymentDetailsApi->complete_frontend_payment_details: #{e}"
474
+ end
475
+ # Setup authorization
476
+ SwaggerClient.configure do |config|
477
+ # Configure API key authorization: ApiKeyAuth
478
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
479
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
480
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
481
+ end
482
+
483
+ api_instance = SwaggerClient::PaymentDetailsApi.new
484
+ payment_details_id = 'payment_details_id_example' # String | The id of the payment details
485
+
486
+
487
+ begin
488
+ #Delete
489
+ result = api_instance.delete_payment_details(payment_details_id)
490
+ p result
491
+ rescue SwaggerClient::ApiError => e
492
+ puts "Exception when calling PaymentDetailsApi->delete_payment_details: #{e}"
493
+ end
494
+ # Setup authorization
495
+ SwaggerClient.configure do |config|
496
+ # Configure API key authorization: ApiKeyAuth
497
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
498
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
499
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
500
+ end
501
+
502
+ api_instance = SwaggerClient::PaymentDetailsApi.new
503
+ customer_id = 'customer_id_example' # String | The id of the customer to retrieve
504
+ payment_details_id = 'payment_details_id_example' # String | The id of the payment details
505
+
506
+
507
+ begin
508
+ #Delete With Customer
509
+ result = api_instance.delete_payment_details_customer(customer_id, payment_details_id)
510
+ p result
511
+ rescue SwaggerClient::ApiError => e
512
+ puts "Exception when calling PaymentDetailsApi->delete_payment_details_customer: #{e}"
513
+ end
514
+ # Setup authorization
515
+ SwaggerClient.configure do |config|
516
+ # Configure API key authorization: ApiKeyAuth
517
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
518
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
519
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
520
+ end
521
+
522
+ api_instance = SwaggerClient::PaymentDetailsApi.new
523
+ payment_details_id = 'payment_details_id_example' # String | The id of the payment details
524
+
525
+
526
+ begin
527
+ #Fetch
528
+ result = api_instance.get_payment_details(payment_details_id)
529
+ p result
530
+ rescue SwaggerClient::ApiError => e
531
+ puts "Exception when calling PaymentDetailsApi->get_payment_details: #{e}"
532
+ end
533
+ # Setup authorization
534
+ SwaggerClient.configure do |config|
535
+ # Configure API key authorization: ApiKeyAuth
536
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
537
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
538
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
539
+ end
540
+
541
+ api_instance = SwaggerClient::PaymentDetailsApi.new
542
+ customer_id = 'customer_id_example' # String | The id of the customer to retrieve
543
+
544
+
545
+ begin
546
+ #List Customer's Payment Details
547
+ result = api_instance.list_payment_details(customer_id)
548
+ p result
549
+ rescue SwaggerClient::ApiError => e
550
+ puts "Exception when calling PaymentDetailsApi->list_payment_details: #{e}"
551
+ end
552
+ # Setup authorization
553
+ SwaggerClient.configure do |config|
554
+ # Configure API key authorization: ApiKeyAuth
555
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
556
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
557
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
558
+ end
559
+
560
+ api_instance = SwaggerClient::PaymentDetailsApi.new
561
+ customer_id = 'customer_id_example' # String | The id of the customer to retrieve
562
+ payment_details_id = 'payment_details_id_example' # String | The id of the payment details
563
+
564
+
565
+ begin
566
+ #Make Default
567
+ result = api_instance.make_default_payment_details(customer_id, payment_details_id)
568
+ p result
569
+ rescue SwaggerClient::ApiError => e
570
+ puts "Exception when calling PaymentDetailsApi->make_default_payment_details: #{e}"
571
+ end
572
+ # Setup authorization
573
+ SwaggerClient.configure do |config|
574
+ # Configure API key authorization: ApiKeyAuth
575
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
576
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
577
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
578
+ end
579
+
580
+ api_instance = SwaggerClient::PaymentDetailsApi.new
581
+ customer_id = 'customer_id_example' # String | The id of the customer to retrieve
582
+ payment_details_id = 'payment_details_id_example' # String | The id of the payment details
583
+
584
+
585
+ begin
586
+ #Make Default With Customer
587
+ result = api_instance.make_default_payment_details_customer(customer_id, payment_details_id)
588
+ p result
589
+ rescue SwaggerClient::ApiError => e
590
+ puts "Exception when calling PaymentDetailsApi->make_default_payment_details_customer: #{e}"
591
+ end
592
+ # Setup authorization
593
+ SwaggerClient.configure do |config|
594
+ # Configure API key authorization: ApiKeyAuth
595
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
596
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
597
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
598
+ end
599
+
600
+ api_instance = SwaggerClient::PaymentDetailsApi.new
601
+ customer_id = 'customer_id_example' # String | The id of the customer to retrieve
602
+
603
+
604
+ begin
605
+ #Start Frontend Detail Collection
606
+ result = api_instance.start_frontend_payment_details(customer_id)
607
+ p result
608
+ rescue SwaggerClient::ApiError => e
609
+ puts "Exception when calling PaymentDetailsApi->start_frontend_payment_details: #{e}"
610
+ end
611
+ # Setup authorization
612
+ SwaggerClient.configure do |config|
613
+ # Configure API key authorization: ApiKeyAuth
614
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
615
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
616
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
617
+ end
618
+
619
+ api_instance = SwaggerClient::PaymentsApi.new
620
+ invoice_id = 'invoice_id_example' # String | The id of the invoice
621
+
622
+
623
+ begin
624
+ #Charge Invoice
625
+ result = api_instance.charge_invoice(invoice_id)
626
+ p result
627
+ rescue SwaggerClient::ApiError => e
628
+ puts "Exception when calling PaymentsApi->charge_invoice: #{e}"
629
+ end
630
+ # Setup authorization
631
+ SwaggerClient.configure do |config|
632
+ # Configure API key authorization: ApiKeyAuth
633
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
634
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
635
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
636
+ end
637
+
638
+ api_instance = SwaggerClient::PaymentsApi.new
639
+ invoice_id = 'invoice_id_example' # String | The id of the invoice
640
+
641
+
642
+ begin
643
+ #Download Invoice
644
+ result = api_instance.download_invoice(invoice_id)
645
+ p result
646
+ rescue SwaggerClient::ApiError => e
647
+ puts "Exception when calling PaymentsApi->download_invoice: #{e}"
648
+ end
649
+ # Setup authorization
650
+ SwaggerClient.configure do |config|
651
+ # Configure API key authorization: ApiKeyAuth
652
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
653
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
654
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
655
+ end
656
+
657
+ api_instance = SwaggerClient::PaymentsApi.new
658
+ receipt = 'receipt_example' # String | The id of the receipt
659
+
660
+
661
+ begin
662
+ #Download Receipt
663
+ result = api_instance.download_receipt(receipt)
664
+ p result
665
+ rescue SwaggerClient::ApiError => e
666
+ puts "Exception when calling PaymentsApi->download_receipt: #{e}"
667
+ end
668
+ # Setup authorization
669
+ SwaggerClient.configure do |config|
670
+ # Configure API key authorization: ApiKeyAuth
671
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
672
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
673
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
674
+ end
675
+
676
+ api_instance = SwaggerClient::PaymentsApi.new
677
+ customer_id = 'customer_id_example' # String | The id of the customer to retrieve
678
+
679
+
680
+ begin
681
+ #List Customer Invoices
682
+ result = api_instance.get_invoices_for_customer(customer_id)
683
+ p result
684
+ rescue SwaggerClient::ApiError => e
685
+ puts "Exception when calling PaymentsApi->get_invoices_for_customer: #{e}"
686
+ end
687
+ # Setup authorization
688
+ SwaggerClient.configure do |config|
689
+ # Configure API key authorization: ApiKeyAuth
690
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
691
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
692
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
693
+ end
694
+
695
+ api_instance = SwaggerClient::PaymentsApi.new
696
+ customer_id = 'customer_id_example' # String | The id of the customer to retrieve
697
+ opts = {
698
+ limit: 56, # Integer | How many items to return at one time (max 100)
699
+ last_key: 'last_key_example', # String | The key to be used in pagination to say what the last key of the previous page was
700
+ name: 'name_example' # String | The name to search for
701
+ }
702
+
703
+ begin
704
+ #List Customer Payments
705
+ result = api_instance.get_payments_for_customer(customer_id, opts)
706
+ p result
707
+ rescue SwaggerClient::ApiError => e
708
+ puts "Exception when calling PaymentsApi->get_payments_for_customer: #{e}"
709
+ end
710
+ # Setup authorization
711
+ SwaggerClient.configure do |config|
712
+ # Configure API key authorization: ApiKeyAuth
713
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
714
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
715
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
716
+ end
717
+
718
+ api_instance = SwaggerClient::PaymentsApi.new
719
+ opts = {
720
+ limit: 56, # Integer | How many items to return at one time (max 100)
721
+ last_key: 'last_key_example', # String | The key to be used in pagination to say what the last key of the previous page was
722
+ name: 'name_example' # String | The name to search for
723
+ }
724
+
725
+ begin
726
+ #List
727
+ result = api_instance.list_payment(opts)
728
+ p result
729
+ rescue SwaggerClient::ApiError => e
730
+ puts "Exception when calling PaymentsApi->list_payment: #{e}"
731
+ end
732
+ # Setup authorization
733
+ SwaggerClient.configure do |config|
734
+ # Configure API key authorization: ApiKeyAuth
735
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
736
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
737
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
738
+ end
739
+
740
+ api_instance = SwaggerClient::PaymentsApi.new
741
+ body = SwaggerClient::IssueRefundPayment.new # IssueRefundPayment |
742
+ payment_id = 'payment_id_example' # String | The id of the payment
743
+
744
+
745
+ begin
746
+ #Refund Payment
747
+ result = api_instance.refund_payment(body, payment_id)
748
+ p result
749
+ rescue SwaggerClient::ApiError => e
750
+ puts "Exception when calling PaymentsApi->refund_payment: #{e}"
751
+ end
752
+ # Setup authorization
753
+ SwaggerClient.configure do |config|
754
+ # Configure API key authorization: ApiKeyAuth
755
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
756
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
757
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
758
+ end
759
+
760
+ api_instance = SwaggerClient::PricesApi.new
761
+ body = SwaggerClient::Price.new # Price |
762
+ product_id = 'product_id_example' # String | The id of the product to retrieve
763
+
764
+
765
+ begin
766
+ #Create
767
+ result = api_instance.create_price(body, product_id)
768
+ p result
769
+ rescue SwaggerClient::ApiError => e
770
+ puts "Exception when calling PricesApi->create_price: #{e}"
771
+ end
772
+ # Setup authorization
773
+ SwaggerClient.configure do |config|
774
+ # Configure API key authorization: ApiKeyAuth
775
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
776
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
777
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
778
+ end
779
+
780
+ api_instance = SwaggerClient::PricesApi.new
781
+ product_id = 'product_id_example' # String | The id of the product to retrieve
782
+ opts = {
783
+ limit: 56, # Integer | How many items to return at one time (max 100)
784
+ last_key: 'last_key_example' # String | The key to be used in pagination to say what the last key of the previous page was
785
+ }
786
+
787
+ begin
788
+ #List
789
+ result = api_instance.list_price(product_id, opts)
790
+ p result
791
+ rescue SwaggerClient::ApiError => e
792
+ puts "Exception when calling PricesApi->list_price: #{e}"
793
+ end
794
+ # Setup authorization
795
+ SwaggerClient.configure do |config|
796
+ # Configure API key authorization: ApiKeyAuth
797
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
798
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
799
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
800
+ end
801
+
802
+ api_instance = SwaggerClient::ProductsApi.new
803
+ body = SwaggerClient::Product.new # Product |
804
+
805
+
806
+ begin
807
+ #Create
808
+ result = api_instance.create_product(body)
809
+ p result
810
+ rescue SwaggerClient::ApiError => e
811
+ puts "Exception when calling ProductsApi->create_product: #{e}"
812
+ end
813
+ # Setup authorization
814
+ SwaggerClient.configure do |config|
815
+ # Configure API key authorization: ApiKeyAuth
816
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
817
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
818
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
819
+ end
820
+
821
+ api_instance = SwaggerClient::ProductsApi.new
822
+ opts = {
823
+ limit: 56, # Integer | How many items to return at one time (max 100)
824
+ last_key: 'last_key_example', # String | The key to be used in pagination to say what the last key of the previous page was
825
+ name: 'name_example' # String | The name to search for
826
+ }
827
+
828
+ begin
829
+ #List
830
+ result = api_instance.list_product(opts)
831
+ p result
832
+ rescue SwaggerClient::ApiError => e
833
+ puts "Exception when calling ProductsApi->list_product: #{e}"
834
+ end
835
+ # Setup authorization
836
+ SwaggerClient.configure do |config|
837
+ # Configure API key authorization: ApiKeyAuth
838
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
839
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
840
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
841
+ end
842
+
843
+ api_instance = SwaggerClient::ProductsApi.new
844
+ product_id = 'product_id_example' # String | The id of the product to retrieve
845
+
846
+
847
+ begin
848
+ #Detail
849
+ result = api_instance.show_product_by_id(product_id)
850
+ p result
851
+ rescue SwaggerClient::ApiError => e
852
+ puts "Exception when calling ProductsApi->show_product_by_id: #{e}"
853
+ end
854
+ # Setup authorization
855
+ SwaggerClient.configure do |config|
856
+ # Configure API key authorization: ApiKeyAuth
857
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
858
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
859
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
860
+ end
861
+
862
+ api_instance = SwaggerClient::ProductsApi.new
863
+ product_id = 'product_id_example' # String | The id of the product to retrieve
864
+
865
+
866
+ begin
867
+ #Update
868
+ result = api_instance.update_product(product_id)
869
+ p result
870
+ rescue SwaggerClient::ApiError => e
871
+ puts "Exception when calling ProductsApi->update_product: #{e}"
872
+ end
873
+ # Setup authorization
874
+ SwaggerClient.configure do |config|
875
+ # Configure API key authorization: ApiKeyAuth
876
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
877
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
878
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
879
+ end
880
+
881
+ api_instance = SwaggerClient::ReceiptApi.new
882
+ receipt = 'receipt_example' # String | The id of the receipt
883
+
884
+
885
+ begin
886
+ #Download Receipt
887
+ result = api_instance.download_receipt(receipt)
888
+ p result
889
+ rescue SwaggerClient::ApiError => e
890
+ puts "Exception when calling ReceiptApi->download_receipt: #{e}"
891
+ end
892
+ # Setup authorization
893
+ SwaggerClient.configure do |config|
894
+ # Configure API key authorization: ApiKeyAuth
895
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
896
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
897
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
898
+ end
899
+
900
+ api_instance = SwaggerClient::RefundsApi.new
901
+ customer_id = 'customer_id_example' # String | The id of the customer to retrieve
902
+ opts = {
903
+ limit: 56, # Integer | How many items to return at one time (max 100)
904
+ last_key: 'last_key_example', # String | The key to be used in pagination to say what the last key of the previous page was
905
+ name: 'name_example' # String | The name to search for
906
+ }
907
+
908
+ begin
909
+ #List Customer Refunds
910
+ result = api_instance.get_refunds_for_customer(customer_id, opts)
911
+ p result
912
+ rescue SwaggerClient::ApiError => e
913
+ puts "Exception when calling RefundsApi->get_refunds_for_customer: #{e}"
914
+ end
915
+ # Setup authorization
916
+ SwaggerClient.configure do |config|
917
+ # Configure API key authorization: ApiKeyAuth
918
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
919
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
920
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
921
+ end
922
+
923
+ api_instance = SwaggerClient::RefundsApi.new
924
+ opts = {
925
+ limit: 56, # Integer | How many items to return at one time (max 100)
926
+ last_key: 'last_key_example', # String | The key to be used in pagination to say what the last key of the previous page was
927
+ name: 'name_example' # String | The name to search for
928
+ }
929
+
930
+ begin
931
+ #List
932
+ result = api_instance.list_refund(opts)
933
+ p result
934
+ rescue SwaggerClient::ApiError => e
935
+ puts "Exception when calling RefundsApi->list_refund: #{e}"
936
+ end
937
+ # Setup authorization
938
+ SwaggerClient.configure do |config|
939
+ # Configure API key authorization: ApiKeyAuth
940
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
941
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
942
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
943
+ end
944
+
945
+ api_instance = SwaggerClient::RefundsApi.new
946
+ refund_id = 'refund_id_example' # String | The id of the refund
947
+
948
+
949
+ begin
950
+ #Detail
951
+ result = api_instance.show_refund_by_id(refund_id)
952
+ p result
953
+ rescue SwaggerClient::ApiError => e
954
+ puts "Exception when calling RefundsApi->show_refund_by_id: #{e}"
955
+ end
956
+ # Setup authorization
957
+ SwaggerClient.configure do |config|
958
+ # Configure API key authorization: ApiKeyAuth
959
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
960
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
961
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
962
+ end
963
+
964
+ api_instance = SwaggerClient::SubscriptionsApi.new
965
+ body = SwaggerClient::SeatsAddBody.new # SeatsAddBody |
966
+ subscription_id = 'subscription_id_example' # String | The id of the subscription to retrieve
967
+
968
+
969
+ begin
970
+ #Add Seats
971
+ result = api_instance.add_seats_subscriptions(body, subscription_id)
972
+ p result
973
+ rescue SwaggerClient::ApiError => e
974
+ puts "Exception when calling SubscriptionsApi->add_seats_subscriptions: #{e}"
975
+ end
976
+ # Setup authorization
977
+ SwaggerClient.configure do |config|
978
+ # Configure API key authorization: ApiKeyAuth
979
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
980
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
981
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
982
+ end
983
+
984
+ api_instance = SwaggerClient::SubscriptionsApi.new
985
+ body = SwaggerClient::SubscriptionIdCancelBody.new # SubscriptionIdCancelBody |
986
+ subscription_id = 'subscription_id_example' # String | The id of the subscription to retrieve
987
+
988
+
989
+ begin
990
+ #Cancel Subscription
991
+ result = api_instance.cancel_subscription(body, subscription_id)
992
+ p result
993
+ rescue SwaggerClient::ApiError => e
994
+ puts "Exception when calling SubscriptionsApi->cancel_subscription: #{e}"
995
+ end
996
+ # Setup authorization
997
+ SwaggerClient.configure do |config|
998
+ # Configure API key authorization: ApiKeyAuth
999
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1000
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1001
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
1002
+ end
1003
+
1004
+ api_instance = SwaggerClient::SubscriptionsApi.new
1005
+ body = SwaggerClient::SubscriptionIdPriceBody.new # SubscriptionIdPriceBody |
1006
+ subscription_id = 'subscription_id_example' # String | The id of the subscription to retrieve
1007
+
1008
+
1009
+ begin
1010
+ #Change Price
1011
+ result = api_instance.change_subscription_price(body, subscription_id)
1012
+ p result
1013
+ rescue SwaggerClient::ApiError => e
1014
+ puts "Exception when calling SubscriptionsApi->change_subscription_price: #{e}"
1015
+ end
1016
+ # Setup authorization
1017
+ SwaggerClient.configure do |config|
1018
+ # Configure API key authorization: ApiKeyAuth
1019
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1020
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1021
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
1022
+ end
1023
+
1024
+ api_instance = SwaggerClient::SubscriptionsApi.new
1025
+ body = SwaggerClient::SubscriptionStartBody.new # SubscriptionStartBody |
1026
+ customer_id = 'customer_id_example' # String | The id of the customer to retrieve
1027
+
1028
+
1029
+ begin
1030
+ #Create Subscription
1031
+ result = api_instance.create_subscription(body, customer_id)
1032
+ p result
1033
+ rescue SwaggerClient::ApiError => e
1034
+ puts "Exception when calling SubscriptionsApi->create_subscription: #{e}"
1035
+ end
1036
+ # Setup authorization
1037
+ SwaggerClient.configure do |config|
1038
+ # Configure API key authorization: ApiKeyAuth
1039
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1040
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1041
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
1042
+ end
1043
+
1044
+ api_instance = SwaggerClient::SubscriptionsApi.new
1045
+ body = SwaggerClient::SubscriptionIdPlanBody.new # SubscriptionIdPlanBody |
1046
+ subscription_id = 'subscription_id_example' # String | The id of the subscription to retrieve
1047
+
1048
+
1049
+ begin
1050
+ #Change Subscription Plan
1051
+ result = api_instance.customer_change_subscription_plan(body, subscription_id)
1052
+ p result
1053
+ rescue SwaggerClient::ApiError => e
1054
+ puts "Exception when calling SubscriptionsApi->customer_change_subscription_plan: #{e}"
1055
+ end
1056
+ # Setup authorization
1057
+ SwaggerClient.configure do |config|
1058
+ # Configure API key authorization: ApiKeyAuth
1059
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1060
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1061
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
1062
+ end
1063
+
1064
+ api_instance = SwaggerClient::SubscriptionsApi.new
1065
+ body = SwaggerClient::SubscriptionIdExtendBody.new # SubscriptionIdExtendBody |
1066
+ subscription_id = 'subscription_id_example' # String | The id of the subscription to retrieve
1067
+
1068
+
1069
+ begin
1070
+ #Extend Trial Subscription
1071
+ result = api_instance.extend_trial(body, subscription_id)
1072
+ p result
1073
+ rescue SwaggerClient::ApiError => e
1074
+ puts "Exception when calling SubscriptionsApi->extend_trial: #{e}"
1075
+ end
1076
+ # Setup authorization
1077
+ SwaggerClient.configure do |config|
1078
+ # Configure API key authorization: ApiKeyAuth
1079
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1080
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1081
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
1082
+ end
1083
+
1084
+ api_instance = SwaggerClient::SubscriptionsApi.new
1085
+ customer_id = 'customer_id_example' # String | The id of the customer to retrieve
1086
+
1087
+
1088
+ begin
1089
+ #List Customer Active Subscriptions
1090
+ result = api_instance.get_active_for_customer(customer_id)
1091
+ p result
1092
+ rescue SwaggerClient::ApiError => e
1093
+ puts "Exception when calling SubscriptionsApi->get_active_for_customer: #{e}"
1094
+ end
1095
+ # Setup authorization
1096
+ SwaggerClient.configure do |config|
1097
+ # Configure API key authorization: ApiKeyAuth
1098
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1099
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1100
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
1101
+ end
1102
+
1103
+ api_instance = SwaggerClient::SubscriptionsApi.new
1104
+ customer_id = 'customer_id_example' # String | The id of the customer to retrieve
1105
+
1106
+
1107
+ begin
1108
+ #List Customer Subscriptions
1109
+ result = api_instance.get_for_customer(customer_id)
1110
+ p result
1111
+ rescue SwaggerClient::ApiError => e
1112
+ puts "Exception when calling SubscriptionsApi->get_for_customer: #{e}"
1113
+ end
1114
+ # Setup authorization
1115
+ SwaggerClient.configure do |config|
1116
+ # Configure API key authorization: ApiKeyAuth
1117
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1118
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1119
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
1120
+ end
1121
+
1122
+ api_instance = SwaggerClient::SubscriptionsApi.new
1123
+ opts = {
1124
+ limit: 56, # Integer | How many items to return at one time (max 100)
1125
+ last_key: 'last_key_example' # String | The key to be used in pagination to say what the last key of the previous page was
1126
+ }
1127
+
1128
+ begin
1129
+ #List Subscription Plans
1130
+ result = api_instance.list_subscription_plans(opts)
1131
+ p result
1132
+ rescue SwaggerClient::ApiError => e
1133
+ puts "Exception when calling SubscriptionsApi->list_subscription_plans: #{e}"
1134
+ end
1135
+ # Setup authorization
1136
+ SwaggerClient.configure do |config|
1137
+ # Configure API key authorization: ApiKeyAuth
1138
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1139
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1140
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
1141
+ end
1142
+
1143
+ api_instance = SwaggerClient::SubscriptionsApi.new
1144
+ opts = {
1145
+ limit: 56, # Integer | How many items to return at one time (max 100)
1146
+ last_key: 'last_key_example' # String | The key to be used in pagination to say what the last key of the previous page was
1147
+ }
1148
+
1149
+ begin
1150
+ #List
1151
+ result = api_instance.list_subscriptions(opts)
1152
+ p result
1153
+ rescue SwaggerClient::ApiError => e
1154
+ puts "Exception when calling SubscriptionsApi->list_subscriptions: #{e}"
1155
+ end
1156
+ # Setup authorization
1157
+ SwaggerClient.configure do |config|
1158
+ # Configure API key authorization: ApiKeyAuth
1159
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1160
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1161
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
1162
+ end
1163
+
1164
+ api_instance = SwaggerClient::SubscriptionsApi.new
1165
+ body = SwaggerClient::SeatsRemoveBody.new # SeatsRemoveBody |
1166
+ subscription_id = 'subscription_id_example' # String | The id of the subscription to retrieve
1167
+
1168
+
1169
+ begin
1170
+ #Remove Seats
1171
+ result = api_instance.remove_seats_subscriptions(body, subscription_id)
1172
+ p result
1173
+ rescue SwaggerClient::ApiError => e
1174
+ puts "Exception when calling SubscriptionsApi->remove_seats_subscriptions: #{e}"
1175
+ end
1176
+ # Setup authorization
1177
+ SwaggerClient.configure do |config|
1178
+ # Configure API key authorization: ApiKeyAuth
1179
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1180
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1181
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
1182
+ end
1183
+
1184
+ api_instance = SwaggerClient::SubscriptionsApi.new
1185
+ subscription_id = 'subscription_id_example' # String | The id of the subscription to retrieve
1186
+
1187
+
1188
+ begin
1189
+ #Detail
1190
+ result = api_instance.show_subscription_by_id(subscription_id)
1191
+ p result
1192
+ rescue SwaggerClient::ApiError => e
1193
+ puts "Exception when calling SubscriptionsApi->show_subscription_by_id: #{e}"
1194
+ end
1195
+ # Setup authorization
1196
+ SwaggerClient.configure do |config|
1197
+ # Configure API key authorization: ApiKeyAuth
1198
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1199
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1200
+ #config.api_key_prefix['X-API-Key'] = 'Bearer'
1201
+ end
1202
+
1203
+ api_instance = SwaggerClient::SubscriptionsApi.new
1204
+ body = SwaggerClient::SubscriptionTrialBody.new # SubscriptionTrialBody |
1205
+ customer_id = 'customer_id_example' # String | The id of the customer to retrieve
1206
+
1207
+
1208
+ begin
1209
+ #Start Trial Subscription For Customer
1210
+ result = api_instance.start_trial(body, customer_id)
1211
+ p result
1212
+ rescue SwaggerClient::ApiError => e
1213
+ puts "Exception when calling SubscriptionsApi->start_trial: #{e}"
1214
+ end
1215
+ ```
1216
+
1217
+ ## Documentation for API Endpoints
1218
+
1219
+ All URIs are relative to *https://{customerId}.billabear.cloud/api/v1*
1220
+
1221
+ Class | Method | HTTP request | Description
1222
+ ------------ | ------------- | ------------- | -------------
1223
+ *SwaggerClient::CheckoutApi* | [**create_checkout**](docs/CheckoutApi.md#create_checkout) | **POST** /checkout | Create Checkout
1224
+ *SwaggerClient::CustomersApi* | [**add_seats_subscriptions**](docs/CustomersApi.md#add_seats_subscriptions) | **POST** /subscription/{subscriptionId}/seats/add | Add Seats
1225
+ *SwaggerClient::CustomersApi* | [**apply_voucher_to_customer**](docs/CustomersApi.md#apply_voucher_to_customer) | **POST** /customer/{customerId}/voucher | Apply voucher
1226
+ *SwaggerClient::CustomersApi* | [**create_customer**](docs/CustomersApi.md#create_customer) | **POST** /customer | Create
1227
+ *SwaggerClient::CustomersApi* | [**disable_customer**](docs/CustomersApi.md#disable_customer) | **POST** /customer/{customerId}/disable | Disable Customer
1228
+ *SwaggerClient::CustomersApi* | [**enable_customer**](docs/CustomersApi.md#enable_customer) | **POST** /customer/{customerId}/enable | Enable Customer
1229
+ *SwaggerClient::CustomersApi* | [**get_active_for_customer**](docs/CustomersApi.md#get_active_for_customer) | **GET** /customer/{customerId}/subscription/active | List Customer Active Subscriptions
1230
+ *SwaggerClient::CustomersApi* | [**get_all_customers**](docs/CustomersApi.md#get_all_customers) | **GET** /customer | List
1231
+ *SwaggerClient::CustomersApi* | [**get_customer_by_id**](docs/CustomersApi.md#get_customer_by_id) | **GET** /customer/{customerId} | Detail
1232
+ *SwaggerClient::CustomersApi* | [**get_customer_limits_by_id**](docs/CustomersApi.md#get_customer_limits_by_id) | **GET** /customer/{customerId}/limits | Fetch Customer Limits
1233
+ *SwaggerClient::CustomersApi* | [**get_for_customer**](docs/CustomersApi.md#get_for_customer) | **GET** /customer/{customerId}/subscription | List Customer Subscriptions
1234
+ *SwaggerClient::CustomersApi* | [**get_invoices_for_customer**](docs/CustomersApi.md#get_invoices_for_customer) | **GET** /customer/{customerId}/invoices | List Customer Invoices
1235
+ *SwaggerClient::CustomersApi* | [**get_payments_for_customer**](docs/CustomersApi.md#get_payments_for_customer) | **GET** /customer/{customerId}/payment | List Customer Payments
1236
+ *SwaggerClient::CustomersApi* | [**get_refunds_for_customer**](docs/CustomersApi.md#get_refunds_for_customer) | **GET** /customer/{customerId}/refund | List Customer Refunds
1237
+ *SwaggerClient::CustomersApi* | [**list_payment_details**](docs/CustomersApi.md#list_payment_details) | **GET** /customer/{customerId}/payment-methods | List Customer's Payment Details
1238
+ *SwaggerClient::CustomersApi* | [**remove_seats_subscriptions**](docs/CustomersApi.md#remove_seats_subscriptions) | **POST** /subscription/{subscriptionId}/seats/remove | Remove Seats
1239
+ *SwaggerClient::CustomersApi* | [**update_customer**](docs/CustomersApi.md#update_customer) | **PUT** /customer/{customerId} | Update
1240
+ *SwaggerClient::InvoicesApi* | [**charge_invoice**](docs/InvoicesApi.md#charge_invoice) | **POST** /invoice/{invoiceId}/charge | Charge Invoice
1241
+ *SwaggerClient::InvoicesApi* | [**download_invoice**](docs/InvoicesApi.md#download_invoice) | **GET** /invoice/{invoiceId}/download | Download Invoice
1242
+ *SwaggerClient::InvoicesApi* | [**get_invoices_for_customer**](docs/InvoicesApi.md#get_invoices_for_customer) | **GET** /customer/{customerId}/invoices | List Customer Invoices
1243
+ *SwaggerClient::PaymentDetailsApi* | [**complete_frontend_payment_details**](docs/PaymentDetailsApi.md#complete_frontend_payment_details) | **POST** /customer/{customerId}/payment-methods/frontend-payment-token | Complete Frontend Detail Collection
1244
+ *SwaggerClient::PaymentDetailsApi* | [**delete_payment_details**](docs/PaymentDetailsApi.md#delete_payment_details) | **DELETE** /payment-methods/{paymentDetailsId} | Delete
1245
+ *SwaggerClient::PaymentDetailsApi* | [**delete_payment_details_customer**](docs/PaymentDetailsApi.md#delete_payment_details_customer) | **DELETE** /customer/{customerId}/payment-methods/{paymentDetailsId} | Delete With Customer
1246
+ *SwaggerClient::PaymentDetailsApi* | [**get_payment_details**](docs/PaymentDetailsApi.md#get_payment_details) | **GET** /payment-methods/{paymentDetailsId} | Fetch
1247
+ *SwaggerClient::PaymentDetailsApi* | [**list_payment_details**](docs/PaymentDetailsApi.md#list_payment_details) | **GET** /customer/{customerId}/payment-methods | List Customer's Payment Details
1248
+ *SwaggerClient::PaymentDetailsApi* | [**make_default_payment_details**](docs/PaymentDetailsApi.md#make_default_payment_details) | **POST** /payment-methods/{paymentDetailsId}/default | Make Default
1249
+ *SwaggerClient::PaymentDetailsApi* | [**make_default_payment_details_customer**](docs/PaymentDetailsApi.md#make_default_payment_details_customer) | **POST** /customer/{customerId}/payment-methods/{paymentDetailsId}/default | Make Default With Customer
1250
+ *SwaggerClient::PaymentDetailsApi* | [**start_frontend_payment_details**](docs/PaymentDetailsApi.md#start_frontend_payment_details) | **GET** /customer/{customerId}/payment-methods/frontend-payment-token | Start Frontend Detail Collection
1251
+ *SwaggerClient::PaymentsApi* | [**charge_invoice**](docs/PaymentsApi.md#charge_invoice) | **POST** /invoice/{invoiceId}/charge | Charge Invoice
1252
+ *SwaggerClient::PaymentsApi* | [**download_invoice**](docs/PaymentsApi.md#download_invoice) | **GET** /invoice/{invoiceId}/download | Download Invoice
1253
+ *SwaggerClient::PaymentsApi* | [**download_receipt**](docs/PaymentsApi.md#download_receipt) | **GET** /receipt/{receiptId}/download | Download Receipt
1254
+ *SwaggerClient::PaymentsApi* | [**get_invoices_for_customer**](docs/PaymentsApi.md#get_invoices_for_customer) | **GET** /customer/{customerId}/invoices | List Customer Invoices
1255
+ *SwaggerClient::PaymentsApi* | [**get_payments_for_customer**](docs/PaymentsApi.md#get_payments_for_customer) | **GET** /customer/{customerId}/payment | List Customer Payments
1256
+ *SwaggerClient::PaymentsApi* | [**list_payment**](docs/PaymentsApi.md#list_payment) | **GET** /payment | List
1257
+ *SwaggerClient::PaymentsApi* | [**refund_payment**](docs/PaymentsApi.md#refund_payment) | **POST** /payment/{paymentId}/refund | Refund Payment
1258
+ *SwaggerClient::PricesApi* | [**create_price**](docs/PricesApi.md#create_price) | **POST** /product/{productId}/price | Create
1259
+ *SwaggerClient::PricesApi* | [**list_price**](docs/PricesApi.md#list_price) | **GET** /product/{productId}/price | List
1260
+ *SwaggerClient::ProductsApi* | [**create_product**](docs/ProductsApi.md#create_product) | **POST** /product | Create
1261
+ *SwaggerClient::ProductsApi* | [**list_product**](docs/ProductsApi.md#list_product) | **GET** /product | List
1262
+ *SwaggerClient::ProductsApi* | [**show_product_by_id**](docs/ProductsApi.md#show_product_by_id) | **GET** /product/{productId} | Detail
1263
+ *SwaggerClient::ProductsApi* | [**update_product**](docs/ProductsApi.md#update_product) | **PUT** /product/{productId} | Update
1264
+ *SwaggerClient::ReceiptApi* | [**download_receipt**](docs/ReceiptApi.md#download_receipt) | **GET** /receipt/{receiptId}/download | Download Receipt
1265
+ *SwaggerClient::RefundsApi* | [**get_refunds_for_customer**](docs/RefundsApi.md#get_refunds_for_customer) | **GET** /customer/{customerId}/refund | List Customer Refunds
1266
+ *SwaggerClient::RefundsApi* | [**list_refund**](docs/RefundsApi.md#list_refund) | **GET** /refund | List
1267
+ *SwaggerClient::RefundsApi* | [**show_refund_by_id**](docs/RefundsApi.md#show_refund_by_id) | **GET** /refund/{refundId} | Detail
1268
+ *SwaggerClient::SubscriptionsApi* | [**add_seats_subscriptions**](docs/SubscriptionsApi.md#add_seats_subscriptions) | **POST** /subscription/{subscriptionId}/seats/add | Add Seats
1269
+ *SwaggerClient::SubscriptionsApi* | [**cancel_subscription**](docs/SubscriptionsApi.md#cancel_subscription) | **POST** /subscription/{subscriptionId}/cancel | Cancel Subscription
1270
+ *SwaggerClient::SubscriptionsApi* | [**change_subscription_price**](docs/SubscriptionsApi.md#change_subscription_price) | **POST** /subscription/{subscriptionId}/price | Change Price
1271
+ *SwaggerClient::SubscriptionsApi* | [**create_subscription**](docs/SubscriptionsApi.md#create_subscription) | **POST** /customer/{customerId}/subscription/start | Create Subscription
1272
+ *SwaggerClient::SubscriptionsApi* | [**customer_change_subscription_plan**](docs/SubscriptionsApi.md#customer_change_subscription_plan) | **POST** /subscription/{subscriptionId}/plan | Change Subscription Plan
1273
+ *SwaggerClient::SubscriptionsApi* | [**extend_trial**](docs/SubscriptionsApi.md#extend_trial) | **POST** /subscription/{subscriptionId}/extend | Extend Trial Subscription
1274
+ *SwaggerClient::SubscriptionsApi* | [**get_active_for_customer**](docs/SubscriptionsApi.md#get_active_for_customer) | **GET** /customer/{customerId}/subscription/active | List Customer Active Subscriptions
1275
+ *SwaggerClient::SubscriptionsApi* | [**get_for_customer**](docs/SubscriptionsApi.md#get_for_customer) | **GET** /customer/{customerId}/subscription | List Customer Subscriptions
1276
+ *SwaggerClient::SubscriptionsApi* | [**list_subscription_plans**](docs/SubscriptionsApi.md#list_subscription_plans) | **GET** /subscription/plans | List Subscription Plans
1277
+ *SwaggerClient::SubscriptionsApi* | [**list_subscriptions**](docs/SubscriptionsApi.md#list_subscriptions) | **GET** /subscription | List
1278
+ *SwaggerClient::SubscriptionsApi* | [**remove_seats_subscriptions**](docs/SubscriptionsApi.md#remove_seats_subscriptions) | **POST** /subscription/{subscriptionId}/seats/remove | Remove Seats
1279
+ *SwaggerClient::SubscriptionsApi* | [**show_subscription_by_id**](docs/SubscriptionsApi.md#show_subscription_by_id) | **GET** /subscription/{subscriptionId} | Detail
1280
+ *SwaggerClient::SubscriptionsApi* | [**start_trial**](docs/SubscriptionsApi.md#start_trial) | **POST** /customer/{customerId}/subscription/trial | Start Trial Subscription For Customer
1281
+
1282
+ ## Documentation for Models
1283
+
1284
+ - [SwaggerClient::Address](docs/Address.md)
1285
+ - [SwaggerClient::BillingAdmin](docs/BillingAdmin.md)
1286
+ - [SwaggerClient::CheckoutBody](docs/CheckoutBody.md)
1287
+ - [SwaggerClient::CheckoutItems](docs/CheckoutItems.md)
1288
+ - [SwaggerClient::CheckoutSubscriptions](docs/CheckoutSubscriptions.md)
1289
+ - [SwaggerClient::Customer](docs/Customer.md)
1290
+ - [SwaggerClient::Error](docs/Error.md)
1291
+ - [SwaggerClient::Feature](docs/Feature.md)
1292
+ - [SwaggerClient::FrontendToken](docs/FrontendToken.md)
1293
+ - [SwaggerClient::InlineResponse200](docs/InlineResponse200.md)
1294
+ - [SwaggerClient::InlineResponse2001](docs/InlineResponse2001.md)
1295
+ - [SwaggerClient::InlineResponse20010](docs/InlineResponse20010.md)
1296
+ - [SwaggerClient::InlineResponse20011](docs/InlineResponse20011.md)
1297
+ - [SwaggerClient::InlineResponse20012](docs/InlineResponse20012.md)
1298
+ - [SwaggerClient::InlineResponse2002](docs/InlineResponse2002.md)
1299
+ - [SwaggerClient::InlineResponse2003](docs/InlineResponse2003.md)
1300
+ - [SwaggerClient::InlineResponse2004](docs/InlineResponse2004.md)
1301
+ - [SwaggerClient::InlineResponse2005](docs/InlineResponse2005.md)
1302
+ - [SwaggerClient::InlineResponse2006](docs/InlineResponse2006.md)
1303
+ - [SwaggerClient::InlineResponse2007](docs/InlineResponse2007.md)
1304
+ - [SwaggerClient::InlineResponse2007Data](docs/InlineResponse2007Data.md)
1305
+ - [SwaggerClient::InlineResponse2007Receipts](docs/InlineResponse2007Receipts.md)
1306
+ - [SwaggerClient::InlineResponse2008](docs/InlineResponse2008.md)
1307
+ - [SwaggerClient::InlineResponse2009](docs/InlineResponse2009.md)
1308
+ - [SwaggerClient::InlineResponse201](docs/InlineResponse201.md)
1309
+ - [SwaggerClient::InlineResponse201Lines](docs/InlineResponse201Lines.md)
1310
+ - [SwaggerClient::InlineResponse400](docs/InlineResponse400.md)
1311
+ - [SwaggerClient::Invoice](docs/Invoice.md)
1312
+ - [SwaggerClient::InvoiceLines](docs/InvoiceLines.md)
1313
+ - [SwaggerClient::IssueRefundPayment](docs/IssueRefundPayment.md)
1314
+ - [SwaggerClient::Limit](docs/Limit.md)
1315
+ - [SwaggerClient::PaymentDetails](docs/PaymentDetails.md)
1316
+ - [SwaggerClient::Price](docs/Price.md)
1317
+ - [SwaggerClient::Product](docs/Product.md)
1318
+ - [SwaggerClient::ProductTaxType](docs/ProductTaxType.md)
1319
+ - [SwaggerClient::Refund](docs/Refund.md)
1320
+ - [SwaggerClient::SeatsAddBody](docs/SeatsAddBody.md)
1321
+ - [SwaggerClient::SeatsRemoveBody](docs/SeatsRemoveBody.md)
1322
+ - [SwaggerClient::Subscription](docs/Subscription.md)
1323
+ - [SwaggerClient::SubscriptionIdCancelBody](docs/SubscriptionIdCancelBody.md)
1324
+ - [SwaggerClient::SubscriptionIdExtendBody](docs/SubscriptionIdExtendBody.md)
1325
+ - [SwaggerClient::SubscriptionIdPlanBody](docs/SubscriptionIdPlanBody.md)
1326
+ - [SwaggerClient::SubscriptionIdPriceBody](docs/SubscriptionIdPriceBody.md)
1327
+ - [SwaggerClient::SubscriptionPlan](docs/SubscriptionPlan.md)
1328
+ - [SwaggerClient::SubscriptionStartBody](docs/SubscriptionStartBody.md)
1329
+ - [SwaggerClient::SubscriptionTrialBody](docs/SubscriptionTrialBody.md)
1330
+ - [SwaggerClient::VoucherCode](docs/VoucherCode.md)
1331
+
1332
+ ## Documentation for Authorization
1333
+
1334
+
1335
+ ### ApiKeyAuth
1336
+
1337
+ - **Type**: API key
1338
+ - **API key parameter name**: X-API-Key
1339
+ - **Location**: HTTP header
1340
+