Class AccountNotice
- All Implemented Interfaces:
HasId
,MetadataStore<AccountNotice>
,StripeActiveObject
,StripeObjectInterface
See the guide to send notices to your connected accounts.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Time at which the object was created.When present, the deadline for sending the notice to meet the relevant regulations.getEmail()
Information about the email when sent.getId()
Unique identifier for the object.Information about objects related to the notice.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.String representing the object's type.Reason the notice is being sent.Date when the notice was sent.int
hashCode()
static AccountNoticeCollection
list
(AccountNoticeListParams params) Retrieves a list ofAccountNotice
objects.static AccountNoticeCollection
list
(AccountNoticeListParams params, RequestOptions options) Retrieves a list ofAccountNotice
objects.static AccountNoticeCollection
Retrieves a list ofAccountNotice
objects.static AccountNoticeCollection
list
(Map<String, Object> params, RequestOptions options) Retrieves a list ofAccountNotice
objects.static AccountNotice
Retrieves anAccountNotice
object.static AccountNotice
retrieve
(String accountNotice, RequestOptions options) Retrieves anAccountNotice
object.static AccountNotice
retrieve
(String accountNotice, AccountNoticeRetrieveParams params, RequestOptions options) Retrieves anAccountNotice
object.static AccountNotice
Retrieves anAccountNotice
object.void
setCreated
(Long created) Time at which the object was created.void
setDeadline
(Long deadline) When present, the deadline for sending the notice to meet the relevant regulations.void
setEmail
(AccountNotice.Email email) Information about the email when sent.void
Unique identifier for the object.void
setLinkedObjects
(AccountNotice.LinkedObjects linkedObjects) Information about objects related to the notice.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
String representing the object's type.void
Reason the notice is being sent.void
setResponseGetter
(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.void
Date when the notice was sent.update
(AccountNoticeUpdateParams params) Updates anAccountNotice
object.update
(AccountNoticeUpdateParams params, RequestOptions options) Updates anAccountNotice
object.Updates anAccountNotice
object.update
(Map<String, Object> params, RequestOptions options) Updates anAccountNotice
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, 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
-
AccountNotice
public AccountNotice()
-
-
Method Details
-
list
Retrieves a list ofAccountNotice
objects. The objects are sorted in descending order by creation date, with the most-recently-created object appearing first.- Throws:
StripeException
-
list
public static AccountNoticeCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves a list ofAccountNotice
objects. The objects are sorted in descending order by creation date, with the most-recently-created object appearing first.- Throws:
StripeException
-
list
Retrieves a list ofAccountNotice
objects. The objects are sorted in descending order by creation date, with the most-recently-created object appearing first.- Throws:
StripeException
-
list
public static AccountNoticeCollection list(AccountNoticeListParams params, RequestOptions options) throws StripeException Retrieves a list ofAccountNotice
objects. The objects are sorted in descending order by creation date, with the most-recently-created object appearing first.- Throws:
StripeException
-
retrieve
Retrieves anAccountNotice
object.- Throws:
StripeException
-
retrieve
public static AccountNotice retrieve(String accountNotice, RequestOptions options) throws StripeException Retrieves anAccountNotice
object.- Throws:
StripeException
-
retrieve
public static AccountNotice retrieve(String accountNotice, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves anAccountNotice
object.- Throws:
StripeException
-
retrieve
public static AccountNotice retrieve(String accountNotice, AccountNoticeRetrieveParams params, RequestOptions options) throws StripeException Retrieves anAccountNotice
object.- Throws:
StripeException
-
update
Updates anAccountNotice
object.- Specified by:
update
in interfaceMetadataStore<AccountNotice>
- Throws:
StripeException
-
update
public AccountNotice update(Map<String, Object> params, RequestOptions options) throws StripeExceptionUpdates anAccountNotice
object.- Specified by:
update
in interfaceMetadataStore<AccountNotice>
- Throws:
StripeException
-
update
Updates anAccountNotice
object.- Throws:
StripeException
-
update
public AccountNotice update(AccountNoticeUpdateParams params, RequestOptions options) throws StripeException Updates anAccountNotice
object.- Throws:
StripeException
-
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.
-
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getDeadline
When present, the deadline for sending the notice to meet the relevant regulations. -
getEmail
Information about the email when sent. -
getLinkedObjects
Information about objects related to the notice. -
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
account_notice
. -
getReason
Reason the notice is being sent. The reason determines what copy the notice must contain. See the regulated customer notices guide. All reasons might not apply to your integration, and Stripe might add new reasons in the future, so we recommend an internal warning when you receive an unknown reason.One of
issuing.account_closed_for_inactivity
,issuing.account_closed_for_not_providing_business_model_clarification
,issuing.account_closed_for_not_providing_url_clarification
,issuing.account_closed_for_not_providing_use_case_clarification
,issuing.account_closed_for_terms_of_service_violation
,issuing.application_rejected_for_failure_to_verify
,issuing.credit_application_rejected
,issuing.credit_increase_application_rejected
,issuing.credit_limit_decreased
,issuing.credit_line_closed
,issuing.dispute_lost
,issuing.dispute_submitted
, orissuing.dispute_won
. -
getSentAt
Date when the notice was sent. When absent, you must send the notice, update the content of the email and date when it was sent. -
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setDeadline
When present, the deadline for sending the notice to meet the relevant regulations. -
setEmail
Information about the email when sent. -
setId
Unique identifier for the object. -
setLinkedObjects
Information about objects related to the notice. -
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. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
account_notice
. -
setReason
Reason the notice is being sent. The reason determines what copy the notice must contain. See the regulated customer notices guide. All reasons might not apply to your integration, and Stripe might add new reasons in the future, so we recommend an internal warning when you receive an unknown reason.One of
issuing.account_closed_for_inactivity
,issuing.account_closed_for_not_providing_business_model_clarification
,issuing.account_closed_for_not_providing_url_clarification
,issuing.account_closed_for_not_providing_use_case_clarification
,issuing.account_closed_for_terms_of_service_violation
,issuing.application_rejected_for_failure_to_verify
,issuing.credit_application_rejected
,issuing.credit_increase_application_rejected
,issuing.credit_limit_decreased
,issuing.credit_line_closed
,issuing.dispute_lost
,issuing.dispute_submitted
, orissuing.dispute_won
. -
setSentAt
Date when the notice was sent. When absent, you must send the notice, update the content of the email and date when it was sent. -
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<AccountNotice>
-