Package com.adyen.model.checkout
Class UpiCollectDetails
- java.lang.Object
-
- com.adyen.model.checkout.UpiCollectDetails
-
public class UpiCollectDetails extends Object
UpiCollectDetails
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUpiCollectDetails.TypeEnum**upi_collect**
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_BILLING_SEQUENCE_NUMBERstatic StringJSON_PROPERTY_CHECKOUT_ATTEMPT_IDstatic StringJSON_PROPERTY_RECURRING_DETAIL_REFERENCEstatic StringJSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCEstatic StringJSON_PROPERTY_STORED_PAYMENT_METHOD_IDstatic StringJSON_PROPERTY_TYPEstatic StringJSON_PROPERTY_VIRTUAL_PAYMENT_ADDRESS
-
Constructor Summary
Constructors Constructor Description UpiCollectDetails()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description UpiCollectDetailsbillingSequenceNumber(String billingSequenceNumber)UpiCollectDetailscheckoutAttemptId(String checkoutAttemptId)booleanequals(Object o)Return true if this UpiCollectDetails object is equal to o.static UpiCollectDetailsfromJson(String jsonString)Create an instance of UpiCollectDetails given an JSON stringStringgetBillingSequenceNumber()The sequence number for the debit.StringgetCheckoutAttemptId()The checkout attempt identifier.StringgetRecurringDetailReference()Deprecated.StringgetShopperNotificationReference()The `shopperNotificationReference` returned in the response when you requested to notify the shopper.StringgetStoredPaymentMethodId()This is the `recurringDetailReference` returned in the response when you created the token.UpiCollectDetails.TypeEnumgetType()**upi_collect**StringgetVirtualPaymentAddress()The virtual payment address for UPI.inthashCode()UpiCollectDetailsrecurringDetailReference(String recurringDetailReference)Deprecated.voidsetBillingSequenceNumber(String billingSequenceNumber)The sequence number for the debit.voidsetCheckoutAttemptId(String checkoutAttemptId)The checkout attempt identifier.voidsetRecurringDetailReference(String recurringDetailReference)Deprecated.voidsetShopperNotificationReference(String shopperNotificationReference)The `shopperNotificationReference` returned in the response when you requested to notify the shopper.voidsetStoredPaymentMethodId(String storedPaymentMethodId)This is the `recurringDetailReference` returned in the response when you created the token.voidsetType(UpiCollectDetails.TypeEnum type)**upi_collect**voidsetVirtualPaymentAddress(String virtualPaymentAddress)The virtual payment address for UPI.UpiCollectDetailsshopperNotificationReference(String shopperNotificationReference)UpiCollectDetailsstoredPaymentMethodId(String storedPaymentMethodId)StringtoJson()Convert an instance of UpiCollectDetails to an JSON stringStringtoString()UpiCollectDetailstype(UpiCollectDetails.TypeEnum type)UpiCollectDetailsvirtualPaymentAddress(String virtualPaymentAddress)
-
-
-
Field Detail
-
JSON_PROPERTY_BILLING_SEQUENCE_NUMBER
public static final String JSON_PROPERTY_BILLING_SEQUENCE_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CHECKOUT_ATTEMPT_ID
public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RECURRING_DETAIL_REFERENCE
public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE
public static final String JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STORED_PAYMENT_METHOD_ID
public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VIRTUAL_PAYMENT_ADDRESS
public static final String JSON_PROPERTY_VIRTUAL_PAYMENT_ADDRESS
- See Also:
- Constant Field Values
-
-
Method Detail
-
billingSequenceNumber
public UpiCollectDetails billingSequenceNumber(String billingSequenceNumber)
-
getBillingSequenceNumber
public String getBillingSequenceNumber()
The sequence number for the debit. For example, send **2** if this is the second debit for the subscription. The sequence number is included in the notification sent to the shopper.- Returns:
- billingSequenceNumber
-
setBillingSequenceNumber
public void setBillingSequenceNumber(String billingSequenceNumber)
The sequence number for the debit. For example, send **2** if this is the second debit for the subscription. The sequence number is included in the notification sent to the shopper.- Parameters:
billingSequenceNumber-
-
checkoutAttemptId
public UpiCollectDetails checkoutAttemptId(String checkoutAttemptId)
-
getCheckoutAttemptId
public String getCheckoutAttemptId()
The checkout attempt identifier.- Returns:
- checkoutAttemptId
-
setCheckoutAttemptId
public void setCheckoutAttemptId(String checkoutAttemptId)
The checkout attempt identifier.- Parameters:
checkoutAttemptId-
-
recurringDetailReference
@Deprecated public UpiCollectDetails recurringDetailReference(String recurringDetailReference)
Deprecated.
-
getRecurringDetailReference
@Deprecated public String getRecurringDetailReference()
Deprecated.This is the `recurringDetailReference` returned in the response when you created the token.- Returns:
- recurringDetailReference
-
setRecurringDetailReference
@Deprecated public void setRecurringDetailReference(String recurringDetailReference)
Deprecated.This is the `recurringDetailReference` returned in the response when you created the token.- Parameters:
recurringDetailReference-
-
shopperNotificationReference
public UpiCollectDetails shopperNotificationReference(String shopperNotificationReference)
-
getShopperNotificationReference
public String getShopperNotificationReference()
The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only.- Returns:
- shopperNotificationReference
-
setShopperNotificationReference
public void setShopperNotificationReference(String shopperNotificationReference)
The `shopperNotificationReference` returned in the response when you requested to notify the shopper. Used for recurring payment only.- Parameters:
shopperNotificationReference-
-
storedPaymentMethodId
public UpiCollectDetails storedPaymentMethodId(String storedPaymentMethodId)
-
getStoredPaymentMethodId
public String getStoredPaymentMethodId()
This is the `recurringDetailReference` returned in the response when you created the token.- Returns:
- storedPaymentMethodId
-
setStoredPaymentMethodId
public void setStoredPaymentMethodId(String storedPaymentMethodId)
This is the `recurringDetailReference` returned in the response when you created the token.- Parameters:
storedPaymentMethodId-
-
type
public UpiCollectDetails type(UpiCollectDetails.TypeEnum type)
-
getType
public UpiCollectDetails.TypeEnum getType()
**upi_collect**- Returns:
- type
-
setType
public void setType(UpiCollectDetails.TypeEnum type)
**upi_collect**- Parameters:
type-
-
virtualPaymentAddress
public UpiCollectDetails virtualPaymentAddress(String virtualPaymentAddress)
-
getVirtualPaymentAddress
public String getVirtualPaymentAddress()
The virtual payment address for UPI.- Returns:
- virtualPaymentAddress
-
setVirtualPaymentAddress
public void setVirtualPaymentAddress(String virtualPaymentAddress)
The virtual payment address for UPI.- Parameters:
virtualPaymentAddress-
-
equals
public boolean equals(Object o)
Return true if this UpiCollectDetails object is equal to o.
-
fromJson
public static UpiCollectDetails fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of UpiCollectDetails given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UpiCollectDetails
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to UpiCollectDetails
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of UpiCollectDetails to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-