Class Wallet.Builder

  • Enclosing class:
    Wallet

    public static final class Wallet.Builder
    extends java.lang.Object
    • Method Detail

      • walletID

        public Wallet.Builder walletID​(java.lang.String walletID)
      • partnerAccountID

        public Wallet.Builder partnerAccountID​(java.lang.String partnerAccountID)
      • name

        public Wallet.Builder name​(java.lang.String name)
        Name of the wallet
      • status

        public Wallet.Builder status​(WalletStatus status)
        Status of a wallet. - `active`: The wallet is available for use and has an enabled payment method. - `closed`: The wallet is no longer active and the corresponding payment method has been disabled.
      • walletType

        public Wallet.Builder walletType​(WalletType walletType)
        Type of a wallet. - `default`: The primary system-generated wallet automatically created by Moov when an account is granted the wallet capability. This generates a moov-wallet payment method that is available for use immediately. Only one default wallet exists per account. - `general`: A user-defined wallet created via the API to segment funds for specific use cases. Users can create multiple general wallets per account to support internal business models or financial reporting needs.
      • description

        public Wallet.Builder description​(java.lang.String description)
        Description of the wallet
      • metadata

        public Wallet.Builder metadata​(java.util.Map<java.lang.String,​java.lang.String> metadata)
        Free-form key-value pair list. Useful for storing information that is not captured elsewhere.
      • metadata

        public Wallet.Builder metadata​(java.util.Optional<? extends java.util.Map<java.lang.String,​java.lang.String>> metadata)
        Free-form key-value pair list. Useful for storing information that is not captured elsewhere.
      • createdOn

        public Wallet.Builder createdOn​(java.time.OffsetDateTime createdOn)
      • closedOn

        public Wallet.Builder closedOn​(java.time.OffsetDateTime closedOn)
      • closedOn

        public Wallet.Builder closedOn​(java.util.Optional<java.time.OffsetDateTime> closedOn)
      • build

        public Wallet build()