@delopay/sdk 0.210.0 → 0.212.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-IFP4THPD.js → chunk-UKKUBVQJ.js} +47 -1
- package/dist/chunk-UKKUBVQJ.js.map +1 -0
- package/dist/index.cjs +46 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +254 -6
- package/dist/index.d.ts +254 -6
- package/dist/index.js +1 -1
- package/dist/internal.cjs +69 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +16 -3
- package/dist/internal.d.ts +16 -3
- package/dist/internal.js +24 -1
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-IFP4THPD.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -4395,6 +4395,22 @@ var Users = class {
|
|
|
4395
4395
|
async changeMemberScope(params) {
|
|
4396
4396
|
return this.request("POST", "/user/employees/change-scope", { body: params });
|
|
4397
4397
|
}
|
|
4398
|
+
/**
|
|
4399
|
+
* Set or clear when a team member's access to your merchant ends.
|
|
4400
|
+
* `POST /user/employees/update-expiry`
|
|
4401
|
+
*
|
|
4402
|
+
* Every merchant-, shop- and project-level role the member holds in your
|
|
4403
|
+
* merchant, accepted or still an invitation, gets the same `expires_at`.
|
|
4404
|
+
* From that instant the roles grant nothing: every request, sign-in, token
|
|
4405
|
+
* refresh and switch made with them is refused, and `listUsersInLineage`
|
|
4406
|
+
* reports the instant in `MinimalRoleInfo.expires_at`. Send `null` to remove
|
|
4407
|
+
* the expiry. A shop-level caller reaches only members whose every role is
|
|
4408
|
+
* on its own shop. A refusal is a `UR_70` error whose `data` is an
|
|
4409
|
+
* {@link AccessExpiryRefusal}.
|
|
4410
|
+
*/
|
|
4411
|
+
async updateMemberExpiry(params) {
|
|
4412
|
+
return this.request("POST", "/user/employees/update-expiry", { body: params });
|
|
4413
|
+
}
|
|
4398
4414
|
/**
|
|
4399
4415
|
* One member of your merchant, with the person fields the member list
|
|
4400
4416
|
* omits. `GET /user/employees/{user_id}/details`
|
|
@@ -6008,6 +6024,36 @@ var Invoices = class {
|
|
|
6008
6024
|
...options
|
|
6009
6025
|
});
|
|
6010
6026
|
}
|
|
6027
|
+
/**
|
|
6028
|
+
* Mail an issued invoice to the buyer address it carries, its PDF attached,
|
|
6029
|
+
* in the document's language. Each call is a new message (the next
|
|
6030
|
+
* `revision`) and resolves with what became of it: `sent`, or `failed` with
|
|
6031
|
+
* `error_code`. Refused (`IR_16`) with `not_an_invoice` (a credit note),
|
|
6032
|
+
* `not_issued`, `no_buyer_email`, `send_in_progress` (an earlier message is
|
|
6033
|
+
* queued or being sent) and `send_limit_reached` (5 sends by hand in 24
|
|
6034
|
+
* hours). Shops with the `email.invoice_auto_send` setting mail every
|
|
6035
|
+
* invoice they issue without this call.
|
|
6036
|
+
*
|
|
6037
|
+
* The merchant's daily sending limit is **not** a refusal: the call answers
|
|
6038
|
+
* with the message `failed` and `error_code: 'merchant_limit_reached'`.
|
|
6039
|
+
* Check `status` on the result, not only that the call succeeded.
|
|
6040
|
+
* `POST /invoices/{invoice_id}/email`
|
|
6041
|
+
*/
|
|
6042
|
+
async sendEmail(invoiceId, options) {
|
|
6043
|
+
return this.request("POST", `/invoices/${encodeURIComponent(invoiceId)}/email`, {
|
|
6044
|
+
...options
|
|
6045
|
+
});
|
|
6046
|
+
}
|
|
6047
|
+
/**
|
|
6048
|
+
* Every message about a document to its buyer, automatic and by hand,
|
|
6049
|
+
* newest first, with its delivery status. The recipient is masked.
|
|
6050
|
+
* `GET /invoices/{invoice_id}/emails`
|
|
6051
|
+
*/
|
|
6052
|
+
async listEmails(invoiceId, options) {
|
|
6053
|
+
return this.request("GET", `/invoices/${encodeURIComponent(invoiceId)}/emails`, {
|
|
6054
|
+
...options
|
|
6055
|
+
});
|
|
6056
|
+
}
|
|
6011
6057
|
};
|
|
6012
6058
|
|
|
6013
6059
|
// src/resources/invoiceSettings.ts
|