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
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
|
|
4
4
|
#The REST API provided by BillaBear
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.
|
|
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.
|
|
9
|
+
Swagger Codegen version: 3.0.66
|
|
10
10
|
=end
|
|
11
11
|
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
|
-
module
|
|
14
|
+
module Billabear
|
|
15
15
|
class InlineResponse2003
|
|
16
16
|
attr_accessor :data
|
|
17
17
|
|
|
@@ -47,13 +47,13 @@ module SwaggerClient
|
|
|
47
47
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
48
48
|
def initialize(attributes = {})
|
|
49
49
|
if (!attributes.is_a?(Hash))
|
|
50
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Billabear::InlineResponse2003` initialize method"
|
|
51
51
|
end
|
|
52
52
|
|
|
53
53
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
54
54
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
55
55
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
56
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Billabear::InlineResponse2003`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
57
57
|
end
|
|
58
58
|
h[k.to_sym] = v
|
|
59
59
|
}
|
|
@@ -174,7 +174,7 @@ module SwaggerClient
|
|
|
174
174
|
end
|
|
175
175
|
end
|
|
176
176
|
else # model
|
|
177
|
-
|
|
177
|
+
Billabear.const_get(type).build_from_hash(value)
|
|
178
178
|
end
|
|
179
179
|
end
|
|
180
180
|
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
|
|
4
4
|
#The REST API provided by BillaBear
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.
|
|
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.
|
|
9
|
+
Swagger Codegen version: 3.0.66
|
|
10
10
|
=end
|
|
11
11
|
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
|
-
module
|
|
14
|
+
module Billabear
|
|
15
15
|
class InlineResponse2004
|
|
16
16
|
attr_accessor :data
|
|
17
17
|
|
|
@@ -47,13 +47,13 @@ module SwaggerClient
|
|
|
47
47
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
48
48
|
def initialize(attributes = {})
|
|
49
49
|
if (!attributes.is_a?(Hash))
|
|
50
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Billabear::InlineResponse2004` initialize method"
|
|
51
51
|
end
|
|
52
52
|
|
|
53
53
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
54
54
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
55
55
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
56
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Billabear::InlineResponse2004`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
57
57
|
end
|
|
58
58
|
h[k.to_sym] = v
|
|
59
59
|
}
|
|
@@ -174,7 +174,7 @@ module SwaggerClient
|
|
|
174
174
|
end
|
|
175
175
|
end
|
|
176
176
|
else # model
|
|
177
|
-
|
|
177
|
+
Billabear.const_get(type).build_from_hash(value)
|
|
178
178
|
end
|
|
179
179
|
end
|
|
180
180
|
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
|
|
4
4
|
#The REST API provided by BillaBear
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.
|
|
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.
|
|
9
|
+
Swagger Codegen version: 3.0.66
|
|
10
10
|
=end
|
|
11
11
|
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
|
-
module
|
|
14
|
+
module Billabear
|
|
15
15
|
class InlineResponse2005
|
|
16
16
|
attr_accessor :data
|
|
17
17
|
|
|
@@ -47,13 +47,13 @@ module SwaggerClient
|
|
|
47
47
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
48
48
|
def initialize(attributes = {})
|
|
49
49
|
if (!attributes.is_a?(Hash))
|
|
50
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Billabear::InlineResponse2005` initialize method"
|
|
51
51
|
end
|
|
52
52
|
|
|
53
53
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
54
54
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
55
55
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
56
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Billabear::InlineResponse2005`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
57
57
|
end
|
|
58
58
|
h[k.to_sym] = v
|
|
59
59
|
}
|
|
@@ -174,7 +174,7 @@ module SwaggerClient
|
|
|
174
174
|
end
|
|
175
175
|
end
|
|
176
176
|
else # model
|
|
177
|
-
|
|
177
|
+
Billabear.const_get(type).build_from_hash(value)
|
|
178
178
|
end
|
|
179
179
|
end
|
|
180
180
|
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
|
|
4
4
|
#The REST API provided by BillaBear
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.
|
|
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.
|
|
9
|
+
Swagger Codegen version: 3.0.66
|
|
10
10
|
=end
|
|
11
11
|
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
|
-
module
|
|
14
|
+
module Billabear
|
|
15
15
|
class InlineResponse2006
|
|
16
16
|
attr_accessor :data
|
|
17
17
|
|
|
@@ -47,13 +47,13 @@ module SwaggerClient
|
|
|
47
47
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
48
48
|
def initialize(attributes = {})
|
|
49
49
|
if (!attributes.is_a?(Hash))
|
|
50
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Billabear::InlineResponse2006` initialize method"
|
|
51
51
|
end
|
|
52
52
|
|
|
53
53
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
54
54
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
55
55
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
56
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Billabear::InlineResponse2006`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
57
57
|
end
|
|
58
58
|
h[k.to_sym] = v
|
|
59
59
|
}
|
|
@@ -174,7 +174,7 @@ module SwaggerClient
|
|
|
174
174
|
end
|
|
175
175
|
end
|
|
176
176
|
else # model
|
|
177
|
-
|
|
177
|
+
Billabear.const_get(type).build_from_hash(value)
|
|
178
178
|
end
|
|
179
179
|
end
|
|
180
180
|
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
|
|
4
4
|
#The REST API provided by BillaBear
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.
|
|
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.
|
|
9
|
+
Swagger Codegen version: 3.0.66
|
|
10
10
|
=end
|
|
11
11
|
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
|
-
module
|
|
14
|
+
module Billabear
|
|
15
15
|
class InlineResponse2007
|
|
16
16
|
attr_accessor :data
|
|
17
17
|
|
|
@@ -47,13 +47,13 @@ module SwaggerClient
|
|
|
47
47
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
48
48
|
def initialize(attributes = {})
|
|
49
49
|
if (!attributes.is_a?(Hash))
|
|
50
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Billabear::InlineResponse2007` initialize method"
|
|
51
51
|
end
|
|
52
52
|
|
|
53
53
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
54
54
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
55
55
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
56
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Billabear::InlineResponse2007`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
57
57
|
end
|
|
58
58
|
h[k.to_sym] = v
|
|
59
59
|
}
|
|
@@ -174,7 +174,7 @@ module SwaggerClient
|
|
|
174
174
|
end
|
|
175
175
|
end
|
|
176
176
|
else # model
|
|
177
|
-
|
|
177
|
+
Billabear.const_get(type).build_from_hash(value)
|
|
178
178
|
end
|
|
179
179
|
end
|
|
180
180
|
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
|
|
4
4
|
#The REST API provided by BillaBear
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.
|
|
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.
|
|
9
|
+
Swagger Codegen version: 3.0.66
|
|
10
10
|
=end
|
|
11
11
|
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
|
-
module
|
|
14
|
+
module Billabear
|
|
15
15
|
class InlineResponse2008
|
|
16
16
|
attr_accessor :data
|
|
17
17
|
|
|
@@ -47,13 +47,13 @@ module SwaggerClient
|
|
|
47
47
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
48
48
|
def initialize(attributes = {})
|
|
49
49
|
if (!attributes.is_a?(Hash))
|
|
50
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Billabear::InlineResponse2008` initialize method"
|
|
51
51
|
end
|
|
52
52
|
|
|
53
53
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
54
54
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
55
55
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
56
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Billabear::InlineResponse2008`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
57
57
|
end
|
|
58
58
|
h[k.to_sym] = v
|
|
59
59
|
}
|
|
@@ -174,7 +174,7 @@ module SwaggerClient
|
|
|
174
174
|
end
|
|
175
175
|
end
|
|
176
176
|
else # model
|
|
177
|
-
|
|
177
|
+
Billabear.const_get(type).build_from_hash(value)
|
|
178
178
|
end
|
|
179
179
|
end
|
|
180
180
|
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
|
|
4
4
|
#The REST API provided by BillaBear
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.
|
|
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.
|
|
9
|
+
Swagger Codegen version: 3.0.66
|
|
10
10
|
=end
|
|
11
11
|
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
|
-
module
|
|
14
|
+
module Billabear
|
|
15
15
|
class InlineResponse2009
|
|
16
16
|
attr_accessor :data
|
|
17
17
|
|
|
@@ -47,13 +47,13 @@ module SwaggerClient
|
|
|
47
47
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
48
48
|
def initialize(attributes = {})
|
|
49
49
|
if (!attributes.is_a?(Hash))
|
|
50
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Billabear::InlineResponse2009` initialize method"
|
|
51
51
|
end
|
|
52
52
|
|
|
53
53
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
54
54
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
55
55
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
56
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Billabear::InlineResponse2009`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
57
57
|
end
|
|
58
58
|
h[k.to_sym] = v
|
|
59
59
|
}
|
|
@@ -174,7 +174,7 @@ module SwaggerClient
|
|
|
174
174
|
end
|
|
175
175
|
end
|
|
176
176
|
else # model
|
|
177
|
-
|
|
177
|
+
Billabear.const_get(type).build_from_hash(value)
|
|
178
178
|
end
|
|
179
179
|
end
|
|
180
180
|
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
|
|
4
4
|
#The REST API provided by BillaBear
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.
|
|
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.
|
|
9
|
+
Swagger Codegen version: 3.0.66
|
|
10
10
|
=end
|
|
11
11
|
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
|
-
module
|
|
15
|
-
class
|
|
14
|
+
module Billabear
|
|
15
|
+
class InlineResponse2009Data
|
|
16
16
|
attr_accessor :id
|
|
17
17
|
|
|
18
18
|
attr_accessor :amount
|
|
@@ -91,13 +91,13 @@ module SwaggerClient
|
|
|
91
91
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
92
92
|
def initialize(attributes = {})
|
|
93
93
|
if (!attributes.is_a?(Hash))
|
|
94
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
|
94
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Billabear::InlineResponse2009Data` initialize method"
|
|
95
95
|
end
|
|
96
96
|
|
|
97
97
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
98
98
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
99
99
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
100
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
|
100
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Billabear::InlineResponse2009Data`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
101
101
|
end
|
|
102
102
|
h[k.to_sym] = v
|
|
103
103
|
}
|
|
@@ -255,7 +255,7 @@ module SwaggerClient
|
|
|
255
255
|
end
|
|
256
256
|
end
|
|
257
257
|
else # model
|
|
258
|
-
|
|
258
|
+
Billabear.const_get(type).build_from_hash(value)
|
|
259
259
|
end
|
|
260
260
|
end
|
|
261
261
|
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
|
|
4
4
|
#The REST API provided by BillaBear
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.
|
|
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.
|
|
9
|
+
Swagger Codegen version: 3.0.66
|
|
10
10
|
=end
|
|
11
11
|
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
|
-
module
|
|
15
|
-
class
|
|
14
|
+
module Billabear
|
|
15
|
+
class InlineResponse2009Receipts
|
|
16
16
|
attr_accessor :created_at
|
|
17
17
|
|
|
18
18
|
attr_accessor :id
|
|
@@ -47,13 +47,13 @@ module SwaggerClient
|
|
|
47
47
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
48
48
|
def initialize(attributes = {})
|
|
49
49
|
if (!attributes.is_a?(Hash))
|
|
50
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Billabear::InlineResponse2009Receipts` initialize method"
|
|
51
51
|
end
|
|
52
52
|
|
|
53
53
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
54
54
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
55
55
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
56
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Billabear::InlineResponse2009Receipts`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
57
57
|
end
|
|
58
58
|
h[k.to_sym] = v
|
|
59
59
|
}
|
|
@@ -172,7 +172,7 @@ module SwaggerClient
|
|
|
172
172
|
end
|
|
173
173
|
end
|
|
174
174
|
else # model
|
|
175
|
-
|
|
175
|
+
Billabear.const_get(type).build_from_hash(value)
|
|
176
176
|
end
|
|
177
177
|
end
|
|
178
178
|
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
|
|
4
4
|
#The REST API provided by BillaBear
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.
|
|
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.
|
|
9
|
+
Swagger Codegen version: 3.0.66
|
|
10
10
|
=end
|
|
11
11
|
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
|
-
module
|
|
14
|
+
module Billabear
|
|
15
15
|
class InlineResponse201
|
|
16
16
|
attr_accessor :id
|
|
17
17
|
|
|
@@ -71,13 +71,13 @@ module SwaggerClient
|
|
|
71
71
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
72
72
|
def initialize(attributes = {})
|
|
73
73
|
if (!attributes.is_a?(Hash))
|
|
74
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
|
74
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Billabear::InlineResponse201` initialize method"
|
|
75
75
|
end
|
|
76
76
|
|
|
77
77
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
78
78
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
79
79
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
80
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
|
80
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Billabear::InlineResponse201`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
81
81
|
end
|
|
82
82
|
h[k.to_sym] = v
|
|
83
83
|
}
|
|
@@ -233,7 +233,7 @@ module SwaggerClient
|
|
|
233
233
|
end
|
|
234
234
|
end
|
|
235
235
|
else # model
|
|
236
|
-
|
|
236
|
+
Billabear.const_get(type).build_from_hash(value)
|
|
237
237
|
end
|
|
238
238
|
end
|
|
239
239
|
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
|
|
4
4
|
#The REST API provided by BillaBear
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.
|
|
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.
|
|
9
|
+
Swagger Codegen version: 3.0.66
|
|
10
10
|
=end
|
|
11
11
|
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
|
-
module
|
|
14
|
+
module Billabear
|
|
15
15
|
class InlineResponse201Lines
|
|
16
16
|
attr_accessor :subscription_plan
|
|
17
17
|
|
|
@@ -67,13 +67,13 @@ module SwaggerClient
|
|
|
67
67
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
68
68
|
def initialize(attributes = {})
|
|
69
69
|
if (!attributes.is_a?(Hash))
|
|
70
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
|
70
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Billabear::InlineResponse201Lines` initialize method"
|
|
71
71
|
end
|
|
72
72
|
|
|
73
73
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
74
74
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
75
75
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
76
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
|
76
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Billabear::InlineResponse201Lines`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
77
77
|
end
|
|
78
78
|
h[k.to_sym] = v
|
|
79
79
|
}
|
|
@@ -217,7 +217,7 @@ module SwaggerClient
|
|
|
217
217
|
end
|
|
218
218
|
end
|
|
219
219
|
else # model
|
|
220
|
-
|
|
220
|
+
Billabear.const_get(type).build_from_hash(value)
|
|
221
221
|
end
|
|
222
222
|
end
|
|
223
223
|
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
|
|
4
4
|
#The REST API provided by BillaBear
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.
|
|
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.
|
|
9
|
+
Swagger Codegen version: 3.0.66
|
|
10
10
|
=end
|
|
11
11
|
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
|
-
module
|
|
14
|
+
module Billabear
|
|
15
15
|
class InlineResponse400
|
|
16
16
|
attr_accessor :errors
|
|
17
17
|
|
|
@@ -39,13 +39,13 @@ module SwaggerClient
|
|
|
39
39
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
40
40
|
def initialize(attributes = {})
|
|
41
41
|
if (!attributes.is_a?(Hash))
|
|
42
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
|
42
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Billabear::InlineResponse400` initialize method"
|
|
43
43
|
end
|
|
44
44
|
|
|
45
45
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
46
46
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
47
47
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
48
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
|
48
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Billabear::InlineResponse400`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
49
49
|
end
|
|
50
50
|
h[k.to_sym] = v
|
|
51
51
|
}
|
|
@@ -161,7 +161,7 @@ module SwaggerClient
|
|
|
161
161
|
end
|
|
162
162
|
end
|
|
163
163
|
else # model
|
|
164
|
-
|
|
164
|
+
Billabear.const_get(type).build_from_hash(value)
|
|
165
165
|
end
|
|
166
166
|
end
|
|
167
167
|
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
|
|
4
4
|
#The REST API provided by BillaBear
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.
|
|
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.
|
|
9
|
+
Swagger Codegen version: 3.0.66
|
|
10
10
|
=end
|
|
11
11
|
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
|
-
module
|
|
14
|
+
module Billabear
|
|
15
15
|
class Invoice
|
|
16
16
|
attr_accessor :id
|
|
17
17
|
|
|
@@ -95,13 +95,13 @@ module SwaggerClient
|
|
|
95
95
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
96
96
|
def initialize(attributes = {})
|
|
97
97
|
if (!attributes.is_a?(Hash))
|
|
98
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
|
98
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Billabear::Invoice` initialize method"
|
|
99
99
|
end
|
|
100
100
|
|
|
101
101
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
102
102
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
103
103
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
104
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
|
104
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Billabear::Invoice`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
105
105
|
end
|
|
106
106
|
h[k.to_sym] = v
|
|
107
107
|
}
|
|
@@ -282,7 +282,7 @@ module SwaggerClient
|
|
|
282
282
|
end
|
|
283
283
|
end
|
|
284
284
|
else # model
|
|
285
|
-
|
|
285
|
+
Billabear.const_get(type).build_from_hash(value)
|
|
286
286
|
end
|
|
287
287
|
end
|
|
288
288
|
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
|
|
4
4
|
#The REST API provided by BillaBear
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.
|
|
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.
|
|
9
|
+
Swagger Codegen version: 3.0.66
|
|
10
10
|
=end
|
|
11
11
|
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
|
-
module
|
|
14
|
+
module Billabear
|
|
15
15
|
class InvoiceLines
|
|
16
16
|
attr_accessor :description
|
|
17
17
|
|
|
@@ -59,13 +59,13 @@ module SwaggerClient
|
|
|
59
59
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
60
60
|
def initialize(attributes = {})
|
|
61
61
|
if (!attributes.is_a?(Hash))
|
|
62
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
|
62
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Billabear::InvoiceLines` initialize method"
|
|
63
63
|
end
|
|
64
64
|
|
|
65
65
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
66
66
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
67
67
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
68
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
|
68
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Billabear::InvoiceLines`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
69
69
|
end
|
|
70
70
|
h[k.to_sym] = v
|
|
71
71
|
}
|
|
@@ -199,7 +199,7 @@ module SwaggerClient
|
|
|
199
199
|
end
|
|
200
200
|
end
|
|
201
201
|
else # model
|
|
202
|
-
|
|
202
|
+
Billabear.const_get(type).build_from_hash(value)
|
|
203
203
|
end
|
|
204
204
|
end
|
|
205
205
|
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
|
|
4
4
|
#The REST API provided by BillaBear
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 1.
|
|
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.
|
|
9
|
+
Swagger Codegen version: 3.0.66
|
|
10
10
|
=end
|
|
11
11
|
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
|
-
module
|
|
14
|
+
module Billabear
|
|
15
15
|
class IssueRefundPayment
|
|
16
16
|
attr_accessor :amount
|
|
17
17
|
|
|
@@ -50,13 +50,13 @@ module SwaggerClient
|
|
|
50
50
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
51
51
|
def initialize(attributes = {})
|
|
52
52
|
if (!attributes.is_a?(Hash))
|
|
53
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Billabear::IssueRefundPayment` initialize method"
|
|
54
54
|
end
|
|
55
55
|
|
|
56
56
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
57
57
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
58
58
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
59
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Billabear::IssueRefundPayment`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
60
60
|
end
|
|
61
61
|
h[k.to_sym] = v
|
|
62
62
|
}
|
|
@@ -180,7 +180,7 @@ module SwaggerClient
|
|
|
180
180
|
end
|
|
181
181
|
end
|
|
182
182
|
else # model
|
|
183
|
-
|
|
183
|
+
Billabear.const_get(type).build_from_hash(value)
|
|
184
184
|
end
|
|
185
185
|
end
|
|
186
186
|
|