Package com.stripe.model
Class PaymentLink
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.PaymentLink
- All Implemented Interfaces:
HasId,MetadataStore<PaymentLink>,StripeObjectInterface
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classThe URL the customer will be redirected to after the purchase is complete.static classstatic classstatic classstatic classstatic classstatic classstatic classstatic classNested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod -
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanstatic PaymentLinkcreate(PaymentLinkCreateParams params) Creates a payment link.static PaymentLinkcreate(PaymentLinkCreateParams params, RequestOptions options) Creates a payment link.static PaymentLinkCreates a payment link.static PaymentLinkcreate(Map<String, Object> params, RequestOptions options) Creates a payment link.booleanWhether the payment link'surlis active.Whether user redeemable promotion codes are enabled.The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account.This represents the percentage of the subscription invoice subtotal that will be transferred to the application owner's Stripe account.Configuration for collecting the customer's billing address.When set, provides configuration to gather active consent from customers.Configuration for Customer creation during checkout.getId()Unique identifier for the object.The line items representing what is being sold.Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.Set of key-value pairs that you can attach to an object.String representing the object's type.Get ID of expandableonBehalfOfobject.Get expandedonBehalfOf.Indicates the parameters to be passed to PaymentIntent creation during checkout.The list of payment method types that customers can use.Configuration for collecting the customer's shipping address.The shipping rate options applied to the session.Indicates the type of transaction being performed which customizes relevant text on the page, such as the submit button.When creating a subscription, the specified configuration data will be used.The account (if any) the payments will be attributed to for tax reporting, and where funds from each payment will be transferred to.getUrl()The public URL that can be shared with customers.inthashCode()static PaymentLinkCollectionlist(PaymentLinkListParams params) Returns a list of your payment links.static PaymentLinkCollectionlist(PaymentLinkListParams params, RequestOptions options) Returns a list of your payment links.static PaymentLinkCollectionReturns a list of your payment links.static PaymentLinkCollectionlist(Map<String, Object> params, RequestOptions options) Returns a list of your payment links.When retrieving a payment link, there is an includable line_items property containing the first handful of those items.When retrieving a payment link, there is an includable line_items property containing the first handful of those items.listLineItems(PaymentLinkListLineItemsParams params, RequestOptions options) When retrieving a payment link, there is an includable line_items property containing the first handful of those items.listLineItems(Map<String, Object> params) When retrieving a payment link, there is an includable line_items property containing the first handful of those items.listLineItems(Map<String, Object> params, RequestOptions options) When retrieving a payment link, there is an includable line_items property containing the first handful of those items.static PaymentLinkRetrieve a payment link.static PaymentLinkretrieve(String paymentLink, RequestOptions options) Retrieve a payment link.static PaymentLinkretrieve(String paymentLink, PaymentLinkRetrieveParams params, RequestOptions options) Retrieve a payment link.static PaymentLinkRetrieve a payment link.voidWhether the payment link'surlis active.voidsetAfterCompletion(PaymentLink.AfterCompletion afterCompletion) voidsetAllowPromotionCodes(Boolean allowPromotionCodes) Whether user redeemable promotion codes are enabled.voidsetApplicationFeeAmount(Long applicationFeeAmount) The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account.voidsetApplicationFeePercent(BigDecimal applicationFeePercent) This represents the percentage of the subscription invoice subtotal that will be transferred to the application owner's Stripe account.voidsetAutomaticTax(PaymentLink.AutomaticTax automaticTax) voidsetBillingAddressCollection(String billingAddressCollection) Configuration for collecting the customer's billing address.voidsetConsentCollection(PaymentLink.ConsentCollection consentCollection) When set, provides configuration to gather active consent from customers.voidsetCustomerCreation(String customerCreation) Configuration for Customer creation during checkout.voidUnique identifier for the object.voidsetLineItems(LineItemCollection lineItems) The line items representing what is being sold.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetMetadata(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.voidString representing the object's type.voidsetOnBehalfOf(String id) voidsetOnBehalfOfObject(Account expandableObject) voidsetPaymentIntentData(PaymentLink.PaymentIntentData paymentIntentData) Indicates the parameters to be passed to PaymentIntent creation during checkout.voidsetPaymentMethodTypes(List<String> paymentMethodTypes) The list of payment method types that customers can use.voidsetPhoneNumberCollection(PaymentLink.PhoneNumberCollection phoneNumberCollection) voidsetShippingAddressCollection(PaymentLink.ShippingAddressCollection shippingAddressCollection) Configuration for collecting the customer's shipping address.voidsetShippingOptions(List<PaymentLink.ShippingOption> shippingOptions) The shipping rate options applied to the session.voidsetSubmitType(String submitType) Indicates the type of transaction being performed which customizes relevant text on the page, such as the submit button.voidsetSubscriptionData(PaymentLink.SubscriptionData subscriptionData) When creating a subscription, the specified configuration data will be used.voidsetTaxIdCollection(PaymentLink.TaxIdCollection taxIdCollection) voidsetTransferData(PaymentLink.TransferData transferData) The account (if any) the payments will be attributed to for tax reporting, and where funds from each payment will be transferred to.voidThe public URL that can be shared with customers.update(PaymentLinkUpdateParams params) Updates a payment link.update(PaymentLinkUpdateParams params, RequestOptions options) Updates a payment link.Updates a payment link.update(Map<String, Object> params, RequestOptions options) Updates a payment link.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, requestSearchResult, requestSearchResult, requestStream, requestStream, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
PaymentLink
public PaymentLink()
-
-
Method Details
-
getOnBehalfOf
Get ID of expandableonBehalfOfobject. -
setOnBehalfOf
-
getOnBehalfOfObject
Get expandedonBehalfOf. -
setOnBehalfOfObject
-
list
Returns a list of your payment links.- Throws:
StripeException
-
list
public static PaymentLinkCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of your payment links.- Throws:
StripeException
-
list
Returns a list of your payment links.- Throws:
StripeException
-
list
public static PaymentLinkCollection list(PaymentLinkListParams params, RequestOptions options) throws StripeException Returns a list of your payment links.- Throws:
StripeException
-
retrieve
Retrieve a payment link.- Throws:
StripeException
-
retrieve
public static PaymentLink retrieve(String paymentLink, RequestOptions options) throws StripeException Retrieve a payment link.- Throws:
StripeException
-
retrieve
public static PaymentLink retrieve(String paymentLink, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieve a payment link.- Throws:
StripeException
-
retrieve
public static PaymentLink retrieve(String paymentLink, PaymentLinkRetrieveParams params, RequestOptions options) throws StripeException Retrieve a payment link.- Throws:
StripeException
-
listLineItems
When retrieving a payment link, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.- Throws:
StripeException
-
listLineItems
When retrieving a payment link, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.- Throws:
StripeException
-
listLineItems
public LineItemCollection listLineItems(Map<String, Object> params, RequestOptions options) throws StripeExceptionWhen retrieving a payment link, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.- Throws:
StripeException
-
listLineItems
public LineItemCollection listLineItems(PaymentLinkListLineItemsParams params) throws StripeException When retrieving a payment link, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.- Throws:
StripeException
-
listLineItems
public LineItemCollection listLineItems(PaymentLinkListLineItemsParams params, RequestOptions options) throws StripeException When retrieving a payment link, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.- Throws:
StripeException
-
create
Creates a payment link.- Throws:
StripeException
-
create
public static PaymentLink create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates a payment link.- Throws:
StripeException
-
create
Creates a payment link.- Throws:
StripeException
-
create
public static PaymentLink create(PaymentLinkCreateParams params, RequestOptions options) throws StripeException Creates a payment link.- Throws:
StripeException
-
update
Updates a payment link.- Specified by:
updatein interfaceMetadataStore<PaymentLink>- Throws:
StripeException
-
update
Updates a payment link.- Specified by:
updatein interfaceMetadataStore<PaymentLink>- Throws:
StripeException
-
update
Updates a payment link.- Throws:
StripeException
-
update
public PaymentLink update(PaymentLinkUpdateParams params, RequestOptions options) throws StripeException Updates a payment link.- Throws:
StripeException
-
getActive
Whether the payment link'surlis active. Iffalse, customers visiting the URL will be shown a page saying that the link has been deactivated. -
getAfterCompletion
-
getAllowPromotionCodes
Whether user redeemable promotion codes are enabled. -
getApplicationFeeAmount
The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. -
getApplicationFeePercent
This represents the percentage of the subscription invoice subtotal that will be transferred to the application owner's Stripe account. -
getAutomaticTax
-
getBillingAddressCollection
Configuration for collecting the customer's billing address.One of
auto, orrequired. -
getConsentCollection
When set, provides configuration to gather active consent from customers. -
getCustomerCreation
Configuration for Customer creation during checkout.One of
always, orif_required. -
getLineItems
The line items representing what is being sold. -
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
payment_link. -
getPaymentIntentData
Indicates the parameters to be passed to PaymentIntent creation during checkout. -
getPaymentMethodTypes
The list of payment method types that customers can use. Whennull, Stripe will dynamically show relevant payment methods you've enabled in your payment method settings. -
getPhoneNumberCollection
-
getShippingAddressCollection
Configuration for collecting the customer's shipping address. -
getShippingOptions
The shipping rate options applied to the session. -
getSubmitType
Indicates the type of transaction being performed which customizes relevant text on the page, such as the submit button.One of
auto,book,donate, orpay. -
getSubscriptionData
When creating a subscription, the specified configuration data will be used. There must be at least one line item with a recurring price to usesubscription_data. -
getTaxIdCollection
-
getTransferData
The account (if any) the payments will be attributed to for tax reporting, and where funds from each payment will be transferred to. -
getUrl
The public URL that can be shared with customers. -
setActive
Whether the payment link'surlis active. Iffalse, customers visiting the URL will be shown a page saying that the link has been deactivated. -
setAfterCompletion
-
setAllowPromotionCodes
Whether user redeemable promotion codes are enabled. -
setApplicationFeeAmount
The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. -
setApplicationFeePercent
This represents the percentage of the subscription invoice subtotal that will be transferred to the application owner's Stripe account. -
setAutomaticTax
-
setBillingAddressCollection
Configuration for collecting the customer's billing address.One of
auto, orrequired. -
setConsentCollection
When set, provides configuration to gather active consent from customers. -
setCustomerCreation
Configuration for Customer creation during checkout.One of
always, orif_required. -
setId
Unique identifier for the object. -
setLineItems
The line items representing what is being sold. -
setLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
setMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
payment_link. -
setPaymentIntentData
Indicates the parameters to be passed to PaymentIntent creation during checkout. -
setPaymentMethodTypes
The list of payment method types that customers can use. Whennull, Stripe will dynamically show relevant payment methods you've enabled in your payment method settings. -
setPhoneNumberCollection
-
setShippingAddressCollection
public void setShippingAddressCollection(PaymentLink.ShippingAddressCollection shippingAddressCollection) Configuration for collecting the customer's shipping address. -
setShippingOptions
The shipping rate options applied to the session. -
setSubmitType
Indicates the type of transaction being performed which customizes relevant text on the page, such as the submit button.One of
auto,book,donate, orpay. -
setSubscriptionData
When creating a subscription, the specified configuration data will be used. There must be at least one line item with a recurring price to usesubscription_data. -
setTaxIdCollection
-
setTransferData
The account (if any) the payments will be attributed to for tax reporting, and where funds from each payment will be transferred to. -
setUrl
The public URL that can be shared with customers. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object. -
getMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.- Specified by:
getMetadatain interfaceMetadataStore<PaymentLink>
-