Class PersonUpdateParams.Builder

  • Enclosing class:
    PersonUpdateParams

    public static class PersonUpdateParams.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • build

        public PersonUpdateParams build()
        Finalize and obtain parameter instance from this builder.
      • addExpand

        public PersonUpdateParams.Builder addExpand​(java.lang.String element)
        Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See PersonUpdateParams.expand for the field documentation.
      • addAllExpand

        public PersonUpdateParams.Builder addAllExpand​(java.util.List<java.lang.String> elements)
        Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See PersonUpdateParams.expand for the field documentation.
      • putExtraParam

        public PersonUpdateParams.Builder putExtraParam​(java.lang.String key,
                                                        java.lang.Object value)
        Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See PersonUpdateParams.extraParams for the field documentation.
      • putAllExtraParam

        public PersonUpdateParams.Builder putAllExtraParam​(java.util.Map<java.lang.String,​java.lang.Object> map)
        Add all map key/value pairs to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See PersonUpdateParams.extraParams for the field documentation.
      • setFirstNameKana

        public PersonUpdateParams.Builder setFirstNameKana​(java.lang.String firstNameKana)
        The Kana variation of the person's first name (Japan only).
      • setFirstNameKanji

        public PersonUpdateParams.Builder setFirstNameKanji​(java.lang.String firstNameKanji)
        The Kanji variation of the person's first name (Japan only).
      • setGender

        public PersonUpdateParams.Builder setGender​(java.lang.String gender)
        The person's gender (International regulations require either "male" or "female").
      • setIdNumber

        public PersonUpdateParams.Builder setIdNumber​(java.lang.String idNumber)
        The person's ID number, as appropriate for their country. For example, a social security number in the U.S., social insurance number in Canada, etc. Instead of the number itself, you can also provide a PII token provided by Stripe.js.
      • setLastNameKana

        public PersonUpdateParams.Builder setLastNameKana​(java.lang.String lastNameKana)
        The Kana variation of the person's last name (Japan only).
      • setLastNameKanji

        public PersonUpdateParams.Builder setLastNameKanji​(java.lang.String lastNameKanji)
        The Kanji variation of the person's last name (Japan only).
      • putMetadata

        public PersonUpdateParams.Builder putMetadata​(java.lang.String key,
                                                      java.lang.String value)
        Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See PersonUpdateParams.metadata for the field documentation.
      • putAllMetadata

        public PersonUpdateParams.Builder putAllMetadata​(java.util.Map<java.lang.String,​java.lang.String> map)
        Add all map key/value pairs to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See PersonUpdateParams.metadata for the field documentation.
      • setMetadata

        public PersonUpdateParams.Builder setMetadata​(EmptyParam metadata)
        Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to metadata.
      • setMetadata

        public PersonUpdateParams.Builder setMetadata​(java.util.Map<java.lang.String,​java.lang.String> metadata)
        Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to metadata.
      • setPoliticalExposure

        public PersonUpdateParams.Builder setPoliticalExposure​(java.lang.String politicalExposure)
        Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.
      • setPoliticalExposure

        public PersonUpdateParams.Builder setPoliticalExposure​(EmptyParam politicalExposure)
        Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.
      • setSsnLast4

        public PersonUpdateParams.Builder setSsnLast4​(java.lang.String ssnLast4)
        The last four digits of the person's Social Security number (U.S. only).