pub struct UpdatePaymentLink<'a> {
Show 14 fields pub active: Option<bool>, pub after_completion: Option<UpdatePaymentLinkAfterCompletion>, pub allow_promotion_codes: Option<bool>, pub automatic_tax: Option<UpdatePaymentLinkAutomaticTax>, pub billing_address_collection: Option<PaymentLinkBillingAddressCollection>, pub custom_text: Option<UpdatePaymentLinkCustomText>, pub customer_creation: Option<PaymentLinkCustomerCreation>, pub expand: &'a [&'a str], pub invoice_creation: Option<UpdatePaymentLinkInvoiceCreation>, pub line_items: Option<Vec<UpdatePaymentLinkLineItems>>, pub metadata: Option<Metadata>, pub payment_method_collection: Option<PaymentLinkPaymentMethodCollection>, pub payment_method_types: Option<Vec<UpdatePaymentLinkPaymentMethodTypes>>, pub shipping_address_collection: Option<UpdatePaymentLinkShippingAddressCollection>,
}
Expand description

The parameters for PaymentLink::update.

Fields§

§active: Option<bool>

Whether the payment link’s url is active.

If false, customers visiting the URL will be shown a page saying that the link has been deactivated.

§after_completion: Option<UpdatePaymentLinkAfterCompletion>

Behavior after the purchase is complete.

§allow_promotion_codes: Option<bool>

Enables user redeemable promotion codes.

§automatic_tax: Option<UpdatePaymentLinkAutomaticTax>

Configuration for automatic tax collection.

§billing_address_collection: Option<PaymentLinkBillingAddressCollection>

Configuration for collecting the customer’s billing address.

§custom_text: Option<UpdatePaymentLinkCustomText>

Display additional text for your customers using custom text.

§customer_creation: Option<PaymentLinkCustomerCreation>

Configures whether checkout sessions created by this payment link create a Customer.

§expand: &'a [&'a str]

Specifies which fields in the response should be expanded.

§invoice_creation: Option<UpdatePaymentLinkInvoiceCreation>

Generate a post-purchase Invoice for one-time payments.

§line_items: Option<Vec<UpdatePaymentLinkLineItems>>

The line items representing what is being sold.

Each line item represents an item being sold. Up to 20 line items are supported.

§metadata: Option<Metadata>

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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to metadata. Metadata associated with this Payment Link will automatically be copied to checkout sessions created by this payment link.

§payment_method_collection: Option<PaymentLinkPaymentMethodCollection>

Specify whether Checkout should collect a payment method.

When set to if_required, Checkout will not collect a payment method when the total due for the session is 0.This may occur if the Checkout Session includes a free trial or a discount. Can only be set in subscription mode. If you’d like information on how to collect a payment method outside of Checkout, read the guide on configuring subscriptions with a free trial.

§payment_method_types: Option<Vec<UpdatePaymentLinkPaymentMethodTypes>>

The list of payment method types that customers can use.

Pass an empty string to enable automatic payment methods that use your payment method settings.

§shipping_address_collection: Option<UpdatePaymentLinkShippingAddressCollection>

Configuration for collecting the customer’s shipping address.

Implementations§

source§

impl<'a> UpdatePaymentLink<'a>

source

pub fn new() -> Self

Trait Implementations§

source§

impl<'a> Clone for UpdatePaymentLink<'a>

source§

fn clone(&self) -> UpdatePaymentLink<'a>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'a> Debug for UpdatePaymentLink<'a>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a> Default for UpdatePaymentLink<'a>

source§

fn default() -> UpdatePaymentLink<'a>

Returns the “default value” for a type. Read more
source§

impl<'a> Serialize for UpdatePaymentLink<'a>

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
    __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for UpdatePaymentLink<'a>

§

impl<'a> Send for UpdatePaymentLink<'a>

§

impl<'a> Sync for UpdatePaymentLink<'a>

§

impl<'a> Unpin for UpdatePaymentLink<'a>

§

impl<'a> UnwindSafe for UpdatePaymentLink<'a>

Blanket Implementations§

source§

impl<T> Any for Twhere
    T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere
    U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere
    T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere
    U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere
    U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere
    V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
    S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more