@izak0s/spacebring-api 16.2.0 → 16.4.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/index.cjs CHANGED
@@ -805,7 +805,7 @@ function createBilling(client, defaults) {
805
805
  /**
806
806
  * Retrieve credit notes
807
807
  *
808
- * Retrieve all credit notes for a specific invoice or location. One of invoiceRef or locationRef is required.
808
+ * Retrieve the credit notes of an invoice, a location, or the whole network when neither invoiceRef nor locationRef is set. An administrator limited to some locations needs invoiceRef or locationRef.
809
809
  */
810
810
  async list(query, options) {
811
811
  return unwrap(await client.GET("/billing/credit_notes/v1", { params: { query }, signal: options?.signal }), "GET /billing/credit_notes/v1");
@@ -813,7 +813,7 @@ function createBilling(client, defaults) {
813
813
  /**
814
814
  * Retrieve credit notes — iterates every item across all pages.
815
815
  *
816
- * Retrieve all credit notes for a specific invoice or location. One of invoiceRef or locationRef is required.
816
+ * Retrieve the credit notes of an invoice, a location, or the whole network when neither invoiceRef nor locationRef is set. An administrator limited to some locations needs invoiceRef or locationRef.
817
817
  */
818
818
  iterate(query, options) {
819
819
  return paginate(
@@ -874,7 +874,7 @@ function createBilling(client, defaults) {
874
874
  /**
875
875
  * Retrieve invoices
876
876
  *
877
- * Retrieve all invoices based on certain parameters.
877
+ * Retrieve the invoices of a customer, a location, or the whole network when neither customerRef nor locationRef is set. An administrator limited to some locations needs customerRef or locationRef.
878
878
  */
879
879
  async list(query, options) {
880
880
  return unwrap(await client.GET("/billing/invoices/v1", { params: { query }, signal: options?.signal }), "GET /billing/invoices/v1");
@@ -882,7 +882,7 @@ function createBilling(client, defaults) {
882
882
  /**
883
883
  * Retrieve invoices — iterates every item across all pages.
884
884
  *
885
- * Retrieve all invoices based on certain parameters.
885
+ * Retrieve the invoices of a customer, a location, or the whole network when neither customerRef nor locationRef is set. An administrator limited to some locations needs customerRef or locationRef.
886
886
  */
887
887
  iterate(query, options) {
888
888
  return paginate(
@@ -1012,7 +1012,7 @@ function createBilling(client, defaults) {
1012
1012
  /**
1013
1013
  * List invoice items
1014
1014
  *
1015
- * List invoice items filtered by customer, location, invoice, type, status, pending, or date range. Pass invoiceRef for the items of one invoice; they page like the rest of the list. The createDate filter matches when the item was created; the status and issueDate filters match the invoice the item is on, so they return only items connected to an invoice. Pending items are not on an invoice and not part of a subscription: pass pending=true with customerRef for one customer's pending items, or with locationRef for every pending item at a location.
1015
+ * List invoice items filtered by customer, location, invoice, type, status, pending, or date range. Pass invoiceRef for the items of one invoice; they page like the rest of the list. The createDate filter matches when the item was created; the status and issueDate filters match the invoice the item is on, so they return only items connected to an invoice. Pending items are not on an invoice and not part of a subscription: pass pending=true with customerRef for one customer's pending items, or with locationRef for every pending item at a location. Without customerRef, invoiceRef or locationRef, lists the items of the whole network; an administrator limited to some locations needs one of them.
1016
1016
  */
1017
1017
  async list(query, options) {
1018
1018
  return unwrap(await client.GET("/billing/invoices/v1/items", { params: { query }, signal: options?.signal }), "GET /billing/invoices/v1/items");
@@ -1020,7 +1020,7 @@ function createBilling(client, defaults) {
1020
1020
  /**
1021
1021
  * List invoice items — iterates every item across all pages.
1022
1022
  *
1023
- * List invoice items filtered by customer, location, invoice, type, status, pending, or date range. Pass invoiceRef for the items of one invoice; they page like the rest of the list. The createDate filter matches when the item was created; the status and issueDate filters match the invoice the item is on, so they return only items connected to an invoice. Pending items are not on an invoice and not part of a subscription: pass pending=true with customerRef for one customer's pending items, or with locationRef for every pending item at a location.
1023
+ * List invoice items filtered by customer, location, invoice, type, status, pending, or date range. Pass invoiceRef for the items of one invoice; they page like the rest of the list. The createDate filter matches when the item was created; the status and issueDate filters match the invoice the item is on, so they return only items connected to an invoice. Pending items are not on an invoice and not part of a subscription: pass pending=true with customerRef for one customer's pending items, or with locationRef for every pending item at a location. Without customerRef, invoiceRef or locationRef, lists the items of the whole network; an administrator limited to some locations needs one of them.
1024
1024
  */
1025
1025
  iterate(query, options) {
1026
1026
  return paginate(
@@ -1133,7 +1133,7 @@ function createCheckins(client, defaults) {
1133
1133
  /**
1134
1134
  * Check in
1135
1135
  *
1136
- * Record an arrival for a booking, an event ticket, a visit, or a member's subscription. Identify what to check in with its check-in id, with the location and a six-digit code, or with the location and a customer ref to check a member in without a code. With bearer token authentication, the user must be an administrator of the location.
1136
+ * Record an arrival for a booking, an event ticket, a visit, or a member's subscription. Identify what to check in with its check-in id, with the location and a six-digit code, or with the location and a customer ref to check a member in without a code. Add a past check-in date to a customer ref to record an arrival nobody checked the member in for: the member stays checked in until they check out, or, with a check-out date too, the check-in is created as checked out, without the events and webhooks of a live arrival. With bearer token authentication, the user must be an administrator of the location.
1137
1137
  */
1138
1138
  async checkIn(body, options) {
1139
1139
  return unwrapProp(await client.POST("/check_ins/v1/checkin", { body, signal: options?.signal }), "checkIn", "POST /check_ins/v1/checkin");