@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.
@@ -4151,6 +4151,22 @@ var Users = class {
4151
4151
  async changeMemberScope(params) {
4152
4152
  return this.request("POST", "/user/employees/change-scope", { body: params });
4153
4153
  }
4154
+ /**
4155
+ * Set or clear when a team member's access to your merchant ends.
4156
+ * `POST /user/employees/update-expiry`
4157
+ *
4158
+ * Every merchant-, shop- and project-level role the member holds in your
4159
+ * merchant, accepted or still an invitation, gets the same `expires_at`.
4160
+ * From that instant the roles grant nothing: every request, sign-in, token
4161
+ * refresh and switch made with them is refused, and `listUsersInLineage`
4162
+ * reports the instant in `MinimalRoleInfo.expires_at`. Send `null` to remove
4163
+ * the expiry. A shop-level caller reaches only members whose every role is
4164
+ * on its own shop. A refusal is a `UR_70` error whose `data` is an
4165
+ * {@link AccessExpiryRefusal}.
4166
+ */
4167
+ async updateMemberExpiry(params) {
4168
+ return this.request("POST", "/user/employees/update-expiry", { body: params });
4169
+ }
4154
4170
  /**
4155
4171
  * One member of your merchant, with the person fields the member list
4156
4172
  * omits. `GET /user/employees/{user_id}/details`
@@ -5764,6 +5780,36 @@ var Invoices = class {
5764
5780
  ...options
5765
5781
  });
5766
5782
  }
5783
+ /**
5784
+ * Mail an issued invoice to the buyer address it carries, its PDF attached,
5785
+ * in the document's language. Each call is a new message (the next
5786
+ * `revision`) and resolves with what became of it: `sent`, or `failed` with
5787
+ * `error_code`. Refused (`IR_16`) with `not_an_invoice` (a credit note),
5788
+ * `not_issued`, `no_buyer_email`, `send_in_progress` (an earlier message is
5789
+ * queued or being sent) and `send_limit_reached` (5 sends by hand in 24
5790
+ * hours). Shops with the `email.invoice_auto_send` setting mail every
5791
+ * invoice they issue without this call.
5792
+ *
5793
+ * The merchant's daily sending limit is **not** a refusal: the call answers
5794
+ * with the message `failed` and `error_code: 'merchant_limit_reached'`.
5795
+ * Check `status` on the result, not only that the call succeeded.
5796
+ * `POST /invoices/{invoice_id}/email`
5797
+ */
5798
+ async sendEmail(invoiceId, options) {
5799
+ return this.request("POST", `/invoices/${encodeURIComponent(invoiceId)}/email`, {
5800
+ ...options
5801
+ });
5802
+ }
5803
+ /**
5804
+ * Every message about a document to its buyer, automatic and by hand,
5805
+ * newest first, with its delivery status. The recipient is masked.
5806
+ * `GET /invoices/{invoice_id}/emails`
5807
+ */
5808
+ async listEmails(invoiceId, options) {
5809
+ return this.request("GET", `/invoices/${encodeURIComponent(invoiceId)}/emails`, {
5810
+ ...options
5811
+ });
5812
+ }
5767
5813
  };
5768
5814
 
5769
5815
  // src/resources/invoiceSettings.ts
@@ -11646,4 +11692,4 @@ export {
11646
11692
  decodeNativePanes,
11647
11693
  encodeNativePanes
11648
11694
  };
11649
- //# sourceMappingURL=chunk-IFP4THPD.js.map
11695
+ //# sourceMappingURL=chunk-UKKUBVQJ.js.map