@delopay/sdk 0.371.0 → 0.373.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.
package/dist/index.cjs CHANGED
@@ -107,6 +107,7 @@ __export(index_exports, {
107
107
  GOOGLE_PAY_BUTTON_COLORS: () => GOOGLE_PAY_BUTTON_COLORS,
108
108
  GOOGLE_PAY_BUTTON_TYPES: () => GOOGLE_PAY_BUTTON_TYPES,
109
109
  IdentityVerifications: () => IdentityVerifications,
110
+ Industries: () => Industries,
110
111
  InvoiceSettingsResource: () => InvoiceSettingsResource,
111
112
  Invoices: () => Invoices,
112
113
  LOCALIZABLE_COPY_FIELDS: () => LOCALIZABLE_COPY_FIELDS,
@@ -7319,6 +7320,91 @@ var ShopLabels = class {
7319
7320
  }
7320
7321
  };
7321
7322
 
7323
+ // src/resources/industries.ts
7324
+ var Industries = class {
7325
+ constructor(request) {
7326
+ this.request = request;
7327
+ }
7328
+ /**
7329
+ * The merchant's industry: the default its projects and shops inherit.
7330
+ *
7331
+ * `GET /industries/merchant`
7332
+ */
7333
+ async retrieveMerchant() {
7334
+ return this.request("GET", "/industries/merchant");
7335
+ }
7336
+ /**
7337
+ * Select the merchant's industry.
7338
+ *
7339
+ * `PUT /industries/merchant`
7340
+ */
7341
+ async setMerchant(params) {
7342
+ return this.request("PUT", "/industries/merchant", { body: params });
7343
+ }
7344
+ /**
7345
+ * Clear the merchant's industry.
7346
+ *
7347
+ * `DELETE /industries/merchant`
7348
+ */
7349
+ async clearMerchant() {
7350
+ return this.request("DELETE", "/industries/merchant");
7351
+ }
7352
+ /**
7353
+ * One project's industry.
7354
+ *
7355
+ * `GET /industries/projects/{projectId}`
7356
+ */
7357
+ async retrieveProject(projectId) {
7358
+ return this.request("GET", projectPath(projectId));
7359
+ }
7360
+ /**
7361
+ * Select one project's industry.
7362
+ *
7363
+ * `PUT /industries/projects/{projectId}`
7364
+ */
7365
+ async setProject(projectId, params) {
7366
+ return this.request("PUT", projectPath(projectId), { body: params });
7367
+ }
7368
+ /**
7369
+ * Clear one project's industry, so it inherits again.
7370
+ *
7371
+ * `DELETE /industries/projects/{projectId}`
7372
+ */
7373
+ async clearProject(projectId) {
7374
+ return this.request("DELETE", projectPath(projectId));
7375
+ }
7376
+ /**
7377
+ * One shop's industry.
7378
+ *
7379
+ * `GET /industries/shops/{profileId}`
7380
+ */
7381
+ async retrieveShop(profileId) {
7382
+ return this.request("GET", shopPath(profileId));
7383
+ }
7384
+ /**
7385
+ * Select one shop's industry.
7386
+ *
7387
+ * `PUT /industries/shops/{profileId}`
7388
+ */
7389
+ async setShop(profileId, params) {
7390
+ return this.request("PUT", shopPath(profileId), { body: params });
7391
+ }
7392
+ /**
7393
+ * Clear one shop's industry, so it inherits again.
7394
+ *
7395
+ * `DELETE /industries/shops/{profileId}`
7396
+ */
7397
+ async clearShop(profileId) {
7398
+ return this.request("DELETE", shopPath(profileId));
7399
+ }
7400
+ };
7401
+ function projectPath(projectId) {
7402
+ return `/industries/projects/${encodeURIComponent(projectId)}`;
7403
+ }
7404
+ function shopPath(profileId) {
7405
+ return `/industries/shops/${encodeURIComponent(profileId)}`;
7406
+ }
7407
+
7322
7408
  // src/resources/checkoutTemplates.ts
7323
7409
  var CheckoutTemplates = class {
7324
7410
  constructor(request) {
@@ -11359,6 +11445,7 @@ var Delopay = class {
11359
11445
  this.sellToRestrictions = new SellToRestrictions(request);
11360
11446
  this.buyerBlocklist = new BuyerBlocklist(request);
11361
11447
  this.shopLabels = new ShopLabels(request);
11448
+ this.industries = new Industries(request);
11362
11449
  this.checkoutTemplates = new CheckoutTemplates(request);
11363
11450
  this.buyerConversations = new BuyerConversations(request);
11364
11451
  this.buyerEvidence = new BuyerEvidenceReviews(request);
@@ -17197,6 +17284,7 @@ var encodeNativePanes = encodePanes;
17197
17284
  GOOGLE_PAY_BUTTON_COLORS,
17198
17285
  GOOGLE_PAY_BUTTON_TYPES,
17199
17286
  IdentityVerifications,
17287
+ Industries,
17200
17288
  InvoiceSettingsResource,
17201
17289
  Invoices,
17202
17290
  LOCALIZABLE_COPY_FIELDS,