paypal_rust/resources/
payment_instruction.rs

1use crate::resources::enums::disembursement_mode::DisbursementMode;
2use crate::resources::platform_fee::PlatformFee;
3use serde::{Deserialize, Serialize};
4
5#[derive(Clone, Debug, Default, Deserialize, Serialize)]
6pub struct PaymentInstruction {
7    /// An array of various fees, commissions, tips, or donations. This field is only applicable to merchants that been enabled for PayPal
8    /// Commerce Platform for Marketplaces and Platforms capability.
9    pub platform_fees: Vec<PlatformFee>,
10
11    /// The funds that are held on behalf of the merchant.
12    pub disbursement_mode: DisbursementMode,
13
14    pub payee_pricing_tier_id: String,
15}