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.
Files changed (195) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +93 -93
  4. data/docs/AccessKey.md +2 -2
  5. data/docs/AccessKeysApi.md +14 -14
  6. data/docs/AccountAttributes.md +2 -2
  7. data/docs/AccountCreateRequest.md +2 -2
  8. data/docs/AccountResponse.md +2 -2
  9. data/docs/AccountsApi.md +14 -14
  10. data/docs/BalanceTransactionResponse.md +2 -2
  11. data/docs/BalanceTransactionsApi.md +5 -5
  12. data/docs/BankAccountProfile.md +2 -2
  13. data/docs/BillingAddress.md +2 -2
  14. data/docs/CardProfile.md +2 -2
  15. data/docs/ChargeAttributes.md +2 -2
  16. data/docs/ChargeResponse.md +2 -2
  17. data/docs/ChargesApi.md +9 -9
  18. data/docs/ConnectedAccountAttributes.md +2 -2
  19. data/docs/ConnectedAccountResponse.md +2 -2
  20. data/docs/CreateWebhookEndpointRequest.md +2 -2
  21. data/docs/CreateWebhookEndpointRequestWebhookEndpoint.md +2 -2
  22. data/docs/Customer.md +2 -2
  23. data/docs/CustomerAttributes.md +2 -2
  24. data/docs/CustomerCreateRequest.md +2 -2
  25. data/docs/CustomerUpdateAttributes.md +2 -2
  26. data/docs/CustomerUpdateRequest.md +2 -2
  27. data/docs/CustomersApi.md +19 -19
  28. data/docs/Event.md +2 -2
  29. data/docs/EventsApi.md +9 -9
  30. data/docs/ListAccessKeysResponse.md +2 -2
  31. data/docs/ListAccountsResponse.md +2 -2
  32. data/docs/ListBalanceTransactionsResponse.md +2 -2
  33. data/docs/ListChargesResponse.md +2 -2
  34. data/docs/ListCustomersResponse.md +2 -2
  35. data/docs/ListEventsResponse.md +2 -2
  36. data/docs/ListPaymentIntentsResponse.md +2 -2
  37. data/docs/ListPaymentMethodsResponse.md +2 -2
  38. data/docs/ListRefundsResponse.md +2 -2
  39. data/docs/ListWebhookEndpointsResponse.md +2 -2
  40. data/docs/ListWebhookRequestsResponse.md +2 -2
  41. data/docs/Meta.md +2 -2
  42. data/docs/PaymentIntentAttributes.md +2 -2
  43. data/docs/PaymentIntentCreateRequest.md +2 -2
  44. data/docs/PaymentIntentResponse.md +2 -2
  45. data/docs/PaymentIntentUpdateAttributes.md +2 -2
  46. data/docs/PaymentIntentUpdateAttributesPaymentIntent.md +2 -2
  47. data/docs/PaymentIntentsApi.md +31 -31
  48. data/docs/PaymentMethodAttributes.md +2 -2
  49. data/docs/PaymentMethodResponse.md +2 -2
  50. data/docs/PaymentMethodsApi.md +14 -14
  51. data/docs/RefundAttributes.md +2 -2
  52. data/docs/RefundResponse.md +2 -2
  53. data/docs/RefundsApi.md +18 -18
  54. data/docs/RollAccessKeyAttributes.md +2 -2
  55. data/docs/RollAccessKeyAttributesAccessKey.md +2 -2
  56. data/docs/SubscriptionAttributes.md +2 -2
  57. data/docs/SubscriptionCreateRequest.md +2 -2
  58. data/docs/SubscriptionResponse.md +2 -2
  59. data/docs/SubscriptionsApi.md +10 -10
  60. data/docs/WebhookEndpoint.md +2 -2
  61. data/docs/WebhookEndpointsApi.md +23 -23
  62. data/docs/WebhookRequest.md +2 -2
  63. data/docs/WebhookRequestsApi.md +5 -5
  64. data/lib/subfi_pay/api/access_keys_api.rb +1 -1
  65. data/lib/subfi_pay/api/accounts_api.rb +1 -1
  66. data/lib/subfi_pay/api/balance_transactions_api.rb +1 -1
  67. data/lib/subfi_pay/api/charges_api.rb +1 -1
  68. data/lib/subfi_pay/api/customers_api.rb +1 -1
  69. data/lib/subfi_pay/api/events_api.rb +1 -1
  70. data/lib/subfi_pay/api/payment_intents_api.rb +1 -1
  71. data/lib/subfi_pay/api/payment_methods_api.rb +1 -1
  72. data/lib/subfi_pay/api/refunds_api.rb +1 -1
  73. data/lib/subfi_pay/api/subscriptions_api.rb +1 -1
  74. data/lib/subfi_pay/api/webhook_endpoints_api.rb +1 -1
  75. data/lib/subfi_pay/api/webhook_requests_api.rb +1 -1
  76. data/lib/subfi_pay/api_client.rb +2 -2
  77. data/lib/subfi_pay/api_error.rb +1 -1
  78. data/lib/subfi_pay/configuration.rb +1 -1
  79. data/lib/subfi_pay/models/access_key.rb +4 -4
  80. data/lib/subfi_pay/models/account_attributes.rb +4 -4
  81. data/lib/subfi_pay/models/account_create_request.rb +4 -4
  82. data/lib/subfi_pay/models/account_response.rb +4 -4
  83. data/lib/subfi_pay/models/balance_transaction_response.rb +4 -4
  84. data/lib/subfi_pay/models/bank_account_profile.rb +4 -4
  85. data/lib/subfi_pay/models/billing_address.rb +4 -4
  86. data/lib/subfi_pay/models/card_profile.rb +4 -4
  87. data/lib/subfi_pay/models/charge_attributes.rb +4 -4
  88. data/lib/subfi_pay/models/charge_response.rb +4 -4
  89. data/lib/subfi_pay/models/connected_account_attributes.rb +4 -4
  90. data/lib/subfi_pay/models/connected_account_response.rb +4 -4
  91. data/lib/subfi_pay/models/create_webhook_endpoint_request.rb +4 -4
  92. data/lib/subfi_pay/models/create_webhook_endpoint_request_webhook_endpoint.rb +4 -4
  93. data/lib/subfi_pay/models/customer.rb +4 -4
  94. data/lib/subfi_pay/models/customer_attributes.rb +4 -4
  95. data/lib/subfi_pay/models/customer_create_request.rb +4 -4
  96. data/lib/subfi_pay/models/customer_update_attributes.rb +4 -4
  97. data/lib/subfi_pay/models/customer_update_request.rb +4 -4
  98. data/lib/subfi_pay/models/event.rb +4 -4
  99. data/lib/subfi_pay/models/list_access_keys_response.rb +4 -4
  100. data/lib/subfi_pay/models/list_accounts_response.rb +4 -4
  101. data/lib/subfi_pay/models/list_balance_transactions_response.rb +4 -4
  102. data/lib/subfi_pay/models/list_charges_response.rb +4 -4
  103. data/lib/subfi_pay/models/list_customers_response.rb +4 -4
  104. data/lib/subfi_pay/models/list_events_response.rb +4 -4
  105. data/lib/subfi_pay/models/list_payment_intents_response.rb +4 -4
  106. data/lib/subfi_pay/models/list_payment_methods_response.rb +4 -4
  107. data/lib/subfi_pay/models/list_refunds_response.rb +4 -4
  108. data/lib/subfi_pay/models/list_webhook_endpoints_response.rb +4 -4
  109. data/lib/subfi_pay/models/list_webhook_requests_response.rb +4 -4
  110. data/lib/subfi_pay/models/meta.rb +4 -4
  111. data/lib/subfi_pay/models/payment_intent_attributes.rb +4 -4
  112. data/lib/subfi_pay/models/payment_intent_create_request.rb +4 -4
  113. data/lib/subfi_pay/models/payment_intent_response.rb +4 -4
  114. data/lib/subfi_pay/models/payment_intent_update_attributes.rb +4 -4
  115. data/lib/subfi_pay/models/payment_intent_update_attributes_payment_intent.rb +4 -4
  116. data/lib/subfi_pay/models/payment_method_attributes.rb +4 -4
  117. data/lib/subfi_pay/models/payment_method_response.rb +4 -4
  118. data/lib/subfi_pay/models/refund_attributes.rb +4 -4
  119. data/lib/subfi_pay/models/refund_response.rb +4 -4
  120. data/lib/subfi_pay/models/roll_access_key_attributes.rb +4 -4
  121. data/lib/subfi_pay/models/roll_access_key_attributes_access_key.rb +4 -4
  122. data/lib/subfi_pay/models/subscription_attributes.rb +4 -4
  123. data/lib/subfi_pay/models/subscription_create_request.rb +4 -4
  124. data/lib/subfi_pay/models/subscription_response.rb +4 -4
  125. data/lib/subfi_pay/models/webhook_endpoint.rb +4 -4
  126. data/lib/subfi_pay/models/webhook_request.rb +4 -4
  127. data/lib/subfi_pay/version.rb +2 -2
  128. data/lib/subfi_pay.rb +2 -2
  129. data/spec/api/access_keys_api_spec.rb +6 -6
  130. data/spec/api/accounts_api_spec.rb +6 -6
  131. data/spec/api/balance_transactions_api_spec.rb +4 -4
  132. data/spec/api/charges_api_spec.rb +5 -5
  133. data/spec/api/customers_api_spec.rb +10 -10
  134. data/spec/api/events_api_spec.rb +7 -6
  135. data/spec/api/payment_intents_api_spec.rb +10 -10
  136. data/spec/api/payment_methods_api_spec.rb +11 -11
  137. data/spec/api/refunds_api_spec.rb +7 -7
  138. data/spec/api/subscriptions_api_spec.rb +5 -5
  139. data/spec/api/webhook_endpoints_api_spec.rb +9 -9
  140. data/spec/api/webhook_requests_api_spec.rb +4 -4
  141. data/spec/configuration_spec.rb +3 -3
  142. data/spec/models/access_key_spec.rb +4 -4
  143. data/spec/models/account_attributes_spec.rb +4 -4
  144. data/spec/models/account_create_request_spec.rb +4 -4
  145. data/spec/models/account_response_spec.rb +4 -4
  146. data/spec/models/balance_transaction_response_spec.rb +4 -4
  147. data/spec/models/bank_account_profile_spec.rb +4 -4
  148. data/spec/models/billing_address_spec.rb +4 -4
  149. data/spec/models/card_profile_spec.rb +4 -4
  150. data/spec/models/charge_attributes_spec.rb +4 -4
  151. data/spec/models/charge_response_spec.rb +4 -4
  152. data/spec/models/connected_account_attributes_spec.rb +4 -4
  153. data/spec/models/connected_account_response_spec.rb +4 -4
  154. data/spec/models/create_account_request_account_spec.rb +4 -4
  155. data/spec/models/create_account_request_spec.rb +4 -4
  156. data/spec/models/create_webhook_endpoint_request_spec.rb +4 -4
  157. data/spec/models/create_webhook_endpoint_request_webhook_endpoint_spec.rb +4 -4
  158. data/spec/models/customer_attributes_spec.rb +4 -4
  159. data/spec/models/customer_create_request_spec.rb +4 -4
  160. data/spec/models/customer_spec.rb +4 -4
  161. data/spec/models/customer_update_attributes_spec.rb +4 -4
  162. data/spec/models/customer_update_request_spec.rb +4 -4
  163. data/spec/models/event_spec.rb +4 -4
  164. data/spec/models/list_access_keys_response_spec.rb +4 -4
  165. data/spec/models/list_accounts_response_spec.rb +4 -4
  166. data/spec/models/list_balance_transactions_response_spec.rb +4 -4
  167. data/spec/models/list_charges_response_spec.rb +4 -4
  168. data/spec/models/list_customers_response_spec.rb +4 -4
  169. data/spec/models/list_events_response_spec.rb +4 -4
  170. data/spec/models/list_payment_intents_response_spec.rb +4 -4
  171. data/spec/models/list_payment_methods_response_spec.rb +4 -4
  172. data/spec/models/list_refunds_response_spec.rb +4 -4
  173. data/spec/models/list_webhook_endpoints_response_spec.rb +4 -4
  174. data/spec/models/list_webhook_requests_response_spec.rb +4 -4
  175. data/spec/models/meta_spec.rb +4 -4
  176. data/spec/models/payment_intent_attributes_spec.rb +4 -4
  177. data/spec/models/payment_intent_create_request_spec.rb +4 -4
  178. data/spec/models/payment_intent_response_spec.rb +4 -4
  179. data/spec/models/payment_intent_update_attributes_payment_intent_spec.rb +4 -4
  180. data/spec/models/payment_intent_update_attributes_spec.rb +4 -4
  181. data/spec/models/payment_method_attributes_spec.rb +4 -4
  182. data/spec/models/payment_method_response_spec.rb +4 -4
  183. data/spec/models/refund_attributes_spec.rb +4 -4
  184. data/spec/models/refund_response_spec.rb +4 -4
  185. data/spec/models/roll_access_key_attributes_access_key_spec.rb +4 -4
  186. data/spec/models/roll_access_key_attributes_spec.rb +4 -4
  187. data/spec/models/roll_access_key_request_access_key_spec.rb +4 -4
  188. data/spec/models/roll_access_key_request_spec.rb +4 -4
  189. data/spec/models/subscription_attributes_spec.rb +4 -4
  190. data/spec/models/subscription_create_request_spec.rb +4 -4
  191. data/spec/models/subscription_response_spec.rb +4 -4
  192. data/spec/models/webhook_endpoint_spec.rb +4 -4
  193. data/spec/models/webhook_request_spec.rb +4 -4
  194. data/subfi_pay.gemspec +1 -1
  195. metadata +2 -2
@@ -13,7 +13,7 @@ Generator version: 7.7.0
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module SubFiPay
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 `SubFiPay::AccountResponse` initialize method"
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 `SubFiPay::AccountResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
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 = SubFiPay.const_get(type)
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 SubFiPay
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 `SubFiPay::BalanceTransactionResponse` initialize method"
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 `SubFiPay::BalanceTransactionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
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 = SubFiPay.const_get(type)
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 SubFiPay
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 `SubFiPay::BankAccountProfile` initialize method"
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 `SubFiPay::BankAccountProfile`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
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 = SubFiPay.const_get(type)
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 SubFiPay
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 `SubFiPay::BillingAddress` initialize method"
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 `SubFiPay::BillingAddress`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
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 = SubFiPay.const_get(type)
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 SubFiPay
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 `SubFiPay::CardProfile` initialize method"
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 `SubFiPay::CardProfile`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
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 = SubFiPay.const_get(type)
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 SubFiPay
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 `SubFiPay::ChargeAttributes` initialize method"
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 `SubFiPay::ChargeAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
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 = SubFiPay.const_get(type)
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 SubFiPay
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 `SubFiPay::ChargeResponse` initialize method"
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 `SubFiPay::ChargeResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
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 = SubFiPay.const_get(type)
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 SubFiPay
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 `SubFiPay::ConnectedAccountAttributes` initialize method"
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 `SubFiPay::ConnectedAccountAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
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 = SubFiPay.const_get(type)
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 SubFiPay
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 `SubFiPay::ConnectedAccountResponse` initialize method"
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 `SubFiPay::ConnectedAccountResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
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 = SubFiPay.const_get(type)
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 SubFiPay
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 `SubFiPay::CreateWebhookEndpointRequest` initialize method"
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 `SubFiPay::CreateWebhookEndpointRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
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 = SubFiPay.const_get(type)
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 SubFiPay
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 `SubFiPay::CreateWebhookEndpointRequestWebhookEndpoint` initialize method"
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 `SubFiPay::CreateWebhookEndpointRequestWebhookEndpoint`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
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 = SubFiPay.const_get(type)
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 SubFiPay
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 `SubFiPay::Customer` initialize method"
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 `SubFiPay::Customer`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
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 = SubFiPay.const_get(type)
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 SubFiPay
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 `SubFiPay::CustomerAttributes` initialize method"
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 `SubFiPay::CustomerAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
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 = SubFiPay.const_get(type)
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 SubFiPay
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 `SubFiPay::CustomerCreateRequest` initialize method"
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 `SubFiPay::CustomerCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
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 = SubFiPay.const_get(type)
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 SubFiPay
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 `SubFiPay::CustomerUpdateAttributes` initialize method"
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 `SubFiPay::CustomerUpdateAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
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 = SubFiPay.const_get(type)
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 SubFiPay
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 `SubFiPay::CustomerUpdateRequest` initialize method"
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 `SubFiPay::CustomerUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
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 = SubFiPay.const_get(type)
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 SubFiPay
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 `SubFiPay::Event` initialize method"
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 `SubFiPay::Event`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
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 = SubFiPay.const_get(type)
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 SubFiPay
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 `SubFiPay::ListAccessKeysResponse` initialize method"
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 `SubFiPay::ListAccessKeysResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
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 = SubFiPay.const_get(type)
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 SubFiPay
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 `SubFiPay::ListAccountsResponse` initialize method"
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 `SubFiPay::ListAccountsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
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 = SubFiPay.const_get(type)
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