pub struct CreatePaymentLinkCustomFields {
pub dropdown: Option<CustomFieldDropdownParam>,
pub key: String,
pub label: CreatePaymentLinkCustomFieldsLabel,
pub numeric: Option<CreatePaymentLinkCustomFieldsNumeric>,
pub optional: Option<bool>,
pub text: Option<CreatePaymentLinkCustomFieldsText>,
pub type_: CreatePaymentLinkCustomFieldsType,
}Expand description
Collect additional information from your customer using custom fields.
Up to 3 fields are supported.
You can’t set this parameter if ui_mode is custom.
Fields§
§dropdown: Option<CustomFieldDropdownParam>Configuration for type=dropdown fields.
key: StringString of your choice that your integration can use to reconcile this field. Must be unique to this field, alphanumeric, and up to 200 characters.
label: CreatePaymentLinkCustomFieldsLabelThe label for the field, displayed to the customer.
numeric: Option<CreatePaymentLinkCustomFieldsNumeric>Configuration for type=numeric fields.
optional: Option<bool>Whether the customer is required to complete the field before completing the Checkout Session.
Defaults to false.
text: Option<CreatePaymentLinkCustomFieldsText>Configuration for type=text fields.
type_: CreatePaymentLinkCustomFieldsTypeThe type of the field.
Implementations§
Source§impl CreatePaymentLinkCustomFields
impl CreatePaymentLinkCustomFields
pub fn new( key: impl Into<String>, label: impl Into<CreatePaymentLinkCustomFieldsLabel>, type_: impl Into<CreatePaymentLinkCustomFieldsType>, ) -> Self
Trait Implementations§
Source§impl Clone for CreatePaymentLinkCustomFields
impl Clone for CreatePaymentLinkCustomFields
Source§fn clone(&self) -> CreatePaymentLinkCustomFields
fn clone(&self) -> CreatePaymentLinkCustomFields
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl PartialEq for CreatePaymentLinkCustomFields
impl PartialEq for CreatePaymentLinkCustomFields
Source§fn eq(&self, other: &CreatePaymentLinkCustomFields) -> bool
fn eq(&self, other: &CreatePaymentLinkCustomFields) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CreatePaymentLinkCustomFields
impl StructuralPartialEq for CreatePaymentLinkCustomFields
Auto Trait Implementations§
impl Freeze for CreatePaymentLinkCustomFields
impl RefUnwindSafe for CreatePaymentLinkCustomFields
impl Send for CreatePaymentLinkCustomFields
impl Sync for CreatePaymentLinkCustomFields
impl Unpin for CreatePaymentLinkCustomFields
impl UnsafeUnpin for CreatePaymentLinkCustomFields
impl UnwindSafe for CreatePaymentLinkCustomFields
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more