get_resource_payment_token¶
Operation¶
get_resource_payment_token
async
¶
get_resource_payment_token(input: GetResourcePaymentTokenInput, plugins: list[Plugin] | None = None) -> GetResourcePaymentTokenOutput
Generates authentication tokens for payment providers that use vendor-specific authentication mechanisms.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
GetResourcePaymentTokenInput
|
An instance of |
required |
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
Returns:
| Type | Description |
|---|---|
GetResourcePaymentTokenOutput
|
An instance of |
Input¶
GetResourcePaymentTokenInput
dataclass
¶
Dataclass for GetResourcePaymentTokenInput structure.
Attributes¶
payment_token_request
class-attribute
instance-attribute
¶
payment_token_request: PaymentTokenRequestInput | None = None
Vendor-specific token request input. Contains all request parameters in a type-safe, vendor-specific structure.
resource_credential_provider_name
class-attribute
instance-attribute
¶
resource_credential_provider_name: str | None = None
Name of the payment credential provider to use.
workload_identity_token
class-attribute
instance-attribute
¶
workload_identity_token: str | None = field(repr=False, default=None)
Workload access token for authorization.
Output¶
GetResourcePaymentTokenOutput
dataclass
¶
Dataclass for GetResourcePaymentTokenOutput structure.
Attributes¶
payment_token_response
instance-attribute
¶
payment_token_response: PaymentTokenResponseOutput
Vendor-specific token response output. Contains all response data in a type-safe, vendor-specific structure.