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
data/docs/Meta.md CHANGED
@@ -1,4 +1,4 @@
1
- # SubFiPay::Meta
1
+ # SubfiPay::Meta
2
2
 
3
3
  ## Properties
4
4
 
@@ -16,7 +16,7 @@
16
16
  ```ruby
17
17
  require 'subfi_pay'
18
18
 
19
- instance = SubFiPay::Meta.new(
19
+ instance = SubfiPay::Meta.new(
20
20
  current_page: null,
21
21
  next_page: null,
22
22
  prev_page: null,
@@ -1,4 +1,4 @@
1
- # SubFiPay::PaymentIntentAttributes
1
+ # SubfiPay::PaymentIntentAttributes
2
2
 
3
3
  ## Properties
4
4
 
@@ -15,7 +15,7 @@
15
15
  ```ruby
16
16
  require 'subfi_pay'
17
17
 
18
- instance = SubFiPay::PaymentIntentAttributes.new(
18
+ instance = SubfiPay::PaymentIntentAttributes.new(
19
19
  amount: null,
20
20
  payment_method_id: null,
21
21
  capture_async: null,
@@ -1,4 +1,4 @@
1
- # SubFiPay::PaymentIntentCreateRequest
1
+ # SubfiPay::PaymentIntentCreateRequest
2
2
 
3
3
  ## Properties
4
4
 
@@ -11,7 +11,7 @@
11
11
  ```ruby
12
12
  require 'subfi_pay'
13
13
 
14
- instance = SubFiPay::PaymentIntentCreateRequest.new(
14
+ instance = SubfiPay::PaymentIntentCreateRequest.new(
15
15
  payment_intent: null
16
16
  )
17
17
  ```
@@ -1,4 +1,4 @@
1
- # SubFiPay::PaymentIntentResponse
1
+ # SubfiPay::PaymentIntentResponse
2
2
 
3
3
  ## Properties
4
4
 
@@ -17,7 +17,7 @@
17
17
  ```ruby
18
18
  require 'subfi_pay'
19
19
 
20
- instance = SubFiPay::PaymentIntentResponse.new(
20
+ instance = SubfiPay::PaymentIntentResponse.new(
21
21
  id: null,
22
22
  active_payment_method_id: null,
23
23
  amount: null,
@@ -1,4 +1,4 @@
1
- # SubFiPay::PaymentIntentUpdateAttributes
1
+ # SubfiPay::PaymentIntentUpdateAttributes
2
2
 
3
3
  ## Properties
4
4
 
@@ -11,7 +11,7 @@
11
11
  ```ruby
12
12
  require 'subfi_pay'
13
13
 
14
- instance = SubFiPay::PaymentIntentUpdateAttributes.new(
14
+ instance = SubfiPay::PaymentIntentUpdateAttributes.new(
15
15
  payment_intent: null
16
16
  )
17
17
  ```
@@ -1,4 +1,4 @@
1
- # SubFiPay::PaymentIntentUpdateAttributesPaymentIntent
1
+ # SubfiPay::PaymentIntentUpdateAttributesPaymentIntent
2
2
 
3
3
  ## Properties
4
4
 
@@ -11,7 +11,7 @@
11
11
  ```ruby
12
12
  require 'subfi_pay'
13
13
 
14
- instance = SubFiPay::PaymentIntentUpdateAttributesPaymentIntent.new(
14
+ instance = SubfiPay::PaymentIntentUpdateAttributesPaymentIntent.new(
15
15
  payment_intent_ids: null
16
16
  )
17
17
  ```
@@ -1,4 +1,4 @@
1
- # SubFiPay::PaymentIntentsApi
1
+ # SubfiPay::PaymentIntentsApi
2
2
 
3
3
  All URIs are relative to *https://pay-sandbox.subfi.com*
4
4
 
@@ -25,14 +25,14 @@ Cancel a payment intent
25
25
  require 'time'
26
26
  require 'subfi_pay'
27
27
  # setup authorization
28
- SubFiPay.configure do |config|
28
+ SubfiPay.configure do |config|
29
29
  # Configure API key authorization: ApiKeyAuth
30
30
  config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
31
31
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
32
32
  # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
33
33
  end
34
34
 
35
- api_instance = SubFiPay::PaymentIntentsApi.new
35
+ api_instance = SubfiPay::PaymentIntentsApi.new
36
36
  x_api_version = 'x_api_version_example' # String |
37
37
  x_account_id = 'x_account_id_example' # String |
38
38
  id = 'id_example' # String | The ID of the payment intent to cancel
@@ -41,7 +41,7 @@ begin
41
41
  # Cancel a payment intent
42
42
  result = api_instance.cancel_payment_intent(x_api_version, x_account_id, id)
43
43
  p result
44
- rescue SubFiPay::ApiError => e
44
+ rescue SubfiPay::ApiError => e
45
45
  puts "Error when calling PaymentIntentsApi->cancel_payment_intent: #{e}"
46
46
  end
47
47
  ```
@@ -59,7 +59,7 @@ begin
59
59
  p status_code # => 2xx
60
60
  p headers # => { ... }
61
61
  p data # => <PaymentIntentResponse>
62
- rescue SubFiPay::ApiError => e
62
+ rescue SubfiPay::ApiError => e
63
63
  puts "Error when calling PaymentIntentsApi->cancel_payment_intent_with_http_info: #{e}"
64
64
  end
65
65
  ```
@@ -98,14 +98,14 @@ Capture a payment intent
98
98
  require 'time'
99
99
  require 'subfi_pay'
100
100
  # setup authorization
101
- SubFiPay.configure do |config|
101
+ SubfiPay.configure do |config|
102
102
  # Configure API key authorization: ApiKeyAuth
103
103
  config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
104
104
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
105
105
  # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
106
106
  end
107
107
 
108
- api_instance = SubFiPay::PaymentIntentsApi.new
108
+ api_instance = SubfiPay::PaymentIntentsApi.new
109
109
  x_api_version = 'x_api_version_example' # String |
110
110
  x_account_id = 'x_account_id_example' # String |
111
111
  id = 'id_example' # String | The ID of the payment intent to capture
@@ -114,7 +114,7 @@ begin
114
114
  # Capture a payment intent
115
115
  result = api_instance.capture_payment_intent(x_api_version, x_account_id, id)
116
116
  p result
117
- rescue SubFiPay::ApiError => e
117
+ rescue SubfiPay::ApiError => e
118
118
  puts "Error when calling PaymentIntentsApi->capture_payment_intent: #{e}"
119
119
  end
120
120
  ```
@@ -132,7 +132,7 @@ begin
132
132
  p status_code # => 2xx
133
133
  p headers # => { ... }
134
134
  p data # => <PaymentIntentResponse>
135
- rescue SubFiPay::ApiError => e
135
+ rescue SubfiPay::ApiError => e
136
136
  puts "Error when calling PaymentIntentsApi->capture_payment_intent_with_http_info: #{e}"
137
137
  end
138
138
  ```
@@ -171,14 +171,14 @@ Confirm a payment intent
171
171
  require 'time'
172
172
  require 'subfi_pay'
173
173
  # setup authorization
174
- SubFiPay.configure do |config|
174
+ SubfiPay.configure do |config|
175
175
  # Configure API key authorization: ApiKeyAuth
176
176
  config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
177
177
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
178
178
  # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
179
179
  end
180
180
 
181
- api_instance = SubFiPay::PaymentIntentsApi.new
181
+ api_instance = SubfiPay::PaymentIntentsApi.new
182
182
  x_api_version = 'x_api_version_example' # String |
183
183
  x_account_id = 'x_account_id_example' # String |
184
184
  id = 'id_example' # String | The ID of the payment intent to confirm
@@ -187,7 +187,7 @@ begin
187
187
  # Confirm a payment intent
188
188
  result = api_instance.confirm_payment_intent(x_api_version, x_account_id, id)
189
189
  p result
190
- rescue SubFiPay::ApiError => e
190
+ rescue SubfiPay::ApiError => e
191
191
  puts "Error when calling PaymentIntentsApi->confirm_payment_intent: #{e}"
192
192
  end
193
193
  ```
@@ -205,7 +205,7 @@ begin
205
205
  p status_code # => 2xx
206
206
  p headers # => { ... }
207
207
  p data # => <PaymentIntentResponse>
208
- rescue SubFiPay::ApiError => e
208
+ rescue SubfiPay::ApiError => e
209
209
  puts "Error when calling PaymentIntentsApi->confirm_payment_intent_with_http_info: #{e}"
210
210
  end
211
211
  ```
@@ -244,23 +244,23 @@ Create a new payment intent
244
244
  require 'time'
245
245
  require 'subfi_pay'
246
246
  # setup authorization
247
- SubFiPay.configure do |config|
247
+ SubfiPay.configure do |config|
248
248
  # Configure API key authorization: ApiKeyAuth
249
249
  config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
250
250
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
251
251
  # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
252
252
  end
253
253
 
254
- api_instance = SubFiPay::PaymentIntentsApi.new
254
+ api_instance = SubfiPay::PaymentIntentsApi.new
255
255
  x_api_version = 'x_api_version_example' # String |
256
256
  x_account_id = 'x_account_id_example' # String |
257
- payment_intent_create_request = SubFiPay::PaymentIntentCreateRequest.new # PaymentIntentCreateRequest |
257
+ payment_intent_create_request = SubfiPay::PaymentIntentCreateRequest.new # PaymentIntentCreateRequest |
258
258
 
259
259
  begin
260
260
  # Create a new payment intent
261
261
  result = api_instance.create_payment_intent(x_api_version, x_account_id, payment_intent_create_request)
262
262
  p result
263
- rescue SubFiPay::ApiError => e
263
+ rescue SubfiPay::ApiError => e
264
264
  puts "Error when calling PaymentIntentsApi->create_payment_intent: #{e}"
265
265
  end
266
266
  ```
@@ -278,7 +278,7 @@ begin
278
278
  p status_code # => 2xx
279
279
  p headers # => { ... }
280
280
  p data # => <PaymentIntentResponse>
281
- rescue SubFiPay::ApiError => e
281
+ rescue SubfiPay::ApiError => e
282
282
  puts "Error when calling PaymentIntentsApi->create_payment_intent_with_http_info: #{e}"
283
283
  end
284
284
  ```
@@ -317,14 +317,14 @@ Retrieve a payment intent by ID
317
317
  require 'time'
318
318
  require 'subfi_pay'
319
319
  # setup authorization
320
- SubFiPay.configure do |config|
320
+ SubfiPay.configure do |config|
321
321
  # Configure API key authorization: ApiKeyAuth
322
322
  config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
323
323
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
324
324
  # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
325
325
  end
326
326
 
327
- api_instance = SubFiPay::PaymentIntentsApi.new
327
+ api_instance = SubfiPay::PaymentIntentsApi.new
328
328
  x_api_version = 'x_api_version_example' # String |
329
329
  x_account_id = 'x_account_id_example' # String |
330
330
  id = 'id_example' # String | The ID of the payment intent to retrieve
@@ -333,7 +333,7 @@ begin
333
333
  # Retrieve a payment intent by ID
334
334
  result = api_instance.get_payment_intent(x_api_version, x_account_id, id)
335
335
  p result
336
- rescue SubFiPay::ApiError => e
336
+ rescue SubfiPay::ApiError => e
337
337
  puts "Error when calling PaymentIntentsApi->get_payment_intent: #{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 # => <PaymentIntentResponse>
354
- rescue SubFiPay::ApiError => e
354
+ rescue SubfiPay::ApiError => e
355
355
  puts "Error when calling PaymentIntentsApi->get_payment_intent_with_http_info: #{e}"
356
356
  end
357
357
  ```
@@ -390,14 +390,14 @@ List payment intents
390
390
  require 'time'
391
391
  require 'subfi_pay'
392
392
  # setup authorization
393
- SubFiPay.configure do |config|
393
+ SubfiPay.configure do |config|
394
394
  # Configure API key authorization: ApiKeyAuth
395
395
  config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
396
396
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
397
397
  # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
398
398
  end
399
399
 
400
- api_instance = SubFiPay::PaymentIntentsApi.new
400
+ api_instance = SubfiPay::PaymentIntentsApi.new
401
401
  x_api_version = 'x_api_version_example' # String |
402
402
  x_account_id = 'x_account_id_example' # String |
403
403
  opts = {
@@ -410,7 +410,7 @@ begin
410
410
  # List payment intents
411
411
  result = api_instance.list_payment_intents(x_api_version, x_account_id, opts)
412
412
  p result
413
- rescue SubFiPay::ApiError => e
413
+ rescue SubfiPay::ApiError => e
414
414
  puts "Error when calling PaymentIntentsApi->list_payment_intents: #{e}"
415
415
  end
416
416
  ```
@@ -428,7 +428,7 @@ begin
428
428
  p status_code # => 2xx
429
429
  p headers # => { ... }
430
430
  p data # => <ListPaymentIntentsResponse>
431
- rescue SubFiPay::ApiError => e
431
+ rescue SubfiPay::ApiError => e
432
432
  puts "Error when calling PaymentIntentsApi->list_payment_intents_with_http_info: #{e}"
433
433
  end
434
434
  ```
@@ -469,24 +469,24 @@ Update a payment intent
469
469
  require 'time'
470
470
  require 'subfi_pay'
471
471
  # setup authorization
472
- SubFiPay.configure do |config|
472
+ SubfiPay.configure do |config|
473
473
  # Configure API key authorization: ApiKeyAuth
474
474
  config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
475
475
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
476
476
  # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
477
477
  end
478
478
 
479
- api_instance = SubFiPay::PaymentIntentsApi.new
479
+ api_instance = SubfiPay::PaymentIntentsApi.new
480
480
  x_api_version = 'x_api_version_example' # String |
481
481
  x_account_id = 'x_account_id_example' # String |
482
482
  id = 'id_example' # String | The ID of the payment intent to update
483
- payment_intent_update_attributes = SubFiPay::PaymentIntentUpdateAttributes.new # PaymentIntentUpdateAttributes |
483
+ payment_intent_update_attributes = SubfiPay::PaymentIntentUpdateAttributes.new # PaymentIntentUpdateAttributes |
484
484
 
485
485
  begin
486
486
  # Update a payment intent
487
487
  result = api_instance.update_payment_intent(x_api_version, x_account_id, id, payment_intent_update_attributes)
488
488
  p result
489
- rescue SubFiPay::ApiError => e
489
+ rescue SubfiPay::ApiError => e
490
490
  puts "Error when calling PaymentIntentsApi->update_payment_intent: #{e}"
491
491
  end
492
492
  ```
@@ -504,7 +504,7 @@ begin
504
504
  p status_code # => 2xx
505
505
  p headers # => { ... }
506
506
  p data # => <PaymentIntentResponse>
507
- rescue SubFiPay::ApiError => e
507
+ rescue SubfiPay::ApiError => e
508
508
  puts "Error when calling PaymentIntentsApi->update_payment_intent_with_http_info: #{e}"
509
509
  end
510
510
  ```
@@ -1,4 +1,4 @@
1
- # SubFiPay::PaymentMethodAttributes
1
+ # SubfiPay::PaymentMethodAttributes
2
2
 
3
3
  ## Properties
4
4
 
@@ -14,7 +14,7 @@
14
14
  ```ruby
15
15
  require 'subfi_pay'
16
16
 
17
- instance = SubFiPay::PaymentMethodAttributes.new(
17
+ instance = SubfiPay::PaymentMethodAttributes.new(
18
18
  type: null,
19
19
  billing_address_attributes: null,
20
20
  card_profile_attributes: null,
@@ -1,4 +1,4 @@
1
- # SubFiPay::PaymentMethodResponse
1
+ # SubfiPay::PaymentMethodResponse
2
2
 
3
3
  ## Properties
4
4
 
@@ -20,7 +20,7 @@
20
20
  ```ruby
21
21
  require 'subfi_pay'
22
22
 
23
- instance = SubFiPay::PaymentMethodResponse.new(
23
+ instance = SubfiPay::PaymentMethodResponse.new(
24
24
  id: null,
25
25
  type: null,
26
26
  partner_id: null,
@@ -1,4 +1,4 @@
1
- # SubFiPay::PaymentMethodsApi
1
+ # SubfiPay::PaymentMethodsApi
2
2
 
3
3
  All URIs are relative to *https://pay-sandbox.subfi.com*
4
4
 
@@ -21,17 +21,17 @@ Create a payment method
21
21
  require 'time'
22
22
  require 'subfi_pay'
23
23
  # setup authorization
24
- SubFiPay.configure do |config|
24
+ SubfiPay.configure do |config|
25
25
  # Configure API key authorization: ApiKeyAuth
26
26
  config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
27
27
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
28
28
  # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
29
29
  end
30
30
 
31
- api_instance = SubFiPay::PaymentMethodsApi.new
31
+ api_instance = SubfiPay::PaymentMethodsApi.new
32
32
  x_api_version = 'x_api_version_example' # String |
33
33
  x_account_id = 'x_account_id_example' # String |
34
- payment_method_attributes = SubFiPay::PaymentMethodAttributes.new({type: 'type_example'}) # PaymentMethodAttributes |
34
+ payment_method_attributes = SubfiPay::PaymentMethodAttributes.new({type: 'type_example'}) # PaymentMethodAttributes |
35
35
  opts = {
36
36
  x_idempotency_key: 'x_idempotency_key_example' # String |
37
37
  }
@@ -40,7 +40,7 @@ begin
40
40
  # Create a payment method
41
41
  result = api_instance.create_payment_method(x_api_version, x_account_id, payment_method_attributes, opts)
42
42
  p result
43
- rescue SubFiPay::ApiError => e
43
+ rescue SubfiPay::ApiError => e
44
44
  puts "Error when calling PaymentMethodsApi->create_payment_method: #{e}"
45
45
  end
46
46
  ```
@@ -58,7 +58,7 @@ begin
58
58
  p status_code # => 2xx
59
59
  p headers # => { ... }
60
60
  p data # => <PaymentMethodResponse>
61
- rescue SubFiPay::ApiError => e
61
+ rescue SubfiPay::ApiError => e
62
62
  puts "Error when calling PaymentMethodsApi->create_payment_method_with_http_info: #{e}"
63
63
  end
64
64
  ```
@@ -98,14 +98,14 @@ Retrieve a payment method
98
98
  require 'time'
99
99
  require 'subfi_pay'
100
100
  # setup authorization
101
- SubFiPay.configure do |config|
101
+ SubfiPay.configure do |config|
102
102
  # Configure API key authorization: ApiKeyAuth
103
103
  config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
104
104
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
105
105
  # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
106
106
  end
107
107
 
108
- api_instance = SubFiPay::PaymentMethodsApi.new
108
+ api_instance = SubfiPay::PaymentMethodsApi.new
109
109
  x_api_version = 'x_api_version_example' # String |
110
110
  x_account_id = 'x_account_id_example' # String |
111
111
  id = 'id_example' # String |
@@ -114,7 +114,7 @@ begin
114
114
  # Retrieve a payment method
115
115
  result = api_instance.get_payment_method(x_api_version, x_account_id, id)
116
116
  p result
117
- rescue SubFiPay::ApiError => e
117
+ rescue SubfiPay::ApiError => e
118
118
  puts "Error when calling PaymentMethodsApi->get_payment_method: #{e}"
119
119
  end
120
120
  ```
@@ -132,7 +132,7 @@ begin
132
132
  p status_code # => 2xx
133
133
  p headers # => { ... }
134
134
  p data # => <PaymentMethodResponse>
135
- rescue SubFiPay::ApiError => e
135
+ rescue SubfiPay::ApiError => e
136
136
  puts "Error when calling PaymentMethodsApi->get_payment_method_with_http_info: #{e}"
137
137
  end
138
138
  ```
@@ -171,14 +171,14 @@ List all payment methods
171
171
  require 'time'
172
172
  require 'subfi_pay'
173
173
  # setup authorization
174
- SubFiPay.configure do |config|
174
+ SubfiPay.configure do |config|
175
175
  # Configure API key authorization: ApiKeyAuth
176
176
  config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
177
177
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
178
178
  # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
179
179
  end
180
180
 
181
- api_instance = SubFiPay::PaymentMethodsApi.new
181
+ api_instance = SubfiPay::PaymentMethodsApi.new
182
182
  x_api_version = 'x_api_version_example' # String |
183
183
  x_account_id = 'x_account_id_example' # String |
184
184
  customer_id = 'customer_id_example' # String | The ID of the customer to filter payment methods by.
@@ -191,7 +191,7 @@ begin
191
191
  # List all payment methods
192
192
  result = api_instance.list_payment_methods(x_api_version, x_account_id, customer_id, opts)
193
193
  p result
194
- rescue SubFiPay::ApiError => e
194
+ rescue SubfiPay::ApiError => e
195
195
  puts "Error when calling PaymentMethodsApi->list_payment_methods: #{e}"
196
196
  end
197
197
  ```
@@ -209,7 +209,7 @@ begin
209
209
  p status_code # => 2xx
210
210
  p headers # => { ... }
211
211
  p data # => <ListPaymentMethodsResponse>
212
- rescue SubFiPay::ApiError => e
212
+ rescue SubfiPay::ApiError => e
213
213
  puts "Error when calling PaymentMethodsApi->list_payment_methods_with_http_info: #{e}"
214
214
  end
215
215
  ```
@@ -1,4 +1,4 @@
1
- # SubFiPay::RefundAttributes
1
+ # SubfiPay::RefundAttributes
2
2
 
3
3
  ## Properties
4
4
 
@@ -12,7 +12,7 @@
12
12
  ```ruby
13
13
  require 'subfi_pay'
14
14
 
15
- instance = SubFiPay::RefundAttributes.new(
15
+ instance = SubfiPay::RefundAttributes.new(
16
16
  amount: null,
17
17
  charge_id: null
18
18
  )
@@ -1,4 +1,4 @@
1
- # SubFiPay::RefundResponse
1
+ # SubfiPay::RefundResponse
2
2
 
3
3
  ## Properties
4
4
 
@@ -17,7 +17,7 @@
17
17
  ```ruby
18
18
  require 'subfi_pay'
19
19
 
20
- instance = SubFiPay::RefundResponse.new(
20
+ instance = SubfiPay::RefundResponse.new(
21
21
  id: null,
22
22
  failure_reason: null,
23
23
  state: null,
data/docs/RefundsApi.md CHANGED
@@ -1,4 +1,4 @@
1
- # SubFiPay::RefundsApi
1
+ # SubfiPay::RefundsApi
2
2
 
3
3
  All URIs are relative to *https://pay-sandbox.subfi.com*
4
4
 
@@ -22,14 +22,14 @@ Cancel a refund
22
22
  require 'time'
23
23
  require 'subfi_pay'
24
24
  # setup authorization
25
- SubFiPay.configure do |config|
25
+ SubfiPay.configure do |config|
26
26
  # Configure API key authorization: ApiKeyAuth
27
27
  config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
28
28
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
29
29
  # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
30
30
  end
31
31
 
32
- api_instance = SubFiPay::RefundsApi.new
32
+ api_instance = SubfiPay::RefundsApi.new
33
33
  x_api_version = 'x_api_version_example' # String |
34
34
  x_account_id = 'x_account_id_example' # String |
35
35
  id = 'id_example' # String | The ID of the refund to cancel.
@@ -38,7 +38,7 @@ begin
38
38
  # Cancel a refund
39
39
  result = api_instance.cancel_refund(x_api_version, x_account_id, id)
40
40
  p result
41
- rescue SubFiPay::ApiError => e
41
+ rescue SubfiPay::ApiError => e
42
42
  puts "Error when calling RefundsApi->cancel_refund: #{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 # => <RefundResponse>
59
- rescue SubFiPay::ApiError => e
59
+ rescue SubfiPay::ApiError => e
60
60
  puts "Error when calling RefundsApi->cancel_refund_with_http_info: #{e}"
61
61
  end
62
62
  ```
@@ -95,17 +95,17 @@ Create a refund
95
95
  require 'time'
96
96
  require 'subfi_pay'
97
97
  # setup authorization
98
- SubFiPay.configure do |config|
98
+ SubfiPay.configure do |config|
99
99
  # Configure API key authorization: ApiKeyAuth
100
100
  config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
101
101
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
102
102
  # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
103
103
  end
104
104
 
105
- api_instance = SubFiPay::RefundsApi.new
105
+ api_instance = SubfiPay::RefundsApi.new
106
106
  x_api_version = 'x_api_version_example' # String |
107
107
  x_account_id = 'x_account_id_example' # String |
108
- refund_attributes = SubFiPay::RefundAttributes.new({charge_id: 'charge_id_example'}) # RefundAttributes |
108
+ refund_attributes = SubfiPay::RefundAttributes.new({charge_id: 'charge_id_example'}) # RefundAttributes |
109
109
  opts = {
110
110
  x_idempotency_key: 'x_idempotency_key_example' # String |
111
111
  }
@@ -114,7 +114,7 @@ begin
114
114
  # Create a refund
115
115
  result = api_instance.create_refund(x_api_version, x_account_id, refund_attributes, opts)
116
116
  p result
117
- rescue SubFiPay::ApiError => e
117
+ rescue SubfiPay::ApiError => e
118
118
  puts "Error when calling RefundsApi->create_refund: #{e}"
119
119
  end
120
120
  ```
@@ -132,7 +132,7 @@ begin
132
132
  p status_code # => 2xx
133
133
  p headers # => { ... }
134
134
  p data # => <RefundResponse>
135
- rescue SubFiPay::ApiError => e
135
+ rescue SubfiPay::ApiError => e
136
136
  puts "Error when calling RefundsApi->create_refund_with_http_info: #{e}"
137
137
  end
138
138
  ```
@@ -172,14 +172,14 @@ Get a refund by ID
172
172
  require 'time'
173
173
  require 'subfi_pay'
174
174
  # setup authorization
175
- SubFiPay.configure do |config|
175
+ SubfiPay.configure do |config|
176
176
  # Configure API key authorization: ApiKeyAuth
177
177
  config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
178
178
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
179
179
  # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
180
180
  end
181
181
 
182
- api_instance = SubFiPay::RefundsApi.new
182
+ api_instance = SubfiPay::RefundsApi.new
183
183
  x_api_version = 'x_api_version_example' # String |
184
184
  x_account_id = 'x_account_id_example' # String |
185
185
  id = 'id_example' # String | The ID of the refund to retrieve.
@@ -191,7 +191,7 @@ begin
191
191
  # Get a refund by ID
192
192
  result = api_instance.get_refund(x_api_version, x_account_id, id, opts)
193
193
  p result
194
- rescue SubFiPay::ApiError => e
194
+ rescue SubfiPay::ApiError => e
195
195
  puts "Error when calling RefundsApi->get_refund: #{e}"
196
196
  end
197
197
  ```
@@ -209,7 +209,7 @@ begin
209
209
  p status_code # => 2xx
210
210
  p headers # => { ... }
211
211
  p data # => <RefundResponse>
212
- rescue SubFiPay::ApiError => e
212
+ rescue SubfiPay::ApiError => e
213
213
  puts "Error when calling RefundsApi->get_refund_with_http_info: #{e}"
214
214
  end
215
215
  ```
@@ -249,14 +249,14 @@ List refunds for a Charge
249
249
  require 'time'
250
250
  require 'subfi_pay'
251
251
  # setup authorization
252
- SubFiPay.configure do |config|
252
+ SubfiPay.configure do |config|
253
253
  # Configure API key authorization: ApiKeyAuth
254
254
  config.api_key['ApiKeyAuth'] = 'YOUR API KEY'
255
255
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
256
256
  # config.api_key_prefix['ApiKeyAuth'] = 'Bearer'
257
257
  end
258
258
 
259
- api_instance = SubFiPay::RefundsApi.new
259
+ api_instance = SubfiPay::RefundsApi.new
260
260
  x_api_version = 'x_api_version_example' # String |
261
261
  x_account_id = 'x_account_id_example' # String |
262
262
  charge_id = 'charge_id_example' # String | The ID of the charge to which this refund belongs.
@@ -265,7 +265,7 @@ begin
265
265
  # List refunds for a Charge
266
266
  result = api_instance.list_refunds(x_api_version, x_account_id, charge_id)
267
267
  p result
268
- rescue SubFiPay::ApiError => e
268
+ rescue SubfiPay::ApiError => e
269
269
  puts "Error when calling RefundsApi->list_refunds: #{e}"
270
270
  end
271
271
  ```
@@ -283,7 +283,7 @@ begin
283
283
  p status_code # => 2xx
284
284
  p headers # => { ... }
285
285
  p data # => <ListRefundsResponse>
286
- rescue SubFiPay::ApiError => e
286
+ rescue SubfiPay::ApiError => e
287
287
  puts "Error when calling RefundsApi->list_refunds_with_http_info: #{e}"
288
288
  end
289
289
  ```
@@ -1,4 +1,4 @@
1
- # SubFiPay::RollAccessKeyAttributes
1
+ # SubfiPay::RollAccessKeyAttributes
2
2
 
3
3
  ## Properties
4
4
 
@@ -11,7 +11,7 @@
11
11
  ```ruby
12
12
  require 'subfi_pay'
13
13
 
14
- instance = SubFiPay::RollAccessKeyAttributes.new(
14
+ instance = SubfiPay::RollAccessKeyAttributes.new(
15
15
  access_key: null
16
16
  )
17
17
  ```