Class Wallet


  • public class Wallet
    extends java.lang.Object
    Wallet

    A Moov wallet to store funds for transfers.

    • Constructor Detail

      • Wallet

        public Wallet​(java.lang.String walletID,
                      WalletAvailableBalance availableBalance,
                      java.lang.String partnerAccountID,
                      java.lang.String name,
                      WalletStatus status,
                      WalletType walletType,
                      java.lang.String description,
                      java.util.Optional<? extends java.util.Map<java.lang.String,​java.lang.String>> metadata,
                      java.time.OffsetDateTime createdOn,
                      java.util.Optional<java.time.OffsetDateTime> closedOn)
      • Wallet

        public Wallet​(java.lang.String walletID,
                      WalletAvailableBalance availableBalance,
                      java.lang.String partnerAccountID,
                      java.lang.String name,
                      WalletStatus status,
                      WalletType walletType,
                      java.lang.String description,
                      java.time.OffsetDateTime createdOn)
    • Method Detail

      • walletID

        public java.lang.String walletID()
      • partnerAccountID

        public java.lang.String partnerAccountID()
      • name

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

        public 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 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 java.lang.String description()
        Description of the wallet
      • metadata

        public java.util.Optional<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 java.time.OffsetDateTime createdOn()
      • closedOn

        public java.util.Optional<java.time.OffsetDateTime> closedOn()
      • withWalletID

        public Wallet withWalletID​(java.lang.String walletID)
      • withPartnerAccountID

        public Wallet withPartnerAccountID​(java.lang.String partnerAccountID)
      • withName

        public Wallet withName​(java.lang.String name)
        Name of the wallet
      • withStatus

        public Wallet withStatus​(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.
      • withWalletType

        public Wallet withWalletType​(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.
      • withDescription

        public Wallet withDescription​(java.lang.String description)
        Description of the wallet
      • withMetadata

        public Wallet withMetadata​(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.
      • withMetadata

        public Wallet withMetadata​(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.
      • withCreatedOn

        public Wallet withCreatedOn​(java.time.OffsetDateTime createdOn)
      • withClosedOn

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

        public Wallet withClosedOn​(java.util.Optional<java.time.OffsetDateTime> closedOn)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object