com.paypal.sdk.models.PayPalWalletAttributesResponse Maven / Gradle / Ivy
/*
* PaypalServerSDKLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
package com.paypal.sdk.models;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonSetter;
import java.util.List;
/**
* This is a model class for PayPalWalletAttributesResponse type.
*/
public class PayPalWalletAttributesResponse {
private PayPalWalletVaultResponse vault;
private List cobrandedCards;
/**
* Default constructor.
*/
public PayPalWalletAttributesResponse() {
}
/**
* Initialization constructor.
* @param vault PayPalWalletVaultResponse value for vault.
* @param cobrandedCards List of CobrandedCard value for cobrandedCards.
*/
public PayPalWalletAttributesResponse(
PayPalWalletVaultResponse vault,
List cobrandedCards) {
this.vault = vault;
this.cobrandedCards = cobrandedCards;
}
/**
* Getter for Vault.
* The details about a saved PayPal Wallet payment source.
* @return Returns the PayPalWalletVaultResponse
*/
@JsonGetter("vault")
@JsonInclude(JsonInclude.Include.NON_NULL)
public PayPalWalletVaultResponse getVault() {
return vault;
}
/**
* Setter for Vault.
* The details about a saved PayPal Wallet payment source.
* @param vault Value for PayPalWalletVaultResponse
*/
@JsonSetter("vault")
public void setVault(PayPalWalletVaultResponse vault) {
this.vault = vault;
}
/**
* Getter for CobrandedCards.
* An array of merchant cobranded cards used by buyer to complete an order. This array will be
* present if a merchant has onboarded their cobranded card with PayPal and provided
* corresponding label(s).
* @return Returns the List of CobrandedCard
*/
@JsonGetter("cobranded_cards")
@JsonInclude(JsonInclude.Include.NON_NULL)
public List getCobrandedCards() {
return cobrandedCards;
}
/**
* Setter for CobrandedCards.
* An array of merchant cobranded cards used by buyer to complete an order. This array will be
* present if a merchant has onboarded their cobranded card with PayPal and provided
* corresponding label(s).
* @param cobrandedCards Value for List of CobrandedCard
*/
@JsonSetter("cobranded_cards")
public void setCobrandedCards(List cobrandedCards) {
this.cobrandedCards = cobrandedCards;
}
/**
* Converts this PayPalWalletAttributesResponse into string format.
* @return String representation of this class
*/
@Override
public String toString() {
return "PayPalWalletAttributesResponse [" + "vault=" + vault + ", cobrandedCards="
+ cobrandedCards + "]";
}
/**
* Builds a new {@link PayPalWalletAttributesResponse.Builder} object.
* Creates the instance with the state of the current model.
* @return a new {@link PayPalWalletAttributesResponse.Builder} object
*/
public Builder toBuilder() {
Builder builder = new Builder()
.vault(getVault())
.cobrandedCards(getCobrandedCards());
return builder;
}
/**
* Class to build instances of {@link PayPalWalletAttributesResponse}.
*/
public static class Builder {
private PayPalWalletVaultResponse vault;
private List cobrandedCards;
/**
* Setter for vault.
* @param vault PayPalWalletVaultResponse value for vault.
* @return Builder
*/
public Builder vault(PayPalWalletVaultResponse vault) {
this.vault = vault;
return this;
}
/**
* Setter for cobrandedCards.
* @param cobrandedCards List of CobrandedCard value for cobrandedCards.
* @return Builder
*/
public Builder cobrandedCards(List cobrandedCards) {
this.cobrandedCards = cobrandedCards;
return this;
}
/**
* Builds a new {@link PayPalWalletAttributesResponse} object using the set fields.
* @return {@link PayPalWalletAttributesResponse}
*/
public PayPalWalletAttributesResponse build() {
return new PayPalWalletAttributesResponse(vault, cobrandedCards);
}
}
}