@delopay/sdk 0.211.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-2OYT52HK.js → chunk-UKKUBVQJ.js} +31 -1
- package/dist/chunk-UKKUBVQJ.js.map +1 -0
- package/dist/index.cjs +30 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +171 -6
- package/dist/index.d.ts +171 -6
- package/dist/index.js +1 -1
- package/dist/internal.cjs +53 -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-2OYT52HK.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -6024,6 +6024,36 @@ var Invoices = class {
|
|
|
6024
6024
|
...options
|
|
6025
6025
|
});
|
|
6026
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
|
+
}
|
|
6027
6057
|
};
|
|
6028
6058
|
|
|
6029
6059
|
// src/resources/invoiceSettings.ts
|