Package com.stripe.model
Class InvoiceRenderingTemplate
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.InvoiceRenderingTemplate
- All Implemented Interfaces:
HasId
,StripeActiveObject
,StripeObjectInterface
Invoice Rendering Templates are used to configure how invoices are rendered on surfaces like the
PDF. Invoice Rendering Templates can be created from within the Dashboard, and they can be used
over the API when creating invoices.
-
Nested Class Summary
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionarchive()
Updates the status of an invoice rendering template to ‘archived’ so no new Stripe objects (customers, invoices, etc.) can reference it.archive
(RequestOptions options) Updates the status of an invoice rendering template to ‘archived’ so no new Stripe objects (customers, invoices, etc.) can reference it.Updates the status of an invoice rendering template to ‘archived’ so no new Stripe objects (customers, invoices, etc.) can reference it.archive
(InvoiceRenderingTemplateArchiveParams params, RequestOptions options) Updates the status of an invoice rendering template to ‘archived’ so no new Stripe objects (customers, invoices, etc.) can reference it.Updates the status of an invoice rendering template to ‘archived’ so no new Stripe objects (customers, invoices, etc.) can reference it.archive
(Map<String, Object> params, RequestOptions options) Updates the status of an invoice rendering template to ‘archived’ so no new Stripe objects (customers, invoices, etc.) can reference it.protected boolean
boolean
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.Set of key-value pairs that you can attach to an object.A brief description of the template, hidden from customers.String representing the object's type.The status of the template, one ofactive
orarchived
.Version of this template; version increases by one when an update on the template changes any field that controls invoice rendering.int
hashCode()
List all templates, ordered by creation date, with the most recently created template appearing first.list
(InvoiceRenderingTemplateListParams params, RequestOptions options) List all templates, ordered by creation date, with the most recently created template appearing first.List all templates, ordered by creation date, with the most recently created template appearing first.list
(Map<String, Object> params, RequestOptions options) List all templates, ordered by creation date, with the most recently created template appearing first.static InvoiceRenderingTemplate
Retrieves an invoice rendering template with the given ID.static InvoiceRenderingTemplate
retrieve
(String template, RequestOptions options) Retrieves an invoice rendering template with the given ID.static InvoiceRenderingTemplate
retrieve
(String template, InvoiceRenderingTemplateRetrieveParams params, RequestOptions options) Retrieves an invoice rendering template with the given ID.static InvoiceRenderingTemplate
Retrieves an invoice rendering template with the given ID.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
setMetadata
(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.void
setNickname
(String nickname) A brief description of the template, hidden from customers.void
String representing the object's type.void
The status of the template, one ofactive
orarchived
.void
setVersion
(Long version) Version of this template; version increases by one when an update on the template changes any field that controls invoice rendering.Unarchive an invoice rendering template so it can be used on new Stripe objects again.unarchive
(RequestOptions options) Unarchive an invoice rendering template so it can be used on new Stripe objects again.Unarchive an invoice rendering template so it can be used on new Stripe objects again.unarchive
(InvoiceRenderingTemplateUnarchiveParams params, RequestOptions options) Unarchive an invoice rendering template so it can be used on new Stripe objects again.Unarchive an invoice rendering template so it can be used on new Stripe objects again.unarchive
(Map<String, Object> params, RequestOptions options) Unarchive an invoice rendering template so it can be used on new Stripe objects again.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, setResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, 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
-
InvoiceRenderingTemplate
public InvoiceRenderingTemplate()
-
-
Method Details
-
archive
Updates the status of an invoice rendering template to ‘archived’ so no new Stripe objects (customers, invoices, etc.) can reference it. The template can also no longer be updated. However, if the template is already set on a Stripe object, it will continue to be applied on invoices generated by it.- Throws:
StripeException
-
archive
Updates the status of an invoice rendering template to ‘archived’ so no new Stripe objects (customers, invoices, etc.) can reference it. The template can also no longer be updated. However, if the template is already set on a Stripe object, it will continue to be applied on invoices generated by it.- Throws:
StripeException
-
archive
Updates the status of an invoice rendering template to ‘archived’ so no new Stripe objects (customers, invoices, etc.) can reference it. The template can also no longer be updated. However, if the template is already set on a Stripe object, it will continue to be applied on invoices generated by it.- Throws:
StripeException
-
archive
public InvoiceRenderingTemplate archive(Map<String, Object> params, RequestOptions options) throws StripeExceptionUpdates the status of an invoice rendering template to ‘archived’ so no new Stripe objects (customers, invoices, etc.) can reference it. The template can also no longer be updated. However, if the template is already set on a Stripe object, it will continue to be applied on invoices generated by it.- Throws:
StripeException
-
archive
public InvoiceRenderingTemplate archive(InvoiceRenderingTemplateArchiveParams params) throws StripeException Updates the status of an invoice rendering template to ‘archived’ so no new Stripe objects (customers, invoices, etc.) can reference it. The template can also no longer be updated. However, if the template is already set on a Stripe object, it will continue to be applied on invoices generated by it.- Throws:
StripeException
-
archive
public InvoiceRenderingTemplate archive(InvoiceRenderingTemplateArchiveParams params, RequestOptions options) throws StripeException Updates the status of an invoice rendering template to ‘archived’ so no new Stripe objects (customers, invoices, etc.) can reference it. The template can also no longer be updated. However, if the template is already set on a Stripe object, it will continue to be applied on invoices generated by it.- Throws:
StripeException
-
list
public static InvoiceRenderingTemplateCollection list(Map<String, Object> params) throws StripeExceptionList all templates, ordered by creation date, with the most recently created template appearing first.- Throws:
StripeException
-
list
public static InvoiceRenderingTemplateCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionList all templates, ordered by creation date, with the most recently created template appearing first.- Throws:
StripeException
-
list
public static InvoiceRenderingTemplateCollection list(InvoiceRenderingTemplateListParams params) throws StripeException List all templates, ordered by creation date, with the most recently created template appearing first.- Throws:
StripeException
-
list
public static InvoiceRenderingTemplateCollection list(InvoiceRenderingTemplateListParams params, RequestOptions options) throws StripeException List all templates, ordered by creation date, with the most recently created template appearing first.- Throws:
StripeException
-
retrieve
Retrieves an invoice rendering template with the given ID. It by default returns the latest version of the template. Optionally, specify a version to see previous versions.- Throws:
StripeException
-
retrieve
public static InvoiceRenderingTemplate retrieve(String template, RequestOptions options) throws StripeException Retrieves an invoice rendering template with the given ID. It by default returns the latest version of the template. Optionally, specify a version to see previous versions.- Throws:
StripeException
-
retrieve
public static InvoiceRenderingTemplate retrieve(String template, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves an invoice rendering template with the given ID. It by default returns the latest version of the template. Optionally, specify a version to see previous versions.- Throws:
StripeException
-
retrieve
public static InvoiceRenderingTemplate retrieve(String template, InvoiceRenderingTemplateRetrieveParams params, RequestOptions options) throws StripeException Retrieves an invoice rendering template with the given ID. It by default returns the latest version of the template. Optionally, specify a version to see previous versions.- Throws:
StripeException
-
unarchive
Unarchive an invoice rendering template so it can be used on new Stripe objects again.- Throws:
StripeException
-
unarchive
Unarchive an invoice rendering template so it can be used on new Stripe objects again.- Throws:
StripeException
-
unarchive
Unarchive an invoice rendering template so it can be used on new Stripe objects again.- Throws:
StripeException
-
unarchive
public InvoiceRenderingTemplate unarchive(Map<String, Object> params, RequestOptions options) throws StripeExceptionUnarchive an invoice rendering template so it can be used on new Stripe objects again.- Throws:
StripeException
-
unarchive
public InvoiceRenderingTemplate unarchive(InvoiceRenderingTemplateUnarchiveParams params) throws StripeException Unarchive an invoice rendering template so it can be used on new Stripe objects again.- Throws:
StripeException
-
unarchive
public InvoiceRenderingTemplate unarchive(InvoiceRenderingTemplateUnarchiveParams params, RequestOptions options) throws StripeException Unarchive an invoice rendering template so it can be used on new Stripe objects again.- Throws:
StripeException
-
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. -
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. -
getNickname
A brief description of the template, hidden from customers. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
invoice_rendering_template
. -
getStatus
The status of the template, one ofactive
orarchived
. -
getVersion
Version of this template; version increases by one when an update on the template changes any field that controls invoice rendering. -
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. -
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. -
setNickname
A brief description of the template, hidden from customers. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
invoice_rendering_template
. -
setStatus
The status of the template, one ofactive
orarchived
. -
setVersion
Version of this template; version increases by one when an update on the template changes any field that controls invoice rendering. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-