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
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#BillaBear
|
|
3
|
+
|
|
4
|
+
#The REST API provided by BillaBear
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 1.0.0
|
|
7
|
+
Contact: support@billabear.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 3.0.56
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require 'spec_helper'
|
|
13
|
+
require 'json'
|
|
14
|
+
|
|
15
|
+
# Unit tests for SwaggerClient::CustomersApi
|
|
16
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
17
|
+
# Please update as you see appropriate
|
|
18
|
+
describe 'CustomersApi' do
|
|
19
|
+
before do
|
|
20
|
+
# run before each test
|
|
21
|
+
@instance = SwaggerClient::CustomersApi.new
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
after do
|
|
25
|
+
# run after each test
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
describe 'test an instance of CustomersApi' do
|
|
29
|
+
it 'should create an instance of CustomersApi' do
|
|
30
|
+
expect(@instance).to be_instance_of(SwaggerClient::CustomersApi)
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# unit tests for add_seats_subscriptions
|
|
35
|
+
# Add Seats
|
|
36
|
+
# Adds seats to a per seat subscription<br><br><strong>Since 1.1.4</strong>
|
|
37
|
+
# @param body
|
|
38
|
+
# @param subscription_id The id of the subscription to retrieve
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [InlineResponse20011]
|
|
41
|
+
describe 'add_seats_subscriptions test' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# unit tests for apply_voucher_to_customer
|
|
48
|
+
# Apply voucher
|
|
49
|
+
# Apply Voucher to Customer
|
|
50
|
+
# @param body
|
|
51
|
+
# @param customer_id The id of the customer to retrieve
|
|
52
|
+
# @param [Hash] opts the optional parameters
|
|
53
|
+
# @return [String]
|
|
54
|
+
describe 'apply_voucher_to_customer test' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# unit tests for create_customer
|
|
61
|
+
# Create
|
|
62
|
+
# Create a customer
|
|
63
|
+
# @param body
|
|
64
|
+
# @param [Hash] opts the optional parameters
|
|
65
|
+
# @return [Customer]
|
|
66
|
+
describe 'create_customer test' do
|
|
67
|
+
it 'should work' do
|
|
68
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# unit tests for disable_customer
|
|
73
|
+
# Disable Customer
|
|
74
|
+
# Disable customer
|
|
75
|
+
# @param customer_id The id of the customer to retrieve
|
|
76
|
+
# @param [Hash] opts the optional parameters
|
|
77
|
+
# @return [String]
|
|
78
|
+
describe 'disable_customer test' do
|
|
79
|
+
it 'should work' do
|
|
80
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# unit tests for enable_customer
|
|
85
|
+
# Enable Customer
|
|
86
|
+
# Enable a customer
|
|
87
|
+
# @param customer_id The id of the customer to retrieve
|
|
88
|
+
# @param [Hash] opts the optional parameters
|
|
89
|
+
# @return [String]
|
|
90
|
+
describe 'enable_customer test' do
|
|
91
|
+
it 'should work' do
|
|
92
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# unit tests for get_active_for_customer
|
|
97
|
+
# List Customer Active Subscriptions
|
|
98
|
+
# List all Active customer subscriptions
|
|
99
|
+
# @param customer_id The id of the customer to retrieve
|
|
100
|
+
# @param [Hash] opts the optional parameters
|
|
101
|
+
# @return [InlineResponse2006]
|
|
102
|
+
describe 'get_active_for_customer test' do
|
|
103
|
+
it 'should work' do
|
|
104
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# unit tests for get_all_customers
|
|
109
|
+
# List
|
|
110
|
+
# List all customers
|
|
111
|
+
# @param [Hash] opts the optional parameters
|
|
112
|
+
# @option opts [Integer] :limit How many items to return at one time (max 100)
|
|
113
|
+
# @option opts [String] :last_key The key to be used in pagination to say what the last key of the previous page was
|
|
114
|
+
# @option opts [String] :email The email to search for
|
|
115
|
+
# @option opts [String] :country The country code to search for
|
|
116
|
+
# @option opts [String] :reference The reference to search for
|
|
117
|
+
# @option opts [String] :external_reference The external reference to search for
|
|
118
|
+
# @return [InlineResponse200]
|
|
119
|
+
describe 'get_all_customers test' do
|
|
120
|
+
it 'should work' do
|
|
121
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# unit tests for get_customer_by_id
|
|
126
|
+
# Detail
|
|
127
|
+
# Info for a specific customer
|
|
128
|
+
# @param customer_id The id of the customer to retrieve
|
|
129
|
+
# @param [Hash] opts the optional parameters
|
|
130
|
+
# @return [Customer]
|
|
131
|
+
describe 'get_customer_by_id test' do
|
|
132
|
+
it 'should work' do
|
|
133
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# unit tests for get_customer_limits_by_id
|
|
138
|
+
# Fetch Customer Limits
|
|
139
|
+
# Limits for a specific customer
|
|
140
|
+
# @param customer_id The id of the customer to retrieve
|
|
141
|
+
# @param [Hash] opts the optional parameters
|
|
142
|
+
# @return [InlineResponse2001]
|
|
143
|
+
describe 'get_customer_limits_by_id test' do
|
|
144
|
+
it 'should work' do
|
|
145
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# unit tests for get_for_customer
|
|
150
|
+
# List Customer Subscriptions
|
|
151
|
+
# List all customer subscriptions<br><br><strong>Since 1.1</strong>
|
|
152
|
+
# @param customer_id The id of the customer to retrieve
|
|
153
|
+
# @param [Hash] opts the optional parameters
|
|
154
|
+
# @return [InlineResponse2006]
|
|
155
|
+
describe 'get_for_customer test' do
|
|
156
|
+
it 'should work' do
|
|
157
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
158
|
+
end
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# unit tests for get_invoices_for_customer
|
|
162
|
+
# List Customer Invoices
|
|
163
|
+
# List Customer Invoices
|
|
164
|
+
# @param customer_id The id of the customer to retrieve
|
|
165
|
+
# @param [Hash] opts the optional parameters
|
|
166
|
+
# @return [InlineResponse2004]
|
|
167
|
+
describe 'get_invoices_for_customer test' do
|
|
168
|
+
it 'should work' do
|
|
169
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
# unit tests for get_payments_for_customer
|
|
174
|
+
# List Customer Payments
|
|
175
|
+
# List Customer Payment
|
|
176
|
+
# @param customer_id The id of the customer to retrieve
|
|
177
|
+
# @param [Hash] opts the optional parameters
|
|
178
|
+
# @option opts [Integer] :limit How many items to return at one time (max 100)
|
|
179
|
+
# @option opts [String] :last_key The key to be used in pagination to say what the last key of the previous page was
|
|
180
|
+
# @option opts [String] :name The name to search for
|
|
181
|
+
# @return [InlineResponse2003]
|
|
182
|
+
describe 'get_payments_for_customer test' do
|
|
183
|
+
it 'should work' do
|
|
184
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# unit tests for get_refunds_for_customer
|
|
189
|
+
# List Customer Refunds
|
|
190
|
+
# List Customer Refund
|
|
191
|
+
# @param customer_id The id of the customer to retrieve
|
|
192
|
+
# @param [Hash] opts the optional parameters
|
|
193
|
+
# @option opts [Integer] :limit How many items to return at one time (max 100)
|
|
194
|
+
# @option opts [String] :last_key The key to be used in pagination to say what the last key of the previous page was
|
|
195
|
+
# @option opts [String] :name The name to search for
|
|
196
|
+
# @return [InlineResponse2002]
|
|
197
|
+
describe 'get_refunds_for_customer test' do
|
|
198
|
+
it 'should work' do
|
|
199
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
200
|
+
end
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# unit tests for list_payment_details
|
|
204
|
+
# List Customer's Payment Details
|
|
205
|
+
# List all customers <br><br>Added in version 1.1
|
|
206
|
+
# @param customer_id The id of the customer to retrieve
|
|
207
|
+
# @param [Hash] opts the optional parameters
|
|
208
|
+
# @return [InlineResponse2005]
|
|
209
|
+
describe 'list_payment_details test' do
|
|
210
|
+
it 'should work' do
|
|
211
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
212
|
+
end
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
# unit tests for remove_seats_subscriptions
|
|
216
|
+
# Remove Seats
|
|
217
|
+
# Remove seats to a per seat subscription<br><br><strong>Since 1.1.4</strong>
|
|
218
|
+
# @param body
|
|
219
|
+
# @param subscription_id The id of the subscription to retrieve
|
|
220
|
+
# @param [Hash] opts the optional parameters
|
|
221
|
+
# @return [InlineResponse20011]
|
|
222
|
+
describe 'remove_seats_subscriptions test' do
|
|
223
|
+
it 'should work' do
|
|
224
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
225
|
+
end
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
# unit tests for update_customer
|
|
229
|
+
# Update
|
|
230
|
+
# Update a customer
|
|
231
|
+
# @param body
|
|
232
|
+
# @param customer_id The id of the customer to retrieve
|
|
233
|
+
# @param [Hash] opts the optional parameters
|
|
234
|
+
# @return [Customer]
|
|
235
|
+
describe 'update_customer test' do
|
|
236
|
+
it 'should work' do
|
|
237
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
238
|
+
end
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
end
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#BillaBear
|
|
3
|
+
|
|
4
|
+
#The REST API provided by BillaBear
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 1.0.0
|
|
7
|
+
Contact: support@billabear.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 3.0.56
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require 'spec_helper'
|
|
13
|
+
require 'json'
|
|
14
|
+
|
|
15
|
+
# Unit tests for SwaggerClient::InvoicesApi
|
|
16
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
17
|
+
# Please update as you see appropriate
|
|
18
|
+
describe 'InvoicesApi' do
|
|
19
|
+
before do
|
|
20
|
+
# run before each test
|
|
21
|
+
@instance = SwaggerClient::InvoicesApi.new
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
after do
|
|
25
|
+
# run after each test
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
describe 'test an instance of InvoicesApi' do
|
|
29
|
+
it 'should create an instance of InvoicesApi' do
|
|
30
|
+
expect(@instance).to be_instance_of(SwaggerClient::InvoicesApi)
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# unit tests for charge_invoice
|
|
35
|
+
# Charge Invoice
|
|
36
|
+
# Attempts to charge a card that is on file for the invoice amount
|
|
37
|
+
# @param invoice_id The id of the invoice
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @return [InlineResponse20012]
|
|
40
|
+
describe 'charge_invoice test' do
|
|
41
|
+
it 'should work' do
|
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# unit tests for download_invoice
|
|
47
|
+
# Download Invoice
|
|
48
|
+
# Returns the pdf blob for the invoice
|
|
49
|
+
# @param invoice_id The id of the invoice
|
|
50
|
+
# @param [Hash] opts the optional parameters
|
|
51
|
+
# @return [String]
|
|
52
|
+
describe 'download_invoice test' do
|
|
53
|
+
it 'should work' do
|
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# unit tests for get_invoices_for_customer
|
|
59
|
+
# List Customer Invoices
|
|
60
|
+
# List Customer Invoices
|
|
61
|
+
# @param customer_id The id of the customer to retrieve
|
|
62
|
+
# @param [Hash] opts the optional parameters
|
|
63
|
+
# @return [InlineResponse2004]
|
|
64
|
+
describe 'get_invoices_for_customer test' do
|
|
65
|
+
it 'should work' do
|
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
end
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#BillaBear
|
|
3
|
+
|
|
4
|
+
#The REST API provided by BillaBear
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 1.0.0
|
|
7
|
+
Contact: support@billabear.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 3.0.56
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require 'spec_helper'
|
|
13
|
+
require 'json'
|
|
14
|
+
|
|
15
|
+
# Unit tests for SwaggerClient::PaymentDetailsApi
|
|
16
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
17
|
+
# Please update as you see appropriate
|
|
18
|
+
describe 'PaymentDetailsApi' do
|
|
19
|
+
before do
|
|
20
|
+
# run before each test
|
|
21
|
+
@instance = SwaggerClient::PaymentDetailsApi.new
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
after do
|
|
25
|
+
# run after each test
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
describe 'test an instance of PaymentDetailsApi' do
|
|
29
|
+
it 'should create an instance of PaymentDetailsApi' do
|
|
30
|
+
expect(@instance).to be_instance_of(SwaggerClient::PaymentDetailsApi)
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# unit tests for complete_frontend_payment_details
|
|
35
|
+
# Complete Frontend Detail Collection
|
|
36
|
+
# Complete frontend payment details
|
|
37
|
+
# @param body
|
|
38
|
+
# @param customer_id The id of the customer to retrieve
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [PaymentDetails]
|
|
41
|
+
describe 'complete_frontend_payment_details test' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# unit tests for delete_payment_details
|
|
48
|
+
# Delete
|
|
49
|
+
# Delete Payment Details
|
|
50
|
+
# @param payment_details_id The id of the payment details
|
|
51
|
+
# @param [Hash] opts the optional parameters
|
|
52
|
+
# @return [String]
|
|
53
|
+
describe 'delete_payment_details test' do
|
|
54
|
+
it 'should work' do
|
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# unit tests for delete_payment_details_customer
|
|
60
|
+
# Delete With Customer
|
|
61
|
+
# Delete Payment Details
|
|
62
|
+
# @param customer_id The id of the customer to retrieve
|
|
63
|
+
# @param payment_details_id The id of the payment details
|
|
64
|
+
# @param [Hash] opts the optional parameters
|
|
65
|
+
# @return [String]
|
|
66
|
+
describe 'delete_payment_details_customer test' do
|
|
67
|
+
it 'should work' do
|
|
68
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# unit tests for get_payment_details
|
|
73
|
+
# Fetch
|
|
74
|
+
# Fetch the payment cards
|
|
75
|
+
# @param payment_details_id The id of the payment details
|
|
76
|
+
# @param [Hash] opts the optional parameters
|
|
77
|
+
# @return [PaymentDetails]
|
|
78
|
+
describe 'get_payment_details test' do
|
|
79
|
+
it 'should work' do
|
|
80
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# unit tests for list_payment_details
|
|
85
|
+
# List Customer's Payment Details
|
|
86
|
+
# List all customers <br><br>Added in version 1.1
|
|
87
|
+
# @param customer_id The id of the customer to retrieve
|
|
88
|
+
# @param [Hash] opts the optional parameters
|
|
89
|
+
# @return [InlineResponse2005]
|
|
90
|
+
describe 'list_payment_details test' do
|
|
91
|
+
it 'should work' do
|
|
92
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# unit tests for make_default_payment_details
|
|
97
|
+
# Make Default
|
|
98
|
+
# Delete Payment Details
|
|
99
|
+
# @param customer_id The id of the customer to retrieve
|
|
100
|
+
# @param payment_details_id The id of the payment details
|
|
101
|
+
# @param [Hash] opts the optional parameters
|
|
102
|
+
# @return [String]
|
|
103
|
+
describe 'make_default_payment_details test' do
|
|
104
|
+
it 'should work' do
|
|
105
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# unit tests for make_default_payment_details_customer
|
|
110
|
+
# Make Default With Customer
|
|
111
|
+
# Delete Payment Details
|
|
112
|
+
# @param customer_id The id of the customer to retrieve
|
|
113
|
+
# @param payment_details_id The id of the payment details
|
|
114
|
+
# @param [Hash] opts the optional parameters
|
|
115
|
+
# @return [String]
|
|
116
|
+
describe 'make_default_payment_details_customer test' do
|
|
117
|
+
it 'should work' do
|
|
118
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# unit tests for start_frontend_payment_details
|
|
123
|
+
# Start Frontend Detail Collection
|
|
124
|
+
# Start frontend payment details
|
|
125
|
+
# @param customer_id The id of the customer to retrieve
|
|
126
|
+
# @param [Hash] opts the optional parameters
|
|
127
|
+
# @return [FrontendToken]
|
|
128
|
+
describe 'start_frontend_payment_details test' do
|
|
129
|
+
it 'should work' do
|
|
130
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
end
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#BillaBear
|
|
3
|
+
|
|
4
|
+
#The REST API provided by BillaBear
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 1.0.0
|
|
7
|
+
Contact: support@billabear.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 3.0.56
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require 'spec_helper'
|
|
13
|
+
require 'json'
|
|
14
|
+
|
|
15
|
+
# Unit tests for SwaggerClient::PaymentsApi
|
|
16
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
17
|
+
# Please update as you see appropriate
|
|
18
|
+
describe 'PaymentsApi' do
|
|
19
|
+
before do
|
|
20
|
+
# run before each test
|
|
21
|
+
@instance = SwaggerClient::PaymentsApi.new
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
after do
|
|
25
|
+
# run after each test
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
describe 'test an instance of PaymentsApi' do
|
|
29
|
+
it 'should create an instance of PaymentsApi' do
|
|
30
|
+
expect(@instance).to be_instance_of(SwaggerClient::PaymentsApi)
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# unit tests for charge_invoice
|
|
35
|
+
# Charge Invoice
|
|
36
|
+
# Attempts to charge a card that is on file for the invoice amount
|
|
37
|
+
# @param invoice_id The id of the invoice
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @return [InlineResponse20012]
|
|
40
|
+
describe 'charge_invoice test' do
|
|
41
|
+
it 'should work' do
|
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# unit tests for download_invoice
|
|
47
|
+
# Download Invoice
|
|
48
|
+
# Returns the pdf blob for the invoice
|
|
49
|
+
# @param invoice_id The id of the invoice
|
|
50
|
+
# @param [Hash] opts the optional parameters
|
|
51
|
+
# @return [String]
|
|
52
|
+
describe 'download_invoice test' do
|
|
53
|
+
it 'should work' do
|
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# unit tests for download_receipt
|
|
59
|
+
# Download Receipt
|
|
60
|
+
# Returns the pdf blob for the Receipt
|
|
61
|
+
# @param receipt The id of the receipt
|
|
62
|
+
# @param [Hash] opts the optional parameters
|
|
63
|
+
# @return [String]
|
|
64
|
+
describe 'download_receipt test' do
|
|
65
|
+
it 'should work' do
|
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# unit tests for get_invoices_for_customer
|
|
71
|
+
# List Customer Invoices
|
|
72
|
+
# List Customer Invoices
|
|
73
|
+
# @param customer_id The id of the customer to retrieve
|
|
74
|
+
# @param [Hash] opts the optional parameters
|
|
75
|
+
# @return [InlineResponse2004]
|
|
76
|
+
describe 'get_invoices_for_customer test' do
|
|
77
|
+
it 'should work' do
|
|
78
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# unit tests for get_payments_for_customer
|
|
83
|
+
# List Customer Payments
|
|
84
|
+
# List Customer Payment
|
|
85
|
+
# @param customer_id The id of the customer to retrieve
|
|
86
|
+
# @param [Hash] opts the optional parameters
|
|
87
|
+
# @option opts [Integer] :limit How many items to return at one time (max 100)
|
|
88
|
+
# @option opts [String] :last_key The key to be used in pagination to say what the last key of the previous page was
|
|
89
|
+
# @option opts [String] :name The name to search for
|
|
90
|
+
# @return [InlineResponse2003]
|
|
91
|
+
describe 'get_payments_for_customer test' do
|
|
92
|
+
it 'should work' do
|
|
93
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# unit tests for list_payment
|
|
98
|
+
# List
|
|
99
|
+
# List all payment
|
|
100
|
+
# @param [Hash] opts the optional parameters
|
|
101
|
+
# @option opts [Integer] :limit How many items to return at one time (max 100)
|
|
102
|
+
# @option opts [String] :last_key The key to be used in pagination to say what the last key of the previous page was
|
|
103
|
+
# @option opts [String] :name The name to search for
|
|
104
|
+
# @return [InlineResponse2007]
|
|
105
|
+
describe 'list_payment test' do
|
|
106
|
+
it 'should work' do
|
|
107
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# unit tests for refund_payment
|
|
112
|
+
# Refund Payment
|
|
113
|
+
# Issue a refund for payment
|
|
114
|
+
# @param body
|
|
115
|
+
# @param payment_id The id of the payment
|
|
116
|
+
# @param [Hash] opts the optional parameters
|
|
117
|
+
# @return [String]
|
|
118
|
+
describe 'refund_payment test' do
|
|
119
|
+
it 'should work' do
|
|
120
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
end
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#BillaBear
|
|
3
|
+
|
|
4
|
+
#The REST API provided by BillaBear
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 1.0.0
|
|
7
|
+
Contact: support@billabear.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 3.0.56
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require 'spec_helper'
|
|
13
|
+
require 'json'
|
|
14
|
+
|
|
15
|
+
# Unit tests for SwaggerClient::PricesApi
|
|
16
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
17
|
+
# Please update as you see appropriate
|
|
18
|
+
describe 'PricesApi' do
|
|
19
|
+
before do
|
|
20
|
+
# run before each test
|
|
21
|
+
@instance = SwaggerClient::PricesApi.new
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
after do
|
|
25
|
+
# run after each test
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
describe 'test an instance of PricesApi' do
|
|
29
|
+
it 'should create an instance of PricesApi' do
|
|
30
|
+
expect(@instance).to be_instance_of(SwaggerClient::PricesApi)
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# unit tests for create_price
|
|
35
|
+
# Create
|
|
36
|
+
# Create a price
|
|
37
|
+
# @param body
|
|
38
|
+
# @param product_id The id of the product to retrieve
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [String]
|
|
41
|
+
describe 'create_price test' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# unit tests for list_price
|
|
48
|
+
# List
|
|
49
|
+
# List all prices
|
|
50
|
+
# @param product_id The id of the product to retrieve
|
|
51
|
+
# @param [Hash] opts the optional parameters
|
|
52
|
+
# @option opts [Integer] :limit How many items to return at one time (max 100)
|
|
53
|
+
# @option opts [String] :last_key The key to be used in pagination to say what the last key of the previous page was
|
|
54
|
+
# @return [InlineResponse2009]
|
|
55
|
+
describe 'list_price test' do
|
|
56
|
+
it 'should work' do
|
|
57
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
end
|