@commercelayer/sdk 6.25.2 → 6.27.0
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/index.d.mts +395 -245
- package/lib/index.d.ts +395 -245
- package/lib/index.js +1 -1
- package/lib/index.mjs +1 -1
- package/package.json +3 -3
package/lib/index.d.mts
CHANGED
@@ -933,7 +933,7 @@ type StoreType = 'stores';
|
|
933
933
|
type StoreRel$2 = ResourceRel & {
|
934
934
|
type: StoreType;
|
935
935
|
};
|
936
|
-
type MarketRel$
|
936
|
+
type MarketRel$j = ResourceRel & {
|
937
937
|
type: MarketType;
|
938
938
|
};
|
939
939
|
type MerchantRel$3 = ResourceRel & {
|
@@ -974,7 +974,7 @@ interface StoreCreate extends ResourceCreate {
|
|
974
974
|
* @example ```"europe1"```
|
975
975
|
*/
|
976
976
|
code?: string | null;
|
977
|
-
market: MarketRel$
|
977
|
+
market: MarketRel$j;
|
978
978
|
merchant?: MerchantRel$3 | null;
|
979
979
|
stock_location?: StockLocationRel$8 | null;
|
980
980
|
}
|
@@ -989,7 +989,7 @@ interface StoreUpdate extends ResourceUpdate {
|
|
989
989
|
* @example ```"europe1"```
|
990
990
|
*/
|
991
991
|
code?: string | null;
|
992
|
-
market?: MarketRel$
|
992
|
+
market?: MarketRel$j | null;
|
993
993
|
merchant?: MerchantRel$3 | null;
|
994
994
|
stock_location?: StockLocationRel$8 | null;
|
995
995
|
}
|
@@ -1015,7 +1015,7 @@ type PaymentMethodType = 'payment_methods';
|
|
1015
1015
|
type PaymentMethodRel$4 = ResourceRel & {
|
1016
1016
|
type: PaymentMethodType;
|
1017
1017
|
};
|
1018
|
-
type MarketRel$
|
1018
|
+
type MarketRel$i = ResourceRel & {
|
1019
1019
|
type: MarketType;
|
1020
1020
|
};
|
1021
1021
|
type PaymentGatewayRel = ResourceRel & {
|
@@ -1094,6 +1094,7 @@ interface PaymentMethod extends Resource {
|
|
1094
1094
|
market?: Market | null;
|
1095
1095
|
payment_gateway?: PaymentGateway | null;
|
1096
1096
|
store?: Store | null;
|
1097
|
+
orders?: Order[] | null;
|
1097
1098
|
attachments?: Attachment[] | null;
|
1098
1099
|
versions?: Version[] | null;
|
1099
1100
|
}
|
@@ -1149,7 +1150,7 @@ interface PaymentMethodCreate extends ResourceCreate {
|
|
1149
1150
|
* @example ```"true"```
|
1150
1151
|
*/
|
1151
1152
|
_enable?: boolean | null;
|
1152
|
-
market?: MarketRel$
|
1153
|
+
market?: MarketRel$i | null;
|
1153
1154
|
payment_gateway: PaymentGatewayRel;
|
1154
1155
|
store?: StoreRel$1 | null;
|
1155
1156
|
}
|
@@ -1205,7 +1206,7 @@ interface PaymentMethodUpdate extends ResourceUpdate {
|
|
1205
1206
|
* @example ```"true"```
|
1206
1207
|
*/
|
1207
1208
|
_enable?: boolean | null;
|
1208
|
-
market?: MarketRel$
|
1209
|
+
market?: MarketRel$i | null;
|
1209
1210
|
payment_gateway?: PaymentGatewayRel | null;
|
1210
1211
|
store?: StoreRel$1 | null;
|
1211
1212
|
}
|
@@ -1217,6 +1218,7 @@ declare class PaymentMethods extends ApiResource<PaymentMethod> {
|
|
1217
1218
|
market(paymentMethodId: string | PaymentMethod, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market>;
|
1218
1219
|
payment_gateway(paymentMethodId: string | PaymentMethod, params?: QueryParamsRetrieve<PaymentGateway>, options?: ResourcesConfig): Promise<PaymentGateway>;
|
1219
1220
|
store(paymentMethodId: string | PaymentMethod, params?: QueryParamsRetrieve<Store>, options?: ResourcesConfig): Promise<Store>;
|
1221
|
+
orders(paymentMethodId: string | PaymentMethod, params?: QueryParamsList<Order>, options?: ResourcesConfig): Promise<ListResponse<Order>>;
|
1220
1222
|
attachments(paymentMethodId: string | PaymentMethod, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
1221
1223
|
versions(paymentMethodId: string | PaymentMethod, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
1222
1224
|
_disable(id: string | PaymentMethod, params?: QueryParamsRetrieve<PaymentMethod>, options?: ResourcesConfig): Promise<PaymentMethod>;
|
@@ -1231,7 +1233,7 @@ type AdyenPaymentType = 'adyen_payments';
|
|
1231
1233
|
type AdyenPaymentRel$3 = ResourceRel & {
|
1232
1234
|
type: AdyenPaymentType;
|
1233
1235
|
};
|
1234
|
-
type OrderRel$
|
1236
|
+
type OrderRel$k = ResourceRel & {
|
1235
1237
|
type: OrderType;
|
1236
1238
|
};
|
1237
1239
|
type AdyenPaymentSort = Pick<AdyenPayment, 'id'> & ResourceSort;
|
@@ -1276,7 +1278,7 @@ interface AdyenPayment extends Resource {
|
|
1276
1278
|
versions?: Version[] | null;
|
1277
1279
|
}
|
1278
1280
|
interface AdyenPaymentCreate extends ResourceCreate {
|
1279
|
-
order: OrderRel$
|
1281
|
+
order: OrderRel$k;
|
1280
1282
|
}
|
1281
1283
|
interface AdyenPaymentUpdate extends ResourceUpdate {
|
1282
1284
|
/**
|
@@ -1299,7 +1301,7 @@ interface AdyenPaymentUpdate extends ResourceUpdate {
|
|
1299
1301
|
* @example ```"true"```
|
1300
1302
|
*/
|
1301
1303
|
_details?: boolean | null;
|
1302
|
-
order?: OrderRel$
|
1304
|
+
order?: OrderRel$k | null;
|
1303
1305
|
}
|
1304
1306
|
declare class AdyenPayments extends ApiResource<AdyenPayment> {
|
1305
1307
|
static readonly TYPE: AdyenPaymentType;
|
@@ -1320,7 +1322,7 @@ type AxervePaymentType = 'axerve_payments';
|
|
1320
1322
|
type AxervePaymentRel$3 = ResourceRel & {
|
1321
1323
|
type: AxervePaymentType;
|
1322
1324
|
};
|
1323
|
-
type OrderRel$
|
1325
|
+
type OrderRel$j = ResourceRel & {
|
1324
1326
|
type: OrderType;
|
1325
1327
|
};
|
1326
1328
|
type AxervePaymentSort = Pick<AxervePayment, 'id'> & ResourceSort;
|
@@ -1390,7 +1392,7 @@ interface AxervePaymentCreate extends ResourceCreate {
|
|
1390
1392
|
* @example ```"true"```
|
1391
1393
|
*/
|
1392
1394
|
request_token?: boolean | null;
|
1393
|
-
order: OrderRel$
|
1395
|
+
order: OrderRel$j;
|
1394
1396
|
}
|
1395
1397
|
interface AxervePaymentUpdate extends ResourceUpdate {
|
1396
1398
|
/**
|
@@ -1403,7 +1405,7 @@ interface AxervePaymentUpdate extends ResourceUpdate {
|
|
1403
1405
|
* @example ```"true"```
|
1404
1406
|
*/
|
1405
1407
|
_update?: boolean | null;
|
1406
|
-
order?: OrderRel$
|
1408
|
+
order?: OrderRel$j | null;
|
1407
1409
|
}
|
1408
1410
|
declare class AxervePayments extends ApiResource<AxervePayment> {
|
1409
1411
|
static readonly TYPE: AxervePaymentType;
|
@@ -1424,7 +1426,7 @@ type BraintreePaymentType = 'braintree_payments';
|
|
1424
1426
|
type BraintreePaymentRel$3 = ResourceRel & {
|
1425
1427
|
type: BraintreePaymentType;
|
1426
1428
|
};
|
1427
|
-
type OrderRel$
|
1429
|
+
type OrderRel$i = ResourceRel & {
|
1428
1430
|
type: OrderType;
|
1429
1431
|
};
|
1430
1432
|
type BraintreePaymentSort = Pick<BraintreePayment, 'id'> & ResourceSort;
|
@@ -1480,7 +1482,7 @@ interface BraintreePaymentCreate extends ResourceCreate {
|
|
1480
1482
|
* @example ```"[object Object]"```
|
1481
1483
|
*/
|
1482
1484
|
options?: Record<string, any> | null;
|
1483
|
-
order: OrderRel$
|
1485
|
+
order: OrderRel$i;
|
1484
1486
|
}
|
1485
1487
|
interface BraintreePaymentUpdate extends ResourceUpdate {
|
1486
1488
|
/**
|
@@ -1503,7 +1505,7 @@ interface BraintreePaymentUpdate extends ResourceUpdate {
|
|
1503
1505
|
* @example ```"[object Object]"```
|
1504
1506
|
*/
|
1505
1507
|
options?: Record<string, any> | null;
|
1506
|
-
order?: OrderRel$
|
1508
|
+
order?: OrderRel$i | null;
|
1507
1509
|
}
|
1508
1510
|
declare class BraintreePayments extends ApiResource<BraintreePayment> {
|
1509
1511
|
static readonly TYPE: BraintreePaymentType;
|
@@ -1523,7 +1525,7 @@ type CheckoutComPaymentType = 'checkout_com_payments';
|
|
1523
1525
|
type CheckoutComPaymentRel$3 = ResourceRel & {
|
1524
1526
|
type: CheckoutComPaymentType;
|
1525
1527
|
};
|
1526
|
-
type OrderRel$
|
1528
|
+
type OrderRel$h = ResourceRel & {
|
1527
1529
|
type: OrderType;
|
1528
1530
|
};
|
1529
1531
|
type CheckoutComPaymentSort = Pick<CheckoutComPayment, 'id'> & ResourceSort;
|
@@ -1618,7 +1620,7 @@ interface CheckoutComPaymentCreate extends ResourceCreate {
|
|
1618
1620
|
* @example ```"http://commercelayer.dev/checkout_com/failure"```
|
1619
1621
|
*/
|
1620
1622
|
failure_url?: string | null;
|
1621
|
-
order: OrderRel$
|
1623
|
+
order: OrderRel$h;
|
1622
1624
|
}
|
1623
1625
|
interface CheckoutComPaymentUpdate extends ResourceUpdate {
|
1624
1626
|
/**
|
@@ -1656,7 +1658,7 @@ interface CheckoutComPaymentUpdate extends ResourceUpdate {
|
|
1656
1658
|
* @example ```"true"```
|
1657
1659
|
*/
|
1658
1660
|
_refresh?: boolean | null;
|
1659
|
-
order?: OrderRel$
|
1661
|
+
order?: OrderRel$h | null;
|
1660
1662
|
}
|
1661
1663
|
declare class CheckoutComPayments extends ApiResource<CheckoutComPayment> {
|
1662
1664
|
static readonly TYPE: CheckoutComPaymentType;
|
@@ -1678,7 +1680,7 @@ type ExternalPaymentType = 'external_payments';
|
|
1678
1680
|
type ExternalPaymentRel$2 = ResourceRel & {
|
1679
1681
|
type: ExternalPaymentType;
|
1680
1682
|
};
|
1681
|
-
type OrderRel$
|
1683
|
+
type OrderRel$g = ResourceRel & {
|
1682
1684
|
type: OrderType;
|
1683
1685
|
};
|
1684
1686
|
type ExternalPaymentSort = Pick<ExternalPayment, 'id'> & ResourceSort;
|
@@ -1715,7 +1717,7 @@ interface ExternalPaymentCreate extends ResourceCreate {
|
|
1715
1717
|
* @example ```"[object Object]"```
|
1716
1718
|
*/
|
1717
1719
|
options?: Record<string, any> | null;
|
1718
|
-
order: OrderRel$
|
1720
|
+
order: OrderRel$g;
|
1719
1721
|
}
|
1720
1722
|
interface ExternalPaymentUpdate extends ResourceUpdate {
|
1721
1723
|
/**
|
@@ -1723,7 +1725,7 @@ interface ExternalPaymentUpdate extends ResourceUpdate {
|
|
1723
1725
|
* @example ```"[object Object]"```
|
1724
1726
|
*/
|
1725
1727
|
options?: Record<string, any> | null;
|
1726
|
-
order?: OrderRel$
|
1728
|
+
order?: OrderRel$g | null;
|
1727
1729
|
}
|
1728
1730
|
declare class ExternalPayments extends ApiResource<ExternalPayment> {
|
1729
1731
|
static readonly TYPE: ExternalPaymentType;
|
@@ -1744,7 +1746,7 @@ type KlarnaPaymentType = 'klarna_payments';
|
|
1744
1746
|
type KlarnaPaymentRel$3 = ResourceRel & {
|
1745
1747
|
type: KlarnaPaymentType;
|
1746
1748
|
};
|
1747
|
-
type OrderRel$
|
1749
|
+
type OrderRel$f = ResourceRel & {
|
1748
1750
|
type: OrderType;
|
1749
1751
|
};
|
1750
1752
|
type KlarnaPaymentSort = Pick<KlarnaPayment, 'id'> & ResourceSort;
|
@@ -1784,7 +1786,7 @@ interface KlarnaPayment extends Resource {
|
|
1784
1786
|
versions?: Version[] | null;
|
1785
1787
|
}
|
1786
1788
|
interface KlarnaPaymentCreate extends ResourceCreate {
|
1787
|
-
order: OrderRel$
|
1789
|
+
order: OrderRel$f;
|
1788
1790
|
}
|
1789
1791
|
interface KlarnaPaymentUpdate extends ResourceUpdate {
|
1790
1792
|
/**
|
@@ -1797,7 +1799,7 @@ interface KlarnaPaymentUpdate extends ResourceUpdate {
|
|
1797
1799
|
* @example ```"true"```
|
1798
1800
|
*/
|
1799
1801
|
_update?: boolean | null;
|
1800
|
-
order?: OrderRel$
|
1802
|
+
order?: OrderRel$f | null;
|
1801
1803
|
}
|
1802
1804
|
declare class KlarnaPayments extends ApiResource<KlarnaPayment> {
|
1803
1805
|
static readonly TYPE: KlarnaPaymentType;
|
@@ -1818,7 +1820,7 @@ type PaypalPaymentType = 'paypal_payments';
|
|
1818
1820
|
type PaypalPaymentRel$2 = ResourceRel & {
|
1819
1821
|
type: PaypalPaymentType;
|
1820
1822
|
};
|
1821
|
-
type OrderRel$
|
1823
|
+
type OrderRel$e = ResourceRel & {
|
1822
1824
|
type: OrderType;
|
1823
1825
|
};
|
1824
1826
|
type PaypalPaymentSort = Pick<PaypalPayment, 'id'> & ResourceSort;
|
@@ -1893,7 +1895,7 @@ interface PaypalPaymentCreate extends ResourceCreate {
|
|
1893
1895
|
* @example ```"Thank you for shopping with us!"```
|
1894
1896
|
*/
|
1895
1897
|
note_to_payer?: string | null;
|
1896
|
-
order: OrderRel$
|
1898
|
+
order: OrderRel$e;
|
1897
1899
|
}
|
1898
1900
|
interface PaypalPaymentUpdate extends ResourceUpdate {
|
1899
1901
|
/**
|
@@ -1901,7 +1903,7 @@ interface PaypalPaymentUpdate extends ResourceUpdate {
|
|
1901
1903
|
* @example ```"ABCDEFGHG123456"```
|
1902
1904
|
*/
|
1903
1905
|
paypal_payer_id?: string | null;
|
1904
|
-
order?: OrderRel$
|
1906
|
+
order?: OrderRel$e | null;
|
1905
1907
|
}
|
1906
1908
|
declare class PaypalPayments extends ApiResource<PaypalPayment> {
|
1907
1909
|
static readonly TYPE: PaypalPaymentType;
|
@@ -1921,7 +1923,7 @@ type SatispayPaymentType = 'satispay_payments';
|
|
1921
1923
|
type SatispayPaymentRel$3 = ResourceRel & {
|
1922
1924
|
type: SatispayPaymentType;
|
1923
1925
|
};
|
1924
|
-
type OrderRel$
|
1926
|
+
type OrderRel$d = ResourceRel & {
|
1925
1927
|
type: OrderType;
|
1926
1928
|
};
|
1927
1929
|
type SatispayPaymentSort = Pick<SatispayPayment, 'id' | 'flow' | 'status'> & ResourceSort;
|
@@ -1977,7 +1979,7 @@ interface SatispayPaymentCreate extends ResourceCreate {
|
|
1977
1979
|
* @example ```"http://commercelayer.dev/satispay/redirect"```
|
1978
1980
|
*/
|
1979
1981
|
redirect_url?: string | null;
|
1980
|
-
order: OrderRel$
|
1982
|
+
order: OrderRel$d;
|
1981
1983
|
}
|
1982
1984
|
interface SatispayPaymentUpdate extends ResourceUpdate {
|
1983
1985
|
/**
|
@@ -1990,7 +1992,7 @@ interface SatispayPaymentUpdate extends ResourceUpdate {
|
|
1990
1992
|
* @example ```"true"```
|
1991
1993
|
*/
|
1992
1994
|
_refresh?: boolean | null;
|
1993
|
-
order?: OrderRel$
|
1995
|
+
order?: OrderRel$d | null;
|
1994
1996
|
}
|
1995
1997
|
declare class SatispayPayments extends ApiResource<SatispayPayment> {
|
1996
1998
|
static readonly TYPE: SatispayPaymentType;
|
@@ -2011,7 +2013,7 @@ type StripePaymentType = 'stripe_payments';
|
|
2011
2013
|
type StripePaymentRel$2 = ResourceRel & {
|
2012
2014
|
type: StripePaymentType;
|
2013
2015
|
};
|
2014
|
-
type OrderRel$
|
2016
|
+
type OrderRel$c = ResourceRel & {
|
2015
2017
|
type: OrderType;
|
2016
2018
|
};
|
2017
2019
|
type StripePaymentSort = Pick<StripePayment, 'id'> & ResourceSort;
|
@@ -2096,7 +2098,7 @@ interface StripePaymentCreate extends ResourceCreate {
|
|
2096
2098
|
* @example ```"john@example.com"```
|
2097
2099
|
*/
|
2098
2100
|
receipt_email?: string | null;
|
2099
|
-
order: OrderRel$
|
2101
|
+
order: OrderRel$c;
|
2100
2102
|
}
|
2101
2103
|
interface StripePaymentUpdate extends ResourceUpdate {
|
2102
2104
|
/**
|
@@ -2119,7 +2121,7 @@ interface StripePaymentUpdate extends ResourceUpdate {
|
|
2119
2121
|
* @example ```"true"```
|
2120
2122
|
*/
|
2121
2123
|
_refresh?: boolean | null;
|
2122
|
-
order?: OrderRel$
|
2124
|
+
order?: OrderRel$c | null;
|
2123
2125
|
}
|
2124
2126
|
declare class StripePayments extends ApiResource<StripePayment> {
|
2125
2127
|
static readonly TYPE: StripePaymentType;
|
@@ -2141,7 +2143,7 @@ type WireTransferType = 'wire_transfers';
|
|
2141
2143
|
type WireTransferRel$2 = ResourceRel & {
|
2142
2144
|
type: WireTransferType;
|
2143
2145
|
};
|
2144
|
-
type OrderRel$
|
2146
|
+
type OrderRel$b = ResourceRel & {
|
2145
2147
|
type: OrderType;
|
2146
2148
|
};
|
2147
2149
|
type WireTransferSort = Pick<WireTransfer, 'id'> & ResourceSort;
|
@@ -2156,10 +2158,10 @@ interface WireTransfer extends Resource {
|
|
2156
2158
|
versions?: Version[] | null;
|
2157
2159
|
}
|
2158
2160
|
interface WireTransferCreate extends ResourceCreate {
|
2159
|
-
order: OrderRel$
|
2161
|
+
order: OrderRel$b;
|
2160
2162
|
}
|
2161
2163
|
interface WireTransferUpdate extends ResourceUpdate {
|
2162
|
-
order?: OrderRel$
|
2164
|
+
order?: OrderRel$b | null;
|
2163
2165
|
}
|
2164
2166
|
declare class WireTransfers extends ApiResource<WireTransfer> {
|
2165
2167
|
static readonly TYPE: WireTransferType;
|
@@ -2424,7 +2426,7 @@ type SkuOptionType = 'sku_options';
|
|
2424
2426
|
type SkuOptionRel$2 = ResourceRel & {
|
2425
2427
|
type: SkuOptionType;
|
2426
2428
|
};
|
2427
|
-
type MarketRel$
|
2429
|
+
type MarketRel$h = ResourceRel & {
|
2428
2430
|
type: MarketType;
|
2429
2431
|
};
|
2430
2432
|
type TagRel$k = ResourceRel & {
|
@@ -2474,7 +2476,7 @@ interface SkuOption extends Resource {
|
|
2474
2476
|
*/
|
2475
2477
|
delay_days?: number | null;
|
2476
2478
|
/**
|
2477
|
-
* The regex that will be evaluated to match the SKU codes.
|
2479
|
+
* The regex that will be evaluated to match the SKU codes, max size is 5000.
|
2478
2480
|
* @example ```"^(A|B).*$"```
|
2479
2481
|
*/
|
2480
2482
|
sku_code_regex?: string | null;
|
@@ -2511,11 +2513,11 @@ interface SkuOptionCreate extends ResourceCreate {
|
|
2511
2513
|
*/
|
2512
2514
|
delay_hours?: number | null;
|
2513
2515
|
/**
|
2514
|
-
* The regex that will be evaluated to match the SKU codes.
|
2516
|
+
* The regex that will be evaluated to match the SKU codes, max size is 5000.
|
2515
2517
|
* @example ```"^(A|B).*$"```
|
2516
2518
|
*/
|
2517
2519
|
sku_code_regex?: string | null;
|
2518
|
-
market?: MarketRel$
|
2520
|
+
market?: MarketRel$h | null;
|
2519
2521
|
tags?: TagRel$k[] | null;
|
2520
2522
|
}
|
2521
2523
|
interface SkuOptionUpdate extends ResourceUpdate {
|
@@ -2545,11 +2547,11 @@ interface SkuOptionUpdate extends ResourceUpdate {
|
|
2545
2547
|
*/
|
2546
2548
|
delay_hours?: number | null;
|
2547
2549
|
/**
|
2548
|
-
* The regex that will be evaluated to match the SKU codes.
|
2550
|
+
* The regex that will be evaluated to match the SKU codes, max size is 5000.
|
2549
2551
|
* @example ```"^(A|B).*$"```
|
2550
2552
|
*/
|
2551
2553
|
sku_code_regex?: string | null;
|
2552
|
-
market?: MarketRel$
|
2554
|
+
market?: MarketRel$h | null;
|
2553
2555
|
tags?: TagRel$k[] | null;
|
2554
2556
|
}
|
2555
2557
|
declare class SkuOptions extends ApiResource<SkuOption> {
|
@@ -2572,7 +2574,7 @@ type LineItemOptionType = 'line_item_options';
|
|
2572
2574
|
type LineItemOptionRel = ResourceRel & {
|
2573
2575
|
type: LineItemOptionType;
|
2574
2576
|
};
|
2575
|
-
type LineItemRel$
|
2577
|
+
type LineItemRel$5 = ResourceRel & {
|
2576
2578
|
type: LineItemType;
|
2577
2579
|
};
|
2578
2580
|
type SkuOptionRel$1 = ResourceRel & {
|
@@ -2670,7 +2672,7 @@ interface LineItemOptionCreate extends ResourceCreate {
|
|
2670
2672
|
* @example ```"[object Object]"```
|
2671
2673
|
*/
|
2672
2674
|
options: Record<string, any>;
|
2673
|
-
line_item: LineItemRel$
|
2675
|
+
line_item: LineItemRel$5;
|
2674
2676
|
sku_option: SkuOptionRel$1;
|
2675
2677
|
tags?: TagRel$j[] | null;
|
2676
2678
|
}
|
@@ -2775,6 +2777,7 @@ interface Void extends Resource {
|
|
2775
2777
|
*/
|
2776
2778
|
gateway_transaction_id?: string | null;
|
2777
2779
|
order?: Order | null;
|
2780
|
+
payment_source?: AdyenPayment | AxervePayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | SatispayPayment | StripePayment | WireTransfer | null;
|
2778
2781
|
attachments?: Attachment[] | null;
|
2779
2782
|
events?: Event[] | null;
|
2780
2783
|
versions?: Version[] | null;
|
@@ -2938,6 +2941,7 @@ interface Authorization extends Resource {
|
|
2938
2941
|
*/
|
2939
2942
|
formatted_void_balance?: string | null;
|
2940
2943
|
order?: Order | null;
|
2944
|
+
payment_source?: AdyenPayment | AxervePayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | SatispayPayment | StripePayment | WireTransfer | null;
|
2941
2945
|
attachments?: Attachment[] | null;
|
2942
2946
|
events?: Event[] | null;
|
2943
2947
|
versions?: Version[] | null;
|
@@ -3057,6 +3061,7 @@ interface Refund extends Resource {
|
|
3057
3061
|
*/
|
3058
3062
|
gateway_transaction_id?: string | null;
|
3059
3063
|
order?: Order | null;
|
3064
|
+
payment_source?: AdyenPayment | AxervePayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | SatispayPayment | StripePayment | WireTransfer | null;
|
3060
3065
|
attachments?: Attachment[] | null;
|
3061
3066
|
events?: Event[] | null;
|
3062
3067
|
versions?: Version[] | null;
|
@@ -3182,6 +3187,7 @@ interface Capture extends Resource {
|
|
3182
3187
|
*/
|
3183
3188
|
formatted_refund_balance?: string | null;
|
3184
3189
|
order?: Order | null;
|
3190
|
+
payment_source?: AdyenPayment | AxervePayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | SatispayPayment | StripePayment | WireTransfer | null;
|
3185
3191
|
attachments?: Attachment[] | null;
|
3186
3192
|
events?: Event[] | null;
|
3187
3193
|
versions?: Version[] | null;
|
@@ -3271,7 +3277,7 @@ type ReturnType = 'returns';
|
|
3271
3277
|
type ReturnRel$2 = ResourceRel & {
|
3272
3278
|
type: ReturnType;
|
3273
3279
|
};
|
3274
|
-
type OrderRel$
|
3280
|
+
type OrderRel$a = ResourceRel & {
|
3275
3281
|
type: OrderType;
|
3276
3282
|
};
|
3277
3283
|
type StockLocationRel$7 = ResourceRel & {
|
@@ -3371,7 +3377,7 @@ interface Return extends Resource {
|
|
3371
3377
|
versions?: Version[] | null;
|
3372
3378
|
}
|
3373
3379
|
interface ReturnCreate extends ResourceCreate {
|
3374
|
-
order: OrderRel$
|
3380
|
+
order: OrderRel$a;
|
3375
3381
|
stock_location?: StockLocationRel$7 | null;
|
3376
3382
|
reference_capture?: CaptureRel | null;
|
3377
3383
|
tags?: TagRel$i[] | null;
|
@@ -3478,7 +3484,7 @@ type ReturnLineItemRel = ResourceRel & {
|
|
3478
3484
|
type ReturnRel$1 = ResourceRel & {
|
3479
3485
|
type: ReturnType;
|
3480
3486
|
};
|
3481
|
-
type LineItemRel$
|
3487
|
+
type LineItemRel$4 = ResourceRel & {
|
3482
3488
|
type: LineItemType;
|
3483
3489
|
};
|
3484
3490
|
type ReturnLineItemSort = Pick<ReturnLineItem, 'id' | 'quantity' | 'total_amount_cents' | 'restocked_at'> & ResourceSort;
|
@@ -3549,7 +3555,7 @@ interface ReturnLineItemCreate extends ResourceCreate {
|
|
3549
3555
|
*/
|
3550
3556
|
return_reason?: Record<string, any> | null;
|
3551
3557
|
return: ReturnRel$1;
|
3552
|
-
line_item: LineItemRel$
|
3558
|
+
line_item: LineItemRel$4;
|
3553
3559
|
}
|
3554
3560
|
interface ReturnLineItemUpdate extends ResourceUpdate {
|
3555
3561
|
/**
|
@@ -3589,7 +3595,7 @@ type StockLineItemRel$1 = ResourceRel & {
|
|
3589
3595
|
type ShipmentRel$5 = ResourceRel & {
|
3590
3596
|
type: ShipmentType;
|
3591
3597
|
};
|
3592
|
-
type LineItemRel$
|
3598
|
+
type LineItemRel$3 = ResourceRel & {
|
3593
3599
|
type: LineItemType;
|
3594
3600
|
};
|
3595
3601
|
type StockItemRel$3 = ResourceRel & {
|
@@ -3635,7 +3641,7 @@ interface StockLineItemCreate extends ResourceCreate {
|
|
3635
3641
|
*/
|
3636
3642
|
quantity: number;
|
3637
3643
|
shipment?: ShipmentRel$5 | null;
|
3638
|
-
line_item?: LineItemRel$
|
3644
|
+
line_item?: LineItemRel$3 | null;
|
3639
3645
|
stock_item?: StockItemRel$3 | null;
|
3640
3646
|
sku?: SkuRel$b | null;
|
3641
3647
|
}
|
@@ -3666,7 +3672,7 @@ interface StockLineItemUpdate extends ResourceUpdate {
|
|
3666
3672
|
*/
|
3667
3673
|
_decrement_stock?: boolean | null;
|
3668
3674
|
shipment?: ShipmentRel$5 | null;
|
3669
|
-
line_item?: LineItemRel$
|
3675
|
+
line_item?: LineItemRel$3 | null;
|
3670
3676
|
stock_item?: StockItemRel$3 | null;
|
3671
3677
|
sku?: SkuRel$b | null;
|
3672
3678
|
}
|
@@ -3791,6 +3797,80 @@ declare class StockReservations extends ApiResource<StockReservation> {
|
|
3791
3797
|
type(): StockReservationType;
|
3792
3798
|
}
|
3793
3799
|
|
3800
|
+
type NotificationType = 'notifications';
|
3801
|
+
type NotificationRel = ResourceRel & {
|
3802
|
+
type: NotificationType;
|
3803
|
+
};
|
3804
|
+
type OrderRel$9 = ResourceRel & {
|
3805
|
+
type: OrderType;
|
3806
|
+
};
|
3807
|
+
type LineItemRel$2 = ResourceRel & {
|
3808
|
+
type: LineItemType;
|
3809
|
+
};
|
3810
|
+
type NotificationSort = Pick<Notification, 'id' | 'name' | 'flash'> & ResourceSort;
|
3811
|
+
interface Notification extends Resource {
|
3812
|
+
readonly type: NotificationType;
|
3813
|
+
/**
|
3814
|
+
* The internal name of the notification.
|
3815
|
+
* @example ```"DDT transport document"```
|
3816
|
+
*/
|
3817
|
+
name: string;
|
3818
|
+
/**
|
3819
|
+
* Indicates if the notification is temporary, valid for the ones created by external services.
|
3820
|
+
*/
|
3821
|
+
flash?: boolean | null;
|
3822
|
+
/**
|
3823
|
+
* An internal body of the notification.
|
3824
|
+
* @example ```"[object Object]"```
|
3825
|
+
*/
|
3826
|
+
body?: Record<string, any> | null;
|
3827
|
+
notifiable?: Order | LineItem | null;
|
3828
|
+
}
|
3829
|
+
interface NotificationCreate extends ResourceCreate {
|
3830
|
+
/**
|
3831
|
+
* The internal name of the notification.
|
3832
|
+
* @example ```"DDT transport document"```
|
3833
|
+
*/
|
3834
|
+
name: string;
|
3835
|
+
/**
|
3836
|
+
* Indicates if the notification is temporary, valid for the ones created by external services.
|
3837
|
+
*/
|
3838
|
+
flash?: boolean | null;
|
3839
|
+
/**
|
3840
|
+
* An internal body of the notification.
|
3841
|
+
* @example ```"[object Object]"```
|
3842
|
+
*/
|
3843
|
+
body?: Record<string, any> | null;
|
3844
|
+
notifiable: OrderRel$9 | LineItemRel$2;
|
3845
|
+
}
|
3846
|
+
interface NotificationUpdate extends ResourceUpdate {
|
3847
|
+
/**
|
3848
|
+
* The internal name of the notification.
|
3849
|
+
* @example ```"DDT transport document"```
|
3850
|
+
*/
|
3851
|
+
name?: string | null;
|
3852
|
+
/**
|
3853
|
+
* Indicates if the notification is temporary, valid for the ones created by external services.
|
3854
|
+
*/
|
3855
|
+
flash?: boolean | null;
|
3856
|
+
/**
|
3857
|
+
* An internal body of the notification.
|
3858
|
+
* @example ```"[object Object]"```
|
3859
|
+
*/
|
3860
|
+
body?: Record<string, any> | null;
|
3861
|
+
notifiable?: OrderRel$9 | LineItemRel$2 | null;
|
3862
|
+
}
|
3863
|
+
declare class Notifications extends ApiResource<Notification> {
|
3864
|
+
static readonly TYPE: NotificationType;
|
3865
|
+
create(resource: NotificationCreate, params?: QueryParamsRetrieve<Notification>, options?: ResourcesConfig): Promise<Notification>;
|
3866
|
+
update(resource: NotificationUpdate, params?: QueryParamsRetrieve<Notification>, options?: ResourcesConfig): Promise<Notification>;
|
3867
|
+
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
3868
|
+
isNotification(resource: any): resource is Notification;
|
3869
|
+
relationship(id: string | ResourceId | null): NotificationRel;
|
3870
|
+
relationshipToMany(...ids: string[]): NotificationRel[];
|
3871
|
+
type(): NotificationType;
|
3872
|
+
}
|
3873
|
+
|
3794
3874
|
type SkuListItemType = 'sku_list_items';
|
3795
3875
|
type SkuListItemRel = ResourceRel & {
|
3796
3876
|
type: SkuListItemType;
|
@@ -4102,7 +4182,7 @@ interface SkuList extends Resource {
|
|
4102
4182
|
*/
|
4103
4183
|
manual?: boolean | null;
|
4104
4184
|
/**
|
4105
|
-
* The regex that will be evaluated to match the SKU codes.
|
4185
|
+
* The regex that will be evaluated to match the SKU codes, max size is 5000.
|
4106
4186
|
* @example ```"^(A|B).*$"```
|
4107
4187
|
*/
|
4108
4188
|
sku_code_regex?: string | null;
|
@@ -4135,7 +4215,7 @@ interface SkuListCreate extends ResourceCreate {
|
|
4135
4215
|
*/
|
4136
4216
|
manual?: boolean | null;
|
4137
4217
|
/**
|
4138
|
-
* The regex that will be evaluated to match the SKU codes.
|
4218
|
+
* The regex that will be evaluated to match the SKU codes, max size is 5000.
|
4139
4219
|
* @example ```"^(A|B).*$"```
|
4140
4220
|
*/
|
4141
4221
|
sku_code_regex?: string | null;
|
@@ -4162,7 +4242,7 @@ interface SkuListUpdate extends ResourceUpdate {
|
|
4162
4242
|
*/
|
4163
4243
|
manual?: boolean | null;
|
4164
4244
|
/**
|
4165
|
-
* The regex that will be evaluated to match the SKU codes.
|
4245
|
+
* The regex that will be evaluated to match the SKU codes, max size is 5000.
|
4166
4246
|
* @example ```"^(A|B).*$"```
|
4167
4247
|
*/
|
4168
4248
|
sku_code_regex?: string | null;
|
@@ -4190,7 +4270,7 @@ type BundleType = 'bundles';
|
|
4190
4270
|
type BundleRel$3 = ResourceRel & {
|
4191
4271
|
type: BundleType;
|
4192
4272
|
};
|
4193
|
-
type MarketRel$
|
4273
|
+
type MarketRel$g = ResourceRel & {
|
4194
4274
|
type: MarketType;
|
4195
4275
|
};
|
4196
4276
|
type SkuListRel$9 = ResourceRel & {
|
@@ -4324,7 +4404,7 @@ interface BundleCreate extends ResourceCreate {
|
|
4324
4404
|
* @example ```"true"```
|
4325
4405
|
*/
|
4326
4406
|
_compute_compare_at_amount?: boolean | null;
|
4327
|
-
market?: MarketRel$
|
4407
|
+
market?: MarketRel$g | null;
|
4328
4408
|
sku_list: SkuListRel$9;
|
4329
4409
|
tags?: TagRel$h[] | null;
|
4330
4410
|
}
|
@@ -4479,7 +4559,7 @@ type GiftCardType = 'gift_cards';
|
|
4479
4559
|
type GiftCardRel$2 = ResourceRel & {
|
4480
4560
|
type: GiftCardType;
|
4481
4561
|
};
|
4482
|
-
type MarketRel$
|
4562
|
+
type MarketRel$f = ResourceRel & {
|
4483
4563
|
type: MarketType;
|
4484
4564
|
};
|
4485
4565
|
type GiftCardRecipientRel$1 = ResourceRel & {
|
@@ -4647,7 +4727,7 @@ interface GiftCardCreate extends ResourceCreate {
|
|
4647
4727
|
* @example ```"john@example.com"```
|
4648
4728
|
*/
|
4649
4729
|
recipient_email?: string | null;
|
4650
|
-
market?: MarketRel$
|
4730
|
+
market?: MarketRel$f | null;
|
4651
4731
|
gift_card_recipient?: GiftCardRecipientRel$1 | null;
|
4652
4732
|
tags?: TagRel$g[] | null;
|
4653
4733
|
}
|
@@ -4716,7 +4796,7 @@ interface GiftCardUpdate extends ResourceUpdate {
|
|
4716
4796
|
* @example ```"-5000"```
|
4717
4797
|
*/
|
4718
4798
|
_balance_change_cents?: number | null;
|
4719
|
-
market?: MarketRel$
|
4799
|
+
market?: MarketRel$f | null;
|
4720
4800
|
gift_card_recipient?: GiftCardRecipientRel$1 | null;
|
4721
4801
|
tags?: TagRel$g[] | null;
|
4722
4802
|
}
|
@@ -5044,7 +5124,7 @@ type ExternalPromotionType = 'external_promotions';
|
|
5044
5124
|
type ExternalPromotionRel$5 = ResourceRel & {
|
5045
5125
|
type: ExternalPromotionType;
|
5046
5126
|
};
|
5047
|
-
type MarketRel$
|
5127
|
+
type MarketRel$e = ResourceRel & {
|
5048
5128
|
type: MarketType;
|
5049
5129
|
};
|
5050
5130
|
type OrderAmountPromotionRuleRel$7 = ResourceRel & {
|
@@ -5208,7 +5288,7 @@ interface ExternalPromotionCreate extends ResourceCreate {
|
|
5208
5288
|
* @example ```"https://external_promotion.yourbrand.com"```
|
5209
5289
|
*/
|
5210
5290
|
promotion_url: string;
|
5211
|
-
market?: MarketRel$
|
5291
|
+
market?: MarketRel$e | null;
|
5212
5292
|
order_amount_promotion_rule?: OrderAmountPromotionRuleRel$7 | null;
|
5213
5293
|
sku_list_promotion_rule?: SkuListPromotionRuleRel$7 | null;
|
5214
5294
|
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$8 | null;
|
@@ -5272,7 +5352,7 @@ interface ExternalPromotionUpdate extends ResourceUpdate {
|
|
5272
5352
|
* @example ```"true"```
|
5273
5353
|
*/
|
5274
5354
|
_reset_circuit?: boolean | null;
|
5275
|
-
market?: MarketRel$
|
5355
|
+
market?: MarketRel$e | null;
|
5276
5356
|
order_amount_promotion_rule?: OrderAmountPromotionRuleRel$7 | null;
|
5277
5357
|
sku_list_promotion_rule?: SkuListPromotionRuleRel$7 | null;
|
5278
5358
|
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$8 | null;
|
@@ -5310,7 +5390,7 @@ type FixedAmountPromotionType = 'fixed_amount_promotions';
|
|
5310
5390
|
type FixedAmountPromotionRel$5 = ResourceRel & {
|
5311
5391
|
type: FixedAmountPromotionType;
|
5312
5392
|
};
|
5313
|
-
type MarketRel$
|
5393
|
+
type MarketRel$d = ResourceRel & {
|
5314
5394
|
type: MarketType;
|
5315
5395
|
};
|
5316
5396
|
type OrderAmountPromotionRuleRel$6 = ResourceRel & {
|
@@ -5469,7 +5549,7 @@ interface FixedAmountPromotionCreate extends ResourceCreate {
|
|
5469
5549
|
* @example ```"1000"```
|
5470
5550
|
*/
|
5471
5551
|
fixed_amount_cents: number;
|
5472
|
-
market?: MarketRel$
|
5552
|
+
market?: MarketRel$d | null;
|
5473
5553
|
order_amount_promotion_rule?: OrderAmountPromotionRuleRel$6 | null;
|
5474
5554
|
sku_list_promotion_rule?: SkuListPromotionRuleRel$6 | null;
|
5475
5555
|
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$7 | null;
|
@@ -5528,7 +5608,7 @@ interface FixedAmountPromotionUpdate extends ResourceUpdate {
|
|
5528
5608
|
* @example ```"1000"```
|
5529
5609
|
*/
|
5530
5610
|
fixed_amount_cents?: number | null;
|
5531
|
-
market?: MarketRel$
|
5611
|
+
market?: MarketRel$d | null;
|
5532
5612
|
order_amount_promotion_rule?: OrderAmountPromotionRuleRel$6 | null;
|
5533
5613
|
sku_list_promotion_rule?: SkuListPromotionRuleRel$6 | null;
|
5534
5614
|
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$7 | null;
|
@@ -5781,7 +5861,7 @@ type FixedPricePromotionType = 'fixed_price_promotions';
|
|
5781
5861
|
type FixedPricePromotionRel$5 = ResourceRel & {
|
5782
5862
|
type: FixedPricePromotionType;
|
5783
5863
|
};
|
5784
|
-
type MarketRel$
|
5864
|
+
type MarketRel$c = ResourceRel & {
|
5785
5865
|
type: MarketType;
|
5786
5866
|
};
|
5787
5867
|
type OrderAmountPromotionRuleRel$5 = ResourceRel & {
|
@@ -5940,7 +6020,7 @@ interface FixedPricePromotionCreate extends ResourceCreate {
|
|
5940
6020
|
* @example ```"1000"```
|
5941
6021
|
*/
|
5942
6022
|
fixed_amount_cents: number;
|
5943
|
-
market?: MarketRel$
|
6023
|
+
market?: MarketRel$c | null;
|
5944
6024
|
order_amount_promotion_rule?: OrderAmountPromotionRuleRel$5 | null;
|
5945
6025
|
sku_list_promotion_rule?: SkuListPromotionRuleRel$5 | null;
|
5946
6026
|
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$5 | null;
|
@@ -5999,7 +6079,7 @@ interface FixedPricePromotionUpdate extends ResourceUpdate {
|
|
5999
6079
|
* @example ```"1000"```
|
6000
6080
|
*/
|
6001
6081
|
fixed_amount_cents?: number | null;
|
6002
|
-
market?: MarketRel$
|
6082
|
+
market?: MarketRel$c | null;
|
6003
6083
|
order_amount_promotion_rule?: OrderAmountPromotionRuleRel$5 | null;
|
6004
6084
|
sku_list_promotion_rule?: SkuListPromotionRuleRel$5 | null;
|
6005
6085
|
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$5 | null;
|
@@ -6103,7 +6183,7 @@ type FreeGiftPromotionType = 'free_gift_promotions';
|
|
6103
6183
|
type FreeGiftPromotionRel$4 = ResourceRel & {
|
6104
6184
|
type: FreeGiftPromotionType;
|
6105
6185
|
};
|
6106
|
-
type MarketRel$
|
6186
|
+
type MarketRel$b = ResourceRel & {
|
6107
6187
|
type: MarketType;
|
6108
6188
|
};
|
6109
6189
|
type OrderAmountPromotionRuleRel$4 = ResourceRel & {
|
@@ -6252,7 +6332,7 @@ interface FreeGiftPromotionCreate extends ResourceCreate {
|
|
6252
6332
|
* @example ```"3"```
|
6253
6333
|
*/
|
6254
6334
|
max_quantity?: number | null;
|
6255
|
-
market?: MarketRel$
|
6335
|
+
market?: MarketRel$b | null;
|
6256
6336
|
order_amount_promotion_rule?: OrderAmountPromotionRuleRel$4 | null;
|
6257
6337
|
sku_list_promotion_rule?: SkuListPromotionRuleRel$4 | null;
|
6258
6338
|
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$4 | null;
|
@@ -6311,7 +6391,7 @@ interface FreeGiftPromotionUpdate extends ResourceUpdate {
|
|
6311
6391
|
* @example ```"3"```
|
6312
6392
|
*/
|
6313
6393
|
max_quantity?: number | null;
|
6314
|
-
market?: MarketRel$
|
6394
|
+
market?: MarketRel$b | null;
|
6315
6395
|
order_amount_promotion_rule?: OrderAmountPromotionRuleRel$4 | null;
|
6316
6396
|
sku_list_promotion_rule?: SkuListPromotionRuleRel$4 | null;
|
6317
6397
|
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$4 | null;
|
@@ -6407,7 +6487,7 @@ type BuyXPayYPromotionType = 'buy_x_pay_y_promotions';
|
|
6407
6487
|
type BuyXPayYPromotionRel$3 = ResourceRel & {
|
6408
6488
|
type: BuyXPayYPromotionType;
|
6409
6489
|
};
|
6410
|
-
type MarketRel$
|
6490
|
+
type MarketRel$a = ResourceRel & {
|
6411
6491
|
type: MarketType;
|
6412
6492
|
};
|
6413
6493
|
type OrderAmountPromotionRuleRel$3 = ResourceRel & {
|
@@ -6576,7 +6656,7 @@ interface BuyXPayYPromotionCreate extends ResourceCreate {
|
|
6576
6656
|
* @example ```"true"```
|
6577
6657
|
*/
|
6578
6658
|
cheapest_free?: boolean | null;
|
6579
|
-
market?: MarketRel$
|
6659
|
+
market?: MarketRel$a | null;
|
6580
6660
|
order_amount_promotion_rule?: OrderAmountPromotionRuleRel$3 | null;
|
6581
6661
|
sku_list_promotion_rule?: SkuListPromotionRuleRel$3 | null;
|
6582
6662
|
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$2 | null;
|
@@ -6645,7 +6725,7 @@ interface BuyXPayYPromotionUpdate extends ResourceUpdate {
|
|
6645
6725
|
* @example ```"true"```
|
6646
6726
|
*/
|
6647
6727
|
cheapest_free?: boolean | null;
|
6648
|
-
market?: MarketRel$
|
6728
|
+
market?: MarketRel$a | null;
|
6649
6729
|
order_amount_promotion_rule?: OrderAmountPromotionRuleRel$3 | null;
|
6650
6730
|
sku_list_promotion_rule?: SkuListPromotionRuleRel$3 | null;
|
6651
6731
|
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$2 | null;
|
@@ -6773,7 +6853,7 @@ type FreeShippingPromotionType = 'free_shipping_promotions';
|
|
6773
6853
|
type FreeShippingPromotionRel$2 = ResourceRel & {
|
6774
6854
|
type: FreeShippingPromotionType;
|
6775
6855
|
};
|
6776
|
-
type MarketRel$
|
6856
|
+
type MarketRel$9 = ResourceRel & {
|
6777
6857
|
type: MarketType;
|
6778
6858
|
};
|
6779
6859
|
type OrderAmountPromotionRuleRel$2 = ResourceRel & {
|
@@ -6911,7 +6991,7 @@ interface FreeShippingPromotionCreate extends ResourceCreate {
|
|
6911
6991
|
* @example ```"true"```
|
6912
6992
|
*/
|
6913
6993
|
_enable?: boolean | null;
|
6914
|
-
market?: MarketRel$
|
6994
|
+
market?: MarketRel$9 | null;
|
6915
6995
|
order_amount_promotion_rule?: OrderAmountPromotionRuleRel$2 | null;
|
6916
6996
|
sku_list_promotion_rule?: SkuListPromotionRuleRel$1 | null;
|
6917
6997
|
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$1 | null;
|
@@ -6965,7 +7045,7 @@ interface FreeShippingPromotionUpdate extends ResourceUpdate {
|
|
6965
7045
|
* @example ```"true"```
|
6966
7046
|
*/
|
6967
7047
|
_enable?: boolean | null;
|
6968
|
-
market?: MarketRel$
|
7048
|
+
market?: MarketRel$9 | null;
|
6969
7049
|
order_amount_promotion_rule?: OrderAmountPromotionRuleRel$2 | null;
|
6970
7050
|
sku_list_promotion_rule?: SkuListPromotionRuleRel$1 | null;
|
6971
7051
|
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel$1 | null;
|
@@ -7093,7 +7173,7 @@ type PercentageDiscountPromotionType = 'percentage_discount_promotions';
|
|
7093
7173
|
type PercentageDiscountPromotionRel$1 = ResourceRel & {
|
7094
7174
|
type: PercentageDiscountPromotionType;
|
7095
7175
|
};
|
7096
|
-
type MarketRel$
|
7176
|
+
type MarketRel$8 = ResourceRel & {
|
7097
7177
|
type: MarketType;
|
7098
7178
|
};
|
7099
7179
|
type OrderAmountPromotionRuleRel = ResourceRel & {
|
@@ -7242,7 +7322,7 @@ interface PercentageDiscountPromotionCreate extends ResourceCreate {
|
|
7242
7322
|
* @example ```"10"```
|
7243
7323
|
*/
|
7244
7324
|
percentage: number;
|
7245
|
-
market?: MarketRel$
|
7325
|
+
market?: MarketRel$8 | null;
|
7246
7326
|
order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null;
|
7247
7327
|
sku_list_promotion_rule?: SkuListPromotionRuleRel | null;
|
7248
7328
|
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel | null;
|
@@ -7301,7 +7381,7 @@ interface PercentageDiscountPromotionUpdate extends ResourceUpdate {
|
|
7301
7381
|
* @example ```"10"```
|
7302
7382
|
*/
|
7303
7383
|
percentage?: number | null;
|
7304
|
-
market?: MarketRel$
|
7384
|
+
market?: MarketRel$8 | null;
|
7305
7385
|
order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null;
|
7306
7386
|
sku_list_promotion_rule?: SkuListPromotionRuleRel | null;
|
7307
7387
|
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel | null;
|
@@ -7415,7 +7495,7 @@ interface LineItem extends Resource {
|
|
7415
7495
|
*/
|
7416
7496
|
currency_code?: string | null;
|
7417
7497
|
/**
|
7418
|
-
* The unit amount of the line item, in cents. Can be specified only via an integration application, or when the item is missing, otherwise is automatically computed by using one of the available methods.
|
7498
|
+
* The unit amount of the line item, in cents. Can be specified only via an integration application, or when the item is missing, otherwise is automatically computed by using one of the available methods. Cannot be passed by sales channels.
|
7419
7499
|
* @example ```"10000"```
|
7420
7500
|
*/
|
7421
7501
|
unit_amount_cents?: number | null;
|
@@ -7530,10 +7610,10 @@ interface LineItem extends Resource {
|
|
7530
7610
|
*/
|
7531
7611
|
tax_breakdown?: Record<string, any> | null;
|
7532
7612
|
/**
|
7533
|
-
* The type of the associated item. One of 'skus', 'bundles', 'gift_cards', 'shipments', 'payment_methods', 'adjustments', 'percentage_discount_promotions', 'free_shipping_promotions', 'buy_x_pay_y_promotions', 'free_gift_promotions', 'fixed_price_promotions', 'external_promotions', 'fixed_amount_promotions', or 'flex_promotions'.
|
7613
|
+
* The type of the associated item. One of 'skus', 'bundles', 'gift_cards', 'shipments', 'payment_methods', 'adjustments', 'discount_engine_items', 'percentage_discount_promotions', 'free_shipping_promotions', 'buy_x_pay_y_promotions', 'free_gift_promotions', 'fixed_price_promotions', 'external_promotions', 'fixed_amount_promotions', or 'flex_promotions'.
|
7534
7614
|
* @example ```"skus"```
|
7535
7615
|
*/
|
7536
|
-
item_type?: 'skus' | 'bundles' | 'gift_cards' | 'shipments' | 'payment_methods' | 'adjustments' | 'percentage_discount_promotions' | 'free_shipping_promotions' | 'buy_x_pay_y_promotions' | 'free_gift_promotions' | 'fixed_price_promotions' | 'external_promotions' | 'fixed_amount_promotions' | 'flex_promotions' | null;
|
7616
|
+
item_type?: 'skus' | 'bundles' | 'gift_cards' | 'shipments' | 'payment_methods' | 'adjustments' | 'discount_engine_items' | 'percentage_discount_promotions' | 'free_shipping_promotions' | 'buy_x_pay_y_promotions' | 'free_gift_promotions' | 'fixed_price_promotions' | 'external_promotions' | 'fixed_amount_promotions' | 'flex_promotions' | null;
|
7537
7617
|
/**
|
7538
7618
|
* The frequency which generates a subscription. Must be supported by existing associated subscription_model.
|
7539
7619
|
* @example ```"monthly"```
|
@@ -7567,6 +7647,7 @@ interface LineItem extends Resource {
|
|
7567
7647
|
stock_reservations?: StockReservation[] | null;
|
7568
7648
|
stock_line_items?: StockLineItem[] | null;
|
7569
7649
|
stock_transfers?: StockTransfer[] | null;
|
7650
|
+
notifications?: Notification[] | null;
|
7570
7651
|
events?: Event[] | null;
|
7571
7652
|
tags?: Tag[] | null;
|
7572
7653
|
}
|
@@ -7602,7 +7683,7 @@ interface LineItemCreate extends ResourceCreate {
|
|
7602
7683
|
*/
|
7603
7684
|
_reserve_stock?: boolean | null;
|
7604
7685
|
/**
|
7605
|
-
* The unit amount of the line item, in cents. Can be specified only via an integration application, or when the item is missing, otherwise is automatically computed by using one of the available methods.
|
7686
|
+
* The unit amount of the line item, in cents. Can be specified only via an integration application, or when the item is missing, otherwise is automatically computed by using one of the available methods. Cannot be passed by sales channels.
|
7606
7687
|
* @example ```"10000"```
|
7607
7688
|
*/
|
7608
7689
|
unit_amount_cents?: number | null;
|
@@ -7622,10 +7703,10 @@ interface LineItemCreate extends ResourceCreate {
|
|
7622
7703
|
*/
|
7623
7704
|
image_url?: string | null;
|
7624
7705
|
/**
|
7625
|
-
* The type of the associated item. One of 'skus', 'bundles', 'gift_cards', 'shipments', 'payment_methods', 'adjustments', 'percentage_discount_promotions', 'free_shipping_promotions', 'buy_x_pay_y_promotions', 'free_gift_promotions', 'fixed_price_promotions', 'external_promotions', 'fixed_amount_promotions', or 'flex_promotions'.
|
7706
|
+
* The type of the associated item. One of 'skus', 'bundles', 'gift_cards', 'shipments', 'payment_methods', 'adjustments', 'discount_engine_items', 'percentage_discount_promotions', 'free_shipping_promotions', 'buy_x_pay_y_promotions', 'free_gift_promotions', 'fixed_price_promotions', 'external_promotions', 'fixed_amount_promotions', or 'flex_promotions'.
|
7626
7707
|
* @example ```"skus"```
|
7627
7708
|
*/
|
7628
|
-
item_type?: 'skus' | 'bundles' | 'gift_cards' | 'shipments' | 'payment_methods' | 'adjustments' | 'percentage_discount_promotions' | 'free_shipping_promotions' | 'buy_x_pay_y_promotions' | 'free_gift_promotions' | 'fixed_price_promotions' | 'external_promotions' | 'fixed_amount_promotions' | 'flex_promotions' | null;
|
7709
|
+
item_type?: 'skus' | 'bundles' | 'gift_cards' | 'shipments' | 'payment_methods' | 'adjustments' | 'discount_engine_items' | 'percentage_discount_promotions' | 'free_shipping_promotions' | 'buy_x_pay_y_promotions' | 'free_gift_promotions' | 'fixed_price_promotions' | 'external_promotions' | 'fixed_amount_promotions' | 'flex_promotions' | null;
|
7629
7710
|
/**
|
7630
7711
|
* The frequency which generates a subscription. Must be supported by existing associated subscription_model.
|
7631
7712
|
* @example ```"monthly"```
|
@@ -7662,7 +7743,7 @@ interface LineItemUpdate extends ResourceUpdate {
|
|
7662
7743
|
*/
|
7663
7744
|
_reserve_stock?: boolean | null;
|
7664
7745
|
/**
|
7665
|
-
* The unit amount of the line item, in cents. Can be specified only via an integration application, or when the item is missing, otherwise is automatically computed by using one of the available methods.
|
7746
|
+
* The unit amount of the line item, in cents. Can be specified only via an integration application, or when the item is missing, otherwise is automatically computed by using one of the available methods. Cannot be passed by sales channels.
|
7666
7747
|
* @example ```"10000"```
|
7667
7748
|
*/
|
7668
7749
|
unit_amount_cents?: number | null;
|
@@ -7709,6 +7790,7 @@ declare class LineItems extends ApiResource<LineItem> {
|
|
7709
7790
|
stock_reservations(lineItemId: string | LineItem, params?: QueryParamsList<StockReservation>, options?: ResourcesConfig): Promise<ListResponse<StockReservation>>;
|
7710
7791
|
stock_line_items(lineItemId: string | LineItem, params?: QueryParamsList<StockLineItem>, options?: ResourcesConfig): Promise<ListResponse<StockLineItem>>;
|
7711
7792
|
stock_transfers(lineItemId: string | LineItem, params?: QueryParamsList<StockTransfer>, options?: ResourcesConfig): Promise<ListResponse<StockTransfer>>;
|
7793
|
+
notifications(lineItemId: string | LineItem, params?: QueryParamsList<Notification>, options?: ResourcesConfig): Promise<ListResponse<Notification>>;
|
7712
7794
|
events(lineItemId: string | LineItem, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
7713
7795
|
tags(lineItemId: string | LineItem, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>>;
|
7714
7796
|
_external_price(id: string | LineItem, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem>;
|
@@ -8007,7 +8089,7 @@ type OrderSubscriptionType = 'order_subscriptions';
|
|
8007
8089
|
type OrderSubscriptionRel = ResourceRel & {
|
8008
8090
|
type: OrderSubscriptionType;
|
8009
8091
|
};
|
8010
|
-
type MarketRel$
|
8092
|
+
type MarketRel$7 = ResourceRel & {
|
8011
8093
|
type: MarketType;
|
8012
8094
|
};
|
8013
8095
|
type OrderRel$5 = ResourceRel & {
|
@@ -8136,7 +8218,7 @@ interface OrderSubscriptionCreate extends ResourceCreate {
|
|
8136
8218
|
* @example ```"2018-01-02T12:00:00.000Z"```
|
8137
8219
|
*/
|
8138
8220
|
expires_at?: string | null;
|
8139
|
-
market?: MarketRel$
|
8221
|
+
market?: MarketRel$7 | null;
|
8140
8222
|
source_order: OrderRel$5;
|
8141
8223
|
tags?: TagRel$5[] | null;
|
8142
8224
|
}
|
@@ -8258,6 +8340,11 @@ interface Customer extends Resource {
|
|
8258
8340
|
* @example ```"xxx-yyy-zzz"```
|
8259
8341
|
*/
|
8260
8342
|
shopper_reference?: string | null;
|
8343
|
+
/**
|
8344
|
+
* A reference to uniquely identify the customer on any connected external services.
|
8345
|
+
* @example ```"xxx-yyy-zzz"```
|
8346
|
+
*/
|
8347
|
+
profile_id?: string | null;
|
8261
8348
|
customer_group?: CustomerGroup | null;
|
8262
8349
|
customer_addresses?: CustomerAddress[] | null;
|
8263
8350
|
customer_payment_sources?: CustomerPaymentSource[] | null;
|
@@ -8286,6 +8373,11 @@ interface CustomerCreate extends ResourceCreate {
|
|
8286
8373
|
* @example ```"xxx-yyy-zzz"```
|
8287
8374
|
*/
|
8288
8375
|
shopper_reference?: string | null;
|
8376
|
+
/**
|
8377
|
+
* A reference to uniquely identify the customer on any connected external services.
|
8378
|
+
* @example ```"xxx-yyy-zzz"```
|
8379
|
+
*/
|
8380
|
+
profile_id?: string | null;
|
8289
8381
|
customer_group?: CustomerGroupRel$2 | null;
|
8290
8382
|
tags?: TagRel$4[] | null;
|
8291
8383
|
}
|
@@ -8305,6 +8397,11 @@ interface CustomerUpdate extends ResourceUpdate {
|
|
8305
8397
|
* @example ```"xxx-yyy-zzz"```
|
8306
8398
|
*/
|
8307
8399
|
shopper_reference?: string | null;
|
8400
|
+
/**
|
8401
|
+
* A reference to uniquely identify the customer on any connected external services.
|
8402
|
+
* @example ```"xxx-yyy-zzz"```
|
8403
|
+
*/
|
8404
|
+
profile_id?: string | null;
|
8308
8405
|
customer_group?: CustomerGroupRel$2 | null;
|
8309
8406
|
tags?: TagRel$4[] | null;
|
8310
8407
|
}
|
@@ -8462,6 +8559,11 @@ interface OrderCopy extends Resource {
|
|
8462
8559
|
* @example ```"true"```
|
8463
8560
|
*/
|
8464
8561
|
apply_promotions?: boolean | null;
|
8562
|
+
/**
|
8563
|
+
* Indicates to ignore any errors during copy.
|
8564
|
+
* @example ```"true"```
|
8565
|
+
*/
|
8566
|
+
skip_errors?: boolean | null;
|
8465
8567
|
/**
|
8466
8568
|
* Indicates to ignore invalid coupon code during copy.
|
8467
8569
|
* @example ```"true"```
|
@@ -8493,6 +8595,11 @@ interface OrderCopyCreate extends ResourceCreate {
|
|
8493
8595
|
* @example ```"true"```
|
8494
8596
|
*/
|
8495
8597
|
apply_promotions?: boolean | null;
|
8598
|
+
/**
|
8599
|
+
* Indicates to ignore any errors during copy.
|
8600
|
+
* @example ```"true"```
|
8601
|
+
*/
|
8602
|
+
skip_errors?: boolean | null;
|
8496
8603
|
/**
|
8497
8604
|
* Indicates to ignore invalid coupon code during copy.
|
8498
8605
|
* @example ```"true"```
|
@@ -8520,7 +8627,7 @@ type OrderType = 'orders';
|
|
8520
8627
|
type OrderRel$2 = ResourceRel & {
|
8521
8628
|
type: OrderType;
|
8522
8629
|
};
|
8523
|
-
type MarketRel$
|
8630
|
+
type MarketRel$6 = ResourceRel & {
|
8524
8631
|
type: MarketType;
|
8525
8632
|
};
|
8526
8633
|
type CustomerRel$2 = ResourceRel & {
|
@@ -8577,7 +8684,7 @@ interface Order extends Resource {
|
|
8577
8684
|
*/
|
8578
8685
|
number?: string | null;
|
8579
8686
|
/**
|
8580
|
-
* The affiliate code, if any,
|
8687
|
+
* The affiliate code, if any, to track commissions using any third party services.
|
8581
8688
|
* @example ```"xxxx-yyyy-zzzz"```
|
8582
8689
|
*/
|
8583
8690
|
affiliate_code?: string | null;
|
@@ -9132,6 +9239,7 @@ interface Order extends Resource {
|
|
9132
9239
|
order_copies?: OrderCopy[] | null;
|
9133
9240
|
recurring_order_copies?: RecurringOrderCopy[] | null;
|
9134
9241
|
attachments?: Attachment[] | null;
|
9242
|
+
notifications?: Notification[] | null;
|
9135
9243
|
links?: Link[] | null;
|
9136
9244
|
resource_errors?: ResourceError[] | null;
|
9137
9245
|
events?: Event[] | null;
|
@@ -9145,7 +9253,7 @@ interface OrderCreate extends ResourceCreate {
|
|
9145
9253
|
*/
|
9146
9254
|
number?: string | null;
|
9147
9255
|
/**
|
9148
|
-
* The affiliate code, if any,
|
9256
|
+
* The affiliate code, if any, to track commissions using any third party services.
|
9149
9257
|
* @example ```"xxxx-yyyy-zzzz"```
|
9150
9258
|
*/
|
9151
9259
|
affiliate_code?: string | null;
|
@@ -9233,7 +9341,7 @@ interface OrderCreate extends ResourceCreate {
|
|
9233
9341
|
* @example ```"https://yourdomain.com/privacy"```
|
9234
9342
|
*/
|
9235
9343
|
privacy_url?: string | null;
|
9236
|
-
market?: MarketRel$
|
9344
|
+
market?: MarketRel$6 | null;
|
9237
9345
|
customer?: CustomerRel$2 | null;
|
9238
9346
|
shipping_address?: AddressRel$4 | null;
|
9239
9347
|
billing_address?: AddressRel$4 | null;
|
@@ -9249,7 +9357,7 @@ interface OrderUpdate extends ResourceUpdate {
|
|
9249
9357
|
*/
|
9250
9358
|
number?: string | null;
|
9251
9359
|
/**
|
9252
|
-
* The affiliate code, if any,
|
9360
|
+
* The affiliate code, if any, to track commissions using any third party services.
|
9253
9361
|
* @example ```"xxxx-yyyy-zzzz"```
|
9254
9362
|
*/
|
9255
9363
|
affiliate_code?: string | null;
|
@@ -9406,6 +9514,11 @@ interface OrderUpdate extends ResourceUpdate {
|
|
9406
9514
|
* Send this attribute if you want to nullify the payment source for this order.
|
9407
9515
|
*/
|
9408
9516
|
_nullify_payment_source?: boolean | null;
|
9517
|
+
/**
|
9518
|
+
* Send this attribute if you want to set the payment source associated with the last succeeded authorization. At the end of the fix the order should be placed and authorized and ready for approval. Cannot be passed by sales channels.
|
9519
|
+
* @example ```"true"```
|
9520
|
+
*/
|
9521
|
+
_fix_payment_source?: boolean | null;
|
9409
9522
|
/**
|
9410
9523
|
* The id of the address that you want to clone to create the order's billing address.
|
9411
9524
|
* @example ```"1234"```
|
@@ -9486,7 +9599,7 @@ interface OrderUpdate extends ResourceUpdate {
|
|
9486
9599
|
* @example ```"true"```
|
9487
9600
|
*/
|
9488
9601
|
_reset_circuit?: boolean | null;
|
9489
|
-
market?: MarketRel$
|
9602
|
+
market?: MarketRel$6 | null;
|
9490
9603
|
customer?: CustomerRel$2 | null;
|
9491
9604
|
shipping_address?: AddressRel$4 | null;
|
9492
9605
|
billing_address?: AddressRel$4 | null;
|
@@ -9528,6 +9641,7 @@ declare class Orders extends ApiResource<Order> {
|
|
9528
9641
|
order_copies(orderId: string | Order, params?: QueryParamsList<OrderCopy>, options?: ResourcesConfig): Promise<ListResponse<OrderCopy>>;
|
9529
9642
|
recurring_order_copies(orderId: string | Order, params?: QueryParamsList<RecurringOrderCopy>, options?: ResourcesConfig): Promise<ListResponse<RecurringOrderCopy>>;
|
9530
9643
|
attachments(orderId: string | Order, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
9644
|
+
notifications(orderId: string | Order, params?: QueryParamsList<Notification>, options?: ResourcesConfig): Promise<ListResponse<Notification>>;
|
9531
9645
|
links(orderId: string | Order, params?: QueryParamsList<Link>, options?: ResourcesConfig): Promise<ListResponse<Link>>;
|
9532
9646
|
resource_errors(orderId: string | Order, params?: QueryParamsList<ResourceError>, options?: ResourcesConfig): Promise<ListResponse<ResourceError>>;
|
9533
9647
|
events(orderId: string | Order, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
@@ -9547,6 +9661,7 @@ declare class Orders extends ApiResource<Order> {
|
|
9547
9661
|
_fulfill(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order>;
|
9548
9662
|
_update_taxes(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order>;
|
9549
9663
|
_nullify_payment_source(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order>;
|
9664
|
+
_fix_payment_source(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order>;
|
9550
9665
|
_billing_address_clone_id(id: string | Order, triggerValue: string, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order>;
|
9551
9666
|
_shipping_address_clone_id(id: string | Order, triggerValue: string, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order>;
|
9552
9667
|
_customer_payment_source_id(id: string | Order, triggerValue: string, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order>;
|
@@ -9582,32 +9697,32 @@ interface ShippingZone extends Resource {
|
|
9582
9697
|
*/
|
9583
9698
|
name: string;
|
9584
9699
|
/**
|
9585
|
-
* The regex that will be evaluated to match the shipping address country code.
|
9700
|
+
* The regex that will be evaluated to match the shipping address country code, max size is 5000.
|
9586
9701
|
* @example ```"AT|BE|BG|CZ|DK|EE|DE|HU|LV|LT"```
|
9587
9702
|
*/
|
9588
9703
|
country_code_regex?: string | null;
|
9589
9704
|
/**
|
9590
|
-
* The regex that will be evaluated as negative match for the shipping address country code.
|
9705
|
+
* The regex that will be evaluated as negative match for the shipping address country code, max size is 5000.
|
9591
9706
|
* @example ```"AT|BE|BG|CZ|DK|EE|DE"```
|
9592
9707
|
*/
|
9593
9708
|
not_country_code_regex?: string | null;
|
9594
9709
|
/**
|
9595
|
-
* The regex that will be evaluated to match the shipping address state code.
|
9710
|
+
* The regex that will be evaluated to match the shipping address state code, max size is 5000.
|
9596
9711
|
* @example ```"A[KLRZ]|C[AOT]|D[CE]|FL"```
|
9597
9712
|
*/
|
9598
9713
|
state_code_regex?: string | null;
|
9599
9714
|
/**
|
9600
|
-
* The regex that will be evaluated as negative match for the shipping address state code.
|
9715
|
+
* The regex that will be evaluated as negative match for the shipping address state code, max size is 5000.
|
9601
9716
|
* @example ```"A[KLRZ]|C[AOT]"```
|
9602
9717
|
*/
|
9603
9718
|
not_state_code_regex?: string | null;
|
9604
9719
|
/**
|
9605
|
-
* The regex that will be evaluated to match the shipping address zip code.
|
9720
|
+
* The regex that will be evaluated to match the shipping address zip code, max size is 5000.
|
9606
9721
|
* @example ```"(?i)(JE1|JE2|JE3|JE4|JE5)"```
|
9607
9722
|
*/
|
9608
9723
|
zip_code_regex?: string | null;
|
9609
9724
|
/**
|
9610
|
-
* The regex that will be evaluated as negative match for the shipping zip country code.
|
9725
|
+
* The regex that will be evaluated as negative match for the shipping zip country code, max size is 5000.
|
9611
9726
|
* @example ```"(?i)(JE1|JE2|JE3)"```
|
9612
9727
|
*/
|
9613
9728
|
not_zip_code_regex?: string | null;
|
@@ -9621,32 +9736,32 @@ interface ShippingZoneCreate extends ResourceCreate {
|
|
9621
9736
|
*/
|
9622
9737
|
name: string;
|
9623
9738
|
/**
|
9624
|
-
* The regex that will be evaluated to match the shipping address country code.
|
9739
|
+
* The regex that will be evaluated to match the shipping address country code, max size is 5000.
|
9625
9740
|
* @example ```"AT|BE|BG|CZ|DK|EE|DE|HU|LV|LT"```
|
9626
9741
|
*/
|
9627
9742
|
country_code_regex?: string | null;
|
9628
9743
|
/**
|
9629
|
-
* The regex that will be evaluated as negative match for the shipping address country code.
|
9744
|
+
* The regex that will be evaluated as negative match for the shipping address country code, max size is 5000.
|
9630
9745
|
* @example ```"AT|BE|BG|CZ|DK|EE|DE"```
|
9631
9746
|
*/
|
9632
9747
|
not_country_code_regex?: string | null;
|
9633
9748
|
/**
|
9634
|
-
* The regex that will be evaluated to match the shipping address state code.
|
9749
|
+
* The regex that will be evaluated to match the shipping address state code, max size is 5000.
|
9635
9750
|
* @example ```"A[KLRZ]|C[AOT]|D[CE]|FL"```
|
9636
9751
|
*/
|
9637
9752
|
state_code_regex?: string | null;
|
9638
9753
|
/**
|
9639
|
-
* The regex that will be evaluated as negative match for the shipping address state code.
|
9754
|
+
* The regex that will be evaluated as negative match for the shipping address state code, max size is 5000.
|
9640
9755
|
* @example ```"A[KLRZ]|C[AOT]"```
|
9641
9756
|
*/
|
9642
9757
|
not_state_code_regex?: string | null;
|
9643
9758
|
/**
|
9644
|
-
* The regex that will be evaluated to match the shipping address zip code.
|
9759
|
+
* The regex that will be evaluated to match the shipping address zip code, max size is 5000.
|
9645
9760
|
* @example ```"(?i)(JE1|JE2|JE3|JE4|JE5)"```
|
9646
9761
|
*/
|
9647
9762
|
zip_code_regex?: string | null;
|
9648
9763
|
/**
|
9649
|
-
* The regex that will be evaluated as negative match for the shipping zip country code.
|
9764
|
+
* The regex that will be evaluated as negative match for the shipping zip country code, max size is 5000.
|
9650
9765
|
* @example ```"(?i)(JE1|JE2|JE3)"```
|
9651
9766
|
*/
|
9652
9767
|
not_zip_code_regex?: string | null;
|
@@ -9658,32 +9773,32 @@ interface ShippingZoneUpdate extends ResourceUpdate {
|
|
9658
9773
|
*/
|
9659
9774
|
name?: string | null;
|
9660
9775
|
/**
|
9661
|
-
* The regex that will be evaluated to match the shipping address country code.
|
9776
|
+
* The regex that will be evaluated to match the shipping address country code, max size is 5000.
|
9662
9777
|
* @example ```"AT|BE|BG|CZ|DK|EE|DE|HU|LV|LT"```
|
9663
9778
|
*/
|
9664
9779
|
country_code_regex?: string | null;
|
9665
9780
|
/**
|
9666
|
-
* The regex that will be evaluated as negative match for the shipping address country code.
|
9781
|
+
* The regex that will be evaluated as negative match for the shipping address country code, max size is 5000.
|
9667
9782
|
* @example ```"AT|BE|BG|CZ|DK|EE|DE"```
|
9668
9783
|
*/
|
9669
9784
|
not_country_code_regex?: string | null;
|
9670
9785
|
/**
|
9671
|
-
* The regex that will be evaluated to match the shipping address state code.
|
9786
|
+
* The regex that will be evaluated to match the shipping address state code, max size is 5000.
|
9672
9787
|
* @example ```"A[KLRZ]|C[AOT]|D[CE]|FL"```
|
9673
9788
|
*/
|
9674
9789
|
state_code_regex?: string | null;
|
9675
9790
|
/**
|
9676
|
-
* The regex that will be evaluated as negative match for the shipping address state code.
|
9791
|
+
* The regex that will be evaluated as negative match for the shipping address state code, max size is 5000.
|
9677
9792
|
* @example ```"A[KLRZ]|C[AOT]"```
|
9678
9793
|
*/
|
9679
9794
|
not_state_code_regex?: string | null;
|
9680
9795
|
/**
|
9681
|
-
* The regex that will be evaluated to match the shipping address zip code.
|
9796
|
+
* The regex that will be evaluated to match the shipping address zip code, max size is 5000.
|
9682
9797
|
* @example ```"(?i)(JE1|JE2|JE3|JE4|JE5)"```
|
9683
9798
|
*/
|
9684
9799
|
zip_code_regex?: string | null;
|
9685
9800
|
/**
|
9686
|
-
* The regex that will be evaluated as negative match for the shipping zip country code.
|
9801
|
+
* The regex that will be evaluated as negative match for the shipping zip country code, max size is 5000.
|
9687
9802
|
* @example ```"(?i)(JE1|JE2|JE3)"```
|
9688
9803
|
*/
|
9689
9804
|
not_zip_code_regex?: string | null;
|
@@ -9922,7 +10037,7 @@ type ShippingMethodType = 'shipping_methods';
|
|
9922
10037
|
type ShippingMethodRel$2 = ResourceRel & {
|
9923
10038
|
type: ShippingMethodType;
|
9924
10039
|
};
|
9925
|
-
type MarketRel$
|
10040
|
+
type MarketRel$5 = ResourceRel & {
|
9926
10041
|
type: MarketType;
|
9927
10042
|
};
|
9928
10043
|
type ShippingZoneRel$1 = ResourceRel & {
|
@@ -10109,7 +10224,7 @@ interface ShippingMethodCreate extends ResourceCreate {
|
|
10109
10224
|
* @example ```"true"```
|
10110
10225
|
*/
|
10111
10226
|
_enable?: boolean | null;
|
10112
|
-
market?: MarketRel$
|
10227
|
+
market?: MarketRel$5 | null;
|
10113
10228
|
shipping_zone?: ShippingZoneRel$1 | null;
|
10114
10229
|
shipping_category?: ShippingCategoryRel$3 | null;
|
10115
10230
|
stock_location?: StockLocationRel$5 | null;
|
@@ -10181,7 +10296,7 @@ interface ShippingMethodUpdate extends ResourceUpdate {
|
|
10181
10296
|
* @example ```"true"```
|
10182
10297
|
*/
|
10183
10298
|
_reset_circuit?: boolean | null;
|
10184
|
-
market?: MarketRel$
|
10299
|
+
market?: MarketRel$5 | null;
|
10185
10300
|
shipping_zone?: ShippingZoneRel$1 | null;
|
10186
10301
|
shipping_category?: ShippingCategoryRel$3 | null;
|
10187
10302
|
stock_location?: StockLocationRel$5 | null;
|
@@ -10214,7 +10329,7 @@ type CarrierAccountType = 'carrier_accounts';
|
|
10214
10329
|
type CarrierAccountRel$1 = ResourceRel & {
|
10215
10330
|
type: CarrierAccountType;
|
10216
10331
|
};
|
10217
|
-
type MarketRel$
|
10332
|
+
type MarketRel$4 = ResourceRel & {
|
10218
10333
|
type: MarketType;
|
10219
10334
|
};
|
10220
10335
|
type CarrierAccountSort = Pick<CarrierAccount, 'id' | 'name'> & ResourceSort;
|
@@ -10260,7 +10375,7 @@ interface CarrierAccountCreate extends ResourceCreate {
|
|
10260
10375
|
* @example ```"[object Object]"```
|
10261
10376
|
*/
|
10262
10377
|
credentials: Record<string, any>;
|
10263
|
-
market?: MarketRel$
|
10378
|
+
market?: MarketRel$4 | null;
|
10264
10379
|
}
|
10265
10380
|
interface CarrierAccountUpdate extends ResourceUpdate {
|
10266
10381
|
/**
|
@@ -10278,7 +10393,7 @@ interface CarrierAccountUpdate extends ResourceUpdate {
|
|
10278
10393
|
* @example ```"[object Object]"```
|
10279
10394
|
*/
|
10280
10395
|
credentials?: Record<string, any> | null;
|
10281
|
-
market?: MarketRel$
|
10396
|
+
market?: MarketRel$4 | null;
|
10282
10397
|
}
|
10283
10398
|
declare class CarrierAccounts extends ApiResource<CarrierAccount> {
|
10284
10399
|
static readonly TYPE: CarrierAccountType;
|
@@ -11205,7 +11320,7 @@ interface StockTransfer extends Resource {
|
|
11205
11320
|
*/
|
11206
11321
|
status: 'draft' | 'upcoming' | 'on_hold' | 'picking' | 'in_transit' | 'completed' | 'cancelled';
|
11207
11322
|
/**
|
11208
|
-
* The stock quantity to be transferred from the origin stock location to destination one.
|
11323
|
+
* The stock quantity to be transferred from the origin stock location to destination one. Updatable unless stock transfer is completed or cancelled and depending on origin stock availability.
|
11209
11324
|
* @example ```"2"```
|
11210
11325
|
*/
|
11211
11326
|
quantity: number;
|
@@ -11256,7 +11371,7 @@ interface StockTransferCreate extends ResourceCreate {
|
|
11256
11371
|
*/
|
11257
11372
|
sku_code?: string | null;
|
11258
11373
|
/**
|
11259
|
-
* The stock quantity to be transferred from the origin stock location to destination one.
|
11374
|
+
* The stock quantity to be transferred from the origin stock location to destination one. Updatable unless stock transfer is completed or cancelled and depending on origin stock availability.
|
11260
11375
|
* @example ```"2"```
|
11261
11376
|
*/
|
11262
11377
|
quantity: number;
|
@@ -11277,6 +11392,11 @@ interface StockTransferUpdate extends ResourceUpdate {
|
|
11277
11392
|
* @example ```"TSHIRTMM000000FFFFFFXLXX"```
|
11278
11393
|
*/
|
11279
11394
|
sku_code?: string | null;
|
11395
|
+
/**
|
11396
|
+
* The stock quantity to be transferred from the origin stock location to destination one. Updatable unless stock transfer is completed or cancelled and depending on origin stock availability.
|
11397
|
+
* @example ```"2"```
|
11398
|
+
*/
|
11399
|
+
quantity?: number | null;
|
11280
11400
|
/**
|
11281
11401
|
* Send this attribute if you want to mark this stock transfer as upcoming.
|
11282
11402
|
* @example ```"true"```
|
@@ -12141,7 +12261,7 @@ type PriceListSchedulerType = 'price_list_schedulers';
|
|
12141
12261
|
type PriceListSchedulerRel = ResourceRel & {
|
12142
12262
|
type: PriceListSchedulerType;
|
12143
12263
|
};
|
12144
|
-
type MarketRel$
|
12264
|
+
type MarketRel$3 = ResourceRel & {
|
12145
12265
|
type: MarketType;
|
12146
12266
|
};
|
12147
12267
|
type PriceListRel$3 = ResourceRel & {
|
@@ -12211,7 +12331,7 @@ interface PriceListSchedulerCreate extends ResourceCreate {
|
|
12211
12331
|
* @example ```"true"```
|
12212
12332
|
*/
|
12213
12333
|
_enable?: boolean | null;
|
12214
|
-
market: MarketRel$
|
12334
|
+
market: MarketRel$3;
|
12215
12335
|
price_list: PriceListRel$3;
|
12216
12336
|
}
|
12217
12337
|
interface PriceListSchedulerUpdate extends ResourceUpdate {
|
@@ -12240,7 +12360,7 @@ interface PriceListSchedulerUpdate extends ResourceUpdate {
|
|
12240
12360
|
* @example ```"true"```
|
12241
12361
|
*/
|
12242
12362
|
_enable?: boolean | null;
|
12243
|
-
market?: MarketRel$
|
12363
|
+
market?: MarketRel$3 | null;
|
12244
12364
|
price_list?: PriceListRel$3 | null;
|
12245
12365
|
}
|
12246
12366
|
declare class PriceListSchedulers extends ApiResource<PriceListScheduler> {
|
@@ -12433,6 +12553,7 @@ interface Transaction extends Resource {
|
|
12433
12553
|
*/
|
12434
12554
|
gateway_transaction_id?: string | null;
|
12435
12555
|
order?: Order | null;
|
12556
|
+
payment_source?: AdyenPayment | AxervePayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | SatispayPayment | StripePayment | WireTransfer | null;
|
12436
12557
|
attachments?: Attachment[] | null;
|
12437
12558
|
events?: Event[] | null;
|
12438
12559
|
versions?: Version[] | null;
|
@@ -12775,35 +12896,70 @@ interface TaxRule extends Resource {
|
|
12775
12896
|
*/
|
12776
12897
|
tax_rate?: number | null;
|
12777
12898
|
/**
|
12778
|
-
*
|
12899
|
+
* Indicates if the freight is taxable.
|
12900
|
+
*/
|
12901
|
+
freight_taxable?: boolean | null;
|
12902
|
+
/**
|
12903
|
+
* Indicates if the payment method is taxable.
|
12904
|
+
*/
|
12905
|
+
payment_method_taxable?: boolean | null;
|
12906
|
+
/**
|
12907
|
+
* Indicates if gift cards are taxable.
|
12908
|
+
*/
|
12909
|
+
gift_card_taxable?: boolean | null;
|
12910
|
+
/**
|
12911
|
+
* Indicates if adjustemnts are taxable.
|
12912
|
+
*/
|
12913
|
+
adjustment_taxable?: boolean | null;
|
12914
|
+
/**
|
12915
|
+
* The breakdown for this tax rule (if calculated).
|
12916
|
+
* @example ```"[object Object]"```
|
12917
|
+
*/
|
12918
|
+
breakdown?: Record<string, any> | null;
|
12919
|
+
/**
|
12920
|
+
* The regex that will be evaluated to match the shipping address country code, max size is 5000.
|
12779
12921
|
* @example ```"AT|BE|BG|CZ|DK|EE|DE|HU|LV|LT"```
|
12780
12922
|
*/
|
12781
12923
|
country_code_regex?: string | null;
|
12782
12924
|
/**
|
12783
|
-
* The regex that will be evaluated as negative match for the shipping address country code.
|
12925
|
+
* The regex that will be evaluated as negative match for the shipping address country code, max size is 5000.
|
12784
12926
|
* @example ```"AT|BE|BG|CZ|DK|EE|DE"```
|
12785
12927
|
*/
|
12786
12928
|
not_country_code_regex?: string | null;
|
12787
12929
|
/**
|
12788
|
-
* The regex that will be evaluated to match the shipping address state code.
|
12930
|
+
* The regex that will be evaluated to match the shipping address state code, max size is 5000.
|
12789
12931
|
* @example ```"A[KLRZ]|C[AOT]|D[CE]|FL"```
|
12790
12932
|
*/
|
12791
12933
|
state_code_regex?: string | null;
|
12792
12934
|
/**
|
12793
|
-
* The regex that will be evaluated as negative match for the shipping address state code.
|
12935
|
+
* The regex that will be evaluated as negative match for the shipping address state code, max size is 5000.
|
12794
12936
|
* @example ```"A[KLRZ]|C[AOT]"```
|
12795
12937
|
*/
|
12796
12938
|
not_state_code_regex?: string | null;
|
12797
12939
|
/**
|
12798
|
-
* The regex that will be evaluated to match the shipping address zip code.
|
12940
|
+
* The regex that will be evaluated to match the shipping address zip code, max size is 5000.
|
12799
12941
|
* @example ```"(?i)(JE1|JE2|JE3|JE4|JE5)"```
|
12800
12942
|
*/
|
12801
12943
|
zip_code_regex?: string | null;
|
12802
12944
|
/**
|
12803
|
-
* The regex that will be evaluated as negative match for the shipping zip country code.
|
12945
|
+
* The regex that will be evaluated as negative match for the shipping zip country code, max size is 5000.
|
12804
12946
|
* @example ```"(?i)(JE1|JE2|JE3)"```
|
12805
12947
|
*/
|
12806
12948
|
not_zip_code_regex?: string | null;
|
12949
|
+
manual_tax_calculator?: ManualTaxCalculator | null;
|
12950
|
+
versions?: Version[] | null;
|
12951
|
+
}
|
12952
|
+
interface TaxRuleCreate extends ResourceCreate {
|
12953
|
+
/**
|
12954
|
+
* The tax rule internal name.
|
12955
|
+
* @example ```"Fixed 22%"```
|
12956
|
+
*/
|
12957
|
+
name: string;
|
12958
|
+
/**
|
12959
|
+
* The tax rate for this rule.
|
12960
|
+
* @example ```"0.22"```
|
12961
|
+
*/
|
12962
|
+
tax_rate?: number | null;
|
12807
12963
|
/**
|
12808
12964
|
* Indicates if the freight is taxable.
|
12809
12965
|
*/
|
@@ -12821,54 +12977,48 @@ interface TaxRule extends Resource {
|
|
12821
12977
|
*/
|
12822
12978
|
adjustment_taxable?: boolean | null;
|
12823
12979
|
/**
|
12824
|
-
* The
|
12825
|
-
* @example ```"[object Object]"```
|
12826
|
-
*/
|
12827
|
-
breakdown?: Record<string, any> | null;
|
12828
|
-
manual_tax_calculator?: ManualTaxCalculator | null;
|
12829
|
-
versions?: Version[] | null;
|
12830
|
-
}
|
12831
|
-
interface TaxRuleCreate extends ResourceCreate {
|
12832
|
-
/**
|
12833
|
-
* The tax rule internal name.
|
12834
|
-
* @example ```"Fixed 22%"```
|
12835
|
-
*/
|
12836
|
-
name: string;
|
12837
|
-
/**
|
12838
|
-
* The tax rate for this rule.
|
12839
|
-
* @example ```"0.22"```
|
12840
|
-
*/
|
12841
|
-
tax_rate?: number | null;
|
12842
|
-
/**
|
12843
|
-
* The regex that will be evaluated to match the shipping address country code.
|
12980
|
+
* The regex that will be evaluated to match the shipping address country code, max size is 5000.
|
12844
12981
|
* @example ```"AT|BE|BG|CZ|DK|EE|DE|HU|LV|LT"```
|
12845
12982
|
*/
|
12846
12983
|
country_code_regex?: string | null;
|
12847
12984
|
/**
|
12848
|
-
* The regex that will be evaluated as negative match for the shipping address country code.
|
12985
|
+
* The regex that will be evaluated as negative match for the shipping address country code, max size is 5000.
|
12849
12986
|
* @example ```"AT|BE|BG|CZ|DK|EE|DE"```
|
12850
12987
|
*/
|
12851
12988
|
not_country_code_regex?: string | null;
|
12852
12989
|
/**
|
12853
|
-
* The regex that will be evaluated to match the shipping address state code.
|
12990
|
+
* The regex that will be evaluated to match the shipping address state code, max size is 5000.
|
12854
12991
|
* @example ```"A[KLRZ]|C[AOT]|D[CE]|FL"```
|
12855
12992
|
*/
|
12856
12993
|
state_code_regex?: string | null;
|
12857
12994
|
/**
|
12858
|
-
* The regex that will be evaluated as negative match for the shipping address state code.
|
12995
|
+
* The regex that will be evaluated as negative match for the shipping address state code, max size is 5000.
|
12859
12996
|
* @example ```"A[KLRZ]|C[AOT]"```
|
12860
12997
|
*/
|
12861
12998
|
not_state_code_regex?: string | null;
|
12862
12999
|
/**
|
12863
|
-
* The regex that will be evaluated to match the shipping address zip code.
|
13000
|
+
* The regex that will be evaluated to match the shipping address zip code, max size is 5000.
|
12864
13001
|
* @example ```"(?i)(JE1|JE2|JE3|JE4|JE5)"```
|
12865
13002
|
*/
|
12866
13003
|
zip_code_regex?: string | null;
|
12867
13004
|
/**
|
12868
|
-
* The regex that will be evaluated as negative match for the shipping zip country code.
|
13005
|
+
* The regex that will be evaluated as negative match for the shipping zip country code, max size is 5000.
|
12869
13006
|
* @example ```"(?i)(JE1|JE2|JE3)"```
|
12870
13007
|
*/
|
12871
13008
|
not_zip_code_regex?: string | null;
|
13009
|
+
manual_tax_calculator: ManualTaxCalculatorRel$3;
|
13010
|
+
}
|
13011
|
+
interface TaxRuleUpdate extends ResourceUpdate {
|
13012
|
+
/**
|
13013
|
+
* The tax rule internal name.
|
13014
|
+
* @example ```"Fixed 22%"```
|
13015
|
+
*/
|
13016
|
+
name?: string | null;
|
13017
|
+
/**
|
13018
|
+
* The tax rate for this rule.
|
13019
|
+
* @example ```"0.22"```
|
13020
|
+
*/
|
13021
|
+
tax_rate?: number | null;
|
12872
13022
|
/**
|
12873
13023
|
* Indicates if the freight is taxable.
|
12874
13024
|
*/
|
@@ -12885,65 +13035,36 @@ interface TaxRuleCreate extends ResourceCreate {
|
|
12885
13035
|
* Indicates if adjustemnts are taxable.
|
12886
13036
|
*/
|
12887
13037
|
adjustment_taxable?: boolean | null;
|
12888
|
-
manual_tax_calculator: ManualTaxCalculatorRel$3;
|
12889
|
-
}
|
12890
|
-
interface TaxRuleUpdate extends ResourceUpdate {
|
12891
|
-
/**
|
12892
|
-
* The tax rule internal name.
|
12893
|
-
* @example ```"Fixed 22%"```
|
12894
|
-
*/
|
12895
|
-
name?: string | null;
|
12896
13038
|
/**
|
12897
|
-
* The
|
12898
|
-
* @example ```"0.22"```
|
12899
|
-
*/
|
12900
|
-
tax_rate?: number | null;
|
12901
|
-
/**
|
12902
|
-
* The regex that will be evaluated to match the shipping address country code.
|
13039
|
+
* The regex that will be evaluated to match the shipping address country code, max size is 5000.
|
12903
13040
|
* @example ```"AT|BE|BG|CZ|DK|EE|DE|HU|LV|LT"```
|
12904
13041
|
*/
|
12905
13042
|
country_code_regex?: string | null;
|
12906
13043
|
/**
|
12907
|
-
* The regex that will be evaluated as negative match for the shipping address country code.
|
13044
|
+
* The regex that will be evaluated as negative match for the shipping address country code, max size is 5000.
|
12908
13045
|
* @example ```"AT|BE|BG|CZ|DK|EE|DE"```
|
12909
13046
|
*/
|
12910
13047
|
not_country_code_regex?: string | null;
|
12911
13048
|
/**
|
12912
|
-
* The regex that will be evaluated to match the shipping address state code.
|
13049
|
+
* The regex that will be evaluated to match the shipping address state code, max size is 5000.
|
12913
13050
|
* @example ```"A[KLRZ]|C[AOT]|D[CE]|FL"```
|
12914
13051
|
*/
|
12915
13052
|
state_code_regex?: string | null;
|
12916
13053
|
/**
|
12917
|
-
* The regex that will be evaluated as negative match for the shipping address state code.
|
13054
|
+
* The regex that will be evaluated as negative match for the shipping address state code, max size is 5000.
|
12918
13055
|
* @example ```"A[KLRZ]|C[AOT]"```
|
12919
13056
|
*/
|
12920
13057
|
not_state_code_regex?: string | null;
|
12921
13058
|
/**
|
12922
|
-
* The regex that will be evaluated to match the shipping address zip code.
|
13059
|
+
* The regex that will be evaluated to match the shipping address zip code, max size is 5000.
|
12923
13060
|
* @example ```"(?i)(JE1|JE2|JE3|JE4|JE5)"```
|
12924
13061
|
*/
|
12925
13062
|
zip_code_regex?: string | null;
|
12926
13063
|
/**
|
12927
|
-
* The regex that will be evaluated as negative match for the shipping zip country code.
|
13064
|
+
* The regex that will be evaluated as negative match for the shipping zip country code, max size is 5000.
|
12928
13065
|
* @example ```"(?i)(JE1|JE2|JE3)"```
|
12929
13066
|
*/
|
12930
13067
|
not_zip_code_regex?: string | null;
|
12931
|
-
/**
|
12932
|
-
* Indicates if the freight is taxable.
|
12933
|
-
*/
|
12934
|
-
freight_taxable?: boolean | null;
|
12935
|
-
/**
|
12936
|
-
* Indicates if the payment method is taxable.
|
12937
|
-
*/
|
12938
|
-
payment_method_taxable?: boolean | null;
|
12939
|
-
/**
|
12940
|
-
* Indicates if gift cards are taxable.
|
12941
|
-
*/
|
12942
|
-
gift_card_taxable?: boolean | null;
|
12943
|
-
/**
|
12944
|
-
* Indicates if adjustemnts are taxable.
|
12945
|
-
*/
|
12946
|
-
adjustment_taxable?: boolean | null;
|
12947
13068
|
manual_tax_calculator?: ManualTaxCalculatorRel$3 | null;
|
12948
13069
|
}
|
12949
13070
|
declare class TaxRules extends ApiResource<TaxRule> {
|
@@ -13181,7 +13302,7 @@ type PriceListRel$1 = ResourceRel & {
|
|
13181
13302
|
type PaymentMethodRel = ResourceRel & {
|
13182
13303
|
type: PaymentMethodType;
|
13183
13304
|
};
|
13184
|
-
type MarketRel$
|
13305
|
+
type MarketRel$2 = ResourceRel & {
|
13185
13306
|
type: MarketType;
|
13186
13307
|
};
|
13187
13308
|
type CustomerGroupRel$1 = ResourceRel & {
|
@@ -13319,7 +13440,7 @@ interface AttachmentCreate extends ResourceCreate {
|
|
13319
13440
|
* @example ```"https://s3.yourdomain.com/attachment.pdf"```
|
13320
13441
|
*/
|
13321
13442
|
url?: string | null;
|
13322
|
-
attachable: GeocoderRel$3 | PriceListRel$1 | PaymentMethodRel | MarketRel$
|
13443
|
+
attachable: GeocoderRel$3 | PriceListRel$1 | PaymentMethodRel | MarketRel$2 | CustomerGroupRel$1 | OrderRel | TransactionRel | PromotionRel | TaxCalculatorRel | TaxCategoryRel | SkuRel$1 | ShippingCategoryRel | BundleRel | SkuListRel | StockItemRel | StockLocationRel | ReturnRel | CarrierAccountRel | CouponRecipientRel | CustomerRel$1 | DeliveryLeadTimeRel | ShippingMethodRel | GiftCardRecipientRel | GiftCardRel | InventoryModelRel$1 | StockTransferRel | SkuOptionRel | MerchantRel$2 | SubscriptionModelRel$1 | ShipmentRel | PaymentOptionRel | PackageRel | ParcelRel | PriceRel | PriceTierRel | ShippingMethodTierRel | ShippingZoneRel;
|
13323
13444
|
}
|
13324
13445
|
interface AttachmentUpdate extends ResourceUpdate {
|
13325
13446
|
/**
|
@@ -13337,7 +13458,7 @@ interface AttachmentUpdate extends ResourceUpdate {
|
|
13337
13458
|
* @example ```"https://s3.yourdomain.com/attachment.pdf"```
|
13338
13459
|
*/
|
13339
13460
|
url?: string | null;
|
13340
|
-
attachable?: GeocoderRel$3 | PriceListRel$1 | PaymentMethodRel | MarketRel$
|
13461
|
+
attachable?: GeocoderRel$3 | PriceListRel$1 | PaymentMethodRel | MarketRel$2 | CustomerGroupRel$1 | OrderRel | TransactionRel | PromotionRel | TaxCalculatorRel | TaxCategoryRel | SkuRel$1 | ShippingCategoryRel | BundleRel | SkuListRel | StockItemRel | StockLocationRel | ReturnRel | CarrierAccountRel | CouponRecipientRel | CustomerRel$1 | DeliveryLeadTimeRel | ShippingMethodRel | GiftCardRecipientRel | GiftCardRel | InventoryModelRel$1 | StockTransferRel | SkuOptionRel | MerchantRel$2 | SubscriptionModelRel$1 | ShipmentRel | PaymentOptionRel | PackageRel | ParcelRel | PriceRel | PriceTierRel | ShippingMethodTierRel | ShippingZoneRel | null;
|
13341
13462
|
}
|
13342
13463
|
declare class Attachments extends ApiResource<Attachment> {
|
13343
13464
|
static readonly TYPE: AttachmentType;
|
@@ -13400,7 +13521,7 @@ declare class Merchants extends ApiResource<Merchant> {
|
|
13400
13521
|
}
|
13401
13522
|
|
13402
13523
|
type MarketType = 'markets';
|
13403
|
-
type MarketRel$
|
13524
|
+
type MarketRel$1 = ResourceRel & {
|
13404
13525
|
type: MarketType;
|
13405
13526
|
};
|
13406
13527
|
type MerchantRel = ResourceRel & {
|
@@ -13632,8 +13753,8 @@ declare class Markets extends ApiResource<Market> {
|
|
13632
13753
|
_disable(id: string | Market, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market>;
|
13633
13754
|
_enable(id: string | Market, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market>;
|
13634
13755
|
isMarket(resource: any): resource is Market;
|
13635
|
-
relationship(id: string | ResourceId | null): MarketRel$
|
13636
|
-
relationshipToMany(...ids: string[]): MarketRel$
|
13756
|
+
relationship(id: string | ResourceId | null): MarketRel$1;
|
13757
|
+
relationshipToMany(...ids: string[]): MarketRel$1[];
|
13637
13758
|
type(): MarketType;
|
13638
13759
|
}
|
13639
13760
|
|
@@ -14262,40 +14383,6 @@ declare class AxerveGateways extends ApiResource<AxerveGateway> {
|
|
14262
14383
|
type(): AxerveGatewayType;
|
14263
14384
|
}
|
14264
14385
|
|
14265
|
-
type BillingInfoValidationRuleType = 'billing_info_validation_rules';
|
14266
|
-
type BillingInfoValidationRuleRel = ResourceRel & {
|
14267
|
-
type: BillingInfoValidationRuleType;
|
14268
|
-
};
|
14269
|
-
type MarketRel$1 = ResourceRel & {
|
14270
|
-
type: MarketType;
|
14271
|
-
};
|
14272
|
-
type BillingInfoValidationRuleSort = Pick<BillingInfoValidationRule, 'id'> & ResourceSort;
|
14273
|
-
interface BillingInfoValidationRule extends Resource {
|
14274
|
-
readonly type: BillingInfoValidationRuleType;
|
14275
|
-
market?: Market | null;
|
14276
|
-
attachments?: Attachment[] | null;
|
14277
|
-
versions?: Version[] | null;
|
14278
|
-
}
|
14279
|
-
interface BillingInfoValidationRuleCreate extends ResourceCreate {
|
14280
|
-
market: MarketRel$1;
|
14281
|
-
}
|
14282
|
-
interface BillingInfoValidationRuleUpdate extends ResourceUpdate {
|
14283
|
-
market?: MarketRel$1 | null;
|
14284
|
-
}
|
14285
|
-
declare class BillingInfoValidationRules extends ApiResource<BillingInfoValidationRule> {
|
14286
|
-
static readonly TYPE: BillingInfoValidationRuleType;
|
14287
|
-
create(resource: BillingInfoValidationRuleCreate, params?: QueryParamsRetrieve<BillingInfoValidationRule>, options?: ResourcesConfig): Promise<BillingInfoValidationRule>;
|
14288
|
-
update(resource: BillingInfoValidationRuleUpdate, params?: QueryParamsRetrieve<BillingInfoValidationRule>, options?: ResourcesConfig): Promise<BillingInfoValidationRule>;
|
14289
|
-
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
14290
|
-
market(billingInfoValidationRuleId: string | BillingInfoValidationRule, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market>;
|
14291
|
-
attachments(billingInfoValidationRuleId: string | BillingInfoValidationRule, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
14292
|
-
versions(billingInfoValidationRuleId: string | BillingInfoValidationRule, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
14293
|
-
isBillingInfoValidationRule(resource: any): resource is BillingInfoValidationRule;
|
14294
|
-
relationship(id: string | ResourceId | null): BillingInfoValidationRuleRel;
|
14295
|
-
relationshipToMany(...ids: string[]): BillingInfoValidationRuleRel[];
|
14296
|
-
type(): BillingInfoValidationRuleType;
|
14297
|
-
}
|
14298
|
-
|
14299
14386
|
type BingGeocoderType = 'bing_geocoders';
|
14300
14387
|
type BingGeocoderRel = ResourceRel & {
|
14301
14388
|
type: BingGeocoderType;
|
@@ -14645,7 +14732,13 @@ interface CleanupCreate extends ResourceCreate {
|
|
14645
14732
|
*/
|
14646
14733
|
filters?: Record<string, any> | null;
|
14647
14734
|
}
|
14648
|
-
|
14735
|
+
interface CleanupUpdate extends ResourceUpdate {
|
14736
|
+
/**
|
14737
|
+
* Send this attribute if you want to mark status as 'interrupted'.
|
14738
|
+
* @example ```"true"```
|
14739
|
+
*/
|
14740
|
+
_interrupt?: boolean | null;
|
14741
|
+
}
|
14649
14742
|
declare class Cleanups extends ApiResource<Cleanup> {
|
14650
14743
|
static readonly TYPE: CleanupType;
|
14651
14744
|
create(resource: CleanupCreate, params?: QueryParamsRetrieve<Cleanup>, options?: ResourcesConfig): Promise<Cleanup>;
|
@@ -14653,6 +14746,7 @@ declare class Cleanups extends ApiResource<Cleanup> {
|
|
14653
14746
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
14654
14747
|
events(cleanupId: string | Cleanup, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
14655
14748
|
versions(cleanupId: string | Cleanup, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
14749
|
+
_interrupt(id: string | Cleanup, params?: QueryParamsRetrieve<Cleanup>, options?: ResourcesConfig): Promise<Cleanup>;
|
14656
14750
|
isCleanup(resource: any): resource is Cleanup;
|
14657
14751
|
relationship(id: string | ResourceId | null): CleanupRel;
|
14658
14752
|
relationshipToMany(...ids: string[]): CleanupRel[];
|
@@ -14740,10 +14834,15 @@ interface Export extends Resource {
|
|
14740
14834
|
*/
|
14741
14835
|
status: 'pending' | 'in_progress' | 'interrupted' | 'completed';
|
14742
14836
|
/**
|
14743
|
-
* List of related resources that should be included in the export.
|
14837
|
+
* List of related resources that should be included in the export (redundant when 'fields' are specified).
|
14744
14838
|
* @example ```"prices.price_tiers"```
|
14745
14839
|
*/
|
14746
14840
|
includes?: string[] | null;
|
14841
|
+
/**
|
14842
|
+
* List of fields to export for the main and related resources (automatically included). Pass the asterisk '*' to include all exportable fields for the main and related resources.
|
14843
|
+
* @example ```"code,name,prices.*,prices.price_tiers.price_amount_cents"```
|
14844
|
+
*/
|
14845
|
+
fields?: string[] | null;
|
14747
14846
|
/**
|
14748
14847
|
* The filters used to select the records to be exported.
|
14749
14848
|
* @example ```"[object Object]"```
|
@@ -14778,6 +14877,11 @@ interface Export extends Resource {
|
|
14778
14877
|
* @example ```"http://cl_exports.s3.amazonaws.com/"```
|
14779
14878
|
*/
|
14780
14879
|
attachment_url?: string | null;
|
14880
|
+
/**
|
14881
|
+
* Contains the exports errors, if any.
|
14882
|
+
* @example ```"[object Object]"```
|
14883
|
+
*/
|
14884
|
+
errors_log?: Record<string, any> | null;
|
14781
14885
|
events?: Event[] | null;
|
14782
14886
|
}
|
14783
14887
|
interface ExportCreate extends ResourceCreate {
|
@@ -14792,10 +14896,15 @@ interface ExportCreate extends ResourceCreate {
|
|
14792
14896
|
*/
|
14793
14897
|
format?: string | null;
|
14794
14898
|
/**
|
14795
|
-
* List of related resources that should be included in the export.
|
14899
|
+
* List of related resources that should be included in the export (redundant when 'fields' are specified).
|
14796
14900
|
* @example ```"prices.price_tiers"```
|
14797
14901
|
*/
|
14798
14902
|
includes?: string[] | null;
|
14903
|
+
/**
|
14904
|
+
* List of fields to export for the main and related resources (automatically included). Pass the asterisk '*' to include all exportable fields for the main and related resources.
|
14905
|
+
* @example ```"code,name,prices.*,prices.price_tiers.price_amount_cents"```
|
14906
|
+
*/
|
14907
|
+
fields?: string[] | null;
|
14799
14908
|
/**
|
14800
14909
|
* The filters used to select the records to be exported.
|
14801
14910
|
* @example ```"[object Object]"```
|
@@ -14806,13 +14915,20 @@ interface ExportCreate extends ResourceCreate {
|
|
14806
14915
|
*/
|
14807
14916
|
dry_data?: boolean | null;
|
14808
14917
|
}
|
14809
|
-
|
14918
|
+
interface ExportUpdate extends ResourceUpdate {
|
14919
|
+
/**
|
14920
|
+
* Send this attribute if you want to mark status as 'interrupted'.
|
14921
|
+
* @example ```"true"```
|
14922
|
+
*/
|
14923
|
+
_interrupt?: boolean | null;
|
14924
|
+
}
|
14810
14925
|
declare class Exports extends ApiResource<Export> {
|
14811
14926
|
static readonly TYPE: ExportType;
|
14812
14927
|
create(resource: ExportCreate, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export>;
|
14813
14928
|
update(resource: ExportUpdate, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export>;
|
14814
14929
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
14815
14930
|
events(exportId: string | Export, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
14931
|
+
_interrupt(id: string | Export, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export>;
|
14816
14932
|
isExport(resource: any): resource is Export;
|
14817
14933
|
relationship(id: string | ResourceId | null): ExportRel;
|
14818
14934
|
relationshipToMany(...ids: string[]): ExportRel[];
|
@@ -15119,13 +15235,20 @@ interface ImportCreate extends ResourceCreate {
|
|
15119
15235
|
*/
|
15120
15236
|
inputs: Array<Record<string, any>>;
|
15121
15237
|
}
|
15122
|
-
|
15238
|
+
interface ImportUpdate extends ResourceUpdate {
|
15239
|
+
/**
|
15240
|
+
* Send this attribute if you want to mark status as 'interrupted'.
|
15241
|
+
* @example ```"true"```
|
15242
|
+
*/
|
15243
|
+
_interrupt?: boolean | null;
|
15244
|
+
}
|
15123
15245
|
declare class Imports extends ApiResource<Import> {
|
15124
15246
|
static readonly TYPE: ImportType;
|
15125
15247
|
create(resource: ImportCreate, params?: QueryParamsRetrieve<Import>, options?: ResourcesConfig): Promise<Import>;
|
15126
15248
|
update(resource: ImportUpdate, params?: QueryParamsRetrieve<Import>, options?: ResourcesConfig): Promise<Import>;
|
15127
15249
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
15128
15250
|
events(importId: string | Import, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
15251
|
+
_interrupt(id: string | Import, params?: QueryParamsRetrieve<Import>, options?: ResourcesConfig): Promise<Import>;
|
15129
15252
|
isImport(resource: any): resource is Import;
|
15130
15253
|
relationship(id: string | ResourceId | null): ImportRel;
|
15131
15254
|
relationshipToMany(...ids: string[]): ImportRel[];
|
@@ -15429,10 +15552,20 @@ interface Organization extends Resource {
|
|
15429
15552
|
* Enables the rules engine for flex promotions and price list rules.
|
15430
15553
|
*/
|
15431
15554
|
api_rules_engine?: boolean | null;
|
15555
|
+
/**
|
15556
|
+
* Forces the usage of the new Authentication API.
|
15557
|
+
* @example ```"true"```
|
15558
|
+
*/
|
15559
|
+
api_new_auth?: boolean | null;
|
15432
15560
|
/**
|
15433
15561
|
* Enables the purge of cached single resources when list is purged.
|
15434
15562
|
*/
|
15435
15563
|
api_purge_single_resource?: boolean | null;
|
15564
|
+
/**
|
15565
|
+
* The maximum length for the regular expressions, default is 5000.
|
15566
|
+
* @example ```"5000"```
|
15567
|
+
*/
|
15568
|
+
api_max_regex_length?: number | null;
|
15436
15569
|
/**
|
15437
15570
|
* Indicates if the phone attribute is required for addresses, default is true.
|
15438
15571
|
* @example ```"true"```
|
@@ -15506,6 +15639,10 @@ interface Organization extends Resource {
|
|
15506
15639
|
* @example ```"true"```
|
15507
15640
|
*/
|
15508
15641
|
imports_purge_cache?: boolean | null;
|
15642
|
+
/**
|
15643
|
+
* Disables the interruption of the import in case its errors exceeds the 10% threshold, default is false.
|
15644
|
+
*/
|
15645
|
+
imports_skip_errors?: boolean | null;
|
15509
15646
|
/**
|
15510
15647
|
* The maximum number of active concurrent promotions allowed for your organization, default is 10.
|
15511
15648
|
* @example ```"10"```
|
@@ -15515,6 +15652,19 @@ interface Organization extends Resource {
|
|
15515
15652
|
* Enables triggering of webhooks during imports, default is false.
|
15516
15653
|
*/
|
15517
15654
|
imports_trigger_webhooks?: number | null;
|
15655
|
+
/**
|
15656
|
+
* Enables the use of an external discount engine in place of the standard one, default is false.
|
15657
|
+
*/
|
15658
|
+
discount_engines_enabled?: boolean | null;
|
15659
|
+
/**
|
15660
|
+
* Enables raising of API errors in case of discount engine failure, default is false.
|
15661
|
+
*/
|
15662
|
+
discount_engines_errors?: boolean | null;
|
15663
|
+
/**
|
15664
|
+
* The maximum length for the tag name, default is 25.
|
15665
|
+
* @example ```"25"```
|
15666
|
+
*/
|
15667
|
+
tags_max_name_length?: number | null;
|
15518
15668
|
/**
|
15519
15669
|
* Enables raising of API errors in case of tax calculation failure, default is false.
|
15520
15670
|
*/
|
@@ -15765,7 +15915,7 @@ declare class StripeGateways extends ApiResource<StripeGateway> {
|
|
15765
15915
|
type(): StripeGatewayType;
|
15766
15916
|
}
|
15767
15917
|
|
15768
|
-
type ResourceTypeLock = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'applications' | 'attachments' | 'authorizations' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | '
|
15918
|
+
type ResourceTypeLock = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'applications' | 'attachments' | 'authorizations' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'buy_x_pay_y_promotions' | 'captures' | 'carrier_accounts' | 'checkout_com_gateways' | 'checkout_com_payments' | 'cleanups' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | 'custom_promotion_rules' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'event_callbacks' | 'events' | 'exports' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'flex_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'geocoders' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'imports' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'klarna_gateways' | 'klarna_payments' | 'line_item_options' | 'line_items' | 'links' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'notifications' | 'order_amount_promotion_rules' | 'order_copies' | 'order_factories' | 'order_subscription_items' | 'order_subscriptions' | 'orders' | 'organizations' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_gateways' | 'payment_methods' | 'payment_options' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_frequency_tiers' | 'price_list_schedulers' | 'price_lists' | 'price_tiers' | 'price_volume_tiers' | 'prices' | 'promotion_rules' | 'promotions' | 'recurring_order_copies' | 'refunds' | 'reserved_stocks' | 'resource_errors' | 'return_line_items' | 'returns' | 'satispay_gateways' | 'satispay_payments' | 'shipments' | 'shipping_categories' | 'shipping_method_tiers' | 'shipping_methods' | 'shipping_weight_tiers' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_line_items' | 'stock_locations' | 'stock_reservations' | 'stock_transfers' | 'stores' | 'stripe_gateways' | 'stripe_payments' | 'subscription_models' | 'tags' | 'tax_calculators' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'transactions' | 'versions' | 'voids' | 'webhooks' | 'wire_transfers';
|
15769
15919
|
declare const resourceList: ResourceTypeLock[];
|
15770
15920
|
declare const singletonList: ResourceTypeLock[];
|
15771
15921
|
type RetrievableResourceType = ResourceTypeLock;
|
@@ -15776,15 +15926,15 @@ type ListableResourceType = Exclude<ResourceTypeLock, 'applications' | 'organiza
|
|
15776
15926
|
type ListableResource = Resource & {
|
15777
15927
|
type: ListableResourceType;
|
15778
15928
|
};
|
15779
|
-
type CreatableResourceType = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'attachments' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | '
|
15929
|
+
type CreatableResourceType = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'attachments' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'buy_x_pay_y_promotions' | 'carrier_accounts' | 'checkout_com_gateways' | 'checkout_com_payments' | 'cleanups' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | 'custom_promotion_rules' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'exports' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'flex_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'imports' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'klarna_gateways' | 'klarna_payments' | 'line_item_options' | 'line_items' | 'links' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'notifications' | 'order_amount_promotion_rules' | 'order_copies' | 'order_subscription_items' | 'order_subscriptions' | 'orders' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_methods' | 'payment_options' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_frequency_tiers' | 'price_list_schedulers' | 'price_lists' | 'price_volume_tiers' | 'prices' | 'recurring_order_copies' | 'return_line_items' | 'returns' | 'satispay_gateways' | 'satispay_payments' | 'shipments' | 'shipping_categories' | 'shipping_methods' | 'shipping_weight_tiers' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_line_items' | 'stock_locations' | 'stock_reservations' | 'stock_transfers' | 'stores' | 'stripe_gateways' | 'stripe_payments' | 'subscription_models' | 'tags' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'webhooks' | 'wire_transfers';
|
15780
15930
|
type CreatableResource = Resource & {
|
15781
15931
|
type: CreatableResourceType;
|
15782
15932
|
};
|
15783
|
-
type UpdatableResourceType = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'attachments' | 'authorizations' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | '
|
15933
|
+
type UpdatableResourceType = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'attachments' | 'authorizations' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'buy_x_pay_y_promotions' | 'captures' | 'carrier_accounts' | 'checkout_com_gateways' | 'checkout_com_payments' | 'cleanups' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | 'custom_promotion_rules' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'events' | 'exports' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'flex_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'imports' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'klarna_gateways' | 'klarna_payments' | 'line_item_options' | 'line_items' | 'links' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'notifications' | 'order_amount_promotion_rules' | 'order_copies' | 'order_subscription_items' | 'order_subscriptions' | 'orders' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_methods' | 'payment_options' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_frequency_tiers' | 'price_list_schedulers' | 'price_lists' | 'price_volume_tiers' | 'prices' | 'recurring_order_copies' | 'refunds' | 'return_line_items' | 'returns' | 'satispay_gateways' | 'satispay_payments' | 'shipments' | 'shipping_categories' | 'shipping_methods' | 'shipping_weight_tiers' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_line_items' | 'stock_locations' | 'stock_reservations' | 'stock_transfers' | 'stores' | 'stripe_gateways' | 'stripe_payments' | 'subscription_models' | 'tags' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'voids' | 'webhooks' | 'wire_transfers';
|
15784
15934
|
type UpdatableResource = Resource & {
|
15785
15935
|
type: UpdatableResourceType;
|
15786
15936
|
};
|
15787
|
-
type DeletableResourceType = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'attachments' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | '
|
15937
|
+
type DeletableResourceType = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'attachments' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'buy_x_pay_y_promotions' | 'carrier_accounts' | 'checkout_com_gateways' | 'checkout_com_payments' | 'cleanups' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | 'custom_promotion_rules' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'exports' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'flex_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'imports' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'klarna_gateways' | 'klarna_payments' | 'line_item_options' | 'line_items' | 'links' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'notifications' | 'order_amount_promotion_rules' | 'order_copies' | 'order_subscription_items' | 'order_subscriptions' | 'orders' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_methods' | 'payment_options' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_frequency_tiers' | 'price_list_schedulers' | 'price_lists' | 'price_volume_tiers' | 'prices' | 'recurring_order_copies' | 'return_line_items' | 'returns' | 'satispay_gateways' | 'satispay_payments' | 'shipments' | 'shipping_categories' | 'shipping_methods' | 'shipping_weight_tiers' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_line_items' | 'stock_locations' | 'stock_reservations' | 'stock_transfers' | 'stores' | 'stripe_gateways' | 'stripe_payments' | 'subscription_models' | 'tags' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'webhooks' | 'wire_transfers';
|
15788
15938
|
type DeletableResource = Resource & {
|
15789
15939
|
type: DeletableResourceType;
|
15790
15940
|
};
|
@@ -15795,7 +15945,7 @@ type TaggableResource = Resource & {
|
|
15795
15945
|
type: TagType;
|
15796
15946
|
}> | null;
|
15797
15947
|
};
|
15798
|
-
type VersionableResourceType = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'authorizations' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | '
|
15948
|
+
type VersionableResourceType = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'authorizations' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'buy_x_pay_y_promotions' | 'captures' | 'carrier_accounts' | 'checkout_com_gateways' | 'checkout_com_payments' | 'cleanups' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | 'custom_promotion_rules' | 'customer_addresses' | 'customer_groups' | 'customer_payment_sources' | 'customer_subscriptions' | 'delivery_lead_times' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'flex_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'gift_card_recipients' | 'gift_cards' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'klarna_gateways' | 'klarna_payments' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'order_amount_promotion_rules' | 'order_subscriptions' | 'orders' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_gateways' | 'payment_methods' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_frequency_tiers' | 'price_list_schedulers' | 'price_lists' | 'price_tiers' | 'price_volume_tiers' | 'prices' | 'promotion_rules' | 'promotions' | 'refunds' | 'reserved_stocks' | 'returns' | 'satispay_gateways' | 'satispay_payments' | 'shipments' | 'shipping_categories' | 'shipping_method_tiers' | 'shipping_methods' | 'shipping_weight_tiers' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_line_items' | 'stock_locations' | 'stock_transfers' | 'stores' | 'stripe_gateways' | 'stripe_payments' | 'tax_calculators' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'transactions' | 'voids' | 'webhooks' | 'wire_transfers';
|
15799
15949
|
type VersionableResource = Resource & {
|
15800
15950
|
type: VersionableResourceType;
|
15801
15951
|
versions?: Array<ResourceRel & {
|
@@ -15813,7 +15963,6 @@ type ResourceFields = {
|
|
15813
15963
|
avalara_accounts: AvalaraAccount;
|
15814
15964
|
axerve_gateways: AxerveGateway;
|
15815
15965
|
axerve_payments: AxervePayment;
|
15816
|
-
billing_info_validation_rules: BillingInfoValidationRule;
|
15817
15966
|
bing_geocoders: BingGeocoder;
|
15818
15967
|
braintree_gateways: BraintreeGateway;
|
15819
15968
|
braintree_payments: BraintreePayment;
|
@@ -15865,6 +16014,7 @@ type ResourceFields = {
|
|
15865
16014
|
manual_tax_calculators: ManualTaxCalculator;
|
15866
16015
|
markets: Market;
|
15867
16016
|
merchants: Merchant;
|
16017
|
+
notifications: Notification;
|
15868
16018
|
order_amount_promotion_rules: OrderAmountPromotionRule;
|
15869
16019
|
order_copies: OrderCopy;
|
15870
16020
|
order_factories: OrderFactory;
|
@@ -15939,7 +16089,6 @@ type ResourceSortFields = {
|
|
15939
16089
|
avalara_accounts: AvalaraAccountSort;
|
15940
16090
|
axerve_gateways: AxerveGatewaySort;
|
15941
16091
|
axerve_payments: AxervePaymentSort;
|
15942
|
-
billing_info_validation_rules: BillingInfoValidationRuleSort;
|
15943
16092
|
bing_geocoders: BingGeocoderSort;
|
15944
16093
|
braintree_gateways: BraintreeGatewaySort;
|
15945
16094
|
braintree_payments: BraintreePaymentSort;
|
@@ -15991,6 +16140,7 @@ type ResourceSortFields = {
|
|
15991
16140
|
manual_tax_calculators: ManualTaxCalculatorSort;
|
15992
16141
|
markets: MarketSort;
|
15993
16142
|
merchants: MerchantSort;
|
16143
|
+
notifications: NotificationSort;
|
15994
16144
|
order_amount_promotion_rules: OrderAmountPromotionRuleSort;
|
15995
16145
|
order_copies: OrderCopySort;
|
15996
16146
|
order_factories: OrderFactorySort;
|
@@ -16092,7 +16242,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
|
|
16092
16242
|
type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
|
16093
16243
|
declare class CommerceLayerClient {
|
16094
16244
|
#private;
|
16095
|
-
readonly openApiSchemaVersion = "7.
|
16245
|
+
readonly openApiSchemaVersion = "7.6.0";
|
16096
16246
|
constructor(config: CommerceLayerInitConfig);
|
16097
16247
|
get addresses(): Addresses;
|
16098
16248
|
get adjustments(): Adjustments;
|
@@ -16104,7 +16254,6 @@ declare class CommerceLayerClient {
|
|
16104
16254
|
get avalara_accounts(): AvalaraAccounts;
|
16105
16255
|
get axerve_gateways(): AxerveGateways;
|
16106
16256
|
get axerve_payments(): AxervePayments;
|
16107
|
-
get billing_info_validation_rules(): BillingInfoValidationRules;
|
16108
16257
|
get bing_geocoders(): BingGeocoders;
|
16109
16258
|
get braintree_gateways(): BraintreeGateways;
|
16110
16259
|
get braintree_payments(): BraintreePayments;
|
@@ -16156,6 +16305,7 @@ declare class CommerceLayerClient {
|
|
16156
16305
|
get manual_tax_calculators(): ManualTaxCalculators;
|
16157
16306
|
get markets(): Markets;
|
16158
16307
|
get merchants(): Merchants;
|
16308
|
+
get notifications(): Notifications;
|
16159
16309
|
get order_amount_promotion_rules(): OrderAmountPromotionRules;
|
16160
16310
|
get order_copies(): OrderCopies;
|
16161
16311
|
get order_factories(): OrderFactories;
|
@@ -16249,4 +16399,4 @@ declare const CommerceLayerStatic: {
|
|
16249
16399
|
readonly schemaVersion: string;
|
16250
16400
|
};
|
16251
16401
|
|
16252
|
-
export { type Address, type AddressCreate, type AddressSort, type AddressUpdate, Addresses, type Adjustment, type AdjustmentCreate, type AdjustmentSort, type AdjustmentUpdate, Adjustments, type AdyenGateway, type AdyenGatewayCreate, type AdyenGatewaySort, type AdyenGatewayUpdate, AdyenGateways, type AdyenPayment, type AdyenPaymentCreate, type AdyenPaymentSort, type AdyenPaymentUpdate, AdyenPayments, ApiError, ApiResource, ApiSingleton, type Application, type ApplicationSort, Applications, type Attachment, type AttachmentCreate, type AttachmentSort, type AttachmentUpdate, Attachments, type Authorization, type AuthorizationSort, type AuthorizationUpdate, Authorizations, type AvalaraAccount, type AvalaraAccountCreate, type AvalaraAccountSort, type AvalaraAccountUpdate, AvalaraAccounts, type AxerveGateway, type AxerveGatewayCreate, type AxerveGatewaySort, type AxerveGatewayUpdate, AxerveGateways, type AxervePayment, type AxervePaymentCreate, type AxervePaymentSort, type AxervePaymentUpdate, AxervePayments, type BillingInfoValidationRule, type BillingInfoValidationRuleCreate, type BillingInfoValidationRuleSort, type BillingInfoValidationRuleUpdate, BillingInfoValidationRules, type BingGeocoder, type BingGeocoderCreate, type BingGeocoderSort, type BingGeocoderUpdate, BingGeocoders, type BraintreeGateway, type BraintreeGatewayCreate, type BraintreeGatewaySort, type BraintreeGatewayUpdate, BraintreeGateways, type BraintreePayment, type BraintreePaymentCreate, type BraintreePaymentSort, type BraintreePaymentUpdate, BraintreePayments, type Bundle, type BundleCreate, type BundleSort, type BundleUpdate, Bundles, type BuyXPayYPromotion, type BuyXPayYPromotionCreate, type BuyXPayYPromotionSort, type BuyXPayYPromotionUpdate, BuyXPayYPromotions, type Capture, type CaptureSort, type CaptureUpdate, Captures, type CarrierAccount, type CarrierAccountCreate, type CarrierAccountSort, type CarrierAccountUpdate, CarrierAccounts, type CheckoutComGateway, type CheckoutComGatewayCreate, type CheckoutComGatewaySort, type CheckoutComGatewayUpdate, CheckoutComGateways, type CheckoutComPayment, type CheckoutComPaymentCreate, type CheckoutComPaymentSort, type CheckoutComPaymentUpdate, CheckoutComPayments, type Cleanup, type CleanupCreate, type CleanupSort, type CleanupUpdate, Cleanups, CommerceLayer, CommerceLayerClient, type CommerceLayerConfig, type CommerceLayerInitConfig, CommerceLayerStatic, type Coupon, type CouponCodesPromotionRule, type CouponCodesPromotionRuleCreate, type CouponCodesPromotionRuleSort, type CouponCodesPromotionRuleUpdate, CouponCodesPromotionRules, type CouponCreate, type CouponRecipient, type CouponRecipientCreate, type CouponRecipientSort, type CouponRecipientUpdate, CouponRecipients, type CouponSort, type CouponUpdate, Coupons, type CreatableResource, type CreatableResourceType, type CustomPromotionRule, type CustomPromotionRuleCreate, type CustomPromotionRuleSort, type CustomPromotionRuleUpdate, CustomPromotionRules, type Customer, type CustomerAddress, type CustomerAddressCreate, type CustomerAddressSort, type CustomerAddressUpdate, CustomerAddresses, type CustomerCreate, type CustomerGroup, type CustomerGroupCreate, type CustomerGroupSort, type CustomerGroupUpdate, CustomerGroups, type CustomerPasswordReset, type CustomerPasswordResetCreate, type CustomerPasswordResetSort, type CustomerPasswordResetUpdate, CustomerPasswordResets, type CustomerPaymentSource, type CustomerPaymentSourceCreate, type CustomerPaymentSourceSort, type CustomerPaymentSourceUpdate, CustomerPaymentSources, type CustomerSort, type CustomerSubscription, type CustomerSubscriptionCreate, type CustomerSubscriptionSort, type CustomerSubscriptionUpdate, CustomerSubscriptions, type CustomerUpdate, Customers, type DeletableResource, type DeletableResourceType, type DeliveryLeadTime, type DeliveryLeadTimeCreate, type DeliveryLeadTimeSort, type DeliveryLeadTimeUpdate, DeliveryLeadTimes, type ErrorObj, ErrorType, type Event, type EventCallback, type EventCallbackSort, EventCallbacks, type EventSort, type EventUpdate, Events, type Export, type ExportCreate, type ExportSort, type ExportUpdate, Exports, type ExternalGateway, type ExternalGatewayCreate, type ExternalGatewaySort, type ExternalGatewayUpdate, ExternalGateways, type ExternalPayment, type ExternalPaymentCreate, type ExternalPaymentSort, type ExternalPaymentUpdate, ExternalPayments, type ExternalPromotion, type ExternalPromotionCreate, type ExternalPromotionSort, type ExternalPromotionUpdate, ExternalPromotions, type ExternalTaxCalculator, type ExternalTaxCalculatorCreate, type ExternalTaxCalculatorSort, type ExternalTaxCalculatorUpdate, ExternalTaxCalculators, type FixedAmountPromotion, type FixedAmountPromotionCreate, type FixedAmountPromotionSort, type FixedAmountPromotionUpdate, FixedAmountPromotions, type FixedPricePromotion, type FixedPricePromotionCreate, type FixedPricePromotionSort, type FixedPricePromotionUpdate, FixedPricePromotions, type FlexPromotion, type FlexPromotionCreate, type FlexPromotionSort, type FlexPromotionUpdate, FlexPromotions, type FreeGiftPromotion, type FreeGiftPromotionCreate, type FreeGiftPromotionSort, type FreeGiftPromotionUpdate, FreeGiftPromotions, type FreeShippingPromotion, type FreeShippingPromotionCreate, type FreeShippingPromotionSort, type FreeShippingPromotionUpdate, FreeShippingPromotions, type Geocoder, type GeocoderSort, Geocoders, type GiftCard, type GiftCardCreate, type GiftCardRecipient, type GiftCardRecipientCreate, type GiftCardRecipientSort, type GiftCardRecipientUpdate, GiftCardRecipients, type GiftCardSort, type GiftCardUpdate, GiftCards, type GoogleGeocoder, type GoogleGeocoderCreate, type GoogleGeocoderSort, type GoogleGeocoderUpdate, GoogleGeocoders, type HeadersObj, type Import, type ImportCreate, type ImportSort, type ImportUpdate, Imports, type InStockSubscription, type InStockSubscriptionCreate, type InStockSubscriptionSort, type InStockSubscriptionUpdate, InStockSubscriptions, type InventoryModel, type InventoryModelCreate, type InventoryModelSort, type InventoryModelUpdate, InventoryModels, type InventoryReturnLocation, type InventoryReturnLocationCreate, type InventoryReturnLocationSort, type InventoryReturnLocationUpdate, InventoryReturnLocations, type InventoryStockLocation, type InventoryStockLocationCreate, type InventoryStockLocationSort, type InventoryStockLocationUpdate, InventoryStockLocations, type KlarnaGateway, type KlarnaGatewayCreate, type KlarnaGatewaySort, type KlarnaGatewayUpdate, KlarnaGateways, type KlarnaPayment, type KlarnaPaymentCreate, type KlarnaPaymentSort, type KlarnaPaymentUpdate, KlarnaPayments, type LineItem, type LineItemCreate, type LineItemOption, type LineItemOptionCreate, type LineItemOptionSort, type LineItemOptionUpdate, LineItemOptions, type LineItemSort, type LineItemUpdate, LineItems, type Link, type LinkCreate, type LinkSort, type LinkUpdate, Links, type ListMeta, ListResponse, type ListableResource, type ListableResourceType, type ManualGateway, type ManualGatewayCreate, type ManualGatewaySort, type ManualGatewayUpdate, ManualGateways, type ManualTaxCalculator, type ManualTaxCalculatorCreate, type ManualTaxCalculatorSort, type ManualTaxCalculatorUpdate, ManualTaxCalculators, type Market, type MarketCreate, type MarketSort, type MarketUpdate, Markets, type Merchant, type MerchantCreate, type MerchantSort, type MerchantUpdate, Merchants, type Metadata, type Order, type OrderAmountPromotionRule, type OrderAmountPromotionRuleCreate, type OrderAmountPromotionRuleSort, type OrderAmountPromotionRuleUpdate, OrderAmountPromotionRules, OrderCopies, type OrderCopy, type OrderCopyCreate, type OrderCopySort, type OrderCopyUpdate, type OrderCreate, OrderFactories, type OrderFactory, type OrderFactorySort, type OrderSort, type OrderSubscription, type OrderSubscriptionCreate, type OrderSubscriptionItem, type OrderSubscriptionItemCreate, type OrderSubscriptionItemSort, type OrderSubscriptionItemUpdate, OrderSubscriptionItems, type OrderSubscriptionSort, type OrderSubscriptionUpdate, OrderSubscriptions, type OrderUpdate, Orders, type Organization, type OrganizationSort, Organizations, type Package, type PackageCreate, type PackageSort, type PackageUpdate, Packages, type Parcel, type ParcelCreate, type ParcelLineItem, type ParcelLineItemCreate, type ParcelLineItemSort, type ParcelLineItemUpdate, ParcelLineItems, type ParcelSort, type ParcelUpdate, Parcels, type PaymentGateway, type PaymentGatewaySort, PaymentGateways, type PaymentMethod, type PaymentMethodCreate, type PaymentMethodSort, type PaymentMethodUpdate, PaymentMethods, type PaymentOption, type PaymentOptionCreate, type PaymentOptionSort, type PaymentOptionUpdate, PaymentOptions, type PaypalGateway, type PaypalGatewayCreate, type PaypalGatewaySort, type PaypalGatewayUpdate, PaypalGateways, type PaypalPayment, type PaypalPaymentCreate, type PaypalPaymentSort, type PaypalPaymentUpdate, PaypalPayments, type PercentageDiscountPromotion, type PercentageDiscountPromotionCreate, type PercentageDiscountPromotionSort, type PercentageDiscountPromotionUpdate, PercentageDiscountPromotions, type Price, type PriceCreate, type PriceFrequencyTier, type PriceFrequencyTierCreate, type PriceFrequencyTierSort, type PriceFrequencyTierUpdate, PriceFrequencyTiers, type PriceList, type PriceListCreate, type PriceListScheduler, type PriceListSchedulerCreate, type PriceListSchedulerSort, type PriceListSchedulerUpdate, PriceListSchedulers, type PriceListSort, type PriceListUpdate, PriceLists, type PriceSort, type PriceTier, type PriceTierSort, PriceTiers, type PriceUpdate, type PriceVolumeTier, type PriceVolumeTierCreate, type PriceVolumeTierSort, type PriceVolumeTierUpdate, PriceVolumeTiers, Prices, type Promotion, type PromotionRule, type PromotionRuleSort, PromotionRules, type PromotionSort, Promotions, type QueryArrayFields, type QueryArraySortable, type QueryFields, type QueryFilter, type QueryInclude, type QueryPageNumber, type QueryPageSize, type QueryParams, type QueryParamsList, type QueryParamsRetrieve, type QueryRecordFields, type QueryRecordSortable, type QuerySort, RecurringOrderCopies, type RecurringOrderCopy, type RecurringOrderCopyCreate, type RecurringOrderCopySort, type RecurringOrderCopyUpdate, type Refund, type RefundSort, type RefundUpdate, Refunds, type RequestObj, type ReservedStock, type ReservedStockSort, ReservedStocks, type Resource, ResourceAdapter, type ResourceCreate, type ResourceError, type ResourceErrorSort, ResourceErrors, type ResourceFields, type ResourceFilter, type ResourceId, type ResourceRel, type ResourceSort, type ResourceSortFields, type ResourceType, type ResourceTypeLock, type ResourceUpdate, type ResourcesConfig, type ResourcesInitConfig, type ResponseObj, type RetrievableResource, type RetrievableResourceType, type Return, type ReturnCreate, type ReturnLineItem, type ReturnLineItemCreate, type ReturnLineItemSort, type ReturnLineItemUpdate, ReturnLineItems, type ReturnSort, type ReturnUpdate, Returns, type SatispayGateway, type SatispayGatewayCreate, type SatispayGatewaySort, type SatispayGatewayUpdate, SatispayGateways, type SatispayPayment, type SatispayPaymentCreate, type SatispayPaymentSort, type SatispayPaymentUpdate, SatispayPayments, SdkError, type Shipment, type ShipmentCreate, type ShipmentSort, type ShipmentUpdate, Shipments, ShippingCategories, type ShippingCategory, type ShippingCategoryCreate, type ShippingCategorySort, type ShippingCategoryUpdate, type ShippingMethod, type ShippingMethodCreate, type ShippingMethodSort, type ShippingMethodTier, type ShippingMethodTierSort, ShippingMethodTiers, type ShippingMethodUpdate, ShippingMethods, type ShippingWeightTier, type ShippingWeightTierCreate, type ShippingWeightTierSort, type ShippingWeightTierUpdate, ShippingWeightTiers, type ShippingZone, type ShippingZoneCreate, type ShippingZoneSort, type ShippingZoneUpdate, ShippingZones, type Sku, type SkuCreate, type SkuList, type SkuListCreate, type SkuListItem, type SkuListItemCreate, type SkuListItemSort, type SkuListItemUpdate, SkuListItems, type SkuListPromotionRule, type SkuListPromotionRuleCreate, type SkuListPromotionRuleSort, type SkuListPromotionRuleUpdate, SkuListPromotionRules, type SkuListSort, type SkuListUpdate, SkuLists, type SkuOption, type SkuOptionCreate, type SkuOptionSort, type SkuOptionUpdate, SkuOptions, type SkuSort, type SkuUpdate, Skus, type StockItem, type StockItemCreate, type StockItemSort, type StockItemUpdate, StockItems, type StockLineItem, type StockLineItemCreate, type StockLineItemSort, type StockLineItemUpdate, StockLineItems, type StockLocation, type StockLocationCreate, type StockLocationSort, type StockLocationUpdate, StockLocations, type StockReservation, type StockReservationCreate, type StockReservationSort, type StockReservationUpdate, StockReservations, type StockTransfer, type StockTransferCreate, type StockTransferSort, type StockTransferUpdate, StockTransfers, type Store, type StoreCreate, type StoreSort, type StoreUpdate, Stores, type StripeGateway, type StripeGatewayCreate, type StripeGatewaySort, type StripeGatewayUpdate, StripeGateways, type StripePayment, type StripePaymentCreate, type StripePaymentSort, type StripePaymentUpdate, StripePayments, type SubscriptionModel, type SubscriptionModelCreate, type SubscriptionModelSort, type SubscriptionModelUpdate, SubscriptionModels, type Tag, type TagCreate, type TagSort, type TagUpdate, type TaggableResource, type TaggableResourceType, Tags, type TaxCalculator, type TaxCalculatorSort, TaxCalculators, TaxCategories, type TaxCategory, type TaxCategoryCreate, type TaxCategorySort, type TaxCategoryUpdate, type TaxRule, type TaxRuleCreate, type TaxRuleSort, type TaxRuleUpdate, TaxRules, type TaxjarAccount, type TaxjarAccountCreate, type TaxjarAccountSort, type TaxjarAccountUpdate, TaxjarAccounts, type Transaction, type TransactionSort, Transactions, type UpdatableResource, type UpdatableResourceType, type Version, type VersionSort, type VersionableResource, type VersionableResourceType, Versions, type Void, type VoidSort, type VoidUpdate, Voids, type Webhook, type WebhookCreate, type WebhookSort, type WebhookUpdate, Webhooks, type WireTransfer, type WireTransferCreate, type WireTransferSort, type WireTransferUpdate, WireTransfers, apiResourceAdapter, CommerceLayer as default, generateQueryStringParams, generateSearchString, isParamsList, resourceList, singletonList };
|
16402
|
+
export { type Address, type AddressCreate, type AddressSort, type AddressUpdate, Addresses, type Adjustment, type AdjustmentCreate, type AdjustmentSort, type AdjustmentUpdate, Adjustments, type AdyenGateway, type AdyenGatewayCreate, type AdyenGatewaySort, type AdyenGatewayUpdate, AdyenGateways, type AdyenPayment, type AdyenPaymentCreate, type AdyenPaymentSort, type AdyenPaymentUpdate, AdyenPayments, ApiError, ApiResource, ApiSingleton, type Application, type ApplicationSort, Applications, type Attachment, type AttachmentCreate, type AttachmentSort, type AttachmentUpdate, Attachments, type Authorization, type AuthorizationSort, type AuthorizationUpdate, Authorizations, type AvalaraAccount, type AvalaraAccountCreate, type AvalaraAccountSort, type AvalaraAccountUpdate, AvalaraAccounts, type AxerveGateway, type AxerveGatewayCreate, type AxerveGatewaySort, type AxerveGatewayUpdate, AxerveGateways, type AxervePayment, type AxervePaymentCreate, type AxervePaymentSort, type AxervePaymentUpdate, AxervePayments, type BingGeocoder, type BingGeocoderCreate, type BingGeocoderSort, type BingGeocoderUpdate, BingGeocoders, type BraintreeGateway, type BraintreeGatewayCreate, type BraintreeGatewaySort, type BraintreeGatewayUpdate, BraintreeGateways, type BraintreePayment, type BraintreePaymentCreate, type BraintreePaymentSort, type BraintreePaymentUpdate, BraintreePayments, type Bundle, type BundleCreate, type BundleSort, type BundleUpdate, Bundles, type BuyXPayYPromotion, type BuyXPayYPromotionCreate, type BuyXPayYPromotionSort, type BuyXPayYPromotionUpdate, BuyXPayYPromotions, type Capture, type CaptureSort, type CaptureUpdate, Captures, type CarrierAccount, type CarrierAccountCreate, type CarrierAccountSort, type CarrierAccountUpdate, CarrierAccounts, type CheckoutComGateway, type CheckoutComGatewayCreate, type CheckoutComGatewaySort, type CheckoutComGatewayUpdate, CheckoutComGateways, type CheckoutComPayment, type CheckoutComPaymentCreate, type CheckoutComPaymentSort, type CheckoutComPaymentUpdate, CheckoutComPayments, type Cleanup, type CleanupCreate, type CleanupSort, type CleanupUpdate, Cleanups, CommerceLayer, CommerceLayerClient, type CommerceLayerConfig, type CommerceLayerInitConfig, CommerceLayerStatic, type Coupon, type CouponCodesPromotionRule, type CouponCodesPromotionRuleCreate, type CouponCodesPromotionRuleSort, type CouponCodesPromotionRuleUpdate, CouponCodesPromotionRules, type CouponCreate, type CouponRecipient, type CouponRecipientCreate, type CouponRecipientSort, type CouponRecipientUpdate, CouponRecipients, type CouponSort, type CouponUpdate, Coupons, type CreatableResource, type CreatableResourceType, type CustomPromotionRule, type CustomPromotionRuleCreate, type CustomPromotionRuleSort, type CustomPromotionRuleUpdate, CustomPromotionRules, type Customer, type CustomerAddress, type CustomerAddressCreate, type CustomerAddressSort, type CustomerAddressUpdate, CustomerAddresses, type CustomerCreate, type CustomerGroup, type CustomerGroupCreate, type CustomerGroupSort, type CustomerGroupUpdate, CustomerGroups, type CustomerPasswordReset, type CustomerPasswordResetCreate, type CustomerPasswordResetSort, type CustomerPasswordResetUpdate, CustomerPasswordResets, type CustomerPaymentSource, type CustomerPaymentSourceCreate, type CustomerPaymentSourceSort, type CustomerPaymentSourceUpdate, CustomerPaymentSources, type CustomerSort, type CustomerSubscription, type CustomerSubscriptionCreate, type CustomerSubscriptionSort, type CustomerSubscriptionUpdate, CustomerSubscriptions, type CustomerUpdate, Customers, type DeletableResource, type DeletableResourceType, type DeliveryLeadTime, type DeliveryLeadTimeCreate, type DeliveryLeadTimeSort, type DeliveryLeadTimeUpdate, DeliveryLeadTimes, type ErrorObj, ErrorType, type Event, type EventCallback, type EventCallbackSort, EventCallbacks, type EventSort, type EventUpdate, Events, type Export, type ExportCreate, type ExportSort, type ExportUpdate, Exports, type ExternalGateway, type ExternalGatewayCreate, type ExternalGatewaySort, type ExternalGatewayUpdate, ExternalGateways, type ExternalPayment, type ExternalPaymentCreate, type ExternalPaymentSort, type ExternalPaymentUpdate, ExternalPayments, type ExternalPromotion, type ExternalPromotionCreate, type ExternalPromotionSort, type ExternalPromotionUpdate, ExternalPromotions, type ExternalTaxCalculator, type ExternalTaxCalculatorCreate, type ExternalTaxCalculatorSort, type ExternalTaxCalculatorUpdate, ExternalTaxCalculators, type FixedAmountPromotion, type FixedAmountPromotionCreate, type FixedAmountPromotionSort, type FixedAmountPromotionUpdate, FixedAmountPromotions, type FixedPricePromotion, type FixedPricePromotionCreate, type FixedPricePromotionSort, type FixedPricePromotionUpdate, FixedPricePromotions, type FlexPromotion, type FlexPromotionCreate, type FlexPromotionSort, type FlexPromotionUpdate, FlexPromotions, type FreeGiftPromotion, type FreeGiftPromotionCreate, type FreeGiftPromotionSort, type FreeGiftPromotionUpdate, FreeGiftPromotions, type FreeShippingPromotion, type FreeShippingPromotionCreate, type FreeShippingPromotionSort, type FreeShippingPromotionUpdate, FreeShippingPromotions, type Geocoder, type GeocoderSort, Geocoders, type GiftCard, type GiftCardCreate, type GiftCardRecipient, type GiftCardRecipientCreate, type GiftCardRecipientSort, type GiftCardRecipientUpdate, GiftCardRecipients, type GiftCardSort, type GiftCardUpdate, GiftCards, type GoogleGeocoder, type GoogleGeocoderCreate, type GoogleGeocoderSort, type GoogleGeocoderUpdate, GoogleGeocoders, type HeadersObj, type Import, type ImportCreate, type ImportSort, type ImportUpdate, Imports, type InStockSubscription, type InStockSubscriptionCreate, type InStockSubscriptionSort, type InStockSubscriptionUpdate, InStockSubscriptions, type InventoryModel, type InventoryModelCreate, type InventoryModelSort, type InventoryModelUpdate, InventoryModels, type InventoryReturnLocation, type InventoryReturnLocationCreate, type InventoryReturnLocationSort, type InventoryReturnLocationUpdate, InventoryReturnLocations, type InventoryStockLocation, type InventoryStockLocationCreate, type InventoryStockLocationSort, type InventoryStockLocationUpdate, InventoryStockLocations, type KlarnaGateway, type KlarnaGatewayCreate, type KlarnaGatewaySort, type KlarnaGatewayUpdate, KlarnaGateways, type KlarnaPayment, type KlarnaPaymentCreate, type KlarnaPaymentSort, type KlarnaPaymentUpdate, KlarnaPayments, type LineItem, type LineItemCreate, type LineItemOption, type LineItemOptionCreate, type LineItemOptionSort, type LineItemOptionUpdate, LineItemOptions, type LineItemSort, type LineItemUpdate, LineItems, type Link, type LinkCreate, type LinkSort, type LinkUpdate, Links, type ListMeta, ListResponse, type ListableResource, type ListableResourceType, type ManualGateway, type ManualGatewayCreate, type ManualGatewaySort, type ManualGatewayUpdate, ManualGateways, type ManualTaxCalculator, type ManualTaxCalculatorCreate, type ManualTaxCalculatorSort, type ManualTaxCalculatorUpdate, ManualTaxCalculators, type Market, type MarketCreate, type MarketSort, type MarketUpdate, Markets, type Merchant, type MerchantCreate, type MerchantSort, type MerchantUpdate, Merchants, type Metadata, type Notification, type NotificationCreate, type NotificationSort, type NotificationUpdate, Notifications, type Order, type OrderAmountPromotionRule, type OrderAmountPromotionRuleCreate, type OrderAmountPromotionRuleSort, type OrderAmountPromotionRuleUpdate, OrderAmountPromotionRules, OrderCopies, type OrderCopy, type OrderCopyCreate, type OrderCopySort, type OrderCopyUpdate, type OrderCreate, OrderFactories, type OrderFactory, type OrderFactorySort, type OrderSort, type OrderSubscription, type OrderSubscriptionCreate, type OrderSubscriptionItem, type OrderSubscriptionItemCreate, type OrderSubscriptionItemSort, type OrderSubscriptionItemUpdate, OrderSubscriptionItems, type OrderSubscriptionSort, type OrderSubscriptionUpdate, OrderSubscriptions, type OrderUpdate, Orders, type Organization, type OrganizationSort, Organizations, type Package, type PackageCreate, type PackageSort, type PackageUpdate, Packages, type Parcel, type ParcelCreate, type ParcelLineItem, type ParcelLineItemCreate, type ParcelLineItemSort, type ParcelLineItemUpdate, ParcelLineItems, type ParcelSort, type ParcelUpdate, Parcels, type PaymentGateway, type PaymentGatewaySort, PaymentGateways, type PaymentMethod, type PaymentMethodCreate, type PaymentMethodSort, type PaymentMethodUpdate, PaymentMethods, type PaymentOption, type PaymentOptionCreate, type PaymentOptionSort, type PaymentOptionUpdate, PaymentOptions, type PaypalGateway, type PaypalGatewayCreate, type PaypalGatewaySort, type PaypalGatewayUpdate, PaypalGateways, type PaypalPayment, type PaypalPaymentCreate, type PaypalPaymentSort, type PaypalPaymentUpdate, PaypalPayments, type PercentageDiscountPromotion, type PercentageDiscountPromotionCreate, type PercentageDiscountPromotionSort, type PercentageDiscountPromotionUpdate, PercentageDiscountPromotions, type Price, type PriceCreate, type PriceFrequencyTier, type PriceFrequencyTierCreate, type PriceFrequencyTierSort, type PriceFrequencyTierUpdate, PriceFrequencyTiers, type PriceList, type PriceListCreate, type PriceListScheduler, type PriceListSchedulerCreate, type PriceListSchedulerSort, type PriceListSchedulerUpdate, PriceListSchedulers, type PriceListSort, type PriceListUpdate, PriceLists, type PriceSort, type PriceTier, type PriceTierSort, PriceTiers, type PriceUpdate, type PriceVolumeTier, type PriceVolumeTierCreate, type PriceVolumeTierSort, type PriceVolumeTierUpdate, PriceVolumeTiers, Prices, type Promotion, type PromotionRule, type PromotionRuleSort, PromotionRules, type PromotionSort, Promotions, type QueryArrayFields, type QueryArraySortable, type QueryFields, type QueryFilter, type QueryInclude, type QueryPageNumber, type QueryPageSize, type QueryParams, type QueryParamsList, type QueryParamsRetrieve, type QueryRecordFields, type QueryRecordSortable, type QuerySort, RecurringOrderCopies, type RecurringOrderCopy, type RecurringOrderCopyCreate, type RecurringOrderCopySort, type RecurringOrderCopyUpdate, type Refund, type RefundSort, type RefundUpdate, Refunds, type RequestObj, type ReservedStock, type ReservedStockSort, ReservedStocks, type Resource, ResourceAdapter, type ResourceCreate, type ResourceError, type ResourceErrorSort, ResourceErrors, type ResourceFields, type ResourceFilter, type ResourceId, type ResourceRel, type ResourceSort, type ResourceSortFields, type ResourceType, type ResourceTypeLock, type ResourceUpdate, type ResourcesConfig, type ResourcesInitConfig, type ResponseObj, type RetrievableResource, type RetrievableResourceType, type Return, type ReturnCreate, type ReturnLineItem, type ReturnLineItemCreate, type ReturnLineItemSort, type ReturnLineItemUpdate, ReturnLineItems, type ReturnSort, type ReturnUpdate, Returns, type SatispayGateway, type SatispayGatewayCreate, type SatispayGatewaySort, type SatispayGatewayUpdate, SatispayGateways, type SatispayPayment, type SatispayPaymentCreate, type SatispayPaymentSort, type SatispayPaymentUpdate, SatispayPayments, SdkError, type Shipment, type ShipmentCreate, type ShipmentSort, type ShipmentUpdate, Shipments, ShippingCategories, type ShippingCategory, type ShippingCategoryCreate, type ShippingCategorySort, type ShippingCategoryUpdate, type ShippingMethod, type ShippingMethodCreate, type ShippingMethodSort, type ShippingMethodTier, type ShippingMethodTierSort, ShippingMethodTiers, type ShippingMethodUpdate, ShippingMethods, type ShippingWeightTier, type ShippingWeightTierCreate, type ShippingWeightTierSort, type ShippingWeightTierUpdate, ShippingWeightTiers, type ShippingZone, type ShippingZoneCreate, type ShippingZoneSort, type ShippingZoneUpdate, ShippingZones, type Sku, type SkuCreate, type SkuList, type SkuListCreate, type SkuListItem, type SkuListItemCreate, type SkuListItemSort, type SkuListItemUpdate, SkuListItems, type SkuListPromotionRule, type SkuListPromotionRuleCreate, type SkuListPromotionRuleSort, type SkuListPromotionRuleUpdate, SkuListPromotionRules, type SkuListSort, type SkuListUpdate, SkuLists, type SkuOption, type SkuOptionCreate, type SkuOptionSort, type SkuOptionUpdate, SkuOptions, type SkuSort, type SkuUpdate, Skus, type StockItem, type StockItemCreate, type StockItemSort, type StockItemUpdate, StockItems, type StockLineItem, type StockLineItemCreate, type StockLineItemSort, type StockLineItemUpdate, StockLineItems, type StockLocation, type StockLocationCreate, type StockLocationSort, type StockLocationUpdate, StockLocations, type StockReservation, type StockReservationCreate, type StockReservationSort, type StockReservationUpdate, StockReservations, type StockTransfer, type StockTransferCreate, type StockTransferSort, type StockTransferUpdate, StockTransfers, type Store, type StoreCreate, type StoreSort, type StoreUpdate, Stores, type StripeGateway, type StripeGatewayCreate, type StripeGatewaySort, type StripeGatewayUpdate, StripeGateways, type StripePayment, type StripePaymentCreate, type StripePaymentSort, type StripePaymentUpdate, StripePayments, type SubscriptionModel, type SubscriptionModelCreate, type SubscriptionModelSort, type SubscriptionModelUpdate, SubscriptionModels, type Tag, type TagCreate, type TagSort, type TagUpdate, type TaggableResource, type TaggableResourceType, Tags, type TaxCalculator, type TaxCalculatorSort, TaxCalculators, TaxCategories, type TaxCategory, type TaxCategoryCreate, type TaxCategorySort, type TaxCategoryUpdate, type TaxRule, type TaxRuleCreate, type TaxRuleSort, type TaxRuleUpdate, TaxRules, type TaxjarAccount, type TaxjarAccountCreate, type TaxjarAccountSort, type TaxjarAccountUpdate, TaxjarAccounts, type Transaction, type TransactionSort, Transactions, type UpdatableResource, type UpdatableResourceType, type Version, type VersionSort, type VersionableResource, type VersionableResourceType, Versions, type Void, type VoidSort, type VoidUpdate, Voids, type Webhook, type WebhookCreate, type WebhookSort, type WebhookUpdate, Webhooks, type WireTransfer, type WireTransferCreate, type WireTransferSort, type WireTransferUpdate, WireTransfers, apiResourceAdapter, CommerceLayer as default, generateQueryStringParams, generateSearchString, isParamsList, resourceList, singletonList };
|