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
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
static PersonalizationDesign
Creates a personalization design object.static PersonalizationDesign
create
(PersonalizationDesignCreateParams params, RequestOptions options) Creates a personalization design object.static PersonalizationDesign
Creates a personalization design object.static PersonalizationDesign
create
(Map<String, Object> params, RequestOptions options) Creates a personalization design object.boolean
Get ID of expandablecardLogo
object.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 valuetrue
if the object exists in live mode or the valuefalse
if 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 expandablephysicalBundle
object.Get expandedphysicalBundle
.Whether this personalization design can be used to create cards.int
hashCode()
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 PersonalizationDesign
Retrieves a personalization design object.static PersonalizationDesign
retrieve
(String personalizationDesign, RequestOptions options) Retrieves a personalization design object.static PersonalizationDesign
retrieve
(String personalizationDesign, PersonalizationDesignRetrieveParams params, RequestOptions options) Retrieves a personalization design object.static PersonalizationDesign
Retrieves a personalization design object.void
setCardLogo
(String id) void
setCardLogoObject
(File expandableObject) void
setCarrierText
(PersonalizationDesign.CarrierText carrierText) Hash containing carrier text, for use with physical bundles that support carrier text.void
setCreated
(Long created) Time at which the object was created.void
Unique identifier for the object.void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
setLookupKey
(String lookupKey) A lookup key used to retrieve personalization designs dynamically from a static string.void
setMetadata
(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.void
Friendly display name.void
String representing the object's type.void
void
setPhysicalBundleObject
(PhysicalBundle expandableObject) void
setPreferences
(PersonalizationDesign.Preferences preferences) void
setRejectionReasons
(PersonalizationDesign.RejectionReasons rejectionReasons) void
setResponseGetter
(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.void
Whether 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, setStripeResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
PersonalizationDesign
public PersonalizationDesign()
-
-
Method Details
-
getCardLogo
Get ID of expandablecardLogo
object. -
setCardLogo
-
getCardLogoObject
Get expandedcardLogo
. -
setCardLogoObject
-
getPhysicalBundle
Get ID of expandablephysicalBundle
object. -
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:
update
in interfaceMetadataStore<PersonalizationDesign>
- Throws:
StripeException
-
update
public PersonalizationDesign update(Map<String, Object> params, RequestOptions options) throws StripeExceptionUpdates a card personalization object.- Specified by:
update
in 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:StripeActiveObject
Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance 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 valuetrue
if the object exists in live mode or the valuefalse
if 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 valuetrue
if the object exists in live mode or the valuefalse
if 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:
getMetadata
in interfaceMetadataStore<PersonalizationDesign>
-