Class Registration
- All Implemented Interfaces:
HasId
,StripeActiveObject
,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 doesn't 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.
Related guide: Using the Registrations API
-
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
-
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.The status 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.static Registration
Returns a TaxRegistration
object.static Registration
retrieve
(String id, RequestOptions options) Returns a TaxRegistration
object.static Registration
retrieve
(String id, RegistrationRetrieveParams params, RequestOptions options) Returns a TaxRegistration
object.static Registration
Returns a TaxRegistration
object.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
setCountryOptions
(Registration.CountryOptions countryOptions) 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
setResponseGetter
(StripeResponseGetter responseGetter) Type of registration incountry
.void
The status 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, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setStripeResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
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
-
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
-
retrieve
Returns a TaxRegistration
object.- Throws:
StripeException
-
retrieve
Returns a TaxRegistration
object.- Throws:
StripeException
-
retrieve
public static Registration retrieve(String id, Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a TaxRegistration
object.- Throws:
StripeException
-
retrieve
public static Registration retrieve(String id, RegistrationRetrieveParams params, RequestOptions options) throws StripeException Returns a TaxRegistration
object.- 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
-
setResponseGetter
Type of registration incountry
.Equal to
standard
.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
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). -
getCountryOptions
-
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
. -
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
. -
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). -
setCountryOptions
-
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
. -
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
. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-