pub struct CreatePaymentPaymentsPostRequest<'a> {
pub x_idempotency_key: Option<String>,
pub order_id: Option<String>,
pub currency_code: Option<String>,
pub amount: Option<Value>,
pub order: Option<OrderDetailsApiSchema>,
pub payment_method_token: String,
pub customer_id: Option<String>,
pub customer: Option<CustomerDetailsApiSchema>,
pub metadata: Option<Value>,
pub payment_method: Option<PaymentRequestPaymentMethodOptionsApiSchema>,
/* private fields */
}
Expand description
Create this with the associated client method.
That method takes required values as arguments. Set optional values using builder methods on this struct.
Fields§
§x_idempotency_key: Option<String>
§order_id: Option<String>
§currency_code: Option<String>
§amount: Option<Value>
§order: Option<OrderDetailsApiSchema>
§payment_method_token: String
§customer_id: Option<String>
§customer: Option<CustomerDetailsApiSchema>
§metadata: Option<Value>
§payment_method: Option<PaymentRequestPaymentMethodOptionsApiSchema>
Implementations§
Source§impl<'a> CreatePaymentPaymentsPostRequest<'a>
impl<'a> CreatePaymentPaymentsPostRequest<'a>
pub async fn send(self) -> Result<PaymentApiResponse>
pub fn x_idempotency_key(self, x_idempotency_key: &str) -> Self
pub fn order_id(self, order_id: &str) -> Self
pub fn currency_code(self, currency_code: &str) -> Self
pub fn amount(self, amount: Value) -> Self
pub fn order(self, order: OrderDetailsApiSchema) -> Self
pub fn customer_id(self, customer_id: &str) -> Self
pub fn customer(self, customer: CustomerDetailsApiSchema) -> Self
pub fn metadata(self, metadata: Value) -> Self
pub fn payment_method( self, payment_method: PaymentRequestPaymentMethodOptionsApiSchema, ) -> Self
Auto Trait Implementations§
impl<'a> Freeze for CreatePaymentPaymentsPostRequest<'a>
impl<'a> !RefUnwindSafe for CreatePaymentPaymentsPostRequest<'a>
impl<'a> Send for CreatePaymentPaymentsPostRequest<'a>
impl<'a> Sync for CreatePaymentPaymentsPostRequest<'a>
impl<'a> Unpin for CreatePaymentPaymentsPostRequest<'a>
impl<'a> !UnwindSafe for CreatePaymentPaymentsPostRequest<'a>
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