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,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 RollAccessKeyAttributes
|
18
18
|
attr_accessor :access_key
|
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::RollAccessKeyAttributes` 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::RollAccessKeyAttributes`. 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
|
@@ -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 RollAccessKeyAttributesAccessKey
|
18
18
|
attr_accessor :expires_at
|
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::RollAccessKeyAttributesAccessKey` 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::RollAccessKeyAttributesAccessKey`. 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
|
}
|
@@ -165,7 +165,7 @@ module SubFiPay
|
|
165
165
|
end
|
166
166
|
else # model
|
167
167
|
# models (e.g. Pet) or oneOf
|
168
|
-
klass =
|
168
|
+
klass = SubfiPay.const_get(type)
|
169
169
|
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
170
170
|
end
|
171
171
|
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 SubscriptionAttributes
|
18
18
|
attr_accessor :connected_account_id
|
19
19
|
|
@@ -70,13 +70,13 @@ module SubFiPay
|
|
70
70
|
# @param [Hash] attributes Model attributes in the form of hash
|
71
71
|
def initialize(attributes = {})
|
72
72
|
if (!attributes.is_a?(Hash))
|
73
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
73
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::SubscriptionAttributes` initialize method"
|
74
74
|
end
|
75
75
|
|
76
76
|
# check to see if the attribute exists and convert string to symbol for hash key
|
77
77
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
78
78
|
if (!self.class.attribute_map.key?(k.to_sym))
|
79
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
79
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SubfiPay::SubscriptionAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
80
80
|
end
|
81
81
|
h[k.to_sym] = v
|
82
82
|
}
|
@@ -212,7 +212,7 @@ module SubFiPay
|
|
212
212
|
end
|
213
213
|
else # model
|
214
214
|
# models (e.g. Pet) or oneOf
|
215
|
-
klass =
|
215
|
+
klass = SubfiPay.const_get(type)
|
216
216
|
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
217
217
|
end
|
218
218
|
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 SubscriptionCreateRequest
|
18
18
|
attr_accessor :subscription
|
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::SubscriptionCreateRequest` 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::SubscriptionCreateRequest`. 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
|
@@ -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 SubscriptionResponse
|
18
18
|
attr_accessor :connected_account_id
|
19
19
|
|
@@ -82,13 +82,13 @@ module SubFiPay
|
|
82
82
|
# @param [Hash] attributes Model attributes in the form of hash
|
83
83
|
def initialize(attributes = {})
|
84
84
|
if (!attributes.is_a?(Hash))
|
85
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
85
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::SubscriptionResponse` initialize method"
|
86
86
|
end
|
87
87
|
|
88
88
|
# check to see if the attribute exists and convert string to symbol for hash key
|
89
89
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
90
90
|
if (!self.class.attribute_map.key?(k.to_sym))
|
91
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
91
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SubfiPay::SubscriptionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
92
92
|
end
|
93
93
|
h[k.to_sym] = v
|
94
94
|
}
|
@@ -239,7 +239,7 @@ module SubFiPay
|
|
239
239
|
end
|
240
240
|
else # model
|
241
241
|
# models (e.g. Pet) or oneOf
|
242
|
-
klass =
|
242
|
+
klass = SubfiPay.const_get(type)
|
243
243
|
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
244
244
|
end
|
245
245
|
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 WebhookEndpoint
|
18
18
|
attr_accessor :id
|
19
19
|
|
@@ -78,13 +78,13 @@ module SubFiPay
|
|
78
78
|
# @param [Hash] attributes Model attributes in the form of hash
|
79
79
|
def initialize(attributes = {})
|
80
80
|
if (!attributes.is_a?(Hash))
|
81
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
81
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::WebhookEndpoint` initialize method"
|
82
82
|
end
|
83
83
|
|
84
84
|
# check to see if the attribute exists and convert string to symbol for hash key
|
85
85
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
86
86
|
if (!self.class.attribute_map.key?(k.to_sym))
|
87
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
87
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SubfiPay::WebhookEndpoint`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
88
88
|
end
|
89
89
|
h[k.to_sym] = v
|
90
90
|
}
|
@@ -230,7 +230,7 @@ module SubFiPay
|
|
230
230
|
end
|
231
231
|
else # model
|
232
232
|
# models (e.g. Pet) or oneOf
|
233
|
-
klass =
|
233
|
+
klass = SubfiPay.const_get(type)
|
234
234
|
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
235
235
|
end
|
236
236
|
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 WebhookRequest
|
18
18
|
attr_accessor :id
|
19
19
|
|
@@ -86,13 +86,13 @@ module SubFiPay
|
|
86
86
|
# @param [Hash] attributes Model attributes in the form of hash
|
87
87
|
def initialize(attributes = {})
|
88
88
|
if (!attributes.is_a?(Hash))
|
89
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
89
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SubfiPay::WebhookRequest` initialize method"
|
90
90
|
end
|
91
91
|
|
92
92
|
# check to see if the attribute exists and convert string to symbol for hash key
|
93
93
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
94
94
|
if (!self.class.attribute_map.key?(k.to_sym))
|
95
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
95
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SubfiPay::WebhookRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
96
96
|
end
|
97
97
|
h[k.to_sym] = v
|
98
98
|
}
|
@@ -248,7 +248,7 @@ module SubFiPay
|
|
248
248
|
end
|
249
249
|
else # model
|
250
250
|
# models (e.g. Pet) or oneOf
|
251
|
-
klass =
|
251
|
+
klass = SubfiPay.const_get(type)
|
252
252
|
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
253
253
|
end
|
254
254
|
end
|
data/lib/subfi_pay/version.rb
CHANGED
data/lib/subfi_pay.rb
CHANGED
@@ -80,10 +80,10 @@ require 'subfi_pay/api/subscriptions_api'
|
|
80
80
|
require 'subfi_pay/api/webhook_endpoints_api'
|
81
81
|
require 'subfi_pay/api/webhook_requests_api'
|
82
82
|
|
83
|
-
module
|
83
|
+
module SubfiPay
|
84
84
|
class << self
|
85
85
|
# Customize default settings for the SDK using block.
|
86
|
-
#
|
86
|
+
# SubfiPay.configure do |config|
|
87
87
|
# config.username = "xxx"
|
88
88
|
# config.password = "xxx"
|
89
89
|
# 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::AccessKeysApi
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
18
|
# Please update as you see appropriate
|
19
|
-
describe '
|
20
|
-
let(:api_instance) {
|
19
|
+
describe 'SubfiPay::AccessKeysApi' do
|
20
|
+
let(:api_instance) { SubfiPay::AccessKeysApi.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) }
|
@@ -46,7 +46,7 @@ describe 'SubFiPay::AccessKeysApi' do
|
|
46
46
|
|
47
47
|
describe 'test an instance of AccessKeysApi' do
|
48
48
|
it 'should create an instance of AccessKeysApi' do
|
49
|
-
expect(api_instance).to be_instance_of(
|
49
|
+
expect(api_instance).to be_instance_of(SubfiPay::AccessKeysApi)
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
@@ -97,7 +97,7 @@ describe 'SubFiPay::AccessKeysApi' do
|
|
97
97
|
it 'should work' do
|
98
98
|
res = api_instance.list_access_keys(api_version)
|
99
99
|
|
100
|
-
expect(res).to be_instance_of(
|
100
|
+
expect(res).to be_instance_of(SubfiPay::ListAccessKeysResponse)
|
101
101
|
end
|
102
102
|
end
|
103
103
|
|
@@ -131,7 +131,7 @@ describe 'SubFiPay::AccessKeysApi' do
|
|
131
131
|
it 'should work' do
|
132
132
|
res = api_instance.roll_access_key(api_version, access_key_id, body)
|
133
133
|
|
134
|
-
expect(res).to be_instance_of(
|
134
|
+
expect(res).to be_instance_of(SubfiPay::AccessKey)
|
135
135
|
end
|
136
136
|
end
|
137
137
|
|
@@ -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::AccountsApi
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
18
|
# Please update as you see appropriate
|
19
19
|
describe 'AccountsApi' do
|
20
|
-
let(:api_instance) {
|
20
|
+
let(:api_instance) { SubfiPay::AccountsApi.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) }
|
@@ -46,7 +46,7 @@ describe 'AccountsApi' do
|
|
46
46
|
|
47
47
|
describe 'test an instance of AccountsApi' do
|
48
48
|
it 'should create an instance of AccountsApi' do
|
49
|
-
expect(api_instance).to be_instance_of(
|
49
|
+
expect(api_instance).to be_instance_of(SubfiPay::AccountsApi)
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
@@ -80,7 +80,7 @@ describe 'AccountsApi' do
|
|
80
80
|
it 'should work' do
|
81
81
|
res = api_instance.create_account(api_version, body)
|
82
82
|
|
83
|
-
expect(res).to be_instance_of(
|
83
|
+
expect(res).to be_instance_of(SubfiPay::AccountResponse)
|
84
84
|
end
|
85
85
|
end
|
86
86
|
|
@@ -107,7 +107,7 @@ describe 'AccountsApi' do
|
|
107
107
|
it 'should work' do
|
108
108
|
res = api_instance.get_account(api_version, account_id)
|
109
109
|
|
110
|
-
expect(res).to be_instance_of(
|
110
|
+
expect(res).to be_instance_of(SubfiPay::AccountResponse)
|
111
111
|
end
|
112
112
|
end
|
113
113
|
|
@@ -139,7 +139,7 @@ describe 'AccountsApi' do
|
|
139
139
|
it 'should work' do
|
140
140
|
res = api_instance.list_accounts(api_version, page: page, per_page: per_page)
|
141
141
|
|
142
|
-
expect(res).to be_instance_of(
|
142
|
+
expect(res).to be_instance_of(SubfiPay::ListAccountsResponse)
|
143
143
|
end
|
144
144
|
end
|
145
145
|
end
|
@@ -2,7 +2,7 @@ require 'spec_helper'
|
|
2
2
|
require 'json'
|
3
3
|
|
4
4
|
describe 'BalanceTransactionsApi' do
|
5
|
-
let(:api_instance) {
|
5
|
+
let(:api_instance) { SubfiPay::BalanceTransactionsApi.new }
|
6
6
|
let(:api_key) { Faker::Alphanumeric.alphanumeric(number: 32) }
|
7
7
|
let(:api_version) { "0.1.0" }
|
8
8
|
let(:account_id) { Faker::Number.number(digits: 10) }
|
@@ -32,7 +32,7 @@ describe 'BalanceTransactionsApi' do
|
|
32
32
|
|
33
33
|
describe 'test an instance of BalanceTransactionsApi' do
|
34
34
|
it 'should create an instance of BalanceTransactionsApi' do
|
35
|
-
expect(api_instance).to be_instance_of(
|
35
|
+
expect(api_instance).to be_instance_of(SubfiPay::BalanceTransactionsApi)
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
@@ -58,7 +58,7 @@ describe 'BalanceTransactionsApi' do
|
|
58
58
|
res = api_instance.list_balance_transactions(api_version, account_id)
|
59
59
|
|
60
60
|
expect(res.data).to be_a(Array)
|
61
|
-
expect(res.data.first).to be_a(
|
61
|
+
expect(res.data.first).to be_a(SubfiPay::BalanceTransactionResponse)
|
62
62
|
expect(a_request(:get, url).with(headers: request_headers)).to have_been_made.once
|
63
63
|
end
|
64
64
|
end
|
@@ -78,7 +78,7 @@ describe 'BalanceTransactionsApi' do
|
|
78
78
|
res = api_instance.list_balance_transactions(api_version, account_id, page: 1, per_page: 2)
|
79
79
|
|
80
80
|
expect(res.data).to be_a(Array)
|
81
|
-
expect(res.data.first).to be_a(
|
81
|
+
expect(res.data.first).to be_a(SubfiPay::BalanceTransactionResponse)
|
82
82
|
expect(a_request(:get, [url, "?page=1&per_page=2"].join).with(headers: request_headers)).to have_been_made.once
|
83
83
|
end
|
84
84
|
end
|
@@ -2,7 +2,7 @@ require 'spec_helper'
|
|
2
2
|
require 'json'
|
3
3
|
|
4
4
|
describe 'ChargesApi' do
|
5
|
-
let(:api_instance) {
|
5
|
+
let(:api_instance) { SubfiPay::ChargesApi.new }
|
6
6
|
let(:api_key) { Faker::Alphanumeric.alphanumeric(number: 32) }
|
7
7
|
let(:api_version) { "0.1.0" }
|
8
8
|
let(:account_id) { Faker::Alphanumeric.alphanumeric(number: 32) }
|
@@ -32,7 +32,7 @@ describe 'ChargesApi' do
|
|
32
32
|
|
33
33
|
describe 'test an instance of ChargesApi' do
|
34
34
|
it 'should create an instance of ChargesApi' do
|
35
|
-
expect(api_instance).to be_instance_of(
|
35
|
+
expect(api_instance).to be_instance_of(SubfiPay::ChargesApi)
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
@@ -58,7 +58,7 @@ describe 'ChargesApi' do
|
|
58
58
|
res = api_instance.list_charges(api_version, account_id)
|
59
59
|
|
60
60
|
expect(res.data).to be_a(Array)
|
61
|
-
expect(res.data.first).to be_a(
|
61
|
+
expect(res.data.first).to be_a(SubfiPay::ChargeResponse)
|
62
62
|
expect(a_request(:get, [config.host, path].join).with(headers: request_headers)).to have_been_made.once
|
63
63
|
|
64
64
|
expect(res.data.first.amount).to be_truthy
|
@@ -82,7 +82,7 @@ describe 'ChargesApi' do
|
|
82
82
|
res = api_instance.list_charges(api_version, account_id, page: 1, per_page: 2)
|
83
83
|
|
84
84
|
expect(res.data).to be_a(Array)
|
85
|
-
expect(res.data.first).to be_a(
|
85
|
+
expect(res.data.first).to be_a(SubfiPay::ChargeResponse)
|
86
86
|
expect(a_request(:get, [config.host, path, "?page=1&per_page=2"].join).with(headers: request_headers)).to have_been_made.once
|
87
87
|
|
88
88
|
expect(res.data.first.amount).to be_truthy
|
@@ -115,7 +115,7 @@ describe 'ChargesApi' do
|
|
115
115
|
it 'should work' do
|
116
116
|
res = api_instance.get_charge(api_version, account_id, charge_id)
|
117
117
|
|
118
|
-
expect(res).to be_a(
|
118
|
+
expect(res).to be_a(SubfiPay::ChargeResponse)
|
119
119
|
end
|
120
120
|
end
|
121
121
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
2
|
+
#Subfi Pay API
|
3
3
|
|
4
|
-
#API for
|
4
|
+
#API for Subfi Pay services
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
7
7
|
|
@@ -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::CustomersApi
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
18
|
# Please update as you see appropriate
|
19
19
|
describe 'CustomersApi' do
|
20
|
-
let(:api_instance) {
|
20
|
+
let(:api_instance) { SubfiPay::CustomersApi.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 'CustomersApi' 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 'CustomersApi' do
|
|
46
46
|
|
47
47
|
describe 'test an instance of CustomersApi' do
|
48
48
|
it 'should create an instance of CustomersApi' do
|
49
|
-
expect(api_instance).to be_instance_of(
|
49
|
+
expect(api_instance).to be_instance_of(SubfiPay::CustomersApi)
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
@@ -78,7 +78,7 @@ describe 'CustomersApi' do
|
|
78
78
|
|
79
79
|
it 'should work' do
|
80
80
|
res = api_instance.create_customer(api_version, body)
|
81
|
-
expect(res).to be_instance_of(
|
81
|
+
expect(res).to be_instance_of(SubfiPay::Customer)
|
82
82
|
end
|
83
83
|
end
|
84
84
|
|
@@ -103,7 +103,7 @@ describe 'CustomersApi' do
|
|
103
103
|
|
104
104
|
it 'should work' do
|
105
105
|
res = api_instance.get_customer(api_version, account_id, customer_id)
|
106
|
-
expect(res).to be_instance_of(
|
106
|
+
expect(res).to be_instance_of(SubfiPay::Customer)
|
107
107
|
end
|
108
108
|
end
|
109
109
|
|
@@ -127,7 +127,7 @@ describe 'CustomersApi' do
|
|
127
127
|
|
128
128
|
it 'should work' do
|
129
129
|
res = api_instance.list_customers(api_version, account_id)
|
130
|
-
expect(res).to be_instance_of(
|
130
|
+
expect(res).to be_instance_of(SubfiPay::ListCustomersResponse)
|
131
131
|
end
|
132
132
|
end
|
133
133
|
|
data/spec/api/events_api_spec.rb
CHANGED
@@ -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::EventsApi
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
18
|
# Please update as you see appropriate
|
19
19
|
describe 'EventsApi' do
|
20
|
-
let(:api_instance) {
|
20
|
+
let(:api_instance) { SubfiPay::EventsApi.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) }
|
@@ -32,8 +32,9 @@ describe 'EventsApi' do
|
|
32
32
|
let(:request_headers) do
|
33
33
|
{
|
34
34
|
"Content-Type" => "application/json",
|
35
|
-
'X-Api-Version' =>
|
35
|
+
'X-Api-Version' => "0.1.0",
|
36
36
|
'X-Api-Key' => api_key,
|
37
|
+
'X-Account-Id' => account_id,
|
37
38
|
'Expect' => '',
|
38
39
|
}
|
39
40
|
end
|
@@ -46,7 +47,7 @@ describe 'EventsApi' do
|
|
46
47
|
|
47
48
|
describe 'test an instance of EventsApi' do
|
48
49
|
it 'should create an instance of EventsApi' do
|
49
|
-
expect(api_instance).to be_instance_of(
|
50
|
+
expect(api_instance).to be_instance_of(SubfiPay::EventsApi)
|
50
51
|
end
|
51
52
|
end
|
52
53
|
|
@@ -72,7 +73,7 @@ describe 'EventsApi' do
|
|
72
73
|
|
73
74
|
it 'should work' do
|
74
75
|
res = api_instance.get_event(api_version, account_id, event_id)
|
75
|
-
expect(res).to be_instance_of(
|
76
|
+
expect(res).to be_instance_of(SubfiPay::Event)
|
76
77
|
end
|
77
78
|
end
|
78
79
|
|
@@ -98,7 +99,7 @@ describe 'EventsApi' do
|
|
98
99
|
|
99
100
|
it 'should work' do
|
100
101
|
res = api_instance.list_events(api_version, account_id)
|
101
|
-
expect(res).to be_instance_of(
|
102
|
+
expect(res).to be_instance_of(SubfiPay::ListEventsResponse)
|
102
103
|
end
|
103
104
|
end
|
104
105
|
|
@@ -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::PaymentIntentsApi
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
18
|
# Please update as you see appropriate
|
19
19
|
describe 'PaymentIntentsApi' do
|
20
|
-
let(:api_instance) {
|
20
|
+
let(:api_instance) { SubfiPay::PaymentIntentsApi.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) }
|
@@ -46,7 +46,7 @@ describe 'PaymentIntentsApi' do
|
|
46
46
|
|
47
47
|
describe 'test an instance of PaymentIntentsApi' do
|
48
48
|
it 'should create an instance of PaymentIntentsApi' do
|
49
|
-
expect(api_instance).to be_instance_of(
|
49
|
+
expect(api_instance).to be_instance_of(SubfiPay::PaymentIntentsApi)
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
@@ -72,7 +72,7 @@ describe 'PaymentIntentsApi' do
|
|
72
72
|
it 'should work' do
|
73
73
|
res = api_instance.confirm_payment_intent(api_version, account_id, payment_intent_id)
|
74
74
|
|
75
|
-
expect(res).to be_instance_of(
|
75
|
+
expect(res).to be_instance_of(SubfiPay::PaymentIntentResponse)
|
76
76
|
end
|
77
77
|
end
|
78
78
|
|
@@ -98,7 +98,7 @@ describe 'PaymentIntentsApi' do
|
|
98
98
|
it 'should work' do
|
99
99
|
res = api_instance.capture_payment_intent(api_version, account_id, payment_intent_id)
|
100
100
|
|
101
|
-
expect(res).to be_instance_of(
|
101
|
+
expect(res).to be_instance_of(SubfiPay::PaymentIntentResponse)
|
102
102
|
end
|
103
103
|
end
|
104
104
|
|
@@ -124,7 +124,7 @@ describe 'PaymentIntentsApi' do
|
|
124
124
|
it 'should work' do
|
125
125
|
res = api_instance.cancel_payment_intent(api_version, account_id, payment_intent_id)
|
126
126
|
|
127
|
-
expect(res).to be_instance_of(
|
127
|
+
expect(res).to be_instance_of(SubfiPay::PaymentIntentResponse)
|
128
128
|
end
|
129
129
|
end
|
130
130
|
|
@@ -157,7 +157,7 @@ describe 'PaymentIntentsApi' do
|
|
157
157
|
it 'should work' do
|
158
158
|
res = api_instance.create_payment_intent(api_version, account_id, body)
|
159
159
|
|
160
|
-
expect(res).to be_instance_of(
|
160
|
+
expect(res).to be_instance_of(SubfiPay::PaymentIntentResponse)
|
161
161
|
end
|
162
162
|
end
|
163
163
|
|
@@ -183,7 +183,7 @@ describe 'PaymentIntentsApi' do
|
|
183
183
|
it 'should work' do
|
184
184
|
res = api_instance.get_payment_intent(api_version, account_id, payment_intent_id)
|
185
185
|
|
186
|
-
expect(res).to be_instance_of(
|
186
|
+
expect(res).to be_instance_of(SubfiPay::PaymentIntentResponse)
|
187
187
|
end
|
188
188
|
end
|
189
189
|
|
@@ -209,7 +209,7 @@ describe 'PaymentIntentsApi' do
|
|
209
209
|
it 'should work' do
|
210
210
|
res = api_instance.list_payment_intents(api_version, account_id)
|
211
211
|
|
212
|
-
expect(res).to be_instance_of(
|
212
|
+
expect(res).to be_instance_of(SubfiPay::ListPaymentIntentsResponse)
|
213
213
|
end
|
214
214
|
end
|
215
215
|
|
@@ -244,7 +244,7 @@ describe 'PaymentIntentsApi' do
|
|
244
244
|
it 'should work' do
|
245
245
|
res = api_instance.update_payment_intent(api_version, account_id, payment_intent_id, body)
|
246
246
|
|
247
|
-
expect(res).to be_instance_of(
|
247
|
+
expect(res).to be_instance_of(SubfiPay::PaymentIntentResponse)
|
248
248
|
end
|
249
249
|
end
|
250
250
|
end
|