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
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
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 =
|
14
|
+
instance = SubfiPay::RollAccessKeyAttributesAccessKey.new(
|
15
15
|
expires_at: null
|
16
16
|
)
|
17
17
|
```
|
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
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 =
|
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
|
-
#
|
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 =
|
14
|
+
instance = SubfiPay::SubscriptionCreateRequest.new(
|
15
15
|
subscription: null
|
16
16
|
)
|
17
17
|
```
|
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
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 =
|
23
|
+
instance = SubfiPay::SubscriptionResponse.new(
|
24
24
|
connected_account_id: null,
|
25
25
|
customer_id: null,
|
26
26
|
payment_method_id: null,
|
data/docs/SubscriptionsApi.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
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
|
-
|
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 =
|
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 =
|
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
|
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
|
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
|
-
|
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 =
|
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
|
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
|
130
|
+
rescue SubfiPay::ApiError => e
|
131
131
|
puts "Error when calling SubscriptionsApi->get_subscription_with_http_info: #{e}"
|
132
132
|
end
|
133
133
|
```
|
data/docs/WebhookEndpoint.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
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 =
|
22
|
+
instance = SubfiPay::WebhookEndpoint.new(
|
23
23
|
id: null,
|
24
24
|
event: null,
|
25
25
|
metadata: null,
|
data/docs/WebhookEndpointsApi.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
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
|
-
|
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 =
|
33
|
+
api_instance = SubfiPay::WebhookEndpointsApi.new
|
34
34
|
x_api_version = 'x_api_version_example' # String |
|
35
|
-
create_webhook_endpoint_request =
|
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
|
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
|
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
|
-
|
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 =
|
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
|
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
|
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
|
-
|
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 =
|
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
|
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
|
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
|
-
|
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 =
|
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
|
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
|
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
|
-
|
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 =
|
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 =
|
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
|
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
|
354
|
+
rescue SubfiPay::ApiError => e
|
355
355
|
puts "Error when calling WebhookEndpointsApi->update_webhook_endpoint_with_http_info: #{e}"
|
356
356
|
end
|
357
357
|
```
|
data/docs/WebhookRequest.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
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 =
|
24
|
+
instance = SubfiPay::WebhookRequest.new(
|
25
25
|
id: null,
|
26
26
|
event_id: null,
|
27
27
|
webhook_endpoint_id: null,
|
data/docs/WebhookRequestsApi.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
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
|
-
|
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 =
|
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
|
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
|
59
|
+
rescue SubfiPay::ApiError => e
|
60
60
|
puts "Error when calling WebhookRequestsApi->list_webhook_requests_with_http_info: #{e}"
|
61
61
|
end
|
62
62
|
```
|
data/lib/subfi_pay/api_client.rb
CHANGED
@@ -18,7 +18,7 @@ require 'time'
|
|
18
18
|
require 'typhoeus'
|
19
19
|
|
20
20
|
|
21
|
-
module
|
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 =
|
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
|
data/lib/subfi_pay/api_error.rb
CHANGED
@@ -13,7 +13,7 @@ Generator version: 7.7.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
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 `
|
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 `
|
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 =
|
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
|
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 `
|
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 `
|
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 =
|
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
|
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 `
|
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 `
|
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 =
|
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
|