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 classFor more details about Email, please refer to the API Reference.static classFor more details about LinkedObjects, please refer to the API Reference.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_GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanTime 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 valuetrueif the object exists in live mode or the valuefalseif 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.inthashCode()static AccountNoticeCollectionlist(AccountNoticeListParams params) Retrieves a list ofAccountNoticeobjects.static AccountNoticeCollectionlist(AccountNoticeListParams params, RequestOptions options) Retrieves a list ofAccountNoticeobjects.static AccountNoticeCollectionRetrieves a list ofAccountNoticeobjects.static AccountNoticeCollectionlist(Map<String, Object> params, RequestOptions options) Retrieves a list ofAccountNoticeobjects.static AccountNoticeRetrieves anAccountNoticeobject.static AccountNoticeretrieve(String accountNotice, RequestOptions options) Retrieves anAccountNoticeobject.static AccountNoticeretrieve(String accountNotice, AccountNoticeRetrieveParams params, RequestOptions options) Retrieves anAccountNoticeobject.static AccountNoticeRetrieves anAccountNoticeobject.voidsetCreated(Long created) Time at which the object was created.voidsetDeadline(Long deadline) When present, the deadline for sending the notice to meet the relevant regulations.voidsetEmail(AccountNotice.Email email) Information about the email when sent.voidUnique identifier for the object.voidsetLinkedObjects(AccountNotice.LinkedObjects linkedObjects) Information about objects related to the notice.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetMetadata(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.voidString representing the object's type.voidReason the notice is being sent.voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.voidDate when the notice was sent.update(AccountNoticeUpdateParams params) Updates anAccountNoticeobject.update(AccountNoticeUpdateParams params, RequestOptions options) Updates anAccountNoticeobject.Updates anAccountNoticeobject.update(Map<String, Object> params, RequestOptions options) Updates anAccountNoticeobject.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
-
AccountNotice
public AccountNotice()
-
-
Method Details
-
list
Retrieves a list ofAccountNoticeobjects. 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 ofAccountNoticeobjects. The objects are sorted in descending order by creation date, with the most-recently-created object appearing first.- Throws:
StripeException
-
list
Retrieves a list ofAccountNoticeobjects. 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 ofAccountNoticeobjects. The objects are sorted in descending order by creation date, with the most-recently-created object appearing first.- Throws:
StripeException
-
retrieve
Retrieves anAccountNoticeobject.- Throws:
StripeException
-
retrieve
public static AccountNotice retrieve(String accountNotice, RequestOptions options) throws StripeException Retrieves anAccountNoticeobject.- Throws:
StripeException
-
retrieve
public static AccountNotice retrieve(String accountNotice, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves anAccountNoticeobject.- Throws:
StripeException
-
retrieve
public static AccountNotice retrieve(String accountNotice, AccountNoticeRetrieveParams params, RequestOptions options) throws StripeException Retrieves anAccountNoticeobject.- Throws:
StripeException
-
update
Updates anAccountNoticeobject.- Specified by:
updatein interfaceMetadataStore<AccountNotice>- Throws:
StripeException
-
update
public AccountNotice update(Map<String, Object> params, RequestOptions options) throws StripeExceptionUpdates anAccountNoticeobject.- Specified by:
updatein interfaceMetadataStore<AccountNotice>- Throws:
StripeException
-
update
Updates anAccountNoticeobject.- Throws:
StripeException
-
update
public AccountNotice update(AccountNoticeUpdateParams params, RequestOptions options) throws StripeException Updates anAccountNoticeobject.- Throws:
StripeException
-
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.
-
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 valuetrueif the object exists in live mode or the valuefalseif 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 valuetrueif the object exists in live mode or the valuefalseif 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:
getMetadatain interfaceMetadataStore<AccountNotice>
-