Skip to content

Latest commit

 

History

History
447 lines (308 loc) · 12.1 KB

PaymentDetailsApi.md

File metadata and controls

447 lines (308 loc) · 12.1 KB

SwaggerClient::PaymentDetailsApi

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

complete_frontend_payment_details

PaymentDetails complete_frontend_payment_details(bodycustomer_id)

Complete Frontend Detail Collection

Complete frontend payment details

Example

# 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

Parameters

Name Type Description Notes
body FrontendToken
customer_id String The id of the customer to retrieve

Return type

PaymentDetails

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

delete_payment_details

String delete_payment_details(payment_details_id)

Delete

Delete Payment Details

Example

# 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

Parameters

Name Type Description Notes
payment_details_id String The id of the payment details

Return type

String

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

delete_payment_details_customer

String delete_payment_details_customer(customer_id, payment_details_id)

Delete With Customer

Delete Payment Details

Example

# 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

Parameters

Name Type Description Notes
customer_id String The id of the customer to retrieve
payment_details_id String The id of the payment details

Return type

String

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

get_payment_details

PaymentDetails get_payment_details(payment_details_id)

Fetch

Fetch the payment cards

Example

# 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

Parameters

Name Type Description Notes
payment_details_id String The id of the payment details

Return type

PaymentDetails

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

list_payment_details

InlineResponse2005 list_payment_details(customer_id)

List Customer's Payment Details

List all customers

Added in version 1.1

Example

# 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

Parameters

Name Type Description Notes
customer_id String The id of the customer to retrieve

Return type

InlineResponse2005

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

make_default_payment_details

String make_default_payment_details(customer_id, payment_details_id)

Make Default

Delete Payment Details

Example

# 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

Parameters

Name Type Description Notes
customer_id String The id of the customer to retrieve
payment_details_id String The id of the payment details

Return type

String

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

make_default_payment_details_customer

String make_default_payment_details_customer(customer_id, payment_details_id)

Make Default With Customer

Delete Payment Details

Example

# 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

Parameters

Name Type Description Notes
customer_id String The id of the customer to retrieve
payment_details_id String The id of the payment details

Return type

String

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

start_frontend_payment_details

FrontendToken start_frontend_payment_details(customer_id)

Start Frontend Detail Collection

Start frontend payment details

Example

# 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

Parameters

Name Type Description Notes
customer_id String The id of the customer to retrieve

Return type

FrontendToken

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json