Update the capture response structures

This commit is contained in:
Pro 2022-09-21 19:21:19 +02:00
parent d044a639e0
commit 214893e40f

View file

@ -716,13 +716,27 @@ pub struct WalletResponse {
pub apple_pay: CardResponse, pub apple_pay: CardResponse,
} }
/// The paypal account used to fund the transaction.
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct PaypalPaymentSourceResponse {
/// The name of the payer.
pub name: PayerName,
/// The email address of the payer.
pub email_address: String,
/// The account id of the payer.
pub account_id: String,
}
/// The payment source used to fund the payment. /// The payment source used to fund the payment.
#[derive(Debug, Serialize, Deserialize)] #[derive(Debug, Serialize, Deserialize)]
pub struct PaymentSourceResponse { pub struct PaymentSourceResponse {
/// The payment card to use to fund a payment. Card can be a credit or debit card /// The payment card to use to fund a payment. Card can be a credit or debit card
pub card: CardResponse, pub card: Option<CardResponse>,
/// The customer's wallet used to fund the transaction. /// The customer's wallet used to fund the transaction.
pub wallet: WalletResponse, pub wallet: Option<WalletResponse>,
/// The paypal account used to fund the transaction.
pub paypal: Option<PaypalPaymentSourceResponse>,
} }
/// The status of an order. /// The status of an order.