Package model
Class CreateAuthorizationRequest
- java.lang.Object
-
- model.CreateAuthorizationRequest
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class CreateAuthorizationRequest extends Object
Create an `Authorization` resource.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateAuthorizationRequest.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_3D_SECURE_AUTHENTICATIONstatic StringSERIALIZED_NAME_ADDITIONAL_BUYER_CHARGESstatic StringSERIALIZED_NAME_ADDITIONAL_PURCHASE_DATAstatic StringSERIALIZED_NAME_AMOUNTstatic StringSERIALIZED_NAME_CURRENCYstatic StringSERIALIZED_NAME_DEVICEstatic StringSERIALIZED_NAME_FRAUD_SESSION_IDstatic StringSERIALIZED_NAME_IDEMPOTENCY_IDstatic StringSERIALIZED_NAME_MERCHANTstatic StringSERIALIZED_NAME_OPERATION_KEYstatic StringSERIALIZED_NAME_SOURCEstatic StringSERIALIZED_NAME_TAGS
-
Constructor Summary
Constructors Constructor Description CreateAuthorizationRequest()
-
Method Summary
-
-
-
Field Detail
-
SERIALIZED_NAME_ADDITIONAL_BUYER_CHARGES
public static final String SERIALIZED_NAME_ADDITIONAL_BUYER_CHARGES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ADDITIONAL_PURCHASE_DATA
public static final String SERIALIZED_NAME_ADDITIONAL_PURCHASE_DATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_AMOUNT
public static final String SERIALIZED_NAME_AMOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CURRENCY
public static final String SERIALIZED_NAME_CURRENCY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DEVICE
public static final String SERIALIZED_NAME_DEVICE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FRAUD_SESSION_ID
public static final String SERIALIZED_NAME_FRAUD_SESSION_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_IDEMPOTENCY_ID
public static final String SERIALIZED_NAME_IDEMPOTENCY_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MERCHANT
public static final String SERIALIZED_NAME_MERCHANT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_OPERATION_KEY
public static final String SERIALIZED_NAME_OPERATION_KEY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SOURCE
public static final String SERIALIZED_NAME_SOURCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TAGS
public static final String SERIALIZED_NAME_TAGS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_3D_SECURE_AUTHENTICATION
public static final String SERIALIZED_NAME_3D_SECURE_AUTHENTICATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
additionalBuyerCharges
public CreateAuthorizationRequest additionalBuyerCharges(AdditionalBuyerCharges additionalBuyerCharges)
-
getAdditionalBuyerCharges
@Nullable public AdditionalBuyerCharges getAdditionalBuyerCharges()
Get additionalBuyerCharges- Returns:
- additionalBuyerCharges
-
setAdditionalBuyerCharges
public void setAdditionalBuyerCharges(AdditionalBuyerCharges additionalBuyerCharges)
-
additionalPurchaseData
public CreateAuthorizationRequest additionalPurchaseData(AdditionalPurchaseData additionalPurchaseData)
-
getAdditionalPurchaseData
@Nullable public AdditionalPurchaseData getAdditionalPurchaseData()
Get additionalPurchaseData- Returns:
- additionalPurchaseData
-
setAdditionalPurchaseData
public void setAdditionalPurchaseData(AdditionalPurchaseData additionalPurchaseData)
-
amount
public CreateAuthorizationRequest amount(Long amount)
-
getAmount
@Nonnull public Long getAmount()
The total amount that will be debited in cents (e.g. 100 cents to debit $1.00).- Returns:
- amount
-
setAmount
public void setAmount(Long amount)
-
currency
public CreateAuthorizationRequest currency(Currency currency)
-
setCurrency
public void setCurrency(Currency currency)
-
device
public CreateAuthorizationRequest device(String device)
-
setDevice
public void setDevice(String device)
-
fraudSessionId
public CreateAuthorizationRequest fraudSessionId(String fraudSessionId)
-
getFraudSessionId
@Nullable public String getFraudSessionId()
The `fraud_session_session` ID you want to review for fraud. For more info, see [Fraud Detection](/docs/guides/payments/fraud-detection/).- Returns:
- fraudSessionId
-
setFraudSessionId
public void setFraudSessionId(String fraudSessionId)
-
idempotencyId
public CreateAuthorizationRequest idempotencyId(String idempotencyId)
-
getIdempotencyId
@Nullable public String getIdempotencyId()
A randomly generated value that'll be associated with the request.- Returns:
- idempotencyId
-
setIdempotencyId
public void setIdempotencyId(String idempotencyId)
-
merchant
public CreateAuthorizationRequest merchant(String merchant)
-
setMerchant
public void setMerchant(String merchant)
-
operationKey
public CreateAuthorizationRequest operationKey(OperationKey operationKey)
-
getOperationKey
@Nullable public OperationKey getOperationKey()
Get operationKey- Returns:
- operationKey
-
setOperationKey
public void setOperationKey(OperationKey operationKey)
-
source
public CreateAuthorizationRequest source(String source)
-
setSource
public void setSource(String source)
-
tags
public CreateAuthorizationRequest tags(Map<String,String> tags)
-
putTagsItem
public CreateAuthorizationRequest putTagsItem(String key, String tagsItem)
-
getTags
@Nullable public Map<String,String> getTags()
Key value pair for annotating custom meta data (e.g. order numbers).- Returns:
- tags
-
_3dSecureAuthentication
public CreateAuthorizationRequest _3dSecureAuthentication(CreateAuthorizationRequest3dSecureAuthentication _3dSecureAuthentication)
-
get3dSecureAuthentication
@Nullable public CreateAuthorizationRequest3dSecureAuthentication get3dSecureAuthentication()
Get _3dSecureAuthentication- Returns:
- _3dSecureAuthentication
-
set3dSecureAuthentication
public void set3dSecureAuthentication(CreateAuthorizationRequest3dSecureAuthentication _3dSecureAuthentication)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates 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
public static CreateAuthorizationRequest fromJson(String jsonString) throws IOException
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
public String toJson()
Convert an instance of CreateAuthorizationRequest to an JSON string- Returns:
- JSON string
-
-