@delopay/sdk 0.378.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.
@@ -6046,6 +6046,73 @@ var IdentityVerifications = class {
6046
6046
  options
6047
6047
  );
6048
6048
  }
6049
+ /**
6050
+ * Set which payments need an identity verification at one level: the
6051
+ * merchant, a project, a shop, a checkout template or one payment. `off`
6052
+ * lifts a wider requirement. Without `payment_method_types` or
6053
+ * `merchant_connector_ids` the checkout shows the identity step before any
6054
+ * payment option; with them, only when the buyer picks a matching method.
6055
+ * A payment is decided once, so a later change does not change it.
6056
+ * Merchant, project and checkout template requirements need a
6057
+ * merchant-level caller; a shop on a checkout template takes its
6058
+ * requirement from the template. Needs permission to edit connectors.
6059
+ *
6060
+ * `PUT /identity-verifications/requirements`
6061
+ */
6062
+ async putRequirement(params, options) {
6063
+ return this.request("PUT", "/identity-verifications/requirements", {
6064
+ body: params,
6065
+ ...options
6066
+ });
6067
+ }
6068
+ /**
6069
+ * Every requirement of the merchant. A caller limited to one shop sees the
6070
+ * merchant's and projects' requirements and its own shop's and payments'.
6071
+ * Needs permission to read connectors.
6072
+ *
6073
+ * `GET /identity-verifications/requirements`
6074
+ */
6075
+ async listRequirements(options) {
6076
+ return this.request("GET", "/identity-verifications/requirements", options);
6077
+ }
6078
+ /**
6079
+ * The level inherits again. Payments already decided keep their decision.
6080
+ * Needs permission to edit connectors.
6081
+ *
6082
+ * `DELETE /identity-verifications/requirements`
6083
+ */
6084
+ async deleteRequirement(query, options) {
6085
+ return this.request("DELETE", "/identity-verifications/requirements", {
6086
+ query,
6087
+ ...options
6088
+ });
6089
+ }
6090
+ /**
6091
+ * The requirement a new payment of the shop meets and the level it comes
6092
+ * from. Needs permission to read connectors.
6093
+ *
6094
+ * `GET /identity-verifications/requirements/effective`
6095
+ */
6096
+ async effectiveRequirement(profileId, options) {
6097
+ return this.request("GET", "/identity-verifications/requirements/effective", {
6098
+ query: { profile_id: profileId },
6099
+ ...options
6100
+ });
6101
+ }
6102
+ /**
6103
+ * Whether the payment needs an identity verification, as decided the first
6104
+ * time its checkout was drawn or it was confirmed. Not found until then.
6105
+ * Needs permission to read payments.
6106
+ *
6107
+ * `GET /identity-verifications/requirements/payments/{payment_id}`
6108
+ */
6109
+ async paymentDecision(paymentId, options) {
6110
+ return this.request(
6111
+ "GET",
6112
+ `/identity-verifications/requirements/payments/${encodeURIComponent(paymentId)}`,
6113
+ options
6114
+ );
6115
+ }
6049
6116
  };
6050
6117
 
6051
6118
  // src/resources/webhooks.ts
@@ -17177,4 +17244,4 @@ export {
17177
17244
  decodeNativePanes,
17178
17245
  encodeNativePanes
17179
17246
  };
17180
- //# sourceMappingURL=chunk-EEG2P2VF.js.map
17247
+ //# sourceMappingURL=chunk-GUIKCYHA.js.map