billabear 1.0.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 +9 -0
- data/README.md +1340 -0
- data/Rakefile +8 -0
- data/billabear.gemspec +38 -0
- data/docs/Address.md +13 -0
- data/docs/BillingAdmin.md +8 -0
- data/docs/CheckoutApi.md +61 -0
- data/docs/CheckoutBody.md +12 -0
- data/docs/CheckoutItems.md +11 -0
- data/docs/CheckoutSubscriptions.md +9 -0
- data/docs/Customer.md +18 -0
- data/docs/CustomersApi.md +904 -0
- data/docs/Error.md +8 -0
- data/docs/Feature.md +10 -0
- data/docs/FrontendToken.md +7 -0
- data/docs/InlineResponse200.md +9 -0
- data/docs/InlineResponse2001.md +9 -0
- data/docs/InlineResponse20010.md +9 -0
- data/docs/InlineResponse20011.md +7 -0
- data/docs/InlineResponse20012.md +8 -0
- data/docs/InlineResponse2002.md +9 -0
- data/docs/InlineResponse2003.md +9 -0
- data/docs/InlineResponse2004.md +9 -0
- data/docs/InlineResponse2005.md +9 -0
- data/docs/InlineResponse2006.md +9 -0
- data/docs/InlineResponse2007.md +9 -0
- data/docs/InlineResponse2007Data.md +14 -0
- data/docs/InlineResponse2007Receipts.md +9 -0
- data/docs/InlineResponse2008.md +9 -0
- data/docs/InlineResponse2009.md +9 -0
- data/docs/InlineResponse201.md +15 -0
- data/docs/InlineResponse201Lines.md +14 -0
- data/docs/InlineResponse400.md +7 -0
- data/docs/Invoice.md +21 -0
- data/docs/InvoiceLines.md +12 -0
- data/docs/InvoicesApi.md +169 -0
- data/docs/IssueRefundPayment.md +9 -0
- data/docs/Limit.md +8 -0
- data/docs/PaymentDetails.md +14 -0
- data/docs/PaymentDetailsApi.md +447 -0
- data/docs/PaymentsApi.md +399 -0
- data/docs/Price.md +14 -0
- data/docs/PricesApi.md +122 -0
- data/docs/Product.md +10 -0
- data/docs/ProductTaxType.md +9 -0
- data/docs/ProductsApi.md +228 -0
- data/docs/ReceiptApi.md +61 -0
- data/docs/Refund.md +16 -0
- data/docs/RefundsApi.md +181 -0
- data/docs/SeatsAddBody.md +7 -0
- data/docs/SeatsRemoveBody.md +7 -0
- data/docs/Subscription.md +18 -0
- data/docs/SubscriptionIdCancelBody.md +10 -0
- data/docs/SubscriptionIdExtendBody.md +7 -0
- data/docs/SubscriptionIdPlanBody.md +9 -0
- data/docs/SubscriptionIdPriceBody.md +8 -0
- data/docs/SubscriptionPlan.md +20 -0
- data/docs/SubscriptionStartBody.md +14 -0
- data/docs/SubscriptionTrialBody.md +10 -0
- data/docs/SubscriptionsApi.md +731 -0
- data/docs/VoucherCode.md +7 -0
- data/git_push.sh +55 -0
- data/lib/swagger_client/api/checkout_api.rb +78 -0
- data/lib/swagger_client/api/customers_api.rb +980 -0
- data/lib/swagger_client/api/invoices_api.rb +188 -0
- data/lib/swagger_client/api/payment_details_api.rb +494 -0
- data/lib/swagger_client/api/payments_api.rb +432 -0
- data/lib/swagger_client/api/prices_api.rb +146 -0
- data/lib/swagger_client/api/products_api.rb +249 -0
- data/lib/swagger_client/api/receipt_api.rb +76 -0
- data/lib/swagger_client/api/refunds_api.rb +200 -0
- data/lib/swagger_client/api/subscriptions_api.rb +812 -0
- data/lib/swagger_client/api_client.rb +388 -0
- data/lib/swagger_client/api_error.rb +57 -0
- data/lib/swagger_client/configuration.rb +205 -0
- data/lib/swagger_client/models/address.rb +265 -0
- data/lib/swagger_client/models/billing_admin.rb +215 -0
- data/lib/swagger_client/models/checkout_body.rb +265 -0
- data/lib/swagger_client/models/checkout_items.rb +242 -0
- data/lib/swagger_client/models/checkout_subscriptions.rb +224 -0
- data/lib/swagger_client/models/customer.rb +370 -0
- data/lib/swagger_client/models/error.rb +225 -0
- data/lib/swagger_client/models/feature.rb +240 -0
- data/lib/swagger_client/models/frontend_token.rb +211 -0
- data/lib/swagger_client/models/inline_response_200.rb +226 -0
- data/lib/swagger_client/models/inline_response_200_1.rb +228 -0
- data/lib/swagger_client/models/inline_response_200_10.rb +226 -0
- data/lib/swagger_client/models/inline_response_200_11.rb +206 -0
- data/lib/swagger_client/models/inline_response_200_12.rb +250 -0
- data/lib/swagger_client/models/inline_response_200_2.rb +226 -0
- data/lib/swagger_client/models/inline_response_200_3.rb +226 -0
- data/lib/swagger_client/models/inline_response_200_4.rb +226 -0
- data/lib/swagger_client/models/inline_response_200_5.rb +226 -0
- data/lib/swagger_client/models/inline_response_200_6.rb +226 -0
- data/lib/swagger_client/models/inline_response_200_7.rb +226 -0
- data/lib/swagger_client/models/inline_response_200_7_data.rb +307 -0
- data/lib/swagger_client/models/inline_response_200_7_receipts.rb +224 -0
- data/lib/swagger_client/models/inline_response_200_8.rb +226 -0
- data/lib/swagger_client/models/inline_response_200_9.rb +226 -0
- data/lib/swagger_client/models/inline_response_201.rb +285 -0
- data/lib/swagger_client/models/inline_response_201_lines.rb +269 -0
- data/lib/swagger_client/models/inline_response_400.rb +213 -0
- data/lib/swagger_client/models/invoice.rb +334 -0
- data/lib/swagger_client/models/invoice_lines.rb +251 -0
- data/lib/swagger_client/models/issue_refund_payment.rb +232 -0
- data/lib/swagger_client/models/limit.rb +215 -0
- data/lib/swagger_client/models/payment_details.rb +271 -0
- data/lib/swagger_client/models/price.rb +325 -0
- data/lib/swagger_client/models/product.rb +240 -0
- data/lib/swagger_client/models/product_tax_type.rb +229 -0
- data/lib/swagger_client/models/refund.rb +324 -0
- data/lib/swagger_client/models/seats_add_body.rb +211 -0
- data/lib/swagger_client/models/seats_remove_body.rb +211 -0
- data/lib/swagger_client/models/subscription.rb +305 -0
- data/lib/swagger_client/models/subscription_id_cancel_body.rb +294 -0
- data/lib/swagger_client/models/subscription_id_extend_body.rb +211 -0
- data/lib/swagger_client/models/subscription_id_plan_body.rb +270 -0
- data/lib/swagger_client/models/subscription_id_price_body.rb +259 -0
- data/lib/swagger_client/models/subscription_plan.rb +330 -0
- data/lib/swagger_client/models/subscription_start_body.rb +314 -0
- data/lib/swagger_client/models/subscription_trial_body.rb +242 -0
- data/lib/swagger_client/models/voucher_code.rb +211 -0
- data/lib/swagger_client/version.rb +14 -0
- data/lib/swagger_client.rb +95 -0
- data/spec/api/checkout_api_spec.rb +46 -0
- data/spec/api/customers_api_spec.rb +241 -0
- data/spec/api/invoices_api_spec.rb +70 -0
- data/spec/api/payment_details_api_spec.rb +134 -0
- data/spec/api/payments_api_spec.rb +124 -0
- data/spec/api/prices_api_spec.rb +61 -0
- data/spec/api/products_api_spec.rb +84 -0
- data/spec/api/receipt_api_spec.rb +46 -0
- data/spec/api/refunds_api_spec.rb +75 -0
- data/spec/api/subscriptions_api_spec.rb +200 -0
- data/spec/api_client_spec.rb +225 -0
- data/spec/base_object_spec.rb +109 -0
- data/spec/configuration_spec.rb +41 -0
- data/spec/models/address_spec.rb +76 -0
- data/spec/models/billing_admin_spec.rb +46 -0
- data/spec/models/checkout_body_spec.rb +70 -0
- data/spec/models/checkout_items_spec.rb +64 -0
- data/spec/models/checkout_subscriptions_spec.rb +52 -0
- data/spec/models/customer_spec.rb +114 -0
- data/spec/models/error_spec.rb +46 -0
- data/spec/models/feature_spec.rb +58 -0
- data/spec/models/frontend_token_spec.rb +40 -0
- data/spec/models/inline_response_200_10_spec.rb +52 -0
- data/spec/models/inline_response_200_11_spec.rb +40 -0
- data/spec/models/inline_response_200_12_spec.rb +50 -0
- data/spec/models/inline_response_200_1_spec.rb +52 -0
- data/spec/models/inline_response_200_2_spec.rb +52 -0
- data/spec/models/inline_response_200_3_spec.rb +52 -0
- data/spec/models/inline_response_200_4_spec.rb +52 -0
- data/spec/models/inline_response_200_5_spec.rb +52 -0
- data/spec/models/inline_response_200_6_spec.rb +52 -0
- data/spec/models/inline_response_200_7_data_spec.rb +86 -0
- data/spec/models/inline_response_200_7_receipts_spec.rb +52 -0
- data/spec/models/inline_response_200_7_spec.rb +52 -0
- data/spec/models/inline_response_200_8_spec.rb +52 -0
- data/spec/models/inline_response_200_9_spec.rb +52 -0
- data/spec/models/inline_response_200_spec.rb +52 -0
- data/spec/models/inline_response_201_lines_spec.rb +82 -0
- data/spec/models/inline_response_201_spec.rb +88 -0
- data/spec/models/inline_response_400_spec.rb +40 -0
- data/spec/models/invoice_lines_spec.rb +70 -0
- data/spec/models/invoice_spec.rb +124 -0
- data/spec/models/issue_refund_payment_spec.rb +52 -0
- data/spec/models/limit_spec.rb +46 -0
- data/spec/models/payment_details_spec.rb +82 -0
- data/spec/models/price_spec.rb +86 -0
- data/spec/models/product_spec.rb +58 -0
- data/spec/models/product_tax_type_spec.rb +52 -0
- data/spec/models/refund_spec.rb +98 -0
- data/spec/models/seats_add_body_spec.rb +40 -0
- data/spec/models/seats_remove_body_spec.rb +40 -0
- data/spec/models/subscription_id_cancel_body_spec.rb +66 -0
- data/spec/models/subscription_id_extend_body_spec.rb +40 -0
- data/spec/models/subscription_id_plan_body_spec.rb +56 -0
- data/spec/models/subscription_id_price_body_spec.rb +50 -0
- data/spec/models/subscription_plan_spec.rb +118 -0
- data/spec/models/subscription_spec.rb +106 -0
- data/spec/models/subscription_start_body_spec.rb +86 -0
- data/spec/models/subscription_trial_body_spec.rb +58 -0
- data/spec/models/voucher_code_spec.rb +40 -0
- data/spec/spec_helper.rb +110 -0
- metadata +349 -0
|
@@ -0,0 +1,447 @@
|
|
|
1
|
+
# SwaggerClient::PaymentDetailsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://{customerId}.billabear.cloud/api/v1*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**complete_frontend_payment_details**](PaymentDetailsApi.md#complete_frontend_payment_details) | **POST** /customer/{customerId}/payment-methods/frontend-payment-token | Complete Frontend Detail Collection
|
|
8
|
+
[**delete_payment_details**](PaymentDetailsApi.md#delete_payment_details) | **DELETE** /payment-methods/{paymentDetailsId} | Delete
|
|
9
|
+
[**delete_payment_details_customer**](PaymentDetailsApi.md#delete_payment_details_customer) | **DELETE** /customer/{customerId}/payment-methods/{paymentDetailsId} | Delete With Customer
|
|
10
|
+
[**get_payment_details**](PaymentDetailsApi.md#get_payment_details) | **GET** /payment-methods/{paymentDetailsId} | Fetch
|
|
11
|
+
[**list_payment_details**](PaymentDetailsApi.md#list_payment_details) | **GET** /customer/{customerId}/payment-methods | List Customer's Payment Details
|
|
12
|
+
[**make_default_payment_details**](PaymentDetailsApi.md#make_default_payment_details) | **POST** /payment-methods/{paymentDetailsId}/default | Make Default
|
|
13
|
+
[**make_default_payment_details_customer**](PaymentDetailsApi.md#make_default_payment_details_customer) | **POST** /customer/{customerId}/payment-methods/{paymentDetailsId}/default | Make Default With Customer
|
|
14
|
+
[**start_frontend_payment_details**](PaymentDetailsApi.md#start_frontend_payment_details) | **GET** /customer/{customerId}/payment-methods/frontend-payment-token | Start Frontend Detail Collection
|
|
15
|
+
|
|
16
|
+
# **complete_frontend_payment_details**
|
|
17
|
+
> PaymentDetails complete_frontend_payment_details(bodycustomer_id)
|
|
18
|
+
|
|
19
|
+
Complete Frontend Detail Collection
|
|
20
|
+
|
|
21
|
+
Complete frontend payment details
|
|
22
|
+
|
|
23
|
+
### Example
|
|
24
|
+
```ruby
|
|
25
|
+
# load the gem
|
|
26
|
+
require 'swagger_client'
|
|
27
|
+
# setup authorization
|
|
28
|
+
SwaggerClient.configure do |config|
|
|
29
|
+
# Configure API key authorization: ApiKeyAuth
|
|
30
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
31
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
32
|
+
#config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
api_instance = SwaggerClient::PaymentDetailsApi.new
|
|
36
|
+
body = SwaggerClient::FrontendToken.new # FrontendToken |
|
|
37
|
+
customer_id = 'customer_id_example' # String | The id of the customer to retrieve
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
begin
|
|
41
|
+
#Complete Frontend Detail Collection
|
|
42
|
+
result = api_instance.complete_frontend_payment_details(bodycustomer_id)
|
|
43
|
+
p result
|
|
44
|
+
rescue SwaggerClient::ApiError => e
|
|
45
|
+
puts "Exception when calling PaymentDetailsApi->complete_frontend_payment_details: #{e}"
|
|
46
|
+
end
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Parameters
|
|
50
|
+
|
|
51
|
+
Name | Type | Description | Notes
|
|
52
|
+
------------- | ------------- | ------------- | -------------
|
|
53
|
+
**body** | [**FrontendToken**](FrontendToken.md)| |
|
|
54
|
+
**customer_id** | **String**| The id of the customer to retrieve |
|
|
55
|
+
|
|
56
|
+
### Return type
|
|
57
|
+
|
|
58
|
+
[**PaymentDetails**](PaymentDetails.md)
|
|
59
|
+
|
|
60
|
+
### Authorization
|
|
61
|
+
|
|
62
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
63
|
+
|
|
64
|
+
### HTTP request headers
|
|
65
|
+
|
|
66
|
+
- **Content-Type**: application/json
|
|
67
|
+
- **Accept**: application/json
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
# **delete_payment_details**
|
|
72
|
+
> String delete_payment_details(payment_details_id)
|
|
73
|
+
|
|
74
|
+
Delete
|
|
75
|
+
|
|
76
|
+
Delete Payment Details
|
|
77
|
+
|
|
78
|
+
### Example
|
|
79
|
+
```ruby
|
|
80
|
+
# load the gem
|
|
81
|
+
require 'swagger_client'
|
|
82
|
+
# setup authorization
|
|
83
|
+
SwaggerClient.configure do |config|
|
|
84
|
+
# Configure API key authorization: ApiKeyAuth
|
|
85
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
86
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
87
|
+
#config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
api_instance = SwaggerClient::PaymentDetailsApi.new
|
|
91
|
+
payment_details_id = 'payment_details_id_example' # String | The id of the payment details
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
begin
|
|
95
|
+
#Delete
|
|
96
|
+
result = api_instance.delete_payment_details(payment_details_id)
|
|
97
|
+
p result
|
|
98
|
+
rescue SwaggerClient::ApiError => e
|
|
99
|
+
puts "Exception when calling PaymentDetailsApi->delete_payment_details: #{e}"
|
|
100
|
+
end
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### Parameters
|
|
104
|
+
|
|
105
|
+
Name | Type | Description | Notes
|
|
106
|
+
------------- | ------------- | ------------- | -------------
|
|
107
|
+
**payment_details_id** | **String**| The id of the payment details |
|
|
108
|
+
|
|
109
|
+
### Return type
|
|
110
|
+
|
|
111
|
+
**String**
|
|
112
|
+
|
|
113
|
+
### Authorization
|
|
114
|
+
|
|
115
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
116
|
+
|
|
117
|
+
### HTTP request headers
|
|
118
|
+
|
|
119
|
+
- **Content-Type**: Not defined
|
|
120
|
+
- **Accept**: application/json
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
# **delete_payment_details_customer**
|
|
125
|
+
> String delete_payment_details_customer(customer_id, payment_details_id)
|
|
126
|
+
|
|
127
|
+
Delete With Customer
|
|
128
|
+
|
|
129
|
+
Delete Payment Details
|
|
130
|
+
|
|
131
|
+
### Example
|
|
132
|
+
```ruby
|
|
133
|
+
# load the gem
|
|
134
|
+
require 'swagger_client'
|
|
135
|
+
# setup authorization
|
|
136
|
+
SwaggerClient.configure do |config|
|
|
137
|
+
# Configure API key authorization: ApiKeyAuth
|
|
138
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
139
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
140
|
+
#config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
api_instance = SwaggerClient::PaymentDetailsApi.new
|
|
144
|
+
customer_id = 'customer_id_example' # String | The id of the customer to retrieve
|
|
145
|
+
payment_details_id = 'payment_details_id_example' # String | The id of the payment details
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
begin
|
|
149
|
+
#Delete With Customer
|
|
150
|
+
result = api_instance.delete_payment_details_customer(customer_id, payment_details_id)
|
|
151
|
+
p result
|
|
152
|
+
rescue SwaggerClient::ApiError => e
|
|
153
|
+
puts "Exception when calling PaymentDetailsApi->delete_payment_details_customer: #{e}"
|
|
154
|
+
end
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
### Parameters
|
|
158
|
+
|
|
159
|
+
Name | Type | Description | Notes
|
|
160
|
+
------------- | ------------- | ------------- | -------------
|
|
161
|
+
**customer_id** | **String**| The id of the customer to retrieve |
|
|
162
|
+
**payment_details_id** | **String**| The id of the payment details |
|
|
163
|
+
|
|
164
|
+
### Return type
|
|
165
|
+
|
|
166
|
+
**String**
|
|
167
|
+
|
|
168
|
+
### Authorization
|
|
169
|
+
|
|
170
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
171
|
+
|
|
172
|
+
### HTTP request headers
|
|
173
|
+
|
|
174
|
+
- **Content-Type**: Not defined
|
|
175
|
+
- **Accept**: application/json
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
# **get_payment_details**
|
|
180
|
+
> PaymentDetails get_payment_details(payment_details_id)
|
|
181
|
+
|
|
182
|
+
Fetch
|
|
183
|
+
|
|
184
|
+
Fetch the payment cards
|
|
185
|
+
|
|
186
|
+
### Example
|
|
187
|
+
```ruby
|
|
188
|
+
# load the gem
|
|
189
|
+
require 'swagger_client'
|
|
190
|
+
# setup authorization
|
|
191
|
+
SwaggerClient.configure do |config|
|
|
192
|
+
# Configure API key authorization: ApiKeyAuth
|
|
193
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
194
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
195
|
+
#config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
api_instance = SwaggerClient::PaymentDetailsApi.new
|
|
199
|
+
payment_details_id = 'payment_details_id_example' # String | The id of the payment details
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
begin
|
|
203
|
+
#Fetch
|
|
204
|
+
result = api_instance.get_payment_details(payment_details_id)
|
|
205
|
+
p result
|
|
206
|
+
rescue SwaggerClient::ApiError => e
|
|
207
|
+
puts "Exception when calling PaymentDetailsApi->get_payment_details: #{e}"
|
|
208
|
+
end
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
### Parameters
|
|
212
|
+
|
|
213
|
+
Name | Type | Description | Notes
|
|
214
|
+
------------- | ------------- | ------------- | -------------
|
|
215
|
+
**payment_details_id** | **String**| The id of the payment details |
|
|
216
|
+
|
|
217
|
+
### Return type
|
|
218
|
+
|
|
219
|
+
[**PaymentDetails**](PaymentDetails.md)
|
|
220
|
+
|
|
221
|
+
### Authorization
|
|
222
|
+
|
|
223
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
224
|
+
|
|
225
|
+
### HTTP request headers
|
|
226
|
+
|
|
227
|
+
- **Content-Type**: Not defined
|
|
228
|
+
- **Accept**: application/json
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
# **list_payment_details**
|
|
233
|
+
> InlineResponse2005 list_payment_details(customer_id)
|
|
234
|
+
|
|
235
|
+
List Customer's Payment Details
|
|
236
|
+
|
|
237
|
+
List all customers <br><br>Added in version 1.1
|
|
238
|
+
|
|
239
|
+
### Example
|
|
240
|
+
```ruby
|
|
241
|
+
# load the gem
|
|
242
|
+
require 'swagger_client'
|
|
243
|
+
# setup authorization
|
|
244
|
+
SwaggerClient.configure do |config|
|
|
245
|
+
# Configure API key authorization: ApiKeyAuth
|
|
246
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
247
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
248
|
+
#config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
api_instance = SwaggerClient::PaymentDetailsApi.new
|
|
252
|
+
customer_id = 'customer_id_example' # String | The id of the customer to retrieve
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
begin
|
|
256
|
+
#List Customer's Payment Details
|
|
257
|
+
result = api_instance.list_payment_details(customer_id)
|
|
258
|
+
p result
|
|
259
|
+
rescue SwaggerClient::ApiError => e
|
|
260
|
+
puts "Exception when calling PaymentDetailsApi->list_payment_details: #{e}"
|
|
261
|
+
end
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
### Parameters
|
|
265
|
+
|
|
266
|
+
Name | Type | Description | Notes
|
|
267
|
+
------------- | ------------- | ------------- | -------------
|
|
268
|
+
**customer_id** | **String**| The id of the customer to retrieve |
|
|
269
|
+
|
|
270
|
+
### Return type
|
|
271
|
+
|
|
272
|
+
[**InlineResponse2005**](InlineResponse2005.md)
|
|
273
|
+
|
|
274
|
+
### Authorization
|
|
275
|
+
|
|
276
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
277
|
+
|
|
278
|
+
### HTTP request headers
|
|
279
|
+
|
|
280
|
+
- **Content-Type**: Not defined
|
|
281
|
+
- **Accept**: application/json
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
# **make_default_payment_details**
|
|
286
|
+
> String make_default_payment_details(customer_id, payment_details_id)
|
|
287
|
+
|
|
288
|
+
Make Default
|
|
289
|
+
|
|
290
|
+
Delete Payment Details
|
|
291
|
+
|
|
292
|
+
### Example
|
|
293
|
+
```ruby
|
|
294
|
+
# load the gem
|
|
295
|
+
require 'swagger_client'
|
|
296
|
+
# setup authorization
|
|
297
|
+
SwaggerClient.configure do |config|
|
|
298
|
+
# Configure API key authorization: ApiKeyAuth
|
|
299
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
300
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
301
|
+
#config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
api_instance = SwaggerClient::PaymentDetailsApi.new
|
|
305
|
+
customer_id = 'customer_id_example' # String | The id of the customer to retrieve
|
|
306
|
+
payment_details_id = 'payment_details_id_example' # String | The id of the payment details
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
begin
|
|
310
|
+
#Make Default
|
|
311
|
+
result = api_instance.make_default_payment_details(customer_id, payment_details_id)
|
|
312
|
+
p result
|
|
313
|
+
rescue SwaggerClient::ApiError => e
|
|
314
|
+
puts "Exception when calling PaymentDetailsApi->make_default_payment_details: #{e}"
|
|
315
|
+
end
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
### Parameters
|
|
319
|
+
|
|
320
|
+
Name | Type | Description | Notes
|
|
321
|
+
------------- | ------------- | ------------- | -------------
|
|
322
|
+
**customer_id** | **String**| The id of the customer to retrieve |
|
|
323
|
+
**payment_details_id** | **String**| The id of the payment details |
|
|
324
|
+
|
|
325
|
+
### Return type
|
|
326
|
+
|
|
327
|
+
**String**
|
|
328
|
+
|
|
329
|
+
### Authorization
|
|
330
|
+
|
|
331
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
332
|
+
|
|
333
|
+
### HTTP request headers
|
|
334
|
+
|
|
335
|
+
- **Content-Type**: Not defined
|
|
336
|
+
- **Accept**: application/json
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
# **make_default_payment_details_customer**
|
|
341
|
+
> String make_default_payment_details_customer(customer_id, payment_details_id)
|
|
342
|
+
|
|
343
|
+
Make Default With Customer
|
|
344
|
+
|
|
345
|
+
Delete Payment Details
|
|
346
|
+
|
|
347
|
+
### Example
|
|
348
|
+
```ruby
|
|
349
|
+
# load the gem
|
|
350
|
+
require 'swagger_client'
|
|
351
|
+
# setup authorization
|
|
352
|
+
SwaggerClient.configure do |config|
|
|
353
|
+
# Configure API key authorization: ApiKeyAuth
|
|
354
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
355
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
356
|
+
#config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
357
|
+
end
|
|
358
|
+
|
|
359
|
+
api_instance = SwaggerClient::PaymentDetailsApi.new
|
|
360
|
+
customer_id = 'customer_id_example' # String | The id of the customer to retrieve
|
|
361
|
+
payment_details_id = 'payment_details_id_example' # String | The id of the payment details
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
begin
|
|
365
|
+
#Make Default With Customer
|
|
366
|
+
result = api_instance.make_default_payment_details_customer(customer_id, payment_details_id)
|
|
367
|
+
p result
|
|
368
|
+
rescue SwaggerClient::ApiError => e
|
|
369
|
+
puts "Exception when calling PaymentDetailsApi->make_default_payment_details_customer: #{e}"
|
|
370
|
+
end
|
|
371
|
+
```
|
|
372
|
+
|
|
373
|
+
### Parameters
|
|
374
|
+
|
|
375
|
+
Name | Type | Description | Notes
|
|
376
|
+
------------- | ------------- | ------------- | -------------
|
|
377
|
+
**customer_id** | **String**| The id of the customer to retrieve |
|
|
378
|
+
**payment_details_id** | **String**| The id of the payment details |
|
|
379
|
+
|
|
380
|
+
### Return type
|
|
381
|
+
|
|
382
|
+
**String**
|
|
383
|
+
|
|
384
|
+
### Authorization
|
|
385
|
+
|
|
386
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
387
|
+
|
|
388
|
+
### HTTP request headers
|
|
389
|
+
|
|
390
|
+
- **Content-Type**: Not defined
|
|
391
|
+
- **Accept**: application/json
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
# **start_frontend_payment_details**
|
|
396
|
+
> FrontendToken start_frontend_payment_details(customer_id)
|
|
397
|
+
|
|
398
|
+
Start Frontend Detail Collection
|
|
399
|
+
|
|
400
|
+
Start frontend payment details
|
|
401
|
+
|
|
402
|
+
### Example
|
|
403
|
+
```ruby
|
|
404
|
+
# load the gem
|
|
405
|
+
require 'swagger_client'
|
|
406
|
+
# setup authorization
|
|
407
|
+
SwaggerClient.configure do |config|
|
|
408
|
+
# Configure API key authorization: ApiKeyAuth
|
|
409
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
410
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
411
|
+
#config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
412
|
+
end
|
|
413
|
+
|
|
414
|
+
api_instance = SwaggerClient::PaymentDetailsApi.new
|
|
415
|
+
customer_id = 'customer_id_example' # String | The id of the customer to retrieve
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
begin
|
|
419
|
+
#Start Frontend Detail Collection
|
|
420
|
+
result = api_instance.start_frontend_payment_details(customer_id)
|
|
421
|
+
p result
|
|
422
|
+
rescue SwaggerClient::ApiError => e
|
|
423
|
+
puts "Exception when calling PaymentDetailsApi->start_frontend_payment_details: #{e}"
|
|
424
|
+
end
|
|
425
|
+
```
|
|
426
|
+
|
|
427
|
+
### Parameters
|
|
428
|
+
|
|
429
|
+
Name | Type | Description | Notes
|
|
430
|
+
------------- | ------------- | ------------- | -------------
|
|
431
|
+
**customer_id** | **String**| The id of the customer to retrieve |
|
|
432
|
+
|
|
433
|
+
### Return type
|
|
434
|
+
|
|
435
|
+
[**FrontendToken**](FrontendToken.md)
|
|
436
|
+
|
|
437
|
+
### Authorization
|
|
438
|
+
|
|
439
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
440
|
+
|
|
441
|
+
### HTTP request headers
|
|
442
|
+
|
|
443
|
+
- **Content-Type**: Not defined
|
|
444
|
+
- **Accept**: application/json
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
|