Package model
Class UpdateAuthorizationRequest
- java.lang.Object
-
- model.UpdateAuthorizationRequest
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class UpdateAuthorizationRequest extends Object
UpdateAuthorizationRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUpdateAuthorizationRequest.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ADDITIONAL_PURCHASE_DATAstatic StringSERIALIZED_NAME_CAPTURE_AMOUNTstatic StringSERIALIZED_NAME_FEEstatic StringSERIALIZED_NAME_TAGSstatic StringSERIALIZED_NAME_VOID_ME
-
Constructor Summary
Constructors Constructor Description UpdateAuthorizationRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateAuthorizationRequestadditionalPurchaseData(AdditionalPurchaseData additionalPurchaseData)UpdateAuthorizationRequestcaptureAmount(Long captureAmount)booleanequals(Object o)UpdateAuthorizationRequestfee(Long fee)static UpdateAuthorizationRequestfromJson(String jsonString)Create an instance of UpdateAuthorizationRequest given an JSON stringAdditionalPurchaseDatagetAdditionalPurchaseData()Get additionalPurchaseDataLonggetCaptureAmount()The amount of the `Authorization` you would like to capture in cents.LonggetFee()The amount of the `Authorization` you'd like to collect as your fee in cents.Map<String,String>getTags()Key value pair for annotating custom meta data (e.g.BooleangetVoidMe()Set to **True** to void the `Authorization`.inthashCode()UpdateAuthorizationRequestputTagsItem(String key, String tagsItem)voidsetAdditionalPurchaseData(AdditionalPurchaseData additionalPurchaseData)voidsetCaptureAmount(Long captureAmount)voidsetFee(Long fee)voidsetTags(Map<String,String> tags)voidsetVoidMe(Boolean voidMe)UpdateAuthorizationRequesttags(Map<String,String> tags)StringtoJson()Convert an instance of UpdateAuthorizationRequest to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues foundUpdateAuthorizationRequestvoidMe(Boolean voidMe)
-
-
-
Field Detail
-
SERIALIZED_NAME_ADDITIONAL_PURCHASE_DATA
public static final String SERIALIZED_NAME_ADDITIONAL_PURCHASE_DATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CAPTURE_AMOUNT
public static final String SERIALIZED_NAME_CAPTURE_AMOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FEE
public static final String SERIALIZED_NAME_FEE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TAGS
public static final String SERIALIZED_NAME_TAGS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VOID_ME
public static final String SERIALIZED_NAME_VOID_ME
- See Also:
- Constant Field Values
-
-
Method Detail
-
additionalPurchaseData
public UpdateAuthorizationRequest additionalPurchaseData(AdditionalPurchaseData additionalPurchaseData)
-
getAdditionalPurchaseData
@Nullable public AdditionalPurchaseData getAdditionalPurchaseData()
Get additionalPurchaseData- Returns:
- additionalPurchaseData
-
setAdditionalPurchaseData
public void setAdditionalPurchaseData(AdditionalPurchaseData additionalPurchaseData)
-
captureAmount
public UpdateAuthorizationRequest captureAmount(Long captureAmount)
-
getCaptureAmount
@Nullable public Long 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
public void setCaptureAmount(Long captureAmount)
-
fee
public UpdateAuthorizationRequest fee(Long fee)
-
getFee
@Nullable public Long getFee()
The amount of the `Authorization` you'd like to collect as your fee in cents. Defaults to zero (must be less than or equal to the `amount`).- Returns:
- fee
-
setFee
public void setFee(Long fee)
-
tags
public UpdateAuthorizationRequest tags(Map<String,String> tags)
-
putTagsItem
public UpdateAuthorizationRequest 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
-
voidMe
public UpdateAuthorizationRequest voidMe(Boolean voidMe)
-
getVoidMe
@Nullable public Boolean getVoidMe()
Set to **True** to void the `Authorization`.- Returns:
- voidMe
-
setVoidMe
public void setVoidMe(Boolean voidMe)
-
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 UpdateAuthorizationRequest
-
fromJson
public static UpdateAuthorizationRequest fromJson(String jsonString) throws IOException
Create an instance of UpdateAuthorizationRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UpdateAuthorizationRequest
- Throws:
IOException- if the JSON string is invalid with respect to UpdateAuthorizationRequest
-
toJson
public String toJson()
Convert an instance of UpdateAuthorizationRequest to an JSON string- Returns:
- JSON string
-
-