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 ListBalanceTransactionsResponse
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::ListBalanceTransactionsResponse` initialize method"
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::ListBalanceTransactionsResponse` 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::ListBalanceTransactionsResponse`. 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::ListBalanceTransactionsResponse`. 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 ListChargesResponse
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::ListChargesResponse` initialize method"
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::ListChargesResponse` 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::ListChargesResponse`. 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::ListChargesResponse`. 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 ListCustomersResponse
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::ListCustomersResponse` initialize method"
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::ListCustomersResponse` 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::ListCustomersResponse`. 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::ListCustomersResponse`. 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 ListEventsResponse
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::ListEventsResponse` initialize method"
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::ListEventsResponse` 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::ListEventsResponse`. 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::ListEventsResponse`. 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 ListPaymentIntentsResponse
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::ListPaymentIntentsResponse` initialize method"
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::ListPaymentIntentsResponse` 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::ListPaymentIntentsResponse`. 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::ListPaymentIntentsResponse`. 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 ListPaymentMethodsResponse
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::ListPaymentMethodsResponse` initialize method"
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::ListPaymentMethodsResponse` 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::ListPaymentMethodsResponse`. 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::ListPaymentMethodsResponse`. 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 ListRefundsResponse
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::ListRefundsResponse` initialize method"
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::ListRefundsResponse` 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::ListRefundsResponse`. 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::ListRefundsResponse`. 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 ListWebhookEndpointsResponse
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::ListWebhookEndpointsResponse` initialize method"
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::ListWebhookEndpointsResponse` 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::ListWebhookEndpointsResponse`. 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::ListWebhookEndpointsResponse`. 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 ListWebhookRequestsResponse
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::ListWebhookRequestsResponse` initialize method"
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::ListWebhookRequestsResponse` 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::ListWebhookRequestsResponse`. 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::ListWebhookRequestsResponse`. 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 Meta
18
18
  attr_accessor :current_page
19
19
 
@@ -68,13 +68,13 @@ module SubFiPay
68
68
  # @param [Hash] attributes Model attributes in the form of hash
69
69
  def initialize(attributes = {})
70
70
  if (!attributes.is_a?(Hash))
71
- fail ArgumentError, "The input argument (attributes) must be a hash in `SubFiPay::Meta` initialize method"
71
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::Meta` initialize method"
72
72
  end
73
73
 
74
74
  # check to see if the attribute exists and convert string to symbol for hash key
75
75
  attributes = attributes.each_with_object({}) { |(k, v), h|
76
76
  if (!self.class.attribute_map.key?(k.to_sym))
77
- fail ArgumentError, "`#{k}` is not a valid attribute in `SubFiPay::Meta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
77
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SubfiPay::Meta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
78
78
  end
79
79
  h[k.to_sym] = v
80
80
  }
@@ -205,7 +205,7 @@ module SubFiPay
205
205
  end
206
206
  else # model
207
207
  # models (e.g. Pet) or oneOf
208
- klass = SubFiPay.const_get(type)
208
+ klass = SubfiPay.const_get(type)
209
209
  klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
210
210
  end
211
211
  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 PaymentIntentAttributes
18
18
  attr_accessor :amount
19
19
 
@@ -64,13 +64,13 @@ module SubFiPay
64
64
  # @param [Hash] attributes Model attributes in the form of hash
65
65
  def initialize(attributes = {})
66
66
  if (!attributes.is_a?(Hash))
67
- fail ArgumentError, "The input argument (attributes) must be a hash in `SubFiPay::PaymentIntentAttributes` initialize method"
67
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::PaymentIntentAttributes` initialize method"
68
68
  end
69
69
 
70
70
  # check to see if the attribute exists and convert string to symbol for hash key
71
71
  attributes = attributes.each_with_object({}) { |(k, v), h|
72
72
  if (!self.class.attribute_map.key?(k.to_sym))
73
- fail ArgumentError, "`#{k}` is not a valid attribute in `SubFiPay::PaymentIntentAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
73
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SubfiPay::PaymentIntentAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
74
74
  end
75
75
  h[k.to_sym] = v
76
76
  }
@@ -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 PaymentIntentCreateRequest
18
18
  attr_accessor :payment_intent
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::PaymentIntentCreateRequest` initialize method"
49
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::PaymentIntentCreateRequest` 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::PaymentIntentCreateRequest`. 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::PaymentIntentCreateRequest`. 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 PaymentIntentResponse
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::PaymentIntentResponse` initialize method"
73
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::PaymentIntentResponse` 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::PaymentIntentResponse`. 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::PaymentIntentResponse`. 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
  }
@@ -214,7 +214,7 @@ module SubFiPay
214
214
  end
215
215
  else # model
216
216
  # models (e.g. Pet) or oneOf
217
- klass = SubFiPay.const_get(type)
217
+ klass = SubfiPay.const_get(type)
218
218
  klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
219
219
  end
220
220
  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 PaymentIntentUpdateAttributes
18
18
  attr_accessor :payment_intent
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::PaymentIntentUpdateAttributes` initialize method"
49
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::PaymentIntentUpdateAttributes` 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::PaymentIntentUpdateAttributes`. 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::PaymentIntentUpdateAttributes`. 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 PaymentIntentUpdateAttributesPaymentIntent
18
18
  attr_accessor :payment_intent_ids
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::PaymentIntentUpdateAttributesPaymentIntent` initialize method"
49
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::PaymentIntentUpdateAttributesPaymentIntent` 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::PaymentIntentUpdateAttributesPaymentIntent`. 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::PaymentIntentUpdateAttributesPaymentIntent`. 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
  }
@@ -160,7 +160,7 @@ module SubFiPay
160
160
  end
161
161
  else # model
162
162
  # models (e.g. Pet) or oneOf
163
- klass = SubFiPay.const_get(type)
163
+ klass = SubfiPay.const_get(type)
164
164
  klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
165
165
  end
166
166
  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 PaymentMethodAttributes
18
18
  attr_accessor :type
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::PaymentMethodAttributes` initialize method"
61
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::PaymentMethodAttributes` 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::PaymentMethodAttributes`. 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::PaymentMethodAttributes`. 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
  }
@@ -192,7 +192,7 @@ module SubFiPay
192
192
  end
193
193
  else # model
194
194
  # models (e.g. Pet) or oneOf
195
- klass = SubFiPay.const_get(type)
195
+ klass = SubfiPay.const_get(type)
196
196
  klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
197
197
  end
198
198
  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 PaymentMethodResponse
18
18
  attr_accessor :id
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::PaymentMethodResponse` initialize method"
86
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::PaymentMethodResponse` 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::PaymentMethodResponse`. 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::PaymentMethodResponse`. 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
  }
@@ -242,7 +242,7 @@ module SubFiPay
242
242
  end
243
243
  else # model
244
244
  # models (e.g. Pet) or oneOf
245
- klass = SubFiPay.const_get(type)
245
+ klass = SubfiPay.const_get(type)
246
246
  klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
247
247
  end
248
248
  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 RefundAttributes
18
18
  attr_accessor :amount
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::RefundAttributes` initialize method"
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::RefundAttributes` 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::RefundAttributes`. 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::RefundAttributes`. 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
  }
@@ -174,7 +174,7 @@ module SubFiPay
174
174
  end
175
175
  else # model
176
176
  # models (e.g. Pet) or oneOf
177
- klass = SubFiPay.const_get(type)
177
+ klass = SubfiPay.const_get(type)
178
178
  klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
179
179
  end
180
180
  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 RefundResponse
18
18
  attr_accessor :id
19
19
 
@@ -72,13 +72,13 @@ module SubFiPay
72
72
  # @param [Hash] attributes Model attributes in the form of hash
73
73
  def initialize(attributes = {})
74
74
  if (!attributes.is_a?(Hash))
75
- fail ArgumentError, "The input argument (attributes) must be a hash in `SubFiPay::RefundResponse` initialize method"
75
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::RefundResponse` initialize method"
76
76
  end
77
77
 
78
78
  # check to see if the attribute exists and convert string to symbol for hash key
79
79
  attributes = attributes.each_with_object({}) { |(k, v), h|
80
80
  if (!self.class.attribute_map.key?(k.to_sym))
81
- fail ArgumentError, "`#{k}` is not a valid attribute in `SubFiPay::RefundResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
81
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SubfiPay::RefundResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
82
82
  end
83
83
  h[k.to_sym] = v
84
84
  }
@@ -214,7 +214,7 @@ module SubFiPay
214
214
  end
215
215
  else # model
216
216
  # models (e.g. Pet) or oneOf
217
- klass = SubFiPay.const_get(type)
217
+ klass = SubfiPay.const_get(type)
218
218
  klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
219
219
  end
220
220
  end