Struct plaid_openapi::PaymentStatusUpdateWebhook
source · [−]pub struct PaymentStatusUpdateWebhook {
pub webhook_type: String,
pub webhook_code: String,
pub payment_id: String,
pub new_payment_status: PaymentInitiationPaymentStatus,
pub old_payment_status: PaymentInitiationPaymentStatus,
pub original_reference: Option<String>,
pub adjusted_reference: Option<String>,
pub original_start_date: Option<String>,
pub adjusted_start_date: Option<String>,
pub timestamp: String,
pub error: Option<PlaidError>,
}Fields
webhook_type: StringPAYMENT_INITIATION
webhook_code: StringPAYMENT_STATUS_UPDATE
payment_id: StringThe payment_id for the payment being updated
new_payment_status: PaymentInitiationPaymentStatusThe status of the payment.
PAYMENT_STATUS_INPUT_NEEDED: This is the initial state of all payments. It indicates that the payment is waiting on user input to continue processing. A payment may re-enter this state later on if further input is needed.
PAYMENT_STATUS_INITIATED: The payment has been successfully authorised and accepted by the financial institution but has not been executed.
PAYMENT_STATUS_INSUFFICIENT_FUNDS: The payment has failed due to insufficient funds.
PAYMENT_STATUS_FAILED: The payment has failed to be initiated. This error is retryable once the root cause is resolved.
PAYMENT_STATUS_BLOCKED: The payment has been blocked. This is a retryable error.
PAYMENT_STATUS_AUTHORISING: The payment is currently being processed. The payment will automatically exit this state when the financial institution has authorised the transaction.
PAYMENT_STATUS_CANCELLED: The payment was cancelled during authorisation.
PAYMENT_STATUS_EXECUTED: The payment has been successfully initiated and is considered complete.
PAYMENT_STATUS_ESTABLISHED: Indicates that the standing order has been successfully established. This state is only used for standing orders.
PAYMENT_STATUS_REJECTED: The payment was rejected by the financial institution.
Deprecated: These statuses will be removed in a future release.
PAYMENT_STATUS_UNKNOWN: The payment status is unknown.
PAYMENT_STATUS_PROCESSING: The payment is currently being processed. The payment will automatically exit this state when processing is complete.
PAYMENT_STATUS_COMPLETED: Indicates that the standing order has been successfully established. This state is only used for standing orders.
old_payment_status: PaymentInitiationPaymentStatusThe status of the payment.
PAYMENT_STATUS_INPUT_NEEDED: This is the initial state of all payments. It indicates that the payment is waiting on user input to continue processing. A payment may re-enter this state later on if further input is needed.
PAYMENT_STATUS_INITIATED: The payment has been successfully authorised and accepted by the financial institution but has not been executed.
PAYMENT_STATUS_INSUFFICIENT_FUNDS: The payment has failed due to insufficient funds.
PAYMENT_STATUS_FAILED: The payment has failed to be initiated. This error is retryable once the root cause is resolved.
PAYMENT_STATUS_BLOCKED: The payment has been blocked. This is a retryable error.
PAYMENT_STATUS_AUTHORISING: The payment is currently being processed. The payment will automatically exit this state when the financial institution has authorised the transaction.
PAYMENT_STATUS_CANCELLED: The payment was cancelled during authorisation.
PAYMENT_STATUS_EXECUTED: The payment has been successfully initiated and is considered complete.
PAYMENT_STATUS_ESTABLISHED: Indicates that the standing order has been successfully established. This state is only used for standing orders.
PAYMENT_STATUS_REJECTED: The payment was rejected by the financial institution.
Deprecated: These statuses will be removed in a future release.
PAYMENT_STATUS_UNKNOWN: The payment status is unknown.
PAYMENT_STATUS_PROCESSING: The payment is currently being processed. The payment will automatically exit this state when processing is complete.
PAYMENT_STATUS_COMPLETED: Indicates that the standing order has been successfully established. This state is only used for standing orders.
original_reference: Option<String>The original value of the reference when creating the payment.
adjusted_reference: Option<String>The value of the reference sent to the bank after adjustment to pass bank validation rules.
original_start_date: Option<String>The original value of the start_date provided during the creation of a standing order. If the payment is not a standing order, this field will be null.
adjusted_start_date: Option<String>The start date sent to the bank after adjusting for holidays or weekends. Will be provided in ISO 8601 format (YYYY-MM-DD). If the start date did not require adjustment, or if the payment is not a standing order, this field will be null.
timestamp: StringThe timestamp of the update, in ISO 8601 format, e.g. "2017-09-14T14:42:19.350Z"
error: Option<PlaidError>We use standard HTTP response codes for success and failure notifications, and our errors are further classified by error_type. In general, 200 HTTP codes correspond to success, 40X codes are for developer- or user-related failures, and 50X codes are for Plaid-related issues. Error fields will be null if no error has occurred.
Trait Implementations
sourceimpl Debug for PaymentStatusUpdateWebhook
impl Debug for PaymentStatusUpdateWebhook
sourceimpl<'de> Deserialize<'de> for PaymentStatusUpdateWebhook
impl<'de> Deserialize<'de> for PaymentStatusUpdateWebhook
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for PaymentStatusUpdateWebhook
impl Send for PaymentStatusUpdateWebhook
impl Sync for PaymentStatusUpdateWebhook
impl Unpin for PaymentStatusUpdateWebhook
impl UnwindSafe for PaymentStatusUpdateWebhook
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more