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
|
@@ -0,0 +1,258 @@
|
|
|
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 'date'
|
|
13
|
+
|
|
14
|
+
module Billabear
|
|
15
|
+
class UsageLimit
|
|
16
|
+
attr_accessor :id
|
|
17
|
+
|
|
18
|
+
attr_accessor :amount
|
|
19
|
+
|
|
20
|
+
attr_accessor :action
|
|
21
|
+
|
|
22
|
+
class EnumAttributeValidator
|
|
23
|
+
attr_reader :datatype
|
|
24
|
+
attr_reader :allowable_values
|
|
25
|
+
|
|
26
|
+
def initialize(datatype, allowable_values)
|
|
27
|
+
@allowable_values = allowable_values.map do |value|
|
|
28
|
+
case datatype.to_s
|
|
29
|
+
when /Integer/i
|
|
30
|
+
value.to_i
|
|
31
|
+
when /Float/i
|
|
32
|
+
value.to_f
|
|
33
|
+
else
|
|
34
|
+
value
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def valid?(value)
|
|
40
|
+
!value || allowable_values.include?(value)
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
45
|
+
def self.attribute_map
|
|
46
|
+
{
|
|
47
|
+
:'id' => :'id',
|
|
48
|
+
:'amount' => :'amount',
|
|
49
|
+
:'action' => :'action'
|
|
50
|
+
}
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Attribute type mapping.
|
|
54
|
+
def self.openapi_types
|
|
55
|
+
{
|
|
56
|
+
:'id' => :'Object',
|
|
57
|
+
:'amount' => :'Object',
|
|
58
|
+
:'action' => :'Object'
|
|
59
|
+
}
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# List of attributes with nullable: true
|
|
63
|
+
def self.openapi_nullable
|
|
64
|
+
Set.new([
|
|
65
|
+
])
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Initializes the object
|
|
69
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
70
|
+
def initialize(attributes = {})
|
|
71
|
+
if (!attributes.is_a?(Hash))
|
|
72
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Billabear::UsageLimit` initialize method"
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
76
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
77
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
78
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Billabear::UsageLimit`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
79
|
+
end
|
|
80
|
+
h[k.to_sym] = v
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
if attributes.key?(:'id')
|
|
84
|
+
self.id = attributes[:'id']
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
if attributes.key?(:'amount')
|
|
88
|
+
self.amount = attributes[:'amount']
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
if attributes.key?(:'action')
|
|
92
|
+
self.action = attributes[:'action']
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
97
|
+
# @return Array for valid properties with the reasons
|
|
98
|
+
def list_invalid_properties
|
|
99
|
+
invalid_properties = Array.new
|
|
100
|
+
invalid_properties
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Check to see if the all the properties in the model are valid
|
|
104
|
+
# @return true if the model is valid
|
|
105
|
+
def valid?
|
|
106
|
+
action_validator = EnumAttributeValidator.new('Object', ['WARNING', 'DISABLE'])
|
|
107
|
+
return false unless action_validator.valid?(@action)
|
|
108
|
+
true
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
112
|
+
# @param [Object] action Object to be assigned
|
|
113
|
+
def action=(action)
|
|
114
|
+
validator = EnumAttributeValidator.new('Object', ['WARNING', 'DISABLE'])
|
|
115
|
+
unless validator.valid?(action)
|
|
116
|
+
fail ArgumentError, "invalid value for \"action\", must be one of #{validator.allowable_values}."
|
|
117
|
+
end
|
|
118
|
+
@action = action
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# Checks equality by comparing each attribute.
|
|
122
|
+
# @param [Object] Object to be compared
|
|
123
|
+
def ==(o)
|
|
124
|
+
return true if self.equal?(o)
|
|
125
|
+
self.class == o.class &&
|
|
126
|
+
id == o.id &&
|
|
127
|
+
amount == o.amount &&
|
|
128
|
+
action == o.action
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# @see the `==` method
|
|
132
|
+
# @param [Object] Object to be compared
|
|
133
|
+
def eql?(o)
|
|
134
|
+
self == o
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Calculates hash code according to all attributes.
|
|
138
|
+
# @return [Integer] Hash code
|
|
139
|
+
def hash
|
|
140
|
+
[id, amount, action].hash
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Builds the object from hash
|
|
144
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
145
|
+
# @return [Object] Returns the model itself
|
|
146
|
+
def self.build_from_hash(attributes)
|
|
147
|
+
new.build_from_hash(attributes)
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# Builds the object from hash
|
|
151
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
152
|
+
# @return [Object] Returns the model itself
|
|
153
|
+
def build_from_hash(attributes)
|
|
154
|
+
return nil unless attributes.is_a?(Hash)
|
|
155
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
156
|
+
if type =~ /\AArray<(.*)>/i
|
|
157
|
+
# check to ensure the input is an array given that the attribute
|
|
158
|
+
# is documented as an array but the input is not
|
|
159
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
160
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
161
|
+
end
|
|
162
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
163
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
164
|
+
elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
165
|
+
self.send("#{key}=", nil)
|
|
166
|
+
end
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
self
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# Deserializes the data based on type
|
|
173
|
+
# @param string type Data type
|
|
174
|
+
# @param string value Value to be deserialized
|
|
175
|
+
# @return [Object] Deserialized data
|
|
176
|
+
def _deserialize(type, value)
|
|
177
|
+
case type.to_sym
|
|
178
|
+
when :DateTime
|
|
179
|
+
DateTime.parse(value)
|
|
180
|
+
when :Date
|
|
181
|
+
Date.parse(value)
|
|
182
|
+
when :String
|
|
183
|
+
value.to_s
|
|
184
|
+
when :Integer
|
|
185
|
+
value.to_i
|
|
186
|
+
when :Float
|
|
187
|
+
value.to_f
|
|
188
|
+
when :Boolean
|
|
189
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
190
|
+
true
|
|
191
|
+
else
|
|
192
|
+
false
|
|
193
|
+
end
|
|
194
|
+
when :Object
|
|
195
|
+
# generic object (usually a Hash), return directly
|
|
196
|
+
value
|
|
197
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
198
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
199
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
200
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
201
|
+
k_type = Regexp.last_match[:k_type]
|
|
202
|
+
v_type = Regexp.last_match[:v_type]
|
|
203
|
+
{}.tap do |hash|
|
|
204
|
+
value.each do |k, v|
|
|
205
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
206
|
+
end
|
|
207
|
+
end
|
|
208
|
+
else # model
|
|
209
|
+
Billabear.const_get(type).build_from_hash(value)
|
|
210
|
+
end
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
# Returns the string representation of the object
|
|
214
|
+
# @return [String] String presentation of the object
|
|
215
|
+
def to_s
|
|
216
|
+
to_hash.to_s
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
220
|
+
# @return [Hash] Returns the object in the form of hash
|
|
221
|
+
def to_body
|
|
222
|
+
to_hash
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
# Returns the object in the form of hash
|
|
226
|
+
# @return [Hash] Returns the object in the form of hash
|
|
227
|
+
def to_hash
|
|
228
|
+
hash = {}
|
|
229
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
230
|
+
value = self.send(attr)
|
|
231
|
+
if value.nil?
|
|
232
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
233
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
hash[param] = _to_hash(value)
|
|
237
|
+
end
|
|
238
|
+
hash
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
# Outputs non-array value in the form of hash
|
|
242
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
243
|
+
# @param [Object] value Any valid value
|
|
244
|
+
# @return [Hash] Returns the value in the form of hash
|
|
245
|
+
def _to_hash(value)
|
|
246
|
+
if value.is_a?(Array)
|
|
247
|
+
value.compact.map { |v| _to_hash(v) }
|
|
248
|
+
elsif value.is_a?(Hash)
|
|
249
|
+
{}.tap do |hash|
|
|
250
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
251
|
+
end
|
|
252
|
+
elsif value.respond_to? :to_hash
|
|
253
|
+
value.to_hash
|
|
254
|
+
else
|
|
255
|
+
value
|
|
256
|
+
end
|
|
257
|
+
end end
|
|
258
|
+
end
|
|
@@ -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 VoucherCode
|
|
16
16
|
attr_accessor :code
|
|
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::VoucherCode` 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::VoucherCode`. 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
|
}
|
|
@@ -159,7 +159,7 @@ module SwaggerClient
|
|
|
159
159
|
end
|
|
160
160
|
end
|
|
161
161
|
else # model
|
|
162
|
-
|
|
162
|
+
Billabear.const_get(type).build_from_hash(value)
|
|
163
163
|
end
|
|
164
164
|
end
|
|
165
165
|
|
|
@@ -3,12 +3,12 @@
|
|
|
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
|
-
module
|
|
13
|
-
VERSION = '1.
|
|
12
|
+
module Billabear
|
|
13
|
+
VERSION = '1.1.0'
|
|
14
14
|
end
|
data/lib/billabear.rb
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
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
|
+
# Common files
|
|
13
|
+
require 'billabear/api_client'
|
|
14
|
+
require 'billabear/api_error'
|
|
15
|
+
require 'billabear/version'
|
|
16
|
+
require 'billabear/configuration'
|
|
17
|
+
|
|
18
|
+
# Models
|
|
19
|
+
require 'billabear/models/address'
|
|
20
|
+
require 'billabear/models/billing_admin'
|
|
21
|
+
require 'billabear/models/checkout_body'
|
|
22
|
+
require 'billabear/models/checkout_items'
|
|
23
|
+
require 'billabear/models/checkout_subscriptions'
|
|
24
|
+
require 'billabear/models/cost'
|
|
25
|
+
require 'billabear/models/customer'
|
|
26
|
+
require 'billabear/models/customer_id_uasgelimit_body'
|
|
27
|
+
require 'billabear/models/error'
|
|
28
|
+
require 'billabear/models/event'
|
|
29
|
+
require 'billabear/models/feature'
|
|
30
|
+
require 'billabear/models/frontend_token'
|
|
31
|
+
require 'billabear/models/inline_response_200'
|
|
32
|
+
require 'billabear/models/inline_response_200_1'
|
|
33
|
+
require 'billabear/models/inline_response_200_10'
|
|
34
|
+
require 'billabear/models/inline_response_200_11'
|
|
35
|
+
require 'billabear/models/inline_response_200_12'
|
|
36
|
+
require 'billabear/models/inline_response_200_13'
|
|
37
|
+
require 'billabear/models/inline_response_200_14'
|
|
38
|
+
require 'billabear/models/inline_response_200_2'
|
|
39
|
+
require 'billabear/models/inline_response_200_3'
|
|
40
|
+
require 'billabear/models/inline_response_200_4'
|
|
41
|
+
require 'billabear/models/inline_response_200_5'
|
|
42
|
+
require 'billabear/models/inline_response_200_6'
|
|
43
|
+
require 'billabear/models/inline_response_200_7'
|
|
44
|
+
require 'billabear/models/inline_response_200_8'
|
|
45
|
+
require 'billabear/models/inline_response_200_9'
|
|
46
|
+
require 'billabear/models/inline_response_200_9_data'
|
|
47
|
+
require 'billabear/models/inline_response_200_9_receipts'
|
|
48
|
+
require 'billabear/models/inline_response_201'
|
|
49
|
+
require 'billabear/models/inline_response_201_lines'
|
|
50
|
+
require 'billabear/models/inline_response_400'
|
|
51
|
+
require 'billabear/models/invoice'
|
|
52
|
+
require 'billabear/models/invoice_lines'
|
|
53
|
+
require 'billabear/models/issue_refund_payment'
|
|
54
|
+
require 'billabear/models/limit'
|
|
55
|
+
require 'billabear/models/metric'
|
|
56
|
+
require 'billabear/models/metric_cost'
|
|
57
|
+
require 'billabear/models/metric_filter'
|
|
58
|
+
require 'billabear/models/payment_details'
|
|
59
|
+
require 'billabear/models/price'
|
|
60
|
+
require 'billabear/models/product'
|
|
61
|
+
require 'billabear/models/product_tax_type'
|
|
62
|
+
require 'billabear/models/refund'
|
|
63
|
+
require 'billabear/models/seats_add_body'
|
|
64
|
+
require 'billabear/models/seats_remove_body'
|
|
65
|
+
require 'billabear/models/subscription'
|
|
66
|
+
require 'billabear/models/subscription_id_cancel_body'
|
|
67
|
+
require 'billabear/models/subscription_id_extend_body'
|
|
68
|
+
require 'billabear/models/subscription_id_plan_body'
|
|
69
|
+
require 'billabear/models/subscription_id_price_body'
|
|
70
|
+
require 'billabear/models/subscription_plan'
|
|
71
|
+
require 'billabear/models/subscription_start_body'
|
|
72
|
+
require 'billabear/models/subscription_trial_body'
|
|
73
|
+
require 'billabear/models/usage_limit'
|
|
74
|
+
require 'billabear/models/voucher_code'
|
|
75
|
+
|
|
76
|
+
# APIs
|
|
77
|
+
require 'billabear/api/checkout_api'
|
|
78
|
+
require 'billabear/api/customers_api'
|
|
79
|
+
require 'billabear/api/invoices_api'
|
|
80
|
+
require 'billabear/api/payment_details_api'
|
|
81
|
+
require 'billabear/api/payments_api'
|
|
82
|
+
require 'billabear/api/prices_api'
|
|
83
|
+
require 'billabear/api/products_api'
|
|
84
|
+
require 'billabear/api/receipt_api'
|
|
85
|
+
require 'billabear/api/refunds_api'
|
|
86
|
+
require 'billabear/api/subscriptions_api'
|
|
87
|
+
require 'billabear/api/usage_api'
|
|
88
|
+
|
|
89
|
+
module Billabear
|
|
90
|
+
class << self
|
|
91
|
+
# Customize default settings for the SDK using block.
|
|
92
|
+
# Billabear.configure do |config|
|
|
93
|
+
# config.username = "xxx"
|
|
94
|
+
# config.password = "xxx"
|
|
95
|
+
# end
|
|
96
|
+
# If no block given, return the default Configuration object.
|
|
97
|
+
def configure
|
|
98
|
+
if block_given?
|
|
99
|
+
yield(Configuration.default)
|
|
100
|
+
else
|
|
101
|
+
Configuration.default
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|
|
@@ -3,22 +3,22 @@
|
|
|
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 'spec_helper'
|
|
13
13
|
require 'json'
|
|
14
14
|
|
|
15
|
-
# Unit tests for
|
|
15
|
+
# Unit tests for Billabear::CheckoutApi
|
|
16
16
|
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
17
17
|
# Please update as you see appropriate
|
|
18
18
|
describe 'CheckoutApi' do
|
|
19
19
|
before do
|
|
20
20
|
# run before each test
|
|
21
|
-
@instance =
|
|
21
|
+
@instance = Billabear::CheckoutApi.new
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
after do
|
|
@@ -27,7 +27,7 @@ describe 'CheckoutApi' do
|
|
|
27
27
|
|
|
28
28
|
describe 'test an instance of CheckoutApi' do
|
|
29
29
|
it 'should create an instance of CheckoutApi' do
|
|
30
|
-
expect(@instance).to be_instance_of(
|
|
30
|
+
expect(@instance).to be_instance_of(Billabear::CheckoutApi)
|
|
31
31
|
end
|
|
32
32
|
end
|
|
33
33
|
|
|
@@ -3,22 +3,22 @@
|
|
|
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 'spec_helper'
|
|
13
13
|
require 'json'
|
|
14
14
|
|
|
15
|
-
# Unit tests for
|
|
15
|
+
# Unit tests for Billabear::CustomersApi
|
|
16
16
|
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
17
17
|
# Please update as you see appropriate
|
|
18
18
|
describe 'CustomersApi' do
|
|
19
19
|
before do
|
|
20
20
|
# run before each test
|
|
21
|
-
@instance =
|
|
21
|
+
@instance = Billabear::CustomersApi.new
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
after do
|
|
@@ -27,7 +27,7 @@ describe 'CustomersApi' do
|
|
|
27
27
|
|
|
28
28
|
describe 'test an instance of CustomersApi' do
|
|
29
29
|
it 'should create an instance of CustomersApi' do
|
|
30
|
-
expect(@instance).to be_instance_of(
|
|
30
|
+
expect(@instance).to be_instance_of(Billabear::CustomersApi)
|
|
31
31
|
end
|
|
32
32
|
end
|
|
33
33
|
|
|
@@ -37,7 +37,7 @@ describe 'CustomersApi' do
|
|
|
37
37
|
# @param body
|
|
38
38
|
# @param subscription_id The id of the subscription to retrieve
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
|
40
|
-
# @return [
|
|
40
|
+
# @return [InlineResponse20013]
|
|
41
41
|
describe 'add_seats_subscriptions test' do
|
|
42
42
|
it 'should work' do
|
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -50,7 +50,7 @@ describe 'CustomersApi' do
|
|
|
50
50
|
# @param body
|
|
51
51
|
# @param customer_id The id of the customer to retrieve
|
|
52
52
|
# @param [Hash] opts the optional parameters
|
|
53
|
-
# @return [
|
|
53
|
+
# @return [nil]
|
|
54
54
|
describe 'apply_voucher_to_customer test' do
|
|
55
55
|
it 'should work' do
|
|
56
56
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -69,12 +69,38 @@ describe 'CustomersApi' do
|
|
|
69
69
|
end
|
|
70
70
|
end
|
|
71
71
|
|
|
72
|
+
# unit tests for create_customer_usage_limit
|
|
73
|
+
# Create Usage Limit
|
|
74
|
+
# Create Usage Limit for the custoemr
|
|
75
|
+
# @param body
|
|
76
|
+
# @param customer_id The id of the customer to retrieve
|
|
77
|
+
# @param [Hash] opts the optional parameters
|
|
78
|
+
# @return [UsageLimit]
|
|
79
|
+
describe 'create_customer_usage_limit test' do
|
|
80
|
+
it 'should work' do
|
|
81
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# unit tests for customer_customer_id_uasge_limit_limit_id_delete
|
|
86
|
+
# Delete Usage Limit
|
|
87
|
+
# Delete Usage Limit for the custoemr
|
|
88
|
+
# @param customer_id The id of the customer to retrieve
|
|
89
|
+
# @param usage_limit_id The id of the usage limit
|
|
90
|
+
# @param [Hash] opts the optional parameters
|
|
91
|
+
# @return [nil]
|
|
92
|
+
describe 'customer_customer_id_uasge_limit_limit_id_delete test' do
|
|
93
|
+
it 'should work' do
|
|
94
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
|
|
72
98
|
# unit tests for disable_customer
|
|
73
99
|
# Disable Customer
|
|
74
100
|
# Disable customer
|
|
75
101
|
# @param customer_id The id of the customer to retrieve
|
|
76
102
|
# @param [Hash] opts the optional parameters
|
|
77
|
-
# @return [
|
|
103
|
+
# @return [nil]
|
|
78
104
|
describe 'disable_customer test' do
|
|
79
105
|
it 'should work' do
|
|
80
106
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -86,7 +112,7 @@ describe 'CustomersApi' do
|
|
|
86
112
|
# Enable a customer
|
|
87
113
|
# @param customer_id The id of the customer to retrieve
|
|
88
114
|
# @param [Hash] opts the optional parameters
|
|
89
|
-
# @return [
|
|
115
|
+
# @return [nil]
|
|
90
116
|
describe 'enable_customer test' do
|
|
91
117
|
it 'should work' do
|
|
92
118
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -98,7 +124,7 @@ describe 'CustomersApi' do
|
|
|
98
124
|
# List all Active customer subscriptions
|
|
99
125
|
# @param customer_id The id of the customer to retrieve
|
|
100
126
|
# @param [Hash] opts the optional parameters
|
|
101
|
-
# @return [
|
|
127
|
+
# @return [InlineResponse2008]
|
|
102
128
|
describe 'get_active_for_customer test' do
|
|
103
129
|
it 'should work' do
|
|
104
130
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -115,6 +141,7 @@ describe 'CustomersApi' do
|
|
|
115
141
|
# @option opts [String] :country The country code to search for
|
|
116
142
|
# @option opts [String] :reference The reference to search for
|
|
117
143
|
# @option opts [String] :external_reference The external reference to search for
|
|
144
|
+
# @option opts [String] :company_name The company name to search for
|
|
118
145
|
# @return [InlineResponse200]
|
|
119
146
|
describe 'get_all_customers test' do
|
|
120
147
|
it 'should work' do
|
|
@@ -134,24 +161,48 @@ describe 'CustomersApi' do
|
|
|
134
161
|
end
|
|
135
162
|
end
|
|
136
163
|
|
|
164
|
+
# unit tests for get_customer_costs
|
|
165
|
+
# Usage Cost Estimate
|
|
166
|
+
# The estimated costs from usage based billing for a customer
|
|
167
|
+
# @param customer_id The id of the customer to retrieve
|
|
168
|
+
# @param [Hash] opts the optional parameters
|
|
169
|
+
# @return [InlineResponse2001]
|
|
170
|
+
describe 'get_customer_costs test' do
|
|
171
|
+
it 'should work' do
|
|
172
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
173
|
+
end
|
|
174
|
+
end
|
|
175
|
+
|
|
137
176
|
# unit tests for get_customer_limits_by_id
|
|
138
177
|
# Fetch Customer Limits
|
|
139
178
|
# Limits for a specific customer
|
|
140
179
|
# @param customer_id The id of the customer to retrieve
|
|
141
180
|
# @param [Hash] opts the optional parameters
|
|
142
|
-
# @return [
|
|
181
|
+
# @return [InlineResponse2002]
|
|
143
182
|
describe 'get_customer_limits_by_id test' do
|
|
144
183
|
it 'should work' do
|
|
145
184
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
146
185
|
end
|
|
147
186
|
end
|
|
148
187
|
|
|
188
|
+
# unit tests for get_customer_usage_limits_by_id
|
|
189
|
+
# Fetch Customer Usage Limits
|
|
190
|
+
# Usage Limits for a specific customer
|
|
191
|
+
# @param customer_id The id of the customer to retrieve
|
|
192
|
+
# @param [Hash] opts the optional parameters
|
|
193
|
+
# @return [InlineResponse2005]
|
|
194
|
+
describe 'get_customer_usage_limits_by_id test' do
|
|
195
|
+
it 'should work' do
|
|
196
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
197
|
+
end
|
|
198
|
+
end
|
|
199
|
+
|
|
149
200
|
# unit tests for get_for_customer
|
|
150
201
|
# List Customer Subscriptions
|
|
151
202
|
# List all customer subscriptions<br><br><strong>Since 1.1</strong>
|
|
152
203
|
# @param customer_id The id of the customer to retrieve
|
|
153
204
|
# @param [Hash] opts the optional parameters
|
|
154
|
-
# @return [
|
|
205
|
+
# @return [InlineResponse2008]
|
|
155
206
|
describe 'get_for_customer test' do
|
|
156
207
|
it 'should work' do
|
|
157
208
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -163,7 +214,7 @@ describe 'CustomersApi' do
|
|
|
163
214
|
# List Customer Invoices
|
|
164
215
|
# @param customer_id The id of the customer to retrieve
|
|
165
216
|
# @param [Hash] opts the optional parameters
|
|
166
|
-
# @return [
|
|
217
|
+
# @return [InlineResponse2006]
|
|
167
218
|
describe 'get_invoices_for_customer test' do
|
|
168
219
|
it 'should work' do
|
|
169
220
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -178,7 +229,7 @@ describe 'CustomersApi' do
|
|
|
178
229
|
# @option opts [Integer] :limit How many items to return at one time (max 100)
|
|
179
230
|
# @option opts [String] :last_key The key to be used in pagination to say what the last key of the previous page was
|
|
180
231
|
# @option opts [String] :name The name to search for
|
|
181
|
-
# @return [
|
|
232
|
+
# @return [InlineResponse2004]
|
|
182
233
|
describe 'get_payments_for_customer test' do
|
|
183
234
|
it 'should work' do
|
|
184
235
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -193,7 +244,7 @@ describe 'CustomersApi' do
|
|
|
193
244
|
# @option opts [Integer] :limit How many items to return at one time (max 100)
|
|
194
245
|
# @option opts [String] :last_key The key to be used in pagination to say what the last key of the previous page was
|
|
195
246
|
# @option opts [String] :name The name to search for
|
|
196
|
-
# @return [
|
|
247
|
+
# @return [InlineResponse2003]
|
|
197
248
|
describe 'get_refunds_for_customer test' do
|
|
198
249
|
it 'should work' do
|
|
199
250
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -205,7 +256,7 @@ describe 'CustomersApi' do
|
|
|
205
256
|
# List all customers <br><br>Added in version 1.1
|
|
206
257
|
# @param customer_id The id of the customer to retrieve
|
|
207
258
|
# @param [Hash] opts the optional parameters
|
|
208
|
-
# @return [
|
|
259
|
+
# @return [InlineResponse2007]
|
|
209
260
|
describe 'list_payment_details test' do
|
|
210
261
|
it 'should work' do
|
|
211
262
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -218,7 +269,7 @@ describe 'CustomersApi' do
|
|
|
218
269
|
# @param body
|
|
219
270
|
# @param subscription_id The id of the subscription to retrieve
|
|
220
271
|
# @param [Hash] opts the optional parameters
|
|
221
|
-
# @return [
|
|
272
|
+
# @return [InlineResponse20013]
|
|
222
273
|
describe 'remove_seats_subscriptions test' do
|
|
223
274
|
it 'should work' do
|
|
224
275
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|