plaid/model/
payment_initiation_consent_processing_mode.rs

1use serde::{Serialize, Deserialize};
2/**Decides the mode under which the payment processing should be performed, using `IMMEDIATE` as default.
3
4`IMMEDIATE`: Will immediately execute the payment, waiting for a response from the ASPSP before returning the result of the payment initiation. This is ideal for user-present flows.
5
6 `ASYNC`: Will accept a payment execution request and schedule it for processing, immediately returning the new `payment_id`. Listen for webhooks or use the [`/payment_initiation/payment/get`](https://plaid.com/docs/api/products/payment-initiation/#payment_initiationpaymentget) endpoint to obtain updates on the payment status. This is ideal for non user-present flows.*/
7#[derive(Debug, Serialize, Deserialize, Clone)]
8pub enum PaymentInitiationConsentProcessingMode {
9    #[serde(rename = "ASYNC")]
10    Async,
11    #[serde(rename = "IMMEDIATE")]
12    Immediate,
13}