pub struct PaymentRunConfig {
pub company_codes: Vec<String>,
pub payment_methods: Vec<APPaymentMethod>,
pub due_date_cutoff: NaiveDate,
pub include_discount_items: bool,
pub discount_date_cutoff: Option<NaiveDate>,
pub max_amount_per_vendor: Option<Decimal>,
pub min_payment_amount: Decimal,
pub exclude_blocked: bool,
pub vendor_filter: Vec<String>,
}Expand description
Payment run configuration.
Fields§
§company_codes: Vec<String>Company codes to include.
payment_methods: Vec<APPaymentMethod>Payment methods to use.
due_date_cutoff: NaiveDateDue date cutoff (pay items due by this date).
include_discount_items: boolInclude discount items (pay early for discount).
discount_date_cutoff: Option<NaiveDate>Discount date cutoff.
max_amount_per_vendor: Option<Decimal>Maximum payment amount per vendor.
min_payment_amount: DecimalMinimum payment amount.
exclude_blocked: boolExclude blocked items.
vendor_filter: Vec<String>Vendor filter (if empty, all vendors).
Trait Implementations§
Source§impl Clone for PaymentRunConfig
impl Clone for PaymentRunConfig
Source§fn clone(&self) -> PaymentRunConfig
fn clone(&self) -> PaymentRunConfig
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 PaymentRunConfig
impl Debug for PaymentRunConfig
Source§impl Default for PaymentRunConfig
impl Default for PaymentRunConfig
Source§impl<'de> Deserialize<'de> for PaymentRunConfig
impl<'de> Deserialize<'de> for PaymentRunConfig
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 PaymentRunConfig
impl RefUnwindSafe for PaymentRunConfig
impl Send for PaymentRunConfig
impl Sync for PaymentRunConfig
impl Unpin for PaymentRunConfig
impl UnwindSafe for PaymentRunConfig
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