pub struct O2cDocuments {
pub so_number: String,
pub so_id: Uuid,
pub delivery_number: Option<String>,
pub delivery_id: Option<Uuid>,
pub invoice_number: Option<String>,
pub invoice_id: Option<Uuid>,
pub receipt_number: Option<String>,
pub receipt_id: Option<Uuid>,
pub customer_id: String,
pub company_code: String,
pub amount: Decimal,
pub currency: String,
}Expand description
O2C document references for event generation.
Fields§
§so_number: StringSales order number
so_id: UuidSales order UUID
delivery_number: Option<String>Delivery number
delivery_id: Option<Uuid>Delivery UUID
invoice_number: Option<String>Customer invoice number
invoice_id: Option<Uuid>Invoice UUID
receipt_number: Option<String>Receipt number
receipt_id: Option<Uuid>Receipt UUID
customer_id: StringCustomer ID
company_code: StringCompany code
amount: DecimalTotal amount
currency: StringCurrency
Implementations§
Source§impl O2cDocuments
impl O2cDocuments
Sourcepub fn new(
so_number: &str,
customer_id: &str,
company_code: &str,
amount: Decimal,
currency: &str,
) -> Self
pub fn new( so_number: &str, customer_id: &str, company_code: &str, amount: Decimal, currency: &str, ) -> Self
Create new O2C documents.
Sourcepub fn with_delivery(self, delivery_number: &str) -> Self
pub fn with_delivery(self, delivery_number: &str) -> Self
Set delivery info.
Sourcepub fn with_invoice(self, invoice_number: &str) -> Self
pub fn with_invoice(self, invoice_number: &str) -> Self
Set invoice info.
Sourcepub fn with_receipt(self, receipt_number: &str) -> Self
pub fn with_receipt(self, receipt_number: &str) -> Self
Set receipt info.
Trait Implementations§
Source§impl Clone for O2cDocuments
impl Clone for O2cDocuments
Source§fn clone(&self) -> O2cDocuments
fn clone(&self) -> O2cDocuments
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 moreAuto Trait Implementations§
impl Freeze for O2cDocuments
impl RefUnwindSafe for O2cDocuments
impl Send for O2cDocuments
impl Sync for O2cDocuments
impl Unpin for O2cDocuments
impl UnwindSafe for O2cDocuments
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