pub struct TransactionPaymentAttempt {
pub payment_attempt_id: String,
pub stored_payment_method_id: String,
pub payment_method_id: Option<PaymentMethodID>,
pub amount: String,
pub status: PaymentAttemptStatus,
pub error_code: Option<ErrorCode>,
pub method_details: MethodDetails,
pub created_at: String,
pub captured_at: Option<DateTime<FixedOffset>>,
}
Fields§
§payment_attempt_id: String
UUID for this payment attempt.
stored_payment_method_id: String
UUID for the stored payment method used for this payment attempt. Deprecated - use payment_method_id
instead.
payment_method_id: Option<PaymentMethodID>
Paddle ID of the payment method used for this payment attempt, prefixed with paymtd_
.
amount: String
Amount for collection in the lowest denomination of a currency (e.g. cents for USD).
status: PaymentAttemptStatus
Status of this payment attempt.
error_code: Option<ErrorCode>
Reason why a payment attempt failed. Returns null
if payment captured successfully.
method_details: MethodDetails
Information about the payment method used for a payment attempt.
created_at: String
RFC 3339 datetime string of when this entity was created. Set automatically by Paddle.
captured_at: Option<DateTime<FixedOffset>>
RFC 3339 datetime string of when this payment was captured. null
if status
is not captured
.
Trait Implementations§
Source§impl Clone for TransactionPaymentAttempt
impl Clone for TransactionPaymentAttempt
Source§fn clone(&self) -> TransactionPaymentAttempt
fn clone(&self) -> TransactionPaymentAttempt
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 Debug for TransactionPaymentAttempt
impl Debug for TransactionPaymentAttempt
Source§impl<'de> Deserialize<'de> for TransactionPaymentAttempt
impl<'de> Deserialize<'de> for TransactionPaymentAttempt
Source§fn 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 Freeze for TransactionPaymentAttempt
impl RefUnwindSafe for TransactionPaymentAttempt
impl Send for TransactionPaymentAttempt
impl Sync for TransactionPaymentAttempt
impl Unpin for TransactionPaymentAttempt
impl UnwindSafe for TransactionPaymentAttempt
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