Class CreateAccount


  • public class CreateAccount
    extends java.lang.Object
    • Constructor Detail

      • CreateAccount

        public CreateAccount​(CreateAccountType accountType,
                             CreateProfile profile,
                             java.util.Optional<? extends java.util.Map<java.lang.String,​java.lang.String>> metadata,
                             java.util.Optional<? extends CreateAccountTermsOfService> termsOfService,
                             java.util.Optional<java.lang.String> foreignID,
                             java.util.Optional<? extends CustomerSupport> customerSupport,
                             java.util.Optional<? extends Settings> settings,
                             java.util.Optional<? extends java.util.List<CapabilityID>> capabilities,
                             java.util.Optional<? extends Mode> mode)
    • Method Detail

      • 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.
      • foreignID

        public java.util.Optional<java.lang.String> foreignID()
        Optional alias from a foreign/external system which can be used to reference this resource.
      • customerSupport

        public java.util.Optional<CustomerSupport> customerSupport()
        User-provided information that can be displayed on credit card transactions for customers to use when contacting a customer support team. This data is only allowed on a business account.
      • settings

        public java.util.Optional<Settings> settings()
        User provided settings to manage an account.
      • capabilities

        public java.util.Optional<java.util.List<CapabilityID>> capabilities()
      • mode

        public java.util.Optional<Mode> mode()
        The operating mode for an account.
      • withMetadata

        public CreateAccount 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 CreateAccount 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.
      • withForeignID

        public CreateAccount withForeignID​(java.lang.String foreignID)
        Optional alias from a foreign/external system which can be used to reference this resource.
      • withForeignID

        public CreateAccount withForeignID​(java.util.Optional<java.lang.String> foreignID)
        Optional alias from a foreign/external system which can be used to reference this resource.
      • withCustomerSupport

        public CreateAccount withCustomerSupport​(CustomerSupport customerSupport)
        User-provided information that can be displayed on credit card transactions for customers to use when contacting a customer support team. This data is only allowed on a business account.
      • withCustomerSupport

        public CreateAccount withCustomerSupport​(java.util.Optional<? extends CustomerSupport> customerSupport)
        User-provided information that can be displayed on credit card transactions for customers to use when contacting a customer support team. This data is only allowed on a business account.
      • withSettings

        public CreateAccount withSettings​(Settings settings)
        User provided settings to manage an account.
      • withSettings

        public CreateAccount withSettings​(java.util.Optional<? extends Settings> settings)
        User provided settings to manage an account.
      • withCapabilities

        public CreateAccount withCapabilities​(java.util.Optional<? extends java.util.List<CapabilityID>> capabilities)
      • withMode

        public CreateAccount withMode​(Mode mode)
        The operating mode for an account.
      • withMode

        public CreateAccount withMode​(java.util.Optional<? extends Mode> mode)
        The operating mode for an account.
      • 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