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 ClassesModifier and TypeClassDescriptionstatic classFor more details about CountryOptions, 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 booleanstatic Registrationcreate(RegistrationCreateParams params) Creates a new TaxRegistrationobject.static Registrationcreate(RegistrationCreateParams params, RequestOptions options) Creates a new TaxRegistrationobject.static RegistrationCreates a new TaxRegistrationobject.static Registrationcreate(Map<String, Object> params, RequestOptions options) Creates a new TaxRegistrationobject.booleanTime 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 valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.String representing the object's type.The status of the registration.inthashCode()static RegistrationCollectionlist(RegistrationListParams params) Returns a list of TaxRegistrationobjects.static RegistrationCollectionlist(RegistrationListParams params, RequestOptions options) Returns a list of TaxRegistrationobjects.static RegistrationCollectionReturns a list of TaxRegistrationobjects.static RegistrationCollectionlist(Map<String, Object> params, RequestOptions options) Returns a list of TaxRegistrationobjects.static RegistrationReturns a TaxRegistrationobject.static Registrationretrieve(String id, RequestOptions options) Returns a TaxRegistrationobject.static Registrationretrieve(String id, RegistrationRetrieveParams params, RequestOptions options) Returns a TaxRegistrationobject.static RegistrationReturns a TaxRegistrationobject.voidsetActiveFrom(Long activeFrom) Time at which the registration becomes active.voidsetCountry(String country) Two-letter country code (ISO 3166-1 alpha-2).voidsetCountryOptions(Registration.CountryOptions countryOptions) voidsetCreated(Long created) Time at which the object was created.voidsetExpiresAt(Long expiresAt) If set, the registration stops being active at this time.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.voidString representing the object's type.voidsetResponseGetter(StripeResponseGetter responseGetter) Type of registration incountry.voidThe status of the registration.update(RegistrationUpdateParams params) Updates an existing TaxRegistrationobject.update(RegistrationUpdateParams params, RequestOptions options) Updates an existing TaxRegistrationobject.Updates an existing TaxRegistrationobject.update(Map<String, Object> params, RequestOptions options) Updates an existing TaxRegistrationobject.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
-
Registration
public Registration()
-
-
Method Details
-
create
Creates a new TaxRegistrationobject.- Throws:
StripeException
-
create
public static Registration create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates a new TaxRegistrationobject.- Throws:
StripeException
-
create
Creates a new TaxRegistrationobject.- Throws:
StripeException
-
create
public static Registration create(RegistrationCreateParams params, RequestOptions options) throws StripeException Creates a new TaxRegistrationobject.- Throws:
StripeException
-
list
Returns a list of TaxRegistrationobjects.- Throws:
StripeException
-
list
public static RegistrationCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of TaxRegistrationobjects.- Throws:
StripeException
-
list
Returns a list of TaxRegistrationobjects.- Throws:
StripeException
-
list
public static RegistrationCollection list(RegistrationListParams params, RequestOptions options) throws StripeException Returns a list of TaxRegistrationobjects.- Throws:
StripeException
-
retrieve
Returns a TaxRegistrationobject.- Throws:
StripeException
-
retrieve
Returns a TaxRegistrationobject.- Throws:
StripeException
-
retrieve
public static Registration retrieve(String id, Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a TaxRegistrationobject.- Throws:
StripeException
-
retrieve
public static Registration retrieve(String id, RegistrationRetrieveParams params, RequestOptions options) throws StripeException Returns a TaxRegistrationobject.- Throws:
StripeException
-
update
Updates an existing TaxRegistrationobject.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 TaxRegistrationobject.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 TaxRegistrationobject.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 TaxRegistrationobject.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:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance 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 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
tax.registration. -
getStatus
The status of the registration. This field is present for convenience and can be deduced fromactive_fromandexpires_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 valuetrueif the object exists in live mode or the valuefalseif 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_fromandexpires_at.One of
active,expired, orscheduled. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-