@betterstore/sdk 0.7.1 → 0.7.2
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/index.d.mts +342 -397
- package/dist/index.d.ts +342 -397
- package/dist/index.js +21 -18
- package/dist/index.mjs +21 -18
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
interface BaseClientConfig {
|
|
2
2
|
baseUrl: string;
|
|
3
|
-
|
|
3
|
+
secret: string;
|
|
4
4
|
}
|
|
5
5
|
declare class BaseClient {
|
|
6
6
|
private config;
|
|
7
|
+
private headers;
|
|
7
8
|
constructor(config: BaseClientConfig);
|
|
8
9
|
get<T>(path: string, params?: Record<string, any>): Promise<T>;
|
|
9
10
|
post<T>(path: string, body?: any): Promise<T>;
|
|
@@ -6688,21 +6689,6 @@ interface paths {
|
|
|
6688
6689
|
requestBody: {
|
|
6689
6690
|
content: {
|
|
6690
6691
|
"application/json": {
|
|
6691
|
-
firstName?: string | null;
|
|
6692
|
-
lastName?: string | null;
|
|
6693
|
-
phone?: string | null;
|
|
6694
|
-
address: string | number | boolean | unknown | {
|
|
6695
|
-
[key: string]: unknown;
|
|
6696
|
-
} | unknown[] | unknown;
|
|
6697
|
-
image?: string | null;
|
|
6698
|
-
password?: string | null;
|
|
6699
|
-
metadata?: string | number | boolean | unknown | {
|
|
6700
|
-
[key: string]: unknown;
|
|
6701
|
-
} | unknown[] | unknown;
|
|
6702
|
-
tags?: string[];
|
|
6703
|
-
notes?: string | null;
|
|
6704
|
-
isSubscribedEmail?: boolean;
|
|
6705
|
-
isSubscribedSms?: boolean;
|
|
6706
6692
|
/** Format: email */
|
|
6707
6693
|
email: string;
|
|
6708
6694
|
};
|
|
@@ -6757,13 +6743,6 @@ interface paths {
|
|
|
6757
6743
|
* "name": "ZodError",
|
|
6758
6744
|
* "issues": [
|
|
6759
6745
|
* {
|
|
6760
|
-
* "code": "invalid_union",
|
|
6761
|
-
* "path": [
|
|
6762
|
-
* "address"
|
|
6763
|
-
* ],
|
|
6764
|
-
* "message": "Invalid input"
|
|
6765
|
-
* },
|
|
6766
|
-
* {
|
|
6767
6746
|
* "code": "invalid_type",
|
|
6768
6747
|
* "path": [
|
|
6769
6748
|
* "email"
|
|
@@ -6938,9 +6917,19 @@ interface paths {
|
|
|
6938
6917
|
firstName?: string | null;
|
|
6939
6918
|
lastName?: string | null;
|
|
6940
6919
|
phone?: string | null;
|
|
6941
|
-
address:
|
|
6942
|
-
|
|
6943
|
-
|
|
6920
|
+
address: {
|
|
6921
|
+
name: string;
|
|
6922
|
+
phone: string;
|
|
6923
|
+
line1: string;
|
|
6924
|
+
line2?: string | null;
|
|
6925
|
+
company?: string | null;
|
|
6926
|
+
city: string;
|
|
6927
|
+
country: string;
|
|
6928
|
+
countryCode: string;
|
|
6929
|
+
province?: string | null;
|
|
6930
|
+
provinceCode?: string | null;
|
|
6931
|
+
zipCode: string;
|
|
6932
|
+
} | null;
|
|
6944
6933
|
image?: string | null;
|
|
6945
6934
|
password?: string | null;
|
|
6946
6935
|
metadata?: string | number | boolean | unknown | {
|
|
@@ -7003,11 +6992,11 @@ interface paths {
|
|
|
7003
6992
|
* "name": "ZodError",
|
|
7004
6993
|
* "issues": [
|
|
7005
6994
|
* {
|
|
7006
|
-
* "code": "
|
|
6995
|
+
* "code": "invalid_type",
|
|
7007
6996
|
* "path": [
|
|
7008
6997
|
* "address"
|
|
7009
6998
|
* ],
|
|
7010
|
-
* "message": "Invalid input"
|
|
6999
|
+
* "message": "Invalid input: expected object, received undefined"
|
|
7011
7000
|
* },
|
|
7012
7001
|
* {
|
|
7013
7002
|
* "code": "invalid_type",
|
|
@@ -7242,21 +7231,6 @@ interface paths {
|
|
|
7242
7231
|
requestBody: {
|
|
7243
7232
|
content: {
|
|
7244
7233
|
"application/json": {
|
|
7245
|
-
firstName?: string | null;
|
|
7246
|
-
lastName?: string | null;
|
|
7247
|
-
phone?: string | null;
|
|
7248
|
-
address: string | number | boolean | unknown | {
|
|
7249
|
-
[key: string]: unknown;
|
|
7250
|
-
} | unknown[] | unknown;
|
|
7251
|
-
image?: string | null;
|
|
7252
|
-
password?: string | null;
|
|
7253
|
-
metadata?: string | number | boolean | unknown | {
|
|
7254
|
-
[key: string]: unknown;
|
|
7255
|
-
} | unknown[] | unknown;
|
|
7256
|
-
tags?: string[];
|
|
7257
|
-
notes?: string | null;
|
|
7258
|
-
isSubscribedEmail?: boolean;
|
|
7259
|
-
isSubscribedSms?: boolean;
|
|
7260
7234
|
/** Format: email */
|
|
7261
7235
|
email: string;
|
|
7262
7236
|
};
|
|
@@ -7288,13 +7262,6 @@ interface paths {
|
|
|
7288
7262
|
* "name": "ZodError",
|
|
7289
7263
|
* "issues": [
|
|
7290
7264
|
* {
|
|
7291
|
-
* "code": "invalid_union",
|
|
7292
|
-
* "path": [
|
|
7293
|
-
* "address"
|
|
7294
|
-
* ],
|
|
7295
|
-
* "message": "Invalid input"
|
|
7296
|
-
* },
|
|
7297
|
-
* {
|
|
7298
7265
|
* "code": "invalid_type",
|
|
7299
7266
|
* "path": [
|
|
7300
7267
|
* "email"
|
|
@@ -7651,8 +7618,8 @@ interface paths {
|
|
|
7651
7618
|
query: {
|
|
7652
7619
|
query: string;
|
|
7653
7620
|
locale?: string;
|
|
7654
|
-
latitude?: number;
|
|
7655
|
-
longitude?: number;
|
|
7621
|
+
latitude?: number | null;
|
|
7622
|
+
longitude?: number | null;
|
|
7656
7623
|
countryCode?: string;
|
|
7657
7624
|
};
|
|
7658
7625
|
header?: never;
|
|
@@ -7866,6 +7833,26 @@ interface paths {
|
|
|
7866
7833
|
exchangeRate: number;
|
|
7867
7834
|
/** @enum {string} */
|
|
7868
7835
|
status: "IN_PROGRESS" | "PAYMENT_PENDING" | "ABANDONED" | "CANCELED" | "FAILED";
|
|
7836
|
+
customerData: {
|
|
7837
|
+
firstName: string;
|
|
7838
|
+
lastName: string;
|
|
7839
|
+
phone: string;
|
|
7840
|
+
/** Format: email */
|
|
7841
|
+
email: string;
|
|
7842
|
+
address: {
|
|
7843
|
+
name: string;
|
|
7844
|
+
phone: string;
|
|
7845
|
+
line1: string;
|
|
7846
|
+
line2?: string | null;
|
|
7847
|
+
company?: string | null;
|
|
7848
|
+
city: string;
|
|
7849
|
+
country: string;
|
|
7850
|
+
countryCode: string;
|
|
7851
|
+
province?: string | null;
|
|
7852
|
+
provinceCode?: string | null;
|
|
7853
|
+
zipCode: string;
|
|
7854
|
+
};
|
|
7855
|
+
} | null;
|
|
7869
7856
|
lineItems: {
|
|
7870
7857
|
/** Format: uuid */
|
|
7871
7858
|
id: string;
|
|
@@ -8155,19 +8142,6 @@ interface paths {
|
|
|
8155
8142
|
};
|
|
8156
8143
|
}[];
|
|
8157
8144
|
customer: {
|
|
8158
|
-
address: {
|
|
8159
|
-
name: string;
|
|
8160
|
-
phone: string;
|
|
8161
|
-
line1: string;
|
|
8162
|
-
line2?: string | null;
|
|
8163
|
-
company?: string | null;
|
|
8164
|
-
city: string;
|
|
8165
|
-
country: string;
|
|
8166
|
-
countryCode: string;
|
|
8167
|
-
province?: string | null;
|
|
8168
|
-
provinceCode?: string | null;
|
|
8169
|
-
zipCode: string;
|
|
8170
|
-
} | null;
|
|
8171
8145
|
email: string;
|
|
8172
8146
|
/** Format: uuid */
|
|
8173
8147
|
id: string;
|
|
@@ -8262,12 +8236,37 @@ interface paths {
|
|
|
8262
8236
|
"application/json": {
|
|
8263
8237
|
/** Format: uuid */
|
|
8264
8238
|
customerId?: string;
|
|
8239
|
+
customerData?: {
|
|
8240
|
+
firstName: string;
|
|
8241
|
+
lastName: string;
|
|
8242
|
+
phone: string;
|
|
8243
|
+
/** Format: email */
|
|
8244
|
+
email: string;
|
|
8245
|
+
address: {
|
|
8246
|
+
name: string;
|
|
8247
|
+
phone: string;
|
|
8248
|
+
line1: string;
|
|
8249
|
+
line2?: string | null;
|
|
8250
|
+
company?: string | null;
|
|
8251
|
+
city: string;
|
|
8252
|
+
country: string;
|
|
8253
|
+
countryCode: string;
|
|
8254
|
+
province?: string | null;
|
|
8255
|
+
provinceCode?: string | null;
|
|
8256
|
+
zipCode: string;
|
|
8257
|
+
};
|
|
8258
|
+
};
|
|
8265
8259
|
shipments?: {
|
|
8266
8260
|
/** Format: uuid */
|
|
8267
8261
|
id: string;
|
|
8268
|
-
shipmentData:
|
|
8269
|
-
|
|
8270
|
-
|
|
8262
|
+
shipmentData: {
|
|
8263
|
+
rateId: string;
|
|
8264
|
+
carrierId: string | null;
|
|
8265
|
+
priceInCents: number;
|
|
8266
|
+
pickupPointId: string | null;
|
|
8267
|
+
trackingId: string | null;
|
|
8268
|
+
trackingUrl: string | null;
|
|
8269
|
+
};
|
|
8271
8270
|
}[] | null;
|
|
8272
8271
|
};
|
|
8273
8272
|
};
|
|
@@ -8291,6 +8290,26 @@ interface paths {
|
|
|
8291
8290
|
exchangeRate: number;
|
|
8292
8291
|
/** @enum {string} */
|
|
8293
8292
|
status: "IN_PROGRESS" | "PAYMENT_PENDING" | "ABANDONED" | "CANCELED" | "FAILED";
|
|
8293
|
+
customerData: {
|
|
8294
|
+
firstName: string;
|
|
8295
|
+
lastName: string;
|
|
8296
|
+
phone: string;
|
|
8297
|
+
/** Format: email */
|
|
8298
|
+
email: string;
|
|
8299
|
+
address: {
|
|
8300
|
+
name: string;
|
|
8301
|
+
phone: string;
|
|
8302
|
+
line1: string;
|
|
8303
|
+
line2?: string | null;
|
|
8304
|
+
company?: string | null;
|
|
8305
|
+
city: string;
|
|
8306
|
+
country: string;
|
|
8307
|
+
countryCode: string;
|
|
8308
|
+
province?: string | null;
|
|
8309
|
+
provinceCode?: string | null;
|
|
8310
|
+
zipCode: string;
|
|
8311
|
+
};
|
|
8312
|
+
} | null;
|
|
8294
8313
|
lineItems: {
|
|
8295
8314
|
/** Format: uuid */
|
|
8296
8315
|
id: string;
|
|
@@ -8580,19 +8599,6 @@ interface paths {
|
|
|
8580
8599
|
};
|
|
8581
8600
|
}[];
|
|
8582
8601
|
customer: {
|
|
8583
|
-
address: {
|
|
8584
|
-
name: string;
|
|
8585
|
-
phone: string;
|
|
8586
|
-
line1: string;
|
|
8587
|
-
line2?: string | null;
|
|
8588
|
-
company?: string | null;
|
|
8589
|
-
city: string;
|
|
8590
|
-
country: string;
|
|
8591
|
-
countryCode: string;
|
|
8592
|
-
province?: string | null;
|
|
8593
|
-
provinceCode?: string | null;
|
|
8594
|
-
zipCode: string;
|
|
8595
|
-
} | null;
|
|
8596
8602
|
email: string;
|
|
8597
8603
|
/** Format: uuid */
|
|
8598
8604
|
id: string;
|
|
@@ -8697,6 +8703,26 @@ interface paths {
|
|
|
8697
8703
|
exchangeRate: number;
|
|
8698
8704
|
/** @enum {string} */
|
|
8699
8705
|
status: "IN_PROGRESS" | "PAYMENT_PENDING" | "ABANDONED" | "CANCELED" | "FAILED";
|
|
8706
|
+
customerData: {
|
|
8707
|
+
firstName: string;
|
|
8708
|
+
lastName: string;
|
|
8709
|
+
phone: string;
|
|
8710
|
+
/** Format: email */
|
|
8711
|
+
email: string;
|
|
8712
|
+
address: {
|
|
8713
|
+
name: string;
|
|
8714
|
+
phone: string;
|
|
8715
|
+
line1: string;
|
|
8716
|
+
line2?: string | null;
|
|
8717
|
+
company?: string | null;
|
|
8718
|
+
city: string;
|
|
8719
|
+
country: string;
|
|
8720
|
+
countryCode: string;
|
|
8721
|
+
province?: string | null;
|
|
8722
|
+
provinceCode?: string | null;
|
|
8723
|
+
zipCode: string;
|
|
8724
|
+
};
|
|
8725
|
+
} | null;
|
|
8700
8726
|
lineItems: {
|
|
8701
8727
|
/** Format: uuid */
|
|
8702
8728
|
id: string;
|
|
@@ -8986,19 +9012,6 @@ interface paths {
|
|
|
8986
9012
|
};
|
|
8987
9013
|
}[];
|
|
8988
9014
|
customer: {
|
|
8989
|
-
address: {
|
|
8990
|
-
name: string;
|
|
8991
|
-
phone: string;
|
|
8992
|
-
line1: string;
|
|
8993
|
-
line2?: string | null;
|
|
8994
|
-
company?: string | null;
|
|
8995
|
-
city: string;
|
|
8996
|
-
country: string;
|
|
8997
|
-
countryCode: string;
|
|
8998
|
-
province?: string | null;
|
|
8999
|
-
provinceCode?: string | null;
|
|
9000
|
-
zipCode: string;
|
|
9001
|
-
} | null;
|
|
9002
9015
|
email: string;
|
|
9003
9016
|
/** Format: uuid */
|
|
9004
9017
|
id: string;
|
|
@@ -9114,6 +9127,26 @@ interface paths {
|
|
|
9114
9127
|
exchangeRate: number;
|
|
9115
9128
|
/** @enum {string} */
|
|
9116
9129
|
status: "IN_PROGRESS" | "PAYMENT_PENDING" | "ABANDONED" | "CANCELED" | "FAILED";
|
|
9130
|
+
customerData: {
|
|
9131
|
+
firstName: string;
|
|
9132
|
+
lastName: string;
|
|
9133
|
+
phone: string;
|
|
9134
|
+
/** Format: email */
|
|
9135
|
+
email: string;
|
|
9136
|
+
address: {
|
|
9137
|
+
name: string;
|
|
9138
|
+
phone: string;
|
|
9139
|
+
line1: string;
|
|
9140
|
+
line2?: string | null;
|
|
9141
|
+
company?: string | null;
|
|
9142
|
+
city: string;
|
|
9143
|
+
country: string;
|
|
9144
|
+
countryCode: string;
|
|
9145
|
+
province?: string | null;
|
|
9146
|
+
provinceCode?: string | null;
|
|
9147
|
+
zipCode: string;
|
|
9148
|
+
};
|
|
9149
|
+
} | null;
|
|
9117
9150
|
lineItems: {
|
|
9118
9151
|
/** Format: uuid */
|
|
9119
9152
|
id: string;
|
|
@@ -9403,19 +9436,6 @@ interface paths {
|
|
|
9403
9436
|
};
|
|
9404
9437
|
}[];
|
|
9405
9438
|
customer: {
|
|
9406
|
-
address: {
|
|
9407
|
-
name: string;
|
|
9408
|
-
phone: string;
|
|
9409
|
-
line1: string;
|
|
9410
|
-
line2?: string | null;
|
|
9411
|
-
company?: string | null;
|
|
9412
|
-
city: string;
|
|
9413
|
-
country: string;
|
|
9414
|
-
countryCode: string;
|
|
9415
|
-
province?: string | null;
|
|
9416
|
-
provinceCode?: string | null;
|
|
9417
|
-
zipCode: string;
|
|
9418
|
-
} | null;
|
|
9419
9439
|
email: string;
|
|
9420
9440
|
/** Format: uuid */
|
|
9421
9441
|
id: string;
|
|
@@ -9524,6 +9544,26 @@ interface paths {
|
|
|
9524
9544
|
exchangeRate: number;
|
|
9525
9545
|
/** @enum {string} */
|
|
9526
9546
|
status: "IN_PROGRESS" | "PAYMENT_PENDING" | "ABANDONED" | "CANCELED" | "FAILED";
|
|
9547
|
+
customerData: {
|
|
9548
|
+
firstName: string;
|
|
9549
|
+
lastName: string;
|
|
9550
|
+
phone: string;
|
|
9551
|
+
/** Format: email */
|
|
9552
|
+
email: string;
|
|
9553
|
+
address: {
|
|
9554
|
+
name: string;
|
|
9555
|
+
phone: string;
|
|
9556
|
+
line1: string;
|
|
9557
|
+
line2?: string | null;
|
|
9558
|
+
company?: string | null;
|
|
9559
|
+
city: string;
|
|
9560
|
+
country: string;
|
|
9561
|
+
countryCode: string;
|
|
9562
|
+
province?: string | null;
|
|
9563
|
+
provinceCode?: string | null;
|
|
9564
|
+
zipCode: string;
|
|
9565
|
+
};
|
|
9566
|
+
} | null;
|
|
9527
9567
|
lineItems: {
|
|
9528
9568
|
/** Format: uuid */
|
|
9529
9569
|
id: string;
|
|
@@ -9813,19 +9853,6 @@ interface paths {
|
|
|
9813
9853
|
};
|
|
9814
9854
|
}[];
|
|
9815
9855
|
customer: {
|
|
9816
|
-
address: {
|
|
9817
|
-
name: string;
|
|
9818
|
-
phone: string;
|
|
9819
|
-
line1: string;
|
|
9820
|
-
line2?: string | null;
|
|
9821
|
-
company?: string | null;
|
|
9822
|
-
city: string;
|
|
9823
|
-
country: string;
|
|
9824
|
-
countryCode: string;
|
|
9825
|
-
province?: string | null;
|
|
9826
|
-
provinceCode?: string | null;
|
|
9827
|
-
zipCode: string;
|
|
9828
|
-
} | null;
|
|
9829
9856
|
email: string;
|
|
9830
9857
|
/** Format: uuid */
|
|
9831
9858
|
id: string;
|
|
@@ -10074,6 +10101,26 @@ interface paths {
|
|
|
10074
10101
|
exchangeRate: number;
|
|
10075
10102
|
/** @enum {string} */
|
|
10076
10103
|
status: "IN_PROGRESS" | "PAYMENT_PENDING" | "ABANDONED" | "CANCELED" | "FAILED";
|
|
10104
|
+
customerData: {
|
|
10105
|
+
firstName: string;
|
|
10106
|
+
lastName: string;
|
|
10107
|
+
phone: string;
|
|
10108
|
+
/** Format: email */
|
|
10109
|
+
email: string;
|
|
10110
|
+
address: {
|
|
10111
|
+
name: string;
|
|
10112
|
+
phone: string;
|
|
10113
|
+
line1: string;
|
|
10114
|
+
line2?: string | null;
|
|
10115
|
+
company?: string | null;
|
|
10116
|
+
city: string;
|
|
10117
|
+
country: string;
|
|
10118
|
+
countryCode: string;
|
|
10119
|
+
province?: string | null;
|
|
10120
|
+
provinceCode?: string | null;
|
|
10121
|
+
zipCode: string;
|
|
10122
|
+
};
|
|
10123
|
+
} | null;
|
|
10077
10124
|
lineItems: {
|
|
10078
10125
|
/** Format: uuid */
|
|
10079
10126
|
id: string;
|
|
@@ -10363,19 +10410,6 @@ interface paths {
|
|
|
10363
10410
|
};
|
|
10364
10411
|
}[];
|
|
10365
10412
|
customer: {
|
|
10366
|
-
address: {
|
|
10367
|
-
name: string;
|
|
10368
|
-
phone: string;
|
|
10369
|
-
line1: string;
|
|
10370
|
-
line2?: string | null;
|
|
10371
|
-
company?: string | null;
|
|
10372
|
-
city: string;
|
|
10373
|
-
country: string;
|
|
10374
|
-
countryCode: string;
|
|
10375
|
-
province?: string | null;
|
|
10376
|
-
provinceCode?: string | null;
|
|
10377
|
-
zipCode: string;
|
|
10378
|
-
} | null;
|
|
10379
10413
|
email: string;
|
|
10380
10414
|
/** Format: uuid */
|
|
10381
10415
|
id: string;
|
|
@@ -10465,21 +10499,6 @@ interface paths {
|
|
|
10465
10499
|
requestBody: {
|
|
10466
10500
|
content: {
|
|
10467
10501
|
"application/json": {
|
|
10468
|
-
firstName?: string | null;
|
|
10469
|
-
lastName?: string | null;
|
|
10470
|
-
phone?: string | null;
|
|
10471
|
-
address: string | number | boolean | unknown | {
|
|
10472
|
-
[key: string]: unknown;
|
|
10473
|
-
} | unknown[] | unknown;
|
|
10474
|
-
image?: string | null;
|
|
10475
|
-
password?: string | null;
|
|
10476
|
-
metadata?: string | number | boolean | unknown | {
|
|
10477
|
-
[key: string]: unknown;
|
|
10478
|
-
} | unknown[] | unknown;
|
|
10479
|
-
tags?: string[];
|
|
10480
|
-
notes?: string | null;
|
|
10481
|
-
isSubscribedEmail?: boolean;
|
|
10482
|
-
isSubscribedSms?: boolean;
|
|
10483
10502
|
/** Format: email */
|
|
10484
10503
|
email: string;
|
|
10485
10504
|
};
|
|
@@ -10534,13 +10553,6 @@ interface paths {
|
|
|
10534
10553
|
* "name": "ZodError",
|
|
10535
10554
|
* "issues": [
|
|
10536
10555
|
* {
|
|
10537
|
-
* "code": "invalid_union",
|
|
10538
|
-
* "path": [
|
|
10539
|
-
* "address"
|
|
10540
|
-
* ],
|
|
10541
|
-
* "message": "Invalid input"
|
|
10542
|
-
* },
|
|
10543
|
-
* {
|
|
10544
10556
|
* "code": "invalid_type",
|
|
10545
10557
|
* "path": [
|
|
10546
10558
|
* "email"
|
|
@@ -10576,151 +10588,19 @@ interface paths {
|
|
|
10576
10588
|
patch?: never;
|
|
10577
10589
|
trace?: never;
|
|
10578
10590
|
};
|
|
10579
|
-
"/api/client/
|
|
10591
|
+
"/api/client/utils/get-exchange-rates/{currency}": {
|
|
10580
10592
|
parameters: {
|
|
10581
10593
|
query?: never;
|
|
10582
10594
|
header?: never;
|
|
10583
10595
|
path?: never;
|
|
10584
10596
|
cookie?: never;
|
|
10585
10597
|
};
|
|
10586
|
-
get
|
|
10587
|
-
put?: never;
|
|
10588
|
-
post: {
|
|
10598
|
+
get: {
|
|
10589
10599
|
parameters: {
|
|
10590
10600
|
query?: never;
|
|
10591
10601
|
header?: never;
|
|
10592
10602
|
path: {
|
|
10593
|
-
|
|
10594
|
-
};
|
|
10595
|
-
cookie?: never;
|
|
10596
|
-
};
|
|
10597
|
-
/** @description The customer to update */
|
|
10598
|
-
requestBody: {
|
|
10599
|
-
content: {
|
|
10600
|
-
"application/json": {
|
|
10601
|
-
firstName?: string | null;
|
|
10602
|
-
lastName?: string | null;
|
|
10603
|
-
phone?: string | null;
|
|
10604
|
-
address: string | number | boolean | unknown | {
|
|
10605
|
-
[key: string]: unknown;
|
|
10606
|
-
} | unknown[] | unknown;
|
|
10607
|
-
image?: string | null;
|
|
10608
|
-
password?: string | null;
|
|
10609
|
-
metadata?: string | number | boolean | unknown | {
|
|
10610
|
-
[key: string]: unknown;
|
|
10611
|
-
} | unknown[] | unknown;
|
|
10612
|
-
tags?: string[];
|
|
10613
|
-
notes?: string | null;
|
|
10614
|
-
isSubscribedEmail?: boolean;
|
|
10615
|
-
isSubscribedSms?: boolean;
|
|
10616
|
-
email: string;
|
|
10617
|
-
};
|
|
10618
|
-
};
|
|
10619
|
-
};
|
|
10620
|
-
responses: {
|
|
10621
|
-
/** @description Updated customer successfully */
|
|
10622
|
-
200: {
|
|
10623
|
-
headers: {
|
|
10624
|
-
[name: string]: unknown;
|
|
10625
|
-
};
|
|
10626
|
-
content: {
|
|
10627
|
-
"application/json": {
|
|
10628
|
-
testmode: boolean;
|
|
10629
|
-
/** Format: uuid */
|
|
10630
|
-
id: string;
|
|
10631
|
-
/** Format: date */
|
|
10632
|
-
createdAt: string;
|
|
10633
|
-
/** Format: date */
|
|
10634
|
-
updatedAt: string;
|
|
10635
|
-
firstName: string | null;
|
|
10636
|
-
lastName: string | null;
|
|
10637
|
-
email: string;
|
|
10638
|
-
phone: string | null;
|
|
10639
|
-
password: string | null;
|
|
10640
|
-
image: string | null;
|
|
10641
|
-
tags: string[];
|
|
10642
|
-
notes: string | null;
|
|
10643
|
-
metadata: string | number | boolean | unknown | {
|
|
10644
|
-
[key: string]: unknown;
|
|
10645
|
-
} | unknown[] | unknown;
|
|
10646
|
-
stripeCustomerId: string;
|
|
10647
|
-
isSubscribedEmail: boolean;
|
|
10648
|
-
isSubscribedSms: boolean;
|
|
10649
|
-
address: string | number | boolean | unknown | {
|
|
10650
|
-
[key: string]: unknown;
|
|
10651
|
-
} | unknown[] | unknown;
|
|
10652
|
-
};
|
|
10653
|
-
};
|
|
10654
|
-
};
|
|
10655
|
-
/** @description Invalid body parameters error */
|
|
10656
|
-
422: {
|
|
10657
|
-
headers: {
|
|
10658
|
-
[name: string]: unknown;
|
|
10659
|
-
};
|
|
10660
|
-
content: {
|
|
10661
|
-
"application/json": {
|
|
10662
|
-
/** @example false */
|
|
10663
|
-
success: boolean;
|
|
10664
|
-
/**
|
|
10665
|
-
* @example {
|
|
10666
|
-
* "name": "ZodError",
|
|
10667
|
-
* "issues": [
|
|
10668
|
-
* {
|
|
10669
|
-
* "code": "invalid_union",
|
|
10670
|
-
* "path": [
|
|
10671
|
-
* "address"
|
|
10672
|
-
* ],
|
|
10673
|
-
* "message": "Invalid input"
|
|
10674
|
-
* },
|
|
10675
|
-
* {
|
|
10676
|
-
* "code": "invalid_type",
|
|
10677
|
-
* "path": [
|
|
10678
|
-
* "email"
|
|
10679
|
-
* ],
|
|
10680
|
-
* "message": "Invalid input: expected string, received undefined"
|
|
10681
|
-
* }
|
|
10682
|
-
* ]
|
|
10683
|
-
* }
|
|
10684
|
-
*/
|
|
10685
|
-
error: {
|
|
10686
|
-
issues: {
|
|
10687
|
-
code: string;
|
|
10688
|
-
path: (string | number)[];
|
|
10689
|
-
message?: string;
|
|
10690
|
-
}[];
|
|
10691
|
-
name: string;
|
|
10692
|
-
};
|
|
10693
|
-
};
|
|
10694
|
-
};
|
|
10695
|
-
};
|
|
10696
|
-
/** @description Internal server error */
|
|
10697
|
-
500: {
|
|
10698
|
-
headers: {
|
|
10699
|
-
[name: string]: unknown;
|
|
10700
|
-
};
|
|
10701
|
-
content?: never;
|
|
10702
|
-
};
|
|
10703
|
-
};
|
|
10704
|
-
};
|
|
10705
|
-
delete?: never;
|
|
10706
|
-
options?: never;
|
|
10707
|
-
head?: never;
|
|
10708
|
-
patch?: never;
|
|
10709
|
-
trace?: never;
|
|
10710
|
-
};
|
|
10711
|
-
"/api/client/utils/get-exchange-rates/{currency}": {
|
|
10712
|
-
parameters: {
|
|
10713
|
-
query?: never;
|
|
10714
|
-
header?: never;
|
|
10715
|
-
path?: never;
|
|
10716
|
-
cookie?: never;
|
|
10717
|
-
};
|
|
10718
|
-
get: {
|
|
10719
|
-
parameters: {
|
|
10720
|
-
query?: never;
|
|
10721
|
-
header?: never;
|
|
10722
|
-
path: {
|
|
10723
|
-
currency: string;
|
|
10603
|
+
currency: string;
|
|
10724
10604
|
};
|
|
10725
10605
|
cookie?: never;
|
|
10726
10606
|
};
|
|
@@ -10811,8 +10691,8 @@ interface paths {
|
|
|
10811
10691
|
query: {
|
|
10812
10692
|
query: string;
|
|
10813
10693
|
locale?: string;
|
|
10814
|
-
latitude?: number;
|
|
10815
|
-
longitude?: number;
|
|
10694
|
+
latitude?: number | null;
|
|
10695
|
+
longitude?: number | null;
|
|
10816
10696
|
countryCode?: string;
|
|
10817
10697
|
};
|
|
10818
10698
|
header?: never;
|
|
@@ -11013,8 +10893,6 @@ interface paths {
|
|
|
11013
10893
|
/** Format: uuid */
|
|
11014
10894
|
customerId?: string | null;
|
|
11015
10895
|
currency: string;
|
|
11016
|
-
/** @enum {string} */
|
|
11017
|
-
type: "hosted" | "embed";
|
|
11018
10896
|
discountCodes?: string[];
|
|
11019
10897
|
lineItems: {
|
|
11020
10898
|
productData?: string | number | boolean | unknown | {
|
|
@@ -11052,6 +10930,26 @@ interface paths {
|
|
|
11052
10930
|
exchangeRate: number;
|
|
11053
10931
|
/** @enum {string} */
|
|
11054
10932
|
status: "IN_PROGRESS" | "PAYMENT_PENDING" | "ABANDONED" | "CANCELED" | "FAILED";
|
|
10933
|
+
customerData: {
|
|
10934
|
+
firstName: string;
|
|
10935
|
+
lastName: string;
|
|
10936
|
+
phone: string;
|
|
10937
|
+
/** Format: email */
|
|
10938
|
+
email: string;
|
|
10939
|
+
address: {
|
|
10940
|
+
name: string;
|
|
10941
|
+
phone: string;
|
|
10942
|
+
line1: string;
|
|
10943
|
+
line2?: string | null;
|
|
10944
|
+
company?: string | null;
|
|
10945
|
+
city: string;
|
|
10946
|
+
country: string;
|
|
10947
|
+
countryCode: string;
|
|
10948
|
+
province?: string | null;
|
|
10949
|
+
provinceCode?: string | null;
|
|
10950
|
+
zipCode: string;
|
|
10951
|
+
};
|
|
10952
|
+
} | null;
|
|
11055
10953
|
lineItems: {
|
|
11056
10954
|
/** Format: uuid */
|
|
11057
10955
|
id: string;
|
|
@@ -11341,26 +11239,13 @@ interface paths {
|
|
|
11341
11239
|
};
|
|
11342
11240
|
}[];
|
|
11343
11241
|
customer: {
|
|
11344
|
-
address: {
|
|
11345
|
-
name: string;
|
|
11346
|
-
phone: string;
|
|
11347
|
-
line1: string;
|
|
11348
|
-
line2?: string | null;
|
|
11349
|
-
company?: string | null;
|
|
11350
|
-
city: string;
|
|
11351
|
-
country: string;
|
|
11352
|
-
countryCode: string;
|
|
11353
|
-
province?: string | null;
|
|
11354
|
-
provinceCode?: string | null;
|
|
11355
|
-
zipCode: string;
|
|
11356
|
-
} | null;
|
|
11357
11242
|
email: string;
|
|
11358
11243
|
/** Format: uuid */
|
|
11359
11244
|
id: string;
|
|
11360
11245
|
stripeCustomerId: string;
|
|
11361
11246
|
} | null;
|
|
11362
11247
|
};
|
|
11363
|
-
|
|
11248
|
+
checkoutSecret: string;
|
|
11364
11249
|
};
|
|
11365
11250
|
};
|
|
11366
11251
|
};
|
|
@@ -11385,13 +11270,6 @@ interface paths {
|
|
|
11385
11270
|
* "message": "Invalid input: expected string, received undefined"
|
|
11386
11271
|
* },
|
|
11387
11272
|
* {
|
|
11388
|
-
* "code": "invalid_value",
|
|
11389
|
-
* "path": [
|
|
11390
|
-
* "type"
|
|
11391
|
-
* ],
|
|
11392
|
-
* "message": "Invalid option: expected one of \"hosted\"|\"embed\""
|
|
11393
|
-
* },
|
|
11394
|
-
* {
|
|
11395
11273
|
* "code": "invalid_type",
|
|
11396
11274
|
* "path": [
|
|
11397
11275
|
* "lineItems"
|
|
@@ -11463,6 +11341,26 @@ interface paths {
|
|
|
11463
11341
|
exchangeRate: number;
|
|
11464
11342
|
/** @enum {string} */
|
|
11465
11343
|
status: "IN_PROGRESS" | "PAYMENT_PENDING" | "ABANDONED" | "CANCELED" | "FAILED";
|
|
11344
|
+
customerData: {
|
|
11345
|
+
firstName: string;
|
|
11346
|
+
lastName: string;
|
|
11347
|
+
phone: string;
|
|
11348
|
+
/** Format: email */
|
|
11349
|
+
email: string;
|
|
11350
|
+
address: {
|
|
11351
|
+
name: string;
|
|
11352
|
+
phone: string;
|
|
11353
|
+
line1: string;
|
|
11354
|
+
line2?: string | null;
|
|
11355
|
+
company?: string | null;
|
|
11356
|
+
city: string;
|
|
11357
|
+
country: string;
|
|
11358
|
+
countryCode: string;
|
|
11359
|
+
province?: string | null;
|
|
11360
|
+
provinceCode?: string | null;
|
|
11361
|
+
zipCode: string;
|
|
11362
|
+
};
|
|
11363
|
+
} | null;
|
|
11466
11364
|
lineItems: {
|
|
11467
11365
|
/** Format: uuid */
|
|
11468
11366
|
id: string;
|
|
@@ -11752,19 +11650,6 @@ interface paths {
|
|
|
11752
11650
|
};
|
|
11753
11651
|
}[];
|
|
11754
11652
|
customer: {
|
|
11755
|
-
address: {
|
|
11756
|
-
name: string;
|
|
11757
|
-
phone: string;
|
|
11758
|
-
line1: string;
|
|
11759
|
-
line2?: string | null;
|
|
11760
|
-
company?: string | null;
|
|
11761
|
-
city: string;
|
|
11762
|
-
country: string;
|
|
11763
|
-
countryCode: string;
|
|
11764
|
-
province?: string | null;
|
|
11765
|
-
provinceCode?: string | null;
|
|
11766
|
-
zipCode: string;
|
|
11767
|
-
} | null;
|
|
11768
11653
|
email: string;
|
|
11769
11654
|
/** Format: uuid */
|
|
11770
11655
|
id: string;
|
|
@@ -11859,12 +11744,37 @@ interface paths {
|
|
|
11859
11744
|
"application/json": {
|
|
11860
11745
|
/** Format: uuid */
|
|
11861
11746
|
customerId?: string;
|
|
11747
|
+
customerData?: {
|
|
11748
|
+
firstName: string;
|
|
11749
|
+
lastName: string;
|
|
11750
|
+
phone: string;
|
|
11751
|
+
/** Format: email */
|
|
11752
|
+
email: string;
|
|
11753
|
+
address: {
|
|
11754
|
+
name: string;
|
|
11755
|
+
phone: string;
|
|
11756
|
+
line1: string;
|
|
11757
|
+
line2?: string | null;
|
|
11758
|
+
company?: string | null;
|
|
11759
|
+
city: string;
|
|
11760
|
+
country: string;
|
|
11761
|
+
countryCode: string;
|
|
11762
|
+
province?: string | null;
|
|
11763
|
+
provinceCode?: string | null;
|
|
11764
|
+
zipCode: string;
|
|
11765
|
+
};
|
|
11766
|
+
};
|
|
11862
11767
|
shipments?: {
|
|
11863
11768
|
/** Format: uuid */
|
|
11864
11769
|
id: string;
|
|
11865
|
-
shipmentData:
|
|
11866
|
-
|
|
11867
|
-
|
|
11770
|
+
shipmentData: {
|
|
11771
|
+
rateId: string;
|
|
11772
|
+
carrierId: string | null;
|
|
11773
|
+
priceInCents: number;
|
|
11774
|
+
pickupPointId: string | null;
|
|
11775
|
+
trackingId: string | null;
|
|
11776
|
+
trackingUrl: string | null;
|
|
11777
|
+
};
|
|
11868
11778
|
}[] | null;
|
|
11869
11779
|
};
|
|
11870
11780
|
};
|
|
@@ -11888,6 +11798,26 @@ interface paths {
|
|
|
11888
11798
|
exchangeRate: number;
|
|
11889
11799
|
/** @enum {string} */
|
|
11890
11800
|
status: "IN_PROGRESS" | "PAYMENT_PENDING" | "ABANDONED" | "CANCELED" | "FAILED";
|
|
11801
|
+
customerData: {
|
|
11802
|
+
firstName: string;
|
|
11803
|
+
lastName: string;
|
|
11804
|
+
phone: string;
|
|
11805
|
+
/** Format: email */
|
|
11806
|
+
email: string;
|
|
11807
|
+
address: {
|
|
11808
|
+
name: string;
|
|
11809
|
+
phone: string;
|
|
11810
|
+
line1: string;
|
|
11811
|
+
line2?: string | null;
|
|
11812
|
+
company?: string | null;
|
|
11813
|
+
city: string;
|
|
11814
|
+
country: string;
|
|
11815
|
+
countryCode: string;
|
|
11816
|
+
province?: string | null;
|
|
11817
|
+
provinceCode?: string | null;
|
|
11818
|
+
zipCode: string;
|
|
11819
|
+
};
|
|
11820
|
+
} | null;
|
|
11891
11821
|
lineItems: {
|
|
11892
11822
|
/** Format: uuid */
|
|
11893
11823
|
id: string;
|
|
@@ -12177,19 +12107,6 @@ interface paths {
|
|
|
12177
12107
|
};
|
|
12178
12108
|
}[];
|
|
12179
12109
|
customer: {
|
|
12180
|
-
address: {
|
|
12181
|
-
name: string;
|
|
12182
|
-
phone: string;
|
|
12183
|
-
line1: string;
|
|
12184
|
-
line2?: string | null;
|
|
12185
|
-
company?: string | null;
|
|
12186
|
-
city: string;
|
|
12187
|
-
country: string;
|
|
12188
|
-
countryCode: string;
|
|
12189
|
-
province?: string | null;
|
|
12190
|
-
provinceCode?: string | null;
|
|
12191
|
-
zipCode: string;
|
|
12192
|
-
} | null;
|
|
12193
12110
|
email: string;
|
|
12194
12111
|
/** Format: uuid */
|
|
12195
12112
|
id: string;
|
|
@@ -12432,6 +12349,26 @@ interface paths {
|
|
|
12432
12349
|
exchangeRate: number;
|
|
12433
12350
|
/** @enum {string} */
|
|
12434
12351
|
status: "IN_PROGRESS" | "PAYMENT_PENDING" | "ABANDONED" | "CANCELED" | "FAILED";
|
|
12352
|
+
customerData: {
|
|
12353
|
+
firstName: string;
|
|
12354
|
+
lastName: string;
|
|
12355
|
+
phone: string;
|
|
12356
|
+
/** Format: email */
|
|
12357
|
+
email: string;
|
|
12358
|
+
address: {
|
|
12359
|
+
name: string;
|
|
12360
|
+
phone: string;
|
|
12361
|
+
line1: string;
|
|
12362
|
+
line2?: string | null;
|
|
12363
|
+
company?: string | null;
|
|
12364
|
+
city: string;
|
|
12365
|
+
country: string;
|
|
12366
|
+
countryCode: string;
|
|
12367
|
+
province?: string | null;
|
|
12368
|
+
provinceCode?: string | null;
|
|
12369
|
+
zipCode: string;
|
|
12370
|
+
};
|
|
12371
|
+
} | null;
|
|
12435
12372
|
lineItems: {
|
|
12436
12373
|
/** Format: uuid */
|
|
12437
12374
|
id: string;
|
|
@@ -12721,19 +12658,6 @@ interface paths {
|
|
|
12721
12658
|
};
|
|
12722
12659
|
}[];
|
|
12723
12660
|
customer: {
|
|
12724
|
-
address: {
|
|
12725
|
-
name: string;
|
|
12726
|
-
phone: string;
|
|
12727
|
-
line1: string;
|
|
12728
|
-
line2?: string | null;
|
|
12729
|
-
company?: string | null;
|
|
12730
|
-
city: string;
|
|
12731
|
-
country: string;
|
|
12732
|
-
countryCode: string;
|
|
12733
|
-
province?: string | null;
|
|
12734
|
-
provinceCode?: string | null;
|
|
12735
|
-
zipCode: string;
|
|
12736
|
-
} | null;
|
|
12737
12661
|
email: string;
|
|
12738
12662
|
/** Format: uuid */
|
|
12739
12663
|
id: string;
|
|
@@ -12839,6 +12763,26 @@ interface paths {
|
|
|
12839
12763
|
exchangeRate: number;
|
|
12840
12764
|
/** @enum {string} */
|
|
12841
12765
|
status: "IN_PROGRESS" | "PAYMENT_PENDING" | "ABANDONED" | "CANCELED" | "FAILED";
|
|
12766
|
+
customerData: {
|
|
12767
|
+
firstName: string;
|
|
12768
|
+
lastName: string;
|
|
12769
|
+
phone: string;
|
|
12770
|
+
/** Format: email */
|
|
12771
|
+
email: string;
|
|
12772
|
+
address: {
|
|
12773
|
+
name: string;
|
|
12774
|
+
phone: string;
|
|
12775
|
+
line1: string;
|
|
12776
|
+
line2?: string | null;
|
|
12777
|
+
company?: string | null;
|
|
12778
|
+
city: string;
|
|
12779
|
+
country: string;
|
|
12780
|
+
countryCode: string;
|
|
12781
|
+
province?: string | null;
|
|
12782
|
+
provinceCode?: string | null;
|
|
12783
|
+
zipCode: string;
|
|
12784
|
+
};
|
|
12785
|
+
} | null;
|
|
12842
12786
|
lineItems: {
|
|
12843
12787
|
/** Format: uuid */
|
|
12844
12788
|
id: string;
|
|
@@ -13128,19 +13072,6 @@ interface paths {
|
|
|
13128
13072
|
};
|
|
13129
13073
|
}[];
|
|
13130
13074
|
customer: {
|
|
13131
|
-
address: {
|
|
13132
|
-
name: string;
|
|
13133
|
-
phone: string;
|
|
13134
|
-
line1: string;
|
|
13135
|
-
line2?: string | null;
|
|
13136
|
-
company?: string | null;
|
|
13137
|
-
city: string;
|
|
13138
|
-
country: string;
|
|
13139
|
-
countryCode: string;
|
|
13140
|
-
province?: string | null;
|
|
13141
|
-
provinceCode?: string | null;
|
|
13142
|
-
zipCode: string;
|
|
13143
|
-
} | null;
|
|
13144
13075
|
email: string;
|
|
13145
13076
|
/** Format: uuid */
|
|
13146
13077
|
id: string;
|
|
@@ -13256,6 +13187,26 @@ interface paths {
|
|
|
13256
13187
|
exchangeRate: number;
|
|
13257
13188
|
/** @enum {string} */
|
|
13258
13189
|
status: "IN_PROGRESS" | "PAYMENT_PENDING" | "ABANDONED" | "CANCELED" | "FAILED";
|
|
13190
|
+
customerData: {
|
|
13191
|
+
firstName: string;
|
|
13192
|
+
lastName: string;
|
|
13193
|
+
phone: string;
|
|
13194
|
+
/** Format: email */
|
|
13195
|
+
email: string;
|
|
13196
|
+
address: {
|
|
13197
|
+
name: string;
|
|
13198
|
+
phone: string;
|
|
13199
|
+
line1: string;
|
|
13200
|
+
line2?: string | null;
|
|
13201
|
+
company?: string | null;
|
|
13202
|
+
city: string;
|
|
13203
|
+
country: string;
|
|
13204
|
+
countryCode: string;
|
|
13205
|
+
province?: string | null;
|
|
13206
|
+
provinceCode?: string | null;
|
|
13207
|
+
zipCode: string;
|
|
13208
|
+
};
|
|
13209
|
+
} | null;
|
|
13259
13210
|
lineItems: {
|
|
13260
13211
|
/** Format: uuid */
|
|
13261
13212
|
id: string;
|
|
@@ -13545,19 +13496,6 @@ interface paths {
|
|
|
13545
13496
|
};
|
|
13546
13497
|
}[];
|
|
13547
13498
|
customer: {
|
|
13548
|
-
address: {
|
|
13549
|
-
name: string;
|
|
13550
|
-
phone: string;
|
|
13551
|
-
line1: string;
|
|
13552
|
-
line2?: string | null;
|
|
13553
|
-
company?: string | null;
|
|
13554
|
-
city: string;
|
|
13555
|
-
country: string;
|
|
13556
|
-
countryCode: string;
|
|
13557
|
-
province?: string | null;
|
|
13558
|
-
provinceCode?: string | null;
|
|
13559
|
-
zipCode: string;
|
|
13560
|
-
} | null;
|
|
13561
13499
|
email: string;
|
|
13562
13500
|
/** Format: uuid */
|
|
13563
13501
|
id: string;
|
|
@@ -13666,6 +13604,26 @@ interface paths {
|
|
|
13666
13604
|
exchangeRate: number;
|
|
13667
13605
|
/** @enum {string} */
|
|
13668
13606
|
status: "IN_PROGRESS" | "PAYMENT_PENDING" | "ABANDONED" | "CANCELED" | "FAILED";
|
|
13607
|
+
customerData: {
|
|
13608
|
+
firstName: string;
|
|
13609
|
+
lastName: string;
|
|
13610
|
+
phone: string;
|
|
13611
|
+
/** Format: email */
|
|
13612
|
+
email: string;
|
|
13613
|
+
address: {
|
|
13614
|
+
name: string;
|
|
13615
|
+
phone: string;
|
|
13616
|
+
line1: string;
|
|
13617
|
+
line2?: string | null;
|
|
13618
|
+
company?: string | null;
|
|
13619
|
+
city: string;
|
|
13620
|
+
country: string;
|
|
13621
|
+
countryCode: string;
|
|
13622
|
+
province?: string | null;
|
|
13623
|
+
provinceCode?: string | null;
|
|
13624
|
+
zipCode: string;
|
|
13625
|
+
};
|
|
13626
|
+
} | null;
|
|
13669
13627
|
lineItems: {
|
|
13670
13628
|
/** Format: uuid */
|
|
13671
13629
|
id: string;
|
|
@@ -13955,19 +13913,6 @@ interface paths {
|
|
|
13955
13913
|
};
|
|
13956
13914
|
}[];
|
|
13957
13915
|
customer: {
|
|
13958
|
-
address: {
|
|
13959
|
-
name: string;
|
|
13960
|
-
phone: string;
|
|
13961
|
-
line1: string;
|
|
13962
|
-
line2?: string | null;
|
|
13963
|
-
company?: string | null;
|
|
13964
|
-
city: string;
|
|
13965
|
-
country: string;
|
|
13966
|
-
countryCode: string;
|
|
13967
|
-
province?: string | null;
|
|
13968
|
-
provinceCode?: string | null;
|
|
13969
|
-
zipCode: string;
|
|
13970
|
-
} | null;
|
|
13971
13916
|
email: string;
|
|
13972
13917
|
/** Format: uuid */
|
|
13973
13918
|
id: string;
|
|
@@ -14336,7 +14281,7 @@ type FactoryConfig = {
|
|
|
14336
14281
|
proxy?: string;
|
|
14337
14282
|
};
|
|
14338
14283
|
|
|
14339
|
-
declare function createBetterStoreClient(
|
|
14284
|
+
declare function createBetterStoreClient(checkoutSecret: string, config?: FactoryConfig): {
|
|
14340
14285
|
checkout: ClientCheckoutNamespace;
|
|
14341
14286
|
customers: ClientCustomersNamespace;
|
|
14342
14287
|
utils: ClientUtilsNamespace;
|