@delopay/sdk 0.185.0 → 0.186.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.js CHANGED
@@ -216,7 +216,7 @@ import {
216
216
  validatePanes,
217
217
  verticalGapValue,
218
218
  visibleCustomFields
219
- } from "./chunk-LA4KAVRD.js";
219
+ } from "./chunk-FRMLBRHG.js";
220
220
  export {
221
221
  AIRWALLEX_AUTOFILL_TREATMENTS,
222
222
  AIRWALLEX_CARD_LAYOUTS,
package/dist/internal.cjs CHANGED
@@ -4265,6 +4265,20 @@ var Users = class {
4265
4265
  async deleteUserRole(params) {
4266
4266
  return this.request("DELETE", "/user/employees/delete", { body: params });
4267
4267
  }
4268
+ /**
4269
+ * Move a team member between a merchant-level role and shop-level roles.
4270
+ * `POST /user/employees/change-scope`
4271
+ *
4272
+ * A merchant-level `role_id` takes no `profile_ids`; a shop-level one needs
4273
+ * at least one. Every earlier merchant- and shop-level binding of the member
4274
+ * in your merchant is replaced. When the change takes a scope away, the
4275
+ * member's sessions end (`sessions_revoked: true`). Needs a caller at
4276
+ * merchant level or above. A refusal is a `UR_23` error whose `data.reason`
4277
+ * names the rule; an unknown `role_id` is `UR_22`.
4278
+ */
4279
+ async changeMemberScope(params) {
4280
+ return this.request("POST", "/user/employees/change-scope", { body: params });
4281
+ }
4268
4282
  /** Sign in via OIDC. `POST /user/oidc` */
4269
4283
  async signInOidc(params) {
4270
4284
  return this.request("POST", "/user/oidc", { body: params });
@@ -4814,6 +4828,24 @@ var Export = class {
4814
4828
  options
4815
4829
  );
4816
4830
  }
4831
+ async transactionLines(params, options) {
4832
+ return runExport(
4833
+ this.request,
4834
+ "POST",
4835
+ "/export/transactions/lines",
4836
+ { body: params ?? {} },
4837
+ options
4838
+ );
4839
+ }
4840
+ async transactionLinesForProfile(params, options) {
4841
+ return runExport(
4842
+ this.request,
4843
+ "POST",
4844
+ "/export/profile/transactions/lines",
4845
+ { body: params ?? {} },
4846
+ options
4847
+ );
4848
+ }
4817
4849
  async refunds(params, options) {
4818
4850
  return runExport(this.request, "POST", "/refunds/list/export", { body: params ?? {} }, options);
4819
4851
  }
@@ -5235,6 +5267,20 @@ var Products = class {
5235
5267
  ...this.scoped(profileId, options)
5236
5268
  });
5237
5269
  }
5270
+ /**
5271
+ * What a product sold in a window, per currency, net of the refunds credited
5272
+ * to its lines. Refunds that named no product line are not included.
5273
+ * `GET /products/{product_id}/sales`
5274
+ *
5275
+ * Needs payment read; refused (403) to a caller limited to some connector
5276
+ * accounts.
5277
+ */
5278
+ async sales(productId, query, profileId, options) {
5279
+ return this.request("GET", `/products/${encodeURIComponent(productId)}/sales`, {
5280
+ ...this.scoped(profileId, options),
5281
+ query: { ...query }
5282
+ });
5283
+ }
5238
5284
  /**
5239
5285
  * Change a product's name, description, image, metadata or category
5240
5286
  * (`category_id: null` makes it uncategorized).
@@ -5538,6 +5584,44 @@ var Products = class {
5538
5584
  ...this.scoped(profileId, options)
5539
5585
  });
5540
5586
  }
5587
+ // --- provider sync -----------------------------------------------
5588
+ /**
5589
+ * Compare the product with its copy at every connected account it is tied
5590
+ * to. Reads the providers now; an unreadable provider answers `unknown`,
5591
+ * never `in_sync`.
5592
+ * `GET /products/{product_id}/provider-sync`
5593
+ */
5594
+ async providerSync(productId, profileId, options) {
5595
+ return this.request("GET", `/products/${encodeURIComponent(productId)}/provider-sync`, {
5596
+ ...this.scoped(profileId, options)
5597
+ });
5598
+ }
5599
+ /**
5600
+ * {@link providerSync} for 1 to 50 products at once, such as one page of the
5601
+ * product list. Unknown ids are left out of the answer.
5602
+ * `POST /products/provider-sync`
5603
+ */
5604
+ async providerSyncBatch(request, profileId, options) {
5605
+ return this.request("POST", "/products/provider-sync", {
5606
+ body: request,
5607
+ ...this.scoped(profileId, options)
5608
+ });
5609
+ }
5610
+ /**
5611
+ * Write the catalog's state onto one connected account's copy of the
5612
+ * product, for the differences a push changes and nothing else. When it
5613
+ * would change a difference not named in `confirmed`, nothing is written and
5614
+ * the answer carries `confirmation_outdated: true` with the current
5615
+ * differences in `result`; `nothing_to_push` answers without a provider
5616
+ * write when nothing pushable differs.
5617
+ * `POST /products/{product_id}/provider-sync/push`
5618
+ */
5619
+ async providerPush(productId, request, profileId, options) {
5620
+ return this.request("POST", `/products/${encodeURIComponent(productId)}/provider-sync/push`, {
5621
+ body: request,
5622
+ ...this.scoped(profileId, options)
5623
+ });
5624
+ }
5541
5625
  };
5542
5626
 
5543
5627
  // src/resources/processorCosts.ts
@@ -10835,6 +10919,15 @@ var AdminPortal = class {
10835
10919
  options
10836
10920
  );
10837
10921
  }
10922
+ async exportTransactionLines(params, options) {
10923
+ return runExport(
10924
+ this.request,
10925
+ "GET",
10926
+ "/admin-portal/transactions/export/lines",
10927
+ { query: transactionListQuery(params) },
10928
+ options
10929
+ );
10930
+ }
10838
10931
  /**
10839
10932
  * Full detail for a single transaction of ANY merchant — the same
10840
10933
  * `PaymentResponse` the merchant `payments.retrieve` returns. Admin-scoped: