billabear 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +509 -364
- data/billabear.gemspec +4 -4
- data/docs/Address.md +1 -1
- data/docs/BillingAdmin.md +1 -1
- data/docs/CheckoutApi.md +6 -6
- data/docs/CheckoutBody.md +1 -1
- data/docs/CheckoutItems.md +1 -1
- data/docs/CheckoutSubscriptions.md +1 -1
- data/docs/Cost.md +8 -0
- data/docs/Customer.md +3 -1
- data/docs/CustomerIdUasgelimitBody.md +8 -0
- data/docs/CustomersApi.md +319 -101
- data/docs/Error.md +1 -1
- data/docs/Event.md +11 -0
- data/docs/Feature.md +1 -1
- data/docs/FrontendToken.md +1 -1
- data/docs/InlineResponse200.md +1 -1
- data/docs/InlineResponse2001.md +3 -4
- data/docs/InlineResponse20010.md +2 -2
- data/docs/InlineResponse20011.md +4 -2
- data/docs/InlineResponse20012.md +4 -3
- data/docs/InlineResponse20013.md +7 -0
- data/docs/InlineResponse20014.md +8 -0
- data/docs/InlineResponse2002.md +4 -4
- data/docs/InlineResponse2003.md +2 -2
- data/docs/InlineResponse2004.md +2 -2
- data/docs/InlineResponse2005.md +2 -2
- data/docs/InlineResponse2006.md +2 -2
- data/docs/InlineResponse2007.md +2 -2
- data/docs/InlineResponse2008.md +2 -2
- data/docs/InlineResponse2009.md +2 -2
- data/docs/{InlineResponse2007Data.md → InlineResponse2009Data.md} +2 -2
- data/docs/{InlineResponse2007Receipts.md → InlineResponse2009Receipts.md} +1 -1
- data/docs/InlineResponse201.md +1 -1
- data/docs/InlineResponse201Lines.md +1 -1
- data/docs/InlineResponse400.md +1 -1
- data/docs/Invoice.md +1 -1
- data/docs/InvoiceLines.md +1 -1
- data/docs/InvoicesApi.md +17 -17
- data/docs/IssueRefundPayment.md +1 -1
- data/docs/Limit.md +1 -1
- data/docs/Metric.md +12 -0
- data/docs/MetricCost.md +10 -0
- data/docs/MetricFilter.md +11 -0
- data/docs/PaymentDetails.md +1 -1
- data/docs/PaymentDetailsApi.md +48 -52
- data/docs/PaymentsApi.md +41 -42
- data/docs/Price.md +2 -1
- data/docs/PricesApi.md +15 -16
- data/docs/Product.md +1 -1
- data/docs/ProductTaxType.md +1 -1
- data/docs/ProductsApi.md +23 -24
- data/docs/ReceiptApi.md +5 -5
- data/docs/Refund.md +1 -1
- data/docs/RefundsApi.md +17 -17
- data/docs/SeatsAddBody.md +1 -1
- data/docs/SeatsRemoveBody.md +1 -1
- data/docs/Subscription.md +2 -1
- data/docs/SubscriptionIdCancelBody.md +1 -1
- data/docs/SubscriptionIdExtendBody.md +1 -1
- data/docs/SubscriptionIdPlanBody.md +2 -2
- data/docs/SubscriptionIdPriceBody.md +1 -1
- data/docs/SubscriptionPlan.md +1 -1
- data/docs/SubscriptionStartBody.md +2 -1
- data/docs/SubscriptionTrialBody.md +1 -1
- data/docs/SubscriptionsApi.md +78 -79
- data/docs/UsageApi.md +279 -0
- data/docs/UsageLimit.md +9 -0
- data/docs/VoucherCode.md +1 -1
- data/git_push.sh +2 -2
- data/lib/{swagger_client → billabear}/api/checkout_api.rb +3 -3
- data/lib/{swagger_client → billabear}/api/customers_api.rb +284 -45
- data/lib/{swagger_client → billabear}/api/invoices_api.rb +9 -9
- data/lib/{swagger_client → billabear}/api/payment_details_api.rb +26 -26
- data/lib/{swagger_client → billabear}/api/payments_api.rb +20 -20
- data/lib/{swagger_client → billabear}/api/prices_api.rb +11 -11
- data/lib/{swagger_client → billabear}/api/products_api.rb +11 -11
- data/lib/{swagger_client → billabear}/api/receipt_api.rb +3 -3
- data/lib/{swagger_client → billabear}/api/refunds_api.rb +9 -9
- data/lib/{swagger_client → billabear}/api/subscriptions_api.rb +29 -29
- data/lib/billabear/api/usage_api.rb +314 -0
- data/lib/{swagger_client → billabear}/api_client.rb +4 -4
- data/lib/{swagger_client → billabear}/api_error.rb +3 -3
- data/lib/{swagger_client → billabear}/configuration.rb +3 -3
- data/lib/{swagger_client → billabear}/models/address.rb +6 -6
- data/lib/{swagger_client → billabear}/models/billing_admin.rb +6 -6
- data/lib/{swagger_client → billabear}/models/checkout_body.rb +6 -6
- data/lib/{swagger_client → billabear}/models/checkout_items.rb +6 -6
- data/lib/{swagger_client → billabear}/models/checkout_subscriptions.rb +6 -6
- data/lib/billabear/models/cost.rb +215 -0
- data/lib/{swagger_client → billabear}/models/customer.rb +45 -11
- data/lib/billabear/models/customer_id_uasgelimit_body.rb +259 -0
- data/lib/{swagger_client → billabear}/models/error.rb +6 -6
- data/lib/billabear/models/event.rb +262 -0
- data/lib/{swagger_client → billabear}/models/feature.rb +6 -6
- data/lib/{swagger_client → billabear}/models/frontend_token.rb +6 -6
- data/lib/{swagger_client → billabear}/models/inline_response_200.rb +6 -6
- data/lib/billabear/models/inline_response_200_1.rb +217 -0
- data/lib/{swagger_client → billabear}/models/inline_response_200_10.rb +6 -6
- data/lib/{swagger_client/models/inline_response_200_2.rb → billabear/models/inline_response_200_11.rb} +7 -7
- data/lib/billabear/models/inline_response_200_12.rb +226 -0
- data/lib/{swagger_client/models/inline_response_200_11.rb → billabear/models/inline_response_200_13.rb} +7 -7
- data/lib/{swagger_client/models/inline_response_200_12.rb → billabear/models/inline_response_200_14.rb} +7 -7
- data/lib/{swagger_client/models/inline_response_200_1.rb → billabear/models/inline_response_200_2.rb} +7 -7
- data/lib/{swagger_client → billabear}/models/inline_response_200_3.rb +6 -6
- data/lib/{swagger_client → billabear}/models/inline_response_200_4.rb +6 -6
- data/lib/{swagger_client → billabear}/models/inline_response_200_5.rb +6 -6
- data/lib/{swagger_client → billabear}/models/inline_response_200_6.rb +6 -6
- data/lib/{swagger_client → billabear}/models/inline_response_200_7.rb +6 -6
- data/lib/{swagger_client → billabear}/models/inline_response_200_8.rb +6 -6
- data/lib/{swagger_client → billabear}/models/inline_response_200_9.rb +6 -6
- data/lib/{swagger_client/models/inline_response_200_7_data.rb → billabear/models/inline_response_200_9_data.rb} +7 -7
- data/lib/{swagger_client/models/inline_response_200_7_receipts.rb → billabear/models/inline_response_200_9_receipts.rb} +7 -7
- data/lib/{swagger_client → billabear}/models/inline_response_201.rb +6 -6
- data/lib/{swagger_client → billabear}/models/inline_response_201_lines.rb +6 -6
- data/lib/{swagger_client → billabear}/models/inline_response_400.rb +6 -6
- data/lib/{swagger_client → billabear}/models/invoice.rb +6 -6
- data/lib/{swagger_client → billabear}/models/invoice_lines.rb +6 -6
- data/lib/{swagger_client → billabear}/models/issue_refund_payment.rb +6 -6
- data/lib/{swagger_client → billabear}/models/limit.rb +6 -6
- data/lib/billabear/models/metric.rb +288 -0
- data/lib/billabear/models/metric_cost.rb +234 -0
- data/lib/billabear/models/metric_filter.rb +276 -0
- data/lib/{swagger_client → billabear}/models/payment_details.rb +6 -6
- data/lib/{swagger_client → billabear}/models/price.rb +20 -11
- data/lib/{swagger_client → billabear}/models/product.rb +6 -6
- data/lib/{swagger_client → billabear}/models/product_tax_type.rb +6 -6
- data/lib/{swagger_client → billabear}/models/refund.rb +6 -6
- data/lib/{swagger_client → billabear}/models/seats_add_body.rb +6 -6
- data/lib/{swagger_client → billabear}/models/seats_remove_body.rb +6 -6
- data/lib/{swagger_client → billabear}/models/subscription.rb +16 -7
- data/lib/{swagger_client → billabear}/models/subscription_id_cancel_body.rb +6 -6
- data/lib/{swagger_client → billabear}/models/subscription_id_extend_body.rb +6 -6
- data/lib/{swagger_client → billabear}/models/subscription_id_plan_body.rb +11 -6
- data/lib/{swagger_client → billabear}/models/subscription_id_price_body.rb +6 -6
- data/lib/{swagger_client → billabear}/models/subscription_plan.rb +6 -6
- data/lib/{swagger_client → billabear}/models/subscription_start_body.rb +20 -10
- data/lib/{swagger_client → billabear}/models/subscription_trial_body.rb +6 -6
- data/lib/billabear/models/usage_limit.rb +258 -0
- data/lib/{swagger_client → billabear}/models/voucher_code.rb +6 -6
- data/lib/{swagger_client → billabear}/version.rb +4 -4
- data/lib/billabear.rb +105 -0
- data/spec/api/checkout_api_spec.rb +5 -5
- data/spec/api/customers_api_spec.rb +68 -17
- data/spec/api/invoices_api_spec.rb +7 -7
- data/spec/api/payment_details_api_spec.rb +10 -10
- data/spec/api/payments_api_spec.rb +10 -10
- data/spec/api/prices_api_spec.rb +7 -7
- data/spec/api/products_api_spec.rb +7 -7
- data/spec/api/receipt_api_spec.rb +5 -5
- data/spec/api/refunds_api_spec.rb +7 -7
- data/spec/api/subscriptions_api_spec.rb +13 -13
- data/spec/api/usage_api_spec.rb +96 -0
- data/spec/api_client_spec.rb +31 -31
- data/spec/configuration_spec.rb +5 -5
- data/spec/models/address_spec.rb +5 -5
- data/spec/models/billing_admin_spec.rb +5 -5
- data/spec/models/checkout_body_spec.rb +5 -5
- data/spec/models/checkout_items_spec.rb +5 -5
- data/spec/models/checkout_subscriptions_spec.rb +5 -5
- data/spec/models/cost_spec.rb +46 -0
- data/spec/models/customer_id_uasgelimit_body_spec.rb +50 -0
- data/spec/models/customer_spec.rb +21 -5
- data/spec/models/error_spec.rb +5 -5
- data/spec/models/event_spec.rb +64 -0
- data/spec/models/feature_spec.rb +5 -5
- data/spec/models/frontend_token_spec.rb +5 -5
- data/spec/models/inline_response_200_10_spec.rb +5 -5
- data/spec/models/inline_response_200_11_spec.rb +18 -6
- data/spec/models/inline_response_200_12_spec.rb +13 -11
- data/spec/models/inline_response_200_13_spec.rb +40 -0
- data/spec/models/inline_response_200_14_spec.rb +50 -0
- data/spec/models/inline_response_200_1_spec.rb +7 -13
- data/spec/models/inline_response_200_2_spec.rb +8 -8
- data/spec/models/inline_response_200_3_spec.rb +5 -5
- data/spec/models/inline_response_200_4_spec.rb +5 -5
- data/spec/models/inline_response_200_5_spec.rb +5 -5
- data/spec/models/inline_response_200_6_spec.rb +5 -5
- data/spec/models/inline_response_200_7_spec.rb +5 -5
- data/spec/models/inline_response_200_8_spec.rb +5 -5
- data/spec/models/{inline_response_200_7_data_spec.rb → inline_response_200_9_data_spec.rb} +8 -8
- data/spec/models/{inline_response_200_7_receipts_spec.rb → inline_response_200_9_receipts_spec.rb} +8 -8
- data/spec/models/inline_response_200_9_spec.rb +5 -5
- data/spec/models/inline_response_200_spec.rb +5 -5
- data/spec/models/inline_response_201_lines_spec.rb +5 -5
- data/spec/models/inline_response_201_spec.rb +5 -5
- data/spec/models/inline_response_400_spec.rb +5 -5
- data/spec/models/invoice_lines_spec.rb +5 -5
- data/spec/models/invoice_spec.rb +5 -5
- data/spec/models/issue_refund_payment_spec.rb +5 -5
- data/spec/models/limit_spec.rb +5 -5
- data/spec/models/metric_cost_spec.rb +58 -0
- data/spec/models/metric_filter_spec.rb +68 -0
- data/spec/models/metric_spec.rb +74 -0
- data/spec/models/payment_details_spec.rb +5 -5
- data/spec/models/price_spec.rb +11 -5
- data/spec/models/product_spec.rb +5 -5
- data/spec/models/product_tax_type_spec.rb +5 -5
- data/spec/models/refund_spec.rb +5 -5
- data/spec/models/seats_add_body_spec.rb +5 -5
- data/spec/models/seats_remove_body_spec.rb +5 -5
- data/spec/models/subscription_id_cancel_body_spec.rb +5 -5
- data/spec/models/subscription_id_extend_body_spec.rb +5 -5
- data/spec/models/subscription_id_plan_body_spec.rb +5 -5
- data/spec/models/subscription_id_price_body_spec.rb +5 -5
- data/spec/models/subscription_plan_spec.rb +5 -5
- data/spec/models/subscription_spec.rb +11 -5
- data/spec/models/subscription_start_body_spec.rb +11 -5
- data/spec/models/subscription_trial_body_spec.rb +5 -5
- data/spec/models/usage_limit_spec.rb +56 -0
- data/spec/models/voucher_code_spec.rb +5 -5
- data/spec/spec_helper.rb +3 -3
- metadata +110 -70
- data/lib/swagger_client.rb +0 -95
data/docs/Error.md
CHANGED
data/docs/Event.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Billabear::Event
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**event_id** | **String** | |
|
|
7
|
+
**subscription** | **String** | |
|
|
8
|
+
**properties** | **Object** | | [optional]
|
|
9
|
+
**value** | **Float** | |
|
|
10
|
+
**code** | **String** | |
|
|
11
|
+
|
data/docs/Feature.md
CHANGED
data/docs/FrontendToken.md
CHANGED
data/docs/InlineResponse200.md
CHANGED
data/docs/InlineResponse2001.md
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Billabear::InlineResponse2001
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**
|
|
7
|
-
**
|
|
8
|
-
**user_count** | **Integer** | | [optional]
|
|
6
|
+
**costs** | [**Array<MetricCost>**](MetricCost.md) | | [optional]
|
|
7
|
+
**cost** | [**Cost**](Cost.md) | | [optional]
|
|
9
8
|
|
data/docs/InlineResponse20010.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Billabear::InlineResponse20010
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**data** | [**Array<
|
|
6
|
+
**data** | [**Array<Product>**](Product.md) | | [optional]
|
|
7
7
|
**has_more** | **BOOLEAN** | | [optional]
|
|
8
8
|
**last_key** | **String** | | [optional]
|
|
9
9
|
|
data/docs/InlineResponse20011.md
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Billabear::InlineResponse20011
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**
|
|
6
|
+
**data** | [**Array<Price>**](Price.md) | | [optional]
|
|
7
|
+
**has_more** | **BOOLEAN** | | [optional]
|
|
8
|
+
**last_key** | **String** | | [optional]
|
|
7
9
|
|
data/docs/InlineResponse20012.md
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Billabear::InlineResponse20012
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**
|
|
7
|
-
**
|
|
6
|
+
**data** | [**Array<SubscriptionPlan>**](SubscriptionPlan.md) | | [optional]
|
|
7
|
+
**has_more** | **BOOLEAN** | | [optional]
|
|
8
|
+
**last_key** | **String** | | [optional]
|
|
8
9
|
|
data/docs/InlineResponse2002.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Billabear::InlineResponse2002
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**
|
|
7
|
-
**
|
|
8
|
-
**
|
|
6
|
+
**limits** | [**Array<Limit>**](Limit.md) | | [optional]
|
|
7
|
+
**features** | [**Array<Feature>**](Feature.md) | | [optional]
|
|
8
|
+
**user_count** | **Integer** | | [optional]
|
|
9
9
|
|
data/docs/InlineResponse2003.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Billabear::InlineResponse2003
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**data** | [**Array<
|
|
6
|
+
**data** | [**Array<Refund>**](Refund.md) | | [optional]
|
|
7
7
|
**has_more** | **BOOLEAN** | | [optional]
|
|
8
8
|
**last_key** | **String** | | [optional]
|
|
9
9
|
|
data/docs/InlineResponse2004.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Billabear::InlineResponse2004
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**data** | [**Array<
|
|
6
|
+
**data** | [**Array<Paths1paymentgetresponses200contentapplication1jsonschemapropertiesdataitems>**](Paths1paymentgetresponses200contentapplication1jsonschemapropertiesdataitems.md) | | [optional]
|
|
7
7
|
**has_more** | **BOOLEAN** | | [optional]
|
|
8
8
|
**last_key** | **String** | | [optional]
|
|
9
9
|
|
data/docs/InlineResponse2005.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Billabear::InlineResponse2005
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**data** | [**Array<
|
|
6
|
+
**data** | [**Array<UsageLimit>**](UsageLimit.md) | | [optional]
|
|
7
7
|
**has_more** | **BOOLEAN** | | [optional]
|
|
8
8
|
**last_key** | **String** | | [optional]
|
|
9
9
|
|
data/docs/InlineResponse2006.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Billabear::InlineResponse2006
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**data** | [**Array<
|
|
6
|
+
**data** | [**Array<Invoice>**](Invoice.md) | | [optional]
|
|
7
7
|
**has_more** | **BOOLEAN** | | [optional]
|
|
8
8
|
**last_key** | **String** | | [optional]
|
|
9
9
|
|
data/docs/InlineResponse2007.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Billabear::InlineResponse2007
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**data** | [**Array<
|
|
6
|
+
**data** | [**Array<PaymentDetails>**](PaymentDetails.md) | | [optional]
|
|
7
7
|
**has_more** | **BOOLEAN** | | [optional]
|
|
8
8
|
**last_key** | **String** | | [optional]
|
|
9
9
|
|
data/docs/InlineResponse2008.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Billabear::InlineResponse2008
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**data** | [**Array<
|
|
6
|
+
**data** | [**Array<Subscription>**](Subscription.md) | | [optional]
|
|
7
7
|
**has_more** | **BOOLEAN** | | [optional]
|
|
8
8
|
**last_key** | **String** | | [optional]
|
|
9
9
|
|
data/docs/InlineResponse2009.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Billabear::InlineResponse2009
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**data** | [**Array<
|
|
6
|
+
**data** | [**Array<InlineResponse2009Data>**](InlineResponse2009Data.md) | | [optional]
|
|
7
7
|
**has_more** | **BOOLEAN** | | [optional]
|
|
8
8
|
**last_key** | **String** | | [optional]
|
|
9
9
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Billabear::InlineResponse2009Data
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
Name | Type | Description | Notes
|
|
@@ -10,5 +10,5 @@ Name | Type | Description | Notes
|
|
|
10
10
|
**status** | **String** | | [optional]
|
|
11
11
|
**created_at** | **String** | | [optional]
|
|
12
12
|
**customer** | [**Customer**](Customer.md) | | [optional]
|
|
13
|
-
**receipts** | [**Array<
|
|
13
|
+
**receipts** | [**Array<InlineResponse2009Receipts>**](InlineResponse2009Receipts.md) | | [optional]
|
|
14
14
|
|
data/docs/InlineResponse201.md
CHANGED
data/docs/InlineResponse400.md
CHANGED
data/docs/Invoice.md
CHANGED
data/docs/InvoiceLines.md
CHANGED
data/docs/InvoicesApi.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Billabear::InvoicesApi
|
|
2
2
|
|
|
3
3
|
All URIs are relative to *https://{customerId}.billabear.cloud/api/v1*
|
|
4
4
|
|
|
@@ -9,7 +9,7 @@ Method | HTTP request | Description
|
|
|
9
9
|
[**get_invoices_for_customer**](InvoicesApi.md#get_invoices_for_customer) | **GET** /customer/{customerId}/invoices | List Customer Invoices
|
|
10
10
|
|
|
11
11
|
# **charge_invoice**
|
|
12
|
-
>
|
|
12
|
+
> InlineResponse20014 charge_invoice(invoice_id)
|
|
13
13
|
|
|
14
14
|
Charge Invoice
|
|
15
15
|
|
|
@@ -18,16 +18,16 @@ Attempts to charge a card that is on file for the invoice amount
|
|
|
18
18
|
### Example
|
|
19
19
|
```ruby
|
|
20
20
|
# load the gem
|
|
21
|
-
require '
|
|
21
|
+
require 'billabear'
|
|
22
22
|
# setup authorization
|
|
23
|
-
|
|
23
|
+
Billabear.configure do |config|
|
|
24
24
|
# Configure API key authorization: ApiKeyAuth
|
|
25
25
|
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
26
26
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
27
27
|
#config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
-
api_instance =
|
|
30
|
+
api_instance = Billabear::InvoicesApi.new
|
|
31
31
|
invoice_id = 'invoice_id_example' # String | The id of the invoice
|
|
32
32
|
|
|
33
33
|
|
|
@@ -35,7 +35,7 @@ begin
|
|
|
35
35
|
#Charge Invoice
|
|
36
36
|
result = api_instance.charge_invoice(invoice_id)
|
|
37
37
|
p result
|
|
38
|
-
rescue
|
|
38
|
+
rescue Billabear::ApiError => e
|
|
39
39
|
puts "Exception when calling InvoicesApi->charge_invoice: #{e}"
|
|
40
40
|
end
|
|
41
41
|
```
|
|
@@ -48,7 +48,7 @@ Name | Type | Description | Notes
|
|
|
48
48
|
|
|
49
49
|
### Return type
|
|
50
50
|
|
|
51
|
-
[**
|
|
51
|
+
[**InlineResponse20014**](InlineResponse20014.md)
|
|
52
52
|
|
|
53
53
|
### Authorization
|
|
54
54
|
|
|
@@ -71,16 +71,16 @@ Returns the pdf blob for the invoice
|
|
|
71
71
|
### Example
|
|
72
72
|
```ruby
|
|
73
73
|
# load the gem
|
|
74
|
-
require '
|
|
74
|
+
require 'billabear'
|
|
75
75
|
# setup authorization
|
|
76
|
-
|
|
76
|
+
Billabear.configure do |config|
|
|
77
77
|
# Configure API key authorization: ApiKeyAuth
|
|
78
78
|
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
79
79
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
80
80
|
#config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
81
81
|
end
|
|
82
82
|
|
|
83
|
-
api_instance =
|
|
83
|
+
api_instance = Billabear::InvoicesApi.new
|
|
84
84
|
invoice_id = 'invoice_id_example' # String | The id of the invoice
|
|
85
85
|
|
|
86
86
|
|
|
@@ -88,7 +88,7 @@ begin
|
|
|
88
88
|
#Download Invoice
|
|
89
89
|
result = api_instance.download_invoice(invoice_id)
|
|
90
90
|
p result
|
|
91
|
-
rescue
|
|
91
|
+
rescue Billabear::ApiError => e
|
|
92
92
|
puts "Exception when calling InvoicesApi->download_invoice: #{e}"
|
|
93
93
|
end
|
|
94
94
|
```
|
|
@@ -115,7 +115,7 @@ Name | Type | Description | Notes
|
|
|
115
115
|
|
|
116
116
|
|
|
117
117
|
# **get_invoices_for_customer**
|
|
118
|
-
>
|
|
118
|
+
> InlineResponse2006 get_invoices_for_customer(customer_id)
|
|
119
119
|
|
|
120
120
|
List Customer Invoices
|
|
121
121
|
|
|
@@ -124,16 +124,16 @@ List Customer Invoices
|
|
|
124
124
|
### Example
|
|
125
125
|
```ruby
|
|
126
126
|
# load the gem
|
|
127
|
-
require '
|
|
127
|
+
require 'billabear'
|
|
128
128
|
# setup authorization
|
|
129
|
-
|
|
129
|
+
Billabear.configure do |config|
|
|
130
130
|
# Configure API key authorization: ApiKeyAuth
|
|
131
131
|
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
132
132
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
133
133
|
#config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
134
134
|
end
|
|
135
135
|
|
|
136
|
-
api_instance =
|
|
136
|
+
api_instance = Billabear::InvoicesApi.new
|
|
137
137
|
customer_id = 'customer_id_example' # String | The id of the customer to retrieve
|
|
138
138
|
|
|
139
139
|
|
|
@@ -141,7 +141,7 @@ begin
|
|
|
141
141
|
#List Customer Invoices
|
|
142
142
|
result = api_instance.get_invoices_for_customer(customer_id)
|
|
143
143
|
p result
|
|
144
|
-
rescue
|
|
144
|
+
rescue Billabear::ApiError => e
|
|
145
145
|
puts "Exception when calling InvoicesApi->get_invoices_for_customer: #{e}"
|
|
146
146
|
end
|
|
147
147
|
```
|
|
@@ -154,7 +154,7 @@ Name | Type | Description | Notes
|
|
|
154
154
|
|
|
155
155
|
### Return type
|
|
156
156
|
|
|
157
|
-
[**
|
|
157
|
+
[**InlineResponse2006**](InlineResponse2006.md)
|
|
158
158
|
|
|
159
159
|
### Authorization
|
|
160
160
|
|
data/docs/IssueRefundPayment.md
CHANGED
data/docs/Limit.md
CHANGED
data/docs/Metric.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Billabear::Metric
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**id** | **String** | | [optional]
|
|
7
|
+
**name** | **String** | | [optional]
|
|
8
|
+
**code** | **String** | | [optional]
|
|
9
|
+
**aggregation_method** | **String** | | [optional]
|
|
10
|
+
**aggregation_property** | **String** | | [optional]
|
|
11
|
+
**filters** | [**Array<MetricFilter>**](MetricFilter.md) | | [optional]
|
|
12
|
+
|
data/docs/MetricCost.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Billabear::MetricCost
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**name** | **String** | The name of the metric that the cost is for | [optional]
|
|
7
|
+
**amount** | **Integer** | | [optional]
|
|
8
|
+
**currency** | **String** | | [optional]
|
|
9
|
+
**usage** | **Float** | | [optional]
|
|
10
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Billabear::MetricFilter
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**id** | **String** | | [optional]
|
|
7
|
+
**name** | **String** | | [optional]
|
|
8
|
+
**code** | **String** | | [optional]
|
|
9
|
+
**value** | **String** | | [optional]
|
|
10
|
+
**type** | **String** | | [optional]
|
|
11
|
+
|
data/docs/PaymentDetails.md
CHANGED