Class Card.Builder

  • Enclosing class:
    Card

    public static final class Card.Builder
    extends java.lang.Object
    • 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.
      • 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.
      • 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.
      • 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()