@aimee.shop/sdk 0.21.0-dev.176 → 0.21.0-dev.180

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.
@@ -4547,6 +4547,91 @@ export interface paths {
4547
4547
  patch?: never;
4548
4548
  trace?: never;
4549
4549
  };
4550
+ '/v1/taxes/starter-rates': {
4551
+ parameters: {
4552
+ query?: never;
4553
+ header?: never;
4554
+ path?: never;
4555
+ cookie?: never;
4556
+ };
4557
+ /** Current starter rate set, its label and the tenant opt-in state */
4558
+ get: operations['StarterTaxRatesController_getStatus'];
4559
+ put?: never;
4560
+ post?: never;
4561
+ delete?: never;
4562
+ options?: never;
4563
+ head?: never;
4564
+ patch?: never;
4565
+ trace?: never;
4566
+ };
4567
+ '/v1/taxes/starter-rates/opt-in/dry-run': {
4568
+ parameters: {
4569
+ query?: never;
4570
+ header?: never;
4571
+ path?: never;
4572
+ cookie?: never;
4573
+ };
4574
+ get?: never;
4575
+ put?: never;
4576
+ /** Preview opting in to the starter rates */
4577
+ post: operations['StarterTaxRatesController_dryRunOptIn'];
4578
+ delete?: never;
4579
+ options?: never;
4580
+ head?: never;
4581
+ patch?: never;
4582
+ trace?: never;
4583
+ };
4584
+ '/v1/taxes/starter-rates/opt-in': {
4585
+ parameters: {
4586
+ query?: never;
4587
+ header?: never;
4588
+ path?: never;
4589
+ cookie?: never;
4590
+ };
4591
+ get?: never;
4592
+ put?: never;
4593
+ /** Opt in: import the current starter set into the tenant tax tables (never overwrites existing rates) */
4594
+ post: operations['StarterTaxRatesController_optIn'];
4595
+ delete?: never;
4596
+ options?: never;
4597
+ head?: never;
4598
+ patch?: never;
4599
+ trace?: never;
4600
+ };
4601
+ '/v1/taxes/starter-rates/updates': {
4602
+ parameters: {
4603
+ query?: never;
4604
+ header?: never;
4605
+ path?: never;
4606
+ cookie?: never;
4607
+ };
4608
+ /** Diff the tenant starter rows against the latest starter set (added, changed, removed, skipped merchant-owned) */
4609
+ get: operations['StarterTaxRatesController_listUpdates'];
4610
+ put?: never;
4611
+ post?: never;
4612
+ delete?: never;
4613
+ options?: never;
4614
+ head?: never;
4615
+ patch?: never;
4616
+ trace?: never;
4617
+ };
4618
+ '/v1/taxes/starter-rates/updates/apply': {
4619
+ parameters: {
4620
+ query?: never;
4621
+ header?: never;
4622
+ path?: never;
4623
+ cookie?: never;
4624
+ };
4625
+ get?: never;
4626
+ put?: never;
4627
+ /** Apply selected starter updates; merchant-owned rows are skipped */
4628
+ post: operations['StarterTaxRatesController_applyUpdates'];
4629
+ delete?: never;
4630
+ options?: never;
4631
+ head?: never;
4632
+ patch?: never;
4633
+ trace?: never;
4634
+ };
4550
4635
  '/v1/shipping/calculate': {
4551
4636
  parameters: {
4552
4637
  query?: never;
@@ -21203,6 +21288,8 @@ export interface components {
21203
21288
  totalTax: string;
21204
21289
  /** @description Cents (bigint as string) */
21205
21290
  totalDiscount: string;
21291
+ /** @description Tax on the shipping charge, cents (bigint as string); included in totalTax */
21292
+ shippingTax?: string;
21206
21293
  lineItems: components['schemas']['TaxLineItemResultResponseDto'][];
21207
21294
  taxSummary: components['schemas']['TaxSummaryResponseDto'][];
21208
21295
  /** @enum {string} */
@@ -22016,6 +22103,11 @@ export interface components {
22016
22103
  * @example false
22017
22104
  */
22018
22105
  isOverride?: boolean;
22106
+ /**
22107
+ * @description Whether this rate also applies to the shipping charge (true where the state taxes shipping)
22108
+ * @example false
22109
+ */
22110
+ isShippingTaxable?: boolean;
22019
22111
  /**
22020
22112
  * @description Minimum amount subject to tax in cents
22021
22113
  * @example 1
@@ -22071,6 +22163,7 @@ export interface components {
22071
22163
  zip: string;
22072
22164
  isCompound: boolean;
22073
22165
  isOverride: boolean;
22166
+ isShippingTaxable: boolean;
22074
22167
  /** @description / Amount in cents */
22075
22168
  minimumTaxable: string | null;
22076
22169
  /** @description / Amount in cents */
@@ -22083,6 +22176,10 @@ export interface components {
22083
22176
  expirationDate: string | null;
22084
22177
  displayName: string | null;
22085
22178
  isActive: boolean;
22179
+ /** @description Starter set version this row came from; null for merchant-created rows */
22180
+ starterVersion: string | null;
22181
+ /** @description True once the merchant edits a starter row */
22182
+ starterEdited: boolean;
22086
22183
  /** Format: date-time */
22087
22184
  createdAt: string;
22088
22185
  /** Format: date-time */
@@ -22106,6 +22203,7 @@ export interface components {
22106
22203
  zip: string;
22107
22204
  isCompound: boolean;
22108
22205
  isOverride: boolean;
22206
+ isShippingTaxable: boolean;
22109
22207
  /** @description / Amount in cents */
22110
22208
  minimumTaxable: string | null;
22111
22209
  /** @description / Amount in cents */
@@ -22118,6 +22216,10 @@ export interface components {
22118
22216
  expirationDate: string | null;
22119
22217
  displayName: string | null;
22120
22218
  isActive: boolean;
22219
+ /** @description Starter set version this row came from; null for merchant-created rows */
22220
+ starterVersion: string | null;
22221
+ /** @description True once the merchant edits a starter row */
22222
+ starterEdited: boolean;
22121
22223
  /** Format: date-time */
22122
22224
  createdAt: string;
22123
22225
  /** Format: date-time */
@@ -22162,6 +22264,7 @@ export interface components {
22162
22264
  rate: number;
22163
22265
  isCompound: boolean;
22164
22266
  isOverride: boolean;
22267
+ isShippingTaxable: boolean;
22165
22268
  /** Format: date-time */
22166
22269
  effectiveDate: string;
22167
22270
  /** @description Cents (bigint as string) */
@@ -22237,6 +22340,11 @@ export interface components {
22237
22340
  * @example false
22238
22341
  */
22239
22342
  isOverride?: boolean;
22343
+ /**
22344
+ * @description Whether this rate also applies to the shipping charge (true where the state taxes shipping)
22345
+ * @example false
22346
+ */
22347
+ isShippingTaxable?: boolean;
22240
22348
  /**
22241
22349
  * @description Minimum amount subject to tax in cents
22242
22350
  * @example 1
@@ -22279,6 +22387,102 @@ export interface components {
22279
22387
  */
22280
22388
  isActive?: boolean;
22281
22389
  };
22390
+ StarterTaxRateRowDto: {
22391
+ /** @example US:CA:sales */
22392
+ key: string;
22393
+ /** @example US */
22394
+ country: string;
22395
+ /** @example CA */
22396
+ state: string;
22397
+ /** @example sales */
22398
+ taxType: string;
22399
+ /**
22400
+ * @description Percentage, 7.25 = 7.25%
22401
+ * @example 7.25
22402
+ */
22403
+ ratePercent: number;
22404
+ isShippingTaxable: boolean;
22405
+ /** @example 2025-01-01 */
22406
+ effectiveDate: string;
22407
+ };
22408
+ StarterTaxRatesStatusDto: {
22409
+ /** @example Starter rates (statewide base only, last updated 2026-10-22). Local taxes not included. Review before going live. */
22410
+ label: string;
22411
+ /** @example 2026-10-22.1 */
22412
+ availableVersion: string;
22413
+ /** Format: date-time */
22414
+ publishedAt: string;
22415
+ optedIn: boolean;
22416
+ appliedVersion: string | null;
22417
+ /** Format: date-time */
22418
+ optedInAt: string | null;
22419
+ rows: components['schemas']['StarterTaxRateRowDto'][];
22420
+ };
22421
+ StarterOptInDryRunResponseDto: {
22422
+ /** @example Starter rates (statewide base only, last updated 2026-10-22). Local taxes not included. Review before going live. */
22423
+ label: string;
22424
+ /** @example 2026-10-22.1 */
22425
+ version: string;
22426
+ preview: components['schemas']['TaxImportDryRunResultDto'];
22427
+ };
22428
+ StarterOptInResponseDto: {
22429
+ /** @example Starter rates (statewide base only, last updated 2026-10-22). Local taxes not included. Review before going live. */
22430
+ label: string;
22431
+ /** @example 2026-10-22.1 */
22432
+ version: string;
22433
+ result: components['schemas']['TaxImportResultDto'];
22434
+ };
22435
+ StarterDiffRowDto: {
22436
+ /** @example US:CA:sales */
22437
+ key: string;
22438
+ country: string;
22439
+ state: string;
22440
+ taxType: string;
22441
+ /** @description Existing tenant rate id */
22442
+ rateId?: string;
22443
+ currentRatePercent?: number;
22444
+ newRatePercent?: number;
22445
+ /** @example 2025-01-01 */
22446
+ currentEffectiveDate?: string;
22447
+ /** @example 2025-01-01 */
22448
+ newEffectiveDate?: string;
22449
+ isShippingTaxable?: boolean;
22450
+ currentIsShippingTaxable?: boolean;
22451
+ /**
22452
+ * @description Why a merchant-owned row is skipped
22453
+ * @enum {string}
22454
+ */
22455
+ reason?: 'merchant-edited' | 'merchant-created';
22456
+ };
22457
+ StarterUpdatesResponseDto: {
22458
+ /** @example Starter rates (statewide base only, last updated 2026-10-22). Local taxes not included. Review before going live. */
22459
+ label: string;
22460
+ /** @description Version the tenant last fully applied */
22461
+ appliedVersion: string;
22462
+ availableVersion: string;
22463
+ /** Format: date-time */
22464
+ publishedAt: string;
22465
+ added: components['schemas']['StarterDiffRowDto'][];
22466
+ changed: components['schemas']['StarterDiffRowDto'][];
22467
+ removed: components['schemas']['StarterDiffRowDto'][];
22468
+ /** @description Merchant-owned rows; never changed by starter updates */
22469
+ skipped: components['schemas']['StarterDiffRowDto'][];
22470
+ };
22471
+ ApplyStarterUpdatesDto: {
22472
+ /** @description Row keys from the updates diff (`US:CA:sales`) to apply. Merchant-owned rows are skipped. */
22473
+ keys?: string[];
22474
+ /** @description Apply every added, changed and removed row in the diff */
22475
+ all?: boolean;
22476
+ };
22477
+ StarterApplyUpdatesResponseDto: {
22478
+ /** @example Starter rates (statewide base only, last updated 2026-10-22). Local taxes not included. Review before going live. */
22479
+ label: string;
22480
+ version: string;
22481
+ added: number;
22482
+ changed: number;
22483
+ removed: number;
22484
+ skipped: components['schemas']['StarterDiffRowDto'][];
22485
+ };
22282
22486
  ShippingAddressDto: {
22283
22487
  /**
22284
22488
  * @description Contact or business name
@@ -48485,6 +48689,110 @@ export interface operations {
48485
48689
  };
48486
48690
  };
48487
48691
  };
48692
+ StarterTaxRatesController_getStatus: {
48693
+ parameters: {
48694
+ query?: never;
48695
+ header?: never;
48696
+ path?: never;
48697
+ cookie?: never;
48698
+ };
48699
+ requestBody?: never;
48700
+ responses: {
48701
+ /** @description Label, versions, opt-in state and rows */
48702
+ 200: {
48703
+ headers: {
48704
+ [name: string]: unknown;
48705
+ };
48706
+ content: {
48707
+ 'application/json': components['schemas']['StarterTaxRatesStatusDto'];
48708
+ };
48709
+ };
48710
+ };
48711
+ };
48712
+ StarterTaxRatesController_dryRunOptIn: {
48713
+ parameters: {
48714
+ query?: never;
48715
+ header?: never;
48716
+ path?: never;
48717
+ cookie?: never;
48718
+ };
48719
+ requestBody?: never;
48720
+ responses: {
48721
+ /** @description Label, version and importer dry-run preview */
48722
+ 200: {
48723
+ headers: {
48724
+ [name: string]: unknown;
48725
+ };
48726
+ content: {
48727
+ 'application/json': components['schemas']['StarterOptInDryRunResponseDto'];
48728
+ };
48729
+ };
48730
+ };
48731
+ };
48732
+ StarterTaxRatesController_optIn: {
48733
+ parameters: {
48734
+ query?: never;
48735
+ header?: never;
48736
+ path?: never;
48737
+ cookie?: never;
48738
+ };
48739
+ requestBody?: never;
48740
+ responses: {
48741
+ /** @description Label, version and import result */
48742
+ 200: {
48743
+ headers: {
48744
+ [name: string]: unknown;
48745
+ };
48746
+ content: {
48747
+ 'application/json': components['schemas']['StarterOptInResponseDto'];
48748
+ };
48749
+ };
48750
+ };
48751
+ };
48752
+ StarterTaxRatesController_listUpdates: {
48753
+ parameters: {
48754
+ query?: never;
48755
+ header?: never;
48756
+ path?: never;
48757
+ cookie?: never;
48758
+ };
48759
+ requestBody?: never;
48760
+ responses: {
48761
+ /** @description Label, versions and the diff */
48762
+ 200: {
48763
+ headers: {
48764
+ [name: string]: unknown;
48765
+ };
48766
+ content: {
48767
+ 'application/json': components['schemas']['StarterUpdatesResponseDto'];
48768
+ };
48769
+ };
48770
+ };
48771
+ };
48772
+ StarterTaxRatesController_applyUpdates: {
48773
+ parameters: {
48774
+ query?: never;
48775
+ header?: never;
48776
+ path?: never;
48777
+ cookie?: never;
48778
+ };
48779
+ requestBody: {
48780
+ content: {
48781
+ 'application/json': components['schemas']['ApplyStarterUpdatesDto'];
48782
+ };
48783
+ };
48784
+ responses: {
48785
+ /** @description Counts applied and the skipped rows */
48786
+ 200: {
48787
+ headers: {
48788
+ [name: string]: unknown;
48789
+ };
48790
+ content: {
48791
+ 'application/json': components['schemas']['StarterApplyUpdatesResponseDto'];
48792
+ };
48793
+ };
48794
+ };
48795
+ };
48488
48796
  ShippingController_calculateRates: {
48489
48797
  parameters: {
48490
48798
  query?: never;