Class CardOrderItem
- java.lang.Object
-
- com.adyen.model.configurationwebhooks.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)The unique identifier of the balance platform.CardOrderItemcard(CardOrderItemDeliveryStatus card)cardCardOrderItemcardOrderItemId(String cardOrderItemId)The unique identifier of the card order item.CardOrderItemcreationDate(OffsetDateTime creationDate)The date and time when the event was triggered, in ISO 8601 extended format.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()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()pinStringgetShippingMethod()The shipping method used to deliver the card or the PIN.inthashCode()CardOrderItemid(String id)The ID of the resource.CardOrderItempaymentInstrumentId(String paymentInstrumentId)The unique identifier of the payment instrument related to the card order item.CardOrderItempin(CardOrderItemDeliveryStatus pin)pinvoidsetBalancePlatform(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)The shipping method used to deliver the card or the PIN.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)
The unique identifier of the balance platform.- Parameters:
balancePlatform-- Returns:
- the current
CardOrderIteminstance, allowing for method chaining
-
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)
card- Parameters:
card-- Returns:
- the current
CardOrderIteminstance, allowing for method chaining
-
getCard
public CardOrderItemDeliveryStatus getCard()
card- Returns:
- card
-
setCard
public void setCard(CardOrderItemDeliveryStatus card)
card- Parameters:
card-
-
cardOrderItemId
public CardOrderItem cardOrderItemId(String cardOrderItemId)
The unique identifier of the card order item.- Parameters:
cardOrderItemId-- Returns:
- the current
CardOrderIteminstance, allowing for method chaining
-
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)
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-- Returns:
- the current
CardOrderIteminstance, allowing for method chaining
-
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)
The ID of the resource.- Parameters:
id-- Returns:
- the current
CardOrderIteminstance, allowing for method chaining
-
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)
The unique identifier of the payment instrument related to the card order item.- Parameters:
paymentInstrumentId-- Returns:
- the current
CardOrderIteminstance, allowing for method chaining
-
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)
pin- Parameters:
pin-- Returns:
- the current
CardOrderIteminstance, allowing for method chaining
-
getPin
public CardOrderItemDeliveryStatus getPin()
pin- Returns:
- pin
-
setPin
public void setPin(CardOrderItemDeliveryStatus pin)
pin- Parameters:
pin-
-
shippingMethod
public CardOrderItem shippingMethod(String shippingMethod)
The shipping method used to deliver the card or the PIN.- Parameters:
shippingMethod-- Returns:
- the current
CardOrderIteminstance, allowing for method chaining
-
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
-
-