Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// File generated from our OpenAPI spec
package com.stripe.param.issuing;
import com.google.gson.annotations.SerializedName;
import com.stripe.net.ApiRequestParams;
import com.stripe.param.common.EmptyParam;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import lombok.Getter;
@Getter
public class PersonalizationDesignUpdateParams extends ApiRequestParams {
/**
* The file for the card logo, for use with physical bundles that support card logos. Must have a
* {@code purpose} value of {@code issuing_logo}.
*/
@SerializedName("card_logo")
Object cardLogo;
/** Hash containing carrier text, for use with physical bundles that support carrier text. */
@SerializedName("carrier_text")
Object carrierText;
/** Specifies which fields in the response should be expanded. */
@SerializedName("expand")
List expand;
/**
* Map of extra parameters for custom features not available in this client library. The content
* in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
* key/value pair is serialized as if the key is a root-level field (serialized) name in this
* param object. Effectively, this map is flattened to its parent instance.
*/
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
/**
* A lookup key used to retrieve personalization designs dynamically from a static string. This
* may be up to 200 characters.
*/
@SerializedName("lookup_key")
Object lookupKey;
/**
* 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 {@code metadata}.
*/
@SerializedName("metadata")
Map metadata;
/** Friendly display name. Providing an empty string will set the field to null. */
@SerializedName("name")
Object name;
/** The physical bundle object belonging to this personalization design. */
@SerializedName("physical_bundle")
Object physicalBundle;
/**
* Information on whether this personalization design is used to create cards when one is not
* specified.
*/
@SerializedName("preferences")
Preferences preferences;
/**
* If set to true, will atomically remove the lookup key from the existing personalization design,
* and assign it to this personalization design.
*/
@SerializedName("transfer_lookup_key")
Boolean transferLookupKey;
private PersonalizationDesignUpdateParams(
Object cardLogo,
Object carrierText,
List expand,
Map extraParams,
Object lookupKey,
Map metadata,
Object name,
Object physicalBundle,
Preferences preferences,
Boolean transferLookupKey) {
this.cardLogo = cardLogo;
this.carrierText = carrierText;
this.expand = expand;
this.extraParams = extraParams;
this.lookupKey = lookupKey;
this.metadata = metadata;
this.name = name;
this.physicalBundle = physicalBundle;
this.preferences = preferences;
this.transferLookupKey = transferLookupKey;
}
public static Builder builder() {
return new Builder();
}
public static class Builder {
private Object cardLogo;
private Object carrierText;
private List expand;
private Map extraParams;
private Object lookupKey;
private Map metadata;
private Object name;
private Object physicalBundle;
private Preferences preferences;
private Boolean transferLookupKey;
/** Finalize and obtain parameter instance from this builder. */
public PersonalizationDesignUpdateParams build() {
return new PersonalizationDesignUpdateParams(
this.cardLogo,
this.carrierText,
this.expand,
this.extraParams,
this.lookupKey,
this.metadata,
this.name,
this.physicalBundle,
this.preferences,
this.transferLookupKey);
}
/**
* The file for the card logo, for use with physical bundles that support card logos. Must have
* a {@code purpose} value of {@code issuing_logo}.
*/
public Builder setCardLogo(String cardLogo) {
this.cardLogo = cardLogo;
return this;
}
/**
* The file for the card logo, for use with physical bundles that support card logos. Must have
* a {@code purpose} value of {@code issuing_logo}.
*/
public Builder setCardLogo(EmptyParam cardLogo) {
this.cardLogo = cardLogo;
return this;
}
/** Hash containing carrier text, for use with physical bundles that support carrier text. */
public Builder setCarrierText(PersonalizationDesignUpdateParams.CarrierText carrierText) {
this.carrierText = carrierText;
return this;
}
/** Hash containing carrier text, for use with physical bundles that support carrier text. */
public Builder setCarrierText(EmptyParam carrierText) {
this.carrierText = carrierText;
return this;
}
/**
* 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 {@link
* PersonalizationDesignUpdateParams#expand} for the field documentation.
*/
public Builder addExpand(String element) {
if (this.expand == null) {
this.expand = new ArrayList<>();
}
this.expand.add(element);
return this;
}
/**
* 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 {@link
* PersonalizationDesignUpdateParams#expand} for the field documentation.
*/
public Builder addAllExpand(List elements) {
if (this.expand == null) {
this.expand = new ArrayList<>();
}
this.expand.addAll(elements);
return this;
}
/**
* 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 {@link
* PersonalizationDesignUpdateParams#extraParams} for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.put(key, value);
return this;
}
/**
* 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 {@link PersonalizationDesignUpdateParams#extraParams} for the field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
/**
* A lookup key used to retrieve personalization designs dynamically from a static string. This
* may be up to 200 characters.
*/
public Builder setLookupKey(String lookupKey) {
this.lookupKey = lookupKey;
return this;
}
/**
* A lookup key used to retrieve personalization designs dynamically from a static string. This
* may be up to 200 characters.
*/
public Builder setLookupKey(EmptyParam lookupKey) {
this.lookupKey = lookupKey;
return this;
}
/**
* 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 {@link
* PersonalizationDesignUpdateParams#metadata} for the field documentation.
*/
public Builder putMetadata(String key, String value) {
if (this.metadata == null) {
this.metadata = new HashMap<>();
}
this.metadata.put(key, value);
return this;
}
/**
* 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 {@link PersonalizationDesignUpdateParams#metadata} for the field documentation.
*/
public Builder putAllMetadata(Map map) {
if (this.metadata == null) {
this.metadata = new HashMap<>();
}
this.metadata.putAll(map);
return this;
}
/** Friendly display name. Providing an empty string will set the field to null. */
public Builder setName(String name) {
this.name = name;
return this;
}
/** Friendly display name. Providing an empty string will set the field to null. */
public Builder setName(EmptyParam name) {
this.name = name;
return this;
}
/** The physical bundle object belonging to this personalization design. */
public Builder setPhysicalBundle(String physicalBundle) {
this.physicalBundle = physicalBundle;
return this;
}
/** The physical bundle object belonging to this personalization design. */
public Builder setPhysicalBundle(EmptyParam physicalBundle) {
this.physicalBundle = physicalBundle;
return this;
}
/**
* Information on whether this personalization design is used to create cards when one is not
* specified.
*/
public Builder setPreferences(PersonalizationDesignUpdateParams.Preferences preferences) {
this.preferences = preferences;
return this;
}
/**
* If set to true, will atomically remove the lookup key from the existing personalization
* design, and assign it to this personalization design.
*/
public Builder setTransferLookupKey(Boolean transferLookupKey) {
this.transferLookupKey = transferLookupKey;
return this;
}
}
@Getter
public static class CarrierText {
/**
* Map of extra parameters for custom features not available in this client library. The content
* in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
* key/value pair is serialized as if the key is a root-level field (serialized) name in this
* param object. Effectively, this map is flattened to its parent instance.
*/
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
/** The footer body text of the carrier letter. */
@SerializedName("footer_body")
Object footerBody;
/** The footer title text of the carrier letter. */
@SerializedName("footer_title")
Object footerTitle;
/** The header body text of the carrier letter. */
@SerializedName("header_body")
Object headerBody;
/** The header title text of the carrier letter. */
@SerializedName("header_title")
Object headerTitle;
private CarrierText(
Map extraParams,
Object footerBody,
Object footerTitle,
Object headerBody,
Object headerTitle) {
this.extraParams = extraParams;
this.footerBody = footerBody;
this.footerTitle = footerTitle;
this.headerBody = headerBody;
this.headerTitle = headerTitle;
}
public static Builder builder() {
return new Builder();
}
public static class Builder {
private Map extraParams;
private Object footerBody;
private Object footerTitle;
private Object headerBody;
private Object headerTitle;
/** Finalize and obtain parameter instance from this builder. */
public PersonalizationDesignUpdateParams.CarrierText build() {
return new PersonalizationDesignUpdateParams.CarrierText(
this.extraParams, this.footerBody, this.footerTitle, this.headerBody, this.headerTitle);
}
/**
* 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 {@link
* PersonalizationDesignUpdateParams.CarrierText#extraParams} for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.put(key, value);
return this;
}
/**
* 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 {@link PersonalizationDesignUpdateParams.CarrierText#extraParams} for the field
* documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
/** The footer body text of the carrier letter. */
public Builder setFooterBody(String footerBody) {
this.footerBody = footerBody;
return this;
}
/** The footer body text of the carrier letter. */
public Builder setFooterBody(EmptyParam footerBody) {
this.footerBody = footerBody;
return this;
}
/** The footer title text of the carrier letter. */
public Builder setFooterTitle(String footerTitle) {
this.footerTitle = footerTitle;
return this;
}
/** The footer title text of the carrier letter. */
public Builder setFooterTitle(EmptyParam footerTitle) {
this.footerTitle = footerTitle;
return this;
}
/** The header body text of the carrier letter. */
public Builder setHeaderBody(String headerBody) {
this.headerBody = headerBody;
return this;
}
/** The header body text of the carrier letter. */
public Builder setHeaderBody(EmptyParam headerBody) {
this.headerBody = headerBody;
return this;
}
/** The header title text of the carrier letter. */
public Builder setHeaderTitle(String headerTitle) {
this.headerTitle = headerTitle;
return this;
}
/** The header title text of the carrier letter. */
public Builder setHeaderTitle(EmptyParam headerTitle) {
this.headerTitle = headerTitle;
return this;
}
}
}
@Getter
public static class Preferences {
/**
* Map of extra parameters for custom features not available in this client library. The content
* in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
* key/value pair is serialized as if the key is a root-level field (serialized) name in this
* param object. Effectively, this map is flattened to its parent instance.
*/
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
/**
* Required. Whether we use this personalization design to create cards when
* one isn't specified. A connected account uses the Connect platform's default design if no
* personalization design is set as the default design.
*/
@SerializedName("is_default")
Boolean isDefault;
private Preferences(Map extraParams, Boolean isDefault) {
this.extraParams = extraParams;
this.isDefault = isDefault;
}
public static Builder builder() {
return new Builder();
}
public static class Builder {
private Map extraParams;
private Boolean isDefault;
/** Finalize and obtain parameter instance from this builder. */
public PersonalizationDesignUpdateParams.Preferences build() {
return new PersonalizationDesignUpdateParams.Preferences(this.extraParams, this.isDefault);
}
/**
* 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 {@link
* PersonalizationDesignUpdateParams.Preferences#extraParams} for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.put(key, value);
return this;
}
/**
* 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 {@link PersonalizationDesignUpdateParams.Preferences#extraParams} for the field
* documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
this.extraParams.putAll(map);
return this;
}
/**
* Required. Whether we use this personalization design to create cards when
* one isn't specified. A connected account uses the Connect platform's default design if no
* personalization design is set as the default design.
*/
public Builder setIsDefault(Boolean isDefault) {
this.isDefault = isDefault;
return this;
}
}
}
}