Class AmazonPayConfigurationInput
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AmazonPayConfigurationInput.Builder,AmazonPayConfigurationInput>
Amazon Pay configuration - AgentCore is a hosted Solution Provider (SP). The merchant grants SP access in Seller Central out of band, then shares merchantId, storeId, and authorizationToken: either the MWSAuthToken (amzn.mws.) from the grant, or the delegated token from the V2 authorization-token exchange. The vend exchanges an MWSAuthToken with the AgentCore Payments live SP key, signs each call (AMZN-PAY-RSASSA-PSS-V2) with the SP KMS key named on the vend request, and sends the delegated token in the X-Amz-Pay-AuthToken header. https://developer.amazon.com/docs/amazon-pay-registration/token-exchange.html
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal AmazonPayRegionTypeThe Amazon Pay region the merchant's authorization token belongs to (NA or EU).final StringThe Amazon Pay region the merchant's authorization token belongs to (NA or EU).final StringInline MWSAuthToken or delegated authorization token (MANAGED).final SecretReferenceReference to your Secrets Manager secret that holds the authorization token (EXTERNAL).final SecretSourceTypeWhere the authorization token is stored: MANAGED by AgentCore or EXTERNAL in your Secrets Manager secret.final StringWhere the authorization token is stored: MANAGED by AgentCore or EXTERNAL in your Secrets Manager secret.builder()final AmazonPayEnvironmentTypeAmazon Pay environment: LIVE or SANDBOX.final StringAmazon Pay environment: LIVE or SANDBOX.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringAmazon Pay merchant ID (Seller ID) of the merchant account.static Class<? extends AmazonPayConfigurationInput.Builder> final StringstoreId()Amazon Pay client store ID of the merchant's store.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
merchantId
Amazon Pay merchant ID (Seller ID) of the merchant account.
- Returns:
- Amazon Pay merchant ID (Seller ID) of the merchant account.
-
storeId
Amazon Pay client store ID of the merchant's store.
- Returns:
- Amazon Pay client store ID of the merchant's store.
-
authorizationToken
Inline MWSAuthToken or delegated authorization token (MANAGED). Mutually exclusive with authorizationTokenConfig. AgentCore stores it as given and exchanges an MWSAuthToken at vend.
- Returns:
- Inline MWSAuthToken or delegated authorization token (MANAGED). Mutually exclusive with authorizationTokenConfig. AgentCore stores it as given and exchanges an MWSAuthToken at vend.
-
authorizationTokenSource
Where the authorization token is stored: MANAGED by AgentCore or EXTERNAL in your Secrets Manager secret.
If the service returns an enum value that is not available in the current SDK version,
authorizationTokenSourcewill returnSecretSourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromauthorizationTokenSourceAsString().- Returns:
- Where the authorization token is stored: MANAGED by AgentCore or EXTERNAL in your Secrets Manager secret.
- See Also:
-
authorizationTokenSourceAsString
Where the authorization token is stored: MANAGED by AgentCore or EXTERNAL in your Secrets Manager secret.
If the service returns an enum value that is not available in the current SDK version,
authorizationTokenSourcewill returnSecretSourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromauthorizationTokenSourceAsString().- Returns:
- Where the authorization token is stored: MANAGED by AgentCore or EXTERNAL in your Secrets Manager secret.
- See Also:
-
authorizationTokenConfig
Reference to your Secrets Manager secret that holds the authorization token (EXTERNAL). Mutually exclusive with authorizationToken.
- Returns:
- Reference to your Secrets Manager secret that holds the authorization token (EXTERNAL). Mutually exclusive with authorizationToken.
-
environment
Amazon Pay environment: LIVE or SANDBOX.
If the service returns an enum value that is not available in the current SDK version,
environmentwill returnAmazonPayEnvironmentType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromenvironmentAsString().- Returns:
- Amazon Pay environment: LIVE or SANDBOX.
- See Also:
-
environmentAsString
Amazon Pay environment: LIVE or SANDBOX.
If the service returns an enum value that is not available in the current SDK version,
environmentwill returnAmazonPayEnvironmentType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromenvironmentAsString().- Returns:
- Amazon Pay environment: LIVE or SANDBOX.
- See Also:
-
amazonPayRegion
The Amazon Pay region the merchant's authorization token belongs to (NA or EU). AgentCore uses it to pick the Amazon Pay API host and the x-amz-pay-region value.
If the service returns an enum value that is not available in the current SDK version,
amazonPayRegionwill returnAmazonPayRegionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromamazonPayRegionAsString().- Returns:
- The Amazon Pay region the merchant's authorization token belongs to (NA or EU). AgentCore uses it to pick the Amazon Pay API host and the x-amz-pay-region value.
- See Also:
-
amazonPayRegionAsString
The Amazon Pay region the merchant's authorization token belongs to (NA or EU). AgentCore uses it to pick the Amazon Pay API host and the x-amz-pay-region value.
If the service returns an enum value that is not available in the current SDK version,
amazonPayRegionwill returnAmazonPayRegionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromamazonPayRegionAsString().- Returns:
- The Amazon Pay region the merchant's authorization token belongs to (NA or EU). AgentCore uses it to pick the Amazon Pay API host and the x-amz-pay-region value.
- See Also:
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<AmazonPayConfigurationInput.Builder,AmazonPayConfigurationInput> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-