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
@@ -1,4 +1,4 @@
1
- # SubFiPay::RollAccessKeyAttributesAccessKey
1
+ # SubfiPay::RollAccessKeyAttributesAccessKey
2
2
 
3
3
  ## Properties
4
4
 
@@ -11,7 +11,7 @@
11
11
  ```ruby
12
12
  require 'subfi_pay'
13
13
 
14
- instance = SubFiPay::RollAccessKeyAttributesAccessKey.new(
14
+ instance = SubfiPay::RollAccessKeyAttributesAccessKey.new(
15
15
  expires_at: null
16
16
  )
17
17
  ```
@@ -1,4 +1,4 @@
1
- # SubFiPay::SubscriptionAttributes
1
+ # SubfiPay::SubscriptionAttributes
2
2
 
3
3
  ## Properties
4
4
 
@@ -17,7 +17,7 @@
17
17
  ```ruby
18
18
  require 'subfi_pay'
19
19
 
20
- instance = SubFiPay::SubscriptionAttributes.new(
20
+ instance = SubfiPay::SubscriptionAttributes.new(
21
21
  connected_account_id: null,
22
22
  customer_id: null,
23
23
  payment_method_id: null,
@@ -1,4 +1,4 @@
1
- # SubFiPay::SubscriptionCreateRequest
1
+ # SubfiPay::SubscriptionCreateRequest
2
2
 
3
3
  ## Properties
4
4
 
@@ -11,7 +11,7 @@
11
11
  ```ruby
12
12
  require 'subfi_pay'
13
13
 
14
- instance = SubFiPay::SubscriptionCreateRequest.new(
14
+ instance = SubfiPay::SubscriptionCreateRequest.new(
15
15
  subscription: null
16
16
  )
17
17
  ```
@@ -1,4 +1,4 @@
1
- # SubFiPay::SubscriptionResponse
1
+ # SubfiPay::SubscriptionResponse
2
2
 
3
3
  ## Properties
4
4
 
@@ -20,7 +20,7 @@
20
20
  ```ruby
21
21
  require 'subfi_pay'
22
22
 
23
- instance = SubFiPay::SubscriptionResponse.new(
23
+ instance = SubfiPay::SubscriptionResponse.new(
24
24
  connected_account_id: null,
25
25
  customer_id: null,
26
26
  payment_method_id: null,
@@ -1,4 +1,4 @@
1
- # SubFiPay::SubscriptionsApi
1
+ # SubfiPay::SubscriptionsApi
2
2
 
3
3
  All URIs are relative to *https://pay-sandbox.subfi.com*
4
4
 
@@ -20,23 +20,23 @@ Create a new subscription
20
20
  require 'time'
21
21
  require 'subfi_pay'
22
22
  # setup authorization
23
- SubFiPay.configure do |config|
23
+ SubfiPay.configure do |config|
24
24
  # Configure API key authorization: ApiKeyAuth
25
25
  config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
26
26
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
27
27
  # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
28
28
  end
29
29
 
30
- api_instance = SubFiPay::SubscriptionsApi.new
30
+ api_instance = SubfiPay::SubscriptionsApi.new
31
31
  x_api_version = 'x_api_version_example' # String |
32
32
  x_account_id = 'x_account_id_example' # String |
33
- subscription_create_request = SubFiPay::SubscriptionCreateRequest.new # SubscriptionCreateRequest |
33
+ subscription_create_request = SubfiPay::SubscriptionCreateRequest.new # SubscriptionCreateRequest |
34
34
 
35
35
  begin
36
36
  # Create a new subscription
37
37
  result = api_instance.create_subscription(x_api_version, x_account_id, subscription_create_request)
38
38
  p result
39
- rescue SubFiPay::ApiError => e
39
+ rescue SubfiPay::ApiError => e
40
40
  puts "Error when calling SubscriptionsApi->create_subscription: #{e}"
41
41
  end
42
42
  ```
@@ -54,7 +54,7 @@ begin
54
54
  p status_code # => 2xx
55
55
  p headers # => { ... }
56
56
  p data # => <SubscriptionResponse>
57
- rescue SubFiPay::ApiError => e
57
+ rescue SubfiPay::ApiError => e
58
58
  puts "Error when calling SubscriptionsApi->create_subscription_with_http_info: #{e}"
59
59
  end
60
60
  ```
@@ -93,14 +93,14 @@ Retrieve a subscription by ID
93
93
  require 'time'
94
94
  require 'subfi_pay'
95
95
  # setup authorization
96
- SubFiPay.configure do |config|
96
+ SubfiPay.configure do |config|
97
97
  # Configure API key authorization: ApiKeyAuth
98
98
  config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
99
99
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
100
100
  # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
101
101
  end
102
102
 
103
- api_instance = SubFiPay::SubscriptionsApi.new
103
+ api_instance = SubfiPay::SubscriptionsApi.new
104
104
  x_api_version = 'x_api_version_example' # String |
105
105
  x_account_id = 'x_account_id_example' # String |
106
106
  id = 'id_example' # String | The ID of the subscription to retrieve
@@ -109,7 +109,7 @@ begin
109
109
  # Retrieve a subscription by ID
110
110
  result = api_instance.get_subscription(x_api_version, x_account_id, id)
111
111
  p result
112
- rescue SubFiPay::ApiError => e
112
+ rescue SubfiPay::ApiError => e
113
113
  puts "Error when calling SubscriptionsApi->get_subscription: #{e}"
114
114
  end
115
115
  ```
@@ -127,7 +127,7 @@ begin
127
127
  p status_code # => 2xx
128
128
  p headers # => { ... }
129
129
  p data # => <SubscriptionResponse>
130
- rescue SubFiPay::ApiError => e
130
+ rescue SubfiPay::ApiError => e
131
131
  puts "Error when calling SubscriptionsApi->get_subscription_with_http_info: #{e}"
132
132
  end
133
133
  ```
@@ -1,4 +1,4 @@
1
- # SubFiPay::WebhookEndpoint
1
+ # SubfiPay::WebhookEndpoint
2
2
 
3
3
  ## Properties
4
4
 
@@ -19,7 +19,7 @@
19
19
  ```ruby
20
20
  require 'subfi_pay'
21
21
 
22
- instance = SubFiPay::WebhookEndpoint.new(
22
+ instance = SubfiPay::WebhookEndpoint.new(
23
23
  id: null,
24
24
  event: null,
25
25
  metadata: null,
@@ -1,4 +1,4 @@
1
- # SubFiPay::WebhookEndpointsApi
1
+ # SubfiPay::WebhookEndpointsApi
2
2
 
3
3
  All URIs are relative to *https://pay-sandbox.subfi.com*
4
4
 
@@ -23,22 +23,22 @@ Create a webhook endpoint
23
23
  require 'time'
24
24
  require 'subfi_pay'
25
25
  # setup authorization
26
- SubFiPay.configure do |config|
26
+ SubfiPay.configure do |config|
27
27
  # Configure API key authorization: ApiKeyAuth
28
28
  config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
29
29
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
30
30
  # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
31
31
  end
32
32
 
33
- api_instance = SubFiPay::WebhookEndpointsApi.new
33
+ api_instance = SubfiPay::WebhookEndpointsApi.new
34
34
  x_api_version = 'x_api_version_example' # String |
35
- create_webhook_endpoint_request = SubFiPay::CreateWebhookEndpointRequest.new # CreateWebhookEndpointRequest |
35
+ create_webhook_endpoint_request = SubfiPay::CreateWebhookEndpointRequest.new # CreateWebhookEndpointRequest |
36
36
 
37
37
  begin
38
38
  # Create a webhook endpoint
39
39
  result = api_instance.create_webhook_endpoint(x_api_version, create_webhook_endpoint_request)
40
40
  p result
41
- rescue SubFiPay::ApiError => e
41
+ rescue SubfiPay::ApiError => e
42
42
  puts "Error when calling WebhookEndpointsApi->create_webhook_endpoint: #{e}"
43
43
  end
44
44
  ```
@@ -56,7 +56,7 @@ begin
56
56
  p status_code # => 2xx
57
57
  p headers # => { ... }
58
58
  p data # => <WebhookEndpoint>
59
- rescue SubFiPay::ApiError => e
59
+ rescue SubfiPay::ApiError => e
60
60
  puts "Error when calling WebhookEndpointsApi->create_webhook_endpoint_with_http_info: #{e}"
61
61
  end
62
62
  ```
@@ -94,14 +94,14 @@ Delete a webhook endpoint by ID
94
94
  require 'time'
95
95
  require 'subfi_pay'
96
96
  # setup authorization
97
- SubFiPay.configure do |config|
97
+ SubfiPay.configure do |config|
98
98
  # Configure API key authorization: ApiKeyAuth
99
99
  config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
100
100
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
101
101
  # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
102
102
  end
103
103
 
104
- api_instance = SubFiPay::WebhookEndpointsApi.new
104
+ api_instance = SubfiPay::WebhookEndpointsApi.new
105
105
  x_api_version = 'x_api_version_example' # String |
106
106
  x_account_id = 'x_account_id_example' # String |
107
107
  id = 'id_example' # String |
@@ -109,7 +109,7 @@ id = 'id_example' # String |
109
109
  begin
110
110
  # Delete a webhook endpoint by ID
111
111
  api_instance.delete_webhook_endpoint(x_api_version, x_account_id, id)
112
- rescue SubFiPay::ApiError => e
112
+ rescue SubfiPay::ApiError => e
113
113
  puts "Error when calling WebhookEndpointsApi->delete_webhook_endpoint: #{e}"
114
114
  end
115
115
  ```
@@ -127,7 +127,7 @@ begin
127
127
  p status_code # => 2xx
128
128
  p headers # => { ... }
129
129
  p data # => nil
130
- rescue SubFiPay::ApiError => e
130
+ rescue SubfiPay::ApiError => e
131
131
  puts "Error when calling WebhookEndpointsApi->delete_webhook_endpoint_with_http_info: #{e}"
132
132
  end
133
133
  ```
@@ -166,14 +166,14 @@ Retrieve a webhook endpoint by ID
166
166
  require 'time'
167
167
  require 'subfi_pay'
168
168
  # setup authorization
169
- SubFiPay.configure do |config|
169
+ SubfiPay.configure do |config|
170
170
  # Configure API key authorization: ApiKeyAuth
171
171
  config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
172
172
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
173
173
  # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
174
174
  end
175
175
 
176
- api_instance = SubFiPay::WebhookEndpointsApi.new
176
+ api_instance = SubfiPay::WebhookEndpointsApi.new
177
177
  x_api_version = 'x_api_version_example' # String |
178
178
  x_account_id = 'x_account_id_example' # String |
179
179
  id = 'id_example' # String |
@@ -182,7 +182,7 @@ begin
182
182
  # Retrieve a webhook endpoint by ID
183
183
  result = api_instance.get_webhook_endpoint(x_api_version, x_account_id, id)
184
184
  p result
185
- rescue SubFiPay::ApiError => e
185
+ rescue SubfiPay::ApiError => e
186
186
  puts "Error when calling WebhookEndpointsApi->get_webhook_endpoint: #{e}"
187
187
  end
188
188
  ```
@@ -200,7 +200,7 @@ begin
200
200
  p status_code # => 2xx
201
201
  p headers # => { ... }
202
202
  p data # => <WebhookEndpoint>
203
- rescue SubFiPay::ApiError => e
203
+ rescue SubfiPay::ApiError => e
204
204
  puts "Error when calling WebhookEndpointsApi->get_webhook_endpoint_with_http_info: #{e}"
205
205
  end
206
206
  ```
@@ -239,14 +239,14 @@ List all webhook endpoints
239
239
  require 'time'
240
240
  require 'subfi_pay'
241
241
  # setup authorization
242
- SubFiPay.configure do |config|
242
+ SubfiPay.configure do |config|
243
243
  # Configure API key authorization: ApiKeyAuth
244
244
  config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
245
245
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
246
246
  # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
247
247
  end
248
248
 
249
- api_instance = SubFiPay::WebhookEndpointsApi.new
249
+ api_instance = SubfiPay::WebhookEndpointsApi.new
250
250
  x_api_version = 'x_api_version_example' # String |
251
251
  x_account_id = 'x_account_id_example' # String |
252
252
  opts = {
@@ -258,7 +258,7 @@ begin
258
258
  # List all webhook endpoints
259
259
  result = api_instance.list_webhook_endpoints(x_api_version, x_account_id, opts)
260
260
  p result
261
- rescue SubFiPay::ApiError => e
261
+ rescue SubfiPay::ApiError => e
262
262
  puts "Error when calling WebhookEndpointsApi->list_webhook_endpoints: #{e}"
263
263
  end
264
264
  ```
@@ -276,7 +276,7 @@ begin
276
276
  p status_code # => 2xx
277
277
  p headers # => { ... }
278
278
  p data # => <ListWebhookEndpointsResponse>
279
- rescue SubFiPay::ApiError => e
279
+ rescue SubfiPay::ApiError => e
280
280
  puts "Error when calling WebhookEndpointsApi->list_webhook_endpoints_with_http_info: #{e}"
281
281
  end
282
282
  ```
@@ -316,24 +316,24 @@ Update a webhook endpoint by ID
316
316
  require 'time'
317
317
  require 'subfi_pay'
318
318
  # setup authorization
319
- SubFiPay.configure do |config|
319
+ SubfiPay.configure do |config|
320
320
  # Configure API key authorization: ApiKeyAuth
321
321
  config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
322
322
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
323
323
  # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
324
324
  end
325
325
 
326
- api_instance = SubFiPay::WebhookEndpointsApi.new
326
+ api_instance = SubfiPay::WebhookEndpointsApi.new
327
327
  x_api_version = 'x_api_version_example' # String |
328
328
  x_account_id = 'x_account_id_example' # String |
329
329
  id = 'id_example' # String |
330
- create_webhook_endpoint_request = SubFiPay::CreateWebhookEndpointRequest.new # CreateWebhookEndpointRequest |
330
+ create_webhook_endpoint_request = SubfiPay::CreateWebhookEndpointRequest.new # CreateWebhookEndpointRequest |
331
331
 
332
332
  begin
333
333
  # Update a webhook endpoint by ID
334
334
  result = api_instance.update_webhook_endpoint(x_api_version, x_account_id, id, create_webhook_endpoint_request)
335
335
  p result
336
- rescue SubFiPay::ApiError => e
336
+ rescue SubfiPay::ApiError => e
337
337
  puts "Error when calling WebhookEndpointsApi->update_webhook_endpoint: #{e}"
338
338
  end
339
339
  ```
@@ -351,7 +351,7 @@ begin
351
351
  p status_code # => 2xx
352
352
  p headers # => { ... }
353
353
  p data # => <WebhookEndpoint>
354
- rescue SubFiPay::ApiError => e
354
+ rescue SubfiPay::ApiError => e
355
355
  puts "Error when calling WebhookEndpointsApi->update_webhook_endpoint_with_http_info: #{e}"
356
356
  end
357
357
  ```
@@ -1,4 +1,4 @@
1
- # SubFiPay::WebhookRequest
1
+ # SubfiPay::WebhookRequest
2
2
 
3
3
  ## Properties
4
4
 
@@ -21,7 +21,7 @@
21
21
  ```ruby
22
22
  require 'subfi_pay'
23
23
 
24
- instance = SubFiPay::WebhookRequest.new(
24
+ instance = SubfiPay::WebhookRequest.new(
25
25
  id: null,
26
26
  event_id: null,
27
27
  webhook_endpoint_id: null,
@@ -1,4 +1,4 @@
1
- # SubFiPay::WebhookRequestsApi
1
+ # SubfiPay::WebhookRequestsApi
2
2
 
3
3
  All URIs are relative to *https://pay-sandbox.subfi.com*
4
4
 
@@ -19,14 +19,14 @@ List all webhook requests
19
19
  require 'time'
20
20
  require 'subfi_pay'
21
21
  # setup authorization
22
- SubFiPay.configure do |config|
22
+ SubfiPay.configure do |config|
23
23
  # Configure API key authorization: ApiKeyAuth
24
24
  config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
25
25
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
26
26
  # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
27
27
  end
28
28
 
29
- api_instance = SubFiPay::WebhookRequestsApi.new
29
+ api_instance = SubfiPay::WebhookRequestsApi.new
30
30
  x_api_version = 'x_api_version_example' # String |
31
31
  x_account_id = 'x_account_id_example' # String |
32
32
  opts = {
@@ -38,7 +38,7 @@ begin
38
38
  # List all webhook requests
39
39
  result = api_instance.list_webhook_requests(x_api_version, x_account_id, opts)
40
40
  p result
41
- rescue SubFiPay::ApiError => e
41
+ rescue SubfiPay::ApiError => e
42
42
  puts "Error when calling WebhookRequestsApi->list_webhook_requests: #{e}"
43
43
  end
44
44
  ```
@@ -56,7 +56,7 @@ begin
56
56
  p status_code # => 2xx
57
57
  p headers # => { ... }
58
58
  p data # => <ListWebhookRequestsResponse>
59
- rescue SubFiPay::ApiError => e
59
+ rescue SubfiPay::ApiError => e
60
60
  puts "Error when calling WebhookRequestsApi->list_webhook_requests_with_http_info: #{e}"
61
61
  end
62
62
  ```
@@ -12,7 +12,7 @@ Generator version: 7.7.0
12
12
 
13
13
  require 'cgi'
14
14
 
15
- module SubFiPay
15
+ module SubfiPay
16
16
  class AccessKeysApi
17
17
  attr_accessor :api_client
18
18
 
@@ -12,7 +12,7 @@ Generator version: 7.7.0
12
12
 
13
13
  require 'cgi'
14
14
 
15
- module SubFiPay
15
+ module SubfiPay
16
16
  class AccountsApi
17
17
  attr_accessor :api_client
18
18
 
@@ -12,7 +12,7 @@ Generator version: 7.7.0
12
12
 
13
13
  require 'cgi'
14
14
 
15
- module SubFiPay
15
+ module SubfiPay
16
16
  class BalanceTransactionsApi
17
17
  attr_accessor :api_client
18
18
 
@@ -12,7 +12,7 @@ Generator version: 7.7.0
12
12
 
13
13
  require 'cgi'
14
14
 
15
- module SubFiPay
15
+ module SubfiPay
16
16
  class ChargesApi
17
17
  attr_accessor :api_client
18
18
 
@@ -12,7 +12,7 @@ Generator version: 7.7.0
12
12
 
13
13
  require 'cgi'
14
14
 
15
- module SubFiPay
15
+ module SubfiPay
16
16
  class CustomersApi
17
17
  attr_accessor :api_client
18
18
 
@@ -12,7 +12,7 @@ Generator version: 7.7.0
12
12
 
13
13
  require 'cgi'
14
14
 
15
- module SubFiPay
15
+ module SubfiPay
16
16
  class EventsApi
17
17
  attr_accessor :api_client
18
18
 
@@ -12,7 +12,7 @@ Generator version: 7.7.0
12
12
 
13
13
  require 'cgi'
14
14
 
15
- module SubFiPay
15
+ module SubfiPay
16
16
  class PaymentIntentsApi
17
17
  attr_accessor :api_client
18
18
 
@@ -12,7 +12,7 @@ Generator version: 7.7.0
12
12
 
13
13
  require 'cgi'
14
14
 
15
- module SubFiPay
15
+ module SubfiPay
16
16
  class PaymentMethodsApi
17
17
  attr_accessor :api_client
18
18
 
@@ -12,7 +12,7 @@ Generator version: 7.7.0
12
12
 
13
13
  require 'cgi'
14
14
 
15
- module SubFiPay
15
+ module SubfiPay
16
16
  class RefundsApi
17
17
  attr_accessor :api_client
18
18
 
@@ -12,7 +12,7 @@ Generator version: 7.7.0
12
12
 
13
13
  require 'cgi'
14
14
 
15
- module SubFiPay
15
+ module SubfiPay
16
16
  class SubscriptionsApi
17
17
  attr_accessor :api_client
18
18
 
@@ -12,7 +12,7 @@ Generator version: 7.7.0
12
12
 
13
13
  require 'cgi'
14
14
 
15
- module SubFiPay
15
+ module SubfiPay
16
16
  class WebhookEndpointsApi
17
17
  attr_accessor :api_client
18
18
 
@@ -12,7 +12,7 @@ Generator version: 7.7.0
12
12
 
13
13
  require 'cgi'
14
14
 
15
- module SubFiPay
15
+ module SubfiPay
16
16
  class WebhookRequestsApi
17
17
  attr_accessor :api_client
18
18
 
@@ -18,7 +18,7 @@ require 'time'
18
18
  require 'typhoeus'
19
19
 
20
20
 
21
- module SubFiPay
21
+ module SubfiPay
22
22
  class ApiClient
23
23
  # The Configuration object holding settings to be used in the API client.
24
24
  attr_accessor :config
@@ -280,7 +280,7 @@ module SubFiPay
280
280
  end
281
281
  else
282
282
  # models (e.g. Pet) or oneOf
283
- klass = SubFiPay.const_get(return_type)
283
+ klass = SubfiPay.const_get(return_type)
284
284
  klass.respond_to?(:openapi_one_of) ? klass.build(data) : klass.build_from_hash(data)
285
285
  end
286
286
  end
@@ -10,7 +10,7 @@ Generator version: 7.7.0
10
10
 
11
11
  =end
12
12
 
13
- module SubFiPay
13
+ module SubfiPay
14
14
  class ApiError < StandardError
15
15
  attr_reader :code, :response_headers, :response_body
16
16
 
@@ -10,7 +10,7 @@ Generator version: 7.7.0
10
10
 
11
11
  =end
12
12
 
13
- module SubFiPay
13
+ module SubfiPay
14
14
  class Configuration
15
15
  # Defines url scheme
16
16
  attr_accessor :scheme
@@ -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 AccessKey
18
18
  attr_accessor :expires_at
19
19
 
@@ -74,13 +74,13 @@ module SubFiPay
74
74
  # @param [Hash] attributes Model attributes in the form of hash
75
75
  def initialize(attributes = {})
76
76
  if (!attributes.is_a?(Hash))
77
- fail ArgumentError, "The input argument (attributes) must be a hash in `SubFiPay::AccessKey` initialize method"
77
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::AccessKey` initialize method"
78
78
  end
79
79
 
80
80
  # check to see if the attribute exists and convert string to symbol for hash key
81
81
  attributes = attributes.each_with_object({}) { |(k, v), h|
82
82
  if (!self.class.attribute_map.key?(k.to_sym))
83
- fail ArgumentError, "`#{k}` is not a valid attribute in `SubFiPay::AccessKey`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
83
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SubfiPay::AccessKey`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
84
84
  end
85
85
  h[k.to_sym] = v
86
86
  }
@@ -221,7 +221,7 @@ module SubFiPay
221
221
  end
222
222
  else # model
223
223
  # models (e.g. Pet) or oneOf
224
- klass = SubFiPay.const_get(type)
224
+ klass = SubfiPay.const_get(type)
225
225
  klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
226
226
  end
227
227
  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 AccountAttributes
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::AccountAttributes` initialize method"
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::AccountAttributes` 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::AccountAttributes`. 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::AccountAttributes`. 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 AccountCreateRequest
18
18
  attr_accessor :account
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::AccountCreateRequest` initialize method"
49
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::AccountCreateRequest` 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::AccountCreateRequest`. 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::AccountCreateRequest`. 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