Package model
Class Authorization
java.lang.Object
model.Authorization
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-06-24T13:03:18.088665-07:00[America/Los_Angeles]")
public class Authorization
extends Object
A charge authorization
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThe state of the `Authorization`. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_3dsRedirectUrl(String _3dsRedirectUrl) addExternalResponsesItem(AuthorizationExternalResponsesInner externalResponsesItem) addMessagesItem(String messagesItem) application(String application) captureAmount(Long captureAmount) cardPresentDetails(CardPresentDetails cardPresentDetails) createdAt(OffsetDateTime createdAt) booleanexpiresAt(OffsetDateTime expiresAt) externalResponses(List<AuthorizationExternalResponsesInner> externalResponses) static AuthorizationCreate an instance of Authorization given an JSON stringThe redirect URL used for 3DS transactions (if supported by the processor).The total amount that will be debited in cents (e.g.The ID of the `Application` resource the `Authorization` was created under.The amount of the `Authorization` you would like to capture in cents.Get cardPresentDetailsTimestamp of when the object was created.Get currencyThe ID of the activated device.Authorization expiration time.Get externalResponsesgetId()The ID of the `Authorization` resource.A randomly generated value that'll be associated with the request.Details if the `Authorization` is void.getLinks()Get linksThe ID of the resource.The ID of the resource.Message field that provides additional details.getRaw()Raw response from the processorID of the `Payment Instrument` where funds get debited.getState()The state of the `Authorization`.getTags()Key value pair for annotating custom meta data (e.g.Trace ID of the `Authorization`.The ID of the `transfer` resource that gets created when the `Authorization` moves to **SUCCEEDED**.Timestamp of when the object was last updated.Details if the `Authorization` has been voided.inthashCode()idempotencyId(String idempotencyId) links(AuthorizationLinks links) merchantIdentity(String merchantIdentity) putTagsItem(String key, String tagsItem) voidset3dsRedirectUrl(String _3dsRedirectUrl) voidvoidsetApplication(String application) voidsetCaptureAmount(Long captureAmount) voidsetCardPresentDetails(CardPresentDetails cardPresentDetails) voidsetCreatedAt(OffsetDateTime createdAt) voidsetCurrency(Currency currency) voidvoidsetExpiresAt(OffsetDateTime expiresAt) voidsetExternalResponses(List<AuthorizationExternalResponsesInner> externalResponses) voidvoidsetIdempotencyId(String idempotencyId) voidvoidsetLinks(AuthorizationLinks links) voidsetMerchant(String merchant) voidsetMerchantIdentity(String merchantIdentity) voidsetMessages(List<String> messages) voidvoidvoidsetState(Authorization.StateEnum state) voidvoidsetTraceId(String traceId) voidsetTransfer(String transfer) voidsetUpdatedAt(OffsetDateTime updatedAt) voidsetVoidState(String voidState) state(Authorization.StateEnum state) toJson()Convert an instance of Authorization to an JSON stringtoString()updatedAt(OffsetDateTime updatedAt) 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_ID
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
SERIALIZED_NAME_3DS_REDIRECT_URL
- See Also:
-
SERIALIZED_NAME_AMOUNT
- See Also:
-
SERIALIZED_NAME_APPLICATION
- See Also:
-
SERIALIZED_NAME_CARD_PRESENT_DETAILS
- See Also:
-
SERIALIZED_NAME_CAPTURE_AMOUNT
- See Also:
-
SERIALIZED_NAME_CURRENCY
- See Also:
-
SERIALIZED_NAME_DEVICE
- See Also:
-
SERIALIZED_NAME_EXPIRES_AT
- See Also:
-
SERIALIZED_NAME_EXTERNAL_RESPONSES
- See Also:
-
SERIALIZED_NAME_IDEMPOTENCY_ID
- See Also:
-
SERIALIZED_NAME_IS_VOID
- See Also:
-
SERIALIZED_NAME_MERCHANT_IDENTITY
- See Also:
-
SERIALIZED_NAME_MERCHANT
- See Also:
-
SERIALIZED_NAME_MESSAGES
- See Also:
-
SERIALIZED_NAME_RAW
- See Also:
-
SERIALIZED_NAME_SOURCE
- See Also:
-
SERIALIZED_NAME_STATE
- See Also:
-
SERIALIZED_NAME_TRACE_ID
- See Also:
-
SERIALIZED_NAME_TRANSFER
- See Also:
-
SERIALIZED_NAME_VOID_STATE
- See Also:
-
SERIALIZED_NAME_LINKS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Authorization
public Authorization()
-
-
Method Details
-
tags
-
putTagsItem
-
getTags
Key value pair for annotating custom meta data (e.g. order numbers).- Returns:
- tags
-
setTags
-
id
-
getId
The ID of the `Authorization` resource.- Returns:
- id
-
setId
-
createdAt
-
getCreatedAt
Timestamp of when the object was created.- Returns:
- createdAt
-
setCreatedAt
-
updatedAt
-
getUpdatedAt
Timestamp of when the object was last updated.- Returns:
- updatedAt
-
setUpdatedAt
-
_3dsRedirectUrl
-
get3dsRedirectUrl
The redirect URL used for 3DS transactions (if supported by the processor).- Returns:
- _3dsRedirectUrl
-
set3dsRedirectUrl
-
amount
-
getAmount
The total amount that will be debited in cents (e.g. 100 cents to debit $1.00). minimum: 0- Returns:
- amount
-
setAmount
-
application
-
getApplication
The ID of the `Application` resource the `Authorization` was created under.- Returns:
- application
-
setApplication
-
cardPresentDetails
-
getCardPresentDetails
Get cardPresentDetails- Returns:
- cardPresentDetails
-
setCardPresentDetails
-
captureAmount
-
getCaptureAmount
The amount of the `Authorization` you would like to capture in cents. Must be less than or equal to the `amount` of the `Authorization`.- Returns:
- captureAmount
-
setCaptureAmount
-
currency
-
getCurrency
Get currency- Returns:
- currency
-
setCurrency
-
device
-
getDevice
The ID of the activated device.- Returns:
- device
-
setDevice
-
expiresAt
-
getExpiresAt
Authorization expiration time.- Returns:
- expiresAt
-
setExpiresAt
-
externalResponses
-
addExternalResponsesItem
public Authorization addExternalResponsesItem(AuthorizationExternalResponsesInner externalResponsesItem) -
getExternalResponses
Get externalResponses- Returns:
- externalResponses
-
setExternalResponses
-
idempotencyId
-
getIdempotencyId
A randomly generated value that'll be associated with the request.- Returns:
- idempotencyId
-
setIdempotencyId
-
isVoid
-
getIsVoid
Details if the `Authorization` is void.- Returns:
- isVoid
-
setIsVoid
-
merchantIdentity
-
getMerchantIdentity
The ID of the resource.- Returns:
- merchantIdentity
-
setMerchantIdentity
-
merchant
-
getMerchant
The ID of the resource.- Returns:
- merchant
-
setMerchant
-
messages
-
addMessagesItem
-
getMessages
Message field that provides additional details. This field is typically **null**.- Returns:
- messages
-
setMessages
-
raw
-
getRaw
Raw response from the processor- Returns:
- raw
-
setRaw
-
source
-
getSource
ID of the `Payment Instrument` where funds get debited.- Returns:
- source
-
setSource
-
state
-
getState
The state of the `Authorization`.- Returns:
- state
-
setState
-
traceId
-
getTraceId
Trace ID of the `Authorization`. The processor sends back the `trace_id` so you can track the authorization end-to-end.- Returns:
- traceId
-
setTraceId
-
transfer
-
getTransfer
The ID of the `transfer` resource that gets created when the `Authorization` moves to **SUCCEEDED**.- Returns:
- transfer
-
setTransfer
-
voidState
-
getVoidState
Details if the `Authorization` has been voided.- Returns:
- voidState
-
setVoidState
-
links
-
getLinks
Get links- Returns:
- links
-
setLinks
-
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 Authorization
-
fromJson
Create an instance of Authorization given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Authorization
- Throws:
IOException- if the JSON string is invalid with respect to Authorization
-
toJson
Convert an instance of Authorization to an JSON string- Returns:
- JSON string
-