erpnext-queue-client 2.5.0 → 2.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/client.js +1 -1
  2. package/dist/erpnext/doctypeResourceRequest.d.ts +12 -1
  3. package/dist/erpnext/doctypeResourceRequest.js +3 -3
  4. package/dist/erpnext/doctypes/address.d.ts +3 -233
  5. package/dist/erpnext/doctypes/address.js +5 -16
  6. package/dist/erpnext/doctypes/consolidatedCustomsInvoice.d.ts +3 -486
  7. package/dist/erpnext/doctypes/consolidatedCustomsInvoice.js +4 -18
  8. package/dist/erpnext/doctypes/contact.d.ts +3 -358
  9. package/dist/erpnext/doctypes/contact.js +6 -17
  10. package/dist/erpnext/doctypes/deliveryNote.d.ts +1 -1575
  11. package/dist/erpnext/doctypes/deliveryNote.js +2 -19
  12. package/dist/erpnext/doctypes/item.d.ts +1 -1019
  13. package/dist/erpnext/doctypes/item.js +3 -16
  14. package/dist/erpnext/doctypes/paymentEntry.d.ts +1 -728
  15. package/dist/erpnext/doctypes/paymentEntry.js +4 -21
  16. package/dist/erpnext/doctypes/productBundle.d.ts +1 -143
  17. package/dist/erpnext/doctypes/productBundle.js +2 -13
  18. package/dist/erpnext/doctypes/purchaseInvoice.d.ts +1 -1395
  19. package/dist/erpnext/doctypes/purchaseInvoice.js +4 -19
  20. package/dist/erpnext/doctypes/purchaseReceipt.d.ts +1 -1204
  21. package/dist/erpnext/doctypes/purchaseReceipt.js +4 -19
  22. package/dist/erpnext/doctypes/salesInvoice.d.ts +1 -2517
  23. package/dist/erpnext/doctypes/salesInvoice.js +4 -21
  24. package/dist/erpnext/doctypes/servicecase.d.ts +24 -425
  25. package/dist/erpnext/doctypes/servicecase.js +14 -15
  26. package/dist/erpnext/doctypes/shipment.d.ts +3 -760
  27. package/dist/erpnext/doctypes/shipment.js +3 -20
  28. package/dist/erpnext/item.getList.alias-parsing.test.d.ts +1 -0
  29. package/dist/erpnext/item.getList.alias-parsing.test.js +66 -0
  30. package/dist/erpnext/model/Shipment.d.ts +4 -4
  31. package/dist/erpnext/model/Shipment.js +1 -1
  32. package/dist/index.test.js +3 -2
  33. package/dist/utils/zodUtils.js +14 -6
  34. package/package.json +1 -1
@@ -1,736 +1,9 @@
1
- import z from "zod";
2
1
  import { TemporalClient } from "../../client";
3
2
  import { ERPNextDoctypeSubmittableResourceRequest } from "../doctypeSubmittableResourceRequest";
4
3
  import { ERPNextMethodRequest } from "../methodRequest";
5
4
  import { PaymentEntry } from "../model/PaymentEntry";
6
- export declare class ERPNextPaymentEntry {
7
- protected temporalClient: TemporalClient;
8
- protected baseRequest: ERPNextDoctypeSubmittableResourceRequest<typeof PaymentEntry>;
5
+ export declare class ERPNextPaymentEntry extends ERPNextDoctypeSubmittableResourceRequest<typeof PaymentEntry> {
9
6
  protected methodRequest: ERPNextMethodRequest;
10
- getList: <TFieldOptions extends ("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "company" | "naming_series" | "posting_date" | "payment_type" | "payment_order_status" | "party_type" | "party" | "party_name" | "party_balance" | "paid_from" | "paid_from_account_type" | "paid_from_account_currency" | "paid_from_account_balance" | "paid_to" | "paid_to_account_type" | "paid_to_account_currency" | "paid_to_account_balance" | "paid_amount" | "paid_amount_after_tax" | "reference_no" | "reference_date") | ("status" | "amended_from" | "_user_tags" | "title" | "base_total_taxes_and_charges" | "total_taxes_and_charges" | "taxes" | "payment_number" | "internal_reference" | "mode_of_payment" | "custom_external_payment_method" | "source_exchange_rate" | "base_paid_amount" | "base_paid_amount_after_tax" | "received_amount" | "received_amount_after_tax" | "target_exchange_rate" | "base_received_amount" | "base_received_amount_after_tax" | "total_allocated_amount" | "base_total_allocated_amount" | "unallocated_amount" | "difference_amount" | "apply_tax_withholding_amount" | "custom_remarks" | "remarks" | "references" | "deductions"), TSelectedFields extends readonly ["*"] | readonly TFieldOptions[] | undefined = undefined, TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
11
- fields?: TSelectedFields;
12
- filters?: (string | string[])[][];
13
- skip?: number;
14
- limit?: number;
15
- priority?: number;
16
- asDict?: TAsDict;
17
- params?: Record<string, string>;
18
- }) => Promise<(TAsDict extends false ? string[][] : TSelectedFields extends undefined ? {
19
- name: string;
20
- }[] : TSelectedFields extends readonly ["*"] ? {
21
- docstatus: number;
22
- name: string;
23
- owner: string;
24
- creation: string;
25
- modified: string;
26
- modified_by: string;
27
- idx: number;
28
- company: string;
29
- naming_series: "PAY-.#" | "CART-.#";
30
- posting_date: string;
31
- payment_type: "Receive" | "Pay" | "Internal Transfer";
32
- payment_order_status: "Initiated" | "Payment Ordered";
33
- party_type: string;
34
- party: string;
35
- party_name: string;
36
- party_balance: number;
37
- paid_from: string;
38
- paid_from_account_type: string;
39
- paid_from_account_currency: string;
40
- paid_from_account_balance: number;
41
- paid_to: string;
42
- paid_to_account_type: string;
43
- paid_to_account_currency: string;
44
- paid_to_account_balance: number;
45
- paid_amount: number;
46
- paid_amount_after_tax: number;
47
- reference_no: string;
48
- reference_date: string;
49
- status?: string | undefined;
50
- amended_from?: string | null | undefined;
51
- _user_tags?: string | null | undefined;
52
- title?: string | undefined;
53
- base_total_taxes_and_charges?: number | undefined;
54
- total_taxes_and_charges?: number | undefined;
55
- taxes?: unknown[] | undefined;
56
- payment_number?: string | undefined;
57
- internal_reference?: string | undefined;
58
- mode_of_payment?: string | undefined;
59
- custom_external_payment_method?: string | undefined;
60
- source_exchange_rate?: number | undefined;
61
- base_paid_amount?: number | undefined;
62
- base_paid_amount_after_tax?: number | undefined;
63
- received_amount?: number | undefined;
64
- received_amount_after_tax?: number | undefined;
65
- target_exchange_rate?: number | undefined;
66
- base_received_amount?: number | undefined;
67
- base_received_amount_after_tax?: number | undefined;
68
- total_allocated_amount?: number | undefined;
69
- base_total_allocated_amount?: number | undefined;
70
- unallocated_amount?: number | undefined;
71
- difference_amount?: number | undefined;
72
- apply_tax_withholding_amount?: number | undefined;
73
- custom_remarks?: number | undefined;
74
- remarks?: string | undefined;
75
- references?: {
76
- docstatus: number;
77
- name: string;
78
- owner: string;
79
- creation: string;
80
- modified: string;
81
- modified_by: string;
82
- idx: number;
83
- doctype: string;
84
- parent: string;
85
- parenttype: string;
86
- parentfield: string;
87
- reference_doctype: string;
88
- reference_name: string;
89
- allocated_amount: number;
90
- _user_tags?: string | null | undefined;
91
- account_type?: string | null | undefined;
92
- payment_term?: string | null | undefined;
93
- payment_type?: string | null | undefined;
94
- total_amount?: number | null | undefined;
95
- outstanding_amount?: number | null | undefined;
96
- account?: string | null | undefined;
97
- payment_request?: string | null | undefined;
98
- }[] | undefined;
99
- deductions?: unknown[] | undefined;
100
- }[] : TSelectedFields extends readonly TFieldOptions[] ? { [K_1 in TSelectedFields[number] as K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1]: (K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1) extends ("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "company" | "naming_series" | "posting_date" | "payment_type" | "payment_order_status" | "party_type" | "party" | "party_name" | "party_balance" | "paid_from" | "paid_from_account_type" | "paid_from_account_currency" | "paid_from_account_balance" | "paid_to" | "paid_to_account_type" | "paid_to_account_currency" | "paid_to_account_balance" | "paid_amount" | "paid_amount_after_tax" | "reference_no" | "reference_date") | ("status" | "amended_from" | "_user_tags" | "title" | "base_total_taxes_and_charges" | "total_taxes_and_charges" | "taxes" | "payment_number" | "internal_reference" | "mode_of_payment" | "custom_external_payment_method" | "source_exchange_rate" | "base_paid_amount" | "base_paid_amount_after_tax" | "received_amount" | "received_amount_after_tax" | "target_exchange_rate" | "base_received_amount" | "base_received_amount_after_tax" | "total_allocated_amount" | "base_total_allocated_amount" | "unallocated_amount" | "difference_amount" | "apply_tax_withholding_amount" | "custom_remarks" | "remarks" | "references" | "deductions") ? {
101
- docstatus: number;
102
- name: string;
103
- owner: string;
104
- creation: string;
105
- modified: string;
106
- modified_by: string;
107
- idx: number;
108
- company: string;
109
- naming_series: "PAY-.#" | "CART-.#";
110
- posting_date: string;
111
- payment_type: "Receive" | "Pay" | "Internal Transfer";
112
- payment_order_status: "Initiated" | "Payment Ordered";
113
- party_type: string;
114
- party: string;
115
- party_name: string;
116
- party_balance: number;
117
- paid_from: string;
118
- paid_from_account_type: string;
119
- paid_from_account_currency: string;
120
- paid_from_account_balance: number;
121
- paid_to: string;
122
- paid_to_account_type: string;
123
- paid_to_account_currency: string;
124
- paid_to_account_balance: number;
125
- paid_amount: number;
126
- paid_amount_after_tax: number;
127
- reference_no: string;
128
- reference_date: string;
129
- status?: string | undefined;
130
- amended_from?: string | null | undefined;
131
- _user_tags?: string | null | undefined;
132
- title?: string | undefined;
133
- base_total_taxes_and_charges?: number | undefined;
134
- total_taxes_and_charges?: number | undefined;
135
- taxes?: unknown[] | undefined;
136
- payment_number?: string | undefined;
137
- internal_reference?: string | undefined;
138
- mode_of_payment?: string | undefined;
139
- custom_external_payment_method?: string | undefined;
140
- source_exchange_rate?: number | undefined;
141
- base_paid_amount?: number | undefined;
142
- base_paid_amount_after_tax?: number | undefined;
143
- received_amount?: number | undefined;
144
- received_amount_after_tax?: number | undefined;
145
- target_exchange_rate?: number | undefined;
146
- base_received_amount?: number | undefined;
147
- base_received_amount_after_tax?: number | undefined;
148
- total_allocated_amount?: number | undefined;
149
- base_total_allocated_amount?: number | undefined;
150
- unallocated_amount?: number | undefined;
151
- difference_amount?: number | undefined;
152
- apply_tax_withholding_amount?: number | undefined;
153
- custom_remarks?: number | undefined;
154
- remarks?: string | undefined;
155
- references?: {
156
- docstatus: number;
157
- name: string;
158
- owner: string;
159
- creation: string;
160
- modified: string;
161
- modified_by: string;
162
- idx: number;
163
- doctype: string;
164
- parent: string;
165
- parenttype: string;
166
- parentfield: string;
167
- reference_doctype: string;
168
- reference_name: string;
169
- allocated_amount: number;
170
- _user_tags?: string | null | undefined;
171
- account_type?: string | null | undefined;
172
- payment_term?: string | null | undefined;
173
- payment_type?: string | null | undefined;
174
- total_amount?: number | null | undefined;
175
- outstanding_amount?: number | null | undefined;
176
- account?: string | null | undefined;
177
- payment_request?: string | null | undefined;
178
- }[] | undefined;
179
- deductions?: unknown[] | undefined;
180
- }[(("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "company" | "naming_series" | "posting_date" | "payment_type" | "payment_order_status" | "party_type" | "party" | "party_name" | "party_balance" | "paid_from" | "paid_from_account_type" | "paid_from_account_currency" | "paid_from_account_balance" | "paid_to" | "paid_to_account_type" | "paid_to_account_currency" | "paid_to_account_balance" | "paid_amount" | "paid_amount_after_tax" | "reference_no" | "reference_date") | ("status" | "amended_from" | "_user_tags" | "title" | "base_total_taxes_and_charges" | "total_taxes_and_charges" | "taxes" | "payment_number" | "internal_reference" | "mode_of_payment" | "custom_external_payment_method" | "source_exchange_rate" | "base_paid_amount" | "base_paid_amount_after_tax" | "received_amount" | "received_amount_after_tax" | "target_exchange_rate" | "base_received_amount" | "base_received_amount_after_tax" | "total_allocated_amount" | "base_total_allocated_amount" | "unallocated_amount" | "difference_amount" | "apply_tax_withholding_amount" | "custom_remarks" | "remarks" | "references" | "deductions")) & (K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1)] : never; }[] : any) extends infer T ? { [K in keyof T]: T[K]; } : never>;
181
- getById: ({ resourceId, priority, }: {
182
- resourceId: string;
183
- priority?: number;
184
- }) => Promise<{
185
- docstatus: number;
186
- name: string;
187
- owner: string;
188
- creation: string;
189
- modified: string;
190
- modified_by: string;
191
- idx: number;
192
- doctype: string;
193
- company: string;
194
- naming_series: "PAY-.#" | "CART-.#";
195
- posting_date: string;
196
- payment_type: "Receive" | "Pay" | "Internal Transfer";
197
- payment_order_status: "Initiated" | "Payment Ordered";
198
- party_type: string;
199
- party: string;
200
- party_name: string;
201
- party_balance: number;
202
- paid_from: string;
203
- paid_from_account_type: string;
204
- paid_from_account_currency: string;
205
- paid_from_account_balance: number;
206
- paid_to: string;
207
- paid_to_account_type: string;
208
- paid_to_account_currency: string;
209
- paid_to_account_balance: number;
210
- paid_amount: number;
211
- paid_amount_after_tax: number;
212
- reference_no: string;
213
- reference_date: string;
214
- status?: string | undefined;
215
- amended_from?: string | null | undefined;
216
- _user_tags?: string | null | undefined;
217
- title?: string | undefined;
218
- base_total_taxes_and_charges?: number | undefined;
219
- total_taxes_and_charges?: number | undefined;
220
- taxes?: unknown[] | undefined;
221
- payment_number?: string | undefined;
222
- internal_reference?: string | undefined;
223
- mode_of_payment?: string | undefined;
224
- custom_external_payment_method?: string | undefined;
225
- source_exchange_rate?: number | undefined;
226
- base_paid_amount?: number | undefined;
227
- base_paid_amount_after_tax?: number | undefined;
228
- received_amount?: number | undefined;
229
- received_amount_after_tax?: number | undefined;
230
- target_exchange_rate?: number | undefined;
231
- base_received_amount?: number | undefined;
232
- base_received_amount_after_tax?: number | undefined;
233
- total_allocated_amount?: number | undefined;
234
- base_total_allocated_amount?: number | undefined;
235
- unallocated_amount?: number | undefined;
236
- difference_amount?: number | undefined;
237
- apply_tax_withholding_amount?: number | undefined;
238
- custom_remarks?: number | undefined;
239
- remarks?: string | undefined;
240
- references?: {
241
- docstatus: number;
242
- name: string;
243
- owner: string;
244
- creation: string;
245
- modified: string;
246
- modified_by: string;
247
- idx: number;
248
- doctype: string;
249
- parent: string;
250
- parenttype: string;
251
- parentfield: string;
252
- reference_doctype: string;
253
- reference_name: string;
254
- allocated_amount: number;
255
- _user_tags?: string | null | undefined;
256
- account_type?: string | null | undefined;
257
- payment_term?: string | null | undefined;
258
- payment_type?: string | null | undefined;
259
- total_amount?: number | null | undefined;
260
- outstanding_amount?: number | null | undefined;
261
- account?: string | null | undefined;
262
- payment_request?: string | null | undefined;
263
- }[] | undefined;
264
- deductions?: unknown[] | undefined;
265
- } | undefined>;
266
- create: <TInput extends TInputModel extends undefined ? {
267
- naming_series: "PAY-.#" | "CART-.#";
268
- payment_type: "Receive" | "Pay" | "Internal Transfer";
269
- party_type: string;
270
- party: string;
271
- paid_amount: number;
272
- reference_no: string;
273
- reference_date: string;
274
- status?: string | undefined;
275
- docstatus?: number | undefined;
276
- amended_from?: string | null | undefined;
277
- company?: string | undefined;
278
- posting_date?: string | undefined;
279
- title?: string | undefined;
280
- base_total_taxes_and_charges?: number | undefined;
281
- total_taxes_and_charges?: number | undefined;
282
- taxes?: unknown[] | undefined;
283
- payment_number?: string | undefined;
284
- payment_order_status?: "Initiated" | "Payment Ordered" | undefined;
285
- internal_reference?: string | undefined;
286
- mode_of_payment?: string | undefined;
287
- custom_external_payment_method?: string | undefined;
288
- party_name?: string | undefined;
289
- party_balance?: number | undefined;
290
- paid_from?: string | undefined;
291
- paid_from_account_type?: string | undefined;
292
- paid_from_account_currency?: string | undefined;
293
- paid_from_account_balance?: number | undefined;
294
- paid_to?: string | undefined;
295
- paid_to_account_type?: string | undefined;
296
- paid_to_account_currency?: string | undefined;
297
- paid_to_account_balance?: number | undefined;
298
- paid_amount_after_tax?: number | undefined;
299
- source_exchange_rate?: number | undefined;
300
- base_paid_amount?: number | undefined;
301
- base_paid_amount_after_tax?: number | undefined;
302
- received_amount?: number | undefined;
303
- received_amount_after_tax?: number | undefined;
304
- target_exchange_rate?: number | undefined;
305
- base_received_amount?: number | undefined;
306
- base_received_amount_after_tax?: number | undefined;
307
- total_allocated_amount?: number | undefined;
308
- base_total_allocated_amount?: number | undefined;
309
- unallocated_amount?: number | undefined;
310
- difference_amount?: number | undefined;
311
- apply_tax_withholding_amount?: number | undefined;
312
- custom_remarks?: number | undefined;
313
- remarks?: string | undefined;
314
- references?: {
315
- reference_doctype: string;
316
- reference_name: string;
317
- allocated_amount: number;
318
- account_type?: string | null | undefined;
319
- payment_term?: string | null | undefined;
320
- payment_type?: string | null | undefined;
321
- total_amount?: number | null | undefined;
322
- outstanding_amount?: number | null | undefined;
323
- account?: string | null | undefined;
324
- payment_request?: string | null | undefined;
325
- }[] | undefined;
326
- deductions?: unknown[] | undefined;
327
- } : TInputModel extends z.ZodTypeAny ? z.TypeOf<TInputModel> : any, TInputModel extends z.ZodTypeAny | undefined = undefined>({ inputValidationModel, body, params, priority, }: {
328
- inputValidationModel?: TInputModel;
329
- body: TInput;
330
- params?: Record<string, string>;
331
- priority?: number;
332
- }) => Promise<{
333
- docstatus: number;
334
- name: string;
335
- owner: string;
336
- creation: string;
337
- modified: string;
338
- modified_by: string;
339
- idx: number;
340
- doctype: string;
341
- company: string;
342
- naming_series: "PAY-.#" | "CART-.#";
343
- posting_date: string;
344
- payment_type: "Receive" | "Pay" | "Internal Transfer";
345
- payment_order_status: "Initiated" | "Payment Ordered";
346
- party_type: string;
347
- party: string;
348
- party_name: string;
349
- party_balance: number;
350
- paid_from: string;
351
- paid_from_account_type: string;
352
- paid_from_account_currency: string;
353
- paid_from_account_balance: number;
354
- paid_to: string;
355
- paid_to_account_type: string;
356
- paid_to_account_currency: string;
357
- paid_to_account_balance: number;
358
- paid_amount: number;
359
- paid_amount_after_tax: number;
360
- reference_no: string;
361
- reference_date: string;
362
- status?: string | undefined;
363
- amended_from?: string | null | undefined;
364
- _user_tags?: string | null | undefined;
365
- title?: string | undefined;
366
- base_total_taxes_and_charges?: number | undefined;
367
- total_taxes_and_charges?: number | undefined;
368
- taxes?: unknown[] | undefined;
369
- payment_number?: string | undefined;
370
- internal_reference?: string | undefined;
371
- mode_of_payment?: string | undefined;
372
- custom_external_payment_method?: string | undefined;
373
- source_exchange_rate?: number | undefined;
374
- base_paid_amount?: number | undefined;
375
- base_paid_amount_after_tax?: number | undefined;
376
- received_amount?: number | undefined;
377
- received_amount_after_tax?: number | undefined;
378
- target_exchange_rate?: number | undefined;
379
- base_received_amount?: number | undefined;
380
- base_received_amount_after_tax?: number | undefined;
381
- total_allocated_amount?: number | undefined;
382
- base_total_allocated_amount?: number | undefined;
383
- unallocated_amount?: number | undefined;
384
- difference_amount?: number | undefined;
385
- apply_tax_withholding_amount?: number | undefined;
386
- custom_remarks?: number | undefined;
387
- remarks?: string | undefined;
388
- references?: {
389
- docstatus: number;
390
- name: string;
391
- owner: string;
392
- creation: string;
393
- modified: string;
394
- modified_by: string;
395
- idx: number;
396
- doctype: string;
397
- parent: string;
398
- parenttype: string;
399
- parentfield: string;
400
- reference_doctype: string;
401
- reference_name: string;
402
- allocated_amount: number;
403
- _user_tags?: string | null | undefined;
404
- account_type?: string | null | undefined;
405
- payment_term?: string | null | undefined;
406
- payment_type?: string | null | undefined;
407
- total_amount?: number | null | undefined;
408
- outstanding_amount?: number | null | undefined;
409
- account?: string | null | undefined;
410
- payment_request?: string | null | undefined;
411
- }[] | undefined;
412
- deductions?: unknown[] | undefined;
413
- }>;
414
- updateById: <TInput extends TInputModel extends undefined ? Partial<{
415
- naming_series: "PAY-.#" | "CART-.#";
416
- payment_type: "Receive" | "Pay" | "Internal Transfer";
417
- party_type: string;
418
- party: string;
419
- paid_amount: number;
420
- reference_no: string;
421
- reference_date: string;
422
- status?: string | undefined;
423
- docstatus?: number | undefined;
424
- amended_from?: string | null | undefined;
425
- company?: string | undefined;
426
- posting_date?: string | undefined;
427
- title?: string | undefined;
428
- base_total_taxes_and_charges?: number | undefined;
429
- total_taxes_and_charges?: number | undefined;
430
- taxes?: unknown[] | undefined;
431
- payment_number?: string | undefined;
432
- payment_order_status?: "Initiated" | "Payment Ordered" | undefined;
433
- internal_reference?: string | undefined;
434
- mode_of_payment?: string | undefined;
435
- custom_external_payment_method?: string | undefined;
436
- party_name?: string | undefined;
437
- party_balance?: number | undefined;
438
- paid_from?: string | undefined;
439
- paid_from_account_type?: string | undefined;
440
- paid_from_account_currency?: string | undefined;
441
- paid_from_account_balance?: number | undefined;
442
- paid_to?: string | undefined;
443
- paid_to_account_type?: string | undefined;
444
- paid_to_account_currency?: string | undefined;
445
- paid_to_account_balance?: number | undefined;
446
- paid_amount_after_tax?: number | undefined;
447
- source_exchange_rate?: number | undefined;
448
- base_paid_amount?: number | undefined;
449
- base_paid_amount_after_tax?: number | undefined;
450
- received_amount?: number | undefined;
451
- received_amount_after_tax?: number | undefined;
452
- target_exchange_rate?: number | undefined;
453
- base_received_amount?: number | undefined;
454
- base_received_amount_after_tax?: number | undefined;
455
- total_allocated_amount?: number | undefined;
456
- base_total_allocated_amount?: number | undefined;
457
- unallocated_amount?: number | undefined;
458
- difference_amount?: number | undefined;
459
- apply_tax_withholding_amount?: number | undefined;
460
- custom_remarks?: number | undefined;
461
- remarks?: string | undefined;
462
- references?: {
463
- reference_doctype: string;
464
- reference_name: string;
465
- allocated_amount: number;
466
- account_type?: string | null | undefined;
467
- payment_term?: string | null | undefined;
468
- payment_type?: string | null | undefined;
469
- total_amount?: number | null | undefined;
470
- outstanding_amount?: number | null | undefined;
471
- account?: string | null | undefined;
472
- payment_request?: string | null | undefined;
473
- }[] | undefined;
474
- deductions?: unknown[] | undefined;
475
- }> : TInputModel extends z.ZodTypeAny ? z.TypeOf<TInputModel> : any, TInputModel extends z.ZodTypeAny | undefined = undefined>({ resourceId, inputValidationModel, body, priority, }: {
476
- resourceId: string;
477
- inputValidationModel?: TInputModel;
478
- priority?: number;
479
- body: TInput;
480
- }) => Promise<{
481
- docstatus: number;
482
- name: string;
483
- owner: string;
484
- creation: string;
485
- modified: string;
486
- modified_by: string;
487
- idx: number;
488
- doctype: string;
489
- company: string;
490
- naming_series: "PAY-.#" | "CART-.#";
491
- posting_date: string;
492
- payment_type: "Receive" | "Pay" | "Internal Transfer";
493
- payment_order_status: "Initiated" | "Payment Ordered";
494
- party_type: string;
495
- party: string;
496
- party_name: string;
497
- party_balance: number;
498
- paid_from: string;
499
- paid_from_account_type: string;
500
- paid_from_account_currency: string;
501
- paid_from_account_balance: number;
502
- paid_to: string;
503
- paid_to_account_type: string;
504
- paid_to_account_currency: string;
505
- paid_to_account_balance: number;
506
- paid_amount: number;
507
- paid_amount_after_tax: number;
508
- reference_no: string;
509
- reference_date: string;
510
- status?: string | undefined;
511
- amended_from?: string | null | undefined;
512
- _user_tags?: string | null | undefined;
513
- title?: string | undefined;
514
- base_total_taxes_and_charges?: number | undefined;
515
- total_taxes_and_charges?: number | undefined;
516
- taxes?: unknown[] | undefined;
517
- payment_number?: string | undefined;
518
- internal_reference?: string | undefined;
519
- mode_of_payment?: string | undefined;
520
- custom_external_payment_method?: string | undefined;
521
- source_exchange_rate?: number | undefined;
522
- base_paid_amount?: number | undefined;
523
- base_paid_amount_after_tax?: number | undefined;
524
- received_amount?: number | undefined;
525
- received_amount_after_tax?: number | undefined;
526
- target_exchange_rate?: number | undefined;
527
- base_received_amount?: number | undefined;
528
- base_received_amount_after_tax?: number | undefined;
529
- total_allocated_amount?: number | undefined;
530
- base_total_allocated_amount?: number | undefined;
531
- unallocated_amount?: number | undefined;
532
- difference_amount?: number | undefined;
533
- apply_tax_withholding_amount?: number | undefined;
534
- custom_remarks?: number | undefined;
535
- remarks?: string | undefined;
536
- references?: {
537
- docstatus: number;
538
- name: string;
539
- owner: string;
540
- creation: string;
541
- modified: string;
542
- modified_by: string;
543
- idx: number;
544
- doctype: string;
545
- parent: string;
546
- parenttype: string;
547
- parentfield: string;
548
- reference_doctype: string;
549
- reference_name: string;
550
- allocated_amount: number;
551
- _user_tags?: string | null | undefined;
552
- account_type?: string | null | undefined;
553
- payment_term?: string | null | undefined;
554
- payment_type?: string | null | undefined;
555
- total_amount?: number | null | undefined;
556
- outstanding_amount?: number | null | undefined;
557
- account?: string | null | undefined;
558
- payment_request?: string | null | undefined;
559
- }[] | undefined;
560
- deductions?: unknown[] | undefined;
561
- }>;
562
- deleteById: ({ resourceId, priority, }: {
563
- resourceId: string;
564
- priority?: number;
565
- }) => Promise<z.TypeOf<typeof import("../model/ERPNextResponse").DeleteResponseModel>>;
566
- cancel: ({ resourceId, }: {
567
- resourceId: string;
568
- }) => Promise<{
569
- docstatus: number;
570
- name: string;
571
- owner: string;
572
- creation: string;
573
- modified: string;
574
- modified_by: string;
575
- idx: number;
576
- doctype: string;
577
- company: string;
578
- naming_series: "PAY-.#" | "CART-.#";
579
- posting_date: string;
580
- payment_type: "Receive" | "Pay" | "Internal Transfer";
581
- payment_order_status: "Initiated" | "Payment Ordered";
582
- party_type: string;
583
- party: string;
584
- party_name: string;
585
- party_balance: number;
586
- paid_from: string;
587
- paid_from_account_type: string;
588
- paid_from_account_currency: string;
589
- paid_from_account_balance: number;
590
- paid_to: string;
591
- paid_to_account_type: string;
592
- paid_to_account_currency: string;
593
- paid_to_account_balance: number;
594
- paid_amount: number;
595
- paid_amount_after_tax: number;
596
- reference_no: string;
597
- reference_date: string;
598
- status?: string | undefined;
599
- amended_from?: string | null | undefined;
600
- _user_tags?: string | null | undefined;
601
- title?: string | undefined;
602
- base_total_taxes_and_charges?: number | undefined;
603
- total_taxes_and_charges?: number | undefined;
604
- taxes?: unknown[] | undefined;
605
- payment_number?: string | undefined;
606
- internal_reference?: string | undefined;
607
- mode_of_payment?: string | undefined;
608
- custom_external_payment_method?: string | undefined;
609
- source_exchange_rate?: number | undefined;
610
- base_paid_amount?: number | undefined;
611
- base_paid_amount_after_tax?: number | undefined;
612
- received_amount?: number | undefined;
613
- received_amount_after_tax?: number | undefined;
614
- target_exchange_rate?: number | undefined;
615
- base_received_amount?: number | undefined;
616
- base_received_amount_after_tax?: number | undefined;
617
- total_allocated_amount?: number | undefined;
618
- base_total_allocated_amount?: number | undefined;
619
- unallocated_amount?: number | undefined;
620
- difference_amount?: number | undefined;
621
- apply_tax_withholding_amount?: number | undefined;
622
- custom_remarks?: number | undefined;
623
- remarks?: string | undefined;
624
- references?: {
625
- docstatus: number;
626
- name: string;
627
- owner: string;
628
- creation: string;
629
- modified: string;
630
- modified_by: string;
631
- idx: number;
632
- doctype: string;
633
- parent: string;
634
- parenttype: string;
635
- parentfield: string;
636
- reference_doctype: string;
637
- reference_name: string;
638
- allocated_amount: number;
639
- _user_tags?: string | null | undefined;
640
- account_type?: string | null | undefined;
641
- payment_term?: string | null | undefined;
642
- payment_type?: string | null | undefined;
643
- total_amount?: number | null | undefined;
644
- outstanding_amount?: number | null | undefined;
645
- account?: string | null | undefined;
646
- payment_request?: string | null | undefined;
647
- }[] | undefined;
648
- deductions?: unknown[] | undefined;
649
- }>;
650
- submit: ({ resourceId, }: {
651
- resourceId: string;
652
- }) => Promise<{
653
- docstatus: number;
654
- name: string;
655
- owner: string;
656
- creation: string;
657
- modified: string;
658
- modified_by: string;
659
- idx: number;
660
- doctype: string;
661
- company: string;
662
- naming_series: "PAY-.#" | "CART-.#";
663
- posting_date: string;
664
- payment_type: "Receive" | "Pay" | "Internal Transfer";
665
- payment_order_status: "Initiated" | "Payment Ordered";
666
- party_type: string;
667
- party: string;
668
- party_name: string;
669
- party_balance: number;
670
- paid_from: string;
671
- paid_from_account_type: string;
672
- paid_from_account_currency: string;
673
- paid_from_account_balance: number;
674
- paid_to: string;
675
- paid_to_account_type: string;
676
- paid_to_account_currency: string;
677
- paid_to_account_balance: number;
678
- paid_amount: number;
679
- paid_amount_after_tax: number;
680
- reference_no: string;
681
- reference_date: string;
682
- status?: string | undefined;
683
- amended_from?: string | null | undefined;
684
- _user_tags?: string | null | undefined;
685
- title?: string | undefined;
686
- base_total_taxes_and_charges?: number | undefined;
687
- total_taxes_and_charges?: number | undefined;
688
- taxes?: unknown[] | undefined;
689
- payment_number?: string | undefined;
690
- internal_reference?: string | undefined;
691
- mode_of_payment?: string | undefined;
692
- custom_external_payment_method?: string | undefined;
693
- source_exchange_rate?: number | undefined;
694
- base_paid_amount?: number | undefined;
695
- base_paid_amount_after_tax?: number | undefined;
696
- received_amount?: number | undefined;
697
- received_amount_after_tax?: number | undefined;
698
- target_exchange_rate?: number | undefined;
699
- base_received_amount?: number | undefined;
700
- base_received_amount_after_tax?: number | undefined;
701
- total_allocated_amount?: number | undefined;
702
- base_total_allocated_amount?: number | undefined;
703
- unallocated_amount?: number | undefined;
704
- difference_amount?: number | undefined;
705
- apply_tax_withholding_amount?: number | undefined;
706
- custom_remarks?: number | undefined;
707
- remarks?: string | undefined;
708
- references?: {
709
- docstatus: number;
710
- name: string;
711
- owner: string;
712
- creation: string;
713
- modified: string;
714
- modified_by: string;
715
- idx: number;
716
- doctype: string;
717
- parent: string;
718
- parenttype: string;
719
- parentfield: string;
720
- reference_doctype: string;
721
- reference_name: string;
722
- allocated_amount: number;
723
- _user_tags?: string | null | undefined;
724
- account_type?: string | null | undefined;
725
- payment_term?: string | null | undefined;
726
- payment_type?: string | null | undefined;
727
- total_amount?: number | null | undefined;
728
- outstanding_amount?: number | null | undefined;
729
- account?: string | null | undefined;
730
- payment_request?: string | null | undefined;
731
- }[] | undefined;
732
- deductions?: unknown[] | undefined;
733
- }>;
734
7
  constructor(temporalClient: TemporalClient);
735
8
  createPaymentEntryDraftFromSalesOrder(salesOrderName: string): Promise<{
736
9
  naming_series: "PAY-.#" | "CART-.#";