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.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +1340 -0
- data/Rakefile +8 -0
- data/billabear.gemspec +38 -0
- data/docs/Address.md +13 -0
- data/docs/BillingAdmin.md +8 -0
- data/docs/CheckoutApi.md +61 -0
- data/docs/CheckoutBody.md +12 -0
- data/docs/CheckoutItems.md +11 -0
- data/docs/CheckoutSubscriptions.md +9 -0
- data/docs/Customer.md +18 -0
- data/docs/CustomersApi.md +904 -0
- data/docs/Error.md +8 -0
- data/docs/Feature.md +10 -0
- data/docs/FrontendToken.md +7 -0
- data/docs/InlineResponse200.md +9 -0
- data/docs/InlineResponse2001.md +9 -0
- data/docs/InlineResponse20010.md +9 -0
- data/docs/InlineResponse20011.md +7 -0
- data/docs/InlineResponse20012.md +8 -0
- data/docs/InlineResponse2002.md +9 -0
- data/docs/InlineResponse2003.md +9 -0
- data/docs/InlineResponse2004.md +9 -0
- data/docs/InlineResponse2005.md +9 -0
- data/docs/InlineResponse2006.md +9 -0
- data/docs/InlineResponse2007.md +9 -0
- data/docs/InlineResponse2007Data.md +14 -0
- data/docs/InlineResponse2007Receipts.md +9 -0
- data/docs/InlineResponse2008.md +9 -0
- data/docs/InlineResponse2009.md +9 -0
- data/docs/InlineResponse201.md +15 -0
- data/docs/InlineResponse201Lines.md +14 -0
- data/docs/InlineResponse400.md +7 -0
- data/docs/Invoice.md +21 -0
- data/docs/InvoiceLines.md +12 -0
- data/docs/InvoicesApi.md +169 -0
- data/docs/IssueRefundPayment.md +9 -0
- data/docs/Limit.md +8 -0
- data/docs/PaymentDetails.md +14 -0
- data/docs/PaymentDetailsApi.md +447 -0
- data/docs/PaymentsApi.md +399 -0
- data/docs/Price.md +14 -0
- data/docs/PricesApi.md +122 -0
- data/docs/Product.md +10 -0
- data/docs/ProductTaxType.md +9 -0
- data/docs/ProductsApi.md +228 -0
- data/docs/ReceiptApi.md +61 -0
- data/docs/Refund.md +16 -0
- data/docs/RefundsApi.md +181 -0
- data/docs/SeatsAddBody.md +7 -0
- data/docs/SeatsRemoveBody.md +7 -0
- data/docs/Subscription.md +18 -0
- data/docs/SubscriptionIdCancelBody.md +10 -0
- data/docs/SubscriptionIdExtendBody.md +7 -0
- data/docs/SubscriptionIdPlanBody.md +9 -0
- data/docs/SubscriptionIdPriceBody.md +8 -0
- data/docs/SubscriptionPlan.md +20 -0
- data/docs/SubscriptionStartBody.md +14 -0
- data/docs/SubscriptionTrialBody.md +10 -0
- data/docs/SubscriptionsApi.md +731 -0
- data/docs/VoucherCode.md +7 -0
- data/git_push.sh +55 -0
- data/lib/swagger_client/api/checkout_api.rb +78 -0
- data/lib/swagger_client/api/customers_api.rb +980 -0
- data/lib/swagger_client/api/invoices_api.rb +188 -0
- data/lib/swagger_client/api/payment_details_api.rb +494 -0
- data/lib/swagger_client/api/payments_api.rb +432 -0
- data/lib/swagger_client/api/prices_api.rb +146 -0
- data/lib/swagger_client/api/products_api.rb +249 -0
- data/lib/swagger_client/api/receipt_api.rb +76 -0
- data/lib/swagger_client/api/refunds_api.rb +200 -0
- data/lib/swagger_client/api/subscriptions_api.rb +812 -0
- data/lib/swagger_client/api_client.rb +388 -0
- data/lib/swagger_client/api_error.rb +57 -0
- data/lib/swagger_client/configuration.rb +205 -0
- data/lib/swagger_client/models/address.rb +265 -0
- data/lib/swagger_client/models/billing_admin.rb +215 -0
- data/lib/swagger_client/models/checkout_body.rb +265 -0
- data/lib/swagger_client/models/checkout_items.rb +242 -0
- data/lib/swagger_client/models/checkout_subscriptions.rb +224 -0
- data/lib/swagger_client/models/customer.rb +370 -0
- data/lib/swagger_client/models/error.rb +225 -0
- data/lib/swagger_client/models/feature.rb +240 -0
- data/lib/swagger_client/models/frontend_token.rb +211 -0
- data/lib/swagger_client/models/inline_response_200.rb +226 -0
- data/lib/swagger_client/models/inline_response_200_1.rb +228 -0
- data/lib/swagger_client/models/inline_response_200_10.rb +226 -0
- data/lib/swagger_client/models/inline_response_200_11.rb +206 -0
- data/lib/swagger_client/models/inline_response_200_12.rb +250 -0
- data/lib/swagger_client/models/inline_response_200_2.rb +226 -0
- data/lib/swagger_client/models/inline_response_200_3.rb +226 -0
- data/lib/swagger_client/models/inline_response_200_4.rb +226 -0
- data/lib/swagger_client/models/inline_response_200_5.rb +226 -0
- data/lib/swagger_client/models/inline_response_200_6.rb +226 -0
- data/lib/swagger_client/models/inline_response_200_7.rb +226 -0
- data/lib/swagger_client/models/inline_response_200_7_data.rb +307 -0
- data/lib/swagger_client/models/inline_response_200_7_receipts.rb +224 -0
- data/lib/swagger_client/models/inline_response_200_8.rb +226 -0
- data/lib/swagger_client/models/inline_response_200_9.rb +226 -0
- data/lib/swagger_client/models/inline_response_201.rb +285 -0
- data/lib/swagger_client/models/inline_response_201_lines.rb +269 -0
- data/lib/swagger_client/models/inline_response_400.rb +213 -0
- data/lib/swagger_client/models/invoice.rb +334 -0
- data/lib/swagger_client/models/invoice_lines.rb +251 -0
- data/lib/swagger_client/models/issue_refund_payment.rb +232 -0
- data/lib/swagger_client/models/limit.rb +215 -0
- data/lib/swagger_client/models/payment_details.rb +271 -0
- data/lib/swagger_client/models/price.rb +325 -0
- data/lib/swagger_client/models/product.rb +240 -0
- data/lib/swagger_client/models/product_tax_type.rb +229 -0
- data/lib/swagger_client/models/refund.rb +324 -0
- data/lib/swagger_client/models/seats_add_body.rb +211 -0
- data/lib/swagger_client/models/seats_remove_body.rb +211 -0
- data/lib/swagger_client/models/subscription.rb +305 -0
- data/lib/swagger_client/models/subscription_id_cancel_body.rb +294 -0
- data/lib/swagger_client/models/subscription_id_extend_body.rb +211 -0
- data/lib/swagger_client/models/subscription_id_plan_body.rb +270 -0
- data/lib/swagger_client/models/subscription_id_price_body.rb +259 -0
- data/lib/swagger_client/models/subscription_plan.rb +330 -0
- data/lib/swagger_client/models/subscription_start_body.rb +314 -0
- data/lib/swagger_client/models/subscription_trial_body.rb +242 -0
- data/lib/swagger_client/models/voucher_code.rb +211 -0
- data/lib/swagger_client/version.rb +14 -0
- data/lib/swagger_client.rb +95 -0
- data/spec/api/checkout_api_spec.rb +46 -0
- data/spec/api/customers_api_spec.rb +241 -0
- data/spec/api/invoices_api_spec.rb +70 -0
- data/spec/api/payment_details_api_spec.rb +134 -0
- data/spec/api/payments_api_spec.rb +124 -0
- data/spec/api/prices_api_spec.rb +61 -0
- data/spec/api/products_api_spec.rb +84 -0
- data/spec/api/receipt_api_spec.rb +46 -0
- data/spec/api/refunds_api_spec.rb +75 -0
- data/spec/api/subscriptions_api_spec.rb +200 -0
- data/spec/api_client_spec.rb +225 -0
- data/spec/base_object_spec.rb +109 -0
- data/spec/configuration_spec.rb +41 -0
- data/spec/models/address_spec.rb +76 -0
- data/spec/models/billing_admin_spec.rb +46 -0
- data/spec/models/checkout_body_spec.rb +70 -0
- data/spec/models/checkout_items_spec.rb +64 -0
- data/spec/models/checkout_subscriptions_spec.rb +52 -0
- data/spec/models/customer_spec.rb +114 -0
- data/spec/models/error_spec.rb +46 -0
- data/spec/models/feature_spec.rb +58 -0
- data/spec/models/frontend_token_spec.rb +40 -0
- data/spec/models/inline_response_200_10_spec.rb +52 -0
- data/spec/models/inline_response_200_11_spec.rb +40 -0
- data/spec/models/inline_response_200_12_spec.rb +50 -0
- data/spec/models/inline_response_200_1_spec.rb +52 -0
- data/spec/models/inline_response_200_2_spec.rb +52 -0
- data/spec/models/inline_response_200_3_spec.rb +52 -0
- data/spec/models/inline_response_200_4_spec.rb +52 -0
- data/spec/models/inline_response_200_5_spec.rb +52 -0
- data/spec/models/inline_response_200_6_spec.rb +52 -0
- data/spec/models/inline_response_200_7_data_spec.rb +86 -0
- data/spec/models/inline_response_200_7_receipts_spec.rb +52 -0
- data/spec/models/inline_response_200_7_spec.rb +52 -0
- data/spec/models/inline_response_200_8_spec.rb +52 -0
- data/spec/models/inline_response_200_9_spec.rb +52 -0
- data/spec/models/inline_response_200_spec.rb +52 -0
- data/spec/models/inline_response_201_lines_spec.rb +82 -0
- data/spec/models/inline_response_201_spec.rb +88 -0
- data/spec/models/inline_response_400_spec.rb +40 -0
- data/spec/models/invoice_lines_spec.rb +70 -0
- data/spec/models/invoice_spec.rb +124 -0
- data/spec/models/issue_refund_payment_spec.rb +52 -0
- data/spec/models/limit_spec.rb +46 -0
- data/spec/models/payment_details_spec.rb +82 -0
- data/spec/models/price_spec.rb +86 -0
- data/spec/models/product_spec.rb +58 -0
- data/spec/models/product_tax_type_spec.rb +52 -0
- data/spec/models/refund_spec.rb +98 -0
- data/spec/models/seats_add_body_spec.rb +40 -0
- data/spec/models/seats_remove_body_spec.rb +40 -0
- data/spec/models/subscription_id_cancel_body_spec.rb +66 -0
- data/spec/models/subscription_id_extend_body_spec.rb +40 -0
- data/spec/models/subscription_id_plan_body_spec.rb +56 -0
- data/spec/models/subscription_id_price_body_spec.rb +50 -0
- data/spec/models/subscription_plan_spec.rb +118 -0
- data/spec/models/subscription_spec.rb +106 -0
- data/spec/models/subscription_start_body_spec.rb +86 -0
- data/spec/models/subscription_trial_body_spec.rb +58 -0
- data/spec/models/voucher_code_spec.rb +40 -0
- data/spec/spec_helper.rb +110 -0
- metadata +349 -0
data/docs/ProductsApi.md
ADDED
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
# SwaggerClient::ProductsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://{customerId}.billabear.cloud/api/v1*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**create_product**](ProductsApi.md#create_product) | **POST** /product | Create
|
|
8
|
+
[**list_product**](ProductsApi.md#list_product) | **GET** /product | List
|
|
9
|
+
[**show_product_by_id**](ProductsApi.md#show_product_by_id) | **GET** /product/{productId} | Detail
|
|
10
|
+
[**update_product**](ProductsApi.md#update_product) | **PUT** /product/{productId} | Update
|
|
11
|
+
|
|
12
|
+
# **create_product**
|
|
13
|
+
> String create_product(body)
|
|
14
|
+
|
|
15
|
+
Create
|
|
16
|
+
|
|
17
|
+
Create a product
|
|
18
|
+
|
|
19
|
+
### Example
|
|
20
|
+
```ruby
|
|
21
|
+
# load the gem
|
|
22
|
+
require 'swagger_client'
|
|
23
|
+
# setup authorization
|
|
24
|
+
SwaggerClient.configure do |config|
|
|
25
|
+
# Configure API key authorization: ApiKeyAuth
|
|
26
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
27
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
28
|
+
#config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
api_instance = SwaggerClient::ProductsApi.new
|
|
32
|
+
body = SwaggerClient::Product.new # Product |
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
begin
|
|
36
|
+
#Create
|
|
37
|
+
result = api_instance.create_product(body)
|
|
38
|
+
p result
|
|
39
|
+
rescue SwaggerClient::ApiError => e
|
|
40
|
+
puts "Exception when calling ProductsApi->create_product: #{e}"
|
|
41
|
+
end
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Parameters
|
|
45
|
+
|
|
46
|
+
Name | Type | Description | Notes
|
|
47
|
+
------------- | ------------- | ------------- | -------------
|
|
48
|
+
**body** | [**Product**](Product.md)| |
|
|
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_product**
|
|
66
|
+
> InlineResponse2008 list_product(opts)
|
|
67
|
+
|
|
68
|
+
List
|
|
69
|
+
|
|
70
|
+
List all products
|
|
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::ProductsApi.new
|
|
85
|
+
opts = {
|
|
86
|
+
limit: 56, # Integer | How many items to return at one time (max 100)
|
|
87
|
+
last_key: 'last_key_example', # String | The key to be used in pagination to say what the last key of the previous page was
|
|
88
|
+
name: 'name_example' # String | The name to search for
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
begin
|
|
92
|
+
#List
|
|
93
|
+
result = api_instance.list_product(opts)
|
|
94
|
+
p result
|
|
95
|
+
rescue SwaggerClient::ApiError => e
|
|
96
|
+
puts "Exception when calling ProductsApi->list_product: #{e}"
|
|
97
|
+
end
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### Parameters
|
|
101
|
+
|
|
102
|
+
Name | Type | Description | Notes
|
|
103
|
+
------------- | ------------- | ------------- | -------------
|
|
104
|
+
**limit** | **Integer**| How many items to return at one time (max 100) | [optional]
|
|
105
|
+
**last_key** | **String**| The key to be used in pagination to say what the last key of the previous page was | [optional]
|
|
106
|
+
**name** | **String**| The name to search for | [optional]
|
|
107
|
+
|
|
108
|
+
### Return type
|
|
109
|
+
|
|
110
|
+
[**InlineResponse2008**](InlineResponse2008.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
|
+
|
|
123
|
+
# **show_product_by_id**
|
|
124
|
+
> Product show_product_by_id(product_id)
|
|
125
|
+
|
|
126
|
+
Detail
|
|
127
|
+
|
|
128
|
+
Info for a specific product
|
|
129
|
+
|
|
130
|
+
### Example
|
|
131
|
+
```ruby
|
|
132
|
+
# load the gem
|
|
133
|
+
require 'swagger_client'
|
|
134
|
+
# setup authorization
|
|
135
|
+
SwaggerClient.configure do |config|
|
|
136
|
+
# Configure API key authorization: ApiKeyAuth
|
|
137
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
138
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
139
|
+
#config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
api_instance = SwaggerClient::ProductsApi.new
|
|
143
|
+
product_id = 'product_id_example' # String | The id of the product to retrieve
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
begin
|
|
147
|
+
#Detail
|
|
148
|
+
result = api_instance.show_product_by_id(product_id)
|
|
149
|
+
p result
|
|
150
|
+
rescue SwaggerClient::ApiError => e
|
|
151
|
+
puts "Exception when calling ProductsApi->show_product_by_id: #{e}"
|
|
152
|
+
end
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
### Parameters
|
|
156
|
+
|
|
157
|
+
Name | Type | Description | Notes
|
|
158
|
+
------------- | ------------- | ------------- | -------------
|
|
159
|
+
**product_id** | **String**| The id of the product to retrieve |
|
|
160
|
+
|
|
161
|
+
### Return type
|
|
162
|
+
|
|
163
|
+
[**Product**](Product.md)
|
|
164
|
+
|
|
165
|
+
### Authorization
|
|
166
|
+
|
|
167
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
168
|
+
|
|
169
|
+
### HTTP request headers
|
|
170
|
+
|
|
171
|
+
- **Content-Type**: Not defined
|
|
172
|
+
- **Accept**: application/json
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
# **update_product**
|
|
177
|
+
> Product update_product(product_id)
|
|
178
|
+
|
|
179
|
+
Update
|
|
180
|
+
|
|
181
|
+
Update a product
|
|
182
|
+
|
|
183
|
+
### Example
|
|
184
|
+
```ruby
|
|
185
|
+
# load the gem
|
|
186
|
+
require 'swagger_client'
|
|
187
|
+
# setup authorization
|
|
188
|
+
SwaggerClient.configure do |config|
|
|
189
|
+
# Configure API key authorization: ApiKeyAuth
|
|
190
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
191
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
192
|
+
#config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
api_instance = SwaggerClient::ProductsApi.new
|
|
196
|
+
product_id = 'product_id_example' # String | The id of the product to retrieve
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
begin
|
|
200
|
+
#Update
|
|
201
|
+
result = api_instance.update_product(product_id)
|
|
202
|
+
p result
|
|
203
|
+
rescue SwaggerClient::ApiError => e
|
|
204
|
+
puts "Exception when calling ProductsApi->update_product: #{e}"
|
|
205
|
+
end
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
### Parameters
|
|
209
|
+
|
|
210
|
+
Name | Type | Description | Notes
|
|
211
|
+
------------- | ------------- | ------------- | -------------
|
|
212
|
+
**product_id** | **String**| The id of the product to retrieve |
|
|
213
|
+
|
|
214
|
+
### Return type
|
|
215
|
+
|
|
216
|
+
[**Product**](Product.md)
|
|
217
|
+
|
|
218
|
+
### Authorization
|
|
219
|
+
|
|
220
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
221
|
+
|
|
222
|
+
### HTTP request headers
|
|
223
|
+
|
|
224
|
+
- **Content-Type**: Not defined
|
|
225
|
+
- **Accept**: application/json
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
data/docs/ReceiptApi.md
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# SwaggerClient::ReceiptApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://{customerId}.billabear.cloud/api/v1*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**download_receipt**](ReceiptApi.md#download_receipt) | **GET** /receipt/{receiptId}/download | Download Receipt
|
|
8
|
+
|
|
9
|
+
# **download_receipt**
|
|
10
|
+
> String download_receipt(receipt)
|
|
11
|
+
|
|
12
|
+
Download Receipt
|
|
13
|
+
|
|
14
|
+
Returns the pdf blob for the Receipt
|
|
15
|
+
|
|
16
|
+
### Example
|
|
17
|
+
```ruby
|
|
18
|
+
# load the gem
|
|
19
|
+
require 'swagger_client'
|
|
20
|
+
# setup authorization
|
|
21
|
+
SwaggerClient.configure do |config|
|
|
22
|
+
# Configure API key authorization: ApiKeyAuth
|
|
23
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
24
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
25
|
+
#config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
api_instance = SwaggerClient::ReceiptApi.new
|
|
29
|
+
receipt = 'receipt_example' # String | The id of the receipt
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
begin
|
|
33
|
+
#Download Receipt
|
|
34
|
+
result = api_instance.download_receipt(receipt)
|
|
35
|
+
p result
|
|
36
|
+
rescue SwaggerClient::ApiError => e
|
|
37
|
+
puts "Exception when calling ReceiptApi->download_receipt: #{e}"
|
|
38
|
+
end
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Parameters
|
|
42
|
+
|
|
43
|
+
Name | Type | Description | Notes
|
|
44
|
+
------------- | ------------- | ------------- | -------------
|
|
45
|
+
**receipt** | **String**| The id of the receipt |
|
|
46
|
+
|
|
47
|
+
### Return type
|
|
48
|
+
|
|
49
|
+
**String**
|
|
50
|
+
|
|
51
|
+
### Authorization
|
|
52
|
+
|
|
53
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
54
|
+
|
|
55
|
+
### HTTP request headers
|
|
56
|
+
|
|
57
|
+
- **Content-Type**: Not defined
|
|
58
|
+
- **Accept**: application/pdf
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
data/docs/Refund.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# SwaggerClient::Refund
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**id** | **String** | | [optional]
|
|
7
|
+
**amount** | **Integer** | | [optional]
|
|
8
|
+
**currency** | **String** | Three-letter ISO currency code. Must be upper-case | [optional]
|
|
9
|
+
**external_reference** | **String** | | [optional]
|
|
10
|
+
**comment** | **String** | | [optional]
|
|
11
|
+
**status** | **String** | | [optional]
|
|
12
|
+
**created_at** | **String** | | [optional]
|
|
13
|
+
**payment** | [**Paths1paymentgetresponses200contentapplication1jsonschemapropertiesdataitems**](Paths1paymentgetresponses200contentapplication1jsonschemapropertiesdataitems.md) | | [optional]
|
|
14
|
+
**customer** | [**Customer**](Customer.md) | | [optional]
|
|
15
|
+
**billing_admin** | [**BillingAdmin**](BillingAdmin.md) | | [optional]
|
|
16
|
+
|
data/docs/RefundsApi.md
ADDED
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
# SwaggerClient::RefundsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://{customerId}.billabear.cloud/api/v1*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**get_refunds_for_customer**](RefundsApi.md#get_refunds_for_customer) | **GET** /customer/{customerId}/refund | List Customer Refunds
|
|
8
|
+
[**list_refund**](RefundsApi.md#list_refund) | **GET** /refund | List
|
|
9
|
+
[**show_refund_by_id**](RefundsApi.md#show_refund_by_id) | **GET** /refund/{refundId} | Detail
|
|
10
|
+
|
|
11
|
+
# **get_refunds_for_customer**
|
|
12
|
+
> InlineResponse2002 get_refunds_for_customer(customer_id, opts)
|
|
13
|
+
|
|
14
|
+
List Customer Refunds
|
|
15
|
+
|
|
16
|
+
List Customer Refund
|
|
17
|
+
|
|
18
|
+
### Example
|
|
19
|
+
```ruby
|
|
20
|
+
# load the gem
|
|
21
|
+
require 'swagger_client'
|
|
22
|
+
# setup authorization
|
|
23
|
+
SwaggerClient.configure do |config|
|
|
24
|
+
# Configure API key authorization: ApiKeyAuth
|
|
25
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
26
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
27
|
+
#config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
api_instance = SwaggerClient::RefundsApi.new
|
|
31
|
+
customer_id = 'customer_id_example' # String | The id of the customer to retrieve
|
|
32
|
+
opts = {
|
|
33
|
+
limit: 56, # Integer | How many items to return at one time (max 100)
|
|
34
|
+
last_key: 'last_key_example', # String | The key to be used in pagination to say what the last key of the previous page was
|
|
35
|
+
name: 'name_example' # String | The name to search for
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
begin
|
|
39
|
+
#List Customer Refunds
|
|
40
|
+
result = api_instance.get_refunds_for_customer(customer_id, opts)
|
|
41
|
+
p result
|
|
42
|
+
rescue SwaggerClient::ApiError => e
|
|
43
|
+
puts "Exception when calling RefundsApi->get_refunds_for_customer: #{e}"
|
|
44
|
+
end
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Parameters
|
|
48
|
+
|
|
49
|
+
Name | Type | Description | Notes
|
|
50
|
+
------------- | ------------- | ------------- | -------------
|
|
51
|
+
**customer_id** | **String**| The id of the customer to retrieve |
|
|
52
|
+
**limit** | **Integer**| How many items to return at one time (max 100) | [optional]
|
|
53
|
+
**last_key** | **String**| The key to be used in pagination to say what the last key of the previous page was | [optional]
|
|
54
|
+
**name** | **String**| The name to search for | [optional]
|
|
55
|
+
|
|
56
|
+
### Return type
|
|
57
|
+
|
|
58
|
+
[**InlineResponse2002**](InlineResponse2002.md)
|
|
59
|
+
|
|
60
|
+
### Authorization
|
|
61
|
+
|
|
62
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
63
|
+
|
|
64
|
+
### HTTP request headers
|
|
65
|
+
|
|
66
|
+
- **Content-Type**: Not defined
|
|
67
|
+
- **Accept**: application/json
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
# **list_refund**
|
|
72
|
+
> InlineResponse2002 list_refund(opts)
|
|
73
|
+
|
|
74
|
+
List
|
|
75
|
+
|
|
76
|
+
List all refund
|
|
77
|
+
|
|
78
|
+
### Example
|
|
79
|
+
```ruby
|
|
80
|
+
# load the gem
|
|
81
|
+
require 'swagger_client'
|
|
82
|
+
# setup authorization
|
|
83
|
+
SwaggerClient.configure do |config|
|
|
84
|
+
# Configure API key authorization: ApiKeyAuth
|
|
85
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
86
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
87
|
+
#config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
api_instance = SwaggerClient::RefundsApi.new
|
|
91
|
+
opts = {
|
|
92
|
+
limit: 56, # Integer | How many items to return at one time (max 100)
|
|
93
|
+
last_key: 'last_key_example', # String | The key to be used in pagination to say what the last key of the previous page was
|
|
94
|
+
name: 'name_example' # String | The name to search for
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
begin
|
|
98
|
+
#List
|
|
99
|
+
result = api_instance.list_refund(opts)
|
|
100
|
+
p result
|
|
101
|
+
rescue SwaggerClient::ApiError => e
|
|
102
|
+
puts "Exception when calling RefundsApi->list_refund: #{e}"
|
|
103
|
+
end
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### Parameters
|
|
107
|
+
|
|
108
|
+
Name | Type | Description | Notes
|
|
109
|
+
------------- | ------------- | ------------- | -------------
|
|
110
|
+
**limit** | **Integer**| How many items to return at one time (max 100) | [optional]
|
|
111
|
+
**last_key** | **String**| The key to be used in pagination to say what the last key of the previous page was | [optional]
|
|
112
|
+
**name** | **String**| The name to search for | [optional]
|
|
113
|
+
|
|
114
|
+
### Return type
|
|
115
|
+
|
|
116
|
+
[**InlineResponse2002**](InlineResponse2002.md)
|
|
117
|
+
|
|
118
|
+
### Authorization
|
|
119
|
+
|
|
120
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
121
|
+
|
|
122
|
+
### HTTP request headers
|
|
123
|
+
|
|
124
|
+
- **Content-Type**: Not defined
|
|
125
|
+
- **Accept**: application/json
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
# **show_refund_by_id**
|
|
130
|
+
> Refund show_refund_by_id(refund_id)
|
|
131
|
+
|
|
132
|
+
Detail
|
|
133
|
+
|
|
134
|
+
Info for a specific Refund
|
|
135
|
+
|
|
136
|
+
### Example
|
|
137
|
+
```ruby
|
|
138
|
+
# load the gem
|
|
139
|
+
require 'swagger_client'
|
|
140
|
+
# setup authorization
|
|
141
|
+
SwaggerClient.configure do |config|
|
|
142
|
+
# Configure API key authorization: ApiKeyAuth
|
|
143
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
144
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
145
|
+
#config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
api_instance = SwaggerClient::RefundsApi.new
|
|
149
|
+
refund_id = 'refund_id_example' # String | The id of the refund
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
begin
|
|
153
|
+
#Detail
|
|
154
|
+
result = api_instance.show_refund_by_id(refund_id)
|
|
155
|
+
p result
|
|
156
|
+
rescue SwaggerClient::ApiError => e
|
|
157
|
+
puts "Exception when calling RefundsApi->show_refund_by_id: #{e}"
|
|
158
|
+
end
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
### Parameters
|
|
162
|
+
|
|
163
|
+
Name | Type | Description | Notes
|
|
164
|
+
------------- | ------------- | ------------- | -------------
|
|
165
|
+
**refund_id** | **String**| The id of the refund |
|
|
166
|
+
|
|
167
|
+
### Return type
|
|
168
|
+
|
|
169
|
+
[**Refund**](Refund.md)
|
|
170
|
+
|
|
171
|
+
### Authorization
|
|
172
|
+
|
|
173
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
174
|
+
|
|
175
|
+
### HTTP request headers
|
|
176
|
+
|
|
177
|
+
- **Content-Type**: Not defined
|
|
178
|
+
- **Accept**: application/json
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# SwaggerClient::Subscription
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**id** | **String** | | [optional]
|
|
7
|
+
**seat_number** | **Integer** | | [optional]
|
|
8
|
+
**schedule** | **String** | | [optional]
|
|
9
|
+
**status** | **String** | | [optional]
|
|
10
|
+
**created_at** | **String** | | [optional]
|
|
11
|
+
**updated_at** | **String** | | [optional]
|
|
12
|
+
**ended_at** | **String** | | [optional]
|
|
13
|
+
**valid_until** | **String** | | [optional]
|
|
14
|
+
**main_external_reference** | **String** | | [optional]
|
|
15
|
+
**child_external_reference** | **String** | | [optional]
|
|
16
|
+
**price** | [**Price**](Price.md) | | [optional]
|
|
17
|
+
**plan** | [**SubscriptionPlan**](SubscriptionPlan.md) | | [optional]
|
|
18
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# SwaggerClient::SubscriptionIdCancelBody
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**_when** | **String** | | [default to 'end-of-run']
|
|
7
|
+
**refund_type** | **String** | | [default to 'none']
|
|
8
|
+
**date** | **Date** | | [optional]
|
|
9
|
+
**comment** | **String** | | [optional]
|
|
10
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# SwaggerClient::SubscriptionIdPlanBody
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**_when** | **String** | |
|
|
7
|
+
**plan** | **String** | The ID for the subscription plan to be used | [optional]
|
|
8
|
+
**price** | **String** | The ID for the price to be used |
|
|
9
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# SwaggerClient::SubscriptionPlan
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**id** | **String** | | [optional]
|
|
7
|
+
**name** | **String** | | [optional]
|
|
8
|
+
**code_name** | **String** | | [optional]
|
|
9
|
+
**user_count** | **Integer** | | [optional]
|
|
10
|
+
**per_seat** | **BOOLEAN** | | [optional]
|
|
11
|
+
**has_trial** | **BOOLEAN** | | [optional]
|
|
12
|
+
**is_trial_standalone** | **BOOLEAN** | | [optional]
|
|
13
|
+
**free** | **BOOLEAN** | | [optional]
|
|
14
|
+
**public** | **BOOLEAN** | | [optional]
|
|
15
|
+
**limits** | [**Array<Limit>**](Limit.md) | | [optional]
|
|
16
|
+
**features** | [**Array<Feature>**](Feature.md) | | [optional]
|
|
17
|
+
**product** | [**Product**](Product.md) | | [optional]
|
|
18
|
+
**prices** | [**Array<Price>**](Price.md) | | [optional]
|
|
19
|
+
**trial_length_days** | **Integer** | | [optional]
|
|
20
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# SwaggerClient::SubscriptionStartBody
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**subscription_plan** | **String** | The ID for the subscription plan to be used (Can also be the code name) |
|
|
7
|
+
**payment_details** | **String** | The Id for the customer's payment details to be used | [optional]
|
|
8
|
+
**card_token** | **String** | A stripe card token that's been created using Stripe's js sdk. It'll create the payment details for the customer. | [optional]
|
|
9
|
+
**price** | **String** | The ID for the price to be used | [optional]
|
|
10
|
+
**schedule** | **String** | The schedule of the plan that is to be started. Only used if price isn't given. Requires currency as well. | [optional]
|
|
11
|
+
**currency** | **String** | The currency of the plan that is to be started. Only used if price isn't given. Requires schedule as well. | [optional]
|
|
12
|
+
**seat_numbrers** | **Integer** | | [optional]
|
|
13
|
+
**deny_trial** | [**Bool**](Bool.md) | | [optional]
|
|
14
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# SwaggerClient::SubscriptionTrialBody
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**subscription_plan** | **String** | The ID for the subscription plan to be used (Can also be the code name) |
|
|
7
|
+
**card_token** | **String** | A stripe card token that's been created using Stripe's js sdk. It'll create the payment details for the customer. | [optional]
|
|
8
|
+
**seat_numbrers** | **Integer** | | [optional]
|
|
9
|
+
**trial_length_days** | **Integer** | | [optional]
|
|
10
|
+
|