Package io.voucherify.client.model
Class LoyaltiesTransferPoints
java.lang.Object
io.voucherify.client.model.LoyaltiesTransferPoints
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LoyaltiesTransferPoints
extends Object
LoyaltiesTransferPoints
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic LoyaltiesTransferPointsCreate an instance of LoyaltiesTransferPoints given an JSON stringgetCode()Unique loyalty card code from which the user wants to transfer loyalty points (source).The number of loyalty points that the user wants to transfer to another loyalty card.Reason for the transfer.The merchant's transaction ID if it is different from the Voucherify transaction ID.inthashCode()voidvoidvoidvoidsetSourceId(String sourceId) toJson()Convert an instance of LoyaltiesTransferPoints to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_CODE
- See Also:
-
SERIALIZED_NAME_POINTS
- See Also:
-
SERIALIZED_NAME_REASON
- See Also:
-
SERIALIZED_NAME_SOURCE_ID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LoyaltiesTransferPoints
public LoyaltiesTransferPoints()
-
-
Method Details
-
code
-
getCode
Unique loyalty card code from which the user wants to transfer loyalty points (source).- Returns:
- code
-
setCode
-
points
-
getPoints
The number of loyalty points that the user wants to transfer to another loyalty card. The number of points cannot be higher than the current balance on the loyalty card (source).- Returns:
- points
-
setPoints
-
reason
-
getReason
Reason for the transfer.- Returns:
- reason
-
setReason
-
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.- Returns:
- sourceId
-
setSourceId
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of LoyaltiesTransferPoints given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LoyaltiesTransferPoints
- Throws:
IOException- if the JSON string is invalid with respect to LoyaltiesTransferPoints
-
toJson
Convert an instance of LoyaltiesTransferPoints to an JSON string- Returns:
- JSON string
-