@erp-galoper/types 1.0.2088 → 1.0.2089

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 (2) hide show
  1. package/openapi.ts +53 -219
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -42133,10 +42133,10 @@ export interface components {
42133
42133
  ListTaxRules: {
42134
42134
  info: components["schemas"]["PageInfoSchema"];
42135
42135
  /** Results */
42136
- results: components["schemas"]["RetrieveTaxRuleInList"][];
42136
+ results: components["schemas"]["RetrieveTaxRule"][];
42137
42137
  };
42138
- /** RetrieveTaxRuleInList */
42139
- RetrieveTaxRuleInList: {
42138
+ /** RetrieveTaxRule */
42139
+ RetrieveTaxRule: {
42140
42140
  /**
42141
42141
  * Datecreated
42142
42142
  * Format: date-time
@@ -42172,6 +42172,8 @@ export interface components {
42172
42172
  * @default []
42173
42173
  */
42174
42174
  itemCategories: components["schemas"]["ItemCategorySummaryInfo"][] | null;
42175
+ /** Candelete */
42176
+ canDelete: boolean;
42175
42177
  taxApplication: components["schemas"]["TaxApplication"];
42176
42178
  /** Exemptionpercent */
42177
42179
  exemptionPercent?: number | null;
@@ -42183,8 +42185,6 @@ export interface components {
42183
42185
  chargeBearer?: string | null;
42184
42186
  /** Isactive */
42185
42187
  isActive: boolean;
42186
- /** Candelete */
42187
- canDelete: boolean;
42188
42188
  };
42189
42189
  /** UpdateTaxRule */
42190
42190
  UpdateTaxRule: {
@@ -42217,55 +42217,6 @@ export interface components {
42217
42217
  /** Isactive */
42218
42218
  isActive?: boolean | null;
42219
42219
  };
42220
- /** RetrieveTaxRule */
42221
- RetrieveTaxRule: {
42222
- /**
42223
- * Datecreated
42224
- * Format: date-time
42225
- */
42226
- dateCreated: string;
42227
- /** Datemodified */
42228
- dateModified: string | null;
42229
- createdBy: components["schemas"]["RecordUserSchema"];
42230
- modifiedBy: components["schemas"]["RecordUserSchema"] | null;
42231
- /**
42232
- * Id
42233
- * Format: uuid
42234
- */
42235
- id: string;
42236
- tax: components["schemas"]["TaxSharedSchema"];
42237
- /**
42238
- * Customers
42239
- * @default []
42240
- */
42241
- customers: components["schemas"]["AccountSummaryInfo"][] | null;
42242
- /**
42243
- * Customergroups
42244
- * @default []
42245
- */
42246
- customerGroups: components["schemas"]["ContactSegmentationSharedSchema"][] | null;
42247
- /**
42248
- * Items
42249
- * @default []
42250
- */
42251
- items: components["schemas"]["ItemSummaryInfo"][] | null;
42252
- /**
42253
- * Itemcategories
42254
- * @default []
42255
- */
42256
- itemCategories: components["schemas"]["ItemCategorySummaryInfo"][] | null;
42257
- taxApplication: components["schemas"]["TaxApplication"];
42258
- /** Exemptionpercent */
42259
- exemptionPercent?: number | null;
42260
- exemptionMethod?: components["schemas"]["ExemptionMethod"] | null;
42261
- /**
42262
- * Chargebearer
42263
- * @description Who bears the stamp duty charge. Only set (always 'customer' for now) when the rule's tax is of type stampDuty; null otherwise.
42264
- */
42265
- chargeBearer?: string | null;
42266
- /** Isactive */
42267
- isActive: boolean;
42268
- };
42269
42220
  /** AccountingSettingResponseSchema */
42270
42221
  AccountingSettingResponseSchema: {
42271
42222
  /** Code */
@@ -45216,7 +45167,7 @@ export interface components {
45216
45167
  /**
45217
45168
  * Taxes
45218
45169
  * @description - visible when supplier is resident
45219
- * - get taxes from /api/v1/settings/accounting/taxes/ and filter by type equals purchase and taxType not equals stampDuty
45170
+ * - get taxes from /api/v1/settings/accounting/taxes/
45220
45171
  * - get default value(s) from /api/v1/inventory/items/{id}/ and filter by type equals purchase
45221
45172
  */
45222
45173
  taxes?: string[] | null;
@@ -45288,7 +45239,7 @@ export interface components {
45288
45239
  * Format: uuid
45289
45240
  * @description - tax id
45290
45241
  * - visible when supplier is not resident
45291
- * - get taxes from /api/v1/settings/accounting/taxes/ and filter by type equals purchase and taxType not equals stampDuty
45242
+ * - get taxes from /api/v1/settings/accounting/taxes/
45292
45243
  */
45293
45244
  tax?: string;
45294
45245
  /**
@@ -45643,7 +45594,7 @@ export interface components {
45643
45594
  * Tax
45644
45595
  * Format: uuid
45645
45596
  * @description - visible when entity is not resident
45646
- * - get taxes from /api/v1/settings/accounting/taxes/ and filter by type equals purchase or sale with respect to document and taxType not equals stampDuty
45597
+ * - get taxes from /api/v1/settings/accounting/taxes/ and filter by type equals purchase or sale with respect to document
45647
45598
  */
45648
45599
  tax?: string;
45649
45600
  /** Items */
@@ -46070,7 +46021,7 @@ export interface components {
46070
46021
  /**
46071
46022
  * Taxes
46072
46023
  * @description - visible when supplier is resident
46073
- * - get taxes from /api/v1/settings/accounting/taxes/ and filter by type equals purchase and taxType not equals stampDuty
46024
+ * - get taxes from /api/v1/settings/accounting/taxes/
46074
46025
  * - get default value(s) from /api/v1/inventory/items/{id}/ and filter by type equals purchase
46075
46026
  */
46076
46027
  taxes?: string[] | null;
@@ -46155,7 +46106,7 @@ export interface components {
46155
46106
  * Format: uuid
46156
46107
  * @description - tax id
46157
46108
  * - visible when supplier is not resident
46158
- * - get taxes from /api/v1/settings/accounting/taxes/ and filter by type equals purchase and taxType not equals stampDuty
46109
+ * - get taxes from /api/v1/settings/accounting/taxes/
46159
46110
  */
46160
46111
  tax?: string;
46161
46112
  /**
@@ -47856,7 +47807,7 @@ export interface components {
47856
47807
  * Format: uuid
47857
47808
  * @description - tax id
47858
47809
  * - visible when supplier is not resident
47859
- * - get taxes from /api/v1/settings/accounting/taxes/ and filter by type equals purchase and taxType not equals stampDuty
47810
+ * - get taxes from /api/v1/settings/accounting/taxes/
47860
47811
  */
47861
47812
  tax?: string;
47862
47813
  /**
@@ -47932,7 +47883,7 @@ export interface components {
47932
47883
  /**
47933
47884
  * Taxes
47934
47885
  * @description - visible when supplier is resident
47935
- * - get taxes from /api/v1/settings/accounting/taxes/ and filter by type equals purchase and taxType not equals stampDuty
47886
+ * - get taxes from /api/v1/settings/accounting/taxes/
47936
47887
  * - get default value(s) from /api/v1/inventory/items/{id}/ and filter by type equals purchase
47937
47888
  */
47938
47889
  taxes: string[];
@@ -48011,7 +47962,7 @@ export interface components {
48011
47962
  /**
48012
47963
  * Taxes
48013
47964
  * @description - visible when supplier is resident
48014
- * - get taxes from /api/v1/settings/accounting/taxes/ and filter by type equals purchase and taxType not equals stampDuty
47965
+ * - get taxes from /api/v1/settings/accounting/taxes/
48015
47966
  * - get default value(s) from /api/v1/inventory/items/{id}/ and filter by type equals purchase
48016
47967
  */
48017
47968
  taxes: string[];
@@ -48120,7 +48071,7 @@ export interface components {
48120
48071
  * Format: uuid
48121
48072
  * @description - tax id
48122
48073
  * - visible when supplier is not resident
48123
- * - get taxes from /api/v1/settings/accounting/taxes/ and filter by type equals purchase and taxType not equals stampDuty
48074
+ * - get taxes from /api/v1/settings/accounting/taxes/
48124
48075
  */
48125
48076
  tax?: string;
48126
48077
  /**
@@ -54070,47 +54021,14 @@ export interface components {
54070
54021
  taxes: string[];
54071
54022
  /**
54072
54023
  * Taxexemptions
54073
- * @description Per-tax exemption validity/info for this item (hasValidExemption, exemptionPercent, applyExemption)
54074
54024
  * @default []
54075
54025
  */
54076
- taxExemptions: components["schemas"]["TaxExemptionInfoSchema"][];
54026
+ taxExemptions: components["schemas"]["TaxExemptionSelectionResponseSchema"][];
54077
54027
  /**
54078
54028
  * Exemptionamount
54079
54029
  * @description Total tax amount exempted for this item
54080
54030
  */
54081
54031
  exemptionAmount?: string | null;
54082
- /**
54083
- * Hasstampduty
54084
- * @description Whether stamp duty is applicable for this item's customer/item scope (based on active stamp-duty TaxRule matching), regardless of the document's applyStampDuty.
54085
- * @default false
54086
- */
54087
- hasStampDuty: boolean;
54088
- /**
54089
- * Applystampduty
54090
- * @description Whether stamp duty was actually applied to this item (true only when the document's applyStampDuty was requested AND hasStampDuty is true for this item).
54091
- * @default false
54092
- */
54093
- applyStampDuty: boolean;
54094
- /**
54095
- * Stampdutychargebearer
54096
- * @description Who bears the stamp duty charge (only 'customer' is currently supported); null when not applicable.
54097
- */
54098
- stampDutyChargeBearer?: string | null;
54099
- /**
54100
- * Stampdutyamount
54101
- * @description Stamp duty amount for this item in document/customer currency
54102
- */
54103
- stampDutyAmount?: string | null;
54104
- /**
54105
- * Secondarystampdutyamount
54106
- * @description Stamp duty amount for this item in secondary (USD) currency
54107
- */
54108
- secondaryStampDutyAmount?: string | null;
54109
- /**
54110
- * Companystampdutyamount
54111
- * @description Stamp duty amount for this item in company currency
54112
- */
54113
- companyStampDutyAmount?: string | null;
54114
54032
  /**
54115
54033
  * Subtotal
54116
54034
  * @description This field represents gross subtotal for the item
@@ -54254,60 +54172,32 @@ export interface components {
54254
54172
  * @description Total line item discount amount in company currency
54255
54173
  */
54256
54174
  companyLineDiscountAmount?: string | null;
54257
- /**
54258
- * Hasstampduty
54259
- * @description Whether stamp duty is applicable for at least one line item's customer/item scope (based on active stamp-duty TaxRule matching), regardless of applyStampDuty.
54260
- * @default false
54261
- */
54262
- hasStampDuty: boolean;
54263
- /**
54264
- * Applystampduty
54265
- * @description Whether stamp duty was actually applied to at least one line item (true only when applyStampDuty was requested AND hasStampDuty is true for that item). Amounts below are aggregated from the per-item stampDutyAmount fields (see items[].stampDutyAmount).
54266
- * @default false
54267
- */
54268
- applyStampDuty: boolean;
54269
- /**
54270
- * Stampdutychargebearer
54271
- * @description Who bears the stamp duty charge (only 'customer' is currently supported); null when not applicable.
54272
- */
54273
- stampDutyChargeBearer?: string | null;
54274
- /**
54275
- * Stampdutyamount
54276
- * @description Aggregated stamp duty amount (sum of applied line items) in document/customer currency
54277
- */
54278
- stampDutyAmount?: string | null;
54279
- /**
54280
- * Secondarystampdutyamount
54281
- * @description Aggregated stamp duty amount in secondary (USD) currency
54282
- */
54283
- secondaryStampDutyAmount?: string | null;
54284
- /**
54285
- * Companystampdutyamount
54286
- * @description Aggregated stamp duty amount in company currency
54287
- */
54288
- companyStampDutyAmount?: string | null;
54289
54175
  /** Items */
54290
54176
  items: components["schemas"]["SalesItemTotalCalculated"][];
54291
54177
  };
54292
- /** TaxExemptionInfoSchema */
54293
- TaxExemptionInfoSchema: {
54178
+ /** TaxExemptionSelectionResponseSchema */
54179
+ TaxExemptionSelectionResponseSchema: {
54294
54180
  /**
54295
54181
  * Tax
54296
54182
  * Format: uuid
54183
+ * @description Tax id for which a tax rule is selected
54297
54184
  */
54298
54185
  tax: string;
54299
54186
  /**
54300
- * Hasvalidexemption
54301
- * @default false
54302
- */
54303
- hasValidExemption: boolean;
54304
- /** Exemptionpercent */
54305
- exemptionPercent?: number | null;
54306
- /**
54307
- * Applyexemption
54308
- * @default false
54187
+ * Rule
54188
+ * Format: uuid
54189
+ * @description Selected tax rule id for the tax
54309
54190
  */
54310
- applyExemption: boolean;
54191
+ rule: string;
54192
+ };
54193
+ /** CalculateTotalsErrorResponse */
54194
+ CalculateTotalsErrorResponse: {
54195
+ /** Message */
54196
+ message?: string | null;
54197
+ /** Code */
54198
+ code?: string | null;
54199
+ /** Errors */
54200
+ errors?: components["schemas"]["ErrorMessageSchema"][] | null;
54311
54201
  };
54312
54202
  /** SalesItemTotal */
54313
54203
  SalesItemTotal: {
@@ -54341,7 +54231,7 @@ export interface components {
54341
54231
  promotionsAndOffers?: string[];
54342
54232
  /**
54343
54233
  * Taxes
54344
- * @description - get taxes from /api/v1/settings/accounting/taxes/ and filter by type equals sales and taxType not equals stampDuty
54234
+ * @description - get taxes from /api/v1/settings/accounting/taxes/
54345
54235
  * - get default value(s) from /api/v1/inventory/items/{id}/ and filter by type equals sales
54346
54236
  * @default []
54347
54237
  */
@@ -54353,25 +54243,11 @@ export interface components {
54353
54243
  */
54354
54244
  includeTaxInUnitPrice: boolean;
54355
54245
  /**
54356
- * Applyexemption
54357
- * @description - List of objects, each specifying a tax id and whether to apply its exemption.
54358
- * - If applyExemption is true for a tax, and a valid (active) TaxRule exists for that tax
54359
- * matching this item/customer scope, the tax exemption percentage from that rule is
54360
- * applied, reducing the tax amount calculated for that tax on this item.
54246
+ * Taxexemptions
54247
+ * @description List of selected tax rule ids per tax for this item.
54361
54248
  * @default []
54362
54249
  */
54363
- applyExemption: components["schemas"]["TaxExemptionApplySchema"][];
54364
- /**
54365
- * Applystampduty
54366
- * @description - Stamp duty is not a regular tax: like a tax exemption, it is toggled per line item.
54367
- * It only checks whether this line item/the document customer are within a valid
54368
- * (active) stamp-duty TaxRule scope.
54369
- * - If true AND stamp duty is applicable for this item (hasStampDuty in the response is
54370
- * true for this item), the response returns this item's stamp duty amount, added to
54371
- * this item's total and to the document's aggregated totals.
54372
- * @default false
54373
- */
54374
- applyStampDuty: boolean;
54250
+ taxExemptions: components["schemas"]["TaxExemptionSelectionSchema"][];
54375
54251
  };
54376
54252
  /** SalesTotalCalculationRequest */
54377
54253
  SalesTotalCalculationRequest: {
@@ -54404,27 +54280,26 @@ export interface components {
54404
54280
  * Tax
54405
54281
  * Format: uuid
54406
54282
  * @description - tax id
54407
- * - get taxes from /api/v1/settings/accounting/taxes/ and filter by type equals sales and taxType not equals stampDuty
54283
+ * - get taxes from /api/v1/settings/accounting/taxes/ and filter by type equals sales
54408
54284
  */
54409
54285
  tax?: string;
54410
54286
  /** Items */
54411
54287
  items: components["schemas"]["SalesItemTotal"][];
54412
54288
  };
54413
- /** TaxExemptionApplySchema */
54414
- TaxExemptionApplySchema: {
54289
+ /** TaxExemptionSelectionSchema */
54290
+ TaxExemptionSelectionSchema: {
54415
54291
  /**
54416
54292
  * Tax
54417
54293
  * Format: uuid
54418
- * @description Tax id to apply/skip exemption for
54294
+ * @description Tax id for which a tax rule is selected
54419
54295
  */
54420
54296
  tax: string;
54421
54297
  /**
54422
- * Applyexemption
54423
- * @description - If true, and a valid (active) TaxRule exists for this tax matching
54424
- * this item/customer scope, the tax exemption percentage from that rule is applied,
54425
- * reducing the tax amount calculated for that tax on this item.
54298
+ * Rule
54299
+ * Format: uuid
54300
+ * @description Selected tax rule id for the tax
54426
54301
  */
54427
- applyExemption: boolean;
54302
+ rule: string;
54428
54303
  };
54429
54304
  /** CustomerBranchSharedSchema */
54430
54305
  CustomerBranchSharedSchema: {
@@ -54892,7 +54767,7 @@ export interface components {
54892
54767
  /**
54893
54768
  * Taxes
54894
54769
  * @description - visible when customer is resident
54895
- * - get taxes from /api/v1/settings/accounting/taxes/ and filter by type equals sales and taxType not equals stampDuty
54770
+ * - get taxes from /api/v1/settings/accounting/taxes/
54896
54771
  * - get default value(s) from /api/v1/inventory/items/{id}/ and filter by type equals sales
54897
54772
  * @default []
54898
54773
  */
@@ -59625,46 +59500,11 @@ export interface components {
59625
59500
  */
59626
59501
  companyExemptionAmount: string;
59627
59502
  /**
59628
- * Appliedexemptions
59629
- * @description Per-tax exemption info that was applied when the item was last calculated/saved
59630
- * @default []
59631
- */
59632
- appliedExemptions: components["schemas"]["TaxExemptionInfoSchema"][] | null;
59633
- /**
59634
- * Hasstampduty
59635
- * @description Whether stamp duty is applicable for this item's customer/item scope (based on active stamp-duty TaxRule matching)
59636
- * @default false
59637
- */
59638
- hasStampDuty: boolean;
59639
- /**
59640
- * Appliedstampduties
59641
- * @description List of stamp duty tax ids that were applied to this item
59503
+ * Taxexemptions
59504
+ * @description Selected tax rule ids per tax for this item
59642
59505
  * @default []
59643
59506
  */
59644
- appliedStampDuties: components["schemas"]["TaxSharedSchema"][];
59645
- /**
59646
- * Stampdutychargebearer
59647
- * @description Who bears the stamp duty charge (only 'customer' is currently supported); null when not applicable.
59648
- */
59649
- stampDutyChargeBearer?: string | null;
59650
- /**
59651
- * Stampdutyamount
59652
- * @description Stamp duty amount for this item in document/customer currency
59653
- * @default 0
59654
- */
59655
- stampDutyAmount: string;
59656
- /**
59657
- * Secondarystampdutyamount
59658
- * @description Stamp duty amount for this item in secondary (USD) currency
59659
- * @default 0
59660
- */
59661
- secondaryStampDutyAmount: string;
59662
- /**
59663
- * Companystampdutyamount
59664
- * @description Stamp duty amount for this item in company currency
59665
- * @default 0
59666
- */
59667
- companyStampDutyAmount: string;
59507
+ taxExemptions: components["schemas"]["TaxExemptionSelectionResponseSchema"][] | null;
59668
59508
  /**
59669
59509
  * Total
59670
59510
  * @description This field is a number representing grand total for the item.
@@ -60115,11 +59955,11 @@ export interface components {
60115
59955
  */
60116
59956
  includeTaxInUnitPrice: boolean;
60117
59957
  /**
60118
- * Appliedexemptions
60119
- * @description List of tax exemption ids to apply for this item
59958
+ * Taxexemptions
59959
+ * @description List of selected tax rule ids per tax for this item
60120
59960
  * @default []
60121
59961
  */
60122
- appliedExemptions: string[];
59962
+ taxExemptions: components["schemas"]["TaxExemptionSelectionSchema"][];
60123
59963
  /**
60124
59964
  * Dimensionallocations
60125
59965
  * @description - Optional per-line override. Field name: `dimensionAllocations` on each line/item row.
@@ -60130,12 +59970,6 @@ export interface components {
60130
59970
  * `dimensionIsInactive`, `duplicateDimension`, `invalidPercentage`, `dimensionAllocationsMustTotal100`.
60131
59971
  */
60132
59972
  dimensionAllocations?: components["schemas"]["DimensionAllocationInput"][] | null;
60133
- /**
60134
- * Appliedstampduties
60135
- * @description List of stamp duty tax ids to apply for this item
60136
- * @default []
60137
- */
60138
- appliedStampDuties: string[];
60139
59973
  };
60140
59974
  /** CreateUpdateSalesInvoiceSchema */
60141
59975
  CreateUpdateSalesInvoiceSchema: {
@@ -102513,7 +102347,7 @@ export interface operations {
102513
102347
  [name: string]: unknown;
102514
102348
  };
102515
102349
  content: {
102516
- "application/json": components["schemas"]["MessageWithCode"];
102350
+ "application/json": components["schemas"]["CalculateTotalsErrorResponse"];
102517
102351
  };
102518
102352
  };
102519
102353
  /** @description Internal Server Error */
@@ -104986,7 +104820,7 @@ export interface operations {
104986
104820
  [name: string]: unknown;
104987
104821
  };
104988
104822
  content: {
104989
- "application/json": components["schemas"]["MessageWithCode"];
104823
+ "application/json": components["schemas"]["CalculateTotalsErrorResponse"];
104990
104824
  };
104991
104825
  };
104992
104826
  /** @description Internal Server Error */
@@ -107195,7 +107029,7 @@ export interface operations {
107195
107029
  [name: string]: unknown;
107196
107030
  };
107197
107031
  content: {
107198
- "application/json": components["schemas"]["MessageWithCode"];
107032
+ "application/json": components["schemas"]["CalculateTotalsErrorResponse"];
107199
107033
  };
107200
107034
  };
107201
107035
  /** @description Internal Server Error */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erp-galoper/types",
3
- "version": "1.0.2088",
3
+ "version": "1.0.2089",
4
4
  "main": "openapi.ts",
5
5
  "types": "openapi.ts",
6
6
  "files": [