@shoplygg/node 0.11.3 → 0.11.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generated/api.d.ts +160 -25
- package/index.js +1 -1
- package/package.json +1 -1
package/generated/api.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export type KeyShowResult = {
|
|
|
20
20
|
createdAt: string;
|
|
21
21
|
lastUsedAt: unknown;
|
|
22
22
|
revokedAt: unknown;
|
|
23
|
+
version: string;
|
|
23
24
|
};
|
|
24
25
|
app: unknown;
|
|
25
26
|
store: {
|
|
@@ -44,6 +45,7 @@ export type KeyDestroyResult = {
|
|
|
44
45
|
createdAt: string;
|
|
45
46
|
lastUsedAt: string;
|
|
46
47
|
revokedAt: string;
|
|
48
|
+
version: string;
|
|
47
49
|
};
|
|
48
50
|
|
|
49
51
|
/** What get the store answers: `store.show`. */
|
|
@@ -613,6 +615,7 @@ export type AnalyticsOverviewResult = {
|
|
|
613
615
|
inProgress: boolean;
|
|
614
616
|
};
|
|
615
617
|
currencyCode: string;
|
|
618
|
+
otherCurrencies: unknown[] | Record<string, unknown>;
|
|
616
619
|
totals: {
|
|
617
620
|
revenue: number;
|
|
618
621
|
orders: number;
|
|
@@ -1569,6 +1572,7 @@ export type RoutingShowResult = {
|
|
|
1569
1572
|
guardDeclines: number;
|
|
1570
1573
|
guardWindow: number;
|
|
1571
1574
|
disputeAlert: number;
|
|
1575
|
+
version: string;
|
|
1572
1576
|
};
|
|
1573
1577
|
processors: {
|
|
1574
1578
|
provider: string;
|
|
@@ -1586,6 +1590,7 @@ export type RoutingShowResult = {
|
|
|
1586
1590
|
approved: unknown;
|
|
1587
1591
|
disputes: unknown;
|
|
1588
1592
|
fee: unknown;
|
|
1593
|
+
version: string;
|
|
1589
1594
|
}[];
|
|
1590
1595
|
rules: {
|
|
1591
1596
|
id: string;
|
|
@@ -1595,6 +1600,7 @@ export type RoutingShowResult = {
|
|
|
1595
1600
|
amount: unknown;
|
|
1596
1601
|
action: string;
|
|
1597
1602
|
provider: string;
|
|
1603
|
+
version: string;
|
|
1598
1604
|
}[];
|
|
1599
1605
|
available: unknown[] | Record<string, unknown>;
|
|
1600
1606
|
figures: {
|
|
@@ -1649,6 +1655,7 @@ export type RoutingUpdateResult = {
|
|
|
1649
1655
|
guardDeclines: number;
|
|
1650
1656
|
guardWindow: number;
|
|
1651
1657
|
disputeAlert: number;
|
|
1658
|
+
version: string;
|
|
1652
1659
|
};
|
|
1653
1660
|
processors: {
|
|
1654
1661
|
provider: string;
|
|
@@ -1666,6 +1673,7 @@ export type RoutingUpdateResult = {
|
|
|
1666
1673
|
approved: unknown;
|
|
1667
1674
|
disputes: unknown;
|
|
1668
1675
|
fee: unknown;
|
|
1676
|
+
version: string;
|
|
1669
1677
|
}[];
|
|
1670
1678
|
rules: {
|
|
1671
1679
|
id: string;
|
|
@@ -1675,6 +1683,7 @@ export type RoutingUpdateResult = {
|
|
|
1675
1683
|
amount: unknown;
|
|
1676
1684
|
action: string;
|
|
1677
1685
|
provider: string;
|
|
1686
|
+
version: string;
|
|
1678
1687
|
}[];
|
|
1679
1688
|
available: unknown[] | Record<string, unknown>;
|
|
1680
1689
|
figures: {
|
|
@@ -1715,6 +1724,7 @@ export type RoutingAddProcessorResult = {
|
|
|
1715
1724
|
guardDeclines: number;
|
|
1716
1725
|
guardWindow: number;
|
|
1717
1726
|
disputeAlert: number;
|
|
1727
|
+
version: string;
|
|
1718
1728
|
};
|
|
1719
1729
|
processors: {
|
|
1720
1730
|
provider: string;
|
|
@@ -1732,6 +1742,7 @@ export type RoutingAddProcessorResult = {
|
|
|
1732
1742
|
approved: unknown;
|
|
1733
1743
|
disputes: unknown;
|
|
1734
1744
|
fee: unknown;
|
|
1745
|
+
version: string;
|
|
1735
1746
|
}[];
|
|
1736
1747
|
rules: unknown[] | Record<string, unknown>;
|
|
1737
1748
|
available: {
|
|
@@ -1785,6 +1796,7 @@ export type RoutingUpdateProcessorResult = {
|
|
|
1785
1796
|
guardDeclines: number;
|
|
1786
1797
|
guardWindow: number;
|
|
1787
1798
|
disputeAlert: number;
|
|
1799
|
+
version: string;
|
|
1788
1800
|
};
|
|
1789
1801
|
processors: {
|
|
1790
1802
|
provider: string;
|
|
@@ -1802,6 +1814,7 @@ export type RoutingUpdateProcessorResult = {
|
|
|
1802
1814
|
approved: unknown;
|
|
1803
1815
|
disputes: unknown;
|
|
1804
1816
|
fee: unknown;
|
|
1817
|
+
version: string;
|
|
1805
1818
|
}[];
|
|
1806
1819
|
rules: unknown[] | Record<string, unknown>;
|
|
1807
1820
|
available: unknown[] | Record<string, unknown>;
|
|
@@ -1837,6 +1850,7 @@ export type RoutingRemoveProcessorResult = {
|
|
|
1837
1850
|
guardDeclines: number;
|
|
1838
1851
|
guardWindow: number;
|
|
1839
1852
|
disputeAlert: number;
|
|
1853
|
+
version: string;
|
|
1840
1854
|
};
|
|
1841
1855
|
processors: {
|
|
1842
1856
|
provider: string;
|
|
@@ -1854,6 +1868,7 @@ export type RoutingRemoveProcessorResult = {
|
|
|
1854
1868
|
approved: unknown;
|
|
1855
1869
|
disputes: unknown;
|
|
1856
1870
|
fee: unknown;
|
|
1871
|
+
version: string;
|
|
1857
1872
|
}[];
|
|
1858
1873
|
rules: unknown[] | Record<string, unknown>;
|
|
1859
1874
|
available: {
|
|
@@ -1893,6 +1908,7 @@ export type RoutingResumeProcessorResult = {
|
|
|
1893
1908
|
guardDeclines: number;
|
|
1894
1909
|
guardWindow: number;
|
|
1895
1910
|
disputeAlert: number;
|
|
1911
|
+
version: string;
|
|
1896
1912
|
};
|
|
1897
1913
|
processors: {
|
|
1898
1914
|
provider: string;
|
|
@@ -1910,6 +1926,7 @@ export type RoutingResumeProcessorResult = {
|
|
|
1910
1926
|
approved: unknown;
|
|
1911
1927
|
disputes: unknown;
|
|
1912
1928
|
fee: unknown;
|
|
1929
|
+
version: string;
|
|
1913
1930
|
}[];
|
|
1914
1931
|
rules: {
|
|
1915
1932
|
id: string;
|
|
@@ -1919,6 +1936,7 @@ export type RoutingResumeProcessorResult = {
|
|
|
1919
1936
|
amount: unknown;
|
|
1920
1937
|
action: string;
|
|
1921
1938
|
provider: string;
|
|
1939
|
+
version: string;
|
|
1922
1940
|
}[];
|
|
1923
1941
|
available: unknown[] | Record<string, unknown>;
|
|
1924
1942
|
figures: {
|
|
@@ -1959,6 +1977,7 @@ export type RoutingSortProcessorsResult = {
|
|
|
1959
1977
|
guardDeclines: number;
|
|
1960
1978
|
guardWindow: number;
|
|
1961
1979
|
disputeAlert: number;
|
|
1980
|
+
version: string;
|
|
1962
1981
|
};
|
|
1963
1982
|
processors: {
|
|
1964
1983
|
provider: string;
|
|
@@ -1976,6 +1995,7 @@ export type RoutingSortProcessorsResult = {
|
|
|
1976
1995
|
approved: unknown;
|
|
1977
1996
|
disputes: unknown;
|
|
1978
1997
|
fee: unknown;
|
|
1998
|
+
version: string;
|
|
1979
1999
|
}[];
|
|
1980
2000
|
rules: unknown[] | Record<string, unknown>;
|
|
1981
2001
|
available: unknown[] | Record<string, unknown>;
|
|
@@ -2027,6 +2047,7 @@ export type RoutingAddRuleResult = {
|
|
|
2027
2047
|
guardDeclines: number;
|
|
2028
2048
|
guardWindow: number;
|
|
2029
2049
|
disputeAlert: number;
|
|
2050
|
+
version: string;
|
|
2030
2051
|
};
|
|
2031
2052
|
processors: {
|
|
2032
2053
|
provider: string;
|
|
@@ -2044,6 +2065,7 @@ export type RoutingAddRuleResult = {
|
|
|
2044
2065
|
approved: unknown;
|
|
2045
2066
|
disputes: unknown;
|
|
2046
2067
|
fee: unknown;
|
|
2068
|
+
version: string;
|
|
2047
2069
|
}[];
|
|
2048
2070
|
rules: Array<{
|
|
2049
2071
|
id: string;
|
|
@@ -2053,6 +2075,7 @@ export type RoutingAddRuleResult = {
|
|
|
2053
2075
|
amount: number;
|
|
2054
2076
|
action: string;
|
|
2055
2077
|
provider: string;
|
|
2078
|
+
version: string;
|
|
2056
2079
|
}>;
|
|
2057
2080
|
available: unknown[] | Record<string, unknown>;
|
|
2058
2081
|
figures: {
|
|
@@ -2103,6 +2126,7 @@ export type RoutingUpdateRuleResult = {
|
|
|
2103
2126
|
guardDeclines: number;
|
|
2104
2127
|
guardWindow: number;
|
|
2105
2128
|
disputeAlert: number;
|
|
2129
|
+
version: string;
|
|
2106
2130
|
};
|
|
2107
2131
|
processors: {
|
|
2108
2132
|
provider: string;
|
|
@@ -2120,6 +2144,7 @@ export type RoutingUpdateRuleResult = {
|
|
|
2120
2144
|
approved: unknown;
|
|
2121
2145
|
disputes: unknown;
|
|
2122
2146
|
fee: unknown;
|
|
2147
|
+
version: string;
|
|
2123
2148
|
}[];
|
|
2124
2149
|
rules: {
|
|
2125
2150
|
id: string;
|
|
@@ -2129,6 +2154,7 @@ export type RoutingUpdateRuleResult = {
|
|
|
2129
2154
|
amount: unknown;
|
|
2130
2155
|
action: string;
|
|
2131
2156
|
provider: string;
|
|
2157
|
+
version: string;
|
|
2132
2158
|
}[];
|
|
2133
2159
|
available: unknown[] | Record<string, unknown>;
|
|
2134
2160
|
figures: {
|
|
@@ -2163,6 +2189,7 @@ export type RoutingDeleteRuleResult = {
|
|
|
2163
2189
|
guardDeclines: number;
|
|
2164
2190
|
guardWindow: number;
|
|
2165
2191
|
disputeAlert: number;
|
|
2192
|
+
version: string;
|
|
2166
2193
|
};
|
|
2167
2194
|
processors: {
|
|
2168
2195
|
provider: string;
|
|
@@ -2180,6 +2207,7 @@ export type RoutingDeleteRuleResult = {
|
|
|
2180
2207
|
approved: unknown;
|
|
2181
2208
|
disputes: unknown;
|
|
2182
2209
|
fee: unknown;
|
|
2210
|
+
version: string;
|
|
2183
2211
|
}[];
|
|
2184
2212
|
rules: unknown[] | Record<string, unknown>;
|
|
2185
2213
|
available: unknown[] | Record<string, unknown>;
|
|
@@ -2221,6 +2249,7 @@ export type RoutingSortRulesResult = {
|
|
|
2221
2249
|
guardDeclines: number;
|
|
2222
2250
|
guardWindow: number;
|
|
2223
2251
|
disputeAlert: number;
|
|
2252
|
+
version: string;
|
|
2224
2253
|
};
|
|
2225
2254
|
processors: {
|
|
2226
2255
|
provider: string;
|
|
@@ -2238,6 +2267,7 @@ export type RoutingSortRulesResult = {
|
|
|
2238
2267
|
approved: unknown;
|
|
2239
2268
|
disputes: unknown;
|
|
2240
2269
|
fee: unknown;
|
|
2270
|
+
version: string;
|
|
2241
2271
|
}[];
|
|
2242
2272
|
rules: {
|
|
2243
2273
|
id: string;
|
|
@@ -2247,6 +2277,7 @@ export type RoutingSortRulesResult = {
|
|
|
2247
2277
|
amount: unknown;
|
|
2248
2278
|
action: string;
|
|
2249
2279
|
provider: string;
|
|
2280
|
+
version: string;
|
|
2250
2281
|
}[];
|
|
2251
2282
|
available: unknown[] | Record<string, unknown>;
|
|
2252
2283
|
figures: {
|
|
@@ -2281,6 +2312,7 @@ export type CustomMethodsListResult = {
|
|
|
2281
2312
|
asksProof: boolean;
|
|
2282
2313
|
requiresPicture: boolean;
|
|
2283
2314
|
enabled: boolean;
|
|
2315
|
+
version: string;
|
|
2284
2316
|
}[];
|
|
2285
2317
|
|
|
2286
2318
|
/** What create a custom payment method takes: `customMethods.create`. */
|
|
@@ -2315,6 +2347,7 @@ export type CustomMethodsCreateResult = {
|
|
|
2315
2347
|
asksProof: boolean;
|
|
2316
2348
|
requiresPicture: boolean;
|
|
2317
2349
|
enabled: boolean;
|
|
2350
|
+
version: string;
|
|
2318
2351
|
};
|
|
2319
2352
|
|
|
2320
2353
|
/** What update a custom payment method takes: `customMethods.update`. */
|
|
@@ -2349,6 +2382,7 @@ export type CustomMethodsUpdateResult = {
|
|
|
2349
2382
|
asksProof: boolean;
|
|
2350
2383
|
requiresPicture: boolean;
|
|
2351
2384
|
enabled: boolean;
|
|
2385
|
+
version: string;
|
|
2352
2386
|
}[];
|
|
2353
2387
|
|
|
2354
2388
|
/** What delete a custom payment method answers: `customMethods.delete`. */
|
|
@@ -2363,6 +2397,7 @@ export type CustomMethodsDeleteResult = {
|
|
|
2363
2397
|
asksProof: boolean;
|
|
2364
2398
|
requiresPicture: boolean;
|
|
2365
2399
|
enabled: boolean;
|
|
2400
|
+
version: string;
|
|
2366
2401
|
}[];
|
|
2367
2402
|
|
|
2368
2403
|
/** What switch a custom payment method on or off takes: `customMethods.setEnabled`. */
|
|
@@ -2383,6 +2418,7 @@ export type CustomMethodsSetEnabledResult = {
|
|
|
2383
2418
|
asksProof: boolean;
|
|
2384
2419
|
requiresPicture: boolean;
|
|
2385
2420
|
enabled: boolean;
|
|
2421
|
+
version: string;
|
|
2386
2422
|
}[];
|
|
2387
2423
|
|
|
2388
2424
|
/** What sort custom payment methods takes: `customMethods.sort`. */
|
|
@@ -2403,6 +2439,7 @@ export type CustomMethodsSortResult = {
|
|
|
2403
2439
|
asksProof: boolean;
|
|
2404
2440
|
requiresPicture: boolean;
|
|
2405
2441
|
enabled: boolean;
|
|
2442
|
+
version: string;
|
|
2406
2443
|
}[];
|
|
2407
2444
|
|
|
2408
2445
|
/** What upload a custom payment method's icon answers: `customMethods.uploadIcon`. */
|
|
@@ -3742,6 +3779,7 @@ export type SubscriptionsSettingsResult = {
|
|
|
3742
3779
|
autoOn: boolean;
|
|
3743
3780
|
cardChangeOn: boolean;
|
|
3744
3781
|
chargeTries: number;
|
|
3782
|
+
version: string;
|
|
3745
3783
|
};
|
|
3746
3784
|
|
|
3747
3785
|
/** What change subscription settings takes: `subscriptions.updateSettings`. */
|
|
@@ -3789,6 +3827,7 @@ export type SubscriptionsUpdateSettingsResult = {
|
|
|
3789
3827
|
autoOn: boolean;
|
|
3790
3828
|
cardChangeOn: boolean;
|
|
3791
3829
|
chargeTries: number;
|
|
3830
|
+
version: string;
|
|
3792
3831
|
};
|
|
3793
3832
|
|
|
3794
3833
|
/** What list subscription plans answers: `subscriptions.plans`. */
|
|
@@ -3802,6 +3841,7 @@ export type SubscriptionsPlansResult = {
|
|
|
3802
3841
|
unit: string;
|
|
3803
3842
|
running: number;
|
|
3804
3843
|
automatic: number;
|
|
3844
|
+
version: string;
|
|
3805
3845
|
}[];
|
|
3806
3846
|
|
|
3807
3847
|
/** What sell options as subscriptions takes: `subscriptions.savePlans`. */
|
|
@@ -3828,6 +3868,7 @@ export type SubscriptionsSavePlansResult = {
|
|
|
3828
3868
|
unit: string;
|
|
3829
3869
|
running: number;
|
|
3830
3870
|
automatic: number;
|
|
3871
|
+
version: string;
|
|
3831
3872
|
}[];
|
|
3832
3873
|
|
|
3833
3874
|
/** What sell an option once again answers: `subscriptions.removePlan`. */
|
|
@@ -4380,6 +4421,7 @@ export type OrdersShowResult = {
|
|
|
4380
4421
|
customerTotals: {
|
|
4381
4422
|
totalOrders: number;
|
|
4382
4423
|
totalSpend: number;
|
|
4424
|
+
otherSpend: unknown[] | Record<string, unknown>;
|
|
4383
4425
|
paidOrders: number;
|
|
4384
4426
|
};
|
|
4385
4427
|
customerOrders: {
|
|
@@ -5386,6 +5428,7 @@ export type BlogListResult = {
|
|
|
5386
5428
|
path: string;
|
|
5387
5429
|
description: string;
|
|
5388
5430
|
imageUrl: unknown;
|
|
5431
|
+
version: string;
|
|
5389
5432
|
posts: {
|
|
5390
5433
|
id: string;
|
|
5391
5434
|
categoryId: string;
|
|
@@ -5418,6 +5461,7 @@ export type BlogCategoriesCreateResult = {
|
|
|
5418
5461
|
path: string;
|
|
5419
5462
|
description: string;
|
|
5420
5463
|
imageUrl: unknown;
|
|
5464
|
+
version: string;
|
|
5421
5465
|
posts: unknown[] | Record<string, unknown>;
|
|
5422
5466
|
};
|
|
5423
5467
|
|
|
@@ -5439,6 +5483,7 @@ export type BlogCategoriesUpdateResult = {
|
|
|
5439
5483
|
path: string;
|
|
5440
5484
|
description: string;
|
|
5441
5485
|
imageUrl: unknown;
|
|
5486
|
+
version: string;
|
|
5442
5487
|
};
|
|
5443
5488
|
|
|
5444
5489
|
/** What delete a blog category answers: `blogCategories.delete`. */
|
|
@@ -5498,6 +5543,7 @@ export type BlogPostsCreateResult = {
|
|
|
5498
5543
|
text: string;
|
|
5499
5544
|
}[];
|
|
5500
5545
|
};
|
|
5546
|
+
version: string;
|
|
5501
5547
|
};
|
|
5502
5548
|
|
|
5503
5549
|
/** What get a blog post answers: `blogPosts.show`. */
|
|
@@ -5526,6 +5572,7 @@ export type BlogPostsShowResult = {
|
|
|
5526
5572
|
text: string;
|
|
5527
5573
|
}[];
|
|
5528
5574
|
};
|
|
5575
|
+
version: string;
|
|
5529
5576
|
};
|
|
5530
5577
|
|
|
5531
5578
|
/** What update a blog post takes: `blogPosts.update`. */
|
|
@@ -5574,6 +5621,7 @@ export type BlogPostsUpdateResult = {
|
|
|
5574
5621
|
text: string;
|
|
5575
5622
|
}[];
|
|
5576
5623
|
};
|
|
5624
|
+
version: string;
|
|
5577
5625
|
};
|
|
5578
5626
|
|
|
5579
5627
|
/** What delete a blog post answers: `blogPosts.delete`. */
|
|
@@ -5634,6 +5682,7 @@ export type SeoShowResult = {
|
|
|
5634
5682
|
measurementId: string;
|
|
5635
5683
|
hasSecret: boolean;
|
|
5636
5684
|
};
|
|
5685
|
+
version: string;
|
|
5637
5686
|
};
|
|
5638
5687
|
|
|
5639
5688
|
/** What update search settings takes: `seo.update`. */
|
|
@@ -5662,6 +5711,7 @@ export type SeoUpdateResult = {
|
|
|
5662
5711
|
measurementId: string;
|
|
5663
5712
|
hasSecret: boolean;
|
|
5664
5713
|
};
|
|
5714
|
+
version: string;
|
|
5665
5715
|
};
|
|
5666
5716
|
|
|
5667
5717
|
/** What list redirects and broken links answers: `redirects.list`. */
|
|
@@ -5672,6 +5722,7 @@ export type RedirectsListResult = {
|
|
|
5672
5722
|
hits: number;
|
|
5673
5723
|
createdAt: string;
|
|
5674
5724
|
live: boolean;
|
|
5725
|
+
version: string;
|
|
5675
5726
|
}[];
|
|
5676
5727
|
|
|
5677
5728
|
/** What create a redirect takes: `redirects.create`. */
|
|
@@ -5690,6 +5741,7 @@ export type RedirectsCreateResult = {
|
|
|
5690
5741
|
hits: number;
|
|
5691
5742
|
createdAt: string;
|
|
5692
5743
|
live: boolean;
|
|
5744
|
+
version: string;
|
|
5693
5745
|
}[];
|
|
5694
5746
|
|
|
5695
5747
|
/** What update a redirect takes: `redirects.update`. */
|
|
@@ -5708,6 +5760,7 @@ export type RedirectsUpdateResult = {
|
|
|
5708
5760
|
hits: number;
|
|
5709
5761
|
createdAt: string;
|
|
5710
5762
|
live: boolean;
|
|
5763
|
+
version: string;
|
|
5711
5764
|
}[];
|
|
5712
5765
|
|
|
5713
5766
|
/** What delete a redirect answers: `redirects.delete`. */
|
|
@@ -5735,6 +5788,7 @@ export type SitemapShowResult = {
|
|
|
5735
5788
|
listed: boolean;
|
|
5736
5789
|
priority: string;
|
|
5737
5790
|
changefreq: string;
|
|
5791
|
+
version: string;
|
|
5738
5792
|
entries: {
|
|
5739
5793
|
ref: string;
|
|
5740
5794
|
name: string;
|
|
@@ -5743,6 +5797,7 @@ export type SitemapShowResult = {
|
|
|
5743
5797
|
on: boolean;
|
|
5744
5798
|
priority: string;
|
|
5745
5799
|
changefreq: string;
|
|
5800
|
+
version: string;
|
|
5746
5801
|
}[];
|
|
5747
5802
|
}[];
|
|
5748
5803
|
};
|
|
@@ -5770,6 +5825,7 @@ export type SitemapUpdateKindResult = {
|
|
|
5770
5825
|
listed: boolean;
|
|
5771
5826
|
priority: string;
|
|
5772
5827
|
changefreq: string;
|
|
5828
|
+
version: string;
|
|
5773
5829
|
entries: {
|
|
5774
5830
|
ref: string;
|
|
5775
5831
|
name: string;
|
|
@@ -5778,6 +5834,7 @@ export type SitemapUpdateKindResult = {
|
|
|
5778
5834
|
on: boolean;
|
|
5779
5835
|
priority: string;
|
|
5780
5836
|
changefreq: string;
|
|
5837
|
+
version: string;
|
|
5781
5838
|
}[];
|
|
5782
5839
|
}[];
|
|
5783
5840
|
};
|
|
@@ -5828,6 +5885,7 @@ export type CartRecoveryShowResult = {
|
|
|
5828
5885
|
secondMinutes: number;
|
|
5829
5886
|
secondSubject: string;
|
|
5830
5887
|
secondPercent: number;
|
|
5888
|
+
version: string;
|
|
5831
5889
|
};
|
|
5832
5890
|
|
|
5833
5891
|
/** What change Cart Recovery takes: `cartRecovery.update`. */
|
|
@@ -5869,6 +5927,7 @@ export type CartRecoveryUpdateResult = {
|
|
|
5869
5927
|
secondMinutes: number;
|
|
5870
5928
|
secondSubject: string;
|
|
5871
5929
|
secondPercent: number;
|
|
5930
|
+
version: string;
|
|
5872
5931
|
};
|
|
5873
5932
|
|
|
5874
5933
|
/** What list carts takes: `cartRecovery.carts`. */
|
|
@@ -5964,6 +6023,7 @@ export type WinBackShowResult = {
|
|
|
5964
6023
|
secondSubject: string;
|
|
5965
6024
|
secondPercent: number;
|
|
5966
6025
|
audience: string;
|
|
6026
|
+
version: string;
|
|
5967
6027
|
};
|
|
5968
6028
|
|
|
5969
6029
|
/** What change Win-Back takes: `winBack.update`. */
|
|
@@ -5999,6 +6059,7 @@ export type WinBackUpdateResult = {
|
|
|
5999
6059
|
secondSubject: string;
|
|
6000
6060
|
secondPercent: number;
|
|
6001
6061
|
audience: string;
|
|
6062
|
+
version: string;
|
|
6002
6063
|
};
|
|
6003
6064
|
|
|
6004
6065
|
/** What list Win-Back buyers takes: `winBack.buyers`. */
|
|
@@ -6395,6 +6456,7 @@ export type CustomersListItem = {
|
|
|
6395
6456
|
dateCreated: string;
|
|
6396
6457
|
totalOrders: number;
|
|
6397
6458
|
totalSpend: number;
|
|
6459
|
+
otherSpend: unknown[] | Record<string, unknown>;
|
|
6398
6460
|
paidOrders: number;
|
|
6399
6461
|
lastOrderAt: unknown;
|
|
6400
6462
|
balance: number;
|
|
@@ -6420,6 +6482,7 @@ export type CustomersCreateResult = {
|
|
|
6420
6482
|
dateCreated: string;
|
|
6421
6483
|
totalOrders: number;
|
|
6422
6484
|
totalSpend: number;
|
|
6485
|
+
otherSpend: unknown[] | Record<string, unknown>;
|
|
6423
6486
|
paidOrders: number;
|
|
6424
6487
|
lastOrderAt: unknown;
|
|
6425
6488
|
balance: number;
|
|
@@ -6526,7 +6589,9 @@ export type CustomersShowResult = {
|
|
|
6526
6589
|
dateCreated: string;
|
|
6527
6590
|
totalOrders: number;
|
|
6528
6591
|
totalSpend: number;
|
|
6592
|
+
otherSpend: unknown[] | Record<string, unknown>;
|
|
6529
6593
|
paidOrders: number;
|
|
6594
|
+
paidInCurrency: number;
|
|
6530
6595
|
lastOrderAt: unknown;
|
|
6531
6596
|
currencyCode: string;
|
|
6532
6597
|
ordersTruncated: boolean;
|
|
@@ -6733,6 +6798,7 @@ export type CustomerTagsListResult = {
|
|
|
6733
6798
|
automatic: boolean;
|
|
6734
6799
|
customers: number;
|
|
6735
6800
|
coupons: number;
|
|
6801
|
+
version: string;
|
|
6736
6802
|
}[];
|
|
6737
6803
|
|
|
6738
6804
|
/** What add a customer tag takes: `customerTags.create`. */
|
|
@@ -6753,13 +6819,14 @@ export type CustomerTagsCreateResult = {
|
|
|
6753
6819
|
name: string;
|
|
6754
6820
|
tone: string;
|
|
6755
6821
|
automatic: boolean;
|
|
6822
|
+
version: string;
|
|
6756
6823
|
};
|
|
6757
6824
|
|
|
6758
6825
|
/** What change VIP and Disputed Before takes: `customerTags.automatic`. */
|
|
6759
6826
|
export interface CustomerTagsAutomaticParams {
|
|
6760
6827
|
/** Whether VIP is put on. */
|
|
6761
6828
|
vipOn?: boolean;
|
|
6762
|
-
/** A VIP has spent at least this
|
|
6829
|
+
/** A VIP has spent at least this on completed orders in the store's currency today, as `totalSpend` counts it: what a buyer paid in another is not counted. 0 leaves it out. */
|
|
6763
6830
|
vipSpent?: number;
|
|
6764
6831
|
/** Or paid for at least this many orders. 0 leaves it out. */
|
|
6765
6832
|
vipOrders?: number;
|
|
@@ -6777,6 +6844,7 @@ export type CustomerTagsAutomaticResult = {
|
|
|
6777
6844
|
automatic: boolean;
|
|
6778
6845
|
customers: number;
|
|
6779
6846
|
coupons: number;
|
|
6847
|
+
version: string;
|
|
6780
6848
|
}[];
|
|
6781
6849
|
|
|
6782
6850
|
/** What change a customer tag takes: `customerTags.update`. */
|
|
@@ -6793,6 +6861,7 @@ export type CustomerTagsUpdateResult = {
|
|
|
6793
6861
|
name: string;
|
|
6794
6862
|
tone: string;
|
|
6795
6863
|
automatic: boolean;
|
|
6864
|
+
version: string;
|
|
6796
6865
|
};
|
|
6797
6866
|
|
|
6798
6867
|
/** What delete a customer tag answers: `customerTags.delete`. */
|
|
@@ -6843,6 +6912,7 @@ export type AffiliatesListResult = {
|
|
|
6843
6912
|
paidAsCredit: number;
|
|
6844
6913
|
joinedThemselves: boolean;
|
|
6845
6914
|
dateCreated: string;
|
|
6915
|
+
version: string;
|
|
6846
6916
|
}[];
|
|
6847
6917
|
|
|
6848
6918
|
/** What create an affiliate takes: `affiliates.create`. */
|
|
@@ -6883,6 +6953,7 @@ export type AffiliatesCreateResult = {
|
|
|
6883
6953
|
paidAsCredit: number;
|
|
6884
6954
|
joinedThemselves: boolean;
|
|
6885
6955
|
dateCreated: string;
|
|
6956
|
+
version: string;
|
|
6886
6957
|
};
|
|
6887
6958
|
|
|
6888
6959
|
/** What update an affiliate takes: `affiliates.update`. */
|
|
@@ -6921,6 +6992,7 @@ export type AffiliatesUpdateResult = {
|
|
|
6921
6992
|
paidAsCredit: number;
|
|
6922
6993
|
joinedThemselves: boolean;
|
|
6923
6994
|
dateCreated: string;
|
|
6995
|
+
version: string;
|
|
6924
6996
|
};
|
|
6925
6997
|
|
|
6926
6998
|
/** What delete an affiliate answers: `affiliates.delete`. */
|
|
@@ -6943,6 +7015,7 @@ export type AffiliatesDeleteResult = {
|
|
|
6943
7015
|
paidAsCredit: number;
|
|
6944
7016
|
joinedThemselves: boolean;
|
|
6945
7017
|
dateCreated: string;
|
|
7018
|
+
version: string;
|
|
6946
7019
|
}[];
|
|
6947
7020
|
|
|
6948
7021
|
/** What change an affiliate's balance takes: `affiliates.setBalance`. */
|
|
@@ -6975,6 +7048,7 @@ export type AffiliatesSetBalanceResult = {
|
|
|
6975
7048
|
paidAsCredit: number;
|
|
6976
7049
|
joinedThemselves: boolean;
|
|
6977
7050
|
dateCreated: string;
|
|
7051
|
+
version: string;
|
|
6978
7052
|
};
|
|
6979
7053
|
|
|
6980
7054
|
/** What get an affiliate's history answers: `affiliates.history`. */
|
|
@@ -7426,6 +7500,7 @@ export type TeamGetResult = {
|
|
|
7426
7500
|
waiting: number;
|
|
7427
7501
|
createdAt: string;
|
|
7428
7502
|
updatedAt: string;
|
|
7503
|
+
version: string;
|
|
7429
7504
|
}[];
|
|
7430
7505
|
invites: {
|
|
7431
7506
|
id: string;
|
|
@@ -7527,6 +7602,7 @@ export type TeamsCreateResult = {
|
|
|
7527
7602
|
waiting: number;
|
|
7528
7603
|
createdAt: string;
|
|
7529
7604
|
updatedAt: string;
|
|
7605
|
+
version: string;
|
|
7530
7606
|
};
|
|
7531
7607
|
|
|
7532
7608
|
/** What update a team takes: `teams.update`. */
|
|
@@ -7548,6 +7624,7 @@ export type TeamsUpdateResult = {
|
|
|
7548
7624
|
waiting: number;
|
|
7549
7625
|
createdAt: string;
|
|
7550
7626
|
updatedAt: string;
|
|
7627
|
+
version: string;
|
|
7551
7628
|
};
|
|
7552
7629
|
|
|
7553
7630
|
/** What delete a team answers: `teams.delete`. */
|
|
@@ -7672,6 +7749,7 @@ export type ResellersOverviewResult = {
|
|
|
7672
7749
|
lastOrderAt: string;
|
|
7673
7750
|
joinedAt: string;
|
|
7674
7751
|
removedAt: unknown;
|
|
7752
|
+
version: string;
|
|
7675
7753
|
}[];
|
|
7676
7754
|
};
|
|
7677
7755
|
|
|
@@ -7779,7 +7857,7 @@ export interface ResellerProductsBadgesParams {
|
|
|
7779
7857
|
|
|
7780
7858
|
/** What set a product's status and labels on the panel answers: `resellerProducts.badges`. */
|
|
7781
7859
|
export type ResellerProductsBadgesResult = {
|
|
7782
|
-
"
|
|
7860
|
+
"7502259b-6fc7-41f3-9052-c8675b99433a": {
|
|
7783
7861
|
label: string;
|
|
7784
7862
|
color: string;
|
|
7785
7863
|
kind: string;
|
|
@@ -7793,6 +7871,7 @@ export type ResellerTiersListResult = {
|
|
|
7793
7871
|
discount: number;
|
|
7794
7872
|
resellers: number;
|
|
7795
7873
|
spent30: number;
|
|
7874
|
+
version: string;
|
|
7796
7875
|
}[];
|
|
7797
7876
|
|
|
7798
7877
|
/** What create a tier takes: `resellerTiers.create`. */
|
|
@@ -7810,6 +7889,7 @@ export type ResellerTiersCreateResult = {
|
|
|
7810
7889
|
discount: number;
|
|
7811
7890
|
resellers: number;
|
|
7812
7891
|
spent30: number;
|
|
7892
|
+
version: string;
|
|
7813
7893
|
};
|
|
7814
7894
|
|
|
7815
7895
|
/** What update a tier takes: `resellerTiers.update`. */
|
|
@@ -7827,6 +7907,7 @@ export type ResellerTiersUpdateResult = {
|
|
|
7827
7907
|
discount: number;
|
|
7828
7908
|
resellers: number;
|
|
7829
7909
|
spent30: number;
|
|
7910
|
+
version: string;
|
|
7830
7911
|
};
|
|
7831
7912
|
|
|
7832
7913
|
/** What delete a tier answers: `resellerTiers.delete`. */
|
|
@@ -7844,6 +7925,7 @@ export type ResellerInvitesListResult = {
|
|
|
7844
7925
|
endsAt: string;
|
|
7845
7926
|
enabled: boolean;
|
|
7846
7927
|
live: boolean;
|
|
7928
|
+
version: string;
|
|
7847
7929
|
}[];
|
|
7848
7930
|
|
|
7849
7931
|
/** What create an invite link takes: `resellerInvites.create`. */
|
|
@@ -7876,6 +7958,7 @@ export type ResellerInvitesCreateResult = {
|
|
|
7876
7958
|
endsAt: unknown;
|
|
7877
7959
|
enabled: boolean;
|
|
7878
7960
|
live: boolean;
|
|
7961
|
+
version: string;
|
|
7879
7962
|
};
|
|
7880
7963
|
|
|
7881
7964
|
/** What update an invite link takes: `resellerInvites.update`. */
|
|
@@ -7908,6 +7991,7 @@ export type ResellerInvitesUpdateResult = {
|
|
|
7908
7991
|
endsAt: string;
|
|
7909
7992
|
enabled: boolean;
|
|
7910
7993
|
live: boolean;
|
|
7994
|
+
version: string;
|
|
7911
7995
|
};
|
|
7912
7996
|
|
|
7913
7997
|
/** What delete an invite link answers: `resellerInvites.delete`. */
|
|
@@ -7922,6 +8006,7 @@ export type ResellerAnnouncementsListResult = {
|
|
|
7922
8006
|
createdAt: string;
|
|
7923
8007
|
updatedAt: string;
|
|
7924
8008
|
closes: number;
|
|
8009
|
+
version: string;
|
|
7925
8010
|
}[];
|
|
7926
8011
|
|
|
7927
8012
|
/** What post an announcement takes: `resellerAnnouncements.create`. */
|
|
@@ -7947,6 +8032,7 @@ export type ResellerAnnouncementsCreateResult = {
|
|
|
7947
8032
|
createdAt: string;
|
|
7948
8033
|
updatedAt: string;
|
|
7949
8034
|
closes: number;
|
|
8035
|
+
version: string;
|
|
7950
8036
|
};
|
|
7951
8037
|
|
|
7952
8038
|
/** What update an announcement takes: `resellerAnnouncements.update`. */
|
|
@@ -7972,6 +8058,7 @@ export type ResellerAnnouncementsUpdateResult = {
|
|
|
7972
8058
|
createdAt: string;
|
|
7973
8059
|
updatedAt: string;
|
|
7974
8060
|
closes: number;
|
|
8061
|
+
version: string;
|
|
7975
8062
|
};
|
|
7976
8063
|
|
|
7977
8064
|
/** What delete an announcement answers: `resellerAnnouncements.delete`. */
|
|
@@ -8149,6 +8236,7 @@ export type ResellersListResult = {
|
|
|
8149
8236
|
lastOrderAt: unknown;
|
|
8150
8237
|
joinedAt: string;
|
|
8151
8238
|
removedAt: unknown;
|
|
8239
|
+
version: string;
|
|
8152
8240
|
}[];
|
|
8153
8241
|
|
|
8154
8242
|
/** What get a reseller answers: `resellers.get`. */
|
|
@@ -8169,6 +8257,7 @@ export type ResellersGetResult = {
|
|
|
8169
8257
|
lastOrderAt: string;
|
|
8170
8258
|
joinedAt: string;
|
|
8171
8259
|
removedAt: unknown;
|
|
8260
|
+
version: string;
|
|
8172
8261
|
inviteName: unknown;
|
|
8173
8262
|
team: {
|
|
8174
8263
|
id: string;
|
|
@@ -8185,6 +8274,7 @@ export type ResellersGetResult = {
|
|
|
8185
8274
|
verified: boolean;
|
|
8186
8275
|
lastSeenAt: unknown;
|
|
8187
8276
|
joinedAt: string;
|
|
8277
|
+
version: string;
|
|
8188
8278
|
}[];
|
|
8189
8279
|
catalogue: Array<{
|
|
8190
8280
|
id: string;
|
|
@@ -8226,6 +8316,7 @@ export type ResellersUpdateResult = {
|
|
|
8226
8316
|
lastOrderAt: unknown;
|
|
8227
8317
|
joinedAt: string;
|
|
8228
8318
|
removedAt: unknown;
|
|
8319
|
+
version: string;
|
|
8229
8320
|
inviteName: unknown;
|
|
8230
8321
|
team: {
|
|
8231
8322
|
id: string;
|
|
@@ -8242,6 +8333,7 @@ export type ResellersUpdateResult = {
|
|
|
8242
8333
|
verified: boolean;
|
|
8243
8334
|
lastSeenAt: unknown;
|
|
8244
8335
|
joinedAt: string;
|
|
8336
|
+
version: string;
|
|
8245
8337
|
}[];
|
|
8246
8338
|
catalogue: Array<{
|
|
8247
8339
|
id: string;
|
|
@@ -8288,6 +8380,7 @@ export type ResellersSetBalanceResult = {
|
|
|
8288
8380
|
lastOrderAt: unknown;
|
|
8289
8381
|
joinedAt: string;
|
|
8290
8382
|
removedAt: unknown;
|
|
8383
|
+
version: string;
|
|
8291
8384
|
inviteName: unknown;
|
|
8292
8385
|
team: {
|
|
8293
8386
|
id: string;
|
|
@@ -8304,6 +8397,7 @@ export type ResellersSetBalanceResult = {
|
|
|
8304
8397
|
verified: boolean;
|
|
8305
8398
|
lastSeenAt: unknown;
|
|
8306
8399
|
joinedAt: string;
|
|
8400
|
+
version: string;
|
|
8307
8401
|
}[];
|
|
8308
8402
|
catalogue: Array<{
|
|
8309
8403
|
id: string;
|
|
@@ -8341,6 +8435,7 @@ export type ResellersUpdateMemberResult = {
|
|
|
8341
8435
|
lastOrderAt: unknown;
|
|
8342
8436
|
joinedAt: string;
|
|
8343
8437
|
removedAt: unknown;
|
|
8438
|
+
version: string;
|
|
8344
8439
|
inviteName: unknown;
|
|
8345
8440
|
team: {
|
|
8346
8441
|
id: string;
|
|
@@ -8357,6 +8452,7 @@ export type ResellersUpdateMemberResult = {
|
|
|
8357
8452
|
verified: boolean;
|
|
8358
8453
|
lastSeenAt: unknown;
|
|
8359
8454
|
joinedAt: string;
|
|
8455
|
+
version: string;
|
|
8360
8456
|
}[];
|
|
8361
8457
|
catalogue: Array<{
|
|
8362
8458
|
id: string;
|
|
@@ -8388,6 +8484,7 @@ export type ResellersRemoveMemberResult = {
|
|
|
8388
8484
|
lastOrderAt: string;
|
|
8389
8485
|
joinedAt: string;
|
|
8390
8486
|
removedAt: unknown;
|
|
8487
|
+
version: string;
|
|
8391
8488
|
inviteName: unknown;
|
|
8392
8489
|
team: {
|
|
8393
8490
|
id: string;
|
|
@@ -8404,6 +8501,7 @@ export type ResellersRemoveMemberResult = {
|
|
|
8404
8501
|
verified: boolean;
|
|
8405
8502
|
lastSeenAt: unknown;
|
|
8406
8503
|
joinedAt: string;
|
|
8504
|
+
version: string;
|
|
8407
8505
|
}[];
|
|
8408
8506
|
catalogue: Array<{
|
|
8409
8507
|
id: string;
|
|
@@ -9323,6 +9421,7 @@ export type DisputesSettingsResult = {
|
|
|
9323
9421
|
discordRoles: string;
|
|
9324
9422
|
discordRolesBack: boolean;
|
|
9325
9423
|
currency: string;
|
|
9424
|
+
version: string;
|
|
9326
9425
|
};
|
|
9327
9426
|
|
|
9328
9427
|
/** What change dispute settings takes: `disputes.updateSettings`. */
|
|
@@ -9368,6 +9467,7 @@ export type DisputesUpdateSettingsResult = {
|
|
|
9368
9467
|
discordRoles: string;
|
|
9369
9468
|
discordRolesBack: boolean;
|
|
9370
9469
|
currency: string;
|
|
9470
|
+
version: string;
|
|
9371
9471
|
};
|
|
9372
9472
|
|
|
9373
9473
|
/** What get finance access answers: `finance.access`. */
|
|
@@ -9467,6 +9567,11 @@ export type FinanceProfitResult = {
|
|
|
9467
9567
|
profit: unknown;
|
|
9468
9568
|
costSet: string;
|
|
9469
9569
|
}[];
|
|
9570
|
+
otherCurrencies: unknown[] | Record<string, unknown>;
|
|
9571
|
+
unknownExpenses: {
|
|
9572
|
+
count: number;
|
|
9573
|
+
total: number;
|
|
9574
|
+
};
|
|
9470
9575
|
};
|
|
9471
9576
|
|
|
9472
9577
|
/** What get the books takes: `finance.accounting`. */
|
|
@@ -9528,6 +9633,11 @@ export type FinanceAccountingResult = {
|
|
|
9528
9633
|
orders: number;
|
|
9529
9634
|
expenses: number;
|
|
9530
9635
|
};
|
|
9636
|
+
others: unknown[] | Record<string, unknown>;
|
|
9637
|
+
unknownExpenses: {
|
|
9638
|
+
count: number;
|
|
9639
|
+
total: number;
|
|
9640
|
+
};
|
|
9531
9641
|
countries: {
|
|
9532
9642
|
country: string;
|
|
9533
9643
|
name: string;
|
|
@@ -9545,9 +9655,11 @@ export type FinanceAccountingResult = {
|
|
|
9545
9655
|
net: number;
|
|
9546
9656
|
}[];
|
|
9547
9657
|
taxReport: {
|
|
9658
|
+
currency: string;
|
|
9548
9659
|
rows: unknown[] | Record<string, unknown>;
|
|
9549
9660
|
taxable: number;
|
|
9550
9661
|
tax: number;
|
|
9662
|
+
others: unknown[] | Record<string, unknown>;
|
|
9551
9663
|
};
|
|
9552
9664
|
};
|
|
9553
9665
|
|
|
@@ -9605,6 +9717,7 @@ export type FinancePaymentCostsResult = {
|
|
|
9605
9717
|
percent: number;
|
|
9606
9718
|
fixed: number;
|
|
9607
9719
|
};
|
|
9720
|
+
version: string;
|
|
9608
9721
|
};
|
|
9609
9722
|
|
|
9610
9723
|
/** What set payment fee rates takes: `finance.setPaymentCosts`. */
|
|
@@ -9907,6 +10020,8 @@ export type TaxShowResult = {
|
|
|
9907
10020
|
};
|
|
9908
10021
|
limit: number;
|
|
9909
10022
|
maxRate: number;
|
|
10023
|
+
version: string;
|
|
10024
|
+
ratesVersion: string;
|
|
9910
10025
|
};
|
|
9911
10026
|
|
|
9912
10027
|
/** What update tax settings takes: `tax.update`. */
|
|
@@ -10190,6 +10305,8 @@ export type TaxUpdateResult = {
|
|
|
10190
10305
|
};
|
|
10191
10306
|
limit: number;
|
|
10192
10307
|
maxRate: number;
|
|
10308
|
+
version: string;
|
|
10309
|
+
ratesVersion: string;
|
|
10193
10310
|
};
|
|
10194
10311
|
|
|
10195
10312
|
/** What add or change tax rates takes: `tax.setRates`. */
|
|
@@ -10484,6 +10601,8 @@ export type TaxSetRatesResult = {
|
|
|
10484
10601
|
};
|
|
10485
10602
|
limit: number;
|
|
10486
10603
|
maxRate: number;
|
|
10604
|
+
version: string;
|
|
10605
|
+
ratesVersion: string;
|
|
10487
10606
|
};
|
|
10488
10607
|
|
|
10489
10608
|
/** What remove a tax rate takes: `tax.deleteRate`. */
|
|
@@ -10773,6 +10892,8 @@ export type TaxDeleteRateResult = {
|
|
|
10773
10892
|
};
|
|
10774
10893
|
limit: number;
|
|
10775
10894
|
maxRate: number;
|
|
10895
|
+
version: string;
|
|
10896
|
+
ratesVersion: string;
|
|
10776
10897
|
};
|
|
10777
10898
|
|
|
10778
10899
|
/** What list expenses takes: `expenses.list`. */
|
|
@@ -10811,6 +10932,7 @@ export type ExpensesListResult = {
|
|
|
10811
10932
|
method: string;
|
|
10812
10933
|
reference: string;
|
|
10813
10934
|
amount: number;
|
|
10935
|
+
currency: string;
|
|
10814
10936
|
entered: unknown;
|
|
10815
10937
|
productId: unknown;
|
|
10816
10938
|
recurring: boolean;
|
|
@@ -10858,6 +10980,7 @@ export type ExpensesCreateResult = {
|
|
|
10858
10980
|
method: string;
|
|
10859
10981
|
reference: string;
|
|
10860
10982
|
amount: number;
|
|
10983
|
+
currency: string;
|
|
10861
10984
|
entered: unknown;
|
|
10862
10985
|
productId: unknown;
|
|
10863
10986
|
recurring: boolean;
|
|
@@ -10895,9 +11018,11 @@ export type ExpensesSummaryResult = {
|
|
|
10895
11018
|
};
|
|
10896
11019
|
spent: number;
|
|
10897
11020
|
previous: number;
|
|
11021
|
+
otherCurrencies: unknown[] | Record<string, unknown>;
|
|
10898
11022
|
recurring: {
|
|
10899
11023
|
count: number;
|
|
10900
11024
|
monthly: number;
|
|
11025
|
+
others: unknown[] | Record<string, unknown>;
|
|
10901
11026
|
};
|
|
10902
11027
|
largest: {
|
|
10903
11028
|
name: string;
|
|
@@ -11009,6 +11134,8 @@ export interface ExpensesUpdateParams {
|
|
|
11009
11134
|
reference?: string;
|
|
11010
11135
|
/** A product this expense is a cost of. */
|
|
11011
11136
|
productId?: string;
|
|
11137
|
+
/** With its amount as it was, the currency that amount is in: for an expense whose currency is not known (`currency` null), or to put right one that is wrong. Nothing is converted. With a new `amount` it is not read: a new amount is in the store's currency today. */
|
|
11138
|
+
amountCurrency?: string;
|
|
11012
11139
|
}
|
|
11013
11140
|
|
|
11014
11141
|
/** What update an expense answers: `expenses.update`. */
|
|
@@ -11025,6 +11152,7 @@ export type ExpensesUpdateResult = {
|
|
|
11025
11152
|
method: string;
|
|
11026
11153
|
reference: string;
|
|
11027
11154
|
amount: number;
|
|
11155
|
+
currency: string;
|
|
11028
11156
|
entered: unknown;
|
|
11029
11157
|
productId: unknown;
|
|
11030
11158
|
recurring: boolean;
|
|
@@ -11131,6 +11259,7 @@ export type RecurringExpensesListResult = {
|
|
|
11131
11259
|
method: string;
|
|
11132
11260
|
reference: string;
|
|
11133
11261
|
amount: number;
|
|
11262
|
+
currency: string;
|
|
11134
11263
|
cadence: string;
|
|
11135
11264
|
onDay: number;
|
|
11136
11265
|
nextOn: string;
|
|
@@ -11144,7 +11273,7 @@ export type RecurringExpensesListResult = {
|
|
|
11144
11273
|
export interface RecurringExpensesCreateParams {
|
|
11145
11274
|
/** Who is paid, up to 120 characters. */
|
|
11146
11275
|
payee: string;
|
|
11147
|
-
/** How much each time, in the store's currency. */
|
|
11276
|
+
/** How much each time, in the store's currency today. */
|
|
11148
11277
|
amount: number;
|
|
11149
11278
|
/** How often it comes round. */
|
|
11150
11279
|
cadence: "month" | "year";
|
|
@@ -11169,6 +11298,7 @@ export type RecurringExpensesCreateResult = {
|
|
|
11169
11298
|
method: string;
|
|
11170
11299
|
reference: string;
|
|
11171
11300
|
amount: number;
|
|
11301
|
+
currency: string;
|
|
11172
11302
|
cadence: string;
|
|
11173
11303
|
onDay: number;
|
|
11174
11304
|
nextOn: string;
|
|
@@ -11182,7 +11312,7 @@ export type RecurringExpensesCreateResult = {
|
|
|
11182
11312
|
export interface RecurringExpensesUpdateParams {
|
|
11183
11313
|
/** Who is paid, up to 120 characters. */
|
|
11184
11314
|
payee: string;
|
|
11185
|
-
/** How much each time, in the store's currency. */
|
|
11315
|
+
/** How much each time, in the store's currency today. */
|
|
11186
11316
|
amount: number;
|
|
11187
11317
|
/** How often it comes round. */
|
|
11188
11318
|
cadence: "month" | "year";
|
|
@@ -11196,6 +11326,8 @@ export interface RecurringExpensesUpdateParams {
|
|
|
11196
11326
|
note?: string;
|
|
11197
11327
|
/** A reference, up to 160 characters. */
|
|
11198
11328
|
reference?: string;
|
|
11329
|
+
/** With its amount as it was, the currency that amount is in: for one whose currency is not known (`currency` null), or to put right one that is wrong. Nothing is converted. The expenses it writes from then on are in it; those it has written keep theirs. */
|
|
11330
|
+
amountCurrency?: string;
|
|
11199
11331
|
}
|
|
11200
11332
|
|
|
11201
11333
|
/** What update a recurring expense answers: `recurringExpenses.update`. */
|
|
@@ -11207,6 +11339,7 @@ export type RecurringExpensesUpdateResult = {
|
|
|
11207
11339
|
method: string;
|
|
11208
11340
|
reference: string;
|
|
11209
11341
|
amount: number;
|
|
11342
|
+
currency: string;
|
|
11210
11343
|
cadence: string;
|
|
11211
11344
|
onDay: number;
|
|
11212
11345
|
nextOn: string;
|
|
@@ -11235,6 +11368,7 @@ export type RecurringExpensesSkipResult = {
|
|
|
11235
11368
|
method: string;
|
|
11236
11369
|
reference: string;
|
|
11237
11370
|
amount: number;
|
|
11371
|
+
currency: string;
|
|
11238
11372
|
cadence: string;
|
|
11239
11373
|
onDay: number;
|
|
11240
11374
|
nextOn: string;
|
|
@@ -11596,6 +11730,7 @@ export type CustomerOrdersShowResult = {
|
|
|
11596
11730
|
instructions: string;
|
|
11597
11731
|
files: unknown[] | Record<string, unknown>;
|
|
11598
11732
|
};
|
|
11733
|
+
addons: unknown[] | Record<string, unknown>;
|
|
11599
11734
|
}>;
|
|
11600
11735
|
general: string;
|
|
11601
11736
|
discord: unknown;
|
|
@@ -12504,7 +12639,7 @@ export interface ShoplyResourcesAnalytics {
|
|
|
12504
12639
|
/**
|
|
12505
12640
|
* **Get the overview**
|
|
12506
12641
|
*
|
|
12507
|
-
* A period's headline figures (revenue, orders, customers and the rest), the same figures for the period before, and a day by day series. What the dashboard's home page draws.
|
|
12642
|
+
* A period's headline figures (revenue, orders, customers and the rest), the same figures for the period before, and a day by day series. What the dashboard's home page draws. Every figure of money is in the store's currency today (`currencyCode`), its orders alone; what the period took in another currency is `otherCurrencies`, each in its own, never added in or converted. A count that is not money counts every order.
|
|
12508
12643
|
*
|
|
12509
12644
|
* Needs the `analytics.read` permission (Read Analytics). It is one of the heavier reads, and is counted against a smaller budget of its own: 60 a minute for each key.
|
|
12510
12645
|
*
|
|
@@ -14356,7 +14491,7 @@ export interface ShoplyResourcesCustomers {
|
|
|
14356
14491
|
/**
|
|
14357
14492
|
* **List customers**
|
|
14358
14493
|
*
|
|
14359
|
-
* The store's customers, a page at a time, each with how many orders they have paid for, what they have spent, their balance and their `tags`: Shoply's two first (`vip` and `disputed`, worked out from their orders as they are read), then the store's own.
|
|
14494
|
+
* The store's customers, a page at a time, each with how many orders they have paid for, what they have spent in the store's currency today (`totalSpend`) and in any other (`otherSpend`, never added in or converted), their balance and their `tags`: Shoply's two first (`vip` and `disputed`, worked out from their orders as they are read), then the store's own.
|
|
14360
14495
|
*
|
|
14361
14496
|
* Needs the `customers.read` permission (Read Customers).
|
|
14362
14497
|
*
|
|
@@ -14376,7 +14511,7 @@ export interface ShoplyResourcesCustomers {
|
|
|
14376
14511
|
/**
|
|
14377
14512
|
* **Export customers**
|
|
14378
14513
|
*
|
|
14379
|
-
* The customers the same filters would list, as a CSV file: each one's email, when they were first seen, the orders they paid for and what they spent, their first and last paid order, their store balance, their affiliate code and balance where they have one, their tags, and whether they are subscribed to the store's news and offers. Every customer the filters match is in the file, however many: it is sent as it is read. Add `check=1` for `{ rows }`, how many it would have, which is not counted. A store exports at most 30 files every 10 minutes, orders, customers, fraud events, blacklist rules and allowlist entries together, whoever asks: after that the answer is 429.
|
|
14514
|
+
* The customers the same filters would list, as a CSV file: each one's email, when they were first seen, the orders they paid for and what they spent in the store's currency today, with what they spent in any other in a column of its own, their first and last paid order, their store balance, their affiliate code and balance where they have one, their tags, and whether they are subscribed to the store's news and offers. Every customer the filters match is in the file, however many: it is sent as it is read. Add `check=1` for `{ rows }`, how many it would have, which is not counted. A store exports at most 30 files every 10 minutes, orders, customers, fraud events, blacklist rules and allowlist entries together, whoever asks: after that the answer is 429.
|
|
14380
14515
|
*
|
|
14381
14516
|
* Needs the `customers.read` permission (Read Customers). It is one of the heavier reads, and is counted against a smaller budget of its own: 60 a minute for each key.
|
|
14382
14517
|
*
|
|
@@ -14396,7 +14531,7 @@ export interface ShoplyResourcesCustomers {
|
|
|
14396
14531
|
/**
|
|
14397
14532
|
* **Get a customer**
|
|
14398
14533
|
*
|
|
14399
|
-
* One customer: their orders, their balance and its history, their `tags`, whether they are blacklisted, and their affiliate figures if they are one.
|
|
14534
|
+
* One customer: their orders, what they have spent in the store's currency today (`totalSpend`, over `paidInCurrency` of their paid orders) and in any other (`otherSpend`), their balance and its history, their `tags`, whether they are blacklisted, and their affiliate figures if they are one.
|
|
14400
14535
|
*
|
|
14401
14536
|
* Needs the `customers.read` permission (Read Customers).
|
|
14402
14537
|
*
|
|
@@ -14489,7 +14624,7 @@ export interface ShoplyResourcesCustomerTags {
|
|
|
14489
14624
|
/**
|
|
14490
14625
|
* **List customer tags**
|
|
14491
14626
|
*
|
|
14492
|
-
* The store's own tags as `data`, by name, each with `customers`, how many wear it. `meta.automatic` is Shoply's two: VIP's rule (`vipOn`, `vipSpent` in the store's currency, `vipOrders` completed orders, `vipDays` the period, 0 for all time; either number 0 leaves that half out) and `disputedOn`, with `vipCustomers` and `disputedCustomers`, how many wear each today.
|
|
14627
|
+
* The store's own tags as `data`, by name, each with `customers`, how many wear it. `meta.automatic` is Shoply's two: VIP's rule (`vipOn`, `vipSpent` in the store's currency today, counting the orders in it alone, `vipOrders` completed orders in any currency, `vipDays` the period, 0 for all time; either number 0 leaves that half out) and `disputedOn`, with `vipCustomers` and `disputedCustomers`, how many wear each today.
|
|
14493
14628
|
*
|
|
14494
14629
|
* Needs the `customers.read` permission (Read Customers).
|
|
14495
14630
|
*
|
|
@@ -15194,7 +15329,7 @@ export interface ShoplyResourcesResellerOrders {
|
|
|
15194
15329
|
/**
|
|
15195
15330
|
* **Export reseller orders**
|
|
15196
15331
|
*
|
|
15197
|
-
* The orders the same filters would list, as a CSV file: Order ID, Reseller, Bought By, Product, Variant, Quantity, Total, Currency, Bought With and Date. No delivered key is in it. Every row the filters match is in the file,
|
|
15332
|
+
* The orders the same filters would list, as a CSV file: Order ID, Reseller, Bought By, Product, Variant, Quantity, Total, Currency, Bought With and Date. No delivered key is in it. Every row the filters match is in the file, however many, sent as it is read. Add `check=1` for `{ rows }`, how many it would have, which is not counted. A store exports at most 30 files every 10 minutes, whatever they are of, whoever asks: after that the answer is 429.
|
|
15198
15333
|
*
|
|
15199
15334
|
* Needs the `resellers.read` permission (Read Resellers). It is one of the heavier reads, and is counted against a smaller budget of its own: 60 a minute for each key.
|
|
15200
15335
|
*
|
|
@@ -15227,7 +15362,7 @@ export interface ShoplyResourcesResellerTopUps {
|
|
|
15227
15362
|
/**
|
|
15228
15363
|
* **Export top-ups**
|
|
15229
15364
|
*
|
|
15230
|
-
* The top-ups the same filters would list, as a CSV file: Top-up ID, Reseller, Paid By, Amount, Currency, Paid With, Status, Opened and Paid. Every row the filters match is in the file,
|
|
15365
|
+
* The top-ups the same filters would list, as a CSV file: Top-up ID, Reseller, Paid By, Amount, Currency, Paid With, Status, Opened and Paid. Every row the filters match is in the file, however many, sent as it is read. Add `check=1` for `{ rows }`, how many it would have, which is not counted. A store exports at most 30 files every 10 minutes, whatever they are of, whoever asks: after that the answer is 429.
|
|
15231
15366
|
*
|
|
15232
15367
|
* Needs the `resellers.read` permission (Read Resellers). It is one of the heavier reads, and is counted against a smaller budget of its own: 60 a minute for each key.
|
|
15233
15368
|
*
|
|
@@ -15635,7 +15770,7 @@ export interface ShoplyResourcesFinance {
|
|
|
15635
15770
|
/**
|
|
15636
15771
|
* **Get profit**
|
|
15637
15772
|
*
|
|
15638
|
-
* What the store kept in a period and how that is made up, beside the period before: net sales, the cost of goods, payment fees, affiliate commission, expenses and net profit, twelve months of sales and profit, and every product with what each variant sold and cost. A sale is what the buyer paid: at its sale price, after its coupon and any affiliate link's discount, without tax. Payment fees are worked out from the rates the store typed, never read from a provider, so they can be slightly off. A store makes at most 20 reports every 10 minutes, counting this one, the other report, their files and the dashboard's Generate Report together: after that the answer is 429. Refused with `business_details_required` until the store has its business details.
|
|
15773
|
+
* What the store kept in a period and how that is made up, beside the period before: net sales, the cost of goods, payment fees, affiliate commission, expenses and net profit, twelve months of sales and profit, and every product with what each variant sold and cost. A sale is what the buyer paid: at its sale price, after its coupon and any affiliate link's discount, without tax. Payment fees are worked out from the rates the store typed, never read from a provider, so they can be slightly off. Every figure is in the store's currency today (`currency`), its orders and its expenses alone. What the period took or spent in another currency is `otherCurrencies`, each in its own, and the expenses whose currency is not known are `unknownExpenses`: nothing is added across currencies or converted. A store makes at most 20 reports every 10 minutes, counting this one, the other report, their files and the dashboard's Generate Report together: after that the answer is 429. Refused with `business_details_required` until the store has its business details.
|
|
15639
15774
|
*
|
|
15640
15775
|
* Needs the `finance.read` permission (Read Finance). It is one of the heavier reads, and is counted against a smaller budget of its own: 60 a minute for each key.
|
|
15641
15776
|
*
|
|
@@ -15645,7 +15780,7 @@ export interface ShoplyResourcesFinance {
|
|
|
15645
15780
|
/**
|
|
15646
15781
|
* **Get the books**
|
|
15647
15782
|
*
|
|
15648
|
-
* The books for a period: the profit and loss line by line beside the period before, where the buyers were, and what each payment method took in. Gross sales are at the prices before any sale, and what sales, discounts, refunds and chargebacks took off is a line each; affiliate commission is a cost of sales. Tax collected is not income and is in none of it but the tax report. A store makes at most 20 reports every 10 minutes, counting this one, the other report, their files and the dashboard's Generate Report together: after that the answer is 429. Refused with `business_details_required` until the store has its business details.
|
|
15783
|
+
* The books for a period: the profit and loss line by line beside the period before, where the buyers were, and what each payment method took in. Gross sales are at the prices before any sale, and what sales, discounts, refunds and chargebacks took off is a line each; affiliate commission is a cost of sales. Tax collected is not income and is in none of it but the tax report. The statement is in the store's currency today (`currency`), its orders and its expenses alone. Each other currency the period or the one before took or spent anything in has a statement of its own in `others`, beside the period before in that currency, and the expenses whose currency is not known are `unknownExpenses`. `taxReport` is the same: its rows in the store's currency, then `others`. Nothing is added across currencies or converted. A store makes at most 20 reports every 10 minutes, counting this one, the other report, their files and the dashboard's Generate Report together: after that the answer is 429. Refused with `business_details_required` until the store has its business details.
|
|
15649
15784
|
*
|
|
15650
15785
|
* Needs the `finance.read` permission (Read Finance). It is one of the heavier reads, and is counted against a smaller budget of its own: 60 a minute for each key.
|
|
15651
15786
|
*
|
|
@@ -15741,7 +15876,7 @@ export interface ShoplyResourcesExpenses {
|
|
|
15741
15876
|
/**
|
|
15742
15877
|
* **List expenses**
|
|
15743
15878
|
*
|
|
15744
|
-
* A period's expenses, newest first, up to 2,000 of them. `meta.totals` is what the expenses matched come to, counting every one, and `meta.groups` the same by category. Refused with `business_details_required` until the store has its business details.
|
|
15879
|
+
* A period's expenses, newest first, up to 2,000 of them, each with the `currency` its amount is in (null where it is not known). `meta.totals` is what the expenses matched in the store's currency today (`meta.currency`) come to, counting every one, and `meta.groups` the same by category. `meta.otherCurrencies` is what those in each other currency come to, and those whose currency is not known (`currency` null), never added in or converted. `meta.listedOf` is how many the filters match, whatever their currency. Refused with `business_details_required` until the store has its business details.
|
|
15745
15880
|
*
|
|
15746
15881
|
* Needs the `expenses.read` permission (Read Expenses).
|
|
15747
15882
|
*
|
|
@@ -15761,7 +15896,7 @@ export interface ShoplyResourcesExpenses {
|
|
|
15761
15896
|
/**
|
|
15762
15897
|
* **Get an expense summary**
|
|
15763
15898
|
*
|
|
15764
|
-
* A period's spending at a glance: the total beside the period before, what repeats, the largest category, how many have receipts, twelve months of totals and what is coming up. Refused with `business_details_required` until the store has its business details.
|
|
15899
|
+
* A period's spending at a glance: the total beside the period before, what repeats, the largest category, how many have receipts, twelve months of totals and what is coming up. The figures are in the store's currency today; `otherCurrencies` is what the period spent in each other currency, and in none known. Refused with `business_details_required` until the store has its business details.
|
|
15765
15900
|
*
|
|
15766
15901
|
* Needs the `expenses.read` permission (Read Expenses). It is one of the heavier reads, and is counted against a smaller budget of its own: 60 a minute for each key.
|
|
15767
15902
|
*
|
|
@@ -15791,7 +15926,7 @@ export interface ShoplyResourcesExpenses {
|
|
|
15791
15926
|
/**
|
|
15792
15927
|
* **Update an expense**
|
|
15793
15928
|
*
|
|
15794
|
-
* Changes an expense. A field left out stays as it is. Refused with `business_details_required` until the store has its business details.
|
|
15929
|
+
* Changes an expense. A field left out stays as it is. An expense keeps the currency its amount was typed in, the store's of that moment, while its amount stays as it was; a new amount is in the store's currency today. Refused with `business_details_required` until the store has its business details.
|
|
15795
15930
|
*
|
|
15796
15931
|
* Needs the `expenses.write` permission (Change Expenses).
|
|
15797
15932
|
*
|
|
@@ -15907,7 +16042,7 @@ export interface ShoplyResourcesRecurringExpenses {
|
|
|
15907
16042
|
/**
|
|
15908
16043
|
* **List recurring expenses**
|
|
15909
16044
|
*
|
|
15910
|
-
* The expenses that come round every month or year, with the day each is next due. A store holds up to 100. Refused with `business_details_required` until the store has its business details.
|
|
16045
|
+
* The expenses that come round every month or year, with the day each is next due and the `currency` its amount is in (null where it is not known). A store holds up to 100. `meta.running` is what the running ones come to a month, a yearly one as a twelfth: `monthly` those in the store's currency today, `others` those in each other currency and those not known, never added in or converted, and `count` every one. Refused with `business_details_required` until the store has its business details.
|
|
15911
16046
|
*
|
|
15912
16047
|
* Needs the `expenses.read` permission (Read Expenses).
|
|
15913
16048
|
*
|
|
@@ -15927,7 +16062,7 @@ export interface ShoplyResourcesRecurringExpenses {
|
|
|
15927
16062
|
/**
|
|
15928
16063
|
* **Update a recurring expense**
|
|
15929
16064
|
*
|
|
15930
|
-
* Changes a recurring expense. A field left out stays as it is. The expenses it has already written are not changed. Refused with `business_details_required` until the store has its business details.
|
|
16065
|
+
* Changes a recurring expense. A field left out stays as it is. The expenses it has already written are not changed. It keeps the currency its amount was typed in while its amount stays as it was; a new amount is in the store's currency today. Refused with `business_details_required` until the store has its business details.
|
|
15931
16066
|
*
|
|
15932
16067
|
* Needs the `expenses.write` permission (Change Expenses).
|
|
15933
16068
|
*
|
|
@@ -16980,43 +17115,43 @@ export interface WebhookEventData {
|
|
|
16980
17115
|
/**
|
|
16981
17116
|
* A business joined the store's reseller panel through one of its invite links.
|
|
16982
17117
|
*
|
|
16983
|
-
* `data`: For `reseller.joined`, `reseller.updated` and `reseller.removed`, the reseller, as [List resellers](https://docs.shoply.gg/api-reference/resellers/list-resellers) answers one. `reseller.balance_changed` adds `change`: its `kind` (`topup`, `order`, `manual` or `
|
|
17118
|
+
* `data`: For `reseller.joined`, `reseller.updated` and `reseller.removed`, the reseller, as [List resellers](https://docs.shoply.gg/api-reference/resellers/list-resellers) answers one. `reseller.balance_changed` adds `change`: its `kind` (`topup`, `order`, `manual`, `chargeback` or `refund`), `amount`, `balanceAfter`, `orderId`, `note`, `actor` and `createdAt`. The two `reseller.top_up_` events have the top-up, as [List top-ups](https://docs.shoply.gg/api-reference/resellers/list-top-ups) answers it, and `reseller.order_completed` the order, as [List reseller orders](https://docs.shoply.gg/api-reference/resellers/list-reseller-orders) answers it.
|
|
16984
17119
|
*/
|
|
16985
17120
|
"reseller.joined": Record<string, unknown>;
|
|
16986
17121
|
/**
|
|
16987
17122
|
* A reseller was paused or made active again, or given another tier or discount, by the store or by Shoply; or paused because a top-up's payment was taken back.
|
|
16988
17123
|
*
|
|
16989
|
-
* `data`: For `reseller.joined`, `reseller.updated` and `reseller.removed`, the reseller, as [List resellers](https://docs.shoply.gg/api-reference/resellers/list-resellers) answers one. `reseller.balance_changed` adds `change`: its `kind` (`topup`, `order`, `manual` or `
|
|
17124
|
+
* `data`: For `reseller.joined`, `reseller.updated` and `reseller.removed`, the reseller, as [List resellers](https://docs.shoply.gg/api-reference/resellers/list-resellers) answers one. `reseller.balance_changed` adds `change`: its `kind` (`topup`, `order`, `manual`, `chargeback` or `refund`), `amount`, `balanceAfter`, `orderId`, `note`, `actor` and `createdAt`. The two `reseller.top_up_` events have the top-up, as [List top-ups](https://docs.shoply.gg/api-reference/resellers/list-top-ups) answers it, and `reseller.order_completed` the order, as [List reseller orders](https://docs.shoply.gg/api-reference/resellers/list-reseller-orders) answers it.
|
|
16990
17125
|
*/
|
|
16991
17126
|
"reseller.updated": Record<string, unknown>;
|
|
16992
17127
|
/**
|
|
16993
17128
|
* The store removed a reseller: their team can no longer sign in. Their orders, top-ups and balance history are kept.
|
|
16994
17129
|
*
|
|
16995
|
-
* `data`: For `reseller.joined`, `reseller.updated` and `reseller.removed`, the reseller, as [List resellers](https://docs.shoply.gg/api-reference/resellers/list-resellers) answers one. `reseller.balance_changed` adds `change`: its `kind` (`topup`, `order`, `manual` or `
|
|
17130
|
+
* `data`: For `reseller.joined`, `reseller.updated` and `reseller.removed`, the reseller, as [List resellers](https://docs.shoply.gg/api-reference/resellers/list-resellers) answers one. `reseller.balance_changed` adds `change`: its `kind` (`topup`, `order`, `manual`, `chargeback` or `refund`), `amount`, `balanceAfter`, `orderId`, `note`, `actor` and `createdAt`. The two `reseller.top_up_` events have the top-up, as [List top-ups](https://docs.shoply.gg/api-reference/resellers/list-top-ups) answers it, and `reseller.order_completed` the order, as [List reseller orders](https://docs.shoply.gg/api-reference/resellers/list-reseller-orders) answers it.
|
|
16996
17131
|
*/
|
|
16997
17132
|
"reseller.removed": Record<string, unknown>;
|
|
16998
17133
|
/**
|
|
16999
17134
|
* A reseller's balance changed: a top-up paid, a purchase, a change by hand, or a top-up's payment taken back.
|
|
17000
17135
|
*
|
|
17001
|
-
* `data`: For `reseller.joined`, `reseller.updated` and `reseller.removed`, the reseller, as [List resellers](https://docs.shoply.gg/api-reference/resellers/list-resellers) answers one. `reseller.balance_changed` adds `change`: its `kind` (`topup`, `order`, `manual` or `
|
|
17136
|
+
* `data`: For `reseller.joined`, `reseller.updated` and `reseller.removed`, the reseller, as [List resellers](https://docs.shoply.gg/api-reference/resellers/list-resellers) answers one. `reseller.balance_changed` adds `change`: its `kind` (`topup`, `order`, `manual`, `chargeback` or `refund`), `amount`, `balanceAfter`, `orderId`, `note`, `actor` and `createdAt`. The two `reseller.top_up_` events have the top-up, as [List top-ups](https://docs.shoply.gg/api-reference/resellers/list-top-ups) answers it, and `reseller.order_completed` the order, as [List reseller orders](https://docs.shoply.gg/api-reference/resellers/list-reseller-orders) answers it.
|
|
17002
17137
|
*/
|
|
17003
17138
|
"reseller.balance_changed": Record<string, unknown>;
|
|
17004
17139
|
/**
|
|
17005
17140
|
* A reseller's top-up was paid, or marked paid by the store, and is on their balance.
|
|
17006
17141
|
*
|
|
17007
|
-
* `data`: For `reseller.joined`, `reseller.updated` and `reseller.removed`, the reseller, as [List resellers](https://docs.shoply.gg/api-reference/resellers/list-resellers) answers one. `reseller.balance_changed` adds `change`: its `kind` (`topup`, `order`, `manual` or `
|
|
17142
|
+
* `data`: For `reseller.joined`, `reseller.updated` and `reseller.removed`, the reseller, as [List resellers](https://docs.shoply.gg/api-reference/resellers/list-resellers) answers one. `reseller.balance_changed` adds `change`: its `kind` (`topup`, `order`, `manual`, `chargeback` or `refund`), `amount`, `balanceAfter`, `orderId`, `note`, `actor` and `createdAt`. The two `reseller.top_up_` events have the top-up, as [List top-ups](https://docs.shoply.gg/api-reference/resellers/list-top-ups) answers it, and `reseller.order_completed` the order, as [List reseller orders](https://docs.shoply.gg/api-reference/resellers/list-reseller-orders) answers it.
|
|
17008
17143
|
*/
|
|
17009
17144
|
"reseller.top_up_paid": Record<string, unknown>;
|
|
17010
17145
|
/**
|
|
17011
17146
|
* A reseller says they paid a top-up with one of the store's custom payment methods, and it waits for the store to approve or reject it. Approved, it is `reseller.top_up_paid`.
|
|
17012
17147
|
*
|
|
17013
|
-
* `data`: For `reseller.joined`, `reseller.updated` and `reseller.removed`, the reseller, as [List resellers](https://docs.shoply.gg/api-reference/resellers/list-resellers) answers one. `reseller.balance_changed` adds `change`: its `kind` (`topup`, `order`, `manual` or `
|
|
17148
|
+
* `data`: For `reseller.joined`, `reseller.updated` and `reseller.removed`, the reseller, as [List resellers](https://docs.shoply.gg/api-reference/resellers/list-resellers) answers one. `reseller.balance_changed` adds `change`: its `kind` (`topup`, `order`, `manual`, `chargeback` or `refund`), `amount`, `balanceAfter`, `orderId`, `note`, `actor` and `createdAt`. The two `reseller.top_up_` events have the top-up, as [List top-ups](https://docs.shoply.gg/api-reference/resellers/list-top-ups) answers it, and `reseller.order_completed` the order, as [List reseller orders](https://docs.shoply.gg/api-reference/resellers/list-reseller-orders) answers it.
|
|
17014
17149
|
*/
|
|
17015
17150
|
"reseller.top_up_submitted": Record<string, unknown>;
|
|
17016
17151
|
/**
|
|
17017
17152
|
* A reseller bought from the panel, in the panel itself, with their API or by a delivery URL, paid from their balance.
|
|
17018
17153
|
*
|
|
17019
|
-
* `data`: For `reseller.joined`, `reseller.updated` and `reseller.removed`, the reseller, as [List resellers](https://docs.shoply.gg/api-reference/resellers/list-resellers) answers one. `reseller.balance_changed` adds `change`: its `kind` (`topup`, `order`, `manual` or `
|
|
17154
|
+
* `data`: For `reseller.joined`, `reseller.updated` and `reseller.removed`, the reseller, as [List resellers](https://docs.shoply.gg/api-reference/resellers/list-resellers) answers one. `reseller.balance_changed` adds `change`: its `kind` (`topup`, `order`, `manual`, `chargeback` or `refund`), `amount`, `balanceAfter`, `orderId`, `note`, `actor` and `createdAt`. The two `reseller.top_up_` events have the top-up, as [List top-ups](https://docs.shoply.gg/api-reference/resellers/list-top-ups) answers it, and `reseller.order_completed` the order, as [List reseller orders](https://docs.shoply.gg/api-reference/resellers/list-reseller-orders) answers it.
|
|
17020
17155
|
*/
|
|
17021
17156
|
"reseller.order_completed": Record<string, unknown>;
|
|
17022
17157
|
/**
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shoplygg/node",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.5",
|
|
4
4
|
"description": "Shoply's API from your own server: every route as a typed method, safe retries, pages, checking webhooks, and OAuth for apps.",
|
|
5
5
|
"keywords": ["shoply", "api", "sdk", "ecommerce", "webhooks", "digital-goods"],
|
|
6
6
|
"homepage": "https://docs.shoply.gg/api-reference/node",
|