Skip to content

Latest commit

 

History

History
295 lines (212 loc) · 10.9 KB

File metadata and controls

295 lines (212 loc) · 10.9 KB

OpenapiClient::SecurePaymentLinksApi

All URIs are relative to https://api.uat.anddone.com

Method HTTP request Description
secure_paymentlinks_details_post POST /secure/paymentlinks/details This API is used for getting Payment Links by PaymentLink ID
secure_paymentlinks_expirations_post POST /secure/paymentlinks/expirations This API is used for to set expired payment link
secure_paymentlinks_id_put PUT /secure/paymentlinks/{id} This API is used to update Payment Links
secure_paymentlinks_post POST /secure/paymentlinks This API is used to create Payment Links

secure_paymentlinks_details_post

secure_paymentlinks_details_post(x_api_key, x_app_key, x_version, origin, secure_payment_link_request)

This API is used for getting Payment Links by PaymentLink ID

Examples

require 'time'
require 'openapi_client'

api_instance = OpenapiClient::SecurePaymentLinksApi.new
x_api_key = 'x_api_key_example' # String | an authorization header
x_app_key = 'x_app_key_example' # String | an authorization header
x_version = 8.14 # Float | x-version
origin = 'origin_example' # String | origin
secure_payment_link_request = OpenapiClient::SecurePaymentLinkRequest.new({payment_link_id: 'payment_link_id_example'}) # SecurePaymentLinkRequest | Secure Payment Link Request

begin
  # This API is used for getting Payment Links by PaymentLink ID
  result = api_instance.secure_paymentlinks_details_post(x_api_key, x_app_key, x_version, origin, secure_payment_link_request)
  p result
rescue OpenapiClient::ApiError => e
  puts "Error when calling SecurePaymentLinksApi->secure_paymentlinks_details_post: #{e}"
end

Using the secure_paymentlinks_details_post_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> secure_paymentlinks_details_post_with_http_info(x_api_key, x_app_key, x_version, origin, secure_payment_link_request)

begin
  # This API is used for getting Payment Links by PaymentLink ID
  data, status_code, headers = api_instance.secure_paymentlinks_details_post_with_http_info(x_api_key, x_app_key, x_version, origin, secure_payment_link_request)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <PaymentLinkResponse>
rescue OpenapiClient::ApiError => e
  puts "Error when calling SecurePaymentLinksApi->secure_paymentlinks_details_post_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
x_api_key String an authorization header
x_app_key String an authorization header
x_version Float x-version
origin String origin
secure_payment_link_request SecurePaymentLinkRequest Secure Payment Link Request

Return type

PaymentLinkResponse

Authorization

No authorization required

HTTP request headers

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

secure_paymentlinks_expirations_post

secure_paymentlinks_expirations_post(x_api_key, x_app_key, x_version, origin, opts)

This API is used for to set expired payment link

Examples

require 'time'
require 'openapi_client'

api_instance = OpenapiClient::SecurePaymentLinksApi.new
x_api_key = 'x_api_key_example' # String | an authorization header
x_app_key = 'x_app_key_example' # String | an authorization header
x_version = 8.14 # Float | x-version
origin = 'origin_example' # String | origin
opts = {
  secure_payment_link_request: OpenapiClient::SecurePaymentLinkRequest.new({payment_link_id: 'payment_link_id_example'}) # SecurePaymentLinkRequest | Secure Payment Link Request
}

begin
  # This API is used for to set expired payment link
  result = api_instance.secure_paymentlinks_expirations_post(x_api_key, x_app_key, x_version, origin, opts)
  p result
rescue OpenapiClient::ApiError => e
  puts "Error when calling SecurePaymentLinksApi->secure_paymentlinks_expirations_post: #{e}"
end

Using the secure_paymentlinks_expirations_post_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> secure_paymentlinks_expirations_post_with_http_info(x_api_key, x_app_key, x_version, origin, opts)

begin
  # This API is used for to set expired payment link
  data, status_code, headers = api_instance.secure_paymentlinks_expirations_post_with_http_info(x_api_key, x_app_key, x_version, origin, opts)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <PaymentLinkExpiresResponse>
rescue OpenapiClient::ApiError => e
  puts "Error when calling SecurePaymentLinksApi->secure_paymentlinks_expirations_post_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
x_api_key String an authorization header
x_app_key String an authorization header
x_version Float x-version
origin String origin
secure_payment_link_request SecurePaymentLinkRequest Secure Payment Link Request [optional]

Return type

PaymentLinkExpiresResponse

Authorization

No authorization required

HTTP request headers

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

secure_paymentlinks_id_put

secure_paymentlinks_id_put(x_api_key, x_app_key, x_version, origin, id, secure_update_payment_link_request)

This API is used to update Payment Links

Examples

require 'time'
require 'openapi_client'

api_instance = OpenapiClient::SecurePaymentLinksApi.new
x_api_key = 'x_api_key_example' # String | an authorization header
x_app_key = 'x_app_key_example' # String | an authorization header
x_version = 8.14 # Float | x-version
origin = 'origin_example' # String | origin
id = 'id_example' # String | PaymentLink identifier
secure_update_payment_link_request = OpenapiClient::SecureUpdatePaymentLinkRequest.new # SecureUpdatePaymentLinkRequest | Payment Link Request

begin
  # This API is used to update Payment Links
  result = api_instance.secure_paymentlinks_id_put(x_api_key, x_app_key, x_version, origin, id, secure_update_payment_link_request)
  p result
rescue OpenapiClient::ApiError => e
  puts "Error when calling SecurePaymentLinksApi->secure_paymentlinks_id_put: #{e}"
end

Using the secure_paymentlinks_id_put_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> secure_paymentlinks_id_put_with_http_info(x_api_key, x_app_key, x_version, origin, id, secure_update_payment_link_request)

begin
  # This API is used to update Payment Links
  data, status_code, headers = api_instance.secure_paymentlinks_id_put_with_http_info(x_api_key, x_app_key, x_version, origin, id, secure_update_payment_link_request)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <PaymentLinkResponse>
rescue OpenapiClient::ApiError => e
  puts "Error when calling SecurePaymentLinksApi->secure_paymentlinks_id_put_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
x_api_key String an authorization header
x_app_key String an authorization header
x_version Float x-version
origin String origin
id String PaymentLink identifier
secure_update_payment_link_request SecureUpdatePaymentLinkRequest Payment Link Request

Return type

PaymentLinkResponse

Authorization

No authorization required

HTTP request headers

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

secure_paymentlinks_post

secure_paymentlinks_post(x_api_key, x_app_key, x_version, origin, payment_link_request)

This API is used to create Payment Links

Examples

require 'time'
require 'openapi_client'

api_instance = OpenapiClient::SecurePaymentLinksApi.new
x_api_key = 'x_api_key_example' # String | an authorization header
x_app_key = 'x_app_key_example' # String | an authorization header
x_version = 8.14 # Float | x-version
origin = 'origin_example' # String | origin
payment_link_request = OpenapiClient::PaymentLinkRequest.new({merchant_id: 'merchant_id_example', title: 'title_example', amount: 3.56, payment_description: 'payment_description_example', expire_in: 37, expire_in_unit: 'Seconds', settings: OpenapiClient::PaymentLinkRequestSettings.new({intent: OpenapiClient::PaymentLinkRequestSettingsIntent.new({payment_types: ['ACH']})}), reference_data_list: [OpenapiClient::PaymentLinkRequestReferenceDataListInner.new({reference_type: 'QuoteId', reference_number: 'reference_number_example'})]}) # PaymentLinkRequest | Payment Link Request

begin
  # This API is used to create Payment Links
  result = api_instance.secure_paymentlinks_post(x_api_key, x_app_key, x_version, origin, payment_link_request)
  p result
rescue OpenapiClient::ApiError => e
  puts "Error when calling SecurePaymentLinksApi->secure_paymentlinks_post: #{e}"
end

Using the secure_paymentlinks_post_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> secure_paymentlinks_post_with_http_info(x_api_key, x_app_key, x_version, origin, payment_link_request)

begin
  # This API is used to create Payment Links
  data, status_code, headers = api_instance.secure_paymentlinks_post_with_http_info(x_api_key, x_app_key, x_version, origin, payment_link_request)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <PaymentLinkResponse>
rescue OpenapiClient::ApiError => e
  puts "Error when calling SecurePaymentLinksApi->secure_paymentlinks_post_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
x_api_key String an authorization header
x_app_key String an authorization header
x_version Float x-version
origin String origin
payment_link_request PaymentLinkRequest Payment Link Request

Return type

PaymentLinkResponse

Authorization

No authorization required

HTTP request headers

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