public class PaymentTokenResponse extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PaymentTokenResponse.Builder
Class to build instances of
PaymentTokenResponse. |
| Constructor and Description |
|---|
PaymentTokenResponse()
Default constructor.
|
PaymentTokenResponse(String id,
CustomerResponse customer,
PaymentTokenResponsePaymentSource paymentSource,
List<LinkDescription> links)
Initialization constructor.
|
| Modifier and Type | Method and Description |
|---|---|
CustomerResponse |
getCustomer()
Getter for Customer.
|
String |
getId()
Getter for Id.
|
List<LinkDescription> |
getLinks()
Getter for Links.
|
PaymentTokenResponsePaymentSource |
getPaymentSource()
Getter for PaymentSource.
|
void |
setCustomer(CustomerResponse customer)
Setter for Customer.
|
void |
setId(String id)
Setter for Id.
|
void |
setLinks(List<LinkDescription> links)
Setter for Links.
|
void |
setPaymentSource(PaymentTokenResponsePaymentSource paymentSource)
Setter for PaymentSource.
|
PaymentTokenResponse.Builder |
toBuilder()
Builds a new
PaymentTokenResponse.Builder object. |
String |
toString()
Converts this PaymentTokenResponse into string format.
|
public PaymentTokenResponse()
public PaymentTokenResponse(String id, CustomerResponse customer, PaymentTokenResponsePaymentSource paymentSource, List<LinkDescription> links)
id - String value for id.customer - CustomerResponse value for customer.paymentSource - PaymentTokenResponsePaymentSource value for paymentSource.links - List of LinkDescription value for links.public String getId()
public void setId(String id)
id - Value for Stringpublic CustomerResponse getCustomer()
public void setCustomer(CustomerResponse customer)
customer - Value for CustomerResponsepublic PaymentTokenResponsePaymentSource getPaymentSource()
public void setPaymentSource(PaymentTokenResponsePaymentSource paymentSource)
paymentSource - Value for PaymentTokenResponsePaymentSourcepublic List<LinkDescription> getLinks()
public void setLinks(List<LinkDescription> links)
links - Value for List of LinkDescriptionpublic String toString()
public PaymentTokenResponse.Builder toBuilder()
PaymentTokenResponse.Builder object.
Creates the instance with the state of the current model.PaymentTokenResponse.Builder objectCopyright © 2025. All rights reserved.