Package model
Class CreateAuthorizationRequest
java.lang.Object
model.CreateAuthorizationRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-06-24T13:03:18.088665-07:00[America/Los_Angeles]")
public class CreateAuthorizationRequest
extends Object
Create an `Authorization` resource.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumName of the transaction processor. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_3dSecureAuthentication(CreateAuthorizationRequest3dSecureAuthentication _3dSecureAuthentication) additionalPurchaseData(AdditionalPurchaseData additionalPurchaseData) booleanstatic CreateAuthorizationRequestCreate an instance of CreateAuthorizationRequest given an JSON stringGet _3dSecureAuthenticationGet additionalPurchaseDataThe total amount that will be debited in cents (e.g.Get currencyA randomly generated value that'll be associated with the request.The ID of the resource.The ID of the resource.Describes the operation to be performed in the transaction.Name of the transaction processor.The ID of the resource.getTags()Key value pair for annotating custom meta data (e.g.inthashCode()idempotencyId(String idempotencyId) merchantIdentity(String merchantIdentity) operationKey(String operationKey) putTagsItem(String key, String tagsItem) voidset3dSecureAuthentication(CreateAuthorizationRequest3dSecureAuthentication _3dSecureAuthentication) voidsetAdditionalPurchaseData(AdditionalPurchaseData additionalPurchaseData) voidvoidsetCurrency(Currency currency) voidsetIdempotencyId(String idempotencyId) voidsetMerchant(String merchant) voidsetMerchantIdentity(String merchantIdentity) voidsetOperationKey(String operationKey) voidvoidvoidtoJson()Convert an instance of CreateAuthorizationRequest to an JSON stringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_TAGS
- See Also:
-
SERIALIZED_NAME_AMOUNT
- See Also:
-
SERIALIZED_NAME_CURRENCY
- See Also:
-
SERIALIZED_NAME_IDEMPOTENCY_ID
- See Also:
-
SERIALIZED_NAME_MERCHANT
- See Also:
-
SERIALIZED_NAME_MERCHANT_IDENTITY
- See Also:
-
SERIALIZED_NAME_PROCESSOR
- See Also:
-
SERIALIZED_NAME_SOURCE
- See Also:
-
SERIALIZED_NAME_ADDITIONAL_PURCHASE_DATA
- See Also:
-
SERIALIZED_NAME_3D_SECURE_AUTHENTICATION
- See Also:
-
SERIALIZED_NAME_OPERATION_KEY
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateAuthorizationRequest
public CreateAuthorizationRequest()
-
-
Method Details
-
tags
-
putTagsItem
-
getTags
Key value pair for annotating custom meta data (e.g. order numbers).- Returns:
- tags
-
setTags
-
amount
-
getAmount
The total amount that will be debited in cents (e.g. 100 cents to debit $1.00).- Returns:
- amount
-
setAmount
-
currency
-
getCurrency
Get currency- Returns:
- currency
-
setCurrency
-
idempotencyId
-
getIdempotencyId
A randomly generated value that'll be associated with the request.- Returns:
- idempotencyId
-
setIdempotencyId
-
merchant
-
getMerchant
The ID of the resource.- Returns:
- merchant
-
setMerchant
-
merchantIdentity
-
getMerchantIdentity
The ID of the resource.- Returns:
- merchantIdentity
-
setMerchantIdentity
-
processor
-
getProcessor
Name of the transaction processor.- Returns:
- processor
-
setProcessor
-
source
-
getSource
The ID of the resource.- Returns:
- source
-
setSource
-
additionalPurchaseData
public CreateAuthorizationRequest additionalPurchaseData(AdditionalPurchaseData additionalPurchaseData) -
getAdditionalPurchaseData
Get additionalPurchaseData- Returns:
- additionalPurchaseData
-
setAdditionalPurchaseData
-
_3dSecureAuthentication
public CreateAuthorizationRequest _3dSecureAuthentication(CreateAuthorizationRequest3dSecureAuthentication _3dSecureAuthentication) -
get3dSecureAuthentication
Get _3dSecureAuthentication- Returns:
- _3dSecureAuthentication
-
set3dSecureAuthentication
public void set3dSecureAuthentication(CreateAuthorizationRequest3dSecureAuthentication _3dSecureAuthentication) -
operationKey
-
getOperationKey
Describes the operation to be performed in the transaction. - **CARD\\_PRESENT\\_AUTHORIZATION**: When making in-person payment with EMV card.- Returns:
- operationKey
-
setOperationKey
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to CreateAuthorizationRequest
-
fromJson
Create an instance of CreateAuthorizationRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateAuthorizationRequest
- Throws:
IOException- if the JSON string is invalid with respect to CreateAuthorizationRequest
-
toJson
Convert an instance of CreateAuthorizationRequest to an JSON string- Returns:
- JSON string
-