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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +93 -93
- data/docs/AccessKey.md +2 -2
- data/docs/AccessKeysApi.md +14 -14
- data/docs/AccountAttributes.md +2 -2
- data/docs/AccountCreateRequest.md +2 -2
- data/docs/AccountResponse.md +2 -2
- data/docs/AccountsApi.md +14 -14
- data/docs/BalanceTransactionResponse.md +2 -2
- data/docs/BalanceTransactionsApi.md +5 -5
- data/docs/BankAccountProfile.md +2 -2
- data/docs/BillingAddress.md +2 -2
- data/docs/CardProfile.md +2 -2
- data/docs/ChargeAttributes.md +2 -2
- data/docs/ChargeResponse.md +2 -2
- data/docs/ChargesApi.md +9 -9
- data/docs/ConnectedAccountAttributes.md +2 -2
- data/docs/ConnectedAccountResponse.md +2 -2
- data/docs/CreateWebhookEndpointRequest.md +2 -2
- data/docs/CreateWebhookEndpointRequestWebhookEndpoint.md +2 -2
- data/docs/Customer.md +2 -2
- data/docs/CustomerAttributes.md +2 -2
- data/docs/CustomerCreateRequest.md +2 -2
- data/docs/CustomerUpdateAttributes.md +2 -2
- data/docs/CustomerUpdateRequest.md +2 -2
- data/docs/CustomersApi.md +19 -19
- data/docs/Event.md +2 -2
- data/docs/EventsApi.md +9 -9
- data/docs/ListAccessKeysResponse.md +2 -2
- data/docs/ListAccountsResponse.md +2 -2
- data/docs/ListBalanceTransactionsResponse.md +2 -2
- data/docs/ListChargesResponse.md +2 -2
- data/docs/ListCustomersResponse.md +2 -2
- data/docs/ListEventsResponse.md +2 -2
- data/docs/ListPaymentIntentsResponse.md +2 -2
- data/docs/ListPaymentMethodsResponse.md +2 -2
- data/docs/ListRefundsResponse.md +2 -2
- data/docs/ListWebhookEndpointsResponse.md +2 -2
- data/docs/ListWebhookRequestsResponse.md +2 -2
- data/docs/Meta.md +2 -2
- data/docs/PaymentIntentAttributes.md +2 -2
- data/docs/PaymentIntentCreateRequest.md +2 -2
- data/docs/PaymentIntentResponse.md +2 -2
- data/docs/PaymentIntentUpdateAttributes.md +2 -2
- data/docs/PaymentIntentUpdateAttributesPaymentIntent.md +2 -2
- data/docs/PaymentIntentsApi.md +31 -31
- data/docs/PaymentMethodAttributes.md +2 -2
- data/docs/PaymentMethodResponse.md +2 -2
- data/docs/PaymentMethodsApi.md +14 -14
- data/docs/RefundAttributes.md +2 -2
- data/docs/RefundResponse.md +2 -2
- data/docs/RefundsApi.md +18 -18
- data/docs/RollAccessKeyAttributes.md +2 -2
- data/docs/RollAccessKeyAttributesAccessKey.md +2 -2
- data/docs/SubscriptionAttributes.md +2 -2
- data/docs/SubscriptionCreateRequest.md +2 -2
- data/docs/SubscriptionResponse.md +2 -2
- data/docs/SubscriptionsApi.md +10 -10
- data/docs/WebhookEndpoint.md +2 -2
- data/docs/WebhookEndpointsApi.md +23 -23
- data/docs/WebhookRequest.md +2 -2
- data/docs/WebhookRequestsApi.md +5 -5
- data/lib/subfi_pay/api/access_keys_api.rb +1 -1
- data/lib/subfi_pay/api/accounts_api.rb +1 -1
- data/lib/subfi_pay/api/balance_transactions_api.rb +1 -1
- data/lib/subfi_pay/api/charges_api.rb +1 -1
- data/lib/subfi_pay/api/customers_api.rb +1 -1
- data/lib/subfi_pay/api/events_api.rb +1 -1
- data/lib/subfi_pay/api/payment_intents_api.rb +1 -1
- data/lib/subfi_pay/api/payment_methods_api.rb +1 -1
- data/lib/subfi_pay/api/refunds_api.rb +1 -1
- data/lib/subfi_pay/api/subscriptions_api.rb +1 -1
- data/lib/subfi_pay/api/webhook_endpoints_api.rb +1 -1
- data/lib/subfi_pay/api/webhook_requests_api.rb +1 -1
- data/lib/subfi_pay/api_client.rb +2 -2
- data/lib/subfi_pay/api_error.rb +1 -1
- data/lib/subfi_pay/configuration.rb +1 -1
- data/lib/subfi_pay/models/access_key.rb +4 -4
- data/lib/subfi_pay/models/account_attributes.rb +4 -4
- data/lib/subfi_pay/models/account_create_request.rb +4 -4
- data/lib/subfi_pay/models/account_response.rb +4 -4
- data/lib/subfi_pay/models/balance_transaction_response.rb +4 -4
- data/lib/subfi_pay/models/bank_account_profile.rb +4 -4
- data/lib/subfi_pay/models/billing_address.rb +4 -4
- data/lib/subfi_pay/models/card_profile.rb +4 -4
- data/lib/subfi_pay/models/charge_attributes.rb +4 -4
- data/lib/subfi_pay/models/charge_response.rb +4 -4
- data/lib/subfi_pay/models/connected_account_attributes.rb +4 -4
- data/lib/subfi_pay/models/connected_account_response.rb +4 -4
- data/lib/subfi_pay/models/create_webhook_endpoint_request.rb +4 -4
- data/lib/subfi_pay/models/create_webhook_endpoint_request_webhook_endpoint.rb +4 -4
- data/lib/subfi_pay/models/customer.rb +4 -4
- data/lib/subfi_pay/models/customer_attributes.rb +4 -4
- data/lib/subfi_pay/models/customer_create_request.rb +4 -4
- data/lib/subfi_pay/models/customer_update_attributes.rb +4 -4
- data/lib/subfi_pay/models/customer_update_request.rb +4 -4
- data/lib/subfi_pay/models/event.rb +4 -4
- data/lib/subfi_pay/models/list_access_keys_response.rb +4 -4
- data/lib/subfi_pay/models/list_accounts_response.rb +4 -4
- data/lib/subfi_pay/models/list_balance_transactions_response.rb +4 -4
- data/lib/subfi_pay/models/list_charges_response.rb +4 -4
- data/lib/subfi_pay/models/list_customers_response.rb +4 -4
- data/lib/subfi_pay/models/list_events_response.rb +4 -4
- data/lib/subfi_pay/models/list_payment_intents_response.rb +4 -4
- data/lib/subfi_pay/models/list_payment_methods_response.rb +4 -4
- data/lib/subfi_pay/models/list_refunds_response.rb +4 -4
- data/lib/subfi_pay/models/list_webhook_endpoints_response.rb +4 -4
- data/lib/subfi_pay/models/list_webhook_requests_response.rb +4 -4
- data/lib/subfi_pay/models/meta.rb +4 -4
- data/lib/subfi_pay/models/payment_intent_attributes.rb +4 -4
- data/lib/subfi_pay/models/payment_intent_create_request.rb +4 -4
- data/lib/subfi_pay/models/payment_intent_response.rb +4 -4
- data/lib/subfi_pay/models/payment_intent_update_attributes.rb +4 -4
- data/lib/subfi_pay/models/payment_intent_update_attributes_payment_intent.rb +4 -4
- data/lib/subfi_pay/models/payment_method_attributes.rb +4 -4
- data/lib/subfi_pay/models/payment_method_response.rb +4 -4
- data/lib/subfi_pay/models/refund_attributes.rb +4 -4
- data/lib/subfi_pay/models/refund_response.rb +4 -4
- data/lib/subfi_pay/models/roll_access_key_attributes.rb +4 -4
- data/lib/subfi_pay/models/roll_access_key_attributes_access_key.rb +4 -4
- data/lib/subfi_pay/models/subscription_attributes.rb +4 -4
- data/lib/subfi_pay/models/subscription_create_request.rb +4 -4
- data/lib/subfi_pay/models/subscription_response.rb +4 -4
- data/lib/subfi_pay/models/webhook_endpoint.rb +4 -4
- data/lib/subfi_pay/models/webhook_request.rb +4 -4
- data/lib/subfi_pay/version.rb +2 -2
- data/lib/subfi_pay.rb +2 -2
- data/spec/api/access_keys_api_spec.rb +6 -6
- data/spec/api/accounts_api_spec.rb +6 -6
- data/spec/api/balance_transactions_api_spec.rb +4 -4
- data/spec/api/charges_api_spec.rb +5 -5
- data/spec/api/customers_api_spec.rb +10 -10
- data/spec/api/events_api_spec.rb +7 -6
- data/spec/api/payment_intents_api_spec.rb +10 -10
- data/spec/api/payment_methods_api_spec.rb +11 -11
- data/spec/api/refunds_api_spec.rb +7 -7
- data/spec/api/subscriptions_api_spec.rb +5 -5
- data/spec/api/webhook_endpoints_api_spec.rb +9 -9
- data/spec/api/webhook_requests_api_spec.rb +4 -4
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/access_key_spec.rb +4 -4
- data/spec/models/account_attributes_spec.rb +4 -4
- data/spec/models/account_create_request_spec.rb +4 -4
- data/spec/models/account_response_spec.rb +4 -4
- data/spec/models/balance_transaction_response_spec.rb +4 -4
- data/spec/models/bank_account_profile_spec.rb +4 -4
- data/spec/models/billing_address_spec.rb +4 -4
- data/spec/models/card_profile_spec.rb +4 -4
- data/spec/models/charge_attributes_spec.rb +4 -4
- data/spec/models/charge_response_spec.rb +4 -4
- data/spec/models/connected_account_attributes_spec.rb +4 -4
- data/spec/models/connected_account_response_spec.rb +4 -4
- data/spec/models/create_account_request_account_spec.rb +4 -4
- data/spec/models/create_account_request_spec.rb +4 -4
- data/spec/models/create_webhook_endpoint_request_spec.rb +4 -4
- data/spec/models/create_webhook_endpoint_request_webhook_endpoint_spec.rb +4 -4
- data/spec/models/customer_attributes_spec.rb +4 -4
- data/spec/models/customer_create_request_spec.rb +4 -4
- data/spec/models/customer_spec.rb +4 -4
- data/spec/models/customer_update_attributes_spec.rb +4 -4
- data/spec/models/customer_update_request_spec.rb +4 -4
- data/spec/models/event_spec.rb +4 -4
- data/spec/models/list_access_keys_response_spec.rb +4 -4
- data/spec/models/list_accounts_response_spec.rb +4 -4
- data/spec/models/list_balance_transactions_response_spec.rb +4 -4
- data/spec/models/list_charges_response_spec.rb +4 -4
- data/spec/models/list_customers_response_spec.rb +4 -4
- data/spec/models/list_events_response_spec.rb +4 -4
- data/spec/models/list_payment_intents_response_spec.rb +4 -4
- data/spec/models/list_payment_methods_response_spec.rb +4 -4
- data/spec/models/list_refunds_response_spec.rb +4 -4
- data/spec/models/list_webhook_endpoints_response_spec.rb +4 -4
- data/spec/models/list_webhook_requests_response_spec.rb +4 -4
- data/spec/models/meta_spec.rb +4 -4
- data/spec/models/payment_intent_attributes_spec.rb +4 -4
- data/spec/models/payment_intent_create_request_spec.rb +4 -4
- data/spec/models/payment_intent_response_spec.rb +4 -4
- data/spec/models/payment_intent_update_attributes_payment_intent_spec.rb +4 -4
- data/spec/models/payment_intent_update_attributes_spec.rb +4 -4
- data/spec/models/payment_method_attributes_spec.rb +4 -4
- data/spec/models/payment_method_response_spec.rb +4 -4
- data/spec/models/refund_attributes_spec.rb +4 -4
- data/spec/models/refund_response_spec.rb +4 -4
- data/spec/models/roll_access_key_attributes_access_key_spec.rb +4 -4
- data/spec/models/roll_access_key_attributes_spec.rb +4 -4
- data/spec/models/roll_access_key_request_access_key_spec.rb +4 -4
- data/spec/models/roll_access_key_request_spec.rb +4 -4
- data/spec/models/subscription_attributes_spec.rb +4 -4
- data/spec/models/subscription_create_request_spec.rb +4 -4
- data/spec/models/subscription_response_spec.rb +4 -4
- data/spec/models/webhook_endpoint_spec.rb +4 -4
- data/spec/models/webhook_request_spec.rb +4 -4
- data/subfi_pay.gemspec +1 -1
- metadata +2 -2
data/docs/Meta.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
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 =
|
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
|
-
#
|
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 =
|
14
|
+
instance = SubfiPay::PaymentIntentCreateRequest.new(
|
15
15
|
payment_intent: null
|
16
16
|
)
|
17
17
|
```
|
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
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 =
|
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
|
-
#
|
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 =
|
14
|
+
instance = SubfiPay::PaymentIntentUpdateAttributes.new(
|
15
15
|
payment_intent: null
|
16
16
|
)
|
17
17
|
```
|
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
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 =
|
14
|
+
instance = SubfiPay::PaymentIntentUpdateAttributesPaymentIntent.new(
|
15
15
|
payment_intent_ids: null
|
16
16
|
)
|
17
17
|
```
|
data/docs/PaymentIntentsApi.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
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
|
-
|
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 =
|
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
|
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
|
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
|
-
|
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 =
|
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
|
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
|
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
|
-
|
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 =
|
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
|
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
|
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
|
-
|
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 =
|
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 =
|
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
|
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
|
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
|
-
|
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 =
|
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
|
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
|
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
|
-
|
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 =
|
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
|
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
|
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
|
-
|
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 =
|
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 =
|
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
|
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
|
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
|
-
#
|
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 =
|
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
|
-
#
|
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 =
|
23
|
+
instance = SubfiPay::PaymentMethodResponse.new(
|
24
24
|
id: null,
|
25
25
|
type: null,
|
26
26
|
partner_id: null,
|
data/docs/PaymentMethodsApi.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
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
|
-
|
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 =
|
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 =
|
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
|
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
|
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
|
-
|
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 =
|
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
|
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
|
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
|
-
|
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 =
|
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
|
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
|
212
|
+
rescue SubfiPay::ApiError => e
|
213
213
|
puts "Error when calling PaymentMethodsApi->list_payment_methods_with_http_info: #{e}"
|
214
214
|
end
|
215
215
|
```
|
data/docs/RefundAttributes.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
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 =
|
15
|
+
instance = SubfiPay::RefundAttributes.new(
|
16
16
|
amount: null,
|
17
17
|
charge_id: null
|
18
18
|
)
|
data/docs/RefundResponse.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
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 =
|
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
|
-
#
|
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
|
-
|
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 =
|
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
|
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
|
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
|
-
|
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 =
|
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 =
|
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
|
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
|
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
|
-
|
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 =
|
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
|
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
|
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
|
-
|
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 =
|
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
|
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
|
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
|
-
#
|
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 =
|
14
|
+
instance = SubfiPay::RollAccessKeyAttributes.new(
|
15
15
|
access_key: null
|
16
16
|
)
|
17
17
|
```
|