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
@@ -13,11 +13,11 @@ Generator version: 7.7.0
|
|
13
13
|
require "spec_helper"
|
14
14
|
require "json"
|
15
15
|
|
16
|
-
# Unit tests for
|
16
|
+
# Unit tests for SubfiPay::PaymentMethodsApi
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
18
|
# Please update as you see appropriate
|
19
19
|
describe "PaymentMethodsApi" do
|
20
|
-
let(:api_instance) {
|
20
|
+
let(:api_instance) { SubfiPay::PaymentMethodsApi.new }
|
21
21
|
let(:api_key) { Faker::Alphanumeric.alphanumeric(number: 32) }
|
22
22
|
let(:api_version) { "0.1.0" }
|
23
23
|
let(:account_id) { Faker::Alphanumeric.alphanumeric(number: 32) }
|
@@ -47,7 +47,7 @@ describe "PaymentMethodsApi" do
|
|
47
47
|
end
|
48
48
|
|
49
49
|
before do
|
50
|
-
|
50
|
+
SubfiPay.configure do |c|
|
51
51
|
c.access_token = access_token
|
52
52
|
c.host = "localhost:3000"
|
53
53
|
c.scheme = "http"
|
@@ -56,7 +56,7 @@ describe "PaymentMethodsApi" do
|
|
56
56
|
|
57
57
|
describe "test an instance of PaymentMethodsApi" do
|
58
58
|
it "should create an instance of PaymentMethodsApi" do
|
59
|
-
expect(api_instance).to be_instance_of(
|
59
|
+
expect(api_instance).to be_instance_of(SubfiPay::PaymentMethodsApi)
|
60
60
|
end
|
61
61
|
end
|
62
62
|
|
@@ -86,7 +86,7 @@ describe "PaymentMethodsApi" do
|
|
86
86
|
it "should work" do
|
87
87
|
res = api_instance.get_payment_method(api_version, account_id, id)
|
88
88
|
|
89
|
-
expect(res).to be_a(
|
89
|
+
expect(res).to be_a(SubfiPay::PaymentMethodResponse)
|
90
90
|
expect(a_request(:get, url + "/#{id}").with(headers: request_headers)).to have_been_made.once
|
91
91
|
|
92
92
|
expect(res.billing_address).to be_truthy
|
@@ -100,7 +100,7 @@ describe "PaymentMethodsApi" do
|
|
100
100
|
it "should work" do
|
101
101
|
res = api_instance.get_payment_method(api_version, account_id, id)
|
102
102
|
|
103
|
-
expect(res).to be_a(
|
103
|
+
expect(res).to be_a(SubfiPay::PaymentMethodResponse)
|
104
104
|
expect(a_request(:get, url + "/#{id}").with(headers: request_headers)).to have_been_made.once
|
105
105
|
|
106
106
|
expect(res.billing_address).to be_truthy
|
@@ -133,7 +133,7 @@ describe "PaymentMethodsApi" do
|
|
133
133
|
it "should work" do
|
134
134
|
res = api_instance.list_payment_methods(api_version, account_id, customer_id, { page: page, per_page: per_page })
|
135
135
|
|
136
|
-
expect(res).to be_a(
|
136
|
+
expect(res).to be_a(SubfiPay::ListPaymentMethodsResponse)
|
137
137
|
expect(a_request(:get, url).with(query: { customer_id: customer_id, page: page, per_page: per_page }, headers: request_headers)).to have_been_made.once
|
138
138
|
end
|
139
139
|
end
|
@@ -176,10 +176,10 @@ describe "PaymentMethodsApi" do
|
|
176
176
|
end
|
177
177
|
|
178
178
|
it "should work" do
|
179
|
-
pm =
|
179
|
+
pm = SubfiPay::PaymentMethodAttributes.new(body[:payment_method])
|
180
180
|
res = api_instance.create_payment_method(api_version, account_id, { payment_method: pm.to_hash })
|
181
181
|
|
182
|
-
expect(res).to be_a(
|
182
|
+
expect(res).to be_a(SubfiPay::PaymentMethodResponse)
|
183
183
|
expect(a_request(:post, url).with(body: body.to_json, headers: request_headers)).to have_been_made.once
|
184
184
|
end
|
185
185
|
end
|
@@ -215,10 +215,10 @@ describe "PaymentMethodsApi" do
|
|
215
215
|
end
|
216
216
|
|
217
217
|
it "should work" do
|
218
|
-
pm =
|
218
|
+
pm = SubfiPay::PaymentMethodAttributes.new(body[:payment_method])
|
219
219
|
res = api_instance.create_payment_method(api_version, account_id, { payment_method: pm.to_hash })
|
220
220
|
|
221
|
-
expect(res).to be_a(
|
221
|
+
expect(res).to be_a(SubfiPay::PaymentMethodResponse)
|
222
222
|
expect(a_request(:post, url).with(body: body.to_json, headers: request_headers)).to have_been_made.once
|
223
223
|
end
|
224
224
|
end
|
@@ -13,11 +13,11 @@ Generator version: 7.7.0
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
15
15
|
|
16
|
-
# Unit tests for
|
16
|
+
# Unit tests for SubfiPay::RefundsApi
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
18
|
# Please update as you see appropriate
|
19
19
|
describe 'RefundsApi' do
|
20
|
-
let(:api_instance) {
|
20
|
+
let(:api_instance) { SubfiPay::RefundsApi.new }
|
21
21
|
let(:account_id) { Faker::Alphanumeric.alphanumeric(number: 32) }
|
22
22
|
let(:api_key) { Faker::Alphanumeric.alphanumeric(number: 32) }
|
23
23
|
let(:api_version) { "0.1.0" }
|
@@ -47,7 +47,7 @@ describe 'RefundsApi' do
|
|
47
47
|
|
48
48
|
describe 'test an instance of RefundsApi' do
|
49
49
|
it 'should create an instance of RefundsApi' do
|
50
|
-
expect(api_instance).to be_instance_of(
|
50
|
+
expect(api_instance).to be_instance_of(SubfiPay::RefundsApi)
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
@@ -81,7 +81,7 @@ describe 'RefundsApi' do
|
|
81
81
|
it 'should work' do
|
82
82
|
res = api_instance.create_refund(api_version, account_id, body)
|
83
83
|
|
84
|
-
expect(res).to be_a(
|
84
|
+
expect(res).to be_a(SubfiPay::RefundResponse)
|
85
85
|
expect(a_request(:post, [config.host, path].join).with(headers: request_headers, body: body.to_json)).to have_been_made.once
|
86
86
|
end
|
87
87
|
end
|
@@ -108,7 +108,7 @@ describe 'RefundsApi' do
|
|
108
108
|
it 'should work' do
|
109
109
|
res = api_instance.cancel_refund(api_version, account_id, id)
|
110
110
|
|
111
|
-
expect(res).to be_a(
|
111
|
+
expect(res).to be_a(SubfiPay::RefundResponse)
|
112
112
|
end
|
113
113
|
end
|
114
114
|
|
@@ -129,7 +129,7 @@ describe 'RefundsApi' do
|
|
129
129
|
it 'should work' do
|
130
130
|
res = api_instance.list_refunds(api_version, account_id, charge_id)
|
131
131
|
|
132
|
-
expect(res).to be_a(
|
132
|
+
expect(res).to be_a(SubfiPay::ListRefundsResponse)
|
133
133
|
end
|
134
134
|
|
135
135
|
end
|
@@ -152,7 +152,7 @@ describe 'RefundsApi' do
|
|
152
152
|
it 'should work' do
|
153
153
|
res = api_instance.get_refund(api_version, account_id, id)
|
154
154
|
|
155
|
-
expect(res).to be_a(
|
155
|
+
expect(res).to be_a(SubfiPay::RefundResponse)
|
156
156
|
end
|
157
157
|
end
|
158
158
|
end
|
@@ -13,11 +13,11 @@ Generator version: 7.7.0
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
15
15
|
|
16
|
-
# Unit tests for
|
16
|
+
# Unit tests for SubfiPay::SubscriptionsApi
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
18
|
# Please update as you see appropriate
|
19
19
|
describe 'SubscriptionsApi' do
|
20
|
-
let(:api_instance) {
|
20
|
+
let(:api_instance) { SubfiPay::SubscriptionsApi.new }
|
21
21
|
let(:api_key) { Faker::Alphanumeric.alphanumeric(number: 32) }
|
22
22
|
let(:api_version) { "0.1.0" }
|
23
23
|
let(:account_id) { Faker::Alphanumeric.alphanumeric(number: 32) }
|
@@ -47,7 +47,7 @@ describe 'SubscriptionsApi' do
|
|
47
47
|
|
48
48
|
describe 'test an instance of SubscriptionsApi' do
|
49
49
|
it 'should create an instance of SubscriptionsApi' do
|
50
|
-
expect(api_instance).to be_instance_of(
|
50
|
+
expect(api_instance).to be_instance_of(SubfiPay::SubscriptionsApi)
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
@@ -80,7 +80,7 @@ describe 'SubscriptionsApi' do
|
|
80
80
|
it 'should work' do
|
81
81
|
res = api_instance.create_subscription(api_version, account_id, body)
|
82
82
|
|
83
|
-
expect(res).to be_instance_of(
|
83
|
+
expect(res).to be_instance_of(SubfiPay::SubscriptionResponse)
|
84
84
|
end
|
85
85
|
end
|
86
86
|
|
@@ -106,7 +106,7 @@ describe 'SubscriptionsApi' do
|
|
106
106
|
it 'should work' do
|
107
107
|
res = api_instance.get_subscription(api_version, account_id, subscription_id)
|
108
108
|
|
109
|
-
expect(res).to be_instance_of(
|
109
|
+
expect(res).to be_instance_of(SubfiPay::SubscriptionResponse)
|
110
110
|
end
|
111
111
|
end
|
112
112
|
|
@@ -13,13 +13,13 @@ Generator version: 7.7.0
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
15
15
|
|
16
|
-
# Unit tests for
|
16
|
+
# Unit tests for SubfiPay::WebhookEndpointsApi
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
18
|
# Please update as you see appropriate
|
19
19
|
describe 'WebhookEndpointsApi' do
|
20
|
-
let(:api_instance) {
|
20
|
+
let(:api_instance) { SubfiPay::WebhookEndpointsApi.new }
|
21
21
|
let(:api_key) { Faker::Alphanumeric.alphanumeric(number: 32) }
|
22
|
-
let(:api_version) {
|
22
|
+
let(:api_version) { SubfiPay::VERSION }
|
23
23
|
let(:account_id) { Faker::Alphanumeric.alphanumeric(number: 32) }
|
24
24
|
let(:config) do
|
25
25
|
api_instance.api_client.config.tap do |c|
|
@@ -32,7 +32,7 @@ describe 'WebhookEndpointsApi' do
|
|
32
32
|
let(:request_headers) do
|
33
33
|
{
|
34
34
|
"Content-Type" => "application/json",
|
35
|
-
'X-Api-Version' =>
|
35
|
+
'X-Api-Version' => api_version,
|
36
36
|
'X-Api-Key' => api_key,
|
37
37
|
'Expect' => '',
|
38
38
|
}
|
@@ -46,7 +46,7 @@ describe 'WebhookEndpointsApi' do
|
|
46
46
|
|
47
47
|
describe 'test an instance of WebhookEndpointsApi' do
|
48
48
|
it 'should create an instance of WebhookEndpointsApi' do
|
49
|
-
expect(api_instance).to be_instance_of(
|
49
|
+
expect(api_instance).to be_instance_of(SubfiPay::WebhookEndpointsApi)
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
@@ -79,7 +79,7 @@ describe 'WebhookEndpointsApi' do
|
|
79
79
|
it 'should work' do
|
80
80
|
res = api_instance.create_webhook_endpoint(api_version, account_id, body)
|
81
81
|
|
82
|
-
expect(res).to be_instance_of(
|
82
|
+
expect(res).to be_instance_of(SubfiPay::WebhookEndpoint)
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
@@ -131,7 +131,7 @@ describe 'WebhookEndpointsApi' do
|
|
131
131
|
it 'should work' do
|
132
132
|
res = api_instance.get_webhook_endpoint(api_version, account_id, webhook_endpoint_id)
|
133
133
|
|
134
|
-
expect(res).to be_instance_of(
|
134
|
+
expect(res).to be_instance_of(SubfiPay::WebhookEndpoint)
|
135
135
|
end
|
136
136
|
end
|
137
137
|
|
@@ -156,7 +156,7 @@ describe 'WebhookEndpointsApi' do
|
|
156
156
|
it 'should work' do
|
157
157
|
res = api_instance.list_webhook_endpoints(api_version, account_id)
|
158
158
|
|
159
|
-
expect(res).to be_instance_of(
|
159
|
+
expect(res).to be_instance_of(SubfiPay::ListWebhookEndpointsResponse)
|
160
160
|
end
|
161
161
|
end
|
162
162
|
|
@@ -192,7 +192,7 @@ describe 'WebhookEndpointsApi' do
|
|
192
192
|
it 'should work' do
|
193
193
|
res = api_instance.update_webhook_endpoint(api_version, account_id, webhook_endpoint_id, body)
|
194
194
|
|
195
|
-
expect(res).to be_instance_of(
|
195
|
+
expect(res).to be_instance_of(SubfiPay::WebhookEndpoint)
|
196
196
|
end
|
197
197
|
end
|
198
198
|
end
|
@@ -13,11 +13,11 @@ Generator version: 7.7.0
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
15
15
|
|
16
|
-
# Unit tests for
|
16
|
+
# Unit tests for SubfiPay::WebhookRequestsApi
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
18
|
# Please update as you see appropriate
|
19
19
|
describe 'WebhookRequestsApi' do
|
20
|
-
let(:api_instance) {
|
20
|
+
let(:api_instance) { SubfiPay::WebhookRequestsApi.new }
|
21
21
|
let(:api_key) { Faker::Alphanumeric.alphanumeric(number: 32) }
|
22
22
|
let(:api_version) { "0.1.0" }
|
23
23
|
let(:account_id) { Faker::Number.number(digits: 10) }
|
@@ -47,7 +47,7 @@ describe 'WebhookRequestsApi' do
|
|
47
47
|
|
48
48
|
describe 'test an instance of WebhookRequestsApi' do
|
49
49
|
it 'should create an instance of WebhookRequestsApi' do
|
50
|
-
expect(api_instance).to be_instance_of(
|
50
|
+
expect(api_instance).to be_instance_of(SubfiPay::WebhookRequestsApi)
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
@@ -72,7 +72,7 @@ describe 'WebhookRequestsApi' do
|
|
72
72
|
it 'should work' do
|
73
73
|
res = api_instance.list_webhook_requests(api_version, account_id)
|
74
74
|
|
75
|
-
expect(res).to be_instance_of(
|
75
|
+
expect(res).to be_instance_of(SubfiPay::ListWebhookRequestsResponse)
|
76
76
|
end
|
77
77
|
end
|
78
78
|
|
data/spec/configuration_spec.rb
CHANGED
@@ -2,19 +2,19 @@
|
|
2
2
|
|
3
3
|
require "spec_helper"
|
4
4
|
|
5
|
-
RSpec.describe
|
5
|
+
RSpec.describe SubfiPay::Configuration do
|
6
6
|
let(:api_key) { Faker::Lorem.word }
|
7
7
|
let(:scheme) { "http" }
|
8
8
|
let(:host) { "localhost:3000" }
|
9
9
|
|
10
10
|
it "forwards config to SubFi object" do
|
11
|
-
|
11
|
+
SubfiPay.configure do |config|
|
12
12
|
config.api_key = api_key
|
13
13
|
config.scheme = scheme
|
14
14
|
config.host = host
|
15
15
|
end
|
16
16
|
|
17
|
-
client =
|
17
|
+
client = SubfiPay::ApiClient.new
|
18
18
|
|
19
19
|
expect(client.config.api_key).to eq(api_key)
|
20
20
|
expect(client.config.scheme).to eq(scheme)
|
@@ -14,15 +14,15 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for
|
17
|
+
# Unit tests for SubfiPay::AccessKey
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe
|
21
|
-
let(:instance) {
|
20
|
+
describe SubfiPay::AccessKey do
|
21
|
+
let(:instance) { SubfiPay::AccessKey.new }
|
22
22
|
|
23
23
|
describe 'test an instance of AccessKey' do
|
24
24
|
it 'should create an instance of AccessKey' do
|
25
|
-
expect(instance).to be_instance_of(
|
25
|
+
expect(instance).to be_instance_of(SubfiPay::AccessKey)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
@@ -14,16 +14,16 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for
|
17
|
+
# Unit tests for SubfiPay::AccountAttributes
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe
|
21
|
-
let(:instance) {
|
20
|
+
describe SubfiPay::AccountAttributes do
|
21
|
+
let(:instance) { SubfiPay::AccountAttributes.new }
|
22
22
|
|
23
23
|
describe 'test an instance of AccountAttributes' do
|
24
24
|
it 'should create an instance of AccountAttributes' do
|
25
25
|
# uncomment below to test the instance creation
|
26
|
-
expect(instance).to be_instance_of(
|
26
|
+
expect(instance).to be_instance_of(SubfiPay::AccountAttributes)
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
@@ -14,15 +14,15 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for
|
17
|
+
# Unit tests for SubfiPay::AccountCreateRequest
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe
|
21
|
-
let(:instance) {
|
20
|
+
describe SubfiPay::AccountCreateRequest do
|
21
|
+
let(:instance) { SubfiPay::AccountCreateRequest.new }
|
22
22
|
|
23
23
|
describe 'test an instance of AccountCreateRequest' do
|
24
24
|
it 'should create an instance of AccountCreateRequest' do
|
25
|
-
expect(instance).to be_instance_of(
|
25
|
+
expect(instance).to be_instance_of(SubfiPay::AccountCreateRequest)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
@@ -14,15 +14,15 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for
|
17
|
+
# Unit tests for SubfiPay::AccountResponse
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe
|
21
|
-
let(:instance) {
|
20
|
+
describe SubfiPay::AccountResponse do
|
21
|
+
let(:instance) { SubfiPay::AccountResponse.new }
|
22
22
|
|
23
23
|
describe 'test an instance of AccountResponse' do
|
24
24
|
it 'should create an instance of AccountResponse' do
|
25
|
-
expect(instance).to be_instance_of(
|
25
|
+
expect(instance).to be_instance_of(SubfiPay::AccountResponse)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
@@ -14,15 +14,15 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for
|
17
|
+
# Unit tests for SubfiPay::BalanceTransactionResponse
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe
|
21
|
-
let(:instance) {
|
20
|
+
describe SubfiPay::BalanceTransactionResponse do
|
21
|
+
let(:instance) { SubfiPay::BalanceTransactionResponse.new }
|
22
22
|
|
23
23
|
describe 'test an instance of BalanceTransactionResponse' do
|
24
24
|
it 'should create an instance of BalanceTransactionResponse' do
|
25
|
-
expect(instance).to be_instance_of(
|
25
|
+
expect(instance).to be_instance_of(SubfiPay::BalanceTransactionResponse)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
@@ -14,15 +14,15 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for
|
17
|
+
# Unit tests for SubfiPay::BankAccountProfile
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe
|
21
|
-
let(:instance) {
|
20
|
+
describe SubfiPay::BankAccountProfile do
|
21
|
+
let(:instance) { SubfiPay::BankAccountProfile.new }
|
22
22
|
|
23
23
|
describe 'test an instance of BankAccountProfile' do
|
24
24
|
it 'should create an instance of BankAccountProfile' do
|
25
|
-
expect(instance).to be_instance_of(
|
25
|
+
expect(instance).to be_instance_of(SubfiPay::BankAccountProfile)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
@@ -14,15 +14,15 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for
|
17
|
+
# Unit tests for SubfiPay::BillingAddress
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe
|
21
|
-
let(:instance) {
|
20
|
+
describe SubfiPay::BillingAddress do
|
21
|
+
let(:instance) { SubfiPay::BillingAddress.new }
|
22
22
|
|
23
23
|
describe 'test an instance of BillingAddress' do
|
24
24
|
it 'should create an instance of BillingAddress' do
|
25
|
-
expect(instance).to be_instance_of(
|
25
|
+
expect(instance).to be_instance_of(SubfiPay::BillingAddress)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
@@ -14,15 +14,15 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for
|
17
|
+
# Unit tests for SubfiPay::CardProfile
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe
|
21
|
-
let(:instance) {
|
20
|
+
describe SubfiPay::CardProfile do
|
21
|
+
let(:instance) { SubfiPay::CardProfile.new }
|
22
22
|
|
23
23
|
describe 'test an instance of CardProfile' do
|
24
24
|
it 'should create an instance of CardProfile' do
|
25
|
-
expect(instance).to be_instance_of(
|
25
|
+
expect(instance).to be_instance_of(SubfiPay::CardProfile)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
@@ -14,15 +14,15 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for
|
17
|
+
# Unit tests for SubfiPay::ChargeAttributes
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe
|
21
|
-
let(:instance) {
|
20
|
+
describe SubfiPay::ChargeAttributes do
|
21
|
+
let(:instance) { SubfiPay::ChargeAttributes.new }
|
22
22
|
|
23
23
|
describe 'test an instance of ChargeAttributes' do
|
24
24
|
it 'should create an instance of ChargeAttributes' do
|
25
|
-
expect(instance).to be_instance_of(
|
25
|
+
expect(instance).to be_instance_of(SubfiPay::ChargeAttributes)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
@@ -14,15 +14,15 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for
|
17
|
+
# Unit tests for SubfiPay::ChargeResponse
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe
|
21
|
-
let(:instance) {
|
20
|
+
describe SubfiPay::ChargeResponse do
|
21
|
+
let(:instance) { SubfiPay::ChargeResponse.new }
|
22
22
|
|
23
23
|
describe 'test an instance of ChargeResponse' do
|
24
24
|
it 'should create an instance of ChargeResponse' do
|
25
|
-
expect(instance).to be_instance_of(
|
25
|
+
expect(instance).to be_instance_of(SubfiPay::ChargeResponse)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
@@ -14,15 +14,15 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for
|
17
|
+
# Unit tests for SubfiPay::ConnectedAccountAttributes
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe
|
21
|
-
let(:instance) {
|
20
|
+
describe SubfiPay::ConnectedAccountAttributes do
|
21
|
+
let(:instance) { SubfiPay::ConnectedAccountAttributes.new }
|
22
22
|
|
23
23
|
describe 'test an instance of ConnectedAccountAttributes' do
|
24
24
|
it 'should create an instance of ConnectedAccountAttributes' do
|
25
|
-
expect(instance).to be_instance_of(
|
25
|
+
expect(instance).to be_instance_of(SubfiPay::ConnectedAccountAttributes)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
@@ -14,15 +14,15 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for
|
17
|
+
# Unit tests for SubfiPay::ConnectedAccountResponse
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe
|
21
|
-
let(:instance) {
|
20
|
+
describe SubfiPay::ConnectedAccountResponse do
|
21
|
+
let(:instance) { SubfiPay::ConnectedAccountResponse.new }
|
22
22
|
|
23
23
|
describe 'test an instance of ConnectedAccountResponse' do
|
24
24
|
it 'should create an instance of ConnectedAccountResponse' do
|
25
|
-
expect(instance).to be_instance_of(
|
25
|
+
expect(instance).to be_instance_of(SubfiPay::ConnectedAccountResponse)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
@@ -14,15 +14,15 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for
|
17
|
+
# Unit tests for SubfiPay::AccountAttributes
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe
|
21
|
-
let(:instance) {
|
20
|
+
describe SubfiPay::AccountAttributes do
|
21
|
+
let(:instance) { SubfiPay::AccountAttributes.new }
|
22
22
|
|
23
23
|
describe 'test an instance of AccountAttributes' do
|
24
24
|
it 'should create an instance of AccountAttributes' do
|
25
|
-
expect(instance).to be_instance_of(
|
25
|
+
expect(instance).to be_instance_of(SubfiPay::AccountAttributes)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
@@ -14,15 +14,15 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for
|
17
|
+
# Unit tests for SubfiPay::AccountAttributes
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe
|
21
|
-
let(:instance) {
|
20
|
+
describe SubfiPay::AccountAttributes do
|
21
|
+
let(:instance) { SubfiPay::AccountAttributes.new }
|
22
22
|
|
23
23
|
describe 'test an instance of AccountAttributes' do
|
24
24
|
it 'should create an instance of AccountAttributes' do
|
25
|
-
expect(instance).to be_instance_of(
|
25
|
+
expect(instance).to be_instance_of(SubfiPay::AccountAttributes)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
@@ -14,15 +14,15 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for
|
17
|
+
# Unit tests for SubfiPay::CreateWebhookEndpointRequest
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe
|
21
|
-
let(:instance) {
|
20
|
+
describe SubfiPay::CreateWebhookEndpointRequest do
|
21
|
+
let(:instance) { SubfiPay::CreateWebhookEndpointRequest.new }
|
22
22
|
|
23
23
|
describe 'test an instance of CreateWebhookEndpointRequest' do
|
24
24
|
it 'should create an instance of CreateWebhookEndpointRequest' do
|
25
|
-
expect(instance).to be_instance_of(
|
25
|
+
expect(instance).to be_instance_of(SubfiPay::CreateWebhookEndpointRequest)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
@@ -14,15 +14,15 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for
|
17
|
+
# Unit tests for SubfiPay::CreateWebhookEndpointRequestWebhookEndpoint
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe
|
21
|
-
let(:instance) {
|
20
|
+
describe SubfiPay::CreateWebhookEndpointRequestWebhookEndpoint do
|
21
|
+
let(:instance) { SubfiPay::CreateWebhookEndpointRequestWebhookEndpoint.new }
|
22
22
|
|
23
23
|
describe 'test an instance of CreateWebhookEndpointRequestWebhookEndpoint' do
|
24
24
|
it 'should create an instance of CreateWebhookEndpointRequestWebhookEndpoint' do
|
25
|
-
expect(instance).to be_instance_of(
|
25
|
+
expect(instance).to be_instance_of(SubfiPay::CreateWebhookEndpointRequestWebhookEndpoint)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|