@delopay/sdk 0.374.0 → 0.379.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