import Space from '../../lib/Space'; import { IG2Order, IG2OrderItem } from '../../Interfaces/G2'; import { Writeable } from '../../utils/object'; import { PartialG2Item } from './utils'; export default class G2OrderSlip { protected _data: Writeable; protected _space: Space; protected _orgId: string; constructor(space: Space, orgId: string); private _getDefaultData; private _getNextItemIndex; setNoClient: (noClient: string) => void; setNoProvinceTaxation: (noProvinceTaxation: string) => void; setCondition: (condition: string) => void; setNoRepresentant: (noRepresentant: string) => void; setNotes: (notes: string, overrideExisting?: boolean) => void; setDescription: (description: string | null) => void; setDate: (date: Date | null) => void; setNoCommDuClient: (noCommDuClient: string | null) => void; setVenduA: (vendua: string | null) => void; setLivreaNom: (livreaNom: string | null) => void; setLivreaDepartement: (livreaDepartement: string | null) => void; setLivreaTelephone: (livreaTelephone: string | null) => void; setLivreaAdresse: (livreaAdresse: string | null) => void; setLivreaVille: (livreaVille: string | null) => void; setLivreaProvince: (livreaProvince: string | null) => void; setLivreaCodePostal: (livreaCodePostal: string | null) => void; setLivreaPays: (livreaPays: string | null) => void; setCommandePar: (commandePar: string | null) => void; setTransport: (transport: string | null) => void; setDateRequis: (dateRequis: Date | null) => void; setJoursEcheance: (joursEcheance: number | null) => void; setJoursReglementAnticipe: (joursReglementAnticipe: number | null) => void; setPourcEscReglementAnticipe: (pourcEscReglementAnticipe: number | null) => void; setDateAnnulation: (dateAnnulation: Date | null) => void; setDetails: (details: IG2OrderItem[]) => void; setLibre: (libre: string | null, libreNumber: 1 | 2 | 3) => void; setNoteDeCredit: (valeur: boolean) => void; data: () => Writeable; /** * Receives a partial g2Item, and adds */ addItemLineToOrder: (g2Item: PartialG2Item, internalMsgForItem?: string) => void; /** * Save local data as G2 Order. Returns G2 order number generated if successful * @throws Will throw an error string if G2 */ saveToG2: (isTest?: boolean) => Promise; }