@erp-galoper/types 1.0.104 → 1.0.106
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.
- package/openapi.ts +207 -70
- package/package.json +1 -1
package/openapi.ts
CHANGED
|
@@ -26489,7 +26489,7 @@ export interface components {
|
|
|
26489
26489
|
/**
|
|
26490
26490
|
* Id
|
|
26491
26491
|
* Format: uuid
|
|
26492
|
-
* @example
|
|
26492
|
+
* @example c90dc494-7467-4681-9e84-bb4ef6f331f9
|
|
26493
26493
|
*/
|
|
26494
26494
|
id: string;
|
|
26495
26495
|
/**
|
|
@@ -30253,44 +30253,37 @@ export interface components {
|
|
|
30253
30253
|
ChangedFields: "amount" | "companyAmount" | "usdAmount" | "companyRate" | "usdRate" | "accountNumber";
|
|
30254
30254
|
/** PaymentsSchema */
|
|
30255
30255
|
PaymentsSchema: {
|
|
30256
|
+
/**
|
|
30257
|
+
* Closingcommissionid
|
|
30258
|
+
* Format: uuid
|
|
30259
|
+
*/
|
|
30260
|
+
closingCommissionId: string;
|
|
30256
30261
|
/**
|
|
30257
30262
|
* Amount
|
|
30258
|
-
* @description field is number
|
|
30263
|
+
* @description this field is number
|
|
30259
30264
|
*/
|
|
30260
30265
|
amount?: string;
|
|
30261
30266
|
/**
|
|
30262
30267
|
* Companyamount
|
|
30263
|
-
* @description field is number
|
|
30268
|
+
* @description this field is number
|
|
30264
30269
|
*/
|
|
30265
|
-
companyAmount?: string
|
|
30270
|
+
companyAmount?: string;
|
|
30266
30271
|
/**
|
|
30267
30272
|
* Usdamount
|
|
30268
|
-
* @description field is number
|
|
30273
|
+
* @description this field is number
|
|
30269
30274
|
*/
|
|
30270
|
-
usdAmount?: string
|
|
30275
|
+
usdAmount?: string;
|
|
30271
30276
|
/**
|
|
30272
30277
|
* Companyrate
|
|
30273
|
-
* @description field is number
|
|
30278
|
+
* @description this field is number
|
|
30274
30279
|
*/
|
|
30275
30280
|
companyRate?: string;
|
|
30276
30281
|
/**
|
|
30277
|
-
*
|
|
30278
|
-
* @description field is number
|
|
30279
|
-
*/
|
|
30280
|
-
usdRate?: string;
|
|
30281
|
-
changedField: components["schemas"]["ChangedFields"] | null;
|
|
30282
|
-
/**
|
|
30283
|
-
* Returninvoice
|
|
30284
|
-
* Format: uuid
|
|
30285
|
-
* @description return invoice id
|
|
30286
|
-
*/
|
|
30287
|
-
returnInvoice?: string;
|
|
30288
|
-
/**
|
|
30289
|
-
* Advancepayment
|
|
30290
|
-
* Format: uuid
|
|
30291
|
-
* @description advance payment id
|
|
30282
|
+
* Secondaryrate
|
|
30283
|
+
* @description this field is number
|
|
30292
30284
|
*/
|
|
30293
|
-
|
|
30285
|
+
secondaryRate?: string;
|
|
30286
|
+
changedField: components["schemas"]["FinancialChangedFields"];
|
|
30294
30287
|
};
|
|
30295
30288
|
/** AdvancePaymentResponse */
|
|
30296
30289
|
AdvancePaymentResponse: {
|
|
@@ -37335,8 +37328,46 @@ export interface components {
|
|
|
37335
37328
|
/** Results */
|
|
37336
37329
|
results: components["schemas"]["RetrieveContactSegmentationSchema"][];
|
|
37337
37330
|
};
|
|
37338
|
-
/**
|
|
37339
|
-
|
|
37331
|
+
/** PaymentWithEquivalentResponse */
|
|
37332
|
+
PaymentWithEquivalentResponse: {
|
|
37333
|
+
/**
|
|
37334
|
+
* Salesinvoice
|
|
37335
|
+
* Format: uuid
|
|
37336
|
+
*/
|
|
37337
|
+
salesInvoice?: string;
|
|
37338
|
+
/**
|
|
37339
|
+
* Amount
|
|
37340
|
+
* @description field is number
|
|
37341
|
+
*/
|
|
37342
|
+
amount: string;
|
|
37343
|
+
/**
|
|
37344
|
+
* Companyamount
|
|
37345
|
+
* @description field is number
|
|
37346
|
+
*/
|
|
37347
|
+
companyAmount: string;
|
|
37348
|
+
/**
|
|
37349
|
+
* Secondaryamount
|
|
37350
|
+
* @description field is number
|
|
37351
|
+
*/
|
|
37352
|
+
secondaryAmount: string;
|
|
37353
|
+
/**
|
|
37354
|
+
* Companyrate
|
|
37355
|
+
* @description field is number
|
|
37356
|
+
*/
|
|
37357
|
+
companyRate: string;
|
|
37358
|
+
/**
|
|
37359
|
+
* Secondaryrate
|
|
37360
|
+
* @description field is number
|
|
37361
|
+
*/
|
|
37362
|
+
secondaryRate: string | null;
|
|
37363
|
+
/**
|
|
37364
|
+
* Remaining
|
|
37365
|
+
* @description field is number
|
|
37366
|
+
*/
|
|
37367
|
+
remaining: string;
|
|
37368
|
+
};
|
|
37369
|
+
/** PurchaseRefundVoucherCalculateTotalResponse */
|
|
37370
|
+
PurchaseRefundVoucherCalculateTotalResponse: {
|
|
37340
37371
|
/**
|
|
37341
37372
|
* Total
|
|
37342
37373
|
* @description field is number
|
|
@@ -37348,10 +37379,10 @@ export interface components {
|
|
|
37348
37379
|
*/
|
|
37349
37380
|
companyTotal: string;
|
|
37350
37381
|
/**
|
|
37351
|
-
*
|
|
37382
|
+
* Usdtotal
|
|
37352
37383
|
* @description field is number
|
|
37353
37384
|
*/
|
|
37354
|
-
|
|
37385
|
+
usdTotal: string;
|
|
37355
37386
|
/**
|
|
37356
37387
|
* Remainingbalance
|
|
37357
37388
|
* @description field is number
|
|
@@ -37360,53 +37391,89 @@ export interface components {
|
|
|
37360
37391
|
/** Payments */
|
|
37361
37392
|
payments: components["schemas"]["PaymentWithEquivalentResponse"][];
|
|
37362
37393
|
};
|
|
37363
|
-
/**
|
|
37364
|
-
|
|
37394
|
+
/** PurchaseRefundVoucherCalculateEquivalentsAndTotalsSchema */
|
|
37395
|
+
PurchaseRefundVoucherCalculateEquivalentsAndTotalsSchema: {
|
|
37365
37396
|
/**
|
|
37366
|
-
*
|
|
37367
|
-
*
|
|
37397
|
+
* Supplier
|
|
37398
|
+
* @description Supplier ID
|
|
37368
37399
|
*/
|
|
37369
|
-
|
|
37400
|
+
supplier: number;
|
|
37401
|
+
/**
|
|
37402
|
+
* Branch
|
|
37403
|
+
* @description Branch ID
|
|
37404
|
+
*/
|
|
37405
|
+
branch: number;
|
|
37406
|
+
/** Payments */
|
|
37407
|
+
payments: components["schemas"]["PurchaseRefundVoucherPaymentsSchema"][];
|
|
37408
|
+
};
|
|
37409
|
+
/** PurchaseRefundVoucherPaymentsSchema */
|
|
37410
|
+
PurchaseRefundVoucherPaymentsSchema: {
|
|
37370
37411
|
/**
|
|
37371
37412
|
* Amount
|
|
37372
37413
|
* @description field is number
|
|
37373
37414
|
*/
|
|
37374
|
-
amount
|
|
37415
|
+
amount?: string;
|
|
37375
37416
|
/**
|
|
37376
37417
|
* Companyamount
|
|
37377
37418
|
* @description field is number
|
|
37378
37419
|
*/
|
|
37379
|
-
companyAmount
|
|
37420
|
+
companyAmount?: string | null;
|
|
37380
37421
|
/**
|
|
37381
|
-
*
|
|
37422
|
+
* Usdamount
|
|
37382
37423
|
* @description field is number
|
|
37383
37424
|
*/
|
|
37384
|
-
|
|
37425
|
+
usdAmount?: string | null;
|
|
37385
37426
|
/**
|
|
37386
37427
|
* Companyrate
|
|
37387
37428
|
* @description field is number
|
|
37388
37429
|
*/
|
|
37389
|
-
companyRate
|
|
37430
|
+
companyRate?: string;
|
|
37390
37431
|
/**
|
|
37391
|
-
*
|
|
37432
|
+
* Usdrate
|
|
37392
37433
|
* @description field is number
|
|
37393
37434
|
*/
|
|
37394
|
-
|
|
37435
|
+
usdRate?: string;
|
|
37436
|
+
changedField: components["schemas"]["ChangedFields"] | null;
|
|
37395
37437
|
/**
|
|
37396
|
-
*
|
|
37397
|
-
*
|
|
37438
|
+
* Returninvoice
|
|
37439
|
+
* Format: uuid
|
|
37440
|
+
* @description return invoice id
|
|
37398
37441
|
*/
|
|
37399
|
-
|
|
37442
|
+
returnInvoice?: string;
|
|
37443
|
+
/**
|
|
37444
|
+
* Advancepaymentitem
|
|
37445
|
+
* Format: uuid
|
|
37446
|
+
* @description advance payment item id
|
|
37447
|
+
*/
|
|
37448
|
+
advancePaymentItem?: string;
|
|
37400
37449
|
};
|
|
37401
|
-
/**
|
|
37402
|
-
|
|
37450
|
+
/** RefundableAdvancePaymentItemWithRemaining */
|
|
37451
|
+
RefundableAdvancePaymentItemWithRemaining: {
|
|
37403
37452
|
/**
|
|
37404
|
-
*
|
|
37405
|
-
*
|
|
37453
|
+
* Id
|
|
37454
|
+
* Format: uuid
|
|
37406
37455
|
*/
|
|
37407
|
-
|
|
37408
|
-
/**
|
|
37409
|
-
|
|
37456
|
+
id: string;
|
|
37457
|
+
/**
|
|
37458
|
+
* Total
|
|
37459
|
+
* @description field is number
|
|
37460
|
+
*/
|
|
37461
|
+
total: string;
|
|
37462
|
+
/**
|
|
37463
|
+
* Companytotal
|
|
37464
|
+
* @description field is number
|
|
37465
|
+
*/
|
|
37466
|
+
companyTotal: string;
|
|
37467
|
+
/**
|
|
37468
|
+
* Secondarytotal
|
|
37469
|
+
* @description field is number
|
|
37470
|
+
*/
|
|
37471
|
+
secondaryTotal: string;
|
|
37472
|
+
/**
|
|
37473
|
+
* Remaining
|
|
37474
|
+
* @description field is number
|
|
37475
|
+
*/
|
|
37476
|
+
remaining: string;
|
|
37410
37477
|
};
|
|
37411
37478
|
/** RefundableAdvancePaymentWithRemaining */
|
|
37412
37479
|
RefundableAdvancePaymentWithRemaining: {
|
|
@@ -37437,6 +37504,8 @@ export interface components {
|
|
|
37437
37504
|
* @description field is number
|
|
37438
37505
|
*/
|
|
37439
37506
|
remaining: string;
|
|
37507
|
+
/** Items */
|
|
37508
|
+
items: components["schemas"]["RefundableAdvancePaymentItemWithRemaining"][];
|
|
37440
37509
|
};
|
|
37441
37510
|
/** RefundableDocumentsResponse */
|
|
37442
37511
|
RefundableDocumentsResponse: {
|
|
@@ -37547,7 +37616,7 @@ export interface components {
|
|
|
37547
37616
|
companyRate: string;
|
|
37548
37617
|
/** Usdrate */
|
|
37549
37618
|
usdRate: string;
|
|
37550
|
-
|
|
37619
|
+
advancePaymentItem: components["schemas"]["DocumentCommonSchema"] | null;
|
|
37551
37620
|
refundReturnInvoice: components["schemas"]["DocumentCommonSchema"] | null;
|
|
37552
37621
|
};
|
|
37553
37622
|
/** RefundVoucherResponseSchema */
|
|
@@ -37670,14 +37739,14 @@ export interface components {
|
|
|
37670
37739
|
*/
|
|
37671
37740
|
bankName?: string;
|
|
37672
37741
|
/**
|
|
37673
|
-
*
|
|
37742
|
+
* Advancepaymentitem
|
|
37674
37743
|
* Format: uuid
|
|
37675
37744
|
* @description
|
|
37676
37745
|
* get advance payments from /v1/refund-vouchers/refundable-documents/ with a query param supplier
|
|
37677
37746
|
* user should select either advance payment or return invoice per row
|
|
37678
37747
|
*
|
|
37679
37748
|
*/
|
|
37680
|
-
|
|
37749
|
+
advancePaymentItem?: string;
|
|
37681
37750
|
/**
|
|
37682
37751
|
* Returninvoice
|
|
37683
37752
|
* Format: uuid
|
|
@@ -37833,11 +37902,14 @@ export interface components {
|
|
|
37833
37902
|
*/
|
|
37834
37903
|
bankName?: string;
|
|
37835
37904
|
/**
|
|
37836
|
-
*
|
|
37905
|
+
* Advancepaymentitem
|
|
37837
37906
|
* Format: uuid
|
|
37838
|
-
* @description
|
|
37907
|
+
* @description
|
|
37908
|
+
* get advance payments from /v1/purchase/refund-vouchers/refundable-documents/?supplier = {supplier-id}
|
|
37909
|
+
* - use should select advance payment then items from the advance payment items
|
|
37910
|
+
*
|
|
37839
37911
|
*/
|
|
37840
|
-
|
|
37912
|
+
advancePaymentItem?: string;
|
|
37841
37913
|
/**
|
|
37842
37914
|
* Returninvoice
|
|
37843
37915
|
* Format: uuid
|
|
@@ -39537,6 +39609,31 @@ export interface components {
|
|
|
39537
39609
|
*/
|
|
39538
39610
|
password: string | null;
|
|
39539
39611
|
};
|
|
39612
|
+
/** CalculateTotalResponse */
|
|
39613
|
+
CalculateTotalResponse: {
|
|
39614
|
+
/**
|
|
39615
|
+
* Total
|
|
39616
|
+
* @description field is number
|
|
39617
|
+
*/
|
|
39618
|
+
total: string;
|
|
39619
|
+
/**
|
|
39620
|
+
* Companytotal
|
|
39621
|
+
* @description field is number
|
|
39622
|
+
*/
|
|
39623
|
+
companyTotal: string;
|
|
39624
|
+
/**
|
|
39625
|
+
* Secondarytotal
|
|
39626
|
+
* @description field is number
|
|
39627
|
+
*/
|
|
39628
|
+
secondaryTotal: string;
|
|
39629
|
+
/**
|
|
39630
|
+
* Remainingbalance
|
|
39631
|
+
* @description field is number
|
|
39632
|
+
*/
|
|
39633
|
+
remainingBalance: string;
|
|
39634
|
+
/** Payments */
|
|
39635
|
+
payments: components["schemas"]["PaymentWithEquivalentResponse"][];
|
|
39636
|
+
};
|
|
39540
39637
|
/** AmountWithEquivalentSchema */
|
|
39541
39638
|
AmountWithEquivalentSchema: {
|
|
39542
39639
|
/**
|
|
@@ -39577,6 +39674,16 @@ export interface components {
|
|
|
39577
39674
|
secondaryRate?: string;
|
|
39578
39675
|
changedField: components["schemas"]["ChangedFields"] | null;
|
|
39579
39676
|
};
|
|
39677
|
+
/** CalculateEquivalentsAndTotalsSchema */
|
|
39678
|
+
CalculateEquivalentsAndTotalsSchema: {
|
|
39679
|
+
/**
|
|
39680
|
+
* Customer
|
|
39681
|
+
* @description customer ID
|
|
39682
|
+
*/
|
|
39683
|
+
customer: number;
|
|
39684
|
+
/** Payments */
|
|
39685
|
+
payments: components["schemas"]["AmountWithEquivalentSchema"][];
|
|
39686
|
+
};
|
|
39580
39687
|
/** UnPaidAndPartiallyPaidInvoicesResponseSchema */
|
|
39581
39688
|
UnPaidAndPartiallyPaidInvoicesResponseSchema: {
|
|
39582
39689
|
/**
|
|
@@ -41376,6 +41483,34 @@ export interface components {
|
|
|
41376
41483
|
/** Items */
|
|
41377
41484
|
items: components["schemas"]["CalculateSalesReturnInvoiceItemsSchema"][];
|
|
41378
41485
|
};
|
|
41486
|
+
/** RefundableDownPaymentItemWithRemaining */
|
|
41487
|
+
RefundableDownPaymentItemWithRemaining: {
|
|
41488
|
+
/**
|
|
41489
|
+
* Id
|
|
41490
|
+
* Format: uuid
|
|
41491
|
+
*/
|
|
41492
|
+
id: string;
|
|
41493
|
+
/**
|
|
41494
|
+
* Total
|
|
41495
|
+
* @description field is number
|
|
41496
|
+
*/
|
|
41497
|
+
total: string;
|
|
41498
|
+
/**
|
|
41499
|
+
* Companytotal
|
|
41500
|
+
* @description field is number
|
|
41501
|
+
*/
|
|
41502
|
+
companyTotal: string;
|
|
41503
|
+
/**
|
|
41504
|
+
* Secondarytotal
|
|
41505
|
+
* @description field is number
|
|
41506
|
+
*/
|
|
41507
|
+
secondaryTotal: string;
|
|
41508
|
+
/**
|
|
41509
|
+
* Remaining
|
|
41510
|
+
* @description field is number
|
|
41511
|
+
*/
|
|
41512
|
+
remaining: string;
|
|
41513
|
+
};
|
|
41379
41514
|
/** RefundableDownPaymentWithRemaining */
|
|
41380
41515
|
RefundableDownPaymentWithRemaining: {
|
|
41381
41516
|
/**
|
|
@@ -41405,6 +41540,8 @@ export interface components {
|
|
|
41405
41540
|
* @description field is number
|
|
41406
41541
|
*/
|
|
41407
41542
|
remaining: string;
|
|
41543
|
+
/** Items */
|
|
41544
|
+
items: components["schemas"]["RefundableDownPaymentItemWithRemaining"][];
|
|
41408
41545
|
};
|
|
41409
41546
|
/** RefundableReturnPackagesWithRemaining */
|
|
41410
41547
|
RefundableReturnPackagesWithRemaining: {
|
|
@@ -41502,8 +41639,8 @@ export interface components {
|
|
|
41502
41639
|
SalesRefundVoucherPaymentWithEquivalentResponse: {
|
|
41503
41640
|
/** Returninvoice */
|
|
41504
41641
|
returnInvoice: string | null;
|
|
41505
|
-
/**
|
|
41506
|
-
|
|
41642
|
+
/** Downpaymentitem */
|
|
41643
|
+
downPaymentItem: string | null;
|
|
41507
41644
|
/** Amount */
|
|
41508
41645
|
amount: string;
|
|
41509
41646
|
/**
|
|
@@ -41582,11 +41719,11 @@ export interface components {
|
|
|
41582
41719
|
*/
|
|
41583
41720
|
returnInvoice?: string;
|
|
41584
41721
|
/**
|
|
41585
|
-
*
|
|
41722
|
+
* Downpaymentitem
|
|
41586
41723
|
* Format: uuid
|
|
41587
41724
|
* @description down payment id, if down payment is undefined then return invoice should be required
|
|
41588
41725
|
*/
|
|
41589
|
-
|
|
41726
|
+
downPaymentItem?: string;
|
|
41590
41727
|
};
|
|
41591
41728
|
/** SalesRefundVoucherDetailWithItemSchema */
|
|
41592
41729
|
SalesRefundVoucherDetailWithItemSchema: {
|
|
@@ -41682,7 +41819,7 @@ export interface components {
|
|
|
41682
41819
|
* @description this field is number
|
|
41683
41820
|
*/
|
|
41684
41821
|
secondaryRate: string;
|
|
41685
|
-
|
|
41822
|
+
downPaymentItem: components["schemas"]["DocumentCommonSchema"] | null;
|
|
41686
41823
|
refundReturnInvoice: components["schemas"]["DocumentCommonSchema"] | null;
|
|
41687
41824
|
returnReturnablePackage: components["schemas"]["DocumentCommonSchema"] | null;
|
|
41688
41825
|
};
|
|
@@ -41825,14 +41962,14 @@ export interface components {
|
|
|
41825
41962
|
*/
|
|
41826
41963
|
customerBankAccount?: number;
|
|
41827
41964
|
/**
|
|
41828
|
-
*
|
|
41965
|
+
* Downpaymentitem
|
|
41829
41966
|
* Format: uuid
|
|
41830
41967
|
* @description
|
|
41831
|
-
*
|
|
41832
|
-
*
|
|
41968
|
+
* get down payments from /v1/sales/refund-vouchers/refundable-documents/?customer = {customer-id}
|
|
41969
|
+
* user should select either down payment or return invoice or return returnable package per row
|
|
41833
41970
|
*
|
|
41834
41971
|
*/
|
|
41835
|
-
|
|
41972
|
+
downPaymentItem?: string;
|
|
41836
41973
|
/**
|
|
41837
41974
|
* Returninvoice
|
|
41838
41975
|
* Format: uuid
|
|
@@ -41998,14 +42135,14 @@ export interface components {
|
|
|
41998
42135
|
*/
|
|
41999
42136
|
customerBankAccount?: number;
|
|
42000
42137
|
/**
|
|
42001
|
-
*
|
|
42138
|
+
* Downpaymentitem
|
|
42002
42139
|
* Format: uuid
|
|
42003
42140
|
* @description
|
|
42004
|
-
*
|
|
42005
|
-
*
|
|
42141
|
+
* get down payments from /v1/sales/refund-vouchers/refundable-documents/?customer = {customer-id}
|
|
42142
|
+
* user should select either down payment or return invoice or return returnable package per row
|
|
42006
42143
|
*
|
|
42007
42144
|
*/
|
|
42008
|
-
|
|
42145
|
+
downPaymentItem?: string;
|
|
42009
42146
|
/**
|
|
42010
42147
|
* Returninvoice
|
|
42011
42148
|
* Format: uuid
|
|
@@ -72929,7 +73066,7 @@ export interface operations {
|
|
|
72929
73066
|
};
|
|
72930
73067
|
requestBody: {
|
|
72931
73068
|
content: {
|
|
72932
|
-
"application/json": components["schemas"]["
|
|
73069
|
+
"application/json": components["schemas"]["PurchaseRefundVoucherCalculateEquivalentsAndTotalsSchema"];
|
|
72933
73070
|
};
|
|
72934
73071
|
};
|
|
72935
73072
|
responses: {
|
|
@@ -72939,7 +73076,7 @@ export interface operations {
|
|
|
72939
73076
|
[name: string]: unknown;
|
|
72940
73077
|
};
|
|
72941
73078
|
content: {
|
|
72942
|
-
"application/json": components["schemas"]["
|
|
73079
|
+
"application/json": components["schemas"]["PurchaseRefundVoucherCalculateTotalResponse"];
|
|
72943
73080
|
};
|
|
72944
73081
|
};
|
|
72945
73082
|
/** @description Bad Request */
|