@aimee.shop/sdk 0.20.0-dev.162 → 0.21.0-dev.173
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/dist/generated/core-api.d.ts +146 -1
- package/dist/generated/core-api.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/services/core/checkout.client.d.ts +8 -0
- package/dist/services/core/checkout.client.d.ts.map +1 -1
- package/dist/services/core/checkout.client.js +7 -0
- package/dist/services/core/checkout.client.js.map +1 -1
- package/package.json +1 -1
|
@@ -7459,6 +7459,26 @@ export interface paths {
|
|
|
7459
7459
|
patch?: never;
|
|
7460
7460
|
trace?: never;
|
|
7461
7461
|
};
|
|
7462
|
+
'/v1/checkout/sessions/{id}/billing-address': {
|
|
7463
|
+
parameters: {
|
|
7464
|
+
query?: never;
|
|
7465
|
+
header?: never;
|
|
7466
|
+
path?: never;
|
|
7467
|
+
cookie?: never;
|
|
7468
|
+
};
|
|
7469
|
+
get?: never;
|
|
7470
|
+
/**
|
|
7471
|
+
* Update billing address
|
|
7472
|
+
* @description Set or replace the billing address on a checkout session. Totals and tax keep using the shipping address.
|
|
7473
|
+
*/
|
|
7474
|
+
put: operations['CheckoutController_updateBillingAddress'];
|
|
7475
|
+
post?: never;
|
|
7476
|
+
delete?: never;
|
|
7477
|
+
options?: never;
|
|
7478
|
+
head?: never;
|
|
7479
|
+
patch?: never;
|
|
7480
|
+
trace?: never;
|
|
7481
|
+
};
|
|
7462
7482
|
'/v1/checkout/sessions/{id}/shipping-rates': {
|
|
7463
7483
|
parameters: {
|
|
7464
7484
|
query?: never;
|
|
@@ -18166,10 +18186,15 @@ export interface components {
|
|
|
18166
18186
|
/** @description Tenant slug */
|
|
18167
18187
|
tenantSlug: string;
|
|
18168
18188
|
/**
|
|
18169
|
-
* @description Status of the tenant. Listed tenants are active, except that the admin bootstrap also lists
|
|
18189
|
+
* @description Status of the tenant. Listed tenants are active, except that the admin bootstrap also lists suspended tenants (see suspensionCause).
|
|
18170
18190
|
* @enum {string}
|
|
18171
18191
|
*/
|
|
18172
18192
|
tenantStatus?: 'active' | 'suspended';
|
|
18193
|
+
/**
|
|
18194
|
+
* @description Why the tenant is suspended; only when tenantStatus is suspended. non_payment: billing access only. manual: no access, contact support.
|
|
18195
|
+
* @enum {string}
|
|
18196
|
+
*/
|
|
18197
|
+
suspensionCause?: 'non_payment' | 'manual';
|
|
18173
18198
|
/**
|
|
18174
18199
|
* @description Membership status
|
|
18175
18200
|
* @enum {string}
|
|
@@ -21945,6 +21970,8 @@ export interface components {
|
|
|
21945
21970
|
maximumTaxable?: string;
|
|
21946
21971
|
customerType?: string;
|
|
21947
21972
|
productCategory?: string;
|
|
21973
|
+
/** @description Postal code(s) the rate is limited to, separated by "," or ";" (trailing * is a prefix wildcard); blank or * means any ZIP */
|
|
21974
|
+
zip: string;
|
|
21948
21975
|
};
|
|
21949
21976
|
CombinedTaxRateResponseDto: {
|
|
21950
21977
|
/** @description Combined rate as decimal */
|
|
@@ -29917,6 +29944,83 @@ export interface components {
|
|
|
29917
29944
|
*/
|
|
29918
29945
|
useForBilling?: boolean;
|
|
29919
29946
|
};
|
|
29947
|
+
UpdateBillingAddressDto: {
|
|
29948
|
+
/**
|
|
29949
|
+
* @description Reference to a saved CustomerAddress this was copied from
|
|
29950
|
+
* @example 550e8400-e29b-41d4-a716-446655440000
|
|
29951
|
+
*/
|
|
29952
|
+
addressId?: string;
|
|
29953
|
+
/**
|
|
29954
|
+
* @description First name
|
|
29955
|
+
* @example John
|
|
29956
|
+
*/
|
|
29957
|
+
firstName: string;
|
|
29958
|
+
/**
|
|
29959
|
+
* @description Last name
|
|
29960
|
+
* @example Doe
|
|
29961
|
+
*/
|
|
29962
|
+
lastName: string;
|
|
29963
|
+
/**
|
|
29964
|
+
* @description Company name
|
|
29965
|
+
* @example Acme Corp
|
|
29966
|
+
*/
|
|
29967
|
+
company?: string;
|
|
29968
|
+
/**
|
|
29969
|
+
* @description Address line 1
|
|
29970
|
+
* @example 123 Main St
|
|
29971
|
+
*/
|
|
29972
|
+
address1: string;
|
|
29973
|
+
/**
|
|
29974
|
+
* @description Address line 2
|
|
29975
|
+
* @example Apt 4B
|
|
29976
|
+
*/
|
|
29977
|
+
address2?: string;
|
|
29978
|
+
/**
|
|
29979
|
+
* @description City
|
|
29980
|
+
* @example New York
|
|
29981
|
+
*/
|
|
29982
|
+
city: string;
|
|
29983
|
+
/**
|
|
29984
|
+
* @description State/province/region code
|
|
29985
|
+
* @example NY
|
|
29986
|
+
*/
|
|
29987
|
+
state?: string;
|
|
29988
|
+
/**
|
|
29989
|
+
* @description State/province/region display name
|
|
29990
|
+
* @example New York
|
|
29991
|
+
*/
|
|
29992
|
+
stateName?: string;
|
|
29993
|
+
/**
|
|
29994
|
+
* @description ZIP or postal code. Required unless the country does not use postal codes (e.g. HK, AE); format-checked for countries with a known pattern.
|
|
29995
|
+
* @example 10001
|
|
29996
|
+
*/
|
|
29997
|
+
zip?: string;
|
|
29998
|
+
/**
|
|
29999
|
+
* @description Country as ISO-2, ISO-3, or English name. Stored and returned as ISO-2.
|
|
30000
|
+
* @example US
|
|
30001
|
+
*/
|
|
30002
|
+
country: string;
|
|
30003
|
+
/**
|
|
30004
|
+
* @description Country display name
|
|
30005
|
+
* @example United States
|
|
30006
|
+
*/
|
|
30007
|
+
countryName?: string;
|
|
30008
|
+
/**
|
|
30009
|
+
* @description Phone number
|
|
30010
|
+
* @example +1-555-123-4567
|
|
30011
|
+
*/
|
|
30012
|
+
phone?: string;
|
|
30013
|
+
/**
|
|
30014
|
+
* @description Email address
|
|
30015
|
+
* @example john.doe@example.com
|
|
30016
|
+
*/
|
|
30017
|
+
email?: string;
|
|
30018
|
+
/**
|
|
30019
|
+
* @description Delivery instructions
|
|
30020
|
+
* @example Leave at front door
|
|
30021
|
+
*/
|
|
30022
|
+
instructions?: string;
|
|
30023
|
+
};
|
|
29920
30024
|
Object: Record<string, unknown>;
|
|
29921
30025
|
SelectShippingMethodDto: {
|
|
29922
30026
|
/**
|
|
@@ -54207,6 +54311,47 @@ export interface operations {
|
|
|
54207
54311
|
};
|
|
54208
54312
|
};
|
|
54209
54313
|
};
|
|
54314
|
+
CheckoutController_updateBillingAddress: {
|
|
54315
|
+
parameters: {
|
|
54316
|
+
query?: never;
|
|
54317
|
+
header?: never;
|
|
54318
|
+
path: {
|
|
54319
|
+
/** @description Checkout session ID */
|
|
54320
|
+
id: string;
|
|
54321
|
+
};
|
|
54322
|
+
cookie?: never;
|
|
54323
|
+
};
|
|
54324
|
+
requestBody: {
|
|
54325
|
+
content: {
|
|
54326
|
+
'application/json': components['schemas']['UpdateBillingAddressDto'];
|
|
54327
|
+
};
|
|
54328
|
+
};
|
|
54329
|
+
responses: {
|
|
54330
|
+
/** @description Billing address updated successfully */
|
|
54331
|
+
200: {
|
|
54332
|
+
headers: {
|
|
54333
|
+
[name: string]: unknown;
|
|
54334
|
+
};
|
|
54335
|
+
content: {
|
|
54336
|
+
'application/json': components['schemas']['CheckoutSessionDto'];
|
|
54337
|
+
};
|
|
54338
|
+
};
|
|
54339
|
+
/** @description Invalid address data */
|
|
54340
|
+
400: {
|
|
54341
|
+
headers: {
|
|
54342
|
+
[name: string]: unknown;
|
|
54343
|
+
};
|
|
54344
|
+
content?: never;
|
|
54345
|
+
};
|
|
54346
|
+
/** @description Checkout session not found */
|
|
54347
|
+
404: {
|
|
54348
|
+
headers: {
|
|
54349
|
+
[name: string]: unknown;
|
|
54350
|
+
};
|
|
54351
|
+
content?: never;
|
|
54352
|
+
};
|
|
54353
|
+
};
|
|
54354
|
+
};
|
|
54210
54355
|
CheckoutController_getShippingRates: {
|
|
54211
54356
|
parameters: {
|
|
54212
54357
|
query?: {
|