subfi_pay 0.1.0 → 0.1.1
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/Gemfile.lock +1 -1
- data/README.md +93 -93
- data/docs/AccessKey.md +2 -2
- data/docs/AccessKeysApi.md +14 -14
- data/docs/AccountAttributes.md +2 -2
- data/docs/AccountCreateRequest.md +2 -2
- data/docs/AccountResponse.md +2 -2
- data/docs/AccountsApi.md +14 -14
- data/docs/BalanceTransactionResponse.md +2 -2
- data/docs/BalanceTransactionsApi.md +5 -5
- data/docs/BankAccountProfile.md +2 -2
- data/docs/BillingAddress.md +2 -2
- data/docs/CardProfile.md +2 -2
- data/docs/ChargeAttributes.md +2 -2
- data/docs/ChargeResponse.md +2 -2
- data/docs/ChargesApi.md +9 -9
- data/docs/ConnectedAccountAttributes.md +2 -2
- data/docs/ConnectedAccountResponse.md +2 -2
- data/docs/CreateWebhookEndpointRequest.md +2 -2
- data/docs/CreateWebhookEndpointRequestWebhookEndpoint.md +2 -2
- data/docs/Customer.md +2 -2
- data/docs/CustomerAttributes.md +2 -2
- data/docs/CustomerCreateRequest.md +2 -2
- data/docs/CustomerUpdateAttributes.md +2 -2
- data/docs/CustomerUpdateRequest.md +2 -2
- data/docs/CustomersApi.md +19 -19
- data/docs/Event.md +2 -2
- data/docs/EventsApi.md +9 -9
- data/docs/ListAccessKeysResponse.md +2 -2
- data/docs/ListAccountsResponse.md +2 -2
- data/docs/ListBalanceTransactionsResponse.md +2 -2
- data/docs/ListChargesResponse.md +2 -2
- data/docs/ListCustomersResponse.md +2 -2
- data/docs/ListEventsResponse.md +2 -2
- data/docs/ListPaymentIntentsResponse.md +2 -2
- data/docs/ListPaymentMethodsResponse.md +2 -2
- data/docs/ListRefundsResponse.md +2 -2
- data/docs/ListWebhookEndpointsResponse.md +2 -2
- data/docs/ListWebhookRequestsResponse.md +2 -2
- data/docs/Meta.md +2 -2
- data/docs/PaymentIntentAttributes.md +2 -2
- data/docs/PaymentIntentCreateRequest.md +2 -2
- data/docs/PaymentIntentResponse.md +2 -2
- data/docs/PaymentIntentUpdateAttributes.md +2 -2
- data/docs/PaymentIntentUpdateAttributesPaymentIntent.md +2 -2
- data/docs/PaymentIntentsApi.md +31 -31
- data/docs/PaymentMethodAttributes.md +2 -2
- data/docs/PaymentMethodResponse.md +2 -2
- data/docs/PaymentMethodsApi.md +14 -14
- data/docs/RefundAttributes.md +2 -2
- data/docs/RefundResponse.md +2 -2
- data/docs/RefundsApi.md +18 -18
- data/docs/RollAccessKeyAttributes.md +2 -2
- data/docs/RollAccessKeyAttributesAccessKey.md +2 -2
- data/docs/SubscriptionAttributes.md +2 -2
- data/docs/SubscriptionCreateRequest.md +2 -2
- data/docs/SubscriptionResponse.md +2 -2
- data/docs/SubscriptionsApi.md +10 -10
- data/docs/WebhookEndpoint.md +2 -2
- data/docs/WebhookEndpointsApi.md +23 -23
- data/docs/WebhookRequest.md +2 -2
- data/docs/WebhookRequestsApi.md +5 -5
- data/lib/subfi_pay/api/access_keys_api.rb +1 -1
- data/lib/subfi_pay/api/accounts_api.rb +1 -1
- data/lib/subfi_pay/api/balance_transactions_api.rb +1 -1
- data/lib/subfi_pay/api/charges_api.rb +1 -1
- data/lib/subfi_pay/api/customers_api.rb +1 -1
- data/lib/subfi_pay/api/events_api.rb +1 -1
- data/lib/subfi_pay/api/payment_intents_api.rb +1 -1
- data/lib/subfi_pay/api/payment_methods_api.rb +1 -1
- data/lib/subfi_pay/api/refunds_api.rb +1 -1
- data/lib/subfi_pay/api/subscriptions_api.rb +1 -1
- data/lib/subfi_pay/api/webhook_endpoints_api.rb +1 -1
- data/lib/subfi_pay/api/webhook_requests_api.rb +1 -1
- data/lib/subfi_pay/api_client.rb +2 -2
- data/lib/subfi_pay/api_error.rb +1 -1
- data/lib/subfi_pay/configuration.rb +1 -1
- data/lib/subfi_pay/models/access_key.rb +4 -4
- data/lib/subfi_pay/models/account_attributes.rb +4 -4
- data/lib/subfi_pay/models/account_create_request.rb +4 -4
- data/lib/subfi_pay/models/account_response.rb +4 -4
- data/lib/subfi_pay/models/balance_transaction_response.rb +4 -4
- data/lib/subfi_pay/models/bank_account_profile.rb +4 -4
- data/lib/subfi_pay/models/billing_address.rb +4 -4
- data/lib/subfi_pay/models/card_profile.rb +4 -4
- data/lib/subfi_pay/models/charge_attributes.rb +4 -4
- data/lib/subfi_pay/models/charge_response.rb +4 -4
- data/lib/subfi_pay/models/connected_account_attributes.rb +4 -4
- data/lib/subfi_pay/models/connected_account_response.rb +4 -4
- data/lib/subfi_pay/models/create_webhook_endpoint_request.rb +4 -4
- data/lib/subfi_pay/models/create_webhook_endpoint_request_webhook_endpoint.rb +4 -4
- data/lib/subfi_pay/models/customer.rb +4 -4
- data/lib/subfi_pay/models/customer_attributes.rb +4 -4
- data/lib/subfi_pay/models/customer_create_request.rb +4 -4
- data/lib/subfi_pay/models/customer_update_attributes.rb +4 -4
- data/lib/subfi_pay/models/customer_update_request.rb +4 -4
- data/lib/subfi_pay/models/event.rb +4 -4
- data/lib/subfi_pay/models/list_access_keys_response.rb +4 -4
- data/lib/subfi_pay/models/list_accounts_response.rb +4 -4
- data/lib/subfi_pay/models/list_balance_transactions_response.rb +4 -4
- data/lib/subfi_pay/models/list_charges_response.rb +4 -4
- data/lib/subfi_pay/models/list_customers_response.rb +4 -4
- data/lib/subfi_pay/models/list_events_response.rb +4 -4
- data/lib/subfi_pay/models/list_payment_intents_response.rb +4 -4
- data/lib/subfi_pay/models/list_payment_methods_response.rb +4 -4
- data/lib/subfi_pay/models/list_refunds_response.rb +4 -4
- data/lib/subfi_pay/models/list_webhook_endpoints_response.rb +4 -4
- data/lib/subfi_pay/models/list_webhook_requests_response.rb +4 -4
- data/lib/subfi_pay/models/meta.rb +4 -4
- data/lib/subfi_pay/models/payment_intent_attributes.rb +4 -4
- data/lib/subfi_pay/models/payment_intent_create_request.rb +4 -4
- data/lib/subfi_pay/models/payment_intent_response.rb +4 -4
- data/lib/subfi_pay/models/payment_intent_update_attributes.rb +4 -4
- data/lib/subfi_pay/models/payment_intent_update_attributes_payment_intent.rb +4 -4
- data/lib/subfi_pay/models/payment_method_attributes.rb +4 -4
- data/lib/subfi_pay/models/payment_method_response.rb +4 -4
- data/lib/subfi_pay/models/refund_attributes.rb +4 -4
- data/lib/subfi_pay/models/refund_response.rb +4 -4
- data/lib/subfi_pay/models/roll_access_key_attributes.rb +4 -4
- data/lib/subfi_pay/models/roll_access_key_attributes_access_key.rb +4 -4
- data/lib/subfi_pay/models/subscription_attributes.rb +4 -4
- data/lib/subfi_pay/models/subscription_create_request.rb +4 -4
- data/lib/subfi_pay/models/subscription_response.rb +4 -4
- data/lib/subfi_pay/models/webhook_endpoint.rb +4 -4
- data/lib/subfi_pay/models/webhook_request.rb +4 -4
- data/lib/subfi_pay/version.rb +2 -2
- data/lib/subfi_pay.rb +2 -2
- data/spec/api/access_keys_api_spec.rb +6 -6
- data/spec/api/accounts_api_spec.rb +6 -6
- data/spec/api/balance_transactions_api_spec.rb +4 -4
- data/spec/api/charges_api_spec.rb +5 -5
- data/spec/api/customers_api_spec.rb +10 -10
- data/spec/api/events_api_spec.rb +7 -6
- data/spec/api/payment_intents_api_spec.rb +10 -10
- data/spec/api/payment_methods_api_spec.rb +11 -11
- data/spec/api/refunds_api_spec.rb +7 -7
- data/spec/api/subscriptions_api_spec.rb +5 -5
- data/spec/api/webhook_endpoints_api_spec.rb +9 -9
- data/spec/api/webhook_requests_api_spec.rb +4 -4
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/access_key_spec.rb +4 -4
- data/spec/models/account_attributes_spec.rb +4 -4
- data/spec/models/account_create_request_spec.rb +4 -4
- data/spec/models/account_response_spec.rb +4 -4
- data/spec/models/balance_transaction_response_spec.rb +4 -4
- data/spec/models/bank_account_profile_spec.rb +4 -4
- data/spec/models/billing_address_spec.rb +4 -4
- data/spec/models/card_profile_spec.rb +4 -4
- data/spec/models/charge_attributes_spec.rb +4 -4
- data/spec/models/charge_response_spec.rb +4 -4
- data/spec/models/connected_account_attributes_spec.rb +4 -4
- data/spec/models/connected_account_response_spec.rb +4 -4
- data/spec/models/create_account_request_account_spec.rb +4 -4
- data/spec/models/create_account_request_spec.rb +4 -4
- data/spec/models/create_webhook_endpoint_request_spec.rb +4 -4
- data/spec/models/create_webhook_endpoint_request_webhook_endpoint_spec.rb +4 -4
- data/spec/models/customer_attributes_spec.rb +4 -4
- data/spec/models/customer_create_request_spec.rb +4 -4
- data/spec/models/customer_spec.rb +4 -4
- data/spec/models/customer_update_attributes_spec.rb +4 -4
- data/spec/models/customer_update_request_spec.rb +4 -4
- data/spec/models/event_spec.rb +4 -4
- data/spec/models/list_access_keys_response_spec.rb +4 -4
- data/spec/models/list_accounts_response_spec.rb +4 -4
- data/spec/models/list_balance_transactions_response_spec.rb +4 -4
- data/spec/models/list_charges_response_spec.rb +4 -4
- data/spec/models/list_customers_response_spec.rb +4 -4
- data/spec/models/list_events_response_spec.rb +4 -4
- data/spec/models/list_payment_intents_response_spec.rb +4 -4
- data/spec/models/list_payment_methods_response_spec.rb +4 -4
- data/spec/models/list_refunds_response_spec.rb +4 -4
- data/spec/models/list_webhook_endpoints_response_spec.rb +4 -4
- data/spec/models/list_webhook_requests_response_spec.rb +4 -4
- data/spec/models/meta_spec.rb +4 -4
- data/spec/models/payment_intent_attributes_spec.rb +4 -4
- data/spec/models/payment_intent_create_request_spec.rb +4 -4
- data/spec/models/payment_intent_response_spec.rb +4 -4
- data/spec/models/payment_intent_update_attributes_payment_intent_spec.rb +4 -4
- data/spec/models/payment_intent_update_attributes_spec.rb +4 -4
- data/spec/models/payment_method_attributes_spec.rb +4 -4
- data/spec/models/payment_method_response_spec.rb +4 -4
- data/spec/models/refund_attributes_spec.rb +4 -4
- data/spec/models/refund_response_spec.rb +4 -4
- data/spec/models/roll_access_key_attributes_access_key_spec.rb +4 -4
- data/spec/models/roll_access_key_attributes_spec.rb +4 -4
- data/spec/models/roll_access_key_request_access_key_spec.rb +4 -4
- data/spec/models/roll_access_key_request_spec.rb +4 -4
- data/spec/models/subscription_attributes_spec.rb +4 -4
- data/spec/models/subscription_create_request_spec.rb +4 -4
- data/spec/models/subscription_response_spec.rb +4 -4
- data/spec/models/webhook_endpoint_spec.rb +4 -4
- data/spec/models/webhook_request_spec.rb +4 -4
- data/subfi_pay.gemspec +1 -1
- metadata +2 -2
@@ -13,7 +13,7 @@ Generator version: 7.7.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module SubfiPay
|
17
17
|
class AccountResponse
|
18
18
|
attr_accessor :name
|
19
19
|
|
@@ -62,13 +62,13 @@ module SubFiPay
|
|
62
62
|
# @param [Hash] attributes Model attributes in the form of hash
|
63
63
|
def initialize(attributes = {})
|
64
64
|
if (!attributes.is_a?(Hash))
|
65
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::AccountResponse` initialize method"
|
66
66
|
end
|
67
67
|
|
68
68
|
# check to see if the attribute exists and convert string to symbol for hash key
|
69
69
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
70
70
|
if (!self.class.attribute_map.key?(k.to_sym))
|
71
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
71
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SubfiPay::AccountResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
72
72
|
end
|
73
73
|
h[k.to_sym] = v
|
74
74
|
}
|
@@ -194,7 +194,7 @@ module SubFiPay
|
|
194
194
|
end
|
195
195
|
else # model
|
196
196
|
# models (e.g. Pet) or oneOf
|
197
|
-
klass =
|
197
|
+
klass = SubfiPay.const_get(type)
|
198
198
|
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
199
199
|
end
|
200
200
|
end
|
@@ -13,7 +13,7 @@ Generator version: 7.7.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module SubfiPay
|
17
17
|
class BalanceTransactionResponse
|
18
18
|
attr_accessor :id
|
19
19
|
|
@@ -87,13 +87,13 @@ module SubFiPay
|
|
87
87
|
# @param [Hash] attributes Model attributes in the form of hash
|
88
88
|
def initialize(attributes = {})
|
89
89
|
if (!attributes.is_a?(Hash))
|
90
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
90
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::BalanceTransactionResponse` initialize method"
|
91
91
|
end
|
92
92
|
|
93
93
|
# check to see if the attribute exists and convert string to symbol for hash key
|
94
94
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
95
95
|
if (!self.class.attribute_map.key?(k.to_sym))
|
96
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
96
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SubfiPay::BalanceTransactionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
97
97
|
end
|
98
98
|
h[k.to_sym] = v
|
99
99
|
}
|
@@ -249,7 +249,7 @@ module SubFiPay
|
|
249
249
|
end
|
250
250
|
else # model
|
251
251
|
# models (e.g. Pet) or oneOf
|
252
|
-
klass =
|
252
|
+
klass = SubfiPay.const_get(type)
|
253
253
|
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
254
254
|
end
|
255
255
|
end
|
@@ -13,7 +13,7 @@ Generator version: 7.7.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module SubfiPay
|
17
17
|
class BankAccountProfile
|
18
18
|
attr_accessor :account_holder_name
|
19
19
|
|
@@ -66,13 +66,13 @@ module SubFiPay
|
|
66
66
|
# @param [Hash] attributes Model attributes in the form of hash
|
67
67
|
def initialize(attributes = {})
|
68
68
|
if (!attributes.is_a?(Hash))
|
69
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
69
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::BankAccountProfile` initialize method"
|
70
70
|
end
|
71
71
|
|
72
72
|
# check to see if the attribute exists and convert string to symbol for hash key
|
73
73
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
74
74
|
if (!self.class.attribute_map.key?(k.to_sym))
|
75
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
75
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SubfiPay::BankAccountProfile`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
76
76
|
end
|
77
77
|
h[k.to_sym] = v
|
78
78
|
}
|
@@ -203,7 +203,7 @@ module SubFiPay
|
|
203
203
|
end
|
204
204
|
else # model
|
205
205
|
# models (e.g. Pet) or oneOf
|
206
|
-
klass =
|
206
|
+
klass = SubfiPay.const_get(type)
|
207
207
|
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
208
208
|
end
|
209
209
|
end
|
@@ -13,7 +13,7 @@ Generator version: 7.7.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module SubfiPay
|
17
17
|
class BillingAddress
|
18
18
|
attr_accessor :first_name
|
19
19
|
|
@@ -83,13 +83,13 @@ module SubFiPay
|
|
83
83
|
# @param [Hash] attributes Model attributes in the form of hash
|
84
84
|
def initialize(attributes = {})
|
85
85
|
if (!attributes.is_a?(Hash))
|
86
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
86
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::BillingAddress` initialize method"
|
87
87
|
end
|
88
88
|
|
89
89
|
# check to see if the attribute exists and convert string to symbol for hash key
|
90
90
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
91
91
|
if (!self.class.attribute_map.key?(k.to_sym))
|
92
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
92
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SubfiPay::BillingAddress`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
93
93
|
end
|
94
94
|
h[k.to_sym] = v
|
95
95
|
}
|
@@ -240,7 +240,7 @@ module SubFiPay
|
|
240
240
|
end
|
241
241
|
else # model
|
242
242
|
# models (e.g. Pet) or oneOf
|
243
|
-
klass =
|
243
|
+
klass = SubfiPay.const_get(type)
|
244
244
|
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
245
245
|
end
|
246
246
|
end
|
@@ -13,7 +13,7 @@ Generator version: 7.7.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module SubfiPay
|
17
17
|
class CardProfile
|
18
18
|
attr_accessor :avs_check
|
19
19
|
|
@@ -98,13 +98,13 @@ module SubFiPay
|
|
98
98
|
# @param [Hash] attributes Model attributes in the form of hash
|
99
99
|
def initialize(attributes = {})
|
100
100
|
if (!attributes.is_a?(Hash))
|
101
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
101
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::CardProfile` initialize method"
|
102
102
|
end
|
103
103
|
|
104
104
|
# check to see if the attribute exists and convert string to symbol for hash key
|
105
105
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
106
106
|
if (!self.class.attribute_map.key?(k.to_sym))
|
107
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
107
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SubfiPay::CardProfile`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
108
108
|
end
|
109
109
|
h[k.to_sym] = v
|
110
110
|
}
|
@@ -270,7 +270,7 @@ module SubFiPay
|
|
270
270
|
end
|
271
271
|
else # model
|
272
272
|
# models (e.g. Pet) or oneOf
|
273
|
-
klass =
|
273
|
+
klass = SubfiPay.const_get(type)
|
274
274
|
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
275
275
|
end
|
276
276
|
end
|
@@ -13,7 +13,7 @@ Generator version: 7.7.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module SubfiPay
|
17
17
|
class ChargeAttributes
|
18
18
|
attr_accessor :amount
|
19
19
|
|
@@ -65,13 +65,13 @@ module SubFiPay
|
|
65
65
|
# @param [Hash] attributes Model attributes in the form of hash
|
66
66
|
def initialize(attributes = {})
|
67
67
|
if (!attributes.is_a?(Hash))
|
68
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
68
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::ChargeAttributes` initialize method"
|
69
69
|
end
|
70
70
|
|
71
71
|
# check to see if the attribute exists and convert string to symbol for hash key
|
72
72
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
73
73
|
if (!self.class.attribute_map.key?(k.to_sym))
|
74
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
74
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SubfiPay::ChargeAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
75
75
|
end
|
76
76
|
h[k.to_sym] = v
|
77
77
|
}
|
@@ -211,7 +211,7 @@ module SubFiPay
|
|
211
211
|
end
|
212
212
|
else # model
|
213
213
|
# models (e.g. Pet) or oneOf
|
214
|
-
klass =
|
214
|
+
klass = SubfiPay.const_get(type)
|
215
215
|
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
216
216
|
end
|
217
217
|
end
|
@@ -13,7 +13,7 @@ Generator version: 7.7.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module SubfiPay
|
17
17
|
class ChargeResponse
|
18
18
|
attr_accessor :id
|
19
19
|
|
@@ -100,13 +100,13 @@ module SubFiPay
|
|
100
100
|
# @param [Hash] attributes Model attributes in the form of hash
|
101
101
|
def initialize(attributes = {})
|
102
102
|
if (!attributes.is_a?(Hash))
|
103
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
103
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::ChargeResponse` initialize method"
|
104
104
|
end
|
105
105
|
|
106
106
|
# check to see if the attribute exists and convert string to symbol for hash key
|
107
107
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
108
108
|
if (!self.class.attribute_map.key?(k.to_sym))
|
109
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
109
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SubfiPay::ChargeResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
110
110
|
end
|
111
111
|
h[k.to_sym] = v
|
112
112
|
}
|
@@ -272,7 +272,7 @@ module SubFiPay
|
|
272
272
|
end
|
273
273
|
else # model
|
274
274
|
# models (e.g. Pet) or oneOf
|
275
|
-
klass =
|
275
|
+
klass = SubfiPay.const_get(type)
|
276
276
|
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
277
277
|
end
|
278
278
|
end
|
@@ -13,7 +13,7 @@ Generator version: 7.7.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module SubfiPay
|
17
17
|
class ConnectedAccountAttributes
|
18
18
|
attr_accessor :name
|
19
19
|
|
@@ -50,13 +50,13 @@ module SubFiPay
|
|
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 `SubfiPay::ConnectedAccountAttributes` 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 `SubfiPay::ConnectedAccountAttributes`. 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
|
}
|
@@ -181,7 +181,7 @@ module SubFiPay
|
|
181
181
|
end
|
182
182
|
else # model
|
183
183
|
# models (e.g. Pet) or oneOf
|
184
|
-
klass =
|
184
|
+
klass = SubfiPay.const_get(type)
|
185
185
|
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
186
186
|
end
|
187
187
|
end
|
@@ -13,7 +13,7 @@ Generator version: 7.7.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module SubfiPay
|
17
17
|
class ConnectedAccountResponse
|
18
18
|
attr_accessor :id
|
19
19
|
|
@@ -62,13 +62,13 @@ module SubFiPay
|
|
62
62
|
# @param [Hash] attributes Model attributes in the form of hash
|
63
63
|
def initialize(attributes = {})
|
64
64
|
if (!attributes.is_a?(Hash))
|
65
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::ConnectedAccountResponse` initialize method"
|
66
66
|
end
|
67
67
|
|
68
68
|
# check to see if the attribute exists and convert string to symbol for hash key
|
69
69
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
70
70
|
if (!self.class.attribute_map.key?(k.to_sym))
|
71
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
71
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SubfiPay::ConnectedAccountResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
72
72
|
end
|
73
73
|
h[k.to_sym] = v
|
74
74
|
}
|
@@ -194,7 +194,7 @@ module SubFiPay
|
|
194
194
|
end
|
195
195
|
else # model
|
196
196
|
# models (e.g. Pet) or oneOf
|
197
|
-
klass =
|
197
|
+
klass = SubfiPay.const_get(type)
|
198
198
|
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
199
199
|
end
|
200
200
|
end
|
@@ -13,7 +13,7 @@ Generator version: 7.7.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module SubfiPay
|
17
17
|
class CreateWebhookEndpointRequest
|
18
18
|
attr_accessor :webhook_endpoint
|
19
19
|
|
@@ -46,13 +46,13 @@ module SubFiPay
|
|
46
46
|
# @param [Hash] attributes Model attributes in the form of hash
|
47
47
|
def initialize(attributes = {})
|
48
48
|
if (!attributes.is_a?(Hash))
|
49
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::CreateWebhookEndpointRequest` initialize method"
|
50
50
|
end
|
51
51
|
|
52
52
|
# check to see if the attribute exists and convert string to symbol for hash key
|
53
53
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
54
|
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SubfiPay::CreateWebhookEndpointRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
56
|
end
|
57
57
|
h[k.to_sym] = v
|
58
58
|
}
|
@@ -158,7 +158,7 @@ module SubFiPay
|
|
158
158
|
end
|
159
159
|
else # model
|
160
160
|
# models (e.g. Pet) or oneOf
|
161
|
-
klass =
|
161
|
+
klass = SubfiPay.const_get(type)
|
162
162
|
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
163
163
|
end
|
164
164
|
end
|
@@ -13,7 +13,7 @@ Generator version: 7.7.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module SubfiPay
|
17
17
|
class CreateWebhookEndpointRequestWebhookEndpoint
|
18
18
|
attr_accessor :event
|
19
19
|
|
@@ -66,13 +66,13 @@ module SubFiPay
|
|
66
66
|
# @param [Hash] attributes Model attributes in the form of hash
|
67
67
|
def initialize(attributes = {})
|
68
68
|
if (!attributes.is_a?(Hash))
|
69
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
69
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::CreateWebhookEndpointRequestWebhookEndpoint` initialize method"
|
70
70
|
end
|
71
71
|
|
72
72
|
# check to see if the attribute exists and convert string to symbol for hash key
|
73
73
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
74
74
|
if (!self.class.attribute_map.key?(k.to_sym))
|
75
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
75
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SubfiPay::CreateWebhookEndpointRequestWebhookEndpoint`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
76
76
|
end
|
77
77
|
h[k.to_sym] = v
|
78
78
|
}
|
@@ -203,7 +203,7 @@ module SubFiPay
|
|
203
203
|
end
|
204
204
|
else # model
|
205
205
|
# models (e.g. Pet) or oneOf
|
206
|
-
klass =
|
206
|
+
klass = SubfiPay.const_get(type)
|
207
207
|
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
208
208
|
end
|
209
209
|
end
|
@@ -13,7 +13,7 @@ Generator version: 7.7.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module SubfiPay
|
17
17
|
class Customer
|
18
18
|
attr_accessor :name
|
19
19
|
|
@@ -62,13 +62,13 @@ module SubFiPay
|
|
62
62
|
# @param [Hash] attributes Model attributes in the form of hash
|
63
63
|
def initialize(attributes = {})
|
64
64
|
if (!attributes.is_a?(Hash))
|
65
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::Customer` initialize method"
|
66
66
|
end
|
67
67
|
|
68
68
|
# check to see if the attribute exists and convert string to symbol for hash key
|
69
69
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
70
70
|
if (!self.class.attribute_map.key?(k.to_sym))
|
71
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
71
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SubfiPay::Customer`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
72
72
|
end
|
73
73
|
h[k.to_sym] = v
|
74
74
|
}
|
@@ -194,7 +194,7 @@ module SubFiPay
|
|
194
194
|
end
|
195
195
|
else # model
|
196
196
|
# models (e.g. Pet) or oneOf
|
197
|
-
klass =
|
197
|
+
klass = SubfiPay.const_get(type)
|
198
198
|
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
199
199
|
end
|
200
200
|
end
|
@@ -13,7 +13,7 @@ Generator version: 7.7.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module SubfiPay
|
17
17
|
class CustomerAttributes
|
18
18
|
attr_accessor :name
|
19
19
|
|
@@ -58,13 +58,13 @@ module SubFiPay
|
|
58
58
|
# @param [Hash] attributes Model attributes in the form of hash
|
59
59
|
def initialize(attributes = {})
|
60
60
|
if (!attributes.is_a?(Hash))
|
61
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
61
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::CustomerAttributes` initialize method"
|
62
62
|
end
|
63
63
|
|
64
64
|
# check to see if the attribute exists and convert string to symbol for hash key
|
65
65
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
66
66
|
if (!self.class.attribute_map.key?(k.to_sym))
|
67
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
67
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SubfiPay::CustomerAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
68
68
|
end
|
69
69
|
h[k.to_sym] = v
|
70
70
|
}
|
@@ -185,7 +185,7 @@ module SubFiPay
|
|
185
185
|
end
|
186
186
|
else # model
|
187
187
|
# models (e.g. Pet) or oneOf
|
188
|
-
klass =
|
188
|
+
klass = SubfiPay.const_get(type)
|
189
189
|
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
190
190
|
end
|
191
191
|
end
|
@@ -13,7 +13,7 @@ Generator version: 7.7.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module SubfiPay
|
17
17
|
class CustomerCreateRequest
|
18
18
|
attr_accessor :customer
|
19
19
|
|
@@ -46,13 +46,13 @@ module SubFiPay
|
|
46
46
|
# @param [Hash] attributes Model attributes in the form of hash
|
47
47
|
def initialize(attributes = {})
|
48
48
|
if (!attributes.is_a?(Hash))
|
49
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::CustomerCreateRequest` initialize method"
|
50
50
|
end
|
51
51
|
|
52
52
|
# check to see if the attribute exists and convert string to symbol for hash key
|
53
53
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
54
|
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SubfiPay::CustomerCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
56
|
end
|
57
57
|
h[k.to_sym] = v
|
58
58
|
}
|
@@ -158,7 +158,7 @@ module SubFiPay
|
|
158
158
|
end
|
159
159
|
else # model
|
160
160
|
# models (e.g. Pet) or oneOf
|
161
|
-
klass =
|
161
|
+
klass = SubfiPay.const_get(type)
|
162
162
|
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
163
163
|
end
|
164
164
|
end
|
@@ -13,7 +13,7 @@ Generator version: 7.7.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module SubfiPay
|
17
17
|
class CustomerUpdateAttributes
|
18
18
|
attr_accessor :name
|
19
19
|
|
@@ -50,13 +50,13 @@ module SubFiPay
|
|
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 `SubfiPay::CustomerUpdateAttributes` 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 `SubfiPay::CustomerUpdateAttributes`. 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
|
}
|
@@ -167,7 +167,7 @@ module SubFiPay
|
|
167
167
|
end
|
168
168
|
else # model
|
169
169
|
# models (e.g. Pet) or oneOf
|
170
|
-
klass =
|
170
|
+
klass = SubfiPay.const_get(type)
|
171
171
|
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
172
172
|
end
|
173
173
|
end
|
@@ -13,7 +13,7 @@ Generator version: 7.7.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module SubfiPay
|
17
17
|
class CustomerUpdateRequest
|
18
18
|
attr_accessor :customer
|
19
19
|
|
@@ -46,13 +46,13 @@ module SubFiPay
|
|
46
46
|
# @param [Hash] attributes Model attributes in the form of hash
|
47
47
|
def initialize(attributes = {})
|
48
48
|
if (!attributes.is_a?(Hash))
|
49
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::CustomerUpdateRequest` initialize method"
|
50
50
|
end
|
51
51
|
|
52
52
|
# check to see if the attribute exists and convert string to symbol for hash key
|
53
53
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
54
|
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SubfiPay::CustomerUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
56
|
end
|
57
57
|
h[k.to_sym] = v
|
58
58
|
}
|
@@ -158,7 +158,7 @@ module SubFiPay
|
|
158
158
|
end
|
159
159
|
else # model
|
160
160
|
# models (e.g. Pet) or oneOf
|
161
|
-
klass =
|
161
|
+
klass = SubfiPay.const_get(type)
|
162
162
|
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
163
163
|
end
|
164
164
|
end
|
@@ -13,7 +13,7 @@ Generator version: 7.7.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module SubfiPay
|
17
17
|
class Event
|
18
18
|
attr_accessor :id
|
19
19
|
|
@@ -70,13 +70,13 @@ module SubFiPay
|
|
70
70
|
# @param [Hash] attributes Model attributes in the form of hash
|
71
71
|
def initialize(attributes = {})
|
72
72
|
if (!attributes.is_a?(Hash))
|
73
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
73
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::Event` initialize method"
|
74
74
|
end
|
75
75
|
|
76
76
|
# check to see if the attribute exists and convert string to symbol for hash key
|
77
77
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
78
78
|
if (!self.class.attribute_map.key?(k.to_sym))
|
79
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
79
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SubfiPay::Event`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
80
80
|
end
|
81
81
|
h[k.to_sym] = v
|
82
82
|
}
|
@@ -212,7 +212,7 @@ module SubFiPay
|
|
212
212
|
end
|
213
213
|
else # model
|
214
214
|
# models (e.g. Pet) or oneOf
|
215
|
-
klass =
|
215
|
+
klass = SubfiPay.const_get(type)
|
216
216
|
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
217
217
|
end
|
218
218
|
end
|
@@ -13,7 +13,7 @@ Generator version: 7.7.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module SubfiPay
|
17
17
|
class ListAccessKeysResponse
|
18
18
|
attr_accessor :data
|
19
19
|
|
@@ -50,13 +50,13 @@ module SubFiPay
|
|
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 `SubfiPay::ListAccessKeysResponse` 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 `SubfiPay::ListAccessKeysResponse`. 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
|
}
|
@@ -169,7 +169,7 @@ module SubFiPay
|
|
169
169
|
end
|
170
170
|
else # model
|
171
171
|
# models (e.g. Pet) or oneOf
|
172
|
-
klass =
|
172
|
+
klass = SubfiPay.const_get(type)
|
173
173
|
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
174
174
|
end
|
175
175
|
end
|
@@ -13,7 +13,7 @@ Generator version: 7.7.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module SubfiPay
|
17
17
|
class ListAccountsResponse
|
18
18
|
attr_accessor :data
|
19
19
|
|
@@ -50,13 +50,13 @@ module SubFiPay
|
|
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 `SubfiPay::ListAccountsResponse` 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 `SubfiPay::ListAccountsResponse`. 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
|
}
|
@@ -169,7 +169,7 @@ module SubFiPay
|
|
169
169
|
end
|
170
170
|
else # model
|
171
171
|
# models (e.g. Pet) or oneOf
|
172
|
-
klass =
|
172
|
+
klass = SubfiPay.const_get(type)
|
173
173
|
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
174
174
|
end
|
175
175
|
end
|