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.
Files changed (215) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +509 -364
  3. data/billabear.gemspec +4 -4
  4. data/docs/Address.md +1 -1
  5. data/docs/BillingAdmin.md +1 -1
  6. data/docs/CheckoutApi.md +6 -6
  7. data/docs/CheckoutBody.md +1 -1
  8. data/docs/CheckoutItems.md +1 -1
  9. data/docs/CheckoutSubscriptions.md +1 -1
  10. data/docs/Cost.md +8 -0
  11. data/docs/Customer.md +3 -1
  12. data/docs/CustomerIdUasgelimitBody.md +8 -0
  13. data/docs/CustomersApi.md +319 -101
  14. data/docs/Error.md +1 -1
  15. data/docs/Event.md +11 -0
  16. data/docs/Feature.md +1 -1
  17. data/docs/FrontendToken.md +1 -1
  18. data/docs/InlineResponse200.md +1 -1
  19. data/docs/InlineResponse2001.md +3 -4
  20. data/docs/InlineResponse20010.md +2 -2
  21. data/docs/InlineResponse20011.md +4 -2
  22. data/docs/InlineResponse20012.md +4 -3
  23. data/docs/InlineResponse20013.md +7 -0
  24. data/docs/InlineResponse20014.md +8 -0
  25. data/docs/InlineResponse2002.md +4 -4
  26. data/docs/InlineResponse2003.md +2 -2
  27. data/docs/InlineResponse2004.md +2 -2
  28. data/docs/InlineResponse2005.md +2 -2
  29. data/docs/InlineResponse2006.md +2 -2
  30. data/docs/InlineResponse2007.md +2 -2
  31. data/docs/InlineResponse2008.md +2 -2
  32. data/docs/InlineResponse2009.md +2 -2
  33. data/docs/{InlineResponse2007Data.md → InlineResponse2009Data.md} +2 -2
  34. data/docs/{InlineResponse2007Receipts.md → InlineResponse2009Receipts.md} +1 -1
  35. data/docs/InlineResponse201.md +1 -1
  36. data/docs/InlineResponse201Lines.md +1 -1
  37. data/docs/InlineResponse400.md +1 -1
  38. data/docs/Invoice.md +1 -1
  39. data/docs/InvoiceLines.md +1 -1
  40. data/docs/InvoicesApi.md +17 -17
  41. data/docs/IssueRefundPayment.md +1 -1
  42. data/docs/Limit.md +1 -1
  43. data/docs/Metric.md +12 -0
  44. data/docs/MetricCost.md +10 -0
  45. data/docs/MetricFilter.md +11 -0
  46. data/docs/PaymentDetails.md +1 -1
  47. data/docs/PaymentDetailsApi.md +48 -52
  48. data/docs/PaymentsApi.md +41 -42
  49. data/docs/Price.md +2 -1
  50. data/docs/PricesApi.md +15 -16
  51. data/docs/Product.md +1 -1
  52. data/docs/ProductTaxType.md +1 -1
  53. data/docs/ProductsApi.md +23 -24
  54. data/docs/ReceiptApi.md +5 -5
  55. data/docs/Refund.md +1 -1
  56. data/docs/RefundsApi.md +17 -17
  57. data/docs/SeatsAddBody.md +1 -1
  58. data/docs/SeatsRemoveBody.md +1 -1
  59. data/docs/Subscription.md +2 -1
  60. data/docs/SubscriptionIdCancelBody.md +1 -1
  61. data/docs/SubscriptionIdExtendBody.md +1 -1
  62. data/docs/SubscriptionIdPlanBody.md +2 -2
  63. data/docs/SubscriptionIdPriceBody.md +1 -1
  64. data/docs/SubscriptionPlan.md +1 -1
  65. data/docs/SubscriptionStartBody.md +2 -1
  66. data/docs/SubscriptionTrialBody.md +1 -1
  67. data/docs/SubscriptionsApi.md +78 -79
  68. data/docs/UsageApi.md +279 -0
  69. data/docs/UsageLimit.md +9 -0
  70. data/docs/VoucherCode.md +1 -1
  71. data/git_push.sh +2 -2
  72. data/lib/{swagger_client → billabear}/api/checkout_api.rb +3 -3
  73. data/lib/{swagger_client → billabear}/api/customers_api.rb +284 -45
  74. data/lib/{swagger_client → billabear}/api/invoices_api.rb +9 -9
  75. data/lib/{swagger_client → billabear}/api/payment_details_api.rb +26 -26
  76. data/lib/{swagger_client → billabear}/api/payments_api.rb +20 -20
  77. data/lib/{swagger_client → billabear}/api/prices_api.rb +11 -11
  78. data/lib/{swagger_client → billabear}/api/products_api.rb +11 -11
  79. data/lib/{swagger_client → billabear}/api/receipt_api.rb +3 -3
  80. data/lib/{swagger_client → billabear}/api/refunds_api.rb +9 -9
  81. data/lib/{swagger_client → billabear}/api/subscriptions_api.rb +29 -29
  82. data/lib/billabear/api/usage_api.rb +314 -0
  83. data/lib/{swagger_client → billabear}/api_client.rb +4 -4
  84. data/lib/{swagger_client → billabear}/api_error.rb +3 -3
  85. data/lib/{swagger_client → billabear}/configuration.rb +3 -3
  86. data/lib/{swagger_client → billabear}/models/address.rb +6 -6
  87. data/lib/{swagger_client → billabear}/models/billing_admin.rb +6 -6
  88. data/lib/{swagger_client → billabear}/models/checkout_body.rb +6 -6
  89. data/lib/{swagger_client → billabear}/models/checkout_items.rb +6 -6
  90. data/lib/{swagger_client → billabear}/models/checkout_subscriptions.rb +6 -6
  91. data/lib/billabear/models/cost.rb +215 -0
  92. data/lib/{swagger_client → billabear}/models/customer.rb +45 -11
  93. data/lib/billabear/models/customer_id_uasgelimit_body.rb +259 -0
  94. data/lib/{swagger_client → billabear}/models/error.rb +6 -6
  95. data/lib/billabear/models/event.rb +262 -0
  96. data/lib/{swagger_client → billabear}/models/feature.rb +6 -6
  97. data/lib/{swagger_client → billabear}/models/frontend_token.rb +6 -6
  98. data/lib/{swagger_client → billabear}/models/inline_response_200.rb +6 -6
  99. data/lib/billabear/models/inline_response_200_1.rb +217 -0
  100. data/lib/{swagger_client → billabear}/models/inline_response_200_10.rb +6 -6
  101. data/lib/{swagger_client/models/inline_response_200_2.rb → billabear/models/inline_response_200_11.rb} +7 -7
  102. data/lib/billabear/models/inline_response_200_12.rb +226 -0
  103. data/lib/{swagger_client/models/inline_response_200_11.rb → billabear/models/inline_response_200_13.rb} +7 -7
  104. data/lib/{swagger_client/models/inline_response_200_12.rb → billabear/models/inline_response_200_14.rb} +7 -7
  105. data/lib/{swagger_client/models/inline_response_200_1.rb → billabear/models/inline_response_200_2.rb} +7 -7
  106. data/lib/{swagger_client → billabear}/models/inline_response_200_3.rb +6 -6
  107. data/lib/{swagger_client → billabear}/models/inline_response_200_4.rb +6 -6
  108. data/lib/{swagger_client → billabear}/models/inline_response_200_5.rb +6 -6
  109. data/lib/{swagger_client → billabear}/models/inline_response_200_6.rb +6 -6
  110. data/lib/{swagger_client → billabear}/models/inline_response_200_7.rb +6 -6
  111. data/lib/{swagger_client → billabear}/models/inline_response_200_8.rb +6 -6
  112. data/lib/{swagger_client → billabear}/models/inline_response_200_9.rb +6 -6
  113. data/lib/{swagger_client/models/inline_response_200_7_data.rb → billabear/models/inline_response_200_9_data.rb} +7 -7
  114. data/lib/{swagger_client/models/inline_response_200_7_receipts.rb → billabear/models/inline_response_200_9_receipts.rb} +7 -7
  115. data/lib/{swagger_client → billabear}/models/inline_response_201.rb +6 -6
  116. data/lib/{swagger_client → billabear}/models/inline_response_201_lines.rb +6 -6
  117. data/lib/{swagger_client → billabear}/models/inline_response_400.rb +6 -6
  118. data/lib/{swagger_client → billabear}/models/invoice.rb +6 -6
  119. data/lib/{swagger_client → billabear}/models/invoice_lines.rb +6 -6
  120. data/lib/{swagger_client → billabear}/models/issue_refund_payment.rb +6 -6
  121. data/lib/{swagger_client → billabear}/models/limit.rb +6 -6
  122. data/lib/billabear/models/metric.rb +288 -0
  123. data/lib/billabear/models/metric_cost.rb +234 -0
  124. data/lib/billabear/models/metric_filter.rb +276 -0
  125. data/lib/{swagger_client → billabear}/models/payment_details.rb +6 -6
  126. data/lib/{swagger_client → billabear}/models/price.rb +20 -11
  127. data/lib/{swagger_client → billabear}/models/product.rb +6 -6
  128. data/lib/{swagger_client → billabear}/models/product_tax_type.rb +6 -6
  129. data/lib/{swagger_client → billabear}/models/refund.rb +6 -6
  130. data/lib/{swagger_client → billabear}/models/seats_add_body.rb +6 -6
  131. data/lib/{swagger_client → billabear}/models/seats_remove_body.rb +6 -6
  132. data/lib/{swagger_client → billabear}/models/subscription.rb +16 -7
  133. data/lib/{swagger_client → billabear}/models/subscription_id_cancel_body.rb +6 -6
  134. data/lib/{swagger_client → billabear}/models/subscription_id_extend_body.rb +6 -6
  135. data/lib/{swagger_client → billabear}/models/subscription_id_plan_body.rb +11 -6
  136. data/lib/{swagger_client → billabear}/models/subscription_id_price_body.rb +6 -6
  137. data/lib/{swagger_client → billabear}/models/subscription_plan.rb +6 -6
  138. data/lib/{swagger_client → billabear}/models/subscription_start_body.rb +20 -10
  139. data/lib/{swagger_client → billabear}/models/subscription_trial_body.rb +6 -6
  140. data/lib/billabear/models/usage_limit.rb +258 -0
  141. data/lib/{swagger_client → billabear}/models/voucher_code.rb +6 -6
  142. data/lib/{swagger_client → billabear}/version.rb +4 -4
  143. data/lib/billabear.rb +105 -0
  144. data/spec/api/checkout_api_spec.rb +5 -5
  145. data/spec/api/customers_api_spec.rb +68 -17
  146. data/spec/api/invoices_api_spec.rb +7 -7
  147. data/spec/api/payment_details_api_spec.rb +10 -10
  148. data/spec/api/payments_api_spec.rb +10 -10
  149. data/spec/api/prices_api_spec.rb +7 -7
  150. data/spec/api/products_api_spec.rb +7 -7
  151. data/spec/api/receipt_api_spec.rb +5 -5
  152. data/spec/api/refunds_api_spec.rb +7 -7
  153. data/spec/api/subscriptions_api_spec.rb +13 -13
  154. data/spec/api/usage_api_spec.rb +96 -0
  155. data/spec/api_client_spec.rb +31 -31
  156. data/spec/configuration_spec.rb +5 -5
  157. data/spec/models/address_spec.rb +5 -5
  158. data/spec/models/billing_admin_spec.rb +5 -5
  159. data/spec/models/checkout_body_spec.rb +5 -5
  160. data/spec/models/checkout_items_spec.rb +5 -5
  161. data/spec/models/checkout_subscriptions_spec.rb +5 -5
  162. data/spec/models/cost_spec.rb +46 -0
  163. data/spec/models/customer_id_uasgelimit_body_spec.rb +50 -0
  164. data/spec/models/customer_spec.rb +21 -5
  165. data/spec/models/error_spec.rb +5 -5
  166. data/spec/models/event_spec.rb +64 -0
  167. data/spec/models/feature_spec.rb +5 -5
  168. data/spec/models/frontend_token_spec.rb +5 -5
  169. data/spec/models/inline_response_200_10_spec.rb +5 -5
  170. data/spec/models/inline_response_200_11_spec.rb +18 -6
  171. data/spec/models/inline_response_200_12_spec.rb +13 -11
  172. data/spec/models/inline_response_200_13_spec.rb +40 -0
  173. data/spec/models/inline_response_200_14_spec.rb +50 -0
  174. data/spec/models/inline_response_200_1_spec.rb +7 -13
  175. data/spec/models/inline_response_200_2_spec.rb +8 -8
  176. data/spec/models/inline_response_200_3_spec.rb +5 -5
  177. data/spec/models/inline_response_200_4_spec.rb +5 -5
  178. data/spec/models/inline_response_200_5_spec.rb +5 -5
  179. data/spec/models/inline_response_200_6_spec.rb +5 -5
  180. data/spec/models/inline_response_200_7_spec.rb +5 -5
  181. data/spec/models/inline_response_200_8_spec.rb +5 -5
  182. data/spec/models/{inline_response_200_7_data_spec.rb → inline_response_200_9_data_spec.rb} +8 -8
  183. data/spec/models/{inline_response_200_7_receipts_spec.rb → inline_response_200_9_receipts_spec.rb} +8 -8
  184. data/spec/models/inline_response_200_9_spec.rb +5 -5
  185. data/spec/models/inline_response_200_spec.rb +5 -5
  186. data/spec/models/inline_response_201_lines_spec.rb +5 -5
  187. data/spec/models/inline_response_201_spec.rb +5 -5
  188. data/spec/models/inline_response_400_spec.rb +5 -5
  189. data/spec/models/invoice_lines_spec.rb +5 -5
  190. data/spec/models/invoice_spec.rb +5 -5
  191. data/spec/models/issue_refund_payment_spec.rb +5 -5
  192. data/spec/models/limit_spec.rb +5 -5
  193. data/spec/models/metric_cost_spec.rb +58 -0
  194. data/spec/models/metric_filter_spec.rb +68 -0
  195. data/spec/models/metric_spec.rb +74 -0
  196. data/spec/models/payment_details_spec.rb +5 -5
  197. data/spec/models/price_spec.rb +11 -5
  198. data/spec/models/product_spec.rb +5 -5
  199. data/spec/models/product_tax_type_spec.rb +5 -5
  200. data/spec/models/refund_spec.rb +5 -5
  201. data/spec/models/seats_add_body_spec.rb +5 -5
  202. data/spec/models/seats_remove_body_spec.rb +5 -5
  203. data/spec/models/subscription_id_cancel_body_spec.rb +5 -5
  204. data/spec/models/subscription_id_extend_body_spec.rb +5 -5
  205. data/spec/models/subscription_id_plan_body_spec.rb +5 -5
  206. data/spec/models/subscription_id_price_body_spec.rb +5 -5
  207. data/spec/models/subscription_plan_spec.rb +5 -5
  208. data/spec/models/subscription_spec.rb +11 -5
  209. data/spec/models/subscription_start_body_spec.rb +11 -5
  210. data/spec/models/subscription_trial_body_spec.rb +5 -5
  211. data/spec/models/usage_limit_spec.rb +56 -0
  212. data/spec/models/voucher_code_spec.rb +5 -5
  213. data/spec/spec_helper.rb +3 -3
  214. metadata +110 -70
  215. data/lib/swagger_client.rb +0 -95
@@ -3,59 +3,59 @@
3
3
 
4
4
  #The REST API provided by BillaBear
5
5
 
6
- OpenAPI spec version: 1.0.0
6
+ OpenAPI spec version: 1.1.0
7
7
  Contact: support@billabear.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.56
9
+ Swagger Codegen version: 3.0.66
10
10
  =end
11
11
 
12
12
  require 'spec_helper'
13
13
 
14
- describe SwaggerClient::ApiClient do
14
+ describe Billabear::ApiClient do
15
15
  context 'initialization' do
16
16
  context 'URL stuff' do
17
17
  context 'host' do
18
18
  it 'removes http from host' do
19
- SwaggerClient.configure { |c| c.host = 'http://example.com' }
20
- expect(SwaggerClient::Configuration.default.host).to eq('example.com')
19
+ Billabear.configure { |c| c.host = 'http://example.com' }
20
+ expect(Billabear::Configuration.default.host).to eq('example.com')
21
21
  end
22
22
 
23
23
  it 'removes https from host' do
24
- SwaggerClient.configure { |c| c.host = 'https://wookiee.com' }
25
- expect(SwaggerClient::ApiClient.default.config.host).to eq('wookiee.com')
24
+ Billabear.configure { |c| c.host = 'https://wookiee.com' }
25
+ expect(Billabear::ApiClient.default.config.host).to eq('wookiee.com')
26
26
  end
27
27
 
28
28
  it 'removes trailing path from host' do
29
- SwaggerClient.configure { |c| c.host = 'hobo.com/v4' }
30
- expect(SwaggerClient::Configuration.default.host).to eq('hobo.com')
29
+ Billabear.configure { |c| c.host = 'hobo.com/v4' }
30
+ expect(Billabear::Configuration.default.host).to eq('hobo.com')
31
31
  end
32
32
  end
33
33
 
34
34
  context 'base_path' do
35
35
  it "prepends a slash to base_path" do
36
- SwaggerClient.configure { |c| c.base_path = 'v4/dog' }
37
- expect(SwaggerClient::Configuration.default.base_path).to eq('/v4/dog')
36
+ Billabear.configure { |c| c.base_path = 'v4/dog' }
37
+ expect(Billabear::Configuration.default.base_path).to eq('/v4/dog')
38
38
  end
39
39
 
40
40
  it "doesn't prepend a slash if one is already there" do
41
- SwaggerClient.configure { |c| c.base_path = '/v4/dog' }
42
- expect(SwaggerClient::Configuration.default.base_path).to eq('/v4/dog')
41
+ Billabear.configure { |c| c.base_path = '/v4/dog' }
42
+ expect(Billabear::Configuration.default.base_path).to eq('/v4/dog')
43
43
  end
44
44
 
45
45
  it "ends up as a blank string if nil" do
46
- SwaggerClient.configure { |c| c.base_path = nil }
47
- expect(SwaggerClient::Configuration.default.base_path).to eq('')
46
+ Billabear.configure { |c| c.base_path = nil }
47
+ expect(Billabear::Configuration.default.base_path).to eq('')
48
48
  end
49
49
  end
50
50
  end
51
51
  end
52
52
 
53
53
  describe 'params_encoding in #build_request' do
54
- let(:config) { SwaggerClient::Configuration.new }
55
- let(:api_client) { SwaggerClient::ApiClient.new(config) }
54
+ let(:config) { Billabear::Configuration.new }
55
+ let(:api_client) { Billabear::ApiClient.new(config) }
56
56
 
57
57
  it 'defaults to nil' do
58
- expect(SwaggerClient::Configuration.default.params_encoding).to eq(nil)
58
+ expect(Billabear::Configuration.default.params_encoding).to eq(nil)
59
59
  expect(config.params_encoding).to eq(nil)
60
60
 
61
61
  request = api_client.build_request(:get, '/test')
@@ -70,11 +70,11 @@ describe SwaggerClient::ApiClient do
70
70
  end
71
71
 
72
72
  describe 'timeout in #build_request' do
73
- let(:config) { SwaggerClient::Configuration.new }
74
- let(:api_client) { SwaggerClient::ApiClient.new(config) }
73
+ let(:config) { Billabear::Configuration.new }
74
+ let(:api_client) { Billabear::ApiClient.new(config) }
75
75
 
76
76
  it 'defaults to 0' do
77
- expect(SwaggerClient::Configuration.default.timeout).to eq(0)
77
+ expect(Billabear::Configuration.default.timeout).to eq(0)
78
78
  expect(config.timeout).to eq(0)
79
79
 
80
80
  request = api_client.build_request(:get, '/test')
@@ -90,7 +90,7 @@ describe SwaggerClient::ApiClient do
90
90
 
91
91
  describe '#deserialize' do
92
92
  it "handles Array<Integer>" do
93
- api_client = SwaggerClient::ApiClient.new
93
+ api_client = Billabear::ApiClient.new
94
94
  headers = { 'Content-Type' => 'application/json' }
95
95
  response = double('response', headers: headers, body: '[12, 34]')
96
96
  data = api_client.deserialize(response, 'Array<Integer>')
@@ -99,7 +99,7 @@ describe SwaggerClient::ApiClient do
99
99
  end
100
100
 
101
101
  it 'handles Array<Array<Integer>>' do
102
- api_client = SwaggerClient::ApiClient.new
102
+ api_client = Billabear::ApiClient.new
103
103
  headers = { 'Content-Type' => 'application/json' }
104
104
  response = double('response', headers: headers, body: '[[12, 34], [56]]')
105
105
  data = api_client.deserialize(response, 'Array<Array<Integer>>')
@@ -108,7 +108,7 @@ describe SwaggerClient::ApiClient do
108
108
  end
109
109
 
110
110
  it 'handles Hash<String, String>' do
111
- api_client = SwaggerClient::ApiClient.new
111
+ api_client = Billabear::ApiClient.new
112
112
  headers = { 'Content-Type' => 'application/json' }
113
113
  response = double('response', headers: headers, body: '{"message": "Hello"}')
114
114
  data = api_client.deserialize(response, 'Hash<String, String>')
@@ -120,8 +120,8 @@ describe SwaggerClient::ApiClient do
120
120
  describe "#object_to_hash" do
121
121
  it 'ignores nils and includes empty arrays' do
122
122
  # uncomment below to test object_to_hash for model
123
- # api_client = SwaggerClient::ApiClient.new
124
- # _model = SwaggerClient::ModelName.new
123
+ # api_client = Billabear::ApiClient.new
124
+ # _model = Billabear::ModelName.new
125
125
  # update the model attribute below
126
126
  # _model.id = 1
127
127
  # update the expected value (hash) below
@@ -132,7 +132,7 @@ describe SwaggerClient::ApiClient do
132
132
 
133
133
  describe '#build_collection_param' do
134
134
  let(:param) { ['aa', 'bb', 'cc'] }
135
- let(:api_client) { SwaggerClient::ApiClient.new }
135
+ let(:api_client) { Billabear::ApiClient.new }
136
136
 
137
137
  it 'works for csv' do
138
138
  expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc')
@@ -160,7 +160,7 @@ describe SwaggerClient::ApiClient do
160
160
  end
161
161
 
162
162
  describe '#json_mime?' do
163
- let(:api_client) { SwaggerClient::ApiClient.new }
163
+ let(:api_client) { Billabear::ApiClient.new }
164
164
 
165
165
  it 'works' do
166
166
  expect(api_client.json_mime?(nil)).to eq false
@@ -177,7 +177,7 @@ describe SwaggerClient::ApiClient do
177
177
  end
178
178
 
179
179
  describe '#select_header_accept' do
180
- let(:api_client) { SwaggerClient::ApiClient.new }
180
+ let(:api_client) { Billabear::ApiClient.new }
181
181
 
182
182
  it 'works' do
183
183
  expect(api_client.select_header_accept(nil)).to be_nil
@@ -193,7 +193,7 @@ describe SwaggerClient::ApiClient do
193
193
  end
194
194
 
195
195
  describe '#select_header_content_type' do
196
- let(:api_client) { SwaggerClient::ApiClient.new }
196
+ let(:api_client) { Billabear::ApiClient.new }
197
197
 
198
198
  it 'works' do
199
199
  expect(api_client.select_header_content_type(nil)).to eq('application/json')
@@ -208,7 +208,7 @@ describe SwaggerClient::ApiClient do
208
208
  end
209
209
 
210
210
  describe '#sanitize_filename' do
211
- let(:api_client) { SwaggerClient::ApiClient.new }
211
+ let(:api_client) { Billabear::ApiClient.new }
212
212
 
213
213
  it 'works' do
214
214
  expect(api_client.sanitize_filename('sun')).to eq('sun')
@@ -3,22 +3,22 @@
3
3
 
4
4
  #The REST API provided by BillaBear
5
5
 
6
- OpenAPI spec version: 1.0.0
6
+ OpenAPI spec version: 1.1.0
7
7
  Contact: support@billabear.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.56
9
+ Swagger Codegen version: 3.0.66
10
10
  =end
11
11
 
12
12
  require 'spec_helper'
13
13
 
14
- describe SwaggerClient::Configuration do
15
- let(:config) { SwaggerClient::Configuration.default }
14
+ describe Billabear::Configuration do
15
+ let(:config) { Billabear::Configuration.default }
16
16
 
17
17
  before(:each) do
18
18
  # uncomment below to setup host and base_path
19
19
  # require 'URI'
20
20
  # uri = URI.parse("https://{customerId}.billabear.cloud/api/v1")
21
- # SwaggerClient.configure do |c|
21
+ # Billabear.configure do |c|
22
22
  # c.host = uri.host
23
23
  # c.base_path = uri.path
24
24
  # end
@@ -3,23 +3,23 @@
3
3
 
4
4
  #The REST API provided by BillaBear
5
5
 
6
- OpenAPI spec version: 1.0.0
6
+ OpenAPI spec version: 1.1.0
7
7
  Contact: support@billabear.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.56
9
+ Swagger Codegen version: 3.0.66
10
10
  =end
11
11
 
12
12
  require 'spec_helper'
13
13
  require 'json'
14
14
  require 'date'
15
15
 
16
- # Unit tests for SwaggerClient::Address
16
+ # Unit tests for Billabear::Address
17
17
  # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
18
  # Please update as you see appropriate
19
19
  describe 'Address' do
20
20
  before do
21
21
  # run before each test
22
- @instance = SwaggerClient::Address.new
22
+ @instance = Billabear::Address.new
23
23
  end
24
24
 
25
25
  after do
@@ -28,7 +28,7 @@ describe 'Address' do
28
28
 
29
29
  describe 'test an instance of Address' do
30
30
  it 'should create an instance of Address' do
31
- expect(@instance).to be_instance_of(SwaggerClient::Address)
31
+ expect(@instance).to be_instance_of(Billabear::Address)
32
32
  end
33
33
  end
34
34
  describe 'test attribute "company_name"' do
@@ -3,23 +3,23 @@
3
3
 
4
4
  #The REST API provided by BillaBear
5
5
 
6
- OpenAPI spec version: 1.0.0
6
+ OpenAPI spec version: 1.1.0
7
7
  Contact: support@billabear.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.56
9
+ Swagger Codegen version: 3.0.66
10
10
  =end
11
11
 
12
12
  require 'spec_helper'
13
13
  require 'json'
14
14
  require 'date'
15
15
 
16
- # Unit tests for SwaggerClient::BillingAdmin
16
+ # Unit tests for Billabear::BillingAdmin
17
17
  # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
18
  # Please update as you see appropriate
19
19
  describe 'BillingAdmin' do
20
20
  before do
21
21
  # run before each test
22
- @instance = SwaggerClient::BillingAdmin.new
22
+ @instance = Billabear::BillingAdmin.new
23
23
  end
24
24
 
25
25
  after do
@@ -28,7 +28,7 @@ describe 'BillingAdmin' do
28
28
 
29
29
  describe 'test an instance of BillingAdmin' do
30
30
  it 'should create an instance of BillingAdmin' do
31
- expect(@instance).to be_instance_of(SwaggerClient::BillingAdmin)
31
+ expect(@instance).to be_instance_of(Billabear::BillingAdmin)
32
32
  end
33
33
  end
34
34
  describe 'test attribute "id"' do
@@ -3,23 +3,23 @@
3
3
 
4
4
  #The REST API provided by BillaBear
5
5
 
6
- OpenAPI spec version: 1.0.0
6
+ OpenAPI spec version: 1.1.0
7
7
  Contact: support@billabear.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.56
9
+ Swagger Codegen version: 3.0.66
10
10
  =end
11
11
 
12
12
  require 'spec_helper'
13
13
  require 'json'
14
14
  require 'date'
15
15
 
16
- # Unit tests for SwaggerClient::CheckoutBody
16
+ # Unit tests for Billabear::CheckoutBody
17
17
  # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
18
  # Please update as you see appropriate
19
19
  describe 'CheckoutBody' do
20
20
  before do
21
21
  # run before each test
22
- @instance = SwaggerClient::CheckoutBody.new
22
+ @instance = Billabear::CheckoutBody.new
23
23
  end
24
24
 
25
25
  after do
@@ -28,7 +28,7 @@ describe 'CheckoutBody' do
28
28
 
29
29
  describe 'test an instance of CheckoutBody' do
30
30
  it 'should create an instance of CheckoutBody' do
31
- expect(@instance).to be_instance_of(SwaggerClient::CheckoutBody)
31
+ expect(@instance).to be_instance_of(Billabear::CheckoutBody)
32
32
  end
33
33
  end
34
34
  describe 'test attribute "name"' do
@@ -3,23 +3,23 @@
3
3
 
4
4
  #The REST API provided by BillaBear
5
5
 
6
- OpenAPI spec version: 1.0.0
6
+ OpenAPI spec version: 1.1.0
7
7
  Contact: support@billabear.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.56
9
+ Swagger Codegen version: 3.0.66
10
10
  =end
11
11
 
12
12
  require 'spec_helper'
13
13
  require 'json'
14
14
  require 'date'
15
15
 
16
- # Unit tests for SwaggerClient::CheckoutItems
16
+ # Unit tests for Billabear::CheckoutItems
17
17
  # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
18
  # Please update as you see appropriate
19
19
  describe 'CheckoutItems' do
20
20
  before do
21
21
  # run before each test
22
- @instance = SwaggerClient::CheckoutItems.new
22
+ @instance = Billabear::CheckoutItems.new
23
23
  end
24
24
 
25
25
  after do
@@ -28,7 +28,7 @@ describe 'CheckoutItems' do
28
28
 
29
29
  describe 'test an instance of CheckoutItems' do
30
30
  it 'should create an instance of CheckoutItems' do
31
- expect(@instance).to be_instance_of(SwaggerClient::CheckoutItems)
31
+ expect(@instance).to be_instance_of(Billabear::CheckoutItems)
32
32
  end
33
33
  end
34
34
  describe 'test attribute "description"' do
@@ -3,23 +3,23 @@
3
3
 
4
4
  #The REST API provided by BillaBear
5
5
 
6
- OpenAPI spec version: 1.0.0
6
+ OpenAPI spec version: 1.1.0
7
7
  Contact: support@billabear.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.56
9
+ Swagger Codegen version: 3.0.66
10
10
  =end
11
11
 
12
12
  require 'spec_helper'
13
13
  require 'json'
14
14
  require 'date'
15
15
 
16
- # Unit tests for SwaggerClient::CheckoutSubscriptions
16
+ # Unit tests for Billabear::CheckoutSubscriptions
17
17
  # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
18
  # Please update as you see appropriate
19
19
  describe 'CheckoutSubscriptions' do
20
20
  before do
21
21
  # run before each test
22
- @instance = SwaggerClient::CheckoutSubscriptions.new
22
+ @instance = Billabear::CheckoutSubscriptions.new
23
23
  end
24
24
 
25
25
  after do
@@ -28,7 +28,7 @@ describe 'CheckoutSubscriptions' do
28
28
 
29
29
  describe 'test an instance of CheckoutSubscriptions' do
30
30
  it 'should create an instance of CheckoutSubscriptions' do
31
- expect(@instance).to be_instance_of(SwaggerClient::CheckoutSubscriptions)
31
+ expect(@instance).to be_instance_of(Billabear::CheckoutSubscriptions)
32
32
  end
33
33
  end
34
34
  describe 'test attribute "plan"' do
@@ -0,0 +1,46 @@
1
+ =begin
2
+ #BillaBear
3
+
4
+ #The REST API provided by BillaBear
5
+
6
+ OpenAPI spec version: 1.1.0
7
+ Contact: support@billabear.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 3.0.66
10
+ =end
11
+
12
+ require 'spec_helper'
13
+ require 'json'
14
+ require 'date'
15
+
16
+ # Unit tests for Billabear::Cost
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'Cost' do
20
+ before do
21
+ # run before each test
22
+ @instance = Billabear::Cost.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of Cost' do
30
+ it 'should create an instance of Cost' do
31
+ expect(@instance).to be_instance_of(Billabear::Cost)
32
+ end
33
+ end
34
+ describe 'test attribute "amount"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
40
+ describe 'test attribute "currency"' 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
+ end
@@ -0,0 +1,50 @@
1
+ =begin
2
+ #BillaBear
3
+
4
+ #The REST API provided by BillaBear
5
+
6
+ OpenAPI spec version: 1.1.0
7
+ Contact: support@billabear.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 3.0.66
10
+ =end
11
+
12
+ require 'spec_helper'
13
+ require 'json'
14
+ require 'date'
15
+
16
+ # Unit tests for Billabear::CustomerIdUasgelimitBody
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'CustomerIdUasgelimitBody' do
20
+ before do
21
+ # run before each test
22
+ @instance = Billabear::CustomerIdUasgelimitBody.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of CustomerIdUasgelimitBody' do
30
+ it 'should create an instance of CustomerIdUasgelimitBody' do
31
+ expect(@instance).to be_instance_of(Billabear::CustomerIdUasgelimitBody)
32
+ end
33
+ end
34
+ describe 'test attribute "amount"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
40
+ describe 'test attribute "action"' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["WARNING", "DISABLE"])
44
+ # validator.allowable_values.each do |value|
45
+ # expect { @instance.action = value }.not_to raise_error
46
+ # end
47
+ end
48
+ end
49
+
50
+ end
@@ -3,23 +3,23 @@
3
3
 
4
4
  #The REST API provided by BillaBear
5
5
 
6
- OpenAPI spec version: 1.0.0
6
+ OpenAPI spec version: 1.1.0
7
7
  Contact: support@billabear.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.56
9
+ Swagger Codegen version: 3.0.66
10
10
  =end
11
11
 
12
12
  require 'spec_helper'
13
13
  require 'json'
14
14
  require 'date'
15
15
 
16
- # Unit tests for SwaggerClient::Customer
16
+ # Unit tests for Billabear::Customer
17
17
  # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
18
  # Please update as you see appropriate
19
19
  describe 'Customer' do
20
20
  before do
21
21
  # run before each test
22
- @instance = SwaggerClient::Customer.new
22
+ @instance = Billabear::Customer.new
23
23
  end
24
24
 
25
25
  after do
@@ -28,7 +28,7 @@ describe 'Customer' do
28
28
 
29
29
  describe 'test an instance of Customer' do
30
30
  it 'should create an instance of Customer' do
31
- expect(@instance).to be_instance_of(SwaggerClient::Customer)
31
+ expect(@instance).to be_instance_of(Billabear::Customer)
32
32
  end
33
33
  end
34
34
  describe 'test attribute "id"' do
@@ -111,4 +111,20 @@ describe 'Customer' do
111
111
  end
112
112
  end
113
113
 
114
+ describe 'test attribute "invoice_format"' do
115
+ it 'should work' do
116
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
117
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["pdf", "xrechnung"])
118
+ # validator.allowable_values.each do |value|
119
+ # expect { @instance.invoice_format = value }.not_to raise_error
120
+ # end
121
+ end
122
+ end
123
+
124
+ describe 'test attribute "marketing_opt_in"' do
125
+ it 'should work' do
126
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
127
+ end
128
+ end
129
+
114
130
  end
@@ -3,23 +3,23 @@
3
3
 
4
4
  #The REST API provided by BillaBear
5
5
 
6
- OpenAPI spec version: 1.0.0
6
+ OpenAPI spec version: 1.1.0
7
7
  Contact: support@billabear.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.56
9
+ Swagger Codegen version: 3.0.66
10
10
  =end
11
11
 
12
12
  require 'spec_helper'
13
13
  require 'json'
14
14
  require 'date'
15
15
 
16
- # Unit tests for SwaggerClient::Error
16
+ # Unit tests for Billabear::Error
17
17
  # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
18
  # Please update as you see appropriate
19
19
  describe 'Error' do
20
20
  before do
21
21
  # run before each test
22
- @instance = SwaggerClient::Error.new
22
+ @instance = Billabear::Error.new
23
23
  end
24
24
 
25
25
  after do
@@ -28,7 +28,7 @@ describe 'Error' do
28
28
 
29
29
  describe 'test an instance of Error' do
30
30
  it 'should create an instance of Error' do
31
- expect(@instance).to be_instance_of(SwaggerClient::Error)
31
+ expect(@instance).to be_instance_of(Billabear::Error)
32
32
  end
33
33
  end
34
34
  describe 'test attribute "code"' do
@@ -0,0 +1,64 @@
1
+ =begin
2
+ #BillaBear
3
+
4
+ #The REST API provided by BillaBear
5
+
6
+ OpenAPI spec version: 1.1.0
7
+ Contact: support@billabear.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 3.0.66
10
+ =end
11
+
12
+ require 'spec_helper'
13
+ require 'json'
14
+ require 'date'
15
+
16
+ # Unit tests for Billabear::Event
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'Event' do
20
+ before do
21
+ # run before each test
22
+ @instance = Billabear::Event.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of Event' do
30
+ it 'should create an instance of Event' do
31
+ expect(@instance).to be_instance_of(Billabear::Event)
32
+ end
33
+ end
34
+ describe 'test attribute "event_id"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
40
+ describe 'test attribute "subscription"' 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
+ describe 'test attribute "properties"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ describe 'test attribute "value"' 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
+ describe 'test attribute "code"' do
59
+ it 'should work' do
60
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
61
+ end
62
+ end
63
+
64
+ end