paypal_rust/resources/seller_recievable_breakdown.rs
1use crate::resources::exchange_rate::ExchangeRate;
2use crate::resources::money::Money;
3use crate::resources::platform_fee::PlatformFee;
4use serde::{Deserialize, Serialize};
5use serde_with::skip_serializing_none;
6
7#[skip_serializing_none]
8#[derive(Clone, Debug, Default, Deserialize, Serialize)]
9pub struct SellerReceivableBreakdown {
10 /// The amount for this captured payment in the currency of the transaction.
11 pub gross_amount: Money,
12
13 /// The applicable fee for this captured payment in the currency of the transaction.
14 pub paypal_fee: Option<Money>,
15
16 /// The applicable fee for this captured payment in the receivable currency. Returned only in cases the fee is charged in the receivable
17 /// currency. Example 'CNY'.
18 pub paypal_fee_in_receivable_currency: Option<Money>,
19
20 /// The net amount that the payee receives for this captured payment in their PayPal account. The net amount is computed as gross_amount
21 /// minus the paypal_fee minus the platform_fees.
22 pub net_amount: Option<Money>,
23
24 /// The net amount that is credited to the payee's PayPal account. Returned only when the currency of the captured payment is different
25 /// from the currency of the PayPal account where the payee wants to credit the funds. The amount is computed as net_amount times
26 /// exchange_rate.
27 pub receivable_amount: Option<Money>,
28
29 /// The exchange rate that determines the amount that is credited to the payee's PayPal account. Returned when the currency of the
30 /// captured payment is different from the currency of the PayPal account where the payee wants to credit the funds.
31 pub exchange_rate: Option<ExchangeRate>,
32
33 /// An array of platform or partner fees, commissions, or brokerage fees that associated with the captured payment.
34 pub platform_fees: Option<Vec<PlatformFee>>,
35}