pub struct Refund {
pub amount: Option<i32>,
pub business_id: String,
pub created_at: String,
pub currency: Option<Currency>,
pub customer: Box<CustomerLimitedDetailsResponse>,
pub is_partial: bool,
pub metadata: HashMap<String, String>,
pub payment_id: String,
pub reason: Option<String>,
pub refund_id: String,
pub status: RefundStatus,
pub payload_type: PayloadType,
}Fields§
§amount: Option<i32>The refunded amount.
business_id: StringThe unique identifier of the business issuing the refund.
created_at: StringThe timestamp of when the refund was created in UTC.
currency: Option<Currency>The currency of the refund, represented as an ISO 4217 currency code.
customer: Box<CustomerLimitedDetailsResponse>Details about the customer for this refund (from the associated payment)
is_partial: boolIf true the refund is a partial refund
metadata: HashMap<String, String>Additional metadata stored with the refund.
payment_id: StringThe unique identifier of the payment associated with the refund.
reason: Option<String>The reason provided for the refund, if any. Optional.
refund_id: StringThe unique identifier of the refund.
status: RefundStatusThe current status of the refund.
payload_type: PayloadTypeImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Refund
impl<'de> Deserialize<'de> for Refund
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
impl StructuralPartialEq for Refund
Auto Trait Implementations§
impl Freeze for Refund
impl RefUnwindSafe for Refund
impl Send for Refund
impl Sync for Refund
impl Unpin for Refund
impl UnsafeUnpin for Refund
impl UnwindSafe for Refund
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