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 RollAccessKeyAttributes
18
18
  attr_accessor :access_key
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::RollAccessKeyAttributes` initialize method"
49
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::RollAccessKeyAttributes` 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::RollAccessKeyAttributes`. 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::RollAccessKeyAttributes`. 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 RollAccessKeyAttributesAccessKey
18
18
  attr_accessor :expires_at
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::RollAccessKeyAttributesAccessKey` initialize method"
49
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::RollAccessKeyAttributesAccessKey` 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::RollAccessKeyAttributesAccessKey`. 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::RollAccessKeyAttributesAccessKey`. 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
  }
@@ -165,7 +165,7 @@ module SubFiPay
165
165
  end
166
166
  else # model
167
167
  # models (e.g. Pet) or oneOf
168
- klass = SubFiPay.const_get(type)
168
+ klass = SubfiPay.const_get(type)
169
169
  klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
170
170
  end
171
171
  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 SubscriptionAttributes
18
18
  attr_accessor :connected_account_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::SubscriptionAttributes` initialize method"
73
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::SubscriptionAttributes` 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::SubscriptionAttributes`. 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::SubscriptionAttributes`. 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 SubscriptionCreateRequest
18
18
  attr_accessor :subscription
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::SubscriptionCreateRequest` initialize method"
49
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::SubscriptionCreateRequest` 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::SubscriptionCreateRequest`. 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::SubscriptionCreateRequest`. 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 SubscriptionResponse
18
18
  attr_accessor :connected_account_id
19
19
 
@@ -82,13 +82,13 @@ module SubFiPay
82
82
  # @param [Hash] attributes Model attributes in the form of hash
83
83
  def initialize(attributes = {})
84
84
  if (!attributes.is_a?(Hash))
85
- fail ArgumentError, "The input argument (attributes) must be a hash in `SubFiPay::SubscriptionResponse` initialize method"
85
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::SubscriptionResponse` initialize method"
86
86
  end
87
87
 
88
88
  # check to see if the attribute exists and convert string to symbol for hash key
89
89
  attributes = attributes.each_with_object({}) { |(k, v), h|
90
90
  if (!self.class.attribute_map.key?(k.to_sym))
91
- fail ArgumentError, "`#{k}` is not a valid attribute in `SubFiPay::SubscriptionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
91
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SubfiPay::SubscriptionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
92
92
  end
93
93
  h[k.to_sym] = v
94
94
  }
@@ -239,7 +239,7 @@ module SubFiPay
239
239
  end
240
240
  else # model
241
241
  # models (e.g. Pet) or oneOf
242
- klass = SubFiPay.const_get(type)
242
+ klass = SubfiPay.const_get(type)
243
243
  klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
244
244
  end
245
245
  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 WebhookEndpoint
18
18
  attr_accessor :id
19
19
 
@@ -78,13 +78,13 @@ module SubFiPay
78
78
  # @param [Hash] attributes Model attributes in the form of hash
79
79
  def initialize(attributes = {})
80
80
  if (!attributes.is_a?(Hash))
81
- fail ArgumentError, "The input argument (attributes) must be a hash in `SubFiPay::WebhookEndpoint` initialize method"
81
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::WebhookEndpoint` initialize method"
82
82
  end
83
83
 
84
84
  # check to see if the attribute exists and convert string to symbol for hash key
85
85
  attributes = attributes.each_with_object({}) { |(k, v), h|
86
86
  if (!self.class.attribute_map.key?(k.to_sym))
87
- fail ArgumentError, "`#{k}` is not a valid attribute in `SubFiPay::WebhookEndpoint`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
87
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SubfiPay::WebhookEndpoint`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
88
88
  end
89
89
  h[k.to_sym] = v
90
90
  }
@@ -230,7 +230,7 @@ module SubFiPay
230
230
  end
231
231
  else # model
232
232
  # models (e.g. Pet) or oneOf
233
- klass = SubFiPay.const_get(type)
233
+ klass = SubfiPay.const_get(type)
234
234
  klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
235
235
  end
236
236
  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 WebhookRequest
18
18
  attr_accessor :id
19
19
 
@@ -86,13 +86,13 @@ module SubFiPay
86
86
  # @param [Hash] attributes Model attributes in the form of hash
87
87
  def initialize(attributes = {})
88
88
  if (!attributes.is_a?(Hash))
89
- fail ArgumentError, "The input argument (attributes) must be a hash in `SubFiPay::WebhookRequest` initialize method"
89
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::WebhookRequest` initialize method"
90
90
  end
91
91
 
92
92
  # check to see if the attribute exists and convert string to symbol for hash key
93
93
  attributes = attributes.each_with_object({}) { |(k, v), h|
94
94
  if (!self.class.attribute_map.key?(k.to_sym))
95
- fail ArgumentError, "`#{k}` is not a valid attribute in `SubFiPay::WebhookRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
95
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SubfiPay::WebhookRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
96
96
  end
97
97
  h[k.to_sym] = v
98
98
  }
@@ -248,7 +248,7 @@ module SubFiPay
248
248
  end
249
249
  else # model
250
250
  # models (e.g. Pet) or oneOf
251
- klass = SubFiPay.const_get(type)
251
+ klass = SubfiPay.const_get(type)
252
252
  klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
253
253
  end
254
254
  end
@@ -10,6 +10,6 @@ Generator version: 7.7.0
10
10
 
11
11
  =end
12
12
 
13
- module SubFiPay
14
- VERSION = '0.1.0'
13
+ module SubfiPay
14
+ VERSION = '0.1.1'
15
15
  end
data/lib/subfi_pay.rb CHANGED
@@ -80,10 +80,10 @@ require 'subfi_pay/api/subscriptions_api'
80
80
  require 'subfi_pay/api/webhook_endpoints_api'
81
81
  require 'subfi_pay/api/webhook_requests_api'
82
82
 
83
- module SubFiPay
83
+ module SubfiPay
84
84
  class << self
85
85
  # Customize default settings for the SDK using block.
86
- # SubFiPay.configure do |config|
86
+ # SubfiPay.configure do |config|
87
87
  # config.username = "xxx"
88
88
  # config.password = "xxx"
89
89
  # end
@@ -13,11 +13,11 @@ Generator version: 7.7.0
13
13
  require 'spec_helper'
14
14
  require 'json'
15
15
 
16
- # Unit tests for SubFiPay::AccessKeysApi
16
+ # Unit tests for SubfiPay::AccessKeysApi
17
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
18
  # Please update as you see appropriate
19
- describe 'SubFiPay::AccessKeysApi' do
20
- let(:api_instance) { SubFiPay::AccessKeysApi.new }
19
+ describe 'SubfiPay::AccessKeysApi' do
20
+ let(:api_instance) { SubfiPay::AccessKeysApi.new }
21
21
  let(:api_key) { Faker::Alphanumeric.alphanumeric(number: 32) }
22
22
  let(:api_version) { "0.1.0" }
23
23
  let(:account_id) { Faker::Alphanumeric.alphanumeric(number: 32) }
@@ -46,7 +46,7 @@ describe 'SubFiPay::AccessKeysApi' do
46
46
 
47
47
  describe 'test an instance of AccessKeysApi' do
48
48
  it 'should create an instance of AccessKeysApi' do
49
- expect(api_instance).to be_instance_of(SubFiPay::AccessKeysApi)
49
+ expect(api_instance).to be_instance_of(SubfiPay::AccessKeysApi)
50
50
  end
51
51
  end
52
52
 
@@ -97,7 +97,7 @@ describe 'SubFiPay::AccessKeysApi' do
97
97
  it 'should work' do
98
98
  res = api_instance.list_access_keys(api_version)
99
99
 
100
- expect(res).to be_instance_of(SubFiPay::ListAccessKeysResponse)
100
+ expect(res).to be_instance_of(SubfiPay::ListAccessKeysResponse)
101
101
  end
102
102
  end
103
103
 
@@ -131,7 +131,7 @@ describe 'SubFiPay::AccessKeysApi' do
131
131
  it 'should work' do
132
132
  res = api_instance.roll_access_key(api_version, access_key_id, body)
133
133
 
134
- expect(res).to be_instance_of(SubFiPay::AccessKey)
134
+ expect(res).to be_instance_of(SubfiPay::AccessKey)
135
135
  end
136
136
  end
137
137
 
@@ -13,11 +13,11 @@ Generator version: 7.7.0
13
13
  require 'spec_helper'
14
14
  require 'json'
15
15
 
16
- # Unit tests for SubFiPay::AccountsApi
16
+ # Unit tests for SubfiPay::AccountsApi
17
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
18
  # Please update as you see appropriate
19
19
  describe 'AccountsApi' do
20
- let(:api_instance) { SubFiPay::AccountsApi.new }
20
+ let(:api_instance) { SubfiPay::AccountsApi.new }
21
21
  let(:api_key) { Faker::Alphanumeric.alphanumeric(number: 32) }
22
22
  let(:api_version) { "0.1.0" }
23
23
  let(:account_id) { Faker::Alphanumeric.alphanumeric(number: 32) }
@@ -46,7 +46,7 @@ describe 'AccountsApi' do
46
46
 
47
47
  describe 'test an instance of AccountsApi' do
48
48
  it 'should create an instance of AccountsApi' do
49
- expect(api_instance).to be_instance_of(SubFiPay::AccountsApi)
49
+ expect(api_instance).to be_instance_of(SubfiPay::AccountsApi)
50
50
  end
51
51
  end
52
52
 
@@ -80,7 +80,7 @@ describe 'AccountsApi' do
80
80
  it 'should work' do
81
81
  res = api_instance.create_account(api_version, body)
82
82
 
83
- expect(res).to be_instance_of(SubFiPay::AccountResponse)
83
+ expect(res).to be_instance_of(SubfiPay::AccountResponse)
84
84
  end
85
85
  end
86
86
 
@@ -107,7 +107,7 @@ describe 'AccountsApi' do
107
107
  it 'should work' do
108
108
  res = api_instance.get_account(api_version, account_id)
109
109
 
110
- expect(res).to be_instance_of(SubFiPay::AccountResponse)
110
+ expect(res).to be_instance_of(SubfiPay::AccountResponse)
111
111
  end
112
112
  end
113
113
 
@@ -139,7 +139,7 @@ describe 'AccountsApi' do
139
139
  it 'should work' do
140
140
  res = api_instance.list_accounts(api_version, page: page, per_page: per_page)
141
141
 
142
- expect(res).to be_instance_of(SubFiPay::ListAccountsResponse)
142
+ expect(res).to be_instance_of(SubfiPay::ListAccountsResponse)
143
143
  end
144
144
  end
145
145
  end
@@ -2,7 +2,7 @@ require 'spec_helper'
2
2
  require 'json'
3
3
 
4
4
  describe 'BalanceTransactionsApi' do
5
- let(:api_instance) { SubFiPay::BalanceTransactionsApi.new }
5
+ let(:api_instance) { SubfiPay::BalanceTransactionsApi.new }
6
6
  let(:api_key) { Faker::Alphanumeric.alphanumeric(number: 32) }
7
7
  let(:api_version) { "0.1.0" }
8
8
  let(:account_id) { Faker::Number.number(digits: 10) }
@@ -32,7 +32,7 @@ describe 'BalanceTransactionsApi' do
32
32
 
33
33
  describe 'test an instance of BalanceTransactionsApi' do
34
34
  it 'should create an instance of BalanceTransactionsApi' do
35
- expect(api_instance).to be_instance_of(SubFiPay::BalanceTransactionsApi)
35
+ expect(api_instance).to be_instance_of(SubfiPay::BalanceTransactionsApi)
36
36
  end
37
37
  end
38
38
 
@@ -58,7 +58,7 @@ describe 'BalanceTransactionsApi' do
58
58
  res = api_instance.list_balance_transactions(api_version, account_id)
59
59
 
60
60
  expect(res.data).to be_a(Array)
61
- expect(res.data.first).to be_a(SubFiPay::BalanceTransactionResponse)
61
+ expect(res.data.first).to be_a(SubfiPay::BalanceTransactionResponse)
62
62
  expect(a_request(:get, url).with(headers: request_headers)).to have_been_made.once
63
63
  end
64
64
  end
@@ -78,7 +78,7 @@ describe 'BalanceTransactionsApi' do
78
78
  res = api_instance.list_balance_transactions(api_version, account_id, page: 1, per_page: 2)
79
79
 
80
80
  expect(res.data).to be_a(Array)
81
- expect(res.data.first).to be_a(SubFiPay::BalanceTransactionResponse)
81
+ expect(res.data.first).to be_a(SubfiPay::BalanceTransactionResponse)
82
82
  expect(a_request(:get, [url, "?page=1&per_page=2"].join).with(headers: request_headers)).to have_been_made.once
83
83
  end
84
84
  end
@@ -2,7 +2,7 @@ require 'spec_helper'
2
2
  require 'json'
3
3
 
4
4
  describe 'ChargesApi' do
5
- let(:api_instance) { SubFiPay::ChargesApi.new }
5
+ let(:api_instance) { SubfiPay::ChargesApi.new }
6
6
  let(:api_key) { Faker::Alphanumeric.alphanumeric(number: 32) }
7
7
  let(:api_version) { "0.1.0" }
8
8
  let(:account_id) { Faker::Alphanumeric.alphanumeric(number: 32) }
@@ -32,7 +32,7 @@ describe 'ChargesApi' do
32
32
 
33
33
  describe 'test an instance of ChargesApi' do
34
34
  it 'should create an instance of ChargesApi' do
35
- expect(api_instance).to be_instance_of(SubFiPay::ChargesApi)
35
+ expect(api_instance).to be_instance_of(SubfiPay::ChargesApi)
36
36
  end
37
37
  end
38
38
 
@@ -58,7 +58,7 @@ describe 'ChargesApi' do
58
58
  res = api_instance.list_charges(api_version, account_id)
59
59
 
60
60
  expect(res.data).to be_a(Array)
61
- expect(res.data.first).to be_a(SubFiPay::ChargeResponse)
61
+ expect(res.data.first).to be_a(SubfiPay::ChargeResponse)
62
62
  expect(a_request(:get, [config.host, path].join).with(headers: request_headers)).to have_been_made.once
63
63
 
64
64
  expect(res.data.first.amount).to be_truthy
@@ -82,7 +82,7 @@ describe 'ChargesApi' do
82
82
  res = api_instance.list_charges(api_version, account_id, page: 1, per_page: 2)
83
83
 
84
84
  expect(res.data).to be_a(Array)
85
- expect(res.data.first).to be_a(SubFiPay::ChargeResponse)
85
+ expect(res.data.first).to be_a(SubfiPay::ChargeResponse)
86
86
  expect(a_request(:get, [config.host, path, "?page=1&per_page=2"].join).with(headers: request_headers)).to have_been_made.once
87
87
 
88
88
  expect(res.data.first.amount).to be_truthy
@@ -115,7 +115,7 @@ describe 'ChargesApi' do
115
115
  it 'should work' do
116
116
  res = api_instance.get_charge(api_version, account_id, charge_id)
117
117
 
118
- expect(res).to be_a(SubFiPay::ChargeResponse)
118
+ expect(res).to be_a(SubfiPay::ChargeResponse)
119
119
  end
120
120
  end
121
121
  end
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #SubFi Pay API
2
+ #Subfi Pay API
3
3
 
4
- #API for SubFi Pay services
4
+ #API for Subfi Pay services
5
5
 
6
6
  The version of the OpenAPI document: 0.1.0
7
7
 
@@ -13,13 +13,13 @@ Generator version: 7.7.0
13
13
  require 'spec_helper'
14
14
  require 'json'
15
15
 
16
- # Unit tests for SubFiPay::CustomersApi
16
+ # Unit tests for SubfiPay::CustomersApi
17
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
18
  # Please update as you see appropriate
19
19
  describe 'CustomersApi' do
20
- let(:api_instance) { SubFiPay::CustomersApi.new }
20
+ let(:api_instance) { SubfiPay::CustomersApi.new }
21
21
  let(:api_key) { Faker::Alphanumeric.alphanumeric(number: 32) }
22
- let(:api_version) { "0.1.0" }
22
+ let(:api_version) { SubfiPay::VERSION }
23
23
  let(:account_id) { Faker::Alphanumeric.alphanumeric(number: 32) }
24
24
  let(:config) do
25
25
  api_instance.api_client.config.tap do |c|
@@ -32,7 +32,7 @@ describe 'CustomersApi' do
32
32
  let(:request_headers) do
33
33
  {
34
34
  "Content-Type" => "application/json",
35
- 'X-Api-Version' => SubFiPay::VERSION,
35
+ 'X-Api-Version' => api_version,
36
36
  'X-Api-Key' => api_key,
37
37
  'Expect' => '',
38
38
  }
@@ -46,7 +46,7 @@ describe 'CustomersApi' do
46
46
 
47
47
  describe 'test an instance of CustomersApi' do
48
48
  it 'should create an instance of CustomersApi' do
49
- expect(api_instance).to be_instance_of(SubFiPay::CustomersApi)
49
+ expect(api_instance).to be_instance_of(SubfiPay::CustomersApi)
50
50
  end
51
51
  end
52
52
 
@@ -78,7 +78,7 @@ describe 'CustomersApi' do
78
78
 
79
79
  it 'should work' do
80
80
  res = api_instance.create_customer(api_version, body)
81
- expect(res).to be_instance_of(SubFiPay::Customer)
81
+ expect(res).to be_instance_of(SubfiPay::Customer)
82
82
  end
83
83
  end
84
84
 
@@ -103,7 +103,7 @@ describe 'CustomersApi' do
103
103
 
104
104
  it 'should work' do
105
105
  res = api_instance.get_customer(api_version, account_id, customer_id)
106
- expect(res).to be_instance_of(SubFiPay::Customer)
106
+ expect(res).to be_instance_of(SubfiPay::Customer)
107
107
  end
108
108
  end
109
109
 
@@ -127,7 +127,7 @@ describe 'CustomersApi' do
127
127
 
128
128
  it 'should work' do
129
129
  res = api_instance.list_customers(api_version, account_id)
130
- expect(res).to be_instance_of(SubFiPay::ListCustomersResponse)
130
+ expect(res).to be_instance_of(SubfiPay::ListCustomersResponse)
131
131
  end
132
132
  end
133
133
 
@@ -13,11 +13,11 @@ Generator version: 7.7.0
13
13
  require 'spec_helper'
14
14
  require 'json'
15
15
 
16
- # Unit tests for SubFiPay::EventsApi
16
+ # Unit tests for SubfiPay::EventsApi
17
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
18
  # Please update as you see appropriate
19
19
  describe 'EventsApi' do
20
- let(:api_instance) { SubFiPay::EventsApi.new }
20
+ let(:api_instance) { SubfiPay::EventsApi.new }
21
21
  let(:api_key) { Faker::Alphanumeric.alphanumeric(number: 32) }
22
22
  let(:api_version) { "0.1.0" }
23
23
  let(:account_id) { Faker::Alphanumeric.alphanumeric(number: 32) }
@@ -32,8 +32,9 @@ describe 'EventsApi' do
32
32
  let(:request_headers) do
33
33
  {
34
34
  "Content-Type" => "application/json",
35
- 'X-Api-Version' => SubFiPay::VERSION,
35
+ 'X-Api-Version' => "0.1.0",
36
36
  'X-Api-Key' => api_key,
37
+ 'X-Account-Id' => account_id,
37
38
  'Expect' => '',
38
39
  }
39
40
  end
@@ -46,7 +47,7 @@ describe 'EventsApi' do
46
47
 
47
48
  describe 'test an instance of EventsApi' do
48
49
  it 'should create an instance of EventsApi' do
49
- expect(api_instance).to be_instance_of(SubFiPay::EventsApi)
50
+ expect(api_instance).to be_instance_of(SubfiPay::EventsApi)
50
51
  end
51
52
  end
52
53
 
@@ -72,7 +73,7 @@ describe 'EventsApi' do
72
73
 
73
74
  it 'should work' do
74
75
  res = api_instance.get_event(api_version, account_id, event_id)
75
- expect(res).to be_instance_of(SubFiPay::Event)
76
+ expect(res).to be_instance_of(SubfiPay::Event)
76
77
  end
77
78
  end
78
79
 
@@ -98,7 +99,7 @@ describe 'EventsApi' do
98
99
 
99
100
  it 'should work' do
100
101
  res = api_instance.list_events(api_version, account_id)
101
- expect(res).to be_instance_of(SubFiPay::ListEventsResponse)
102
+ expect(res).to be_instance_of(SubfiPay::ListEventsResponse)
102
103
  end
103
104
  end
104
105
 
@@ -13,11 +13,11 @@ Generator version: 7.7.0
13
13
  require 'spec_helper'
14
14
  require 'json'
15
15
 
16
- # Unit tests for SubFiPay::PaymentIntentsApi
16
+ # Unit tests for SubfiPay::PaymentIntentsApi
17
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
18
  # Please update as you see appropriate
19
19
  describe 'PaymentIntentsApi' do
20
- let(:api_instance) { SubFiPay::PaymentIntentsApi.new }
20
+ let(:api_instance) { SubfiPay::PaymentIntentsApi.new }
21
21
  let(:api_key) { Faker::Alphanumeric.alphanumeric(number: 32) }
22
22
  let(:api_version) { "0.1.0" }
23
23
  let(:account_id) { Faker::Alphanumeric.alphanumeric(number: 32) }
@@ -46,7 +46,7 @@ describe 'PaymentIntentsApi' do
46
46
 
47
47
  describe 'test an instance of PaymentIntentsApi' do
48
48
  it 'should create an instance of PaymentIntentsApi' do
49
- expect(api_instance).to be_instance_of(SubFiPay::PaymentIntentsApi)
49
+ expect(api_instance).to be_instance_of(SubfiPay::PaymentIntentsApi)
50
50
  end
51
51
  end
52
52
 
@@ -72,7 +72,7 @@ describe 'PaymentIntentsApi' do
72
72
  it 'should work' do
73
73
  res = api_instance.confirm_payment_intent(api_version, account_id, payment_intent_id)
74
74
 
75
- expect(res).to be_instance_of(SubFiPay::PaymentIntentResponse)
75
+ expect(res).to be_instance_of(SubfiPay::PaymentIntentResponse)
76
76
  end
77
77
  end
78
78
 
@@ -98,7 +98,7 @@ describe 'PaymentIntentsApi' do
98
98
  it 'should work' do
99
99
  res = api_instance.capture_payment_intent(api_version, account_id, payment_intent_id)
100
100
 
101
- expect(res).to be_instance_of(SubFiPay::PaymentIntentResponse)
101
+ expect(res).to be_instance_of(SubfiPay::PaymentIntentResponse)
102
102
  end
103
103
  end
104
104
 
@@ -124,7 +124,7 @@ describe 'PaymentIntentsApi' do
124
124
  it 'should work' do
125
125
  res = api_instance.cancel_payment_intent(api_version, account_id, payment_intent_id)
126
126
 
127
- expect(res).to be_instance_of(SubFiPay::PaymentIntentResponse)
127
+ expect(res).to be_instance_of(SubfiPay::PaymentIntentResponse)
128
128
  end
129
129
  end
130
130
 
@@ -157,7 +157,7 @@ describe 'PaymentIntentsApi' do
157
157
  it 'should work' do
158
158
  res = api_instance.create_payment_intent(api_version, account_id, body)
159
159
 
160
- expect(res).to be_instance_of(SubFiPay::PaymentIntentResponse)
160
+ expect(res).to be_instance_of(SubfiPay::PaymentIntentResponse)
161
161
  end
162
162
  end
163
163
 
@@ -183,7 +183,7 @@ describe 'PaymentIntentsApi' do
183
183
  it 'should work' do
184
184
  res = api_instance.get_payment_intent(api_version, account_id, payment_intent_id)
185
185
 
186
- expect(res).to be_instance_of(SubFiPay::PaymentIntentResponse)
186
+ expect(res).to be_instance_of(SubfiPay::PaymentIntentResponse)
187
187
  end
188
188
  end
189
189
 
@@ -209,7 +209,7 @@ describe 'PaymentIntentsApi' do
209
209
  it 'should work' do
210
210
  res = api_instance.list_payment_intents(api_version, account_id)
211
211
 
212
- expect(res).to be_instance_of(SubFiPay::ListPaymentIntentsResponse)
212
+ expect(res).to be_instance_of(SubfiPay::ListPaymentIntentsResponse)
213
213
  end
214
214
  end
215
215
 
@@ -244,7 +244,7 @@ describe 'PaymentIntentsApi' do
244
244
  it 'should work' do
245
245
  res = api_instance.update_payment_intent(api_version, account_id, payment_intent_id, body)
246
246
 
247
- expect(res).to be_instance_of(SubFiPay::PaymentIntentResponse)
247
+ expect(res).to be_instance_of(SubfiPay::PaymentIntentResponse)
248
248
  end
249
249
  end
250
250
  end