Struct CreatePaymentsParams

Source
pub struct CreatePaymentsParams {
Show 18 fields pub account_sid: String, pub call_sid: String, pub idempotency_key: String, pub status_callback: String, pub bank_account_type: Option<String>, pub charge_amount: Option<f64>, pub currency: Option<String>, pub description: Option<String>, pub input: Option<String>, pub min_postal_code_length: Option<i32>, pub parameter: Option<Value>, pub payment_connector: Option<String>, pub payment_method: Option<String>, pub postal_code: Option<bool>, pub security_code: Option<bool>, pub timeout: Option<i32>, pub token_type: Option<String>, pub valid_card_types: Option<String>,
}
Expand description

struct for passing parameters to the method create_payments

Fields§

§account_sid: String

The SID of the Account that will create the resource.

§call_sid: String

The SID of the call that will create the resource. Call leg associated with this sid is expected to provide payment information thru DTMF.

§idempotency_key: String

A unique token that will be used to ensure that multiple API calls with the same information do not result in multiple transactions. This should be a unique string value per API call and can be a randomly generated.

§status_callback: String

Provide an absolute or relative URL to receive status updates regarding your Pay session. Read more about the expected StatusCallback values

§bank_account_type: Option<String>§charge_amount: Option<f64>

A positive decimal value less than 1,000,000 to charge against the credit card or bank account. Default currency can be overwritten with currency field. Leave blank or set to 0 to tokenize.

§currency: Option<String>

The currency of the charge_amount, formatted as ISO 4127 format. The default value is USD and all values allowed from the Pay Connector are accepted.

§description: Option<String>

The description can be used to provide more details regarding the transaction. This information is submitted along with the payment details to the Payment Connector which are then posted on the transactions.

§input: Option<String>

A list of inputs that should be accepted. Currently only dtmf is supported. All digits captured during a pay session are redacted from the logs.

§min_postal_code_length: Option<i32>

A positive integer that is used to validate the length of the PostalCode inputted by the user. User must enter this many digits.

§parameter: Option<Value>

A single-level JSON object used to pass custom parameters to payment processors. (Required for ACH payments). The information that has to be included here depends on the Connector. Read more.

§payment_connector: Option<String>

This is the unique name corresponding to the Pay Connector installed in the Twilio Add-ons. Learn more about Connectors. The default value is Default.

§payment_method: Option<String>§postal_code: Option<bool>

Indicates whether the credit card postal code (zip code) is a required piece of payment information that must be provided by the caller. The default is true.

§security_code: Option<bool>

Indicates whether the credit card security code is a required piece of payment information that must be provided by the caller. The default is true.

§timeout: Option<i32>

The number of seconds that should wait for the caller to press a digit between each subsequent digit, after the first one, before moving on to validate the digits captured. The default is 5, maximum is 600.

§token_type: Option<String>§valid_card_types: Option<String>

Credit card types separated by space that Pay should accept. The default value is visa mastercard amex

Trait Implementations§

Source§

impl Clone for CreatePaymentsParams

Source§

fn clone(&self) -> CreatePaymentsParams

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 Debug for CreatePaymentsParams

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

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 T
where U: From<T>,

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> ToOwned for T
where T: Clone,

Source§

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 T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
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
Source§

impl<T> ErasedDestructor for T
where T: 'static,