@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/{chunk-EEG2P2VF.js → chunk-BSVLB2QZ.js} +83 -1
- package/dist/chunk-BSVLB2QZ.js.map +1 -0
- package/dist/{index-DaJyWx84.d.cts → index-D3HJNRXG.d.cts} +388 -2
- package/dist/{index-DaJyWx84.d.ts → index-D3HJNRXG.d.ts} +388 -2
- package/dist/index.cjs +82 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/internal.cjs +94 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +10 -3
- package/dist/internal.d.ts +10 -3
- package/dist/internal.js +13 -1
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-EEG2P2VF.js.map +0 -1
|
@@ -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
|
|
@@ -6190,6 +6257,21 @@ var Analytics = class {
|
|
|
6190
6257
|
query: params
|
|
6191
6258
|
});
|
|
6192
6259
|
}
|
|
6260
|
+
/**
|
|
6261
|
+
* PSP analytics: routed payments, outcomes, volume and payment sizes per
|
|
6262
|
+
* connector and per connector account over one window, with the breakdown
|
|
6263
|
+
* by project and shop. Pinned server-side to your own merchant
|
|
6264
|
+
* (`merchant_id` is ignored) and to your shop for a shop-scoped user. Live
|
|
6265
|
+
* payments unless `test_mode` is `true`. Amounts are in USD unless
|
|
6266
|
+
* `currency` names one. Pass `sections` to compute only some blocks.
|
|
6267
|
+
* A role that may see no processor gets a 403.
|
|
6268
|
+
* `GET /analytics/connectors`
|
|
6269
|
+
*/
|
|
6270
|
+
async connectors(params) {
|
|
6271
|
+
return this.request("GET", "/analytics/connectors", {
|
|
6272
|
+
query: params
|
|
6273
|
+
});
|
|
6274
|
+
}
|
|
6193
6275
|
/**
|
|
6194
6276
|
* Device analytics over the canonical client-context observation per
|
|
6195
6277
|
* payment (browser/platform families, device classes and models, checkout
|
|
@@ -17177,4 +17259,4 @@ export {
|
|
|
17177
17259
|
decodeNativePanes,
|
|
17178
17260
|
encodeNativePanes
|
|
17179
17261
|
};
|
|
17180
|
-
//# sourceMappingURL=chunk-
|
|
17262
|
+
//# sourceMappingURL=chunk-BSVLB2QZ.js.map
|