@aimee.shop/sdk 0.21.0-dev.173 → 0.21.0-dev.176
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 +805 -6
- package/dist/generated/core-api.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/services/core/checkout.client.d.ts +2 -0
- package/dist/services/core/checkout.client.d.ts.map +1 -1
- package/dist/services/core/checkout.client.js.map +1 -1
- package/dist/services/core/shipping/types.d.ts +10 -0
- package/dist/services/core/shipping/types.d.ts.map +1 -1
- package/dist/services/core/storefront/index.d.ts +3 -1
- package/dist/services/core/storefront/index.d.ts.map +1 -1
- package/dist/services/core/storefront/index.js +2 -0
- package/dist/services/core/storefront/index.js.map +1 -1
- package/dist/services/core/storefront/storefront-orders.client.d.ts +37 -0
- package/dist/services/core/storefront/storefront-orders.client.d.ts.map +1 -1
- package/dist/services/core/storefront/storefront-orders.client.js +31 -0
- package/dist/services/core/storefront/storefront-orders.client.js.map +1 -1
- package/dist/services/core/storefront/storefront-plans.client.d.ts +8 -1
- package/dist/services/core/storefront/storefront-plans.client.d.ts.map +1 -1
- package/dist/services/core/storefront/storefront-plans.client.js.map +1 -1
- package/dist/services/core/storefront/storefront-privacy.client.d.ts +37 -0
- package/dist/services/core/storefront/storefront-privacy.client.d.ts.map +1 -0
- package/dist/services/core/storefront/storefront-privacy.client.js +45 -0
- package/dist/services/core/storefront/storefront-privacy.client.js.map +1 -0
- package/dist/services/core/storefront/storefront-returns.client.d.ts +53 -0
- package/dist/services/core/storefront/storefront-returns.client.d.ts.map +1 -0
- package/dist/services/core/storefront/storefront-returns.client.js +70 -0
- package/dist/services/core/storefront/storefront-returns.client.js.map +1 -0
- package/dist/services/core/storefront/storefront.client.d.ts +15 -1
- package/dist/services/core/storefront/storefront.client.d.ts.map +1 -1
- package/dist/services/core/storefront/storefront.client.js +25 -1
- package/dist/services/core/storefront/storefront.client.js.map +1 -1
- package/package.json +1 -1
|
@@ -9901,6 +9901,206 @@ export interface paths {
|
|
|
9901
9901
|
patch?: never;
|
|
9902
9902
|
trace?: never;
|
|
9903
9903
|
};
|
|
9904
|
+
'/v1/storefront/orders/{id}/fulfillments': {
|
|
9905
|
+
parameters: {
|
|
9906
|
+
query?: never;
|
|
9907
|
+
header?: never;
|
|
9908
|
+
path?: never;
|
|
9909
|
+
cookie?: never;
|
|
9910
|
+
};
|
|
9911
|
+
/**
|
|
9912
|
+
* List own order shipments
|
|
9913
|
+
* @description Shipments of an order belonging to the authenticated customer, with carrier, tracking and the lines in each. Otherwise 404.
|
|
9914
|
+
*/
|
|
9915
|
+
get: operations['StorefrontOrdersController_getFulfillments'];
|
|
9916
|
+
put?: never;
|
|
9917
|
+
post?: never;
|
|
9918
|
+
delete?: never;
|
|
9919
|
+
options?: never;
|
|
9920
|
+
head?: never;
|
|
9921
|
+
patch?: never;
|
|
9922
|
+
trace?: never;
|
|
9923
|
+
};
|
|
9924
|
+
'/v1/storefront/orders/{id}/invoices': {
|
|
9925
|
+
parameters: {
|
|
9926
|
+
query?: never;
|
|
9927
|
+
header?: never;
|
|
9928
|
+
path?: never;
|
|
9929
|
+
cookie?: never;
|
|
9930
|
+
};
|
|
9931
|
+
/**
|
|
9932
|
+
* List own order invoices
|
|
9933
|
+
* @description Invoices of an order belonging to the authenticated customer (drafts excluded); otherwise 404.
|
|
9934
|
+
*/
|
|
9935
|
+
get: operations['StorefrontOrdersController_getInvoices'];
|
|
9936
|
+
put?: never;
|
|
9937
|
+
post?: never;
|
|
9938
|
+
delete?: never;
|
|
9939
|
+
options?: never;
|
|
9940
|
+
head?: never;
|
|
9941
|
+
patch?: never;
|
|
9942
|
+
trace?: never;
|
|
9943
|
+
};
|
|
9944
|
+
'/v1/storefront/orders/{id}/cancellation': {
|
|
9945
|
+
parameters: {
|
|
9946
|
+
query?: never;
|
|
9947
|
+
header?: never;
|
|
9948
|
+
path?: never;
|
|
9949
|
+
cookie?: never;
|
|
9950
|
+
};
|
|
9951
|
+
/**
|
|
9952
|
+
* Can the order still be cancelled
|
|
9953
|
+
* @description Whether the shopper can cancel now under the store cancel window, and until when. Refused once shipped or released to the ERP.
|
|
9954
|
+
*/
|
|
9955
|
+
get: operations['StorefrontOrdersController_getCancellationStatus'];
|
|
9956
|
+
put?: never;
|
|
9957
|
+
post?: never;
|
|
9958
|
+
delete?: never;
|
|
9959
|
+
options?: never;
|
|
9960
|
+
head?: never;
|
|
9961
|
+
patch?: never;
|
|
9962
|
+
trace?: never;
|
|
9963
|
+
};
|
|
9964
|
+
'/v1/storefront/orders/{id}/cancel': {
|
|
9965
|
+
parameters: {
|
|
9966
|
+
query?: never;
|
|
9967
|
+
header?: never;
|
|
9968
|
+
path?: never;
|
|
9969
|
+
cookie?: never;
|
|
9970
|
+
};
|
|
9971
|
+
get?: never;
|
|
9972
|
+
put?: never;
|
|
9973
|
+
/**
|
|
9974
|
+
* Cancel own order
|
|
9975
|
+
* @description Cancels an order of the authenticated customer within the store cancel window (default 30 minutes, minimum 5). 409 with code ORDER_CANCEL_WINDOW_CLOSED, ORDER_ALREADY_SHIPPED, ORDER_RELEASED_TO_ERP or ORDER_NOT_CANCELLABLE otherwise.
|
|
9976
|
+
*/
|
|
9977
|
+
post: operations['StorefrontOrderActionsController_cancel'];
|
|
9978
|
+
delete?: never;
|
|
9979
|
+
options?: never;
|
|
9980
|
+
head?: never;
|
|
9981
|
+
patch?: never;
|
|
9982
|
+
trace?: never;
|
|
9983
|
+
};
|
|
9984
|
+
'/v1/storefront/orders/{orderId}/returns': {
|
|
9985
|
+
parameters: {
|
|
9986
|
+
query?: never;
|
|
9987
|
+
header?: never;
|
|
9988
|
+
path?: never;
|
|
9989
|
+
cookie?: never;
|
|
9990
|
+
};
|
|
9991
|
+
get?: never;
|
|
9992
|
+
put?: never;
|
|
9993
|
+
/**
|
|
9994
|
+
* Start a return for own order
|
|
9995
|
+
* @description Requests a return of items from an order of the authenticated customer. The window is 30 days from delivery (else from the order date); quantities already on a live return are not returnable again.
|
|
9996
|
+
*/
|
|
9997
|
+
post: operations['StorefrontReturnsController_startReturn'];
|
|
9998
|
+
delete?: never;
|
|
9999
|
+
options?: never;
|
|
10000
|
+
head?: never;
|
|
10001
|
+
patch?: never;
|
|
10002
|
+
trace?: never;
|
|
10003
|
+
};
|
|
10004
|
+
'/v1/storefront/returns': {
|
|
10005
|
+
parameters: {
|
|
10006
|
+
query?: never;
|
|
10007
|
+
header?: never;
|
|
10008
|
+
path?: never;
|
|
10009
|
+
cookie?: never;
|
|
10010
|
+
};
|
|
10011
|
+
/**
|
|
10012
|
+
* List own returns
|
|
10013
|
+
* @description Returns of the authenticated customer, newest first.
|
|
10014
|
+
*/
|
|
10015
|
+
get: operations['StorefrontReturnsController_listReturns'];
|
|
10016
|
+
put?: never;
|
|
10017
|
+
post?: never;
|
|
10018
|
+
delete?: never;
|
|
10019
|
+
options?: never;
|
|
10020
|
+
head?: never;
|
|
10021
|
+
patch?: never;
|
|
10022
|
+
trace?: never;
|
|
10023
|
+
};
|
|
10024
|
+
'/v1/storefront/returns/{id}': {
|
|
10025
|
+
parameters: {
|
|
10026
|
+
query?: never;
|
|
10027
|
+
header?: never;
|
|
10028
|
+
path?: never;
|
|
10029
|
+
cookie?: never;
|
|
10030
|
+
};
|
|
10031
|
+
/**
|
|
10032
|
+
* Get own return
|
|
10033
|
+
* @description A return of the authenticated customer; otherwise 404.
|
|
10034
|
+
*/
|
|
10035
|
+
get: operations['StorefrontReturnsController_getReturn'];
|
|
10036
|
+
put?: never;
|
|
10037
|
+
post?: never;
|
|
10038
|
+
delete?: never;
|
|
10039
|
+
options?: never;
|
|
10040
|
+
head?: never;
|
|
10041
|
+
patch?: never;
|
|
10042
|
+
trace?: never;
|
|
10043
|
+
};
|
|
10044
|
+
'/v1/storefront/returns/{id}/label': {
|
|
10045
|
+
parameters: {
|
|
10046
|
+
query?: never;
|
|
10047
|
+
header?: never;
|
|
10048
|
+
path?: never;
|
|
10049
|
+
cookie?: never;
|
|
10050
|
+
};
|
|
10051
|
+
get?: never;
|
|
10052
|
+
put?: never;
|
|
10053
|
+
/**
|
|
10054
|
+
* Create the prepaid label for an approved return
|
|
10055
|
+
* @description Generates the return label once the merchant has approved the return; the response carries shippingLabelUrl and trackingNumber.
|
|
10056
|
+
*/
|
|
10057
|
+
post: operations['StorefrontReturnsController_createLabel'];
|
|
10058
|
+
delete?: never;
|
|
10059
|
+
options?: never;
|
|
10060
|
+
head?: never;
|
|
10061
|
+
patch?: never;
|
|
10062
|
+
trace?: never;
|
|
10063
|
+
};
|
|
10064
|
+
'/v1/storefront/privacy': {
|
|
10065
|
+
parameters: {
|
|
10066
|
+
query?: never;
|
|
10067
|
+
header?: never;
|
|
10068
|
+
path?: never;
|
|
10069
|
+
cookie?: never;
|
|
10070
|
+
};
|
|
10071
|
+
/**
|
|
10072
|
+
* Get own privacy choices
|
|
10073
|
+
* @description The "Do Not Sell or Share" opt-out kept on the account.
|
|
10074
|
+
*/
|
|
10075
|
+
get: operations['StorefrontPrivacyController_get'];
|
|
10076
|
+
put?: never;
|
|
10077
|
+
post?: never;
|
|
10078
|
+
delete?: never;
|
|
10079
|
+
options?: never;
|
|
10080
|
+
head?: never;
|
|
10081
|
+
patch?: never;
|
|
10082
|
+
trace?: never;
|
|
10083
|
+
};
|
|
10084
|
+
'/v1/storefront/privacy/data-sharing': {
|
|
10085
|
+
parameters: {
|
|
10086
|
+
query?: never;
|
|
10087
|
+
header?: never;
|
|
10088
|
+
path?: never;
|
|
10089
|
+
cookie?: never;
|
|
10090
|
+
};
|
|
10091
|
+
get?: never;
|
|
10092
|
+
/**
|
|
10093
|
+
* Opt out of, or back into, sale or sharing of data
|
|
10094
|
+
* @description Saves the "Do Not Sell or Share" choice on the account. A Global Privacy Control signal (source gpc) counts as an opt-out and can never opt back in. Audited.
|
|
10095
|
+
*/
|
|
10096
|
+
put: operations['StorefrontPrivacyController_updateDataSharing'];
|
|
10097
|
+
post?: never;
|
|
10098
|
+
delete?: never;
|
|
10099
|
+
options?: never;
|
|
10100
|
+
head?: never;
|
|
10101
|
+
patch?: never;
|
|
10102
|
+
trace?: never;
|
|
10103
|
+
};
|
|
9904
10104
|
'/v1/storefront/addresses': {
|
|
9905
10105
|
parameters: {
|
|
9906
10106
|
query?: never;
|
|
@@ -22321,9 +22521,25 @@ export interface components {
|
|
|
22321
22521
|
[key: string]: unknown;
|
|
22322
22522
|
};
|
|
22323
22523
|
};
|
|
22524
|
+
ExcludedShippingRateDto: {
|
|
22525
|
+
/** @description ID of the shipping rate entity */
|
|
22526
|
+
shippingRateId?: string;
|
|
22527
|
+
/** @example express-saver */
|
|
22528
|
+
serviceCode: string;
|
|
22529
|
+
/** @example Express Saver */
|
|
22530
|
+
serviceName: string;
|
|
22531
|
+
/**
|
|
22532
|
+
* @description Why the rate was withheld
|
|
22533
|
+
* @example po_box_not_supported
|
|
22534
|
+
* @enum {string}
|
|
22535
|
+
*/
|
|
22536
|
+
reason: 'po_box_not_supported';
|
|
22537
|
+
};
|
|
22324
22538
|
ShippingRateResponseDto: {
|
|
22325
22539
|
/** @description Available shipping rate options */
|
|
22326
22540
|
rates: components['schemas']['ShippingRateOptionDto'][];
|
|
22541
|
+
/** @description Rates withheld for this destination, each with a machine-readable reason */
|
|
22542
|
+
excludedRates: components['schemas']['ExcludedShippingRateDto'][];
|
|
22327
22543
|
/**
|
|
22328
22544
|
* @description Time taken to calculate rates in milliseconds
|
|
22329
22545
|
* @example 245
|
|
@@ -23651,7 +23867,6 @@ export interface components {
|
|
|
23651
23867
|
* @description Shipping restrictions for this class
|
|
23652
23868
|
* @example {
|
|
23653
23869
|
* "requiresSignature": true,
|
|
23654
|
-
* "noPoBox": true,
|
|
23655
23870
|
* "packagingRequirements": "extraPadding"
|
|
23656
23871
|
* }
|
|
23657
23872
|
*/
|
|
@@ -23705,7 +23920,6 @@ export interface components {
|
|
|
23705
23920
|
* @description Shipping restrictions for this class
|
|
23706
23921
|
* @example {
|
|
23707
23922
|
* "requiresSignature": true,
|
|
23708
|
-
* "noPoBox": true,
|
|
23709
23923
|
* "packagingRequirements": "extraPadding"
|
|
23710
23924
|
* }
|
|
23711
23925
|
*/
|
|
@@ -23760,7 +23974,6 @@ export interface components {
|
|
|
23760
23974
|
* @description Shipping restrictions for this class
|
|
23761
23975
|
* @example {
|
|
23762
23976
|
* "requiresSignature": true,
|
|
23763
|
-
* "noPoBox": true,
|
|
23764
23977
|
* "packagingRequirements": "extraPadding"
|
|
23765
23978
|
* }
|
|
23766
23979
|
*/
|
|
@@ -23841,6 +24054,12 @@ export interface components {
|
|
|
23841
24054
|
* @example 5
|
|
23842
24055
|
*/
|
|
23843
24056
|
deliveryEstimateMaxDays?: number;
|
|
24057
|
+
/**
|
|
24058
|
+
* @description When true the rate is not offered for PO box destinations (checkout returns it unavailable with code po_box_not_supported)
|
|
24059
|
+
* @default false
|
|
24060
|
+
* @example false
|
|
24061
|
+
*/
|
|
24062
|
+
noPoBox?: boolean;
|
|
23844
24063
|
/**
|
|
23845
24064
|
* @description Optional provider ID for calculated rates (null = internal calculation)
|
|
23846
24065
|
* @example provider-uuid-123
|
|
@@ -23949,9 +24168,15 @@ export interface components {
|
|
|
23949
24168
|
isAvailable: boolean;
|
|
23950
24169
|
/**
|
|
23951
24170
|
* @description Reason if not available
|
|
23952
|
-
* @example
|
|
24171
|
+
* @example Needs a street address; not available for PO boxes
|
|
23953
24172
|
*/
|
|
23954
24173
|
unavailableReason?: string;
|
|
24174
|
+
/**
|
|
24175
|
+
* @description Machine-readable code for why the option is unavailable; show a note to the shopper
|
|
24176
|
+
* @example po_box_not_supported
|
|
24177
|
+
* @enum {string}
|
|
24178
|
+
*/
|
|
24179
|
+
unavailableCode?: 'po_box_not_supported';
|
|
23955
24180
|
};
|
|
23956
24181
|
ShippingRateListResponseDto: {
|
|
23957
24182
|
/** @description List of shipping rates */
|
|
@@ -24023,6 +24248,12 @@ export interface components {
|
|
|
24023
24248
|
* @example 5
|
|
24024
24249
|
*/
|
|
24025
24250
|
deliveryEstimateMaxDays?: number;
|
|
24251
|
+
/**
|
|
24252
|
+
* @description When true the rate is not offered for PO box destinations (checkout returns it unavailable with code po_box_not_supported)
|
|
24253
|
+
* @default false
|
|
24254
|
+
* @example false
|
|
24255
|
+
*/
|
|
24256
|
+
noPoBox?: boolean;
|
|
24026
24257
|
/**
|
|
24027
24258
|
* @description Optional provider ID for calculated rates (null = internal calculation)
|
|
24028
24259
|
* @example provider-uuid-123
|
|
@@ -33487,6 +33718,141 @@ export interface components {
|
|
|
33487
33718
|
/** @description New password (minimum 8 characters) */
|
|
33488
33719
|
newPassword: string;
|
|
33489
33720
|
};
|
|
33721
|
+
StorefrontFulfillmentItemDto: {
|
|
33722
|
+
/** @description Order item shipped in this shipment */
|
|
33723
|
+
orderItemId: string;
|
|
33724
|
+
/** @description Quantity of the order item in this shipment */
|
|
33725
|
+
quantity: number;
|
|
33726
|
+
};
|
|
33727
|
+
StorefrontFulfillmentDto: {
|
|
33728
|
+
id: string;
|
|
33729
|
+
/**
|
|
33730
|
+
* @description Shipment status
|
|
33731
|
+
* @enum {string}
|
|
33732
|
+
*/
|
|
33733
|
+
status: 'PENDING' | 'SHIPPED' | 'IN_TRANSIT' | 'DELIVERED' | 'FAILED' | 'CANCELLED';
|
|
33734
|
+
carrier?: string;
|
|
33735
|
+
serviceLevel?: string;
|
|
33736
|
+
trackingNumber?: string;
|
|
33737
|
+
/** @description Carrier tracking page */
|
|
33738
|
+
trackingUrl?: string;
|
|
33739
|
+
estimatedDeliveryDate?: string;
|
|
33740
|
+
shippedAt?: string;
|
|
33741
|
+
deliveredAt?: string;
|
|
33742
|
+
items: components['schemas']['StorefrontFulfillmentItemDto'][];
|
|
33743
|
+
};
|
|
33744
|
+
StorefrontFulfillmentListDto: {
|
|
33745
|
+
data: components['schemas']['StorefrontFulfillmentDto'][];
|
|
33746
|
+
};
|
|
33747
|
+
StorefrontInvoiceDto: {
|
|
33748
|
+
id: string;
|
|
33749
|
+
orderId: string;
|
|
33750
|
+
/** @example INV-202604-00001 */
|
|
33751
|
+
invoiceNumber: string;
|
|
33752
|
+
/** @enum {string} */
|
|
33753
|
+
status: 'draft' | 'sent' | 'viewed' | 'paid' | 'expired' | 'cancelled';
|
|
33754
|
+
/**
|
|
33755
|
+
* @description Amount in cents (string)
|
|
33756
|
+
* @example 9999
|
|
33757
|
+
*/
|
|
33758
|
+
amount: string;
|
|
33759
|
+
/** @example USD */
|
|
33760
|
+
currency: string;
|
|
33761
|
+
dueDate?: string;
|
|
33762
|
+
paidAt?: string;
|
|
33763
|
+
createdAt: string;
|
|
33764
|
+
};
|
|
33765
|
+
StorefrontInvoiceListDto: {
|
|
33766
|
+
data: components['schemas']['StorefrontInvoiceDto'][];
|
|
33767
|
+
};
|
|
33768
|
+
StorefrontCancellationStatusDto: {
|
|
33769
|
+
/** @description Whether the shopper can cancel the order now */
|
|
33770
|
+
canCancel: boolean;
|
|
33771
|
+
/**
|
|
33772
|
+
* @description Why not
|
|
33773
|
+
* @enum {string}
|
|
33774
|
+
*/
|
|
33775
|
+
reason?: 'ORDER_NOT_CANCELLABLE' | 'ORDER_ALREADY_SHIPPED' | 'ORDER_RELEASED_TO_ERP' | 'ORDER_CANCEL_WINDOW_CLOSED';
|
|
33776
|
+
/** @description End of the cancel window (order time plus the store window) */
|
|
33777
|
+
cancellableUntil?: string;
|
|
33778
|
+
/** @description Store cancel window in minutes */
|
|
33779
|
+
windowMinutes: number;
|
|
33780
|
+
};
|
|
33781
|
+
CancelOwnOrderDto: {
|
|
33782
|
+
/** @description Why the shopper is cancelling */
|
|
33783
|
+
reason?: string;
|
|
33784
|
+
};
|
|
33785
|
+
StartStorefrontReturnDto: {
|
|
33786
|
+
/** @description Items to return */
|
|
33787
|
+
items: components['schemas']['ReturnItemDto'][];
|
|
33788
|
+
/**
|
|
33789
|
+
* @description Primary reason for the return
|
|
33790
|
+
* @example defective
|
|
33791
|
+
* @enum {string}
|
|
33792
|
+
*/
|
|
33793
|
+
reason: 'defective' | 'notAsDescribed' | 'wrongItem' | 'damaged' | 'noLongerNeeded' | 'arrivedLate' | 'other';
|
|
33794
|
+
/**
|
|
33795
|
+
* @description Desired resolution type
|
|
33796
|
+
* @default refund
|
|
33797
|
+
* @example refund
|
|
33798
|
+
* @enum {string}
|
|
33799
|
+
*/
|
|
33800
|
+
resolutionType?: 'refund' | 'exchange' | 'storeCredit';
|
|
33801
|
+
/**
|
|
33802
|
+
* @description Additional notes or comments
|
|
33803
|
+
* @example Product did not match the description on the website
|
|
33804
|
+
*/
|
|
33805
|
+
notes?: string;
|
|
33806
|
+
};
|
|
33807
|
+
StorefrontReturnItemDto: {
|
|
33808
|
+
orderItemId: string;
|
|
33809
|
+
quantity: number;
|
|
33810
|
+
reason: string;
|
|
33811
|
+
condition?: string;
|
|
33812
|
+
};
|
|
33813
|
+
StorefrontReturnDto: {
|
|
33814
|
+
id: string;
|
|
33815
|
+
returnNumber: string;
|
|
33816
|
+
orderId: string;
|
|
33817
|
+
/** @description requested, approved, rejected, shipped, ... */
|
|
33818
|
+
status: string;
|
|
33819
|
+
reason: string;
|
|
33820
|
+
resolutionType: string;
|
|
33821
|
+
/**
|
|
33822
|
+
* @description Amount in cents (string)
|
|
33823
|
+
* @example 4999
|
|
33824
|
+
*/
|
|
33825
|
+
totalAmount: string;
|
|
33826
|
+
/** @description Amount in cents (string) */
|
|
33827
|
+
refundAmount?: string;
|
|
33828
|
+
trackingNumber?: string;
|
|
33829
|
+
/** @description Prepaid label, once approved */
|
|
33830
|
+
shippingLabelUrl?: string;
|
|
33831
|
+
shippingCarrier?: string;
|
|
33832
|
+
createdAt: string;
|
|
33833
|
+
items: components['schemas']['StorefrontReturnItemDto'][];
|
|
33834
|
+
};
|
|
33835
|
+
StorefrontReturnListDto: {
|
|
33836
|
+
data: components['schemas']['StorefrontReturnDto'][];
|
|
33837
|
+
total: number;
|
|
33838
|
+
};
|
|
33839
|
+
StorefrontPrivacyDto: {
|
|
33840
|
+
/** @description "Do Not Sell or Share" opt-out kept on the account */
|
|
33841
|
+
dataSharingOptOut: boolean;
|
|
33842
|
+
/** @description When the opt-out was recorded */
|
|
33843
|
+
dataSharingOptOutAt?: string;
|
|
33844
|
+
/** @enum {string} */
|
|
33845
|
+
dataSharingOptOutSource?: 'link' | 'gpc';
|
|
33846
|
+
};
|
|
33847
|
+
UpdateDataSharingDto: {
|
|
33848
|
+
/** @description true to opt out of sale or sharing */
|
|
33849
|
+
optOut: boolean;
|
|
33850
|
+
/**
|
|
33851
|
+
* @description link: the Do Not Sell or Share link. gpc: a Global Privacy Control signal, which can only opt out.
|
|
33852
|
+
* @enum {string}
|
|
33853
|
+
*/
|
|
33854
|
+
source: 'link' | 'gpc';
|
|
33855
|
+
};
|
|
33490
33856
|
StorefrontAddressDto: {
|
|
33491
33857
|
/**
|
|
33492
33858
|
* @description Unique identifier for the address
|
|
@@ -34005,10 +34371,10 @@ export interface components {
|
|
|
34005
34371
|
currencyCode: string;
|
|
34006
34372
|
marketId?: string;
|
|
34007
34373
|
/**
|
|
34008
|
-
* @description Amount in cents
|
|
34374
|
+
* @description Amount in cents. Null means the price is the variant price minus the plan discount
|
|
34009
34375
|
* @example 2499
|
|
34010
34376
|
*/
|
|
34011
|
-
amount: string;
|
|
34377
|
+
amount: string | null;
|
|
34012
34378
|
/**
|
|
34013
34379
|
* @description Compare-at amount in cents
|
|
34014
34380
|
* @example 2999
|
|
@@ -34030,6 +34396,21 @@ export interface components {
|
|
|
34030
34396
|
* @example 500
|
|
34031
34397
|
*/
|
|
34032
34398
|
setupFee?: string | null;
|
|
34399
|
+
/**
|
|
34400
|
+
* @description Plan discount off the variant price (Subscribe & Save)
|
|
34401
|
+
* @enum {string|null}
|
|
34402
|
+
*/
|
|
34403
|
+
discountType?: 'percent' | 'fixed' | null;
|
|
34404
|
+
/**
|
|
34405
|
+
* @description A percent when discountType is percent, cents when fixed
|
|
34406
|
+
* @example 10
|
|
34407
|
+
*/
|
|
34408
|
+
discountValue?: number | null;
|
|
34409
|
+
/**
|
|
34410
|
+
* @description ISO 4217 currency of a fixed discount
|
|
34411
|
+
* @example USD
|
|
34412
|
+
*/
|
|
34413
|
+
discountCurrency?: string | null;
|
|
34033
34414
|
sortOrder: number;
|
|
34034
34415
|
prices?: components['schemas']['StorefrontPlanPriceDto'][];
|
|
34035
34416
|
};
|
|
@@ -59281,6 +59662,424 @@ export interface operations {
|
|
|
59281
59662
|
};
|
|
59282
59663
|
};
|
|
59283
59664
|
};
|
|
59665
|
+
StorefrontOrdersController_getFulfillments: {
|
|
59666
|
+
parameters: {
|
|
59667
|
+
query?: never;
|
|
59668
|
+
header?: {
|
|
59669
|
+
/** @description Storefront API key */
|
|
59670
|
+
'x-api-key'?: string;
|
|
59671
|
+
};
|
|
59672
|
+
path: {
|
|
59673
|
+
/** @description Order ID */
|
|
59674
|
+
id: string;
|
|
59675
|
+
};
|
|
59676
|
+
cookie?: never;
|
|
59677
|
+
};
|
|
59678
|
+
requestBody?: never;
|
|
59679
|
+
responses: {
|
|
59680
|
+
200: {
|
|
59681
|
+
headers: {
|
|
59682
|
+
[name: string]: unknown;
|
|
59683
|
+
};
|
|
59684
|
+
content: {
|
|
59685
|
+
'application/json': components['schemas']['StorefrontFulfillmentListDto'];
|
|
59686
|
+
};
|
|
59687
|
+
};
|
|
59688
|
+
/** @description Access token required */
|
|
59689
|
+
401: {
|
|
59690
|
+
headers: {
|
|
59691
|
+
[name: string]: unknown;
|
|
59692
|
+
};
|
|
59693
|
+
content?: never;
|
|
59694
|
+
};
|
|
59695
|
+
/** @description Order not found */
|
|
59696
|
+
404: {
|
|
59697
|
+
headers: {
|
|
59698
|
+
[name: string]: unknown;
|
|
59699
|
+
};
|
|
59700
|
+
content?: never;
|
|
59701
|
+
};
|
|
59702
|
+
};
|
|
59703
|
+
};
|
|
59704
|
+
StorefrontOrdersController_getInvoices: {
|
|
59705
|
+
parameters: {
|
|
59706
|
+
query?: never;
|
|
59707
|
+
header?: {
|
|
59708
|
+
/** @description Storefront API key */
|
|
59709
|
+
'x-api-key'?: string;
|
|
59710
|
+
};
|
|
59711
|
+
path: {
|
|
59712
|
+
/** @description Order ID */
|
|
59713
|
+
id: string;
|
|
59714
|
+
};
|
|
59715
|
+
cookie?: never;
|
|
59716
|
+
};
|
|
59717
|
+
requestBody?: never;
|
|
59718
|
+
responses: {
|
|
59719
|
+
200: {
|
|
59720
|
+
headers: {
|
|
59721
|
+
[name: string]: unknown;
|
|
59722
|
+
};
|
|
59723
|
+
content: {
|
|
59724
|
+
'application/json': components['schemas']['StorefrontInvoiceListDto'];
|
|
59725
|
+
};
|
|
59726
|
+
};
|
|
59727
|
+
/** @description Access token required */
|
|
59728
|
+
401: {
|
|
59729
|
+
headers: {
|
|
59730
|
+
[name: string]: unknown;
|
|
59731
|
+
};
|
|
59732
|
+
content?: never;
|
|
59733
|
+
};
|
|
59734
|
+
/** @description Order not found */
|
|
59735
|
+
404: {
|
|
59736
|
+
headers: {
|
|
59737
|
+
[name: string]: unknown;
|
|
59738
|
+
};
|
|
59739
|
+
content?: never;
|
|
59740
|
+
};
|
|
59741
|
+
};
|
|
59742
|
+
};
|
|
59743
|
+
StorefrontOrdersController_getCancellationStatus: {
|
|
59744
|
+
parameters: {
|
|
59745
|
+
query?: never;
|
|
59746
|
+
header?: {
|
|
59747
|
+
/** @description Storefront API key */
|
|
59748
|
+
'x-api-key'?: string;
|
|
59749
|
+
};
|
|
59750
|
+
path: {
|
|
59751
|
+
/** @description Order ID */
|
|
59752
|
+
id: string;
|
|
59753
|
+
};
|
|
59754
|
+
cookie?: never;
|
|
59755
|
+
};
|
|
59756
|
+
requestBody?: never;
|
|
59757
|
+
responses: {
|
|
59758
|
+
200: {
|
|
59759
|
+
headers: {
|
|
59760
|
+
[name: string]: unknown;
|
|
59761
|
+
};
|
|
59762
|
+
content: {
|
|
59763
|
+
'application/json': components['schemas']['StorefrontCancellationStatusDto'];
|
|
59764
|
+
};
|
|
59765
|
+
};
|
|
59766
|
+
/** @description Access token required */
|
|
59767
|
+
401: {
|
|
59768
|
+
headers: {
|
|
59769
|
+
[name: string]: unknown;
|
|
59770
|
+
};
|
|
59771
|
+
content?: never;
|
|
59772
|
+
};
|
|
59773
|
+
/** @description Order not found */
|
|
59774
|
+
404: {
|
|
59775
|
+
headers: {
|
|
59776
|
+
[name: string]: unknown;
|
|
59777
|
+
};
|
|
59778
|
+
content?: never;
|
|
59779
|
+
};
|
|
59780
|
+
};
|
|
59781
|
+
};
|
|
59782
|
+
StorefrontOrderActionsController_cancel: {
|
|
59783
|
+
parameters: {
|
|
59784
|
+
query?: never;
|
|
59785
|
+
header?: {
|
|
59786
|
+
/** @description Storefront API key */
|
|
59787
|
+
'x-api-key'?: string;
|
|
59788
|
+
};
|
|
59789
|
+
path: {
|
|
59790
|
+
/** @description Order ID */
|
|
59791
|
+
id: string;
|
|
59792
|
+
};
|
|
59793
|
+
cookie?: never;
|
|
59794
|
+
};
|
|
59795
|
+
requestBody: {
|
|
59796
|
+
content: {
|
|
59797
|
+
'application/json': components['schemas']['CancelOwnOrderDto'];
|
|
59798
|
+
};
|
|
59799
|
+
};
|
|
59800
|
+
responses: {
|
|
59801
|
+
200: {
|
|
59802
|
+
headers: {
|
|
59803
|
+
[name: string]: unknown;
|
|
59804
|
+
};
|
|
59805
|
+
content: {
|
|
59806
|
+
'application/json': components['schemas']['OrderResponseDto'];
|
|
59807
|
+
};
|
|
59808
|
+
};
|
|
59809
|
+
/** @description Access token required */
|
|
59810
|
+
401: {
|
|
59811
|
+
headers: {
|
|
59812
|
+
[name: string]: unknown;
|
|
59813
|
+
};
|
|
59814
|
+
content?: never;
|
|
59815
|
+
};
|
|
59816
|
+
/** @description Order not found */
|
|
59817
|
+
404: {
|
|
59818
|
+
headers: {
|
|
59819
|
+
[name: string]: unknown;
|
|
59820
|
+
};
|
|
59821
|
+
content?: never;
|
|
59822
|
+
};
|
|
59823
|
+
/** @description Order can no longer be cancelled */
|
|
59824
|
+
409: {
|
|
59825
|
+
headers: {
|
|
59826
|
+
[name: string]: unknown;
|
|
59827
|
+
};
|
|
59828
|
+
content?: never;
|
|
59829
|
+
};
|
|
59830
|
+
};
|
|
59831
|
+
};
|
|
59832
|
+
StorefrontReturnsController_startReturn: {
|
|
59833
|
+
parameters: {
|
|
59834
|
+
query?: never;
|
|
59835
|
+
header?: {
|
|
59836
|
+
/** @description Storefront API key */
|
|
59837
|
+
'x-api-key'?: string;
|
|
59838
|
+
};
|
|
59839
|
+
path: {
|
|
59840
|
+
/** @description Order ID */
|
|
59841
|
+
orderId: string;
|
|
59842
|
+
};
|
|
59843
|
+
cookie?: never;
|
|
59844
|
+
};
|
|
59845
|
+
requestBody: {
|
|
59846
|
+
content: {
|
|
59847
|
+
'application/json': components['schemas']['StartStorefrontReturnDto'];
|
|
59848
|
+
};
|
|
59849
|
+
};
|
|
59850
|
+
responses: {
|
|
59851
|
+
201: {
|
|
59852
|
+
headers: {
|
|
59853
|
+
[name: string]: unknown;
|
|
59854
|
+
};
|
|
59855
|
+
content: {
|
|
59856
|
+
'application/json': components['schemas']['StorefrontReturnDto'];
|
|
59857
|
+
};
|
|
59858
|
+
};
|
|
59859
|
+
/** @description Window closed or bad quantities */
|
|
59860
|
+
400: {
|
|
59861
|
+
headers: {
|
|
59862
|
+
[name: string]: unknown;
|
|
59863
|
+
};
|
|
59864
|
+
content?: never;
|
|
59865
|
+
};
|
|
59866
|
+
/** @description Access token required */
|
|
59867
|
+
401: {
|
|
59868
|
+
headers: {
|
|
59869
|
+
[name: string]: unknown;
|
|
59870
|
+
};
|
|
59871
|
+
content?: never;
|
|
59872
|
+
};
|
|
59873
|
+
/** @description Order not found */
|
|
59874
|
+
404: {
|
|
59875
|
+
headers: {
|
|
59876
|
+
[name: string]: unknown;
|
|
59877
|
+
};
|
|
59878
|
+
content?: never;
|
|
59879
|
+
};
|
|
59880
|
+
};
|
|
59881
|
+
};
|
|
59882
|
+
StorefrontReturnsController_listReturns: {
|
|
59883
|
+
parameters: {
|
|
59884
|
+
query?: {
|
|
59885
|
+
orderId?: string;
|
|
59886
|
+
page?: number;
|
|
59887
|
+
limit?: number;
|
|
59888
|
+
};
|
|
59889
|
+
header?: {
|
|
59890
|
+
/** @description Storefront API key */
|
|
59891
|
+
'x-api-key'?: string;
|
|
59892
|
+
};
|
|
59893
|
+
path?: never;
|
|
59894
|
+
cookie?: never;
|
|
59895
|
+
};
|
|
59896
|
+
requestBody?: never;
|
|
59897
|
+
responses: {
|
|
59898
|
+
200: {
|
|
59899
|
+
headers: {
|
|
59900
|
+
[name: string]: unknown;
|
|
59901
|
+
};
|
|
59902
|
+
content: {
|
|
59903
|
+
'application/json': components['schemas']['StorefrontReturnListDto'];
|
|
59904
|
+
};
|
|
59905
|
+
};
|
|
59906
|
+
/** @description Access token required */
|
|
59907
|
+
401: {
|
|
59908
|
+
headers: {
|
|
59909
|
+
[name: string]: unknown;
|
|
59910
|
+
};
|
|
59911
|
+
content?: never;
|
|
59912
|
+
};
|
|
59913
|
+
};
|
|
59914
|
+
};
|
|
59915
|
+
StorefrontReturnsController_getReturn: {
|
|
59916
|
+
parameters: {
|
|
59917
|
+
query?: never;
|
|
59918
|
+
header?: {
|
|
59919
|
+
/** @description Storefront API key */
|
|
59920
|
+
'x-api-key'?: string;
|
|
59921
|
+
};
|
|
59922
|
+
path: {
|
|
59923
|
+
/** @description Return ID */
|
|
59924
|
+
id: string;
|
|
59925
|
+
};
|
|
59926
|
+
cookie?: never;
|
|
59927
|
+
};
|
|
59928
|
+
requestBody?: never;
|
|
59929
|
+
responses: {
|
|
59930
|
+
200: {
|
|
59931
|
+
headers: {
|
|
59932
|
+
[name: string]: unknown;
|
|
59933
|
+
};
|
|
59934
|
+
content: {
|
|
59935
|
+
'application/json': components['schemas']['StorefrontReturnDto'];
|
|
59936
|
+
};
|
|
59937
|
+
};
|
|
59938
|
+
/** @description Access token required */
|
|
59939
|
+
401: {
|
|
59940
|
+
headers: {
|
|
59941
|
+
[name: string]: unknown;
|
|
59942
|
+
};
|
|
59943
|
+
content?: never;
|
|
59944
|
+
};
|
|
59945
|
+
/** @description Return not found */
|
|
59946
|
+
404: {
|
|
59947
|
+
headers: {
|
|
59948
|
+
[name: string]: unknown;
|
|
59949
|
+
};
|
|
59950
|
+
content?: never;
|
|
59951
|
+
};
|
|
59952
|
+
};
|
|
59953
|
+
};
|
|
59954
|
+
StorefrontReturnsController_createLabel: {
|
|
59955
|
+
parameters: {
|
|
59956
|
+
query?: never;
|
|
59957
|
+
header?: {
|
|
59958
|
+
/** @description Storefront API key */
|
|
59959
|
+
'x-api-key'?: string;
|
|
59960
|
+
};
|
|
59961
|
+
path: {
|
|
59962
|
+
/** @description Return ID */
|
|
59963
|
+
id: string;
|
|
59964
|
+
};
|
|
59965
|
+
cookie?: never;
|
|
59966
|
+
};
|
|
59967
|
+
requestBody?: never;
|
|
59968
|
+
responses: {
|
|
59969
|
+
200: {
|
|
59970
|
+
headers: {
|
|
59971
|
+
[name: string]: unknown;
|
|
59972
|
+
};
|
|
59973
|
+
content: {
|
|
59974
|
+
'application/json': components['schemas']['StorefrontReturnDto'];
|
|
59975
|
+
};
|
|
59976
|
+
};
|
|
59977
|
+
/** @description Return is not approved */
|
|
59978
|
+
400: {
|
|
59979
|
+
headers: {
|
|
59980
|
+
[name: string]: unknown;
|
|
59981
|
+
};
|
|
59982
|
+
content?: never;
|
|
59983
|
+
};
|
|
59984
|
+
/** @description Access token required */
|
|
59985
|
+
401: {
|
|
59986
|
+
headers: {
|
|
59987
|
+
[name: string]: unknown;
|
|
59988
|
+
};
|
|
59989
|
+
content?: never;
|
|
59990
|
+
};
|
|
59991
|
+
/** @description Return not found */
|
|
59992
|
+
404: {
|
|
59993
|
+
headers: {
|
|
59994
|
+
[name: string]: unknown;
|
|
59995
|
+
};
|
|
59996
|
+
content?: never;
|
|
59997
|
+
};
|
|
59998
|
+
};
|
|
59999
|
+
};
|
|
60000
|
+
StorefrontPrivacyController_get: {
|
|
60001
|
+
parameters: {
|
|
60002
|
+
query?: never;
|
|
60003
|
+
header?: {
|
|
60004
|
+
/** @description Storefront API key */
|
|
60005
|
+
'x-api-key'?: string;
|
|
60006
|
+
};
|
|
60007
|
+
path?: never;
|
|
60008
|
+
cookie?: never;
|
|
60009
|
+
};
|
|
60010
|
+
requestBody?: never;
|
|
60011
|
+
responses: {
|
|
60012
|
+
200: {
|
|
60013
|
+
headers: {
|
|
60014
|
+
[name: string]: unknown;
|
|
60015
|
+
};
|
|
60016
|
+
content: {
|
|
60017
|
+
'application/json': components['schemas']['StorefrontPrivacyDto'];
|
|
60018
|
+
};
|
|
60019
|
+
};
|
|
60020
|
+
/** @description Access token required */
|
|
60021
|
+
401: {
|
|
60022
|
+
headers: {
|
|
60023
|
+
[name: string]: unknown;
|
|
60024
|
+
};
|
|
60025
|
+
content?: never;
|
|
60026
|
+
};
|
|
60027
|
+
/** @description Customer profile not found */
|
|
60028
|
+
404: {
|
|
60029
|
+
headers: {
|
|
60030
|
+
[name: string]: unknown;
|
|
60031
|
+
};
|
|
60032
|
+
content?: never;
|
|
60033
|
+
};
|
|
60034
|
+
};
|
|
60035
|
+
};
|
|
60036
|
+
StorefrontPrivacyController_updateDataSharing: {
|
|
60037
|
+
parameters: {
|
|
60038
|
+
query?: never;
|
|
60039
|
+
header?: {
|
|
60040
|
+
/** @description Storefront API key */
|
|
60041
|
+
'x-api-key'?: string;
|
|
60042
|
+
};
|
|
60043
|
+
path?: never;
|
|
60044
|
+
cookie?: never;
|
|
60045
|
+
};
|
|
60046
|
+
requestBody: {
|
|
60047
|
+
content: {
|
|
60048
|
+
'application/json': components['schemas']['UpdateDataSharingDto'];
|
|
60049
|
+
};
|
|
60050
|
+
};
|
|
60051
|
+
responses: {
|
|
60052
|
+
200: {
|
|
60053
|
+
headers: {
|
|
60054
|
+
[name: string]: unknown;
|
|
60055
|
+
};
|
|
60056
|
+
content: {
|
|
60057
|
+
'application/json': components['schemas']['StorefrontPrivacyDto'];
|
|
60058
|
+
};
|
|
60059
|
+
};
|
|
60060
|
+
/** @description gpc cannot opt in */
|
|
60061
|
+
400: {
|
|
60062
|
+
headers: {
|
|
60063
|
+
[name: string]: unknown;
|
|
60064
|
+
};
|
|
60065
|
+
content?: never;
|
|
60066
|
+
};
|
|
60067
|
+
/** @description Access token required */
|
|
60068
|
+
401: {
|
|
60069
|
+
headers: {
|
|
60070
|
+
[name: string]: unknown;
|
|
60071
|
+
};
|
|
60072
|
+
content?: never;
|
|
60073
|
+
};
|
|
60074
|
+
/** @description Customer profile not found */
|
|
60075
|
+
404: {
|
|
60076
|
+
headers: {
|
|
60077
|
+
[name: string]: unknown;
|
|
60078
|
+
};
|
|
60079
|
+
content?: never;
|
|
60080
|
+
};
|
|
60081
|
+
};
|
|
60082
|
+
};
|
|
59284
60083
|
StorefrontAddressesController_listAddresses: {
|
|
59285
60084
|
parameters: {
|
|
59286
60085
|
query?: {
|