Package io.moov.sdk.models.components
Class Card.Builder
- java.lang.Object
-
- io.moov.sdk.models.components.Card.Builder
-
- Enclosing class:
- Card
public static final class Card.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Card.BuilderbillingAddress(CardAddress billingAddress)Card.Builderbin(java.lang.String bin)The first six to eight digits of the card number, which identifies the financial institution that issued the card.Card.Builderbrand(CardBrand brand)The card brand.Cardbuild()Card.BuildercardAccountUpdater(CardAccountUpdater cardAccountUpdater)The results of the most recent card update request.Card.BuildercardAccountUpdater(java.util.Optional<? extends CardAccountUpdater> cardAccountUpdater)The results of the most recent card update request.Card.BuildercardCategory(java.lang.String cardCategory)The category or level of the card defined by the issuer.Card.BuildercardCategory(java.util.Optional<java.lang.String> cardCategory)The category or level of the card defined by the issuer.Card.BuildercardID(java.lang.String cardID)ID of the card.Card.BuildercardOnFile(boolean cardOnFile)Indicates cardholder has authorized card to be stored for future payments.Card.BuildercardOnFile(java.util.Optional<java.lang.Boolean> cardOnFile)Indicates cardholder has authorized card to be stored for future payments.Card.BuildercardType(CardType cardType)The type of the card.Card.BuildercardVerification(CardVerification cardVerification)The results of submitting cardholder data to a card network for verification.Card.Buildercommercial(boolean commercial)If true, the card is for commercial use, or associated with a business.Card.Buildercommercial(java.util.Optional<java.lang.Boolean> commercial)If true, the card is for commercial use, or associated with a business.Card.BuilderdomesticPullFromCard(DomesticPullFromCard domesticPullFromCard)Indicates if the card supports domestic pull-from-card transfer.Card.BuilderdomesticPullFromCard(java.util.Optional<? extends DomesticPullFromCard> domesticPullFromCard)Indicates if the card supports domestic pull-from-card transfer.Card.BuilderdomesticPushToCard(DomesticPushToCard domesticPushToCard)Indicates which level of domestic push-to-card transfer is supported by the card, if any.Card.BuilderdomesticPushToCard(java.util.Optional<? extends DomesticPushToCard> domesticPushToCard)Indicates which level of domestic push-to-card transfer is supported by the card, if any.Card.Builderexpiration(CardExpiration expiration)The expiration date of the card or token.Card.Builderfingerprint(java.lang.String fingerprint)Uniquely identifies a linked payment card or token.Card.BuilderholderName(java.lang.String holderName)The name of the cardholder as it appears on the card.Card.BuilderholderName(java.util.Optional<java.lang.String> holderName)The name of the cardholder as it appears on the card.Card.Builderissuer(java.lang.String issuer)Financial institution that issued the card.Card.Builderissuer(java.util.Optional<java.lang.String> issuer)Financial institution that issued the card.Card.BuilderissuerCountry(java.lang.String issuerCountry)Country where the card was issued.Card.BuilderissuerCountry(java.util.Optional<java.lang.String> issuerCountry)Country where the card was issued.Card.BuilderissuerPhone(java.lang.String issuerPhone)Phone number of the issuer.Card.BuilderissuerPhone(java.util.Optional<java.lang.String> issuerPhone)Phone number of the issuer.Card.BuilderissuerURL(java.lang.String issuerURL)URL of the issuer.Card.BuilderissuerURL(java.util.Optional<java.lang.String> issuerURL)URL of the issuer.Card.BuilderlastFourCardNumber(java.lang.String lastFourCardNumber)Last four digits of the card numberCard.BuildermerchantAccountID(java.lang.String merchantAccountID)Card.BuildermerchantAccountID(java.util.Optional<java.lang.String> merchantAccountID)Card.BuilderpaymentMethods(java.util.List<BasicPaymentMethod> paymentMethods)Includes any payment methods created as a result of linking a card with the `x-wait-for` header set to `payment-method`.Card.BuilderpaymentMethods(java.util.Optional<? extends java.util.List<BasicPaymentMethod>> paymentMethods)Includes any payment methods created as a result of linking a card with the `x-wait-for` header set to `payment-method`.Card.Builderregulated(boolean regulated)If true, the card issuing bank is regulated, and the scheme fees for debit transactions will be limited based on the Durbin Amendment.Card.Builderregulated(java.util.Optional<java.lang.Boolean> regulated)If true, the card issuing bank is regulated, and the scheme fees for debit transactions will be limited based on the Durbin Amendment.
-
-
-
Method Detail
-
cardID
public Card.Builder cardID(java.lang.String cardID)
ID of the card.
-
fingerprint
public Card.Builder fingerprint(java.lang.String fingerprint)
Uniquely identifies a linked payment card or token. For Apple Pay, the fingerprint is based on the tokenized card number and may vary based on the user's device. This field can be used to identify specific payment methods across multiple accounts on your platform.
-
brand
public Card.Builder brand(CardBrand brand)
The card brand.
-
cardType
public Card.Builder cardType(CardType cardType)
The type of the card.
-
cardCategory
public Card.Builder cardCategory(java.lang.String cardCategory)
The category or level of the card defined by the issuer. Examples include, but not limited to, "REWARDS", "TRADITIONAL REWARDS", "CLASSIC", and "CORPORATE PURCHASING".
-
cardCategory
public Card.Builder cardCategory(java.util.Optional<java.lang.String> cardCategory)
The category or level of the card defined by the issuer. Examples include, but not limited to, "REWARDS", "TRADITIONAL REWARDS", "CLASSIC", and "CORPORATE PURCHASING".
-
lastFourCardNumber
public Card.Builder lastFourCardNumber(java.lang.String lastFourCardNumber)
Last four digits of the card number
-
bin
public Card.Builder bin(java.lang.String bin)
The first six to eight digits of the card number, which identifies the financial institution that issued the card.
-
expiration
public Card.Builder expiration(CardExpiration expiration)
The expiration date of the card or token.
-
holderName
public Card.Builder holderName(java.lang.String holderName)
The name of the cardholder as it appears on the card.
-
holderName
public Card.Builder holderName(java.util.Optional<java.lang.String> holderName)
The name of the cardholder as it appears on the card.
-
billingAddress
public Card.Builder billingAddress(CardAddress billingAddress)
-
cardVerification
public Card.Builder cardVerification(CardVerification cardVerification)
The results of submitting cardholder data to a card network for verification.
-
issuer
public Card.Builder issuer(java.lang.String issuer)
Financial institution that issued the card.
-
issuer
public Card.Builder issuer(java.util.Optional<java.lang.String> issuer)
Financial institution that issued the card.
-
issuerCountry
public Card.Builder issuerCountry(java.lang.String issuerCountry)
Country where the card was issued.
-
issuerCountry
public Card.Builder issuerCountry(java.util.Optional<java.lang.String> issuerCountry)
Country where the card was issued.
-
issuerURL
public Card.Builder issuerURL(java.lang.String issuerURL)
URL of the issuer.
-
issuerURL
public Card.Builder issuerURL(java.util.Optional<java.lang.String> issuerURL)
URL of the issuer.
-
issuerPhone
public Card.Builder issuerPhone(java.lang.String issuerPhone)
Phone number of the issuer.
-
issuerPhone
public Card.Builder issuerPhone(java.util.Optional<java.lang.String> issuerPhone)
Phone number of the issuer.
-
commercial
public Card.Builder commercial(boolean commercial)
If true, the card is for commercial use, or associated with a business. If false, the card is associated with a general consumer.
-
commercial
public Card.Builder commercial(java.util.Optional<java.lang.Boolean> commercial)
If true, the card is for commercial use, or associated with a business. If false, the card is associated with a general consumer.
-
regulated
public Card.Builder regulated(boolean regulated)
If true, the card issuing bank is regulated, and the scheme fees for debit transactions will be limited based on the Durbin Amendment. If false, the card issuing bank is not regulated, and the scheme fees will not be limited.
-
regulated
public Card.Builder regulated(java.util.Optional<java.lang.Boolean> regulated)
If true, the card issuing bank is regulated, and the scheme fees for debit transactions will be limited based on the Durbin Amendment. If false, the card issuing bank is not regulated, and the scheme fees will not be limited.
-
cardOnFile
public Card.Builder cardOnFile(boolean cardOnFile)
Indicates cardholder has authorized card to be stored for future payments.
-
cardOnFile
public Card.Builder cardOnFile(java.util.Optional<java.lang.Boolean> cardOnFile)
Indicates cardholder has authorized card to be stored for future payments.
-
merchantAccountID
public Card.Builder merchantAccountID(java.lang.String merchantAccountID)
-
merchantAccountID
public Card.Builder merchantAccountID(java.util.Optional<java.lang.String> merchantAccountID)
-
cardAccountUpdater
public Card.Builder cardAccountUpdater(CardAccountUpdater cardAccountUpdater)
The results of the most recent card update request.
-
cardAccountUpdater
public Card.Builder cardAccountUpdater(java.util.Optional<? extends CardAccountUpdater> cardAccountUpdater)
The results of the most recent card update request.
-
domesticPushToCard
public Card.Builder domesticPushToCard(DomesticPushToCard domesticPushToCard)
Indicates which level of domestic push-to-card transfer is supported by the card, if any.
-
domesticPushToCard
public Card.Builder domesticPushToCard(java.util.Optional<? extends DomesticPushToCard> domesticPushToCard)
Indicates which level of domestic push-to-card transfer is supported by the card, if any.
-
domesticPullFromCard
public Card.Builder domesticPullFromCard(DomesticPullFromCard domesticPullFromCard)
Indicates if the card supports domestic pull-from-card transfer.
-
domesticPullFromCard
public Card.Builder domesticPullFromCard(java.util.Optional<? extends DomesticPullFromCard> domesticPullFromCard)
Indicates if the card supports domestic pull-from-card transfer.
-
paymentMethods
public Card.Builder paymentMethods(java.util.List<BasicPaymentMethod> paymentMethods)
Includes any payment methods created as a result of linking a card with the `x-wait-for` header set to `payment-method`.Only returned by the link card endpoint; not included when getting or listing cards.
-
paymentMethods
public Card.Builder paymentMethods(java.util.Optional<? extends java.util.List<BasicPaymentMethod>> paymentMethods)
Includes any payment methods created as a result of linking a card with the `x-wait-for` header set to `payment-method`.Only returned by the link card endpoint; not included when getting or listing cards.
-
build
public Card build()
-
-