Class Registration
- All Implemented Interfaces:
HasId
,StripeObjectInterface
Registration
lets us know that your business is registered to collect tax on
payments within a region, enabling you to automatically
collect tax.
Stripe will not register on your behalf with the relevant authorities when you create a Tax
Registration
object. For more information on how to register to collect tax, see our guide.
-
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
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
static Registration
create
(RegistrationCreateParams params) Creates a new TaxRegistration
object.static Registration
create
(RegistrationCreateParams params, RequestOptions options) Creates a new TaxRegistration
object.static Registration
Creates a new TaxRegistration
object.static Registration
create
(Map<String, Object> params, RequestOptions options) Creates a new TaxRegistration
object.boolean
Time at which the registration becomes active.Two-letter country code (ISO 3166-1 alpha-2).Time at which the object was created.If set, the registration stops being active at this time.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.String representing the object's type.getState()
State, county, province, or region.The status of the registration.getType()
The type of the registration.int
hashCode()
static RegistrationCollection
list
(RegistrationListParams params) Returns a list of TaxRegistration
objects.static RegistrationCollection
list
(RegistrationListParams params, RequestOptions options) Returns a list of TaxRegistration
objects.static RegistrationCollection
Returns a list of TaxRegistration
objects.static RegistrationCollection
list
(Map<String, Object> params, RequestOptions options) Returns a list of TaxRegistration
objects.void
setActiveFrom
(Long activeFrom) Time at which the registration becomes active.void
setCountry
(String country) Two-letter country code (ISO 3166-1 alpha-2).void
setCreated
(Long created) Time at which the object was created.void
setExpiresAt
(Long expiresAt) If set, the registration stops being active at this time.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
String representing the object's type.void
State, county, province, or region.void
The status of the registration.void
The type of the registration.update
(RegistrationUpdateParams params) Updates an existing TaxRegistration
object.update
(RegistrationUpdateParams params, RequestOptions options) Updates an existing TaxRegistration
object.Updates an existing TaxRegistration
object.update
(Map<String, Object> params, RequestOptions options) Updates an existing TaxRegistration
object.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, classUrl, classUrl, fullUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, requestSearchResult, requestSearchResult, requestStream, requestStream, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
Registration
public Registration()
-
-
Method Details
-
create
Creates a new TaxRegistration
object.- Throws:
StripeException
-
create
public static Registration create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates a new TaxRegistration
object.- Throws:
StripeException
-
create
Creates a new TaxRegistration
object.- Throws:
StripeException
-
create
public static Registration create(RegistrationCreateParams params, RequestOptions options) throws StripeException Creates a new TaxRegistration
object.- Throws:
StripeException
-
list
Returns a list of TaxRegistration
objects.- Throws:
StripeException
-
list
public static RegistrationCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of TaxRegistration
objects.- Throws:
StripeException
-
list
Returns a list of TaxRegistration
objects.- Throws:
StripeException
-
list
public static RegistrationCollection list(RegistrationListParams params, RequestOptions options) throws StripeException Returns a list of TaxRegistration
objects.- Throws:
StripeException
-
update
Updates an existing TaxRegistration
object.A registration cannot be deleted after it has been created. If you wish to end a registration you may do so by setting
expires_at
.- Throws:
StripeException
-
update
public Registration update(Map<String, Object> params, RequestOptions options) throws StripeExceptionUpdates an existing TaxRegistration
object.A registration cannot be deleted after it has been created. If you wish to end a registration you may do so by setting
expires_at
.- Throws:
StripeException
-
update
Updates an existing TaxRegistration
object.A registration cannot be deleted after it has been created. If you wish to end a registration you may do so by setting
expires_at
.- Throws:
StripeException
-
update
public Registration update(RegistrationUpdateParams params, RequestOptions options) throws StripeException Updates an existing TaxRegistration
object.A registration cannot be deleted after it has been created. If you wish to end a registration you may do so by setting
expires_at
.- Throws:
StripeException
-
getActiveFrom
Time at which the registration becomes active. Measured in seconds since the Unix epoch. -
getCountry
Two-letter country code (ISO 3166-1 alpha-2). -
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getExpiresAt
If set, the registration stops being active at this time. If not set, the registration will be active indefinitely. 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. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
tax.registration
. -
getState
State, county, province, or region. -
getStatus
The status of the registration. This field is present for convenience and can be deduced fromactive_from
andexpires_at
.One of
active
,expired
, orscheduled
. -
getType
The type of the registration. See our guide for more information about registration types.One of
domestic_small_seller
,ioss
,simplified
,standard
,vat_oss_non_union
, orvat_oss_union
. -
setActiveFrom
Time at which the registration becomes active. Measured in seconds since the Unix epoch. -
setCountry
Two-letter country code (ISO 3166-1 alpha-2). -
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setExpiresAt
If set, the registration stops being active at this time. If not set, the registration will be active indefinitely. 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. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
tax.registration
. -
setState
State, county, province, or region. -
setStatus
The status of the registration. This field is present for convenience and can be deduced fromactive_from
andexpires_at
.One of
active
,expired
, orscheduled
. -
setType
The type of the registration. See our guide for more information about registration types.One of
domestic_small_seller
,ioss
,simplified
,standard
,vat_oss_non_union
, orvat_oss_union
. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-