Package com.adyen.model.balanceplatform
Class CardOrderItem
- java.lang.Object
-
- com.adyen.model.balanceplatform.CardOrderItem
-
public class CardOrderItem extends Object
CardOrderItem
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_BALANCE_PLATFORMstatic StringJSON_PROPERTY_CARDstatic StringJSON_PROPERTY_CARD_ORDER_ITEM_IDstatic StringJSON_PROPERTY_CREATION_DATEstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_PAYMENT_INSTRUMENT_IDstatic StringJSON_PROPERTY_PINstatic StringJSON_PROPERTY_SHIPPING_METHOD
-
Constructor Summary
Constructors Constructor Description CardOrderItem()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CardOrderItembalancePlatform(String balancePlatform)CardOrderItemcard(CardOrderItemDeliveryStatus card)CardOrderItemcardOrderItemId(String cardOrderItemId)CardOrderItemcreationDate(OffsetDateTime creationDate)booleanequals(Object o)Return true if this CardOrderItem object is equal to o.static CardOrderItemfromJson(String jsonString)Create an instance of CardOrderItem given an JSON stringStringgetBalancePlatform()The unique identifier of the balance platform.CardOrderItemDeliveryStatusgetCard()Get cardStringgetCardOrderItemId()The unique identifier of the card order item.OffsetDateTimegetCreationDate()The date and time when the event was triggered, in ISO 8601 extended format.StringgetId()The ID of the resource.StringgetPaymentInstrumentId()The unique identifier of the payment instrument related to the card order item.CardOrderItemDeliveryStatusgetPin()Get pinStringgetShippingMethod()The shipping method used to deliver the card or the PIN.inthashCode()CardOrderItemid(String id)CardOrderItempaymentInstrumentId(String paymentInstrumentId)CardOrderItempin(CardOrderItemDeliveryStatus pin)voidsetBalancePlatform(String balancePlatform)The unique identifier of the balance platform.voidsetCard(CardOrderItemDeliveryStatus card)cardvoidsetCardOrderItemId(String cardOrderItemId)The unique identifier of the card order item.voidsetCreationDate(OffsetDateTime creationDate)The date and time when the event was triggered, in ISO 8601 extended format.voidsetId(String id)The ID of the resource.voidsetPaymentInstrumentId(String paymentInstrumentId)The unique identifier of the payment instrument related to the card order item.voidsetPin(CardOrderItemDeliveryStatus pin)pinvoidsetShippingMethod(String shippingMethod)The shipping method used to deliver the card or the PIN.CardOrderItemshippingMethod(String shippingMethod)StringtoJson()Convert an instance of CardOrderItem to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_BALANCE_PLATFORM
public static final String JSON_PROPERTY_BALANCE_PLATFORM
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CARD
public static final String JSON_PROPERTY_CARD
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CARD_ORDER_ITEM_ID
public static final String JSON_PROPERTY_CARD_ORDER_ITEM_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CREATION_DATE
public static final String JSON_PROPERTY_CREATION_DATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_INSTRUMENT_ID
public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PIN
public static final String JSON_PROPERTY_PIN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SHIPPING_METHOD
public static final String JSON_PROPERTY_SHIPPING_METHOD
- See Also:
- Constant Field Values
-
-
Method Detail
-
balancePlatform
public CardOrderItem balancePlatform(String balancePlatform)
-
getBalancePlatform
public String getBalancePlatform()
The unique identifier of the balance platform.- Returns:
- balancePlatform
-
setBalancePlatform
public void setBalancePlatform(String balancePlatform)
The unique identifier of the balance platform.- Parameters:
balancePlatform-
-
card
public CardOrderItem card(CardOrderItemDeliveryStatus card)
-
getCard
public CardOrderItemDeliveryStatus getCard()
Get card- Returns:
- card
-
setCard
public void setCard(CardOrderItemDeliveryStatus card)
card- Parameters:
card-
-
cardOrderItemId
public CardOrderItem cardOrderItemId(String cardOrderItemId)
-
getCardOrderItemId
public String getCardOrderItemId()
The unique identifier of the card order item.- Returns:
- cardOrderItemId
-
setCardOrderItemId
public void setCardOrderItemId(String cardOrderItemId)
The unique identifier of the card order item.- Parameters:
cardOrderItemId-
-
creationDate
public CardOrderItem creationDate(OffsetDateTime creationDate)
-
getCreationDate
public OffsetDateTime getCreationDate()
The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.- Returns:
- creationDate
-
setCreationDate
public void setCreationDate(OffsetDateTime creationDate)
The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.- Parameters:
creationDate-
-
id
public CardOrderItem id(String id)
-
getId
public String getId()
The ID of the resource.- Returns:
- id
-
setId
public void setId(String id)
The ID of the resource.- Parameters:
id-
-
paymentInstrumentId
public CardOrderItem paymentInstrumentId(String paymentInstrumentId)
-
getPaymentInstrumentId
public String getPaymentInstrumentId()
The unique identifier of the payment instrument related to the card order item.- Returns:
- paymentInstrumentId
-
setPaymentInstrumentId
public void setPaymentInstrumentId(String paymentInstrumentId)
The unique identifier of the payment instrument related to the card order item.- Parameters:
paymentInstrumentId-
-
pin
public CardOrderItem pin(CardOrderItemDeliveryStatus pin)
-
getPin
public CardOrderItemDeliveryStatus getPin()
Get pin- Returns:
- pin
-
setPin
public void setPin(CardOrderItemDeliveryStatus pin)
pin- Parameters:
pin-
-
shippingMethod
public CardOrderItem shippingMethod(String shippingMethod)
-
getShippingMethod
public String getShippingMethod()
The shipping method used to deliver the card or the PIN.- Returns:
- shippingMethod
-
setShippingMethod
public void setShippingMethod(String shippingMethod)
The shipping method used to deliver the card or the PIN.- Parameters:
shippingMethod-
-
equals
public boolean equals(Object o)
Return true if this CardOrderItem object is equal to o.
-
fromJson
public static CardOrderItem fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CardOrderItem given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CardOrderItem
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CardOrderItem
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CardOrderItem to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-