All URIs are relative to https://{customerId}.billabear.cloud/api/v1
Method | HTTP request | Description |
---|---|---|
complete_frontend_payment_details | POST /customer/{customerId}/payment-methods/frontend-payment-token | Complete Frontend Detail Collection |
delete_payment_details | DELETE /payment-methods/{paymentDetailsId} | Delete |
delete_payment_details_customer | DELETE /customer/{customerId}/payment-methods/{paymentDetailsId} | Delete With Customer |
get_payment_details | GET /payment-methods/{paymentDetailsId} | Fetch |
list_payment_details | GET /customer/{customerId}/payment-methods | List Customer's Payment Details |
make_default_payment_details | POST /payment-methods/{paymentDetailsId}/default | Make Default |
make_default_payment_details_customer | POST /customer/{customerId}/payment-methods/{paymentDetailsId}/default | Make Default With Customer |
start_frontend_payment_details | GET /customer/{customerId}/payment-methods/frontend-payment-token | Start Frontend Detail Collection |
PaymentDetails complete_frontend_payment_details(bodycustomer_id)
Complete Frontend Detail Collection
Complete frontend payment details
# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
# Configure API key authorization: ApiKeyAuth
config.api_key['X-API-Key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['X-API-Key'] = 'Bearer'
end
api_instance = SwaggerClient::PaymentDetailsApi.new
body = SwaggerClient::FrontendToken.new # FrontendToken |
customer_id = 'customer_id_example' # String | The id of the customer to retrieve
begin
#Complete Frontend Detail Collection
result = api_instance.complete_frontend_payment_details(bodycustomer_id)
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling PaymentDetailsApi->complete_frontend_payment_details: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
body | FrontendToken | ||
customer_id | String | The id of the customer to retrieve |
- Content-Type: application/json
- Accept: application/json
String delete_payment_details(payment_details_id)
Delete
Delete Payment Details
# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
# Configure API key authorization: ApiKeyAuth
config.api_key['X-API-Key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['X-API-Key'] = 'Bearer'
end
api_instance = SwaggerClient::PaymentDetailsApi.new
payment_details_id = 'payment_details_id_example' # String | The id of the payment details
begin
#Delete
result = api_instance.delete_payment_details(payment_details_id)
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling PaymentDetailsApi->delete_payment_details: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
payment_details_id | String | The id of the payment details |
String
- Content-Type: Not defined
- Accept: application/json
String delete_payment_details_customer(customer_id, payment_details_id)
Delete With Customer
Delete Payment Details
# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
# Configure API key authorization: ApiKeyAuth
config.api_key['X-API-Key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['X-API-Key'] = 'Bearer'
end
api_instance = SwaggerClient::PaymentDetailsApi.new
customer_id = 'customer_id_example' # String | The id of the customer to retrieve
payment_details_id = 'payment_details_id_example' # String | The id of the payment details
begin
#Delete With Customer
result = api_instance.delete_payment_details_customer(customer_id, payment_details_id)
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling PaymentDetailsApi->delete_payment_details_customer: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
customer_id | String | The id of the customer to retrieve | |
payment_details_id | String | The id of the payment details |
String
- Content-Type: Not defined
- Accept: application/json
PaymentDetails get_payment_details(payment_details_id)
Fetch
Fetch the payment cards
# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
# Configure API key authorization: ApiKeyAuth
config.api_key['X-API-Key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['X-API-Key'] = 'Bearer'
end
api_instance = SwaggerClient::PaymentDetailsApi.new
payment_details_id = 'payment_details_id_example' # String | The id of the payment details
begin
#Fetch
result = api_instance.get_payment_details(payment_details_id)
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling PaymentDetailsApi->get_payment_details: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
payment_details_id | String | The id of the payment details |
- Content-Type: Not defined
- Accept: application/json
InlineResponse2005 list_payment_details(customer_id)
List Customer's Payment Details
List all customers
Added in version 1.1
# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
# Configure API key authorization: ApiKeyAuth
config.api_key['X-API-Key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['X-API-Key'] = 'Bearer'
end
api_instance = SwaggerClient::PaymentDetailsApi.new
customer_id = 'customer_id_example' # String | The id of the customer to retrieve
begin
#List Customer's Payment Details
result = api_instance.list_payment_details(customer_id)
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling PaymentDetailsApi->list_payment_details: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
customer_id | String | The id of the customer to retrieve |
- Content-Type: Not defined
- Accept: application/json
String make_default_payment_details(customer_id, payment_details_id)
Make Default
Delete Payment Details
# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
# Configure API key authorization: ApiKeyAuth
config.api_key['X-API-Key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['X-API-Key'] = 'Bearer'
end
api_instance = SwaggerClient::PaymentDetailsApi.new
customer_id = 'customer_id_example' # String | The id of the customer to retrieve
payment_details_id = 'payment_details_id_example' # String | The id of the payment details
begin
#Make Default
result = api_instance.make_default_payment_details(customer_id, payment_details_id)
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling PaymentDetailsApi->make_default_payment_details: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
customer_id | String | The id of the customer to retrieve | |
payment_details_id | String | The id of the payment details |
String
- Content-Type: Not defined
- Accept: application/json
String make_default_payment_details_customer(customer_id, payment_details_id)
Make Default With Customer
Delete Payment Details
# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
# Configure API key authorization: ApiKeyAuth
config.api_key['X-API-Key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['X-API-Key'] = 'Bearer'
end
api_instance = SwaggerClient::PaymentDetailsApi.new
customer_id = 'customer_id_example' # String | The id of the customer to retrieve
payment_details_id = 'payment_details_id_example' # String | The id of the payment details
begin
#Make Default With Customer
result = api_instance.make_default_payment_details_customer(customer_id, payment_details_id)
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling PaymentDetailsApi->make_default_payment_details_customer: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
customer_id | String | The id of the customer to retrieve | |
payment_details_id | String | The id of the payment details |
String
- Content-Type: Not defined
- Accept: application/json
FrontendToken start_frontend_payment_details(customer_id)
Start Frontend Detail Collection
Start frontend payment details
# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
# Configure API key authorization: ApiKeyAuth
config.api_key['X-API-Key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['X-API-Key'] = 'Bearer'
end
api_instance = SwaggerClient::PaymentDetailsApi.new
customer_id = 'customer_id_example' # String | The id of the customer to retrieve
begin
#Start Frontend Detail Collection
result = api_instance.start_frontend_payment_details(customer_id)
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling PaymentDetailsApi->start_frontend_payment_details: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
customer_id | String | The id of the customer to retrieve |
- Content-Type: Not defined
- Accept: application/json