Class PaymentMethodDomain
- All Implemented Interfaces:
HasId
,StripeActiveObject
,StripeObjectInterface
Related guide: Payment method domains.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Indicates the status of a specific payment method on a payment method domain.static class
Indicates the status of a specific payment method on a payment method domain.static class
Indicates the status of a specific payment method on a payment method domain.static class
Indicates the status of a specific payment method on a payment method domain.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 PaymentMethodDomain
Creates a payment method domain.static PaymentMethodDomain
create
(PaymentMethodDomainCreateParams params, RequestOptions options) Creates a payment method domain.static PaymentMethodDomain
Creates a payment method domain.static PaymentMethodDomain
create
(Map<String, Object> params, RequestOptions options) Creates a payment method domain.boolean
Indicates the status of a specific payment method on a payment method domain.Time at which the object was created.The domain name that this payment method domain object represents.Whether this payment method domain is enabled.Indicates the status of a specific payment method on a payment method domain.getId()
Unique identifier for the object.getLink()
Indicates the status of a specific payment method on a payment method domain.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.Indicates the status of a specific payment method on a payment method domain.int
hashCode()
list
(PaymentMethodDomainListParams params) Lists the details of existing payment method domains.list
(PaymentMethodDomainListParams params, RequestOptions options) Lists the details of existing payment method domains.Lists the details of existing payment method domains.list
(Map<String, Object> params, RequestOptions options) Lists the details of existing payment method domains.static PaymentMethodDomain
Retrieves the details of an existing payment method domain.static PaymentMethodDomain
retrieve
(String paymentMethodDomain, RequestOptions options) Retrieves the details of an existing payment method domain.static PaymentMethodDomain
retrieve
(String paymentMethodDomain, PaymentMethodDomainRetrieveParams params, RequestOptions options) Retrieves the details of an existing payment method domain.static PaymentMethodDomain
Retrieves the details of an existing payment method domain.void
setApplePay
(PaymentMethodDomain.ApplePay applePay) Indicates the status of a specific payment method on a payment method domain.void
setCreated
(Long created) Time at which the object was created.void
setDomainName
(String domainName) The domain name that this payment method domain object represents.void
setEnabled
(Boolean enabled) Whether this payment method domain is enabled.void
setGooglePay
(PaymentMethodDomain.GooglePay googlePay) Indicates the status of a specific payment method on a payment method domain.void
Unique identifier for the object.void
Indicates the status of a specific payment method on a payment method domain.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
setPaypal
(PaymentMethodDomain.Paypal paypal) Indicates the status of a specific payment method on a payment method domain.void
setResponseGetter
(StripeResponseGetter responseGetter) The error message associated with the status of the payment method on the domain.Updates an existing payment method domain.update
(PaymentMethodDomainUpdateParams params, RequestOptions options) Updates an existing payment method domain.Updates an existing payment method domain.update
(Map<String, Object> params, RequestOptions options) Updates an existing payment method domain.validate()
Some payment methods such as Apple Pay require additional steps to verify a domain.validate
(RequestOptions options) Some payment methods such as Apple Pay require additional steps to verify a domain.Some payment methods such as Apple Pay require additional steps to verify a domain.validate
(PaymentMethodDomainValidateParams params, RequestOptions options) Some payment methods such as Apple Pay require additional steps to verify a domain.Some payment methods such as Apple Pay require additional steps to verify a domain.validate
(Map<String, Object> params, RequestOptions options) Some payment methods such as Apple Pay require additional steps to verify a domain.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
-
PaymentMethodDomain
public PaymentMethodDomain()
-
-
Method Details
-
create
Creates a payment method domain.- Throws:
StripeException
-
create
public static PaymentMethodDomain create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates a payment method domain.- Throws:
StripeException
-
create
public static PaymentMethodDomain create(PaymentMethodDomainCreateParams params) throws StripeException Creates a payment method domain.- Throws:
StripeException
-
create
public static PaymentMethodDomain create(PaymentMethodDomainCreateParams params, RequestOptions options) throws StripeException Creates a payment method domain.- Throws:
StripeException
-
list
Lists the details of existing payment method domains.- Throws:
StripeException
-
list
public static PaymentMethodDomainCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionLists the details of existing payment method domains.- Throws:
StripeException
-
list
public static PaymentMethodDomainCollection list(PaymentMethodDomainListParams params) throws StripeException Lists the details of existing payment method domains.- Throws:
StripeException
-
list
public static PaymentMethodDomainCollection list(PaymentMethodDomainListParams params, RequestOptions options) throws StripeException Lists the details of existing payment method domains.- Throws:
StripeException
-
retrieve
Retrieves the details of an existing payment method domain.- Throws:
StripeException
-
retrieve
public static PaymentMethodDomain retrieve(String paymentMethodDomain, RequestOptions options) throws StripeException Retrieves the details of an existing payment method domain.- Throws:
StripeException
-
retrieve
public static PaymentMethodDomain retrieve(String paymentMethodDomain, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves the details of an existing payment method domain.- Throws:
StripeException
-
retrieve
public static PaymentMethodDomain retrieve(String paymentMethodDomain, PaymentMethodDomainRetrieveParams params, RequestOptions options) throws StripeException Retrieves the details of an existing payment method domain.- Throws:
StripeException
-
update
Updates an existing payment method domain.- Throws:
StripeException
-
update
public PaymentMethodDomain update(Map<String, Object> params, RequestOptions options) throws StripeExceptionUpdates an existing payment method domain.- Throws:
StripeException
-
update
Updates an existing payment method domain.- Throws:
StripeException
-
update
public PaymentMethodDomain update(PaymentMethodDomainUpdateParams params, RequestOptions options) throws StripeException Updates an existing payment method domain.- Throws:
StripeException
-
validate
Some payment methods such as Apple Pay require additional steps to verify a domain. If the requirements weren’t satisfied when the domain was created, the payment method will be inactive on the domain. The payment method doesn’t appear in Elements for this domain until it is active.To activate a payment method on an existing payment method domain, complete the required validation steps specific to the payment method, and then validate the payment method domain with this endpoint.
Related guides: Payment method domains.
- Throws:
StripeException
-
validate
Some payment methods such as Apple Pay require additional steps to verify a domain. If the requirements weren’t satisfied when the domain was created, the payment method will be inactive on the domain. The payment method doesn’t appear in Elements for this domain until it is active.To activate a payment method on an existing payment method domain, complete the required validation steps specific to the payment method, and then validate the payment method domain with this endpoint.
Related guides: Payment method domains.
- Throws:
StripeException
-
validate
Some payment methods such as Apple Pay require additional steps to verify a domain. If the requirements weren’t satisfied when the domain was created, the payment method will be inactive on the domain. The payment method doesn’t appear in Elements for this domain until it is active.To activate a payment method on an existing payment method domain, complete the required validation steps specific to the payment method, and then validate the payment method domain with this endpoint.
Related guides: Payment method domains.
- Throws:
StripeException
-
validate
public PaymentMethodDomain validate(Map<String, Object> params, RequestOptions options) throws StripeExceptionSome payment methods such as Apple Pay require additional steps to verify a domain. If the requirements weren’t satisfied when the domain was created, the payment method will be inactive on the domain. The payment method doesn’t appear in Elements for this domain until it is active.To activate a payment method on an existing payment method domain, complete the required validation steps specific to the payment method, and then validate the payment method domain with this endpoint.
Related guides: Payment method domains.
- Throws:
StripeException
-
validate
public PaymentMethodDomain validate(PaymentMethodDomainValidateParams params) throws StripeException Some payment methods such as Apple Pay require additional steps to verify a domain. If the requirements weren’t satisfied when the domain was created, the payment method will be inactive on the domain. The payment method doesn’t appear in Elements for this domain until it is active.To activate a payment method on an existing payment method domain, complete the required validation steps specific to the payment method, and then validate the payment method domain with this endpoint.
Related guides: Payment method domains.
- Throws:
StripeException
-
validate
public PaymentMethodDomain validate(PaymentMethodDomainValidateParams params, RequestOptions options) throws StripeException Some payment methods such as Apple Pay require additional steps to verify a domain. If the requirements weren’t satisfied when the domain was created, the payment method will be inactive on the domain. The payment method doesn’t appear in Elements for this domain until it is active.To activate a payment method on an existing payment method domain, complete the required validation steps specific to the payment method, and then validate the payment method domain with this endpoint.
Related guides: Payment method domains.
- Throws:
StripeException
-
setResponseGetter
The error message associated with the status of the payment method on the domain.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
getApplePay
Indicates the status of a specific payment method on a payment method domain. -
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getDomainName
The domain name that this payment method domain object represents. -
getEnabled
Whether this payment method domain is enabled. If the domain is not enabled, payment methods that require a payment method domain will not appear in Elements. -
getGooglePay
Indicates the status of a specific payment method on a payment method domain. -
getLink
Indicates the status of a specific payment method on a payment method domain. -
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
payment_method_domain
. -
getPaypal
Indicates the status of a specific payment method on a payment method domain. -
setApplePay
Indicates the status of a specific payment method on a payment method domain. -
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setDomainName
The domain name that this payment method domain object represents. -
setEnabled
Whether this payment method domain is enabled. If the domain is not enabled, payment methods that require a payment method domain will not appear in Elements. -
setGooglePay
Indicates the status of a specific payment method on a payment method domain. -
setId
Unique identifier for the object. -
setLink
Indicates the status of a specific payment method on a payment method domain. -
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
payment_method_domain
. -
setPaypal
Indicates the status of a specific payment method on a payment method domain. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-