@erp-galoper/types 1.0.1933 → 1.0.1934
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 +132 -117
- package/package.json +1 -1
package/openapi.ts
CHANGED
|
@@ -26776,11 +26776,6 @@ export interface components {
|
|
|
26776
26776
|
*/
|
|
26777
26777
|
default: boolean;
|
|
26778
26778
|
};
|
|
26779
|
-
/**
|
|
26780
|
-
* ItemCommissionCalculation
|
|
26781
|
-
* @enum {string}
|
|
26782
|
-
*/
|
|
26783
|
-
ItemCommissionCalculation: "netSale" | "profitMargin";
|
|
26784
26779
|
/** ItemListSchema */
|
|
26785
26780
|
ItemListSchema: {
|
|
26786
26781
|
info: components["schemas"]["PageInfoSchema"];
|
|
@@ -27127,7 +27122,6 @@ export interface components {
|
|
|
27127
27122
|
*/
|
|
27128
27123
|
openingStock?: components["schemas"]["OpeningStockGroupSchema"][] | null;
|
|
27129
27124
|
costStrategy: components["schemas"]["GetCostStrategy"] | null;
|
|
27130
|
-
commissionCalculation: components["schemas"]["ItemCommissionCalculation"] | null;
|
|
27131
27125
|
inventoryMovementMethod?: components["schemas"]["INVENTORY_MOVEMENT_METHOD"] | null;
|
|
27132
27126
|
/**
|
|
27133
27127
|
* Candelete
|
|
@@ -27390,7 +27384,6 @@ export interface components {
|
|
|
27390
27384
|
*/
|
|
27391
27385
|
openingStock?: components["schemas"]["OpeningStockGroupSchema"][] | null;
|
|
27392
27386
|
costStrategy: components["schemas"]["GetCostStrategy"] | null;
|
|
27393
|
-
commissionCalculation: components["schemas"]["ItemCommissionCalculation"] | null;
|
|
27394
27387
|
inventoryMovementMethod?: components["schemas"]["INVENTORY_MOVEMENT_METHOD"] | null;
|
|
27395
27388
|
/**
|
|
27396
27389
|
* Candelete
|
|
@@ -28358,14 +28351,6 @@ export interface components {
|
|
|
28358
28351
|
* - visible when hasExpiryDate is true
|
|
28359
28352
|
*/
|
|
28360
28353
|
alertDate?: number | null;
|
|
28361
|
-
/**
|
|
28362
|
-
* @description Hint: description for each option should be visible to users in the UI
|
|
28363
|
-
* - Net Sales: Commission is calculated on the item price after discount, excluding tax and cost.
|
|
28364
|
-
* - Formula (per item): (Price - Discount) × Commission Rate
|
|
28365
|
-
* - Profit Margin: Commission is calculated on the profit of each item, after deducting both the discount and the cost of goods sold (COGS).
|
|
28366
|
-
* - Formula (per item): (Price - Discount - Cost) × Commission Rate
|
|
28367
|
-
*/
|
|
28368
|
-
commissionCalculation?: components["schemas"]["ItemCommissionCalculation"] | null;
|
|
28369
28354
|
/**
|
|
28370
28355
|
* Packages
|
|
28371
28356
|
* @description Not applicable for service items - always empty list for type=service. Package and unit of measure should be unique
|
|
@@ -28883,14 +28868,6 @@ export interface components {
|
|
|
28883
28868
|
children: components["schemas"]["UpdateChildrenItemSchema"] | null;
|
|
28884
28869
|
/** @description if canDelete for the item is false then this field should be disabled */
|
|
28885
28870
|
costStrategy?: components["schemas"]["CostStrategy"] | null;
|
|
28886
|
-
/**
|
|
28887
|
-
* @description Hint: description for each option should be visible to users in the UI
|
|
28888
|
-
* - Net Sales: Commission is calculated on the item price after discount, excluding tax and cost.
|
|
28889
|
-
* - Formula (per item): (Price - Discount) × Commission Rate
|
|
28890
|
-
* - Profit Margin: Commission is calculated on the profit of each item, after deducting both the discount and the cost of goods sold (COGS).
|
|
28891
|
-
* - Formula (per item): (Price - Discount - Cost) × Commission Rate
|
|
28892
|
-
*/
|
|
28893
|
-
commissionCalculation?: components["schemas"]["ItemCommissionCalculation"] | null;
|
|
28894
28871
|
/**
|
|
28895
28872
|
* @description - fifo(First In, First Out): Items purchased or produced first are sold or used first
|
|
28896
28873
|
* - lifo(Last In, First Out): Items purchased or produced most recently are sold or used first
|
|
@@ -29188,14 +29165,6 @@ export interface components {
|
|
|
29188
29165
|
children: components["schemas"]["UpdateChildrenItemSchema"] | null;
|
|
29189
29166
|
/** @description if canDelete for the item is false then this field should be disabled */
|
|
29190
29167
|
costStrategy?: components["schemas"]["CostStrategy"] | null;
|
|
29191
|
-
/**
|
|
29192
|
-
* @description Hint: description for each option should be visible to users in the UI
|
|
29193
|
-
* - Net Sales: Commission is calculated on the item price after discount, excluding tax and cost.
|
|
29194
|
-
* - Formula (per item): (Price - Discount) × Commission Rate
|
|
29195
|
-
* - Profit Margin: Commission is calculated on the profit of each item, after deducting both the discount and the cost of goods sold (COGS).
|
|
29196
|
-
* - Formula (per item): (Price - Discount - Cost) × Commission Rate
|
|
29197
|
-
*/
|
|
29198
|
-
commissionCalculation?: components["schemas"]["ItemCommissionCalculation"] | null;
|
|
29199
29168
|
/**
|
|
29200
29169
|
* @description - fifo(First In, First Out): Items purchased or produced first are sold or used first
|
|
29201
29170
|
* - lifo(Last In, First Out): Items purchased or produced most recently are sold or used first
|
|
@@ -35899,6 +35868,29 @@ export interface components {
|
|
|
35899
35868
|
* @enum {string}
|
|
35900
35869
|
*/
|
|
35901
35870
|
SessionStatus: "opened" | "closed";
|
|
35871
|
+
/** RelatedPartyInfo */
|
|
35872
|
+
RelatedPartyInfo: {
|
|
35873
|
+
/** Id */
|
|
35874
|
+
id: number | string;
|
|
35875
|
+
/** Name */
|
|
35876
|
+
name: string;
|
|
35877
|
+
/** Accountnumber */
|
|
35878
|
+
accountNumber: string;
|
|
35879
|
+
currency: components["schemas"]["CurrencySummaryInfo"];
|
|
35880
|
+
/** Banks */
|
|
35881
|
+
banks: components["schemas"]["BankAccountsSharedSchema"][];
|
|
35882
|
+
};
|
|
35883
|
+
/** SalesPersonSharedSchema */
|
|
35884
|
+
SalesPersonSharedSchema: {
|
|
35885
|
+
/**
|
|
35886
|
+
* Id
|
|
35887
|
+
* Format: uuid
|
|
35888
|
+
*/
|
|
35889
|
+
id: string;
|
|
35890
|
+
/** Name */
|
|
35891
|
+
name: string;
|
|
35892
|
+
relatedParty: components["schemas"]["RelatedPartyInfo"];
|
|
35893
|
+
};
|
|
35902
35894
|
/** SessionListSchema */
|
|
35903
35895
|
SessionListSchema: {
|
|
35904
35896
|
info: components["schemas"]["PageInfoSchema"];
|
|
@@ -35924,6 +35916,7 @@ export interface components {
|
|
|
35924
35916
|
/** Name */
|
|
35925
35917
|
name: string;
|
|
35926
35918
|
user: components["schemas"]["UserSummaryInfo"];
|
|
35919
|
+
defaultSalesPerson?: components["schemas"]["SalesPersonSharedSchema"] | null;
|
|
35927
35920
|
/**
|
|
35928
35921
|
* Startdate
|
|
35929
35922
|
* Format: date-time
|
|
@@ -36122,6 +36115,19 @@ export interface components {
|
|
|
36122
36115
|
type: string;
|
|
36123
36116
|
accountType: components["schemas"]["AccountModelType"];
|
|
36124
36117
|
};
|
|
36118
|
+
/** CommissionLevelSharedSchema */
|
|
36119
|
+
CommissionLevelSharedSchema: {
|
|
36120
|
+
/**
|
|
36121
|
+
* Id
|
|
36122
|
+
* Format: uuid
|
|
36123
|
+
*/
|
|
36124
|
+
id: string;
|
|
36125
|
+
/** Name */
|
|
36126
|
+
name: string;
|
|
36127
|
+
/** Commissionvalue */
|
|
36128
|
+
commissionValue: number;
|
|
36129
|
+
currency: components["schemas"]["CurrencySummaryInfo"] | null;
|
|
36130
|
+
};
|
|
36125
36131
|
/** CustomerSharedSchema */
|
|
36126
36132
|
CustomerSharedSchema: {
|
|
36127
36133
|
/** Phone1 */
|
|
@@ -36334,6 +36340,8 @@ export interface components {
|
|
|
36334
36340
|
* @default []
|
|
36335
36341
|
*/
|
|
36336
36342
|
promotionsAndOffers: components["schemas"]["PromotionsAndOffersSharedSchema"][];
|
|
36343
|
+
/** @description Applicable commission level for this line item. */
|
|
36344
|
+
commission?: components["schemas"]["CommissionLevelSharedSchema"] | null;
|
|
36337
36345
|
};
|
|
36338
36346
|
/** POSInvoiceSchema */
|
|
36339
36347
|
POSInvoiceSchema: {
|
|
@@ -36364,6 +36372,9 @@ export interface components {
|
|
|
36364
36372
|
barcode: string;
|
|
36365
36373
|
type: components["schemas"]["InvoiceType"];
|
|
36366
36374
|
session: components["schemas"]["SessionSummarySchema"];
|
|
36375
|
+
salesPerson?: components["schemas"]["SalesPersonSharedSchema"] | null;
|
|
36376
|
+
/** @description Applicable commission level for this invoice. */
|
|
36377
|
+
commission?: components["schemas"]["CommissionLevelSharedSchema"] | null;
|
|
36367
36378
|
relatedInvoice?: components["schemas"]["PosInvoiceSummarySchema"] | null;
|
|
36368
36379
|
giftReceipt?: components["schemas"]["GiftReceiptSummarySchema"] | null;
|
|
36369
36380
|
/**
|
|
@@ -36624,6 +36635,7 @@ export interface components {
|
|
|
36624
36635
|
/** Enddate */
|
|
36625
36636
|
endDate?: string | null;
|
|
36626
36637
|
status: components["schemas"]["SessionStatus"];
|
|
36638
|
+
defaultSalesPerson?: components["schemas"]["SalesPersonSharedSchema"] | null;
|
|
36627
36639
|
};
|
|
36628
36640
|
/** GiftReceiptItemSchema */
|
|
36629
36641
|
GiftReceiptItemSchema: {
|
|
@@ -47057,18 +47069,6 @@ export interface components {
|
|
|
47057
47069
|
*/
|
|
47058
47070
|
cost: number;
|
|
47059
47071
|
};
|
|
47060
|
-
/** RelatedPartyInfo */
|
|
47061
|
-
RelatedPartyInfo: {
|
|
47062
|
-
/** Id */
|
|
47063
|
-
id: number | string;
|
|
47064
|
-
/** Name */
|
|
47065
|
-
name: string;
|
|
47066
|
-
/** Accountnumber */
|
|
47067
|
-
accountNumber: string;
|
|
47068
|
-
currency: components["schemas"]["CurrencySummaryInfo"];
|
|
47069
|
-
/** Banks */
|
|
47070
|
-
banks: components["schemas"]["BankAccountsSharedSchema"][];
|
|
47071
|
-
};
|
|
47072
47072
|
/**
|
|
47073
47073
|
* RelatedPartyType
|
|
47074
47074
|
* @enum {string}
|
|
@@ -48278,17 +48278,6 @@ export interface components {
|
|
|
48278
48278
|
code: string;
|
|
48279
48279
|
data: components["schemas"]["ClosingCommissionDetailWithInvoicesSchema"];
|
|
48280
48280
|
};
|
|
48281
|
-
/** SalesPersonSharedSchema */
|
|
48282
|
-
SalesPersonSharedSchema: {
|
|
48283
|
-
/**
|
|
48284
|
-
* Id
|
|
48285
|
-
* Format: uuid
|
|
48286
|
-
*/
|
|
48287
|
-
id: string;
|
|
48288
|
-
/** Name */
|
|
48289
|
-
name: string;
|
|
48290
|
-
relatedParty: components["schemas"]["RelatedPartyInfo"];
|
|
48291
|
-
};
|
|
48292
48281
|
/** CreateClosingCommission */
|
|
48293
48282
|
CreateClosingCommission: {
|
|
48294
48283
|
/** Password */
|
|
@@ -49029,7 +49018,7 @@ export interface components {
|
|
|
49029
49018
|
* CommissionCalculation
|
|
49030
49019
|
* @enum {string}
|
|
49031
49020
|
*/
|
|
49032
|
-
CommissionCalculation: "
|
|
49021
|
+
CommissionCalculation: "onBilling" | "onCollection";
|
|
49033
49022
|
/** CommissionDetailWithLevelsSchema */
|
|
49034
49023
|
CommissionDetailWithLevelsSchema: {
|
|
49035
49024
|
/**
|
|
@@ -49061,7 +49050,6 @@ export interface components {
|
|
|
49061
49050
|
*/
|
|
49062
49051
|
files: string[];
|
|
49063
49052
|
calculation: components["schemas"]["CommissionCalculation"];
|
|
49064
|
-
structure: components["schemas"]["CommissionStructureEnum"];
|
|
49065
49053
|
/**
|
|
49066
49054
|
* Startdate
|
|
49067
49055
|
* Format: date
|
|
@@ -49078,6 +49066,11 @@ export interface components {
|
|
|
49078
49066
|
/** Commissionlevels */
|
|
49079
49067
|
commissionLevels: components["schemas"]["CommissionLevelsDetailSchema"][];
|
|
49080
49068
|
};
|
|
49069
|
+
/**
|
|
49070
|
+
* CommissionLevelCalculation
|
|
49071
|
+
* @enum {string}
|
|
49072
|
+
*/
|
|
49073
|
+
CommissionLevelCalculation: "netSale" | "profitMargin";
|
|
49081
49074
|
/** CommissionLevelsDetailSchema */
|
|
49082
49075
|
CommissionLevelsDetailSchema: {
|
|
49083
49076
|
/**
|
|
@@ -49085,15 +49078,20 @@ export interface components {
|
|
|
49085
49078
|
* Format: uuid
|
|
49086
49079
|
*/
|
|
49087
49080
|
id: string;
|
|
49081
|
+
structure: components["schemas"]["CommissionStructureEnum"];
|
|
49082
|
+
commissionCalculation: components["schemas"]["CommissionLevelCalculation"];
|
|
49088
49083
|
/** Products */
|
|
49089
49084
|
products: components["schemas"]["ItemSummaryInfo"][];
|
|
49090
49085
|
/** Categories */
|
|
49091
49086
|
categories: components["schemas"]["ItemCategorySummaryInfo"][];
|
|
49087
|
+
/** Brands */
|
|
49088
|
+
brands: components["schemas"]["CommonBrandSchema"][];
|
|
49089
|
+
/** Families */
|
|
49090
|
+
families: components["schemas"]["CommonFamilySchema"][];
|
|
49092
49091
|
/** Customer Groups */
|
|
49093
49092
|
customer_groups: components["schemas"]["ContactSegmentationSharedSchema"][];
|
|
49094
49093
|
/** Customers */
|
|
49095
49094
|
customers: components["schemas"]["AccountSummaryInfo"][];
|
|
49096
|
-
paymentMethod: components["schemas"]["PaymentMethodSharedSchema"] | null;
|
|
49097
49095
|
/** Commissionvalue */
|
|
49098
49096
|
commissionValue: number;
|
|
49099
49097
|
/** Salesvolumevalue */
|
|
@@ -49116,7 +49114,7 @@ export interface components {
|
|
|
49116
49114
|
* CommissionStructureEnum
|
|
49117
49115
|
* @enum {string}
|
|
49118
49116
|
*/
|
|
49119
|
-
CommissionStructureEnum: "fixed" | "
|
|
49117
|
+
CommissionStructureEnum: "fixed" | "tiered" | "product" | "category" | "family" | "brand";
|
|
49120
49118
|
/** ItemCategorySummaryInfo */
|
|
49121
49119
|
ItemCategorySummaryInfo: {
|
|
49122
49120
|
/**
|
|
@@ -49129,9 +49127,9 @@ export interface components {
|
|
|
49129
49127
|
};
|
|
49130
49128
|
/**
|
|
49131
49129
|
* SalesTierType
|
|
49132
|
-
* @
|
|
49130
|
+
* @constant
|
|
49133
49131
|
*/
|
|
49134
|
-
SalesTierType: "
|
|
49132
|
+
SalesTierType: "above";
|
|
49135
49133
|
/**
|
|
49136
49134
|
* TargetPeriod
|
|
49137
49135
|
* @enum {string}
|
|
@@ -49139,6 +49137,22 @@ export interface components {
|
|
|
49139
49137
|
TargetPeriod: "weekly" | "monthly" | "quarterly" | "biAnnual" | "annual";
|
|
49140
49138
|
/** CreateCommissionLevels */
|
|
49141
49139
|
CreateCommissionLevels: {
|
|
49140
|
+
/**
|
|
49141
|
+
* @description In all structures user should specify commission value
|
|
49142
|
+
* - if structure is product user should select item(s)
|
|
49143
|
+
* - if structure is tiered user should select salesTierType -> salesVolumeValue -> currency
|
|
49144
|
+
* - if structure is category user should select category
|
|
49145
|
+
* - if structure is brand user should select brand(s)
|
|
49146
|
+
* - if structure is family user should select family(ies)
|
|
49147
|
+
* Note that if inventory off allowed structures are fixed and tiered with salesVolumeValue and its related fields
|
|
49148
|
+
*/
|
|
49149
|
+
structure: components["schemas"]["CommissionStructureEnum"];
|
|
49150
|
+
/**
|
|
49151
|
+
* @description - Net Sales: Commission is calculated on the item price after discount, excluding tax and cost.
|
|
49152
|
+
* - Profit Margin: Commission is calculated on the profit of each item, after deducting both the discount and the cost of goods sold (COGS).
|
|
49153
|
+
* @default netSale
|
|
49154
|
+
*/
|
|
49155
|
+
commissionCalculation: components["schemas"]["CommissionLevelCalculation"];
|
|
49142
49156
|
/**
|
|
49143
49157
|
* Commissionvalue
|
|
49144
49158
|
* @description if commissionValueType is percentage, commissionValue should be greater than zero and less than or equal 100
|
|
@@ -49146,34 +49160,52 @@ export interface components {
|
|
|
49146
49160
|
commissionValue: number;
|
|
49147
49161
|
/**
|
|
49148
49162
|
* Salesvolumevalue
|
|
49149
|
-
* @description visible when structure = tiered, required when
|
|
49163
|
+
* @description visible when structure = tiered, required when structure = tiered
|
|
49150
49164
|
*/
|
|
49151
49165
|
salesVolumeValue?: number;
|
|
49152
49166
|
/**
|
|
49153
49167
|
* Currency
|
|
49154
49168
|
* Format: uuid
|
|
49155
|
-
* @description currency id, visible when structure = tiered, required when
|
|
49169
|
+
* @description currency id, visible when structure = tiered, required when structure = tiered
|
|
49156
49170
|
*/
|
|
49157
49171
|
currency?: string;
|
|
49158
49172
|
/** @description visible when structure = tiered */
|
|
49159
49173
|
salesTierType?: components["schemas"]["SalesTierType"];
|
|
49160
49174
|
/**
|
|
49161
49175
|
* Products
|
|
49162
|
-
* @description - visible when structure is
|
|
49176
|
+
* @description - visible when structure is product
|
|
49163
49177
|
* - to get products use route /api/v1/inventory/items/ and filter by active=true
|
|
49164
49178
|
* - product should be unique across commission levels
|
|
49165
49179
|
* @default []
|
|
49166
49180
|
*/
|
|
49167
|
-
products:
|
|
49181
|
+
products: string[];
|
|
49168
49182
|
/**
|
|
49169
49183
|
* Categories
|
|
49170
|
-
* @description - visible when structure is category
|
|
49184
|
+
* @description - visible when structure is category
|
|
49171
49185
|
* - required when structure is category
|
|
49172
49186
|
* - to get categories use route /api/v1/inventory/categories?type=item'
|
|
49173
49187
|
* - category should be unique across commission levels
|
|
49174
49188
|
* @default []
|
|
49175
49189
|
*/
|
|
49176
49190
|
categories: string[];
|
|
49191
|
+
/**
|
|
49192
|
+
* Brands
|
|
49193
|
+
* @description - visible when structure is brand
|
|
49194
|
+
* - required when structure is brand
|
|
49195
|
+
* - to get brands use route /api/v1/inventory/brands/
|
|
49196
|
+
* - brand should be unique across commission levels
|
|
49197
|
+
* @default []
|
|
49198
|
+
*/
|
|
49199
|
+
brands: string[];
|
|
49200
|
+
/**
|
|
49201
|
+
* Families
|
|
49202
|
+
* @description - visible when structure is family
|
|
49203
|
+
* - required when structure is family
|
|
49204
|
+
* - to get families use route /api/v1/inventory/families/
|
|
49205
|
+
* - family should be unique across commission levels
|
|
49206
|
+
* @default []
|
|
49207
|
+
*/
|
|
49208
|
+
families: string[];
|
|
49177
49209
|
/**
|
|
49178
49210
|
* Customergroups
|
|
49179
49211
|
* @description both customers and customerGroups can be left empty to include all active debtor child customers
|
|
@@ -49191,12 +49223,6 @@ export interface components {
|
|
|
49191
49223
|
* @default []
|
|
49192
49224
|
*/
|
|
49193
49225
|
customers: string[];
|
|
49194
|
-
/**
|
|
49195
|
-
* Paymentmethod
|
|
49196
|
-
* Format: uuid
|
|
49197
|
-
* @description visible and required when structure = paymentBased, to get payment methods use route /api/v1/payment-methods/
|
|
49198
|
-
*/
|
|
49199
|
-
paymentMethod?: string;
|
|
49200
49226
|
/** Target */
|
|
49201
49227
|
target?: number;
|
|
49202
49228
|
targetPeriod?: components["schemas"]["TargetPeriod"];
|
|
@@ -49226,17 +49252,8 @@ export interface components {
|
|
|
49226
49252
|
* @description When upload file the type in payload should be commission
|
|
49227
49253
|
*/
|
|
49228
49254
|
attachments: string[];
|
|
49229
|
-
/** @description
|
|
49255
|
+
/** @description onBilling refers to fully paid invoices and onCollection refers to sales invoices where payment is not tracked */
|
|
49230
49256
|
calculation: components["schemas"]["CommissionCalculation"];
|
|
49231
|
-
/**
|
|
49232
|
-
* @description In all structures user should specify commission value and commission value type
|
|
49233
|
-
* - if structure is productBased user can select item(s) or categories
|
|
49234
|
-
* - if structure is tiered user can select categories or salesTierType -> salesVolumeValue -> currency
|
|
49235
|
-
* - if structure is paymentMethod user should select paymentMethod
|
|
49236
|
-
* - if structure is category use should select category
|
|
49237
|
-
* Note that if inventory off allowed structures are fixed, paymentBased and tiered with salesVolumeValue and its related fields
|
|
49238
|
-
*/
|
|
49239
|
-
structure: components["schemas"]["CommissionStructureEnum"];
|
|
49240
49257
|
/**
|
|
49241
49258
|
* Startdate
|
|
49242
49259
|
* Format: date
|
|
@@ -49249,7 +49266,7 @@ export interface components {
|
|
|
49249
49266
|
endDate?: string;
|
|
49250
49267
|
/**
|
|
49251
49268
|
* Commissionlevels
|
|
49252
|
-
* @description when structure is
|
|
49269
|
+
* @description when structure is fixed, only one commission level is allowed
|
|
49253
49270
|
*/
|
|
49254
49271
|
commissionLevels?: components["schemas"]["CreateCommissionLevels"][];
|
|
49255
49272
|
};
|
|
@@ -49284,7 +49301,6 @@ export interface components {
|
|
|
49284
49301
|
*/
|
|
49285
49302
|
files: string[];
|
|
49286
49303
|
calculation: components["schemas"]["CommissionCalculation"];
|
|
49287
|
-
structure: components["schemas"]["CommissionStructureEnum"];
|
|
49288
49304
|
/**
|
|
49289
49305
|
* Startdate
|
|
49290
49306
|
* Format: date
|
|
@@ -49312,24 +49328,35 @@ export interface components {
|
|
|
49312
49328
|
* Format: uuid
|
|
49313
49329
|
*/
|
|
49314
49330
|
id?: string;
|
|
49331
|
+
/**
|
|
49332
|
+
* @description In all structures user should specify commission value
|
|
49333
|
+
* - if structure is product user should select item(s)
|
|
49334
|
+
* - if structure is tiered user should select salesTierType -> salesVolumeValue -> currency
|
|
49335
|
+
* - if structure is category user should select category
|
|
49336
|
+
* - if structure is brand user should select brand(s)
|
|
49337
|
+
* - if structure is family user should select family(ies)
|
|
49338
|
+
*/
|
|
49339
|
+
structure: components["schemas"]["CommissionStructureEnum"];
|
|
49340
|
+
/** @default netSale */
|
|
49341
|
+
commissionCalculation: components["schemas"]["CommissionLevelCalculation"];
|
|
49315
49342
|
/** Commissionvalue */
|
|
49316
49343
|
commissionValue: number;
|
|
49317
49344
|
/**
|
|
49318
49345
|
* Salesvolumevalue
|
|
49319
|
-
* @description visible when structure = tiered, required when
|
|
49346
|
+
* @description visible when structure = tiered, required when structure = tiered
|
|
49320
49347
|
*/
|
|
49321
49348
|
salesVolumeValue?: number;
|
|
49322
49349
|
/**
|
|
49323
49350
|
* Currency
|
|
49324
49351
|
* Format: uuid
|
|
49325
|
-
* @description currency id, visible when structure = tiered, required when
|
|
49352
|
+
* @description currency id, visible when structure = tiered, required when structure = tiered
|
|
49326
49353
|
*/
|
|
49327
49354
|
currency?: string;
|
|
49328
49355
|
/** @description visible when structure = tiered */
|
|
49329
49356
|
salesTierType?: components["schemas"]["SalesTierType"];
|
|
49330
49357
|
/**
|
|
49331
49358
|
* Products
|
|
49332
|
-
* @description - visible when structure is
|
|
49359
|
+
* @description - visible when structure is product
|
|
49333
49360
|
* - to get products use route /api/v1/inventory/items/ and filter by active=true
|
|
49334
49361
|
* - product should be unique across commission levels
|
|
49335
49362
|
* @default []
|
|
@@ -49337,13 +49364,29 @@ export interface components {
|
|
|
49337
49364
|
products: number[];
|
|
49338
49365
|
/**
|
|
49339
49366
|
* Categories
|
|
49340
|
-
* @description - visible when structure is category
|
|
49367
|
+
* @description - visible when structure is category
|
|
49341
49368
|
* - required when structure is category
|
|
49342
49369
|
* - to get categories use route /api/v1/inventory/categories?type=item
|
|
49343
49370
|
* - category should be unique across commission levels
|
|
49344
49371
|
* @default []
|
|
49345
49372
|
*/
|
|
49346
49373
|
categories: string[];
|
|
49374
|
+
/**
|
|
49375
|
+
* Brands
|
|
49376
|
+
* @description - visible when structure is brand
|
|
49377
|
+
* - required when structure is brand
|
|
49378
|
+
* - to get brands use route /api/v1/inventory/brands/
|
|
49379
|
+
* @default []
|
|
49380
|
+
*/
|
|
49381
|
+
brands: string[];
|
|
49382
|
+
/**
|
|
49383
|
+
* Families
|
|
49384
|
+
* @description - visible when structure is family
|
|
49385
|
+
* - required when structure is family
|
|
49386
|
+
* - to get families use route /api/v1/inventory/families/
|
|
49387
|
+
* @default []
|
|
49388
|
+
*/
|
|
49389
|
+
families: string[];
|
|
49347
49390
|
/**
|
|
49348
49391
|
* Customergroups
|
|
49349
49392
|
* @description both customers and customerGroups can be left empty to include all active debtor child customers
|
|
@@ -49361,12 +49404,6 @@ export interface components {
|
|
|
49361
49404
|
* @default []
|
|
49362
49405
|
*/
|
|
49363
49406
|
customers: string[];
|
|
49364
|
-
/**
|
|
49365
|
-
* Paymentmethod
|
|
49366
|
-
* Format: uuid
|
|
49367
|
-
* @description visible and required when structure = paymentBased, to get payment methods use route /api/v1/payment-methods/
|
|
49368
|
-
*/
|
|
49369
|
-
paymentMethod?: string;
|
|
49370
49407
|
/** Target */
|
|
49371
49408
|
target?: number;
|
|
49372
49409
|
targetPeriod?: components["schemas"]["TargetPeriod"];
|
|
@@ -49387,17 +49424,8 @@ export interface components {
|
|
|
49387
49424
|
* @description When upload file the type in payload should be commission
|
|
49388
49425
|
*/
|
|
49389
49426
|
attachments: string[];
|
|
49390
|
-
/** @description
|
|
49427
|
+
/** @description onBilling refers to fully paid invoices and onCollection refers to sales invoices where payment is not tracked */
|
|
49391
49428
|
calculation: components["schemas"]["CommissionCalculation"];
|
|
49392
|
-
/**
|
|
49393
|
-
* @description In all structures user should specify comiision value and commission value type
|
|
49394
|
-
* - if structure is productBased user can select item(s) or categories
|
|
49395
|
-
* - if structure is tiered user can select categories or salesTierType -> salesVolumeValue -> currency
|
|
49396
|
-
* - if structure is paymentMethod user should select paymentMethod
|
|
49397
|
-
* - if structure is category use should select category
|
|
49398
|
-
* Note that if inventory off allowed structures are fixed, paymentBased and tiered with salesVolumeValue and its related fields
|
|
49399
|
-
*/
|
|
49400
|
-
structure: components["schemas"]["CommissionStructureEnum"];
|
|
49401
49429
|
/**
|
|
49402
49430
|
* Startdate
|
|
49403
49431
|
* Format: date
|
|
@@ -49410,7 +49438,7 @@ export interface components {
|
|
|
49410
49438
|
endDate?: string;
|
|
49411
49439
|
/**
|
|
49412
49440
|
* Commissionlevels
|
|
49413
|
-
* @description when structure is
|
|
49441
|
+
* @description when structure is fixed, only one commission level is allowed
|
|
49414
49442
|
*/
|
|
49415
49443
|
commissionLevels?: components["schemas"]["UpdateCommissionLevels"][];
|
|
49416
49444
|
};
|
|
@@ -54953,19 +54981,6 @@ export interface components {
|
|
|
54953
54981
|
/** Password */
|
|
54954
54982
|
password?: string;
|
|
54955
54983
|
};
|
|
54956
|
-
/** CommissionLevelSharedSchema */
|
|
54957
|
-
CommissionLevelSharedSchema: {
|
|
54958
|
-
/**
|
|
54959
|
-
* Id
|
|
54960
|
-
* Format: uuid
|
|
54961
|
-
*/
|
|
54962
|
-
id: string;
|
|
54963
|
-
/** Name */
|
|
54964
|
-
name: string;
|
|
54965
|
-
/** Commissionvalue */
|
|
54966
|
-
commissionValue: number;
|
|
54967
|
-
currency: components["schemas"]["CurrencySummaryInfo"] | null;
|
|
54968
|
-
};
|
|
54969
54984
|
/**
|
|
54970
54985
|
* OnlineOrderSummarySchema
|
|
54971
54986
|
* @description Summary of online order linked to a sales invoice
|