@aimee.shop/sdk 0.20.0 → 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 +138 -0
- 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;
|
|
@@ -29924,6 +29944,83 @@ export interface components {
|
|
|
29924
29944
|
*/
|
|
29925
29945
|
useForBilling?: boolean;
|
|
29926
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
|
+
};
|
|
29927
30024
|
Object: Record<string, unknown>;
|
|
29928
30025
|
SelectShippingMethodDto: {
|
|
29929
30026
|
/**
|
|
@@ -54214,6 +54311,47 @@ export interface operations {
|
|
|
54214
54311
|
};
|
|
54215
54312
|
};
|
|
54216
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
|
+
};
|
|
54217
54355
|
CheckoutController_getShippingRates: {
|
|
54218
54356
|
parameters: {
|
|
54219
54357
|
query?: {
|