Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Latest commit

 

History

History
202 lines (139 loc) · 7.5 KB

DigitalWalletProvisionRequestsApi.md

File metadata and controls

202 lines (139 loc) · 7.5 KB

Marqeta::DigitalWalletProvisionRequestsApi

All URIs are relative to http://localhost/v3

Method HTTP request Description
post_digitalwalletprovisionrequests_androidpay POST /digitalwalletprovisionrequests/androidpay Validates and creates Android-specific provisioning request data
post_digitalwalletprovisionrequests_applepay POST /digitalwalletprovisionrequests/applepay Validates Apple certificates and creates Apple-specific provisioning request data
post_digitalwalletprovisionrequests_samsungpay POST /digitalwalletprovisionrequests/samsungpay Validates and creates Samsung-specific provisioning request data

post_digitalwalletprovisionrequests_androidpay

post_digitalwalletprovisionrequests_androidpay(opts)

Validates and creates Android-specific provisioning request data

Examples

require 'time'
require 'marqeta'

api_instance = Marqeta::DigitalWalletProvisionRequestsApi.new
opts = {
  body: Marqeta::DigitalWalletAndroidPayProvisionRequest.new({card_token: 'card_token_example', device_type: 'MOBILE_PHONE', provisioning_app_version: 'provisioning_app_version_example', wallet_account_id: 'wallet_account_id_example', device_id: 'device_id_example'}) # DigitalWalletAndroidPayProvisionRequest | 
}

begin
  # Validates and creates Android-specific provisioning request data
  result = api_instance.post_digitalwalletprovisionrequests_androidpay(opts)
  p result
rescue Marqeta::ApiError => e
  puts "Error when calling DigitalWalletProvisionRequestsApi->post_digitalwalletprovisionrequests_androidpay: #{e}"
end

Using the post_digitalwalletprovisionrequests_androidpay_with_http_info variant

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

<Array(, Integer, Hash)> post_digitalwalletprovisionrequests_androidpay_with_http_info(opts)

begin
  # Validates and creates Android-specific provisioning request data
  data, status_code, headers = api_instance.post_digitalwalletprovisionrequests_androidpay_with_http_info(opts)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <DigitalWalletAndroidPayProvisionResponse>
rescue Marqeta::ApiError => e
  puts "Error when calling DigitalWalletProvisionRequestsApi->post_digitalwalletprovisionrequests_androidpay_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
body DigitalWalletAndroidPayProvisionRequest [optional]

Return type

DigitalWalletAndroidPayProvisionResponse

Authorization

No authorization required

HTTP request headers

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

post_digitalwalletprovisionrequests_applepay

post_digitalwalletprovisionrequests_applepay(opts)

Validates Apple certificates and creates Apple-specific provisioning request data

Examples

require 'time'
require 'marqeta'

api_instance = Marqeta::DigitalWalletProvisionRequestsApi.new
opts = {
  body: Marqeta::DigitalWalletApplePayProvisionRequest.new({card_token: 'card_token_example', device_type: 'MOBILE_PHONE', provisioning_app_version: 'provisioning_app_version_example', certificates: ['certificates_example'], nonce: 'nonce_example', nonce_signature: 'nonce_signature_example'}) # DigitalWalletApplePayProvisionRequest | 
}

begin
  # Validates Apple certificates and creates Apple-specific provisioning request data
  result = api_instance.post_digitalwalletprovisionrequests_applepay(opts)
  p result
rescue Marqeta::ApiError => e
  puts "Error when calling DigitalWalletProvisionRequestsApi->post_digitalwalletprovisionrequests_applepay: #{e}"
end

Using the post_digitalwalletprovisionrequests_applepay_with_http_info variant

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

<Array(, Integer, Hash)> post_digitalwalletprovisionrequests_applepay_with_http_info(opts)

begin
  # Validates Apple certificates and creates Apple-specific provisioning request data
  data, status_code, headers = api_instance.post_digitalwalletprovisionrequests_applepay_with_http_info(opts)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <DigitalWalletApplePayProvisionResponse>
rescue Marqeta::ApiError => e
  puts "Error when calling DigitalWalletProvisionRequestsApi->post_digitalwalletprovisionrequests_applepay_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
body DigitalWalletApplePayProvisionRequest [optional]

Return type

DigitalWalletApplePayProvisionResponse

Authorization

No authorization required

HTTP request headers

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

post_digitalwalletprovisionrequests_samsungpay

post_digitalwalletprovisionrequests_samsungpay(opts)

Validates and creates Samsung-specific provisioning request data

Examples

require 'time'
require 'marqeta'

api_instance = Marqeta::DigitalWalletProvisionRequestsApi.new
opts = {
  body: Marqeta::DigitalWalletAndroidPayProvisionRequest.new({card_token: 'card_token_example', device_type: 'MOBILE_PHONE', provisioning_app_version: 'provisioning_app_version_example', wallet_account_id: 'wallet_account_id_example', device_id: 'device_id_example'}) # DigitalWalletAndroidPayProvisionRequest | 
}

begin
  # Validates and creates Samsung-specific provisioning request data
  result = api_instance.post_digitalwalletprovisionrequests_samsungpay(opts)
  p result
rescue Marqeta::ApiError => e
  puts "Error when calling DigitalWalletProvisionRequestsApi->post_digitalwalletprovisionrequests_samsungpay: #{e}"
end

Using the post_digitalwalletprovisionrequests_samsungpay_with_http_info variant

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

<Array(, Integer, Hash)> post_digitalwalletprovisionrequests_samsungpay_with_http_info(opts)

begin
  # Validates and creates Samsung-specific provisioning request data
  data, status_code, headers = api_instance.post_digitalwalletprovisionrequests_samsungpay_with_http_info(opts)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <DigitalWalletSamsungPayProvisionResponse>
rescue Marqeta::ApiError => e
  puts "Error when calling DigitalWalletProvisionRequestsApi->post_digitalwalletprovisionrequests_samsungpay_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
body DigitalWalletAndroidPayProvisionRequest [optional]

Return type

DigitalWalletSamsungPayProvisionResponse

Authorization

No authorization required

HTTP request headers

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