Package com.stripe.model.issuing
Class PersonalizationDesign
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.issuing.PersonalizationDesign
- All Implemented Interfaces:
HasId,MetadataStore<PersonalizationDesign>,StripeActiveObject,StripeObjectInterface
public class PersonalizationDesign
extends ApiResource
implements HasId, MetadataStore<PersonalizationDesign>
A Personalization Design is a logical grouping of a Physical Bundle, card logo, and carrier text
that represents a product line.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about CarrierText, please refer to the API Reference.static classFor more details about Preferences, please refer to the API Reference.static classFor more details about RejectionReasons, please refer to the API Reference.static classNested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod -
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanstatic PersonalizationDesignCreates a personalization design object.static PersonalizationDesigncreate(PersonalizationDesignCreateParams params, RequestOptions options) Creates a personalization design object.static PersonalizationDesignCreates a personalization design object.static PersonalizationDesigncreate(Map<String, Object> params, RequestOptions options) Creates a personalization design object.booleanGet ID of expandablecardLogoobject.Get expandedcardLogo.Hash containing carrier text, for use with physical bundles that support carrier text.Time at which the object was created.getId()Unique identifier for the object.Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.A lookup key used to retrieve personalization designs dynamically from a static string.Set of key-value pairs that you can attach to an object.getName()Friendly display name.String representing the object's type.Get ID of expandablephysicalBundleobject.Get expandedphysicalBundle.Whether this personalization design can be used to create cards.inthashCode()list(PersonalizationDesignListParams params) Returns a list of personalization design objects.list(PersonalizationDesignListParams params, RequestOptions options) Returns a list of personalization design objects.Returns a list of personalization design objects.list(Map<String, Object> params, RequestOptions options) Returns a list of personalization design objects.static PersonalizationDesignRetrieves a personalization design object.static PersonalizationDesignretrieve(String personalizationDesign, RequestOptions options) Retrieves a personalization design object.static PersonalizationDesignretrieve(String personalizationDesign, PersonalizationDesignRetrieveParams params, RequestOptions options) Retrieves a personalization design object.static PersonalizationDesignRetrieves a personalization design object.voidsetCardLogo(String id) voidsetCardLogoObject(File expandableObject) voidsetCarrierText(PersonalizationDesign.CarrierText carrierText) Hash containing carrier text, for use with physical bundles that support carrier text.voidsetCreated(Long created) Time at which the object was created.voidUnique identifier for the object.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetLookupKey(String lookupKey) A lookup key used to retrieve personalization designs dynamically from a static string.voidsetMetadata(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.voidFriendly display name.voidString representing the object's type.voidvoidsetPhysicalBundleObject(PhysicalBundle expandableObject) voidsetPreferences(PersonalizationDesign.Preferences preferences) voidsetRejectionReasons(PersonalizationDesign.RejectionReasons rejectionReasons) voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.voidWhether this personalization design can be used to create cards.Updates a card personalization object.update(PersonalizationDesignUpdateParams params, RequestOptions options) Updates a card personalization object.Updates a card personalization object.update(Map<String, Object> params, RequestOptions options) Updates a card personalization object.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
PersonalizationDesign
public PersonalizationDesign()
-
-
Method Details
-
getCardLogo
Get ID of expandablecardLogoobject. -
setCardLogo
-
getCardLogoObject
Get expandedcardLogo. -
setCardLogoObject
-
getPhysicalBundle
Get ID of expandablephysicalBundleobject. -
setPhysicalBundle
-
getPhysicalBundleObject
Get expandedphysicalBundle. -
setPhysicalBundleObject
-
create
Creates a personalization design object.- Throws:
StripeException
-
create
public static PersonalizationDesign create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates a personalization design object.- Throws:
StripeException
-
create
public static PersonalizationDesign create(PersonalizationDesignCreateParams params) throws StripeException Creates a personalization design object.- Throws:
StripeException
-
create
public static PersonalizationDesign create(PersonalizationDesignCreateParams params, RequestOptions options) throws StripeException Creates a personalization design object.- Throws:
StripeException
-
list
public static PersonalizationDesignCollection list(Map<String, Object> params) throws StripeExceptionReturns a list of personalization design objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
list
public static PersonalizationDesignCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of personalization design objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
list
public static PersonalizationDesignCollection list(PersonalizationDesignListParams params) throws StripeException Returns a list of personalization design objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
list
public static PersonalizationDesignCollection list(PersonalizationDesignListParams params, RequestOptions options) throws StripeException Returns a list of personalization design objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
retrieve
Retrieves a personalization design object.- Throws:
StripeException
-
retrieve
public static PersonalizationDesign retrieve(String personalizationDesign, RequestOptions options) throws StripeException Retrieves a personalization design object.- Throws:
StripeException
-
retrieve
public static PersonalizationDesign retrieve(String personalizationDesign, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves a personalization design object.- Throws:
StripeException
-
retrieve
public static PersonalizationDesign retrieve(String personalizationDesign, PersonalizationDesignRetrieveParams params, RequestOptions options) throws StripeException Retrieves a personalization design object.- Throws:
StripeException
-
update
Updates a card personalization object.- Specified by:
updatein interfaceMetadataStore<PersonalizationDesign>- Throws:
StripeException
-
update
public PersonalizationDesign update(Map<String, Object> params, RequestOptions options) throws StripeExceptionUpdates a card personalization object.- Specified by:
updatein interfaceMetadataStore<PersonalizationDesign>- Throws:
StripeException
-
update
public PersonalizationDesign update(PersonalizationDesignUpdateParams params) throws StripeException Updates a card personalization object.- Throws:
StripeException
-
update
public PersonalizationDesign update(PersonalizationDesignUpdateParams params, RequestOptions options) throws StripeException Updates a card personalization object.- Throws:
StripeException
-
getTestHelpers
-
setResponseGetter
Description copied from interface:StripeActiveObjectMethod is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance to use for making further requests.
-
getCarrierText
Hash containing carrier text, for use with physical bundles that support carrier text. -
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
getLookupKey
A lookup key used to retrieve personalization designs dynamically from a static string. This may be up to 200 characters. -
getName
Friendly display name. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
issuing.personalization_design. -
getPreferences
-
getRejectionReasons
-
getStatus
Whether this personalization design can be used to create cards.One of
active,inactive,rejected, orreview. -
setCarrierText
Hash containing carrier text, for use with physical bundles that support carrier text. -
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setId
Unique identifier for the object. -
setLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
setLookupKey
A lookup key used to retrieve personalization designs dynamically from a static string. This may be up to 200 characters. -
setMetadata
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. -
setName
Friendly display name. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
issuing.personalization_design. -
setPreferences
-
setRejectionReasons
-
setStatus
Whether this personalization design can be used to create cards.One of
active,inactive,rejected, orreview. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object. -
getMetadata
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.- Specified by:
getMetadatain interfaceMetadataStore<PersonalizationDesign>
-