Package com.stripe.model.tax
Class Form
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.tax.Form
- All Implemented Interfaces:
HasId,StripeActiveObject,StripeObjectInterface
Tax forms are legal documents which are delivered to one or more tax authorities for information
reporting purposes.
Related guide: US tax reporting for Connect platforms
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about AuSerr, please refer to the API Reference.static classFor more details about CaMrdp, please refer to the API Reference.static classFor more details about EuDac7, please refer to the API Reference.static classFor more details about FilingStatus, please refer to the API Reference.static classFor more details about GbMrdp, please refer to the API Reference.static classFor more details about NzMrdp, please refer to the API Reference.static classFor more details about Payee, please refer to the API Reference.static classFor more details about Us1099K, please refer to the API Reference.static classFor more details about Us1099Misc, please refer to the API Reference.static classFor more details about Us1099Nec, 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 booleanbooleanGet ID of expandablecorrectedByobject.Get expandedcorrectedBy.Time at which the object was created.A list of tax filing statuses.getId()Unique identifier for the object.Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.String representing the object's type.getPayee()getType()The type of the tax form.inthashCode()static FormCollectionlist(FormListParams params) Returns a list of tax forms which were previously created.static FormCollectionlist(FormListParams params, RequestOptions options) Returns a list of tax forms which were previously created.static FormCollectionReturns a list of tax forms which were previously created.static FormCollectionlist(Map<String, Object> params, RequestOptions options) Returns a list of tax forms which were previously created.pdf()Download the PDF for a tax form.pdf(FormPdfParams params) Download the PDF for a tax form.pdf(FormPdfParams params, RequestOptions options) Download the PDF for a tax form.Download the PDF for a tax form.pdf(Map<String, Object> params, RequestOptions options) Download the PDF for a tax form.static FormRetrieves the details of a tax form that has previously been created.static Formretrieve(String id, RequestOptions options) Retrieves the details of a tax form that has previously been created.static Formretrieve(String id, FormRetrieveParams params, RequestOptions options) Retrieves the details of a tax form that has previously been created.static FormRetrieves the details of a tax form that has previously been created.voidsetAuSerr(Form.AuSerr auSerr) voidsetCaMrdp(Form.CaMrdp caMrdp) voidsetCorrectedBy(String id) voidsetCorrectedByObject(Form expandableObject) voidsetCreated(Long created) Time at which the object was created.voidsetEuDac7(Form.EuDac7 euDac7) voidsetFilingStatuses(List<Form.FilingStatus> filingStatuses) A list of tax filing statuses.voidsetGbMrdp(Form.GbMrdp gbMrdp) 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.voidsetNzMrdp(Form.NzMrdp nzMrdp) voidString representing the object's type.voidsetPayee(Form.Payee payee) voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.voidThe type of the tax form.voidsetUs1099K(Form.Us1099K us1099K) voidsetUs1099Misc(Form.Us1099Misc us1099Misc) voidsetUs1099Nec(Form.Us1099Nec us1099Nec) 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
-
Form
public Form()
-
-
Method Details
-
getCorrectedBy
Get ID of expandablecorrectedByobject. -
setCorrectedBy
-
getCorrectedByObject
Get expandedcorrectedBy. -
setCorrectedByObject
-
list
Returns a list of tax forms which were previously created. The tax forms are returned in sorted order, with the oldest tax forms appearing first.- Throws:
StripeException
-
list
public static FormCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of tax forms which were previously created. The tax forms are returned in sorted order, with the oldest tax forms appearing first.- Throws:
StripeException
-
list
Returns a list of tax forms which were previously created. The tax forms are returned in sorted order, with the oldest tax forms appearing first.- Throws:
StripeException
-
list
public static FormCollection list(FormListParams params, RequestOptions options) throws StripeException Returns a list of tax forms which were previously created. The tax forms are returned in sorted order, with the oldest tax forms appearing first.- Throws:
StripeException
-
pdf
Download the PDF for a tax form.- Throws:
StripeException
-
pdf
Download the PDF for a tax form.- Throws:
StripeException
-
pdf
Download the PDF for a tax form.- Throws:
StripeException
-
pdf
Download the PDF for a tax form.- Throws:
StripeException
-
pdf
Download the PDF for a tax form.- Throws:
StripeException
-
retrieve
Retrieves the details of a tax form that has previously been created. Supply the unique tax form ID that was returned from your previous request, and Stripe will return the corresponding tax form information.- Throws:
StripeException
-
retrieve
Retrieves the details of a tax form that has previously been created. Supply the unique tax form ID that was returned from your previous request, and Stripe will return the corresponding tax form information.- Throws:
StripeException
-
retrieve
public static Form retrieve(String id, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves the details of a tax form that has previously been created. Supply the unique tax form ID that was returned from your previous request, and Stripe will return the corresponding tax form information.- Throws:
StripeException
-
retrieve
public static Form retrieve(String id, FormRetrieveParams params, RequestOptions options) throws StripeException Retrieves the details of a tax form that has previously been created. Supply the unique tax form ID that was returned from your previous request, and Stripe will return the corresponding tax form information.- 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.
-
getAuSerr
-
getCaMrdp
-
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getEuDac7
-
getFilingStatuses
A list of tax filing statuses. Note that a filing status will only be included if the form has been filed directly with the jurisdiction’s tax authority. -
getGbMrdp
-
getLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
getNzMrdp
-
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
tax.form. -
getPayee
-
getType
The type of the tax form. An additional hash is included on the tax form with a name matching this value. It contains additional information specific to the tax form type.One of
au_serr,ca_mrdp,eu_dac7,gb_mrdp,nz_mrdp,us_1099_k,us_1099_misc, orus_1099_nec. -
getUs1099K
-
getUs1099Misc
-
getUs1099Nec
-
setAuSerr
-
setCaMrdp
-
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setEuDac7
-
setFilingStatuses
A list of tax filing statuses. Note that a filing status will only be included if the form has been filed directly with the jurisdiction’s tax authority. -
setGbMrdp
-
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. -
setNzMrdp
-
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
tax.form. -
setPayee
-
setType
The type of the tax form. An additional hash is included on the tax form with a name matching this value. It contains additional information specific to the tax form type.One of
au_serr,ca_mrdp,eu_dac7,gb_mrdp,nz_mrdp,us_1099_k,us_1099_misc, orus_1099_nec. -
setUs1099K
-
setUs1099Misc
-
setUs1099Nec
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-