Package io.voucherify.client.model
Class VoucherTransaction
java.lang.Object
io.voucherify.client.model.VoucherTransaction
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class VoucherTransaction
extends Object
VoucherTransaction
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumGets or Sets type -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncampaignId(String campaignId) createdAt(OffsetDateTime createdAt) details(VoucherTransactionDetails details) booleanstatic VoucherTransactionCreate an instance of VoucherTransaction given an JSON stringUnqiue campaign ID of the voucher's parent campaign if it is part of campaign that generates bulk codes.Timestamp representing the date and time when the transaction was created.Get detailsgetId()Unique transaction ID.Reason why the transaction occurred.The related transaction ID on the receiving card.The channel through which the transaction took place, whether through the API or the the Dashboard.The merchant's transaction ID if it is different from the Voucherify transaction ID.getType()Get typeUnique voucher ID.inthashCode()relatedTransactionId(String relatedTransactionId) voidsetCampaignId(String campaignId) voidsetCreatedAt(OffsetDateTime createdAt) voidsetDetails(VoucherTransactionDetails details) voidvoidvoidsetRelatedTransactionId(String relatedTransactionId) voidvoidsetSourceId(String sourceId) voidvoidsetVoucherId(String voucherId) toJson()Convert an instance of VoucherTransaction to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_SOURCE_ID
- See Also:
-
SERIALIZED_NAME_VOUCHER_ID
- See Also:
-
SERIALIZED_NAME_CAMPAIGN_ID
- See Also:
-
SERIALIZED_NAME_SOURCE
- See Also:
-
SERIALIZED_NAME_REASON
- See Also:
-
SERIALIZED_NAME_RELATED_TRANSACTION_ID
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_DETAILS
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
VoucherTransaction
public VoucherTransaction()
-
-
Method Details
-
id
-
getId
Unique transaction ID.- Returns:
- id
-
setId
-
sourceId
-
getSourceId
The merchant's transaction ID if it is different from the Voucherify transaction ID. It is really useful in case of an integration between multiple systems. It can be a transaction ID from a CRM system, database or 3rd-party service. In case of a redemption, this value is null.- Returns:
- sourceId
-
setSourceId
-
voucherId
-
getVoucherId
Unique voucher ID.- Returns:
- voucherId
-
setVoucherId
-
campaignId
-
getCampaignId
Unqiue campaign ID of the voucher's parent campaign if it is part of campaign that generates bulk codes.- Returns:
- campaignId
-
setCampaignId
-
source
-
getSource
The channel through which the transaction took place, whether through the API or the the Dashboard. In case of a redemption, this value is null.- Returns:
- source
-
setSource
-
reason
-
getReason
Reason why the transaction occurred. In case of a redemption, this value is null.- Returns:
- reason
-
setReason
-
getRelatedTransactionId
The related transaction ID on the receiving card.- Returns:
- relatedTransactionId
-
setRelatedTransactionId
-
createdAt
-
getCreatedAt
Timestamp representing the date and time when the transaction was created. The value is shown in the ISO 8601 format.- Returns:
- createdAt
-
setCreatedAt
-
details
-
getDetails
Get details- Returns:
- details
-
setDetails
-
type
-
getType
Get type- Returns:
- type
-
setType
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of VoucherTransaction given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of VoucherTransaction
- Throws:
IOException- if the JSON string is invalid with respect to VoucherTransaction
-
toJson
Convert an instance of VoucherTransaction to an JSON string- Returns:
- JSON string
-