@delopay/sdk 0.378.0 → 0.380.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
@@ -6368,6 +6368,73 @@ var IdentityVerifications = class {
6368
6368
  options
6369
6369
  );
6370
6370
  }
6371
+ /**
6372
+ * Set which payments need an identity verification at one level: the
6373
+ * merchant, a project, a shop, a checkout template or one payment. `off`
6374
+ * lifts a wider requirement. Without `payment_method_types` or
6375
+ * `merchant_connector_ids` the checkout shows the identity step before any
6376
+ * payment option; with them, only when the buyer picks a matching method.
6377
+ * A payment is decided once, so a later change does not change it.
6378
+ * Merchant, project and checkout template requirements need a
6379
+ * merchant-level caller; a shop on a checkout template takes its
6380
+ * requirement from the template. Needs permission to edit connectors.
6381
+ *
6382
+ * `PUT /identity-verifications/requirements`
6383
+ */
6384
+ async putRequirement(params, options) {
6385
+ return this.request("PUT", "/identity-verifications/requirements", {
6386
+ body: params,
6387
+ ...options
6388
+ });
6389
+ }
6390
+ /**
6391
+ * Every requirement of the merchant. A caller limited to one shop sees the
6392
+ * merchant's and projects' requirements and its own shop's and payments'.
6393
+ * Needs permission to read connectors.
6394
+ *
6395
+ * `GET /identity-verifications/requirements`
6396
+ */
6397
+ async listRequirements(options) {
6398
+ return this.request("GET", "/identity-verifications/requirements", options);
6399
+ }
6400
+ /**
6401
+ * The level inherits again. Payments already decided keep their decision.
6402
+ * Needs permission to edit connectors.
6403
+ *
6404
+ * `DELETE /identity-verifications/requirements`
6405
+ */
6406
+ async deleteRequirement(query, options) {
6407
+ return this.request("DELETE", "/identity-verifications/requirements", {
6408
+ query,
6409
+ ...options
6410
+ });
6411
+ }
6412
+ /**
6413
+ * The requirement a new payment of the shop meets and the level it comes
6414
+ * from. Needs permission to read connectors.
6415
+ *
6416
+ * `GET /identity-verifications/requirements/effective`
6417
+ */
6418
+ async effectiveRequirement(profileId, options) {
6419
+ return this.request("GET", "/identity-verifications/requirements/effective", {
6420
+ query: { profile_id: profileId },
6421
+ ...options
6422
+ });
6423
+ }
6424
+ /**
6425
+ * Whether the payment needs an identity verification, as decided the first
6426
+ * time its checkout was drawn or it was confirmed. Not found until then.
6427
+ * Needs permission to read payments.
6428
+ *
6429
+ * `GET /identity-verifications/requirements/payments/{payment_id}`
6430
+ */
6431
+ async paymentDecision(paymentId, options) {
6432
+ return this.request(
6433
+ "GET",
6434
+ `/identity-verifications/requirements/payments/${encodeURIComponent(paymentId)}`,
6435
+ options
6436
+ );
6437
+ }
6371
6438
  };
6372
6439
 
6373
6440
  // src/resources/webhooks.ts
@@ -6512,6 +6579,21 @@ var Analytics = class {
6512
6579
  query: params
6513
6580
  });
6514
6581
  }
6582
+ /**
6583
+ * PSP analytics: routed payments, outcomes, volume and payment sizes per
6584
+ * connector and per connector account over one window, with the breakdown
6585
+ * by project and shop. Pinned server-side to your own merchant
6586
+ * (`merchant_id` is ignored) and to your shop for a shop-scoped user. Live
6587
+ * payments unless `test_mode` is `true`. Amounts are in USD unless
6588
+ * `currency` names one. Pass `sections` to compute only some blocks.
6589
+ * A role that may see no processor gets a 403.
6590
+ * `GET /analytics/connectors`
6591
+ */
6592
+ async connectors(params) {
6593
+ return this.request("GET", "/analytics/connectors", {
6594
+ query: params
6595
+ });
6596
+ }
6515
6597
  /**
6516
6598
  * Device analytics over the canonical client-context observation per
6517
6599
  * payment (browser/platform families, device classes and models, checkout