subfi_pay 0.1.0
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 +7 -0
- data/Gemfile +11 -0
- data/Gemfile.lock +101 -0
- data/README.md +188 -0
- data/Rakefile +10 -0
- data/bin/console +11 -0
- data/docs/AccessKey.md +32 -0
- data/docs/AccessKeysApi.md +228 -0
- data/docs/AccountAttributes.md +20 -0
- data/docs/AccountAttributesAccount.md +20 -0
- data/docs/AccountCreateRequest.md +18 -0
- data/docs/AccountResponse.md +26 -0
- data/docs/AccountsApi.md +227 -0
- data/docs/BalanceTransactionAttributes.md +30 -0
- data/docs/BalanceTransactionResponse.md +38 -0
- data/docs/BalanceTransactionsApi.md +87 -0
- data/docs/BankAccountProfile.md +28 -0
- data/docs/BillingAddress.md +36 -0
- data/docs/CardProfile.md +42 -0
- data/docs/ChargeAttributes.md +26 -0
- data/docs/ChargeResponse.md +42 -0
- data/docs/ChargesApi.md +167 -0
- data/docs/ConnectedAccountAttributes.md +20 -0
- data/docs/ConnectedAccountResponse.md +26 -0
- data/docs/CreateAccountRequest.md +18 -0
- data/docs/CreateAccountRequestAccount.md +20 -0
- data/docs/CreateCustomerRequest.md +24 -0
- data/docs/CreateWebhookEndpointRequest.md +18 -0
- data/docs/CreateWebhookEndpointRequestWebhookEndpoint.md +28 -0
- data/docs/Customer.md +26 -0
- data/docs/CustomerAttributes.md +24 -0
- data/docs/CustomerAttributesCustomer.md +24 -0
- data/docs/CustomerCreateRequest.md +18 -0
- data/docs/CustomerUpdateAttributes.md +20 -0
- data/docs/CustomerUpdateAttributesCustomer.md +20 -0
- data/docs/CustomerUpdateRequest.md +18 -0
- data/docs/CustomersApi.md +307 -0
- data/docs/Event.md +30 -0
- data/docs/EventsApi.md +159 -0
- data/docs/ListAccessKeysResponse.md +20 -0
- data/docs/ListAccountsResponse.md +20 -0
- data/docs/ListBalanceTransactionsResponse.md +20 -0
- data/docs/ListChargesResponse.md +20 -0
- data/docs/ListCustomersResponse.md +20 -0
- data/docs/ListEventsResponse.md +20 -0
- data/docs/ListPaymentIntentsResponse.md +20 -0
- data/docs/ListPaymentMethodsResponse.md +20 -0
- data/docs/ListRefundsResponse.md +20 -0
- data/docs/ListWebhookEndpointsResponse.md +20 -0
- data/docs/ListWebhookRequestsResponse.md +20 -0
- data/docs/Meta.md +28 -0
- data/docs/PaymentIntentAttributes.md +26 -0
- data/docs/PaymentIntentAttributesPaymentIntent.md +26 -0
- data/docs/PaymentIntentCreateRequest.md +18 -0
- data/docs/PaymentIntentResponse.md +30 -0
- data/docs/PaymentIntentUpdateAttributes.md +18 -0
- data/docs/PaymentIntentUpdateAttributesPaymentIntent.md +18 -0
- data/docs/PaymentIntentsApi.md +533 -0
- data/docs/PaymentMethodAttributes.md +24 -0
- data/docs/PaymentMethodResponse.md +36 -0
- data/docs/PaymentMethodsApi.md +239 -0
- data/docs/RefundAttributes.md +20 -0
- data/docs/RefundResponse.md +30 -0
- data/docs/RefundsApi.md +311 -0
- data/docs/RollAccessKeyAttributes.md +18 -0
- data/docs/RollAccessKeyAttributesAccessKey.md +18 -0
- data/docs/RollAccessKeyRequest.md +18 -0
- data/docs/RollAccessKeyRequestAccessKey.md +18 -0
- data/docs/SubscriptionAttributes.md +30 -0
- data/docs/SubscriptionAttributesSubscription.md +30 -0
- data/docs/SubscriptionCreateRequest.md +18 -0
- data/docs/SubscriptionCreateRequestSubscription.md +30 -0
- data/docs/SubscriptionResponse.md +36 -0
- data/docs/SubscriptionsApi.md +155 -0
- data/docs/WebhookEndpoint.md +34 -0
- data/docs/WebhookEndpointsApi.md +380 -0
- data/docs/WebhookRequest.md +38 -0
- data/docs/WebhookRequestsApi.md +85 -0
- data/git_push.sh +57 -0
- data/lib/subfi_pay/api/access_keys_api.rb +235 -0
- data/lib/subfi_pay/api/accounts_api.rb +231 -0
- data/lib/subfi_pay/api/balance_transactions_api.rb +100 -0
- data/lib/subfi_pay/api/charges_api.rb +181 -0
- data/lib/subfi_pay/api/customers_api.rb +331 -0
- data/lib/subfi_pay/api/events_api.rb +172 -0
- data/lib/subfi_pay/api/payment_intents_api.rb +566 -0
- data/lib/subfi_pay/api/payment_methods_api.rb +262 -0
- data/lib/subfi_pay/api/refunds_api.rb +334 -0
- data/lib/subfi_pay/api/subscriptions_api.rb +177 -0
- data/lib/subfi_pay/api/webhook_endpoints_api.rb +404 -0
- data/lib/subfi_pay/api/webhook_requests_api.rb +97 -0
- data/lib/subfi_pay/api_client.rb +394 -0
- data/lib/subfi_pay/api_error.rb +58 -0
- data/lib/subfi_pay/configuration.rb +305 -0
- data/lib/subfi_pay/models/access_key.rb +275 -0
- data/lib/subfi_pay/models/account_attributes.rb +221 -0
- data/lib/subfi_pay/models/account_attributes_account.rb +221 -0
- data/lib/subfi_pay/models/account_create_request.rb +212 -0
- data/lib/subfi_pay/models/account_response.rb +248 -0
- data/lib/subfi_pay/models/balance_transaction_attributes.rb +266 -0
- data/lib/subfi_pay/models/balance_transaction_response.rb +303 -0
- data/lib/subfi_pay/models/bank_account_profile.rb +257 -0
- data/lib/subfi_pay/models/billing_address.rb +294 -0
- data/lib/subfi_pay/models/card_profile.rb +324 -0
- data/lib/subfi_pay/models/charge_attributes.rb +265 -0
- data/lib/subfi_pay/models/charge_response.rb +326 -0
- data/lib/subfi_pay/models/connected_account_attributes.rb +235 -0
- data/lib/subfi_pay/models/connected_account_response.rb +248 -0
- data/lib/subfi_pay/models/create_account_request.rb +219 -0
- data/lib/subfi_pay/models/create_account_request_account.rb +221 -0
- data/lib/subfi_pay/models/create_customer_request.rb +239 -0
- data/lib/subfi_pay/models/create_webhook_endpoint_request.rb +212 -0
- data/lib/subfi_pay/models/create_webhook_endpoint_request_webhook_endpoint.rb +257 -0
- data/lib/subfi_pay/models/customer.rb +248 -0
- data/lib/subfi_pay/models/customer_attributes.rb +239 -0
- data/lib/subfi_pay/models/customer_attributes_customer.rb +239 -0
- data/lib/subfi_pay/models/customer_create_request.rb +212 -0
- data/lib/subfi_pay/models/customer_update_attributes.rb +221 -0
- data/lib/subfi_pay/models/customer_update_attributes_customer.rb +221 -0
- data/lib/subfi_pay/models/customer_update_request.rb +212 -0
- data/lib/subfi_pay/models/event.rb +266 -0
- data/lib/subfi_pay/models/list_access_keys_response.rb +223 -0
- data/lib/subfi_pay/models/list_accounts_response.rb +223 -0
- data/lib/subfi_pay/models/list_balance_transactions_response.rb +223 -0
- data/lib/subfi_pay/models/list_charges_response.rb +223 -0
- data/lib/subfi_pay/models/list_customers_response.rb +223 -0
- data/lib/subfi_pay/models/list_events_response.rb +223 -0
- data/lib/subfi_pay/models/list_payment_intents_response.rb +223 -0
- data/lib/subfi_pay/models/list_payment_methods_response.rb +223 -0
- data/lib/subfi_pay/models/list_refunds_response.rb +223 -0
- data/lib/subfi_pay/models/list_webhook_endpoints_response.rb +223 -0
- data/lib/subfi_pay/models/list_webhook_requests_response.rb +223 -0
- data/lib/subfi_pay/models/meta.rb +259 -0
- data/lib/subfi_pay/models/payment_intent_attributes.rb +257 -0
- data/lib/subfi_pay/models/payment_intent_attributes_payment_intent.rb +257 -0
- data/lib/subfi_pay/models/payment_intent_create_request.rb +212 -0
- data/lib/subfi_pay/models/payment_intent_response.rb +268 -0
- data/lib/subfi_pay/models/payment_intent_update_attributes.rb +212 -0
- data/lib/subfi_pay/models/payment_intent_update_attributes_payment_intent.rb +214 -0
- data/lib/subfi_pay/models/payment_method_attributes.rb +246 -0
- data/lib/subfi_pay/models/payment_method_response.rb +296 -0
- data/lib/subfi_pay/models/refund_attributes.rb +228 -0
- data/lib/subfi_pay/models/refund_response.rb +268 -0
- data/lib/subfi_pay/models/roll_access_key_attributes.rb +212 -0
- data/lib/subfi_pay/models/roll_access_key_attributes_access_key.rb +219 -0
- data/lib/subfi_pay/models/roll_access_key_request.rb +212 -0
- data/lib/subfi_pay/models/roll_access_key_request_access_key.rb +219 -0
- data/lib/subfi_pay/models/subscription_attributes.rb +266 -0
- data/lib/subfi_pay/models/subscription_attributes_subscription.rb +266 -0
- data/lib/subfi_pay/models/subscription_create_request.rb +212 -0
- data/lib/subfi_pay/models/subscription_create_request_subscription.rb +266 -0
- data/lib/subfi_pay/models/subscription_response.rb +293 -0
- data/lib/subfi_pay/models/webhook_endpoint.rb +284 -0
- data/lib/subfi_pay/models/webhook_request.rb +302 -0
- data/lib/subfi_pay/version.rb +15 -0
- data/lib/subfi_pay.rb +99 -0
- data/run_fix_gemfile.sh +11 -0
- data/spec/api/access_keys_api_spec.rb +138 -0
- data/spec/api/accounts_api_spec.rb +145 -0
- data/spec/api/balance_transactions_api_spec.rb +86 -0
- data/spec/api/charges_api_spec.rb +121 -0
- data/spec/api/customers_api_spec.rb +134 -0
- data/spec/api/events_api_spec.rb +105 -0
- data/spec/api/payment_intents_api_spec.rb +250 -0
- data/spec/api/payment_methods_api_spec.rb +226 -0
- data/spec/api/refunds_api_spec.rb +158 -0
- data/spec/api/subscriptions_api_spec.rb +113 -0
- data/spec/api/webhook_endpoints_api_spec.rb +198 -0
- data/spec/api/webhook_requests_api_spec.rb +79 -0
- data/spec/configuration_spec.rb +23 -0
- data/spec/fixtures/access_keys/list_200.json +1 -0
- data/spec/fixtures/access_keys/roll_200.json +1 -0
- data/spec/fixtures/accounts/create_201.json +1 -0
- data/spec/fixtures/accounts/list_200.json +1 -0
- data/spec/fixtures/accounts/show_200.json +1 -0
- data/spec/fixtures/balance_transactions/list_200.json +69 -0
- data/spec/fixtures/charges/create_201.json +39 -0
- data/spec/fixtures/charges/list_200.json +1 -0
- data/spec/fixtures/charges/retrieve_200.json +1 -0
- data/spec/fixtures/customers/create_201.json +1 -0
- data/spec/fixtures/customers/list_200.json +1 -0
- data/spec/fixtures/customers/show_200.json +1 -0
- data/spec/fixtures/events/list_200.json +1 -0
- data/spec/fixtures/events/show_200.json +1 -0
- data/spec/fixtures/payment_intents/cancel_200.json +1 -0
- data/spec/fixtures/payment_intents/capture_200.json +1 -0
- data/spec/fixtures/payment_intents/confirm_200.json +1 -0
- data/spec/fixtures/payment_intents/create_201.json +1 -0
- data/spec/fixtures/payment_intents/fetch_200.json +1 -0
- data/spec/fixtures/payment_intents/list_200.json +1 -0
- data/spec/fixtures/payment_intents/update_200.json +1 -0
- data/spec/fixtures/payment_methods/create_bank_account_201.json +1 -0
- data/spec/fixtures/payment_methods/create_card_201.json +1 -0
- data/spec/fixtures/payment_methods/get_bank_account_200.json +29 -0
- data/spec/fixtures/payment_methods/get_card_200.json +1 -0
- data/spec/fixtures/payment_methods/list_200.json +1 -0
- data/spec/fixtures/refunds/create_201.json +1 -0
- data/spec/fixtures/refunds/list_200.json +1 -0
- data/spec/fixtures/refunds/show_200.json +1 -0
- data/spec/fixtures/subscriptions/create_201.json +1 -0
- data/spec/fixtures/subscriptions/show_200.json +1 -0
- data/spec/fixtures/webhook_endpoints/create_201.json +11 -0
- data/spec/fixtures/webhook_endpoints/list_200.json +1 -0
- data/spec/fixtures/webhook_endpoints/show_200.json +1 -0
- data/spec/fixtures/webhook_endpoints/update_200.json +13 -0
- data/spec/fixtures/webhook_requests/list_200.json +1 -0
- data/spec/models/access_key_spec.rb +39 -0
- data/spec/models/account_attributes_spec.rb +40 -0
- data/spec/models/account_create_request_spec.rb +38 -0
- data/spec/models/account_response_spec.rb +39 -0
- data/spec/models/balance_transaction_response_spec.rb +38 -0
- data/spec/models/bank_account_profile_spec.rb +38 -0
- data/spec/models/billing_address_spec.rb +38 -0
- data/spec/models/card_profile_spec.rb +38 -0
- data/spec/models/charge_attributes_spec.rb +45 -0
- data/spec/models/charge_response_spec.rb +45 -0
- data/spec/models/connected_account_attributes_spec.rb +38 -0
- data/spec/models/connected_account_response_spec.rb +39 -0
- data/spec/models/create_account_request_account_spec.rb +39 -0
- data/spec/models/create_account_request_spec.rb +39 -0
- data/spec/models/create_webhook_endpoint_request_spec.rb +38 -0
- data/spec/models/create_webhook_endpoint_request_webhook_endpoint_spec.rb +38 -0
- data/spec/models/customer_attributes_spec.rb +40 -0
- data/spec/models/customer_create_request_spec.rb +38 -0
- data/spec/models/customer_spec.rb +39 -0
- data/spec/models/customer_update_attributes_spec.rb +39 -0
- data/spec/models/customer_update_request_spec.rb +39 -0
- data/spec/models/event_spec.rb +39 -0
- data/spec/models/list_access_keys_response_spec.rb +38 -0
- data/spec/models/list_accounts_response_spec.rb +38 -0
- data/spec/models/list_balance_transactions_response_spec.rb +38 -0
- data/spec/models/list_charges_response_spec.rb +38 -0
- data/spec/models/list_customers_response_spec.rb +39 -0
- data/spec/models/list_events_response_spec.rb +38 -0
- data/spec/models/list_payment_intents_response_spec.rb +45 -0
- data/spec/models/list_payment_methods_response_spec.rb +39 -0
- data/spec/models/list_refunds_response_spec.rb +38 -0
- data/spec/models/list_webhook_endpoints_response_spec.rb +38 -0
- data/spec/models/list_webhook_requests_response_spec.rb +39 -0
- data/spec/models/meta_spec.rb +38 -0
- data/spec/models/payment_intent_attributes_spec.rb +44 -0
- data/spec/models/payment_intent_create_request_spec.rb +38 -0
- data/spec/models/payment_intent_response_spec.rb +45 -0
- data/spec/models/payment_intent_update_attributes_payment_intent_spec.rb +38 -0
- data/spec/models/payment_intent_update_attributes_spec.rb +37 -0
- data/spec/models/payment_method_attributes_spec.rb +38 -0
- data/spec/models/payment_method_response_spec.rb +38 -0
- data/spec/models/refund_attributes_spec.rb +39 -0
- data/spec/models/refund_response_spec.rb +38 -0
- data/spec/models/roll_access_key_attributes_access_key_spec.rb +39 -0
- data/spec/models/roll_access_key_attributes_spec.rb +40 -0
- data/spec/models/roll_access_key_request_access_key_spec.rb +38 -0
- data/spec/models/roll_access_key_request_spec.rb +37 -0
- data/spec/models/subscription_attributes_spec.rb +38 -0
- data/spec/models/subscription_create_request_spec.rb +40 -0
- data/spec/models/subscription_response_spec.rb +38 -0
- data/spec/models/webhook_endpoint_spec.rb +40 -0
- data/spec/models/webhook_request_spec.rb +40 -0
- data/spec/spec_helper.rb +123 -0
- data/subfi_pay.gemspec +39 -0
- metadata +444 -0
@@ -0,0 +1,566 @@
|
|
1
|
+
=begin
|
2
|
+
#SubFi Pay API
|
3
|
+
|
4
|
+
#API for SubFi Pay services
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.1.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.7.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module SubFiPay
|
16
|
+
class PaymentIntentsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Cancel a payment intent
|
23
|
+
# @param x_api_version [String]
|
24
|
+
# @param x_account_id [String]
|
25
|
+
# @param id [String] The ID of the payment intent to cancel
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [PaymentIntentResponse]
|
28
|
+
def cancel_payment_intent(x_api_version, x_account_id, id, opts = {})
|
29
|
+
data, _status_code, _headers = cancel_payment_intent_with_http_info(x_api_version, x_account_id, id, opts)
|
30
|
+
data
|
31
|
+
end
|
32
|
+
|
33
|
+
# Cancel a payment intent
|
34
|
+
# @param x_api_version [String]
|
35
|
+
# @param x_account_id [String]
|
36
|
+
# @param id [String] The ID of the payment intent to cancel
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @return [Array<(PaymentIntentResponse, Integer, Hash)>] PaymentIntentResponse data, response status code and response headers
|
39
|
+
def cancel_payment_intent_with_http_info(x_api_version, x_account_id, id, opts = {})
|
40
|
+
if @api_client.config.debugging
|
41
|
+
@api_client.config.logger.debug 'Calling API: PaymentIntentsApi.cancel_payment_intent ...'
|
42
|
+
end
|
43
|
+
# verify the required parameter 'x_api_version' is set
|
44
|
+
if @api_client.config.client_side_validation && x_api_version.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'x_api_version' when calling PaymentIntentsApi.cancel_payment_intent"
|
46
|
+
end
|
47
|
+
# verify the required parameter 'x_account_id' is set
|
48
|
+
if @api_client.config.client_side_validation && x_account_id.nil?
|
49
|
+
fail ArgumentError, "Missing the required parameter 'x_account_id' when calling PaymentIntentsApi.cancel_payment_intent"
|
50
|
+
end
|
51
|
+
# verify the required parameter 'id' is set
|
52
|
+
if @api_client.config.client_side_validation && id.nil?
|
53
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PaymentIntentsApi.cancel_payment_intent"
|
54
|
+
end
|
55
|
+
# resource path
|
56
|
+
local_var_path = '/payment_intents/{id}/cancel'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
57
|
+
|
58
|
+
# query parameters
|
59
|
+
query_params = opts[:query_params] || {}
|
60
|
+
|
61
|
+
# header parameters
|
62
|
+
header_params = opts[:header_params] || {}
|
63
|
+
# HTTP header 'Accept' (if needed)
|
64
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
65
|
+
header_params[:'X-Api-Version'] = x_api_version
|
66
|
+
header_params[:'X-Account-Id'] = x_account_id
|
67
|
+
|
68
|
+
# form parameters
|
69
|
+
form_params = opts[:form_params] || {}
|
70
|
+
|
71
|
+
# http body (model)
|
72
|
+
post_body = opts[:debug_body]
|
73
|
+
|
74
|
+
# return_type
|
75
|
+
return_type = opts[:debug_return_type] || 'PaymentIntentResponse'
|
76
|
+
|
77
|
+
# auth_names
|
78
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
79
|
+
|
80
|
+
new_options = opts.merge(
|
81
|
+
:operation => :"PaymentIntentsApi.cancel_payment_intent",
|
82
|
+
:header_params => header_params,
|
83
|
+
:query_params => query_params,
|
84
|
+
:form_params => form_params,
|
85
|
+
:body => post_body,
|
86
|
+
:auth_names => auth_names,
|
87
|
+
:return_type => return_type
|
88
|
+
)
|
89
|
+
|
90
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
91
|
+
if @api_client.config.debugging
|
92
|
+
@api_client.config.logger.debug "API called: PaymentIntentsApi#cancel_payment_intent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
93
|
+
end
|
94
|
+
return data, status_code, headers
|
95
|
+
end
|
96
|
+
|
97
|
+
# Capture a payment intent
|
98
|
+
# @param x_api_version [String]
|
99
|
+
# @param x_account_id [String]
|
100
|
+
# @param id [String] The ID of the payment intent to capture
|
101
|
+
# @param [Hash] opts the optional parameters
|
102
|
+
# @return [PaymentIntentResponse]
|
103
|
+
def capture_payment_intent(x_api_version, x_account_id, id, opts = {})
|
104
|
+
data, _status_code, _headers = capture_payment_intent_with_http_info(x_api_version, x_account_id, id, opts)
|
105
|
+
data
|
106
|
+
end
|
107
|
+
|
108
|
+
# Capture a payment intent
|
109
|
+
# @param x_api_version [String]
|
110
|
+
# @param x_account_id [String]
|
111
|
+
# @param id [String] The ID of the payment intent to capture
|
112
|
+
# @param [Hash] opts the optional parameters
|
113
|
+
# @return [Array<(PaymentIntentResponse, Integer, Hash)>] PaymentIntentResponse data, response status code and response headers
|
114
|
+
def capture_payment_intent_with_http_info(x_api_version, x_account_id, id, opts = {})
|
115
|
+
if @api_client.config.debugging
|
116
|
+
@api_client.config.logger.debug 'Calling API: PaymentIntentsApi.capture_payment_intent ...'
|
117
|
+
end
|
118
|
+
# verify the required parameter 'x_api_version' is set
|
119
|
+
if @api_client.config.client_side_validation && x_api_version.nil?
|
120
|
+
fail ArgumentError, "Missing the required parameter 'x_api_version' when calling PaymentIntentsApi.capture_payment_intent"
|
121
|
+
end
|
122
|
+
# verify the required parameter 'x_account_id' is set
|
123
|
+
if @api_client.config.client_side_validation && x_account_id.nil?
|
124
|
+
fail ArgumentError, "Missing the required parameter 'x_account_id' when calling PaymentIntentsApi.capture_payment_intent"
|
125
|
+
end
|
126
|
+
# verify the required parameter 'id' is set
|
127
|
+
if @api_client.config.client_side_validation && id.nil?
|
128
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PaymentIntentsApi.capture_payment_intent"
|
129
|
+
end
|
130
|
+
# resource path
|
131
|
+
local_var_path = '/payment_intents/{id}/capture'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
132
|
+
|
133
|
+
# query parameters
|
134
|
+
query_params = opts[:query_params] || {}
|
135
|
+
|
136
|
+
# header parameters
|
137
|
+
header_params = opts[:header_params] || {}
|
138
|
+
# HTTP header 'Accept' (if needed)
|
139
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
140
|
+
header_params[:'X-Api-Version'] = x_api_version
|
141
|
+
header_params[:'X-Account-Id'] = x_account_id
|
142
|
+
|
143
|
+
# form parameters
|
144
|
+
form_params = opts[:form_params] || {}
|
145
|
+
|
146
|
+
# http body (model)
|
147
|
+
post_body = opts[:debug_body]
|
148
|
+
|
149
|
+
# return_type
|
150
|
+
return_type = opts[:debug_return_type] || 'PaymentIntentResponse'
|
151
|
+
|
152
|
+
# auth_names
|
153
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
154
|
+
|
155
|
+
new_options = opts.merge(
|
156
|
+
:operation => :"PaymentIntentsApi.capture_payment_intent",
|
157
|
+
:header_params => header_params,
|
158
|
+
:query_params => query_params,
|
159
|
+
:form_params => form_params,
|
160
|
+
:body => post_body,
|
161
|
+
:auth_names => auth_names,
|
162
|
+
:return_type => return_type
|
163
|
+
)
|
164
|
+
|
165
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
166
|
+
if @api_client.config.debugging
|
167
|
+
@api_client.config.logger.debug "API called: PaymentIntentsApi#capture_payment_intent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
168
|
+
end
|
169
|
+
return data, status_code, headers
|
170
|
+
end
|
171
|
+
|
172
|
+
# Confirm a payment intent
|
173
|
+
# @param x_api_version [String]
|
174
|
+
# @param x_account_id [String]
|
175
|
+
# @param id [String] The ID of the payment intent to confirm
|
176
|
+
# @param [Hash] opts the optional parameters
|
177
|
+
# @return [PaymentIntentResponse]
|
178
|
+
def confirm_payment_intent(x_api_version, x_account_id, id, opts = {})
|
179
|
+
data, _status_code, _headers = confirm_payment_intent_with_http_info(x_api_version, x_account_id, id, opts)
|
180
|
+
data
|
181
|
+
end
|
182
|
+
|
183
|
+
# Confirm a payment intent
|
184
|
+
# @param x_api_version [String]
|
185
|
+
# @param x_account_id [String]
|
186
|
+
# @param id [String] The ID of the payment intent to confirm
|
187
|
+
# @param [Hash] opts the optional parameters
|
188
|
+
# @return [Array<(PaymentIntentResponse, Integer, Hash)>] PaymentIntentResponse data, response status code and response headers
|
189
|
+
def confirm_payment_intent_with_http_info(x_api_version, x_account_id, id, opts = {})
|
190
|
+
if @api_client.config.debugging
|
191
|
+
@api_client.config.logger.debug 'Calling API: PaymentIntentsApi.confirm_payment_intent ...'
|
192
|
+
end
|
193
|
+
# verify the required parameter 'x_api_version' is set
|
194
|
+
if @api_client.config.client_side_validation && x_api_version.nil?
|
195
|
+
fail ArgumentError, "Missing the required parameter 'x_api_version' when calling PaymentIntentsApi.confirm_payment_intent"
|
196
|
+
end
|
197
|
+
# verify the required parameter 'x_account_id' is set
|
198
|
+
if @api_client.config.client_side_validation && x_account_id.nil?
|
199
|
+
fail ArgumentError, "Missing the required parameter 'x_account_id' when calling PaymentIntentsApi.confirm_payment_intent"
|
200
|
+
end
|
201
|
+
# verify the required parameter 'id' is set
|
202
|
+
if @api_client.config.client_side_validation && id.nil?
|
203
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PaymentIntentsApi.confirm_payment_intent"
|
204
|
+
end
|
205
|
+
# resource path
|
206
|
+
local_var_path = '/payment_intents/{id}/confirm'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
207
|
+
|
208
|
+
# query parameters
|
209
|
+
query_params = opts[:query_params] || {}
|
210
|
+
|
211
|
+
# header parameters
|
212
|
+
header_params = opts[:header_params] || {}
|
213
|
+
# HTTP header 'Accept' (if needed)
|
214
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
215
|
+
header_params[:'X-Api-Version'] = x_api_version
|
216
|
+
header_params[:'X-Account-Id'] = x_account_id
|
217
|
+
|
218
|
+
# form parameters
|
219
|
+
form_params = opts[:form_params] || {}
|
220
|
+
|
221
|
+
# http body (model)
|
222
|
+
post_body = opts[:debug_body]
|
223
|
+
|
224
|
+
# return_type
|
225
|
+
return_type = opts[:debug_return_type] || 'PaymentIntentResponse'
|
226
|
+
|
227
|
+
# auth_names
|
228
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
229
|
+
|
230
|
+
new_options = opts.merge(
|
231
|
+
:operation => :"PaymentIntentsApi.confirm_payment_intent",
|
232
|
+
:header_params => header_params,
|
233
|
+
:query_params => query_params,
|
234
|
+
:form_params => form_params,
|
235
|
+
:body => post_body,
|
236
|
+
:auth_names => auth_names,
|
237
|
+
:return_type => return_type
|
238
|
+
)
|
239
|
+
|
240
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
241
|
+
if @api_client.config.debugging
|
242
|
+
@api_client.config.logger.debug "API called: PaymentIntentsApi#confirm_payment_intent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
243
|
+
end
|
244
|
+
return data, status_code, headers
|
245
|
+
end
|
246
|
+
|
247
|
+
# Create a new payment intent
|
248
|
+
# @param x_api_version [String]
|
249
|
+
# @param x_account_id [String]
|
250
|
+
# @param payment_intent_create_request [PaymentIntentCreateRequest]
|
251
|
+
# @param [Hash] opts the optional parameters
|
252
|
+
# @return [PaymentIntentResponse]
|
253
|
+
def create_payment_intent(x_api_version, x_account_id, payment_intent_create_request, opts = {})
|
254
|
+
data, _status_code, _headers = create_payment_intent_with_http_info(x_api_version, x_account_id, payment_intent_create_request, opts)
|
255
|
+
data
|
256
|
+
end
|
257
|
+
|
258
|
+
# Create a new payment intent
|
259
|
+
# @param x_api_version [String]
|
260
|
+
# @param x_account_id [String]
|
261
|
+
# @param payment_intent_create_request [PaymentIntentCreateRequest]
|
262
|
+
# @param [Hash] opts the optional parameters
|
263
|
+
# @return [Array<(PaymentIntentResponse, Integer, Hash)>] PaymentIntentResponse data, response status code and response headers
|
264
|
+
def create_payment_intent_with_http_info(x_api_version, x_account_id, payment_intent_create_request, opts = {})
|
265
|
+
if @api_client.config.debugging
|
266
|
+
@api_client.config.logger.debug 'Calling API: PaymentIntentsApi.create_payment_intent ...'
|
267
|
+
end
|
268
|
+
# verify the required parameter 'x_api_version' is set
|
269
|
+
if @api_client.config.client_side_validation && x_api_version.nil?
|
270
|
+
fail ArgumentError, "Missing the required parameter 'x_api_version' when calling PaymentIntentsApi.create_payment_intent"
|
271
|
+
end
|
272
|
+
# verify the required parameter 'x_account_id' is set
|
273
|
+
if @api_client.config.client_side_validation && x_account_id.nil?
|
274
|
+
fail ArgumentError, "Missing the required parameter 'x_account_id' when calling PaymentIntentsApi.create_payment_intent"
|
275
|
+
end
|
276
|
+
# verify the required parameter 'payment_intent_create_request' is set
|
277
|
+
if @api_client.config.client_side_validation && payment_intent_create_request.nil?
|
278
|
+
fail ArgumentError, "Missing the required parameter 'payment_intent_create_request' when calling PaymentIntentsApi.create_payment_intent"
|
279
|
+
end
|
280
|
+
# resource path
|
281
|
+
local_var_path = '/payment_intents'
|
282
|
+
|
283
|
+
# query parameters
|
284
|
+
query_params = opts[:query_params] || {}
|
285
|
+
|
286
|
+
# header parameters
|
287
|
+
header_params = opts[:header_params] || {}
|
288
|
+
# HTTP header 'Accept' (if needed)
|
289
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
290
|
+
# HTTP header 'Content-Type'
|
291
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
292
|
+
if !content_type.nil?
|
293
|
+
header_params['Content-Type'] = content_type
|
294
|
+
end
|
295
|
+
header_params[:'X-Api-Version'] = x_api_version
|
296
|
+
header_params[:'X-Account-Id'] = x_account_id
|
297
|
+
|
298
|
+
# form parameters
|
299
|
+
form_params = opts[:form_params] || {}
|
300
|
+
|
301
|
+
# http body (model)
|
302
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(payment_intent_create_request)
|
303
|
+
|
304
|
+
# return_type
|
305
|
+
return_type = opts[:debug_return_type] || 'PaymentIntentResponse'
|
306
|
+
|
307
|
+
# auth_names
|
308
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
309
|
+
|
310
|
+
new_options = opts.merge(
|
311
|
+
:operation => :"PaymentIntentsApi.create_payment_intent",
|
312
|
+
:header_params => header_params,
|
313
|
+
:query_params => query_params,
|
314
|
+
:form_params => form_params,
|
315
|
+
:body => post_body,
|
316
|
+
:auth_names => auth_names,
|
317
|
+
:return_type => return_type
|
318
|
+
)
|
319
|
+
|
320
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
321
|
+
if @api_client.config.debugging
|
322
|
+
@api_client.config.logger.debug "API called: PaymentIntentsApi#create_payment_intent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
323
|
+
end
|
324
|
+
return data, status_code, headers
|
325
|
+
end
|
326
|
+
|
327
|
+
# Retrieve a payment intent by ID
|
328
|
+
# @param x_api_version [String]
|
329
|
+
# @param x_account_id [String]
|
330
|
+
# @param id [String] The ID of the payment intent to retrieve
|
331
|
+
# @param [Hash] opts the optional parameters
|
332
|
+
# @return [PaymentIntentResponse]
|
333
|
+
def get_payment_intent(x_api_version, x_account_id, id, opts = {})
|
334
|
+
data, _status_code, _headers = get_payment_intent_with_http_info(x_api_version, x_account_id, id, opts)
|
335
|
+
data
|
336
|
+
end
|
337
|
+
|
338
|
+
# Retrieve a payment intent by ID
|
339
|
+
# @param x_api_version [String]
|
340
|
+
# @param x_account_id [String]
|
341
|
+
# @param id [String] The ID of the payment intent to retrieve
|
342
|
+
# @param [Hash] opts the optional parameters
|
343
|
+
# @return [Array<(PaymentIntentResponse, Integer, Hash)>] PaymentIntentResponse data, response status code and response headers
|
344
|
+
def get_payment_intent_with_http_info(x_api_version, x_account_id, id, opts = {})
|
345
|
+
if @api_client.config.debugging
|
346
|
+
@api_client.config.logger.debug 'Calling API: PaymentIntentsApi.get_payment_intent ...'
|
347
|
+
end
|
348
|
+
# verify the required parameter 'x_api_version' is set
|
349
|
+
if @api_client.config.client_side_validation && x_api_version.nil?
|
350
|
+
fail ArgumentError, "Missing the required parameter 'x_api_version' when calling PaymentIntentsApi.get_payment_intent"
|
351
|
+
end
|
352
|
+
# verify the required parameter 'x_account_id' is set
|
353
|
+
if @api_client.config.client_side_validation && x_account_id.nil?
|
354
|
+
fail ArgumentError, "Missing the required parameter 'x_account_id' when calling PaymentIntentsApi.get_payment_intent"
|
355
|
+
end
|
356
|
+
# verify the required parameter 'id' is set
|
357
|
+
if @api_client.config.client_side_validation && id.nil?
|
358
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PaymentIntentsApi.get_payment_intent"
|
359
|
+
end
|
360
|
+
# resource path
|
361
|
+
local_var_path = '/payment_intents/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
362
|
+
|
363
|
+
# query parameters
|
364
|
+
query_params = opts[:query_params] || {}
|
365
|
+
|
366
|
+
# header parameters
|
367
|
+
header_params = opts[:header_params] || {}
|
368
|
+
# HTTP header 'Accept' (if needed)
|
369
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
370
|
+
header_params[:'X-Api-Version'] = x_api_version
|
371
|
+
header_params[:'X-Account-Id'] = x_account_id
|
372
|
+
|
373
|
+
# form parameters
|
374
|
+
form_params = opts[:form_params] || {}
|
375
|
+
|
376
|
+
# http body (model)
|
377
|
+
post_body = opts[:debug_body]
|
378
|
+
|
379
|
+
# return_type
|
380
|
+
return_type = opts[:debug_return_type] || 'PaymentIntentResponse'
|
381
|
+
|
382
|
+
# auth_names
|
383
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
384
|
+
|
385
|
+
new_options = opts.merge(
|
386
|
+
:operation => :"PaymentIntentsApi.get_payment_intent",
|
387
|
+
:header_params => header_params,
|
388
|
+
:query_params => query_params,
|
389
|
+
:form_params => form_params,
|
390
|
+
:body => post_body,
|
391
|
+
:auth_names => auth_names,
|
392
|
+
:return_type => return_type
|
393
|
+
)
|
394
|
+
|
395
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
396
|
+
if @api_client.config.debugging
|
397
|
+
@api_client.config.logger.debug "API called: PaymentIntentsApi#get_payment_intent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
398
|
+
end
|
399
|
+
return data, status_code, headers
|
400
|
+
end
|
401
|
+
|
402
|
+
# List payment intents
|
403
|
+
# @param x_api_version [String]
|
404
|
+
# @param x_account_id [String]
|
405
|
+
# @param [Hash] opts the optional parameters
|
406
|
+
# @option opts [Integer] :page The page of results to retrieve.
|
407
|
+
# @option opts [Integer] :per_page Number of results per page.
|
408
|
+
# @option opts [String] :connected_account_id Filter results by sub_merchant ID.
|
409
|
+
# @return [ListPaymentIntentsResponse]
|
410
|
+
def list_payment_intents(x_api_version, x_account_id, opts = {})
|
411
|
+
data, _status_code, _headers = list_payment_intents_with_http_info(x_api_version, x_account_id, opts)
|
412
|
+
data
|
413
|
+
end
|
414
|
+
|
415
|
+
# List payment intents
|
416
|
+
# @param x_api_version [String]
|
417
|
+
# @param x_account_id [String]
|
418
|
+
# @param [Hash] opts the optional parameters
|
419
|
+
# @option opts [Integer] :page The page of results to retrieve.
|
420
|
+
# @option opts [Integer] :per_page Number of results per page.
|
421
|
+
# @option opts [String] :connected_account_id Filter results by sub_merchant ID.
|
422
|
+
# @return [Array<(ListPaymentIntentsResponse, Integer, Hash)>] ListPaymentIntentsResponse data, response status code and response headers
|
423
|
+
def list_payment_intents_with_http_info(x_api_version, x_account_id, opts = {})
|
424
|
+
if @api_client.config.debugging
|
425
|
+
@api_client.config.logger.debug 'Calling API: PaymentIntentsApi.list_payment_intents ...'
|
426
|
+
end
|
427
|
+
# verify the required parameter 'x_api_version' is set
|
428
|
+
if @api_client.config.client_side_validation && x_api_version.nil?
|
429
|
+
fail ArgumentError, "Missing the required parameter 'x_api_version' when calling PaymentIntentsApi.list_payment_intents"
|
430
|
+
end
|
431
|
+
# verify the required parameter 'x_account_id' is set
|
432
|
+
if @api_client.config.client_side_validation && x_account_id.nil?
|
433
|
+
fail ArgumentError, "Missing the required parameter 'x_account_id' when calling PaymentIntentsApi.list_payment_intents"
|
434
|
+
end
|
435
|
+
# resource path
|
436
|
+
local_var_path = '/payment_intents'
|
437
|
+
|
438
|
+
# query parameters
|
439
|
+
query_params = opts[:query_params] || {}
|
440
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
441
|
+
query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
|
442
|
+
query_params[:'connected_account_id'] = opts[:'connected_account_id'] if !opts[:'connected_account_id'].nil?
|
443
|
+
|
444
|
+
# header parameters
|
445
|
+
header_params = opts[:header_params] || {}
|
446
|
+
# HTTP header 'Accept' (if needed)
|
447
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
448
|
+
header_params[:'X-Api-Version'] = x_api_version
|
449
|
+
header_params[:'X-Account-Id'] = x_account_id
|
450
|
+
|
451
|
+
# form parameters
|
452
|
+
form_params = opts[:form_params] || {}
|
453
|
+
|
454
|
+
# http body (model)
|
455
|
+
post_body = opts[:debug_body]
|
456
|
+
|
457
|
+
# return_type
|
458
|
+
return_type = opts[:debug_return_type] || 'ListPaymentIntentsResponse'
|
459
|
+
|
460
|
+
# auth_names
|
461
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
462
|
+
|
463
|
+
new_options = opts.merge(
|
464
|
+
:operation => :"PaymentIntentsApi.list_payment_intents",
|
465
|
+
:header_params => header_params,
|
466
|
+
:query_params => query_params,
|
467
|
+
:form_params => form_params,
|
468
|
+
:body => post_body,
|
469
|
+
:auth_names => auth_names,
|
470
|
+
:return_type => return_type
|
471
|
+
)
|
472
|
+
|
473
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
474
|
+
if @api_client.config.debugging
|
475
|
+
@api_client.config.logger.debug "API called: PaymentIntentsApi#list_payment_intents\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
476
|
+
end
|
477
|
+
return data, status_code, headers
|
478
|
+
end
|
479
|
+
|
480
|
+
# Update a payment intent
|
481
|
+
# @param x_api_version [String]
|
482
|
+
# @param x_account_id [String]
|
483
|
+
# @param id [String] The ID of the payment intent to update
|
484
|
+
# @param payment_intent_update_attributes [PaymentIntentUpdateAttributes]
|
485
|
+
# @param [Hash] opts the optional parameters
|
486
|
+
# @return [PaymentIntentResponse]
|
487
|
+
def update_payment_intent(x_api_version, x_account_id, id, payment_intent_update_attributes, opts = {})
|
488
|
+
data, _status_code, _headers = update_payment_intent_with_http_info(x_api_version, x_account_id, id, payment_intent_update_attributes, opts)
|
489
|
+
data
|
490
|
+
end
|
491
|
+
|
492
|
+
# Update a payment intent
|
493
|
+
# @param x_api_version [String]
|
494
|
+
# @param x_account_id [String]
|
495
|
+
# @param id [String] The ID of the payment intent to update
|
496
|
+
# @param payment_intent_update_attributes [PaymentIntentUpdateAttributes]
|
497
|
+
# @param [Hash] opts the optional parameters
|
498
|
+
# @return [Array<(PaymentIntentResponse, Integer, Hash)>] PaymentIntentResponse data, response status code and response headers
|
499
|
+
def update_payment_intent_with_http_info(x_api_version, x_account_id, id, payment_intent_update_attributes, opts = {})
|
500
|
+
if @api_client.config.debugging
|
501
|
+
@api_client.config.logger.debug 'Calling API: PaymentIntentsApi.update_payment_intent ...'
|
502
|
+
end
|
503
|
+
# verify the required parameter 'x_api_version' is set
|
504
|
+
if @api_client.config.client_side_validation && x_api_version.nil?
|
505
|
+
fail ArgumentError, "Missing the required parameter 'x_api_version' when calling PaymentIntentsApi.update_payment_intent"
|
506
|
+
end
|
507
|
+
# verify the required parameter 'x_account_id' is set
|
508
|
+
if @api_client.config.client_side_validation && x_account_id.nil?
|
509
|
+
fail ArgumentError, "Missing the required parameter 'x_account_id' when calling PaymentIntentsApi.update_payment_intent"
|
510
|
+
end
|
511
|
+
# verify the required parameter 'id' is set
|
512
|
+
if @api_client.config.client_side_validation && id.nil?
|
513
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PaymentIntentsApi.update_payment_intent"
|
514
|
+
end
|
515
|
+
# verify the required parameter 'payment_intent_update_attributes' is set
|
516
|
+
if @api_client.config.client_side_validation && payment_intent_update_attributes.nil?
|
517
|
+
fail ArgumentError, "Missing the required parameter 'payment_intent_update_attributes' when calling PaymentIntentsApi.update_payment_intent"
|
518
|
+
end
|
519
|
+
# resource path
|
520
|
+
local_var_path = '/payment_intents/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
521
|
+
|
522
|
+
# query parameters
|
523
|
+
query_params = opts[:query_params] || {}
|
524
|
+
|
525
|
+
# header parameters
|
526
|
+
header_params = opts[:header_params] || {}
|
527
|
+
# HTTP header 'Accept' (if needed)
|
528
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
529
|
+
# HTTP header 'Content-Type'
|
530
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
531
|
+
if !content_type.nil?
|
532
|
+
header_params['Content-Type'] = content_type
|
533
|
+
end
|
534
|
+
header_params[:'X-Api-Version'] = x_api_version
|
535
|
+
header_params[:'X-Account-Id'] = x_account_id
|
536
|
+
|
537
|
+
# form parameters
|
538
|
+
form_params = opts[:form_params] || {}
|
539
|
+
|
540
|
+
# http body (model)
|
541
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(payment_intent_update_attributes)
|
542
|
+
|
543
|
+
# return_type
|
544
|
+
return_type = opts[:debug_return_type] || 'PaymentIntentResponse'
|
545
|
+
|
546
|
+
# auth_names
|
547
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
548
|
+
|
549
|
+
new_options = opts.merge(
|
550
|
+
:operation => :"PaymentIntentsApi.update_payment_intent",
|
551
|
+
:header_params => header_params,
|
552
|
+
:query_params => query_params,
|
553
|
+
:form_params => form_params,
|
554
|
+
:body => post_body,
|
555
|
+
:auth_names => auth_names,
|
556
|
+
:return_type => return_type
|
557
|
+
)
|
558
|
+
|
559
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
560
|
+
if @api_client.config.debugging
|
561
|
+
@api_client.config.logger.debug "API called: PaymentIntentsApi#update_payment_intent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
562
|
+
end
|
563
|
+
return data, status_code, headers
|
564
|
+
end
|
565
|
+
end
|
566
|
+
end
|