All URIs are relative to http://localhost/v3
Method | HTTP request | Description |
---|---|---|
get_digitalwallettokentransitions_digitalwallettoken_token | GET /digitalwallettokentransitions/digitalwallettoken/{token} | Lists all digital wallet token transitions |
get_digitalwallettokentransitions_token | GET /digitalwallettokentransitions/{token} | Returns a digital wallet transition object |
post_digitalwallettokentransitions | POST /digitalwallettokentransitions | Creates a digital wallet token transition |
get_digitalwallettokentransitions_digitalwallettoken_token(token, opts)
Lists all digital wallet token transitions
require 'time'
require 'marqeta'
api_instance = Marqeta::DigitalWalletTokenTransitionsApi.new
token = 'token_example' # String | Digital wallet token
opts = {
count: 56, # Integer | Number of digital wallet transitions to retrieve
start_index: 56, # Integer | Start index
fields: 'fields_example', # String | Comma-delimited list of fields to return (e.g. field_1,field_2,..). Leave blank to return all fields.
sort_by: 'sort_by_example' # String | Sort order
}
begin
# Lists all digital wallet token transitions
result = api_instance.get_digitalwallettokentransitions_digitalwallettoken_token(token, opts)
p result
rescue Marqeta::ApiError => e
puts "Error when calling DigitalWalletTokenTransitionsApi->get_digitalwallettokentransitions_digitalwallettoken_token: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_digitalwallettokentransitions_digitalwallettoken_token_with_http_info(token, opts)
begin
# Lists all digital wallet token transitions
data, status_code, headers = api_instance.get_digitalwallettokentransitions_digitalwallettoken_token_with_http_info(token, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <DigitalWalletTokenTransitionListResponse>
rescue Marqeta::ApiError => e
puts "Error when calling DigitalWalletTokenTransitionsApi->get_digitalwallettokentransitions_digitalwallettoken_token_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
token | String | Digital wallet token | |
count | Integer | Number of digital wallet transitions to retrieve | [optional][default to 5] |
start_index | Integer | Start index | [optional][default to 0] |
fields | String | Comma-delimited list of fields to return (e.g. field_1,field_2,..). Leave blank to return all fields. | [optional] |
sort_by | String | Sort order | [optional][default to '-id'] |
DigitalWalletTokenTransitionListResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
get_digitalwallettokentransitions_token(token, opts)
Returns a digital wallet transition object
require 'time'
require 'marqeta'
api_instance = Marqeta::DigitalWalletTokenTransitionsApi.new
token = 'token_example' # String | Digital wallet transition token
opts = {
fields: 'fields_example' # String | Comma-delimited list of fields to return (e.g. field_1,field_2,..). Leave blank to return all fields.
}
begin
# Returns a digital wallet transition object
result = api_instance.get_digitalwallettokentransitions_token(token, opts)
p result
rescue Marqeta::ApiError => e
puts "Error when calling DigitalWalletTokenTransitionsApi->get_digitalwallettokentransitions_token: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_digitalwallettokentransitions_token_with_http_info(token, opts)
begin
# Returns a digital wallet transition object
data, status_code, headers = api_instance.get_digitalwallettokentransitions_token_with_http_info(token, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <DigitalWalletTokenTransitionResponse>
rescue Marqeta::ApiError => e
puts "Error when calling DigitalWalletTokenTransitionsApi->get_digitalwallettokentransitions_token_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
token | String | Digital wallet transition token | |
fields | String | Comma-delimited list of fields to return (e.g. field_1,field_2,..). Leave blank to return all fields. | [optional] |
DigitalWalletTokenTransitionResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
post_digitalwallettokentransitions(opts)
Creates a digital wallet token transition
require 'time'
require 'marqeta'
api_instance = Marqeta::DigitalWalletTokenTransitionsApi.new
opts = {
body: Marqeta::DigitalWalletTokenTransitionRequest.new({digital_wallet_token: Marqeta::DigitalWalletTokenHash.new({token: 'token_example'}), state: 'ACTIVE'}) # DigitalWalletTokenTransitionRequest |
}
begin
# Creates a digital wallet token transition
result = api_instance.post_digitalwallettokentransitions(opts)
p result
rescue Marqeta::ApiError => e
puts "Error when calling DigitalWalletTokenTransitionsApi->post_digitalwallettokentransitions: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> post_digitalwallettokentransitions_with_http_info(opts)
begin
# Creates a digital wallet token transition
data, status_code, headers = api_instance.post_digitalwallettokentransitions_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <DigitalWalletTokenTransitionResponse>
rescue Marqeta::ApiError => e
puts "Error when calling DigitalWalletTokenTransitionsApi->post_digitalwallettokentransitions_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
body | DigitalWalletTokenTransitionRequest | [optional] |
DigitalWalletTokenTransitionResponse
No authorization required
- Content-Type: application/json
- Accept: application/json