@shoplygg/node 0.7.0 → 0.9.0

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.
@@ -31,6 +31,21 @@ export type KeyShowResult = {
31
31
  api: string;
32
32
  };
33
33
 
34
+ /** What revoke the current key answers: `key.destroy`. */
35
+ export type KeyDestroyResult = {
36
+ id: string;
37
+ name: string;
38
+ prefix: string;
39
+ scopes: string[];
40
+ allowedIps: unknown[] | Record<string, unknown>;
41
+ allowedDomains: unknown[] | Record<string, unknown>;
42
+ expiresAt: unknown;
43
+ expired: boolean;
44
+ createdAt: string;
45
+ lastUsedAt: string;
46
+ revokedAt: string;
47
+ };
48
+
34
49
  /** What get the store answers: `store.show`. */
35
50
  export type StoreShowResult = {
36
51
  id: string;
@@ -278,6 +293,7 @@ export type StoreEmailSettingsResult = {
278
293
  emailPayoutsEnabled: boolean;
279
294
  emailCustomPaidEnabled: boolean;
280
295
  emailTicketsEnabled: boolean;
296
+ emailResellersEnabled: boolean;
281
297
  emailDisputeOpenedEnabled: boolean;
282
298
  emailDisputeClosedEnabled: boolean;
283
299
  testEmailEvery: {
@@ -293,6 +309,7 @@ export type StoreEmailSettingsResult = {
293
309
  discordPayoutsEnabled: boolean;
294
310
  discordCustomPaidEnabled: boolean;
295
311
  discordTicketsEnabled: boolean;
312
+ discordResellersEnabled: boolean;
296
313
  discordDisputesEnabled: boolean;
297
314
  discordStockThreshold: number;
298
315
  discordFailure: unknown;
@@ -948,6 +965,7 @@ export type StorefrontsListResult = {
948
965
  code: boolean;
949
966
  engine: string;
950
967
  codeOnCopy: unknown;
968
+ themeChanged: unknown;
951
969
  unpublished: boolean;
952
970
  accent: unknown;
953
971
  headingFont: unknown;
@@ -982,6 +1000,7 @@ export type StorefrontsCreateResult = {
982
1000
  code: boolean;
983
1001
  engine: string;
984
1002
  codeOnCopy: unknown;
1003
+ themeChanged: unknown;
985
1004
  unpublished: boolean;
986
1005
  accent: unknown;
987
1006
  headingFont: unknown;
@@ -1117,6 +1136,7 @@ export type StorefrontsRenameResult = {
1117
1136
  code: boolean;
1118
1137
  engine: string;
1119
1138
  codeOnCopy: unknown;
1139
+ themeChanged: unknown;
1120
1140
  unpublished: boolean;
1121
1141
  accent: unknown;
1122
1142
  headingFont: unknown;
@@ -1137,6 +1157,7 @@ export type StorefrontsDeleteResult = {
1137
1157
  code: boolean;
1138
1158
  engine: string;
1139
1159
  codeOnCopy: unknown;
1160
+ themeChanged: unknown;
1140
1161
  unpublished: boolean;
1141
1162
  accent: unknown;
1142
1163
  headingFont: unknown;
@@ -1167,6 +1188,7 @@ export type StorefrontsSetLiveResult = {
1167
1188
  code: boolean;
1168
1189
  engine: string;
1169
1190
  codeOnCopy: unknown;
1191
+ themeChanged: unknown;
1170
1192
  unpublished: boolean;
1171
1193
  accent: unknown;
1172
1194
  headingFont: unknown;
@@ -1188,6 +1210,7 @@ export type StorefrontsCodeResult = {
1188
1210
  code: boolean;
1189
1211
  engine: string;
1190
1212
  codeOnCopy: unknown;
1213
+ themeChanged: unknown;
1191
1214
  unpublished: boolean;
1192
1215
  accent: unknown;
1193
1216
  headingFont: unknown;
@@ -1217,6 +1240,7 @@ export type StorefrontsCodeStartResult = {
1217
1240
  code: boolean;
1218
1241
  engine: string;
1219
1242
  codeOnCopy: unknown;
1243
+ themeChanged: unknown;
1220
1244
  unpublished: boolean;
1221
1245
  accent: unknown;
1222
1246
  headingFont: unknown;
@@ -1237,6 +1261,7 @@ export type StorefrontsCodeStartResult = {
1237
1261
  size: number;
1238
1262
  added: boolean;
1239
1263
  changed: boolean;
1264
+ behind: unknown;
1240
1265
  updatedAt: string;
1241
1266
  }[];
1242
1267
  problems: unknown[] | Record<string, unknown>;
@@ -1282,6 +1307,7 @@ export type StorefrontsCodeFileResult = {
1282
1307
  size: number;
1283
1308
  added: boolean;
1284
1309
  changed: boolean;
1310
+ behind: unknown;
1285
1311
  updatedAt: string;
1286
1312
  content: string;
1287
1313
  };
@@ -1304,6 +1330,7 @@ export type StorefrontsCodeSaveResult = {
1304
1330
  size: number;
1305
1331
  added: boolean;
1306
1332
  changed: boolean;
1333
+ behind: unknown;
1307
1334
  updatedAt: string;
1308
1335
  content: string;
1309
1336
  };
@@ -1319,6 +1346,7 @@ export type StorefrontsCodeSaveResult = {
1319
1346
  size: number;
1320
1347
  added: boolean;
1321
1348
  changed: boolean;
1349
+ behind: unknown;
1322
1350
  updatedAt: string;
1323
1351
  }[];
1324
1352
  problems: unknown[] | Record<string, unknown>;
@@ -1356,6 +1384,7 @@ export type StorefrontsCodeAddResult = {
1356
1384
  size: number;
1357
1385
  added: boolean;
1358
1386
  changed: boolean;
1387
+ behind: unknown;
1359
1388
  updatedAt: string;
1360
1389
  content: string;
1361
1390
  };
@@ -1371,6 +1400,7 @@ export type StorefrontsCodeAddResult = {
1371
1400
  size: number;
1372
1401
  added: boolean;
1373
1402
  changed: boolean;
1403
+ behind: unknown;
1374
1404
  updatedAt: string;
1375
1405
  }[];
1376
1406
  problems: unknown[] | Record<string, unknown>;
@@ -1419,6 +1449,7 @@ export type StorefrontsCodeRenameResult = {
1419
1449
  size: number;
1420
1450
  added: boolean;
1421
1451
  changed: boolean;
1452
+ behind: unknown;
1422
1453
  updatedAt: string;
1423
1454
  };
1424
1455
  rev: number;
@@ -1447,6 +1478,7 @@ export type StorefrontsCodePublishResult = {
1447
1478
  code: boolean;
1448
1479
  engine: string;
1449
1480
  codeOnCopy: unknown;
1481
+ themeChanged: unknown;
1450
1482
  unpublished: boolean;
1451
1483
  accent: unknown;
1452
1484
  headingFont: unknown;
@@ -1467,6 +1499,7 @@ export type StorefrontsCodePublishResult = {
1467
1499
  size: number;
1468
1500
  added: boolean;
1469
1501
  changed: boolean;
1502
+ behind: unknown;
1470
1503
  updatedAt: string;
1471
1504
  }[];
1472
1505
  problems: unknown[] | Record<string, unknown>;
@@ -7543,6 +7576,759 @@ export type TeamRemoveMemberResult = {
7543
7576
  keysStopped: number;
7544
7577
  };
7545
7578
 
7579
+ /** What get the reseller overview answers: `resellers.overview`. */
7580
+ export type ResellersOverviewResult = {
7581
+ panel: {
7582
+ enabled: boolean;
7583
+ currency: string;
7584
+ minTopup: number;
7585
+ };
7586
+ address: string;
7587
+ figures: {
7588
+ resellers: number;
7589
+ paused: number;
7590
+ sales30: number;
7591
+ orders30: number;
7592
+ topups30: number;
7593
+ topupCount30: number;
7594
+ balanceHeld: number;
7595
+ };
7596
+ waiting: {
7597
+ kind: string;
7598
+ line: string;
7599
+ hint: string;
7600
+ productId: string;
7601
+ }[];
7602
+ top: {
7603
+ id: string;
7604
+ name: string;
7605
+ website: string;
7606
+ email: string;
7607
+ tierId: string;
7608
+ tierName: string;
7609
+ tierDiscount: number;
7610
+ discount: unknown;
7611
+ paysOff: number;
7612
+ balance: number;
7613
+ status: string;
7614
+ members: number;
7615
+ spent30: number;
7616
+ lastOrderAt: string;
7617
+ joinedAt: string;
7618
+ removedAt: unknown;
7619
+ }[];
7620
+ };
7621
+
7622
+ /** What get the panel's settings answers: `resellers.settings`. */
7623
+ export type ResellersSettingsResult = {
7624
+ enabled: boolean;
7625
+ currency: string;
7626
+ minTopup: number;
7627
+ };
7628
+
7629
+ /** What update the panel's settings takes: `resellers.updateSettings`. */
7630
+ export interface ResellersUpdateSettingsParams {
7631
+ /** Whether the panel is on. */
7632
+ enabled?: boolean;
7633
+ /** The currency its prices and balances are in, as a three-letter code. */
7634
+ currency?: string;
7635
+ /** The smallest top-up a reseller can make, 5.00 to 100,000.00. */
7636
+ minTopup?: number;
7637
+ }
7638
+
7639
+ /** What update the panel's settings answers: `resellers.updateSettings`. */
7640
+ export type ResellersUpdateSettingsResult = {
7641
+ enabled: boolean;
7642
+ currency: string;
7643
+ minTopup: number;
7644
+ };
7645
+
7646
+ /** What get the panel's domain answers: `resellers.domain`. */
7647
+ export type ResellersDomainResult = {
7648
+ domain: unknown;
7649
+ cnameTarget: string;
7650
+ available: boolean;
7651
+ };
7652
+
7653
+ /** What connect a domain to the panel takes: `resellers.connectDomain`. */
7654
+ export interface ResellersConnectDomainParams {
7655
+ /** The domain, with no `https://` in front. */
7656
+ hostname: string;
7657
+ }
7658
+
7659
+ /** What connect a domain to the panel answers: `resellers.connectDomain`. */
7660
+ export type ResellersConnectDomainResult = unknown;
7661
+
7662
+ /** What remove the panel's domain answers: `resellers.removeDomain`. */
7663
+ export type ResellersRemoveDomainResult = unknown;
7664
+
7665
+ /** What list what the panel sells answers: `resellerProducts.list`. */
7666
+ export type ResellerProductsListResult = {
7667
+ variantId: string;
7668
+ productId: string;
7669
+ productName: string;
7670
+ variantName: string;
7671
+ image: unknown;
7672
+ delivery: string;
7673
+ stock: number;
7674
+ price: number;
7675
+ minQty: number;
7676
+ dailyCap: number;
7677
+ maxDiscount: unknown;
7678
+ enabled: boolean;
7679
+ }[];
7680
+
7681
+ /** What sell products on the panel takes: `resellerProducts.save`. */
7682
+ export interface ResellerProductsSaveParams {
7683
+ /** One a product option: `variantId`; `price`, its Reseller Price, above 0 and up to 1,000,000; `minQty`, the fewest bought at once, 1 to 1,000 (1 when left out); `dailyCap`, the most one reseller may buy of it in a day, or null for no cap; `maxDiscount`, the most off it in percent, or null for no limit (left out, as it was); `enabled`, whether it is on sale (true when left out). */
7684
+ rows: Record<string, unknown>[];
7685
+ }
7686
+
7687
+ /** What sell products on the panel answers: `resellerProducts.save`. */
7688
+ export type ResellerProductsSaveResult = {
7689
+ variantId: string;
7690
+ productId: string;
7691
+ productName: string;
7692
+ variantName: string;
7693
+ image: unknown;
7694
+ delivery: string;
7695
+ stock: number;
7696
+ price: number;
7697
+ minQty: number;
7698
+ dailyCap: number;
7699
+ maxDiscount: unknown;
7700
+ enabled: boolean;
7701
+ }[];
7702
+
7703
+ /** What list what the panel can sell answers: `resellerProducts.pickable`. */
7704
+ export type ResellerProductsPickableResult = {
7705
+ variantId: string;
7706
+ productId: string;
7707
+ productName: string;
7708
+ variantName: string;
7709
+ image: unknown;
7710
+ delivery: string;
7711
+ inPanel: boolean;
7712
+ price: number;
7713
+ }[];
7714
+
7715
+ /** What stop selling an option on the panel answers: `resellerProducts.remove`. */
7716
+ export type ResellerProductsRemoveResult = unknown[] | Record<string, unknown>;
7717
+
7718
+ /** What set a product's status and labels on the panel takes: `resellerProducts.badges`. */
7719
+ export interface ResellerProductsBadgesParams {
7720
+ /** Up to 3, each `{ label, color, kind }`: `label` 1 to 32 characters; `color` one of `blue`, `green`, `amber`, `red`, `purple` and `gray`, a `#rrggbb` colour, or empty for the plain look; `kind` `label`, or `status` for one at most. */
7721
+ badges: Record<string, unknown>[];
7722
+ }
7723
+
7724
+ /** What set a product's status and labels on the panel answers: `resellerProducts.badges`. */
7725
+ export type ResellerProductsBadgesResult = {
7726
+ "f052e845-eeca-4497-aefb-c59dea7f3d27": {
7727
+ label: string;
7728
+ color: string;
7729
+ kind: string;
7730
+ }[];
7731
+ };
7732
+
7733
+ /** What list tiers answers: `resellerTiers.list`. */
7734
+ export type ResellerTiersListResult = {
7735
+ id: string;
7736
+ name: string;
7737
+ discount: number;
7738
+ resellers: number;
7739
+ spent30: number;
7740
+ }[];
7741
+
7742
+ /** What create a tier takes: `resellerTiers.create`. */
7743
+ export interface ResellerTiersCreateParams {
7744
+ /** What the tier is called, up to 40 characters. */
7745
+ name: string;
7746
+ /** What it takes off every Reseller Price, in percent: 0.01 to 99.99. */
7747
+ discount: number;
7748
+ }
7749
+
7750
+ /** What create a tier answers: `resellerTiers.create`. */
7751
+ export type ResellerTiersCreateResult = {
7752
+ id: string;
7753
+ name: string;
7754
+ discount: number;
7755
+ resellers: number;
7756
+ spent30: number;
7757
+ };
7758
+
7759
+ /** What update a tier takes: `resellerTiers.update`. */
7760
+ export interface ResellerTiersUpdateParams {
7761
+ /** What the tier is called, up to 40 characters. */
7762
+ name: string;
7763
+ /** What it takes off every Reseller Price, in percent: 0.01 to 99.99. */
7764
+ discount: number;
7765
+ }
7766
+
7767
+ /** What update a tier answers: `resellerTiers.update`. */
7768
+ export type ResellerTiersUpdateResult = {
7769
+ id: string;
7770
+ name: string;
7771
+ discount: number;
7772
+ resellers: number;
7773
+ spent30: number;
7774
+ };
7775
+
7776
+ /** What delete a tier answers: `resellerTiers.delete`. */
7777
+ export type ResellerTiersDeleteResult = unknown[] | Record<string, unknown>;
7778
+
7779
+ /** What list invite links answers: `resellerInvites.list`. */
7780
+ export type ResellerInvitesListResult = {
7781
+ id: string;
7782
+ name: string;
7783
+ code: string;
7784
+ tierId: string;
7785
+ tierName: string;
7786
+ maxUses: number;
7787
+ uses: number;
7788
+ endsAt: string;
7789
+ enabled: boolean;
7790
+ live: boolean;
7791
+ }[];
7792
+
7793
+ /** What create an invite link takes: `resellerInvites.create`. */
7794
+ export interface ResellerInvitesCreateParams {
7795
+ /** What the link is called on the dashboard, up to 60 characters. Resellers never see it. Needed to make one. */
7796
+ name?: string;
7797
+ /** The tier whoever joins through it starts in. Empty or left out, none: they pay the Reseller Price. */
7798
+ tierId?: string;
7799
+ /** How many may join through it, 1 to 100,000. Empty or left out, no limit. */
7800
+ maxUses?: number;
7801
+ /** When it stops working, as a date and time. Empty or left out, never. */
7802
+ endsAt?: string;
7803
+ /**
7804
+ * Whether it works.
7805
+ *
7806
+ * Left out, it is true.
7807
+ */
7808
+ enabled?: boolean;
7809
+ }
7810
+
7811
+ /** What create an invite link answers: `resellerInvites.create`. */
7812
+ export type ResellerInvitesCreateResult = {
7813
+ id: string;
7814
+ name: string;
7815
+ code: string;
7816
+ tierId: string;
7817
+ tierName: string;
7818
+ maxUses: number;
7819
+ uses: number;
7820
+ endsAt: unknown;
7821
+ enabled: boolean;
7822
+ live: boolean;
7823
+ };
7824
+
7825
+ /** What update an invite link takes: `resellerInvites.update`. */
7826
+ export interface ResellerInvitesUpdateParams {
7827
+ /** What the link is called on the dashboard, up to 60 characters. Resellers never see it. Needed to make one. */
7828
+ name?: string;
7829
+ /** The tier whoever joins through it starts in. Empty or left out, none: they pay the Reseller Price. */
7830
+ tierId?: string;
7831
+ /** How many may join through it, 1 to 100,000. Empty or left out, no limit. */
7832
+ maxUses?: number;
7833
+ /** When it stops working, as a date and time. Empty or left out, never. */
7834
+ endsAt?: string;
7835
+ /**
7836
+ * Whether it works.
7837
+ *
7838
+ * Left out, it is true.
7839
+ */
7840
+ enabled?: boolean;
7841
+ }
7842
+
7843
+ /** What update an invite link answers: `resellerInvites.update`. */
7844
+ export type ResellerInvitesUpdateResult = {
7845
+ id: string;
7846
+ name: string;
7847
+ code: string;
7848
+ tierId: string;
7849
+ tierName: string;
7850
+ maxUses: number;
7851
+ uses: number;
7852
+ endsAt: string;
7853
+ enabled: boolean;
7854
+ live: boolean;
7855
+ };
7856
+
7857
+ /** What delete an invite link answers: `resellerInvites.delete`. */
7858
+ export type ResellerInvitesDeleteResult = unknown[] | Record<string, unknown>;
7859
+
7860
+ /** What list announcements answers: `resellerAnnouncements.list`. */
7861
+ export type ResellerAnnouncementsListResult = {
7862
+ id: string;
7863
+ title: string;
7864
+ body: string;
7865
+ pinned: boolean;
7866
+ createdAt: string;
7867
+ updatedAt: string;
7868
+ closes: number;
7869
+ }[];
7870
+
7871
+ /** What post an announcement takes: `resellerAnnouncements.create`. */
7872
+ export interface ResellerAnnouncementsCreateParams {
7873
+ /** Its title, up to 100 characters. */
7874
+ title: string;
7875
+ /** What it says, up to 1,000 characters. */
7876
+ body: string;
7877
+ /**
7878
+ * Whether it is shown first, before the newer ones.
7879
+ *
7880
+ * Left out, it is false.
7881
+ */
7882
+ pinned?: boolean;
7883
+ }
7884
+
7885
+ /** What post an announcement answers: `resellerAnnouncements.create`. */
7886
+ export type ResellerAnnouncementsCreateResult = {
7887
+ id: string;
7888
+ title: string;
7889
+ body: string;
7890
+ pinned: boolean;
7891
+ createdAt: string;
7892
+ updatedAt: string;
7893
+ closes: number;
7894
+ };
7895
+
7896
+ /** What update an announcement takes: `resellerAnnouncements.update`. */
7897
+ export interface ResellerAnnouncementsUpdateParams {
7898
+ /** Its title, up to 100 characters. */
7899
+ title: string;
7900
+ /** What it says, up to 1,000 characters. */
7901
+ body: string;
7902
+ /**
7903
+ * Whether it is shown first, before the newer ones.
7904
+ *
7905
+ * Left out, it is false.
7906
+ */
7907
+ pinned?: boolean;
7908
+ }
7909
+
7910
+ /** What update an announcement answers: `resellerAnnouncements.update`. */
7911
+ export type ResellerAnnouncementsUpdateResult = {
7912
+ id: string;
7913
+ title: string;
7914
+ body: string;
7915
+ pinned: boolean;
7916
+ createdAt: string;
7917
+ updatedAt: string;
7918
+ closes: number;
7919
+ };
7920
+
7921
+ /** What delete an announcement answers: `resellerAnnouncements.delete`. */
7922
+ export type ResellerAnnouncementsDeleteResult = unknown[] | Record<string, unknown>;
7923
+
7924
+ /** What list reseller orders takes: `resellerOrders.list`. */
7925
+ export interface ResellerOrdersListParams {
7926
+ /** Only what matches this text: an order's ID, a reseller's website, or who bought or paid. */
7927
+ q?: string;
7928
+ /** Only one reseller's, by their ID. */
7929
+ reseller?: string;
7930
+ /** Only those bought one way. */
7931
+ via?: "panel" | "api" | "url";
7932
+ /**
7933
+ * Which page of the list. The first is 1.
7934
+ *
7935
+ * Left out, it is 1.
7936
+ */
7937
+ page?: number;
7938
+ }
7939
+
7940
+ /** A row of what list reseller orders lists: `resellerOrders.list`. */
7941
+ export type ResellerOrdersListItem = {
7942
+ id: string;
7943
+ resellerId: string;
7944
+ reseller: string;
7945
+ resellerRemoved: boolean;
7946
+ boughtBy: string;
7947
+ productName: string;
7948
+ variantName: string;
7949
+ quantity: number;
7950
+ total: number;
7951
+ currency: string;
7952
+ status: string;
7953
+ via: string;
7954
+ createdAt: string;
7955
+ };
7956
+
7957
+ /** What export reseller orders takes: `resellerOrders.export`. */
7958
+ export interface ResellerOrdersExportParams {
7959
+ /** Only what matches this text: an order's ID, a reseller's website, or who bought or paid. */
7960
+ q?: string;
7961
+ /** Only one reseller's, by their ID. */
7962
+ reseller?: string;
7963
+ /** Only those bought one way. */
7964
+ via?: "panel" | "api" | "url";
7965
+ /** `1` for how many rows the file would have, as `{ rows }`, in place of the file. */
7966
+ check?: "1";
7967
+ }
7968
+
7969
+ /** What list top-ups takes: `resellerTopUps.list`. */
7970
+ export interface ResellerTopUpsListParams {
7971
+ /** Only what matches this text: an order's ID, a reseller's website, or who bought or paid. */
7972
+ q?: string;
7973
+ /** Only one reseller's, by their ID. */
7974
+ reseller?: string;
7975
+ /** Only those in one state. */
7976
+ status?: "paid" | "waiting" | "checking" | "expired" | "taken_back";
7977
+ /**
7978
+ * Which page of the list. The first is 1.
7979
+ *
7980
+ * Left out, it is 1.
7981
+ */
7982
+ page?: number;
7983
+ }
7984
+
7985
+ /** A row of what list top-ups lists: `resellerTopUps.list`. */
7986
+ export type ResellerTopUpsListItem = {
7987
+ id: string;
7988
+ resellerId: string;
7989
+ reseller: string;
7990
+ resellerRemoved: boolean;
7991
+ paidBy: string;
7992
+ amount: number;
7993
+ currency: string;
7994
+ state: string;
7995
+ method: string;
7996
+ createdAt: string;
7997
+ paidAt: unknown;
7998
+ };
7999
+
8000
+ /** What export top-ups takes: `resellerTopUps.export`. */
8001
+ export interface ResellerTopUpsExportParams {
8002
+ /** Only what matches this text: an order's ID, a reseller's website, or who bought or paid. */
8003
+ q?: string;
8004
+ /** Only one reseller's, by their ID. */
8005
+ reseller?: string;
8006
+ /** Only those in one state. */
8007
+ status?: "paid" | "waiting" | "checking" | "expired" | "taken_back";
8008
+ /** `1` for how many rows the file would have, as `{ rows }`, in place of the file. */
8009
+ check?: "1";
8010
+ }
8011
+
8012
+ /** What get a top-up's custom payment answers: `resellerTopUps.payment`. */
8013
+ export type ResellerTopUpsPaymentResult = {
8014
+ method: string;
8015
+ kind: string;
8016
+ status: string;
8017
+ asksProof: boolean;
8018
+ requiresPicture: boolean;
8019
+ amount: number;
8020
+ currency: string;
8021
+ proof: {
8022
+ reference: string;
8023
+ picture: boolean;
8024
+ at: string;
8025
+ };
8026
+ };
8027
+
8028
+ /** What approve a top-up's custom payment answers: `resellerTopUps.approve`. */
8029
+ export type ResellerTopUpsApproveResult = {
8030
+ id: string;
8031
+ state: string;
8032
+ };
8033
+
8034
+ /** What reject a top-up's custom payment answers: `resellerTopUps.reject`. */
8035
+ export type ResellerTopUpsRejectResult = {
8036
+ id: string;
8037
+ state: string;
8038
+ };
8039
+
8040
+ /** What mark a top-up as paid answers: `resellerTopUps.markPaid`. */
8041
+ export type ResellerTopUpsMarkPaidResult = {
8042
+ id: string;
8043
+ state: string;
8044
+ };
8045
+
8046
+ /** What list resellers answers: `resellers.list`. */
8047
+ export type ResellersListResult = {
8048
+ id: string;
8049
+ name: string;
8050
+ website: string;
8051
+ email: string;
8052
+ tierId: unknown;
8053
+ tierName: unknown;
8054
+ tierDiscount: unknown;
8055
+ discount: unknown;
8056
+ paysOff: number;
8057
+ balance: number;
8058
+ status: string;
8059
+ members: number;
8060
+ spent30: number;
8061
+ lastOrderAt: unknown;
8062
+ joinedAt: string;
8063
+ removedAt: unknown;
8064
+ }[];
8065
+
8066
+ /** What get a reseller answers: `resellers.get`. */
8067
+ export type ResellersGetResult = {
8068
+ id: string;
8069
+ name: string;
8070
+ website: string;
8071
+ email: string;
8072
+ tierId: string;
8073
+ tierName: string;
8074
+ tierDiscount: number;
8075
+ discount: unknown;
8076
+ paysOff: number;
8077
+ balance: number;
8078
+ status: string;
8079
+ members: number;
8080
+ spent30: number;
8081
+ lastOrderAt: string;
8082
+ joinedAt: string;
8083
+ removedAt: unknown;
8084
+ inviteName: unknown;
8085
+ team: {
8086
+ id: string;
8087
+ email: string;
8088
+ owner: boolean;
8089
+ permissions: string[];
8090
+ access: {
8091
+ buy: boolean;
8092
+ topup: boolean;
8093
+ keys: boolean;
8094
+ api: boolean;
8095
+ };
8096
+ twoFactor: boolean;
8097
+ verified: boolean;
8098
+ lastSeenAt: unknown;
8099
+ joinedAt: string;
8100
+ }[];
8101
+ catalogue: Array<{
8102
+ id: string;
8103
+ label: string;
8104
+ permissions: Array<{
8105
+ key: string;
8106
+ label: string;
8107
+ about: string;
8108
+ needs: unknown[] | Record<string, unknown>;
8109
+ }>;
8110
+ }>;
8111
+ };
8112
+
8113
+ /** What update a reseller takes: `resellers.update`. */
8114
+ export interface ResellersUpdateParams {
8115
+ /** Their tier. Empty, none. */
8116
+ tierId?: string;
8117
+ /** Their own discount off every Reseller Price, in percent, 0.01 to 99.99, in place of their tier's. Null or empty, none. */
8118
+ discount?: number;
8119
+ /** Whether they can buy and top up. */
8120
+ status?: "active" | "paused";
8121
+ }
8122
+
8123
+ /** What update a reseller answers: `resellers.update`. */
8124
+ export type ResellersUpdateResult = {
8125
+ id: string;
8126
+ name: string;
8127
+ website: string;
8128
+ email: string;
8129
+ tierId: string;
8130
+ tierName: string;
8131
+ tierDiscount: number;
8132
+ discount: unknown;
8133
+ paysOff: number;
8134
+ balance: number;
8135
+ status: string;
8136
+ members: number;
8137
+ spent30: number;
8138
+ lastOrderAt: unknown;
8139
+ joinedAt: string;
8140
+ removedAt: unknown;
8141
+ inviteName: unknown;
8142
+ team: {
8143
+ id: string;
8144
+ email: string;
8145
+ owner: boolean;
8146
+ permissions: string[];
8147
+ access: {
8148
+ buy: boolean;
8149
+ topup: boolean;
8150
+ keys: boolean;
8151
+ api: boolean;
8152
+ };
8153
+ twoFactor: boolean;
8154
+ verified: boolean;
8155
+ lastSeenAt: unknown;
8156
+ joinedAt: string;
8157
+ }[];
8158
+ catalogue: Array<{
8159
+ id: string;
8160
+ label: string;
8161
+ permissions: Array<{
8162
+ key: string;
8163
+ label: string;
8164
+ about: string;
8165
+ needs: unknown[] | Record<string, unknown>;
8166
+ }>;
8167
+ }>;
8168
+ };
8169
+
8170
+ /** What remove a reseller answers: `resellers.delete`. */
8171
+ export type ResellersDeleteResult = {
8172
+ removed: boolean;
8173
+ };
8174
+
8175
+ /** What change a reseller's balance takes: `resellers.setBalance`. */
8176
+ export interface ResellersSetBalanceParams {
8177
+ /** Add to it, take from it, or set it to exactly this. */
8178
+ mode: "add" | "subtract" | "set";
8179
+ /** How much, in the panel's currency, with at most 2 decimals. */
8180
+ amount: number;
8181
+ /** Why, up to 500 characters. The reseller reads it. */
8182
+ note?: string;
8183
+ }
8184
+
8185
+ /** What change a reseller's balance answers: `resellers.setBalance`. */
8186
+ export type ResellersSetBalanceResult = {
8187
+ id: string;
8188
+ name: string;
8189
+ website: string;
8190
+ email: string;
8191
+ tierId: string;
8192
+ tierName: string;
8193
+ tierDiscount: number;
8194
+ discount: unknown;
8195
+ paysOff: number;
8196
+ balance: number;
8197
+ status: string;
8198
+ members: number;
8199
+ spent30: number;
8200
+ lastOrderAt: unknown;
8201
+ joinedAt: string;
8202
+ removedAt: unknown;
8203
+ inviteName: unknown;
8204
+ team: {
8205
+ id: string;
8206
+ email: string;
8207
+ owner: boolean;
8208
+ permissions: string[];
8209
+ access: {
8210
+ buy: boolean;
8211
+ topup: boolean;
8212
+ keys: boolean;
8213
+ api: boolean;
8214
+ };
8215
+ twoFactor: boolean;
8216
+ verified: boolean;
8217
+ lastSeenAt: unknown;
8218
+ joinedAt: string;
8219
+ }[];
8220
+ catalogue: Array<{
8221
+ id: string;
8222
+ label: string;
8223
+ permissions: Array<{
8224
+ key: string;
8225
+ label: string;
8226
+ about: string;
8227
+ needs: unknown[] | Record<string, unknown>;
8228
+ }>;
8229
+ }>;
8230
+ };
8231
+
8232
+ /** What change what a reseller's member may do takes: `resellers.updateMember`. */
8233
+ export interface ResellersUpdateMemberParams {
8234
+ /** What they may do, by name: `products.view`, `products.buy`, `orders.view`, `orders.keys`, `balance.view`, `balance.topup`, `api.keys`, `api.urls`, `team.view`, `team.manage`, `alerts.manage`. */
8235
+ permissions: string[];
8236
+ }
8237
+
8238
+ /** What change what a reseller's member may do answers: `resellers.updateMember`. */
8239
+ export type ResellersUpdateMemberResult = {
8240
+ id: string;
8241
+ name: string;
8242
+ website: string;
8243
+ email: string;
8244
+ tierId: string;
8245
+ tierName: string;
8246
+ tierDiscount: number;
8247
+ discount: unknown;
8248
+ paysOff: number;
8249
+ balance: number;
8250
+ status: string;
8251
+ members: number;
8252
+ spent30: number;
8253
+ lastOrderAt: unknown;
8254
+ joinedAt: string;
8255
+ removedAt: unknown;
8256
+ inviteName: unknown;
8257
+ team: {
8258
+ id: string;
8259
+ email: string;
8260
+ owner: boolean;
8261
+ permissions: string[];
8262
+ access: {
8263
+ buy: boolean;
8264
+ topup: boolean;
8265
+ keys: boolean;
8266
+ api: boolean;
8267
+ };
8268
+ twoFactor: boolean;
8269
+ verified: boolean;
8270
+ lastSeenAt: unknown;
8271
+ joinedAt: string;
8272
+ }[];
8273
+ catalogue: Array<{
8274
+ id: string;
8275
+ label: string;
8276
+ permissions: Array<{
8277
+ key: string;
8278
+ label: string;
8279
+ about: string;
8280
+ needs: unknown[] | Record<string, unknown>;
8281
+ }>;
8282
+ }>;
8283
+ };
8284
+
8285
+ /** What remove a reseller's member answers: `resellers.removeMember`. */
8286
+ export type ResellersRemoveMemberResult = {
8287
+ id: string;
8288
+ name: string;
8289
+ website: string;
8290
+ email: string;
8291
+ tierId: string;
8292
+ tierName: string;
8293
+ tierDiscount: number;
8294
+ discount: unknown;
8295
+ paysOff: number;
8296
+ balance: number;
8297
+ status: string;
8298
+ members: number;
8299
+ spent30: number;
8300
+ lastOrderAt: string;
8301
+ joinedAt: string;
8302
+ removedAt: unknown;
8303
+ inviteName: unknown;
8304
+ team: {
8305
+ id: string;
8306
+ email: string;
8307
+ owner: boolean;
8308
+ permissions: string[];
8309
+ access: {
8310
+ buy: boolean;
8311
+ topup: boolean;
8312
+ keys: boolean;
8313
+ api: boolean;
8314
+ };
8315
+ twoFactor: boolean;
8316
+ verified: boolean;
8317
+ lastSeenAt: unknown;
8318
+ joinedAt: string;
8319
+ }[];
8320
+ catalogue: Array<{
8321
+ id: string;
8322
+ label: string;
8323
+ permissions: Array<{
8324
+ key: string;
8325
+ label: string;
8326
+ about: string;
8327
+ needs: unknown[] | Record<string, unknown>;
8328
+ }>;
8329
+ }>;
8330
+ };
8331
+
7546
8332
  /** What list blacklist rules takes: `blacklist.list`. */
7547
8333
  export interface BlacklistListParams {
7548
8334
  /**
@@ -11440,6 +12226,20 @@ export interface ShoplyResourcesKey {
11440
12226
  * @see https://docs.shoply.gg/api-reference/api-key/get-the-current-key
11441
12227
  */
11442
12228
  show(options?: RequestOptions): Promise<KeyShowResult>;
12229
+ /**
12230
+ * **Revoke the current key**
12231
+ *
12232
+ * Revokes the key in the request, for good: from the next request on it is refused as any revoked key is, and it is listed as revoked under Developers, API Keys. Answers the key as it now is. This is how a program that was handed a key gives it back when it is done with it, as `shoply logout` does.
12233
+ *
12234
+ * An app's token is not revoked here: an app gives its token back at `POST /v1/oauth/revoke`.
12235
+ *
12236
+ * Any live key may ask it, whatever its permissions.
12237
+ *
12238
+ * Any live API key may call this, whatever its permissions.
12239
+ *
12240
+ * @see https://docs.shoply.gg/api-reference/api-key/revoke-the-current-key
12241
+ */
12242
+ destroy(options?: RequestOptions): Promise<KeyDestroyResult>;
11443
12243
  }
11444
12244
 
11445
12245
  export interface ShoplyResourcesStore {
@@ -11730,7 +12530,7 @@ export interface ShoplyResourcesStorefronts {
11730
12530
  /**
11731
12531
  * **Get a storefront's code**
11732
12532
  *
11733
- * Whether this storefront can be edited as code (`available`), whether it has files of its own yet (`started`), and when it has: every file with its SHA-256 `hash`, what is wrong in the templates (`code.problems`), the count of changes to its files (`code.rev`) and to its design (`version`), which "Publish a storefront's code" takes, and a link to look at the draft on the store's own address for an hour (`preview`: its `url`, with `param` set to `token` in the query string). A file's text is "Get a file", or every file at once in "Export a storefront".
12533
+ * Whether this storefront can be edited as code (`available`), whether it has files of its own yet (`started`), and when it has: every file with its SHA-256 `hash`, what is wrong in the templates (`code.problems`), the count of changes to its files (`code.rev`) and to its design (`version`), which "Publish a storefront's code" takes, and a link to look at the draft on the store's own address for an hour (`preview`: its `url`, with `param` set to `token` in the query string). A file you changed that a later release of the theme changed too has `behind`, the release you edited it on (null on every other file), and the storefront says how many in `storefront.themeChanged`; "Get a file" answers what the release changed in it. A file's text is "Get a file", or every file at once in "Export a storefront".
11734
12534
  *
11735
12535
  * Needs the `storefronts.read` permission (Read Storefronts).
11736
12536
  *
@@ -11740,7 +12540,7 @@ export interface ShoplyResourcesStorefronts {
11740
12540
  /**
11741
12541
  * **Give a storefront files**
11742
12542
  *
11743
- * Gives a storefront files of its own, copied from its theme's, as opening the code studio does. Until then it is drawn from its theme's files and follows them as they change. Nothing buyers see changes. Refused with `code_needs_copy` for a storefront from before its theme could be edited as code: make a copy of it ("Create a storefront" with `from`) and work on that. Answers as "Get a storefront's code".
12543
+ * Gives a storefront files of its own, copied from its theme's, as opening the code studio does. Until then it is drawn from its theme's files and follows them as they change; from then on a file of the theme's you never change goes on following the theme's releases, in the draft and in what is live, and only the files you change stay as you wrote them. Nothing buyers see changes. Refused with `code_needs_copy` for a storefront from before its theme could be edited as code: make a copy of it ("Create a storefront" with `from`) and work on that. Answers as "Get a storefront's code".
11744
12544
  *
11745
12545
  * Needs the `storefronts.write` permission (Change Storefronts).
11746
12546
  *
@@ -11750,7 +12550,7 @@ export interface ShoplyResourcesStorefronts {
11750
12550
  /**
11751
12551
  * **Get a file**
11752
12552
  *
11753
- * One file of the storefront's draft, with its text in `content` and its SHA-256 in `hash`. `file_not_found` for a path it does not have.
12553
+ * One file of the storefront's draft, with its text in `content` and its SHA-256 in `hash`. `file_not_found` for a path it does not have. For a file you changed that a later release of the theme changed too (`behind` is the release you edited it on), `themeChange` has the theme's text on either side of that release: `before`, from the release in `from`, and `now`. Saving the theme's text into the file, or resetting it in the code studio, clears `behind`, as Keep Mine there does.
11754
12554
  *
11755
12555
  * Needs the `storefronts.read` permission (Read Storefronts).
11756
12556
  *
@@ -13968,6 +14768,417 @@ export interface ShoplyResourcesTeams {
13968
14768
  delete(teamId: string, options?: RequestOptions): Promise<TeamsDeleteResult>;
13969
14769
  }
13970
14770
 
14771
+ export interface ShoplyResourcesResellers {
14772
+ /**
14773
+ * **Get the reseller overview**
14774
+ *
14775
+ * What the workspace's Overview shows: the panel (`panel`: whether it is on, its currency and smallest top-up), its address, the last 30 days' figures (`figures`: sales, orders and top-ups, and `balanceHeld`, every reseller's balance added up), what waits on the store (`waiting`, most pressing first: the panel off, nothing for sale, no invite link on, a product running out of keys) and the five resellers who spent most in 30 days (`top`). None of it is in the store's own figures: a reseller's purchases and top-ups are never its orders or revenue.
14776
+ *
14777
+ * 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.
14778
+ *
14779
+ * @see https://docs.shoply.gg/api-reference/resellers/get-the-reseller-overview
14780
+ */
14781
+ overview(options?: RequestOptions): Promise<ResellersOverviewResult>;
14782
+ /**
14783
+ * **Get the panel's settings**
14784
+ *
14785
+ * Whether the panel is on, its currency and its smallest top-up. `meta` has its addresses (`address`, its own domain once it is live; `shoplyAddress`, always its store's myshoply.gg one; `joinAddress`, what an invite link starts with), the invite links and tiers, `balanceHeld`, the bounds a smallest top-up is held to, and the currencies it can be in.
14786
+ *
14787
+ * Needs the `resellers.read` permission (Read Resellers).
14788
+ *
14789
+ * @see https://docs.shoply.gg/api-reference/resellers/get-the-panels-settings
14790
+ */
14791
+ settings(options?: RequestOptions): Promise<ResellersSettingsResult>;
14792
+ /**
14793
+ * **Update the panel's settings**
14794
+ *
14795
+ * Only what is sent changes. Switched off, nobody can join, sign in or buy, and every balance and order is kept. The currency changes only while every reseller's balance is zero.
14796
+ *
14797
+ * Needs the `resellers.write` permission (Change Resellers).
14798
+ *
14799
+ * @see https://docs.shoply.gg/api-reference/resellers/update-the-panels-settings
14800
+ */
14801
+ updateSettings(params?: ResellersUpdateSettingsParams, options?: RequestOptions): Promise<ResellersUpdateSettingsResult>;
14802
+ /**
14803
+ * **Get the panel's domain**
14804
+ *
14805
+ * The panel's own domain, if it has one, with where it stands (`status`, and `checks`: whether it points here, whether its TXT record has proved it the store's, and whether its certificate is issued), and `cnameTarget`. The panel has a domain of its own as the store does: point a CNAME record for it at `cnameTarget`, and it goes live once that is seen and its certificate is issued. Its store's myshoply.gg address answers too, always.
14806
+ *
14807
+ * Needs the `resellers.read` permission (Read Resellers).
14808
+ *
14809
+ * @see https://docs.shoply.gg/api-reference/resellers/get-the-panels-domain
14810
+ */
14811
+ domain(options?: RequestOptions): Promise<ResellersDomainResult>;
14812
+ /**
14813
+ * **Connect a domain to the panel**
14814
+ *
14815
+ * The panel has a domain of its own as the store does: point a CNAME record for it at `cnameTarget`, and it goes live once that is seen and its certificate is issued. Its store's myshoply.gg address answers too, always. A panel has one domain: remove it to connect another. Only a key the store's owner made can do this.
14816
+ *
14817
+ * Needs the `resellers.write` permission (Change Resellers). Only a key the store's owner made, or an app the owner connected, can call it: one made by somebody on the store's team is refused (`owner_only`).
14818
+ *
14819
+ * @see https://docs.shoply.gg/api-reference/resellers/connect-a-domain-to-the-panel
14820
+ */
14821
+ connectDomain(params: ResellersConnectDomainParams, options?: RequestOptions): Promise<ResellersConnectDomainResult>;
14822
+ /**
14823
+ * **Remove the panel's domain**
14824
+ *
14825
+ * Disconnects the panel's own domain. It goes on answering at its store's myshoply.gg address. Only a key the store's owner made can do this.
14826
+ *
14827
+ * Needs the `resellers.write` permission (Change Resellers). Only a key the store's owner made, or an app the owner connected, can call it: one made by somebody on the store's team is refused (`owner_only`).
14828
+ *
14829
+ * @see https://docs.shoply.gg/api-reference/resellers/remove-the-panels-domain
14830
+ */
14831
+ removeDomain(options?: RequestOptions): Promise<ResellersRemoveDomainResult>;
14832
+ /**
14833
+ * **List resellers**
14834
+ *
14835
+ * Every reseller of the store, the newest first, but those removed: a business, by the website it joined with (`name`), with its owner's email address, its tier and its own discount (`paysOff` is what it pays off every Reseller Price), its `balance`, whether it is `active` or `paused`, how many are on its team, and what it spent in 30 days. `meta.limit` is how many resellers the store's plan holds, so the list is not paged.
14836
+ *
14837
+ * Needs the `resellers.read` permission (Read Resellers).
14838
+ *
14839
+ * @see https://docs.shoply.gg/api-reference/resellers/list-resellers
14840
+ */
14841
+ list(options?: RequestOptions): Promise<ResellersListResult>;
14842
+ /**
14843
+ * **Get a reseller**
14844
+ *
14845
+ * One reseller as the list has them, with the invite link they joined by (`inviteName`) and their `team`: each member's email address, whether they are its owner, and what they may do (`permissions`, from `catalogue`). `meta.history` is their balance line by line, the newest 50 first. A reseller the store removed is still answered, with `removedAt` and no team.
14846
+ *
14847
+ * Needs the `resellers.read` permission (Read Resellers).
14848
+ *
14849
+ * @see https://docs.shoply.gg/api-reference/resellers/get-a-reseller
14850
+ */
14851
+ get(resellerId: string, options?: RequestOptions): Promise<ResellersGetResult>;
14852
+ /**
14853
+ * **Update a reseller**
14854
+ *
14855
+ * Only what is sent changes. A paused reseller signs in and reads their orders, and cannot buy or top up. Refused with `reseller_removed` for one the store removed.
14856
+ *
14857
+ * Needs the `resellers.write` permission (Change Resellers).
14858
+ *
14859
+ * @see https://docs.shoply.gg/api-reference/resellers/update-a-reseller
14860
+ */
14861
+ update(resellerId: string, params?: ResellersUpdateParams, options?: RequestOptions): Promise<ResellersUpdateResult>;
14862
+ /**
14863
+ * **Remove a reseller**
14864
+ *
14865
+ * Removes a reseller from the store: their team can no longer sign in, and their API keys, delivery URLs and team invites are deleted. Their records are kept: their orders and top-ups stay in List reseller orders and List top-ups, and Get a reseller still answers them, with `removedAt` and their balance history. Refused with `reseller_has_balance` while they hold a balance: set it to zero first. A removed reseller is in no list of resellers, and does not count against the store's plan.
14866
+ *
14867
+ * Needs the `resellers.write` permission (Change Resellers).
14868
+ *
14869
+ * @see https://docs.shoply.gg/api-reference/resellers/remove-a-reseller
14870
+ */
14871
+ delete(resellerId: string, options?: RequestOptions): Promise<ResellersDeleteResult>;
14872
+ /**
14873
+ * **Change a reseller's balance**
14874
+ *
14875
+ * Adds to, takes from or sets a reseller's balance, which never goes below zero or past 1,000,000. Shoply moves no money: this is for what you settled with them yourself. The note is what they read in their own history. A removed reseller's balance does not move. Send an `Idempotency-Key` with this request.
14876
+ *
14877
+ * Needs the `resellers.balance` permission (Change Reseller Balances).
14878
+ *
14879
+ * @see https://docs.shoply.gg/api-reference/resellers/change-a-resellers-balance
14880
+ */
14881
+ setBalance(resellerId: string, params: ResellersSetBalanceParams, options?: RequestOptions): Promise<ResellersSetBalanceResult>;
14882
+ /**
14883
+ * **Change what a reseller's member may do**
14884
+ *
14885
+ * Saves a member's permissions whole. What a permission leans on is added with it. The team's owner can always do everything, so theirs is refused.
14886
+ *
14887
+ * Needs the `resellers.write` permission (Change Resellers).
14888
+ *
14889
+ * @see https://docs.shoply.gg/api-reference/resellers/change-what-a-resellers-member-may-do
14890
+ */
14891
+ updateMember(resellerId: string, memberId: string, params: ResellersUpdateMemberParams, options?: RequestOptions): Promise<ResellersUpdateMemberResult>;
14892
+ /**
14893
+ * **Remove a reseller's member**
14894
+ *
14895
+ * Takes one person off a reseller's team. Their sessions and the API keys they made stop working. The team's owner cannot be removed.
14896
+ *
14897
+ * Needs the `resellers.write` permission (Change Resellers).
14898
+ *
14899
+ * @see https://docs.shoply.gg/api-reference/resellers/remove-a-resellers-member
14900
+ */
14901
+ removeMember(resellerId: string, memberId: string, options?: RequestOptions): Promise<ResellersRemoveMemberResult>;
14902
+ }
14903
+
14904
+ export interface ShoplyResourcesResellerProducts {
14905
+ /**
14906
+ * **List what the panel sells**
14907
+ *
14908
+ * Every option of the store's products the panel sells, a row an option: its Reseller Price (`price`), the fewest bought at once (`minQty`), the most one reseller may buy of it in a day (`dailyCap`), the most a tier or a reseller's own discount may take off it (`maxDiscount`), whether it is on sale (`enabled`) and its stock. `meta.badges` is each product's status and labels on the panel, by its ID, and `meta.tiers` the tiers.
14909
+ *
14910
+ * Needs the `resellers.read` permission (Read Resellers).
14911
+ *
14912
+ * @see https://docs.shoply.gg/api-reference/resellers/list-what-the-panel-sells
14913
+ */
14914
+ list(options?: RequestOptions): Promise<ResellerProductsListResult>;
14915
+ /**
14916
+ * **Sell products on the panel**
14917
+ *
14918
+ * Puts options on the panel or changes them, up to 1,000 at once, all or none: one row refused leaves every row as it was, and the errors are keyed by the option and the field (`<variantId>.price`). An option not sent is left as it is. Answers every row the panel sells.
14919
+ *
14920
+ * Needs the `resellers.write` permission (Change Resellers).
14921
+ *
14922
+ * @see https://docs.shoply.gg/api-reference/resellers/sell-products-on-the-panel
14923
+ */
14924
+ save(params: ResellerProductsSaveParams, options?: RequestOptions): Promise<ResellerProductsSaveResult>;
14925
+ /**
14926
+ * **List what the panel can sell**
14927
+ *
14928
+ * The store's products with the options a panel can sell: those delivered as license keys or by dynamic delivery. A file is never sold to resellers. `meta.categories` is the store's categories they are in.
14929
+ *
14930
+ * Needs the `resellers.read` permission (Read Resellers).
14931
+ *
14932
+ * @see https://docs.shoply.gg/api-reference/resellers/list-what-the-panel-can-sell
14933
+ */
14934
+ pickable(options?: RequestOptions): Promise<ResellerProductsPickableResult>;
14935
+ /**
14936
+ * **Stop selling an option on the panel**
14937
+ *
14938
+ * Takes one option off the panel. What resellers bought of it stays on record. Answers every row the panel still sells.
14939
+ *
14940
+ * Needs the `resellers.write` permission (Change Resellers).
14941
+ *
14942
+ * @see https://docs.shoply.gg/api-reference/resellers/stop-selling-an-option-on-the-panel
14943
+ */
14944
+ remove(variantId: string, options?: RequestOptions): Promise<ResellerProductsRemoveResult>;
14945
+ /**
14946
+ * **Set a product's status and labels on the panel**
14947
+ *
14948
+ * What resellers read beside a product on the panel, never the product's own badges: one status and labels, as a product's badges are written. An empty list takes them off. 404 for a product the panel does not sell. Answers every product's, by its ID.
14949
+ *
14950
+ * Needs the `resellers.write` permission (Change Resellers).
14951
+ *
14952
+ * @see https://docs.shoply.gg/api-reference/resellers/set-a-products-status-and-labels-on-the-panel
14953
+ */
14954
+ badges(productId: string, params: ResellerProductsBadgesParams, options?: RequestOptions): Promise<ResellerProductsBadgesResult>;
14955
+ }
14956
+
14957
+ export interface ShoplyResourcesResellerTiers {
14958
+ /**
14959
+ * **List tiers**
14960
+ *
14961
+ * The panel's tiers, each a discount off every Reseller Price, with how many resellers are in it. A reseller pays their own discount where they have one, else their tier's. `meta.limit` is how many tiers the store's plan holds.
14962
+ *
14963
+ * Needs the `resellers.read` permission (Read Resellers).
14964
+ *
14965
+ * @see https://docs.shoply.gg/api-reference/resellers/list-tiers
14966
+ */
14967
+ list(options?: RequestOptions): Promise<ResellerTiersListResult>;
14968
+ /**
14969
+ * **Create a tier**
14970
+ *
14971
+ * Adds a tier, up to as many as the store's plan holds. A name is used once a panel.
14972
+ *
14973
+ * Needs the `resellers.write` permission (Change Resellers).
14974
+ *
14975
+ * @see https://docs.shoply.gg/api-reference/resellers/create-a-tier
14976
+ */
14977
+ create(params: ResellerTiersCreateParams, options?: RequestOptions): Promise<ResellerTiersCreateResult>;
14978
+ /**
14979
+ * **Update a tier**
14980
+ *
14981
+ * Saves the tier whole: its name and discount. Its resellers pay the new discount from their next purchase.
14982
+ *
14983
+ * Needs the `resellers.write` permission (Change Resellers).
14984
+ *
14985
+ * @see https://docs.shoply.gg/api-reference/resellers/update-a-tier
14986
+ */
14987
+ update(tierId: string, params: ResellerTiersUpdateParams, options?: RequestOptions): Promise<ResellerTiersUpdateResult>;
14988
+ /**
14989
+ * **Delete a tier**
14990
+ *
14991
+ * Its resellers and invite links are left in no tier, which is the Reseller Price. Answers the tiers that are left.
14992
+ *
14993
+ * Needs the `resellers.write` permission (Change Resellers).
14994
+ *
14995
+ * @see https://docs.shoply.gg/api-reference/resellers/delete-a-tier
14996
+ */
14997
+ delete(tierId: string, options?: RequestOptions): Promise<ResellerTiersDeleteResult>;
14998
+ }
14999
+
15000
+ export interface ShoplyResourcesResellerInvites {
15001
+ /**
15002
+ * **List invite links**
15003
+ *
15004
+ * The links a business joins the panel by, the newest first, each with its `code` (the link is `meta.joinAddress` followed by it), the tier it starts them in, how many have joined through it (`uses`) and how many may, when it ends, whether it is switched on (`enabled`) and whether it can still be used (`live`). `meta.limits` says how many may be live at once on the store's plan, and how many are.
15005
+ *
15006
+ * Needs the `resellers.read` permission (Read Resellers).
15007
+ *
15008
+ * @see https://docs.shoply.gg/api-reference/resellers/list-invite-links
15009
+ */
15010
+ list(options?: RequestOptions): Promise<ResellerInvitesListResult>;
15011
+ /**
15012
+ * **Create an invite link**
15013
+ *
15014
+ * Makes a link a business joins the panel by, with their website, an email address and a password, and no approval. Refused with `reseller_invite_limit` where the store's plan has as many on as it holds.
15015
+ *
15016
+ * Needs the `resellers.write` permission (Change Resellers).
15017
+ *
15018
+ * @see https://docs.shoply.gg/api-reference/resellers/create-an-invite-link
15019
+ */
15020
+ create(params?: ResellerInvitesCreateParams, options?: RequestOptions): Promise<ResellerInvitesCreateResult>;
15021
+ /**
15022
+ * **Update an invite link**
15023
+ *
15024
+ * Only what is sent changes: send `enabled: false` to switch a link off. Its address stays the same.
15025
+ *
15026
+ * Needs the `resellers.write` permission (Change Resellers).
15027
+ *
15028
+ * @see https://docs.shoply.gg/api-reference/resellers/update-an-invite-link
15029
+ */
15030
+ update(inviteId: string, params?: ResellerInvitesUpdateParams, options?: RequestOptions): Promise<ResellerInvitesUpdateResult>;
15031
+ /**
15032
+ * **Delete an invite link**
15033
+ *
15034
+ * Whoever joined through it stays a reseller; only the link goes. Answers the links that are left.
15035
+ *
15036
+ * Needs the `resellers.write` permission (Change Resellers).
15037
+ *
15038
+ * @see https://docs.shoply.gg/api-reference/resellers/delete-an-invite-link
15039
+ */
15040
+ delete(inviteId: string, options?: RequestOptions): Promise<ResellerInvitesDeleteResult>;
15041
+ }
15042
+
15043
+ export interface ShoplyResourcesResellerAnnouncements {
15044
+ /**
15045
+ * **List announcements**
15046
+ *
15047
+ * What the store tells its resellers, in a bar on every page of the panel, pinned ones first, then the newest. `meta.resellers` is how many people can read them (everybody on every reseller's team), and `meta.bounds` the lengths and how many a panel keeps.
15048
+ *
15049
+ * Needs the `resellers.read` permission (Read Resellers).
15050
+ *
15051
+ * @see https://docs.shoply.gg/api-reference/resellers/list-announcements
15052
+ */
15053
+ list(options?: RequestOptions): Promise<ResellerAnnouncementsListResult>;
15054
+ /**
15055
+ * **Post an announcement**
15056
+ *
15057
+ * Every reseller sees it on the panel from their next page. Nobody is emailed. A panel keeps up to 100: past that, a new one is refused with `announcement_limit`.
15058
+ *
15059
+ * Needs the `resellers.write` permission (Change Resellers).
15060
+ *
15061
+ * @see https://docs.shoply.gg/api-reference/resellers/post-an-announcement
15062
+ */
15063
+ create(params: ResellerAnnouncementsCreateParams, options?: RequestOptions): Promise<ResellerAnnouncementsCreateResult>;
15064
+ /**
15065
+ * **Update an announcement**
15066
+ *
15067
+ * Saves it whole: its title, what it says and whether it is pinned.
15068
+ *
15069
+ * Needs the `resellers.write` permission (Change Resellers).
15070
+ *
15071
+ * @see https://docs.shoply.gg/api-reference/resellers/update-an-announcement
15072
+ */
15073
+ update(announcementId: string, params: ResellerAnnouncementsUpdateParams, options?: RequestOptions): Promise<ResellerAnnouncementsUpdateResult>;
15074
+ /**
15075
+ * **Delete an announcement**
15076
+ *
15077
+ * Takes it off the panel. Answers the announcements that are left.
15078
+ *
15079
+ * Needs the `resellers.write` permission (Change Resellers).
15080
+ *
15081
+ * @see https://docs.shoply.gg/api-reference/resellers/delete-an-announcement
15082
+ */
15083
+ delete(announcementId: string, options?: RequestOptions): Promise<ResellerAnnouncementsDeleteResult>;
15084
+ }
15085
+
15086
+ export interface ShoplyResourcesResellerOrders {
15087
+ /**
15088
+ * **List reseller orders**
15089
+ *
15090
+ * What resellers bought, newest first, 25 a page: who (`reseller`, and `boughtBy`, the member of their team), what and how many, the `total` taken off their balance, and how it was bought (`via`: `panel`, `api` for their own API, or `url` for a delivery URL). These are never the store's orders: List orders does not have them, and no order webhook is sent for them. `meta.counts` is how many each way, and `meta.figures` the last 30 days'.
15091
+ *
15092
+ * Needs the `resellers.read` permission (Read Resellers).
15093
+ *
15094
+ * @see https://docs.shoply.gg/api-reference/resellers/list-reseller-orders
15095
+ */
15096
+ list(params?: ResellerOrdersListParams, options?: RequestOptions): PagePromise<ResellerOrdersListItem>;
15097
+ /**
15098
+ * **Export reseller orders**
15099
+ *
15100
+ * 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, up to 50,000, 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.
15101
+ *
15102
+ * 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.
15103
+ *
15104
+ * @see https://docs.shoply.gg/api-reference/resellers/export-reseller-orders
15105
+ */
15106
+ export(params?: ResellerOrdersExportParams, options?: RequestOptions): Promise<Response>;
15107
+ }
15108
+
15109
+ export interface ShoplyResourcesResellerTopUps {
15110
+ /**
15111
+ * **List top-ups**
15112
+ *
15113
+ * Money resellers put on their balance, paid on the store's checkout with its own payment methods, newest first, 25 a page. `state` is `paid`, `waiting` (for the reseller to pay), `checking` (paid with one of the store's custom methods, and waiting for the store), `expired` (not paid in the store's unpaid order time) or `taken_back` (its payment was taken back by the bank, and came off the balance). A top-up's `id` is the order it is paid with. `meta.counts` is how many in each state, and `meta.figures` the last 30 days'.
15114
+ *
15115
+ * Needs the `resellers.read` permission (Read Resellers).
15116
+ *
15117
+ * @see https://docs.shoply.gg/api-reference/resellers/list-top-ups
15118
+ */
15119
+ list(params?: ResellerTopUpsListParams, options?: RequestOptions): PagePromise<ResellerTopUpsListItem>;
15120
+ /**
15121
+ * **Export top-ups**
15122
+ *
15123
+ * 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, up to 50,000, 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.
15124
+ *
15125
+ * 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.
15126
+ *
15127
+ * @see https://docs.shoply.gg/api-reference/resellers/export-top-ups
15128
+ */
15129
+ export(params?: ResellerTopUpsExportParams, options?: RequestOptions): Promise<Response>;
15130
+ /**
15131
+ * **Get a top-up's custom payment**
15132
+ *
15133
+ * A top-up paid with one of the store's custom methods: the method, what the reseller sent with it (a reference, a picture) and where it stands (`status` `review` while it waits for the store). Null for a top-up paid any other way. `meta.gateway` is the method.
15134
+ *
15135
+ * Needs the `resellers.read` permission (Read Resellers).
15136
+ *
15137
+ * @see https://docs.shoply.gg/api-reference/resellers/get-a-top-ups-custom-payment
15138
+ */
15139
+ payment(topUpId: string, options?: RequestOptions): Promise<ResellerTopUpsPaymentResult>;
15140
+ /**
15141
+ * **Get a top-up's proof of payment**
15142
+ *
15143
+ * The picture a reseller sent with a custom payment, as the file itself: a PNG, JPEG or WebP. 404 where the top-up has none.
15144
+ *
15145
+ * Needs the `resellers.read` permission (Read Resellers).
15146
+ *
15147
+ * @see https://docs.shoply.gg/api-reference/resellers/get-a-top-ups-proof-of-payment
15148
+ */
15149
+ proof(topUpId: string, options?: RequestOptions): Promise<Response>;
15150
+ /**
15151
+ * **Approve a top-up's custom payment**
15152
+ *
15153
+ * Says the money a reseller sent with one of the store's custom methods arrived, and puts the top-up on their balance. Shoply never sees that money: check it reached you first. Refused with `payment_not_approved` where there is nothing to approve. Send an `Idempotency-Key` with this request.
15154
+ *
15155
+ * Needs the `resellers.balance` permission (Change Reseller Balances).
15156
+ *
15157
+ * @see https://docs.shoply.gg/api-reference/resellers/approve-a-top-ups-custom-payment
15158
+ */
15159
+ approve(topUpId: string, options?: RequestOptions): Promise<ResellerTopUpsApproveResult>;
15160
+ /**
15161
+ * **Reject a top-up's custom payment**
15162
+ *
15163
+ * Cancels the top-up, and nothing goes on the balance. The reseller is not emailed. Refused with `payment_not_rejected` where there is nothing to reject.
15164
+ *
15165
+ * Needs the `resellers.balance` permission (Change Reseller Balances).
15166
+ *
15167
+ * @see https://docs.shoply.gg/api-reference/resellers/reject-a-top-ups-custom-payment
15168
+ */
15169
+ reject(topUpId: string, options?: RequestOptions): Promise<ResellerTopUpsRejectResult>;
15170
+ /**
15171
+ * **Mark a top-up as paid**
15172
+ *
15173
+ * A top-up waiting for payment or expired goes onto the reseller's balance as if its payment had arrived, for money that reached you another way. It cannot be undone. Refused with `top_up_not_payable` for one paid already or taken back, and for one whose custom payment waits for you: approve or reject that instead. Send an `Idempotency-Key` with this request.
15174
+ *
15175
+ * Needs the `resellers.balance` permission (Change Reseller Balances).
15176
+ *
15177
+ * @see https://docs.shoply.gg/api-reference/resellers/mark-a-top-up-as-paid
15178
+ */
15179
+ markPaid(topUpId: string, options?: RequestOptions): Promise<ResellerTopUpsMarkPaidResult>;
15180
+ }
15181
+
13971
15182
  export interface ShoplyResourcesBlacklist {
13972
15183
  /**
13973
15184
  * **List blacklist rules**
@@ -14850,6 +16061,13 @@ export interface ShoplyResources {
14850
16061
  tickets: ShoplyResourcesTickets;
14851
16062
  team: ShoplyResourcesTeam;
14852
16063
  teams: ShoplyResourcesTeams;
16064
+ resellers: ShoplyResourcesResellers;
16065
+ resellerProducts: ShoplyResourcesResellerProducts;
16066
+ resellerTiers: ShoplyResourcesResellerTiers;
16067
+ resellerInvites: ShoplyResourcesResellerInvites;
16068
+ resellerAnnouncements: ShoplyResourcesResellerAnnouncements;
16069
+ resellerOrders: ShoplyResourcesResellerOrders;
16070
+ resellerTopUps: ShoplyResourcesResellerTopUps;
14853
16071
  blacklist: ShoplyResourcesBlacklist;
14854
16072
  allowlist: ShoplyResourcesAllowlist;
14855
16073
  fraudEvents: ShoplyResourcesFraudEvents;
@@ -15240,6 +16458,13 @@ export type WebhookEventName =
15240
16458
  | "team.member_joined"
15241
16459
  | "team.member_moved"
15242
16460
  | "team.member_left"
16461
+ | "reseller.joined"
16462
+ | "reseller.updated"
16463
+ | "reseller.removed"
16464
+ | "reseller.balance_changed"
16465
+ | "reseller.top_up_paid"
16466
+ | "reseller.top_up_submitted"
16467
+ | "reseller.order_completed"
15243
16468
  | "fraud.checkout_blocked"
15244
16469
  | "fraud.checkout_allowed"
15245
16470
  | "webhook.test";
@@ -15247,7 +16472,7 @@ export type WebhookEventName =
15247
16472
  /** What each event's `data` holds. */
15248
16473
  export interface WebhookEventData {
15249
16474
  /**
15250
- * An order was made: a buyer started a checkout, or the store raised an invoice.
16475
+ * An order was made: a buyer's checkout opened for the first time, or the store raised an invoice.
15251
16476
  *
15252
16477
  * `data`: The order, as [Get an order](https://docs.shoply.gg/api-reference/orders/get-an-order) answers it, with `payments`, every payment opened for it, and `invoice` where the store raised it as one.
15253
16478
  */
@@ -15624,6 +16849,48 @@ export interface WebhookEventData {
15624
16849
  * `data`: For `team.created` and `team.updated` the team as [Get the team](https://docs.shoply.gg/api-reference/teams/get-the-team) answers it in `teams`, without its `people`; `team.deleted` has its `id` and `name`. The three `team.member_` events have the person as Get the team answers them on a team (`id`, `teamId`, `name`, `email`, `joinedAt`), with `team`, the team they are on now or were on, by `id` and `name`; `team.member_moved` adds `from`, the team they left, and `team.member_left` adds `reason` (`removed` or `left`) and `keysStopped`.
15625
16850
  */
15626
16851
  "team.member_left": Record<string, unknown>;
16852
+ /**
16853
+ * A business joined the store's reseller panel through one of its invite links.
16854
+ *
16855
+ * `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 `chargeback`), `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.
16856
+ */
16857
+ "reseller.joined": Record<string, unknown>;
16858
+ /**
16859
+ * 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.
16860
+ *
16861
+ * `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 `chargeback`), `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.
16862
+ */
16863
+ "reseller.updated": Record<string, unknown>;
16864
+ /**
16865
+ * The store removed a reseller: their team can no longer sign in. Their orders, top-ups and balance history are kept.
16866
+ *
16867
+ * `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 `chargeback`), `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.
16868
+ */
16869
+ "reseller.removed": Record<string, unknown>;
16870
+ /**
16871
+ * A reseller's balance changed: a top-up paid, a purchase, a change by hand, or a top-up's payment taken back.
16872
+ *
16873
+ * `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 `chargeback`), `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.
16874
+ */
16875
+ "reseller.balance_changed": Record<string, unknown>;
16876
+ /**
16877
+ * A reseller's top-up was paid, or marked paid by the store, and is on their balance.
16878
+ *
16879
+ * `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 `chargeback`), `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.
16880
+ */
16881
+ "reseller.top_up_paid": Record<string, unknown>;
16882
+ /**
16883
+ * 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`.
16884
+ *
16885
+ * `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 `chargeback`), `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.
16886
+ */
16887
+ "reseller.top_up_submitted": Record<string, unknown>;
16888
+ /**
16889
+ * A reseller bought from the panel, in the panel itself, with their API or by a delivery URL, paid from their balance.
16890
+ *
16891
+ * `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 `chargeback`), `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.
16892
+ */
16893
+ "reseller.order_completed": Record<string, unknown>;
15627
16894
  /**
15628
16895
  * A checkout was turned away by the blacklist, a blocked country, the VPN rule or the limit on unpaid orders. The same buyer turned away again for the same reason within ten minutes is not sent again.
15629
16896
  *