@izak0s/spacebring-api 1.10.0 → 1.11.1
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/README.md +1 -1
- package/dist/index.cjs +19 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +438 -3
- package/dist/index.d.ts +438 -3
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -686,7 +686,11 @@ interface paths {
|
|
|
686
686
|
path?: never;
|
|
687
687
|
cookie?: never;
|
|
688
688
|
};
|
|
689
|
-
|
|
689
|
+
/**
|
|
690
|
+
* List invoice items
|
|
691
|
+
* @description List invoice items filtered customer, location, type, status, or date range. Status and issue date filters match items connected to an invoice. <h3>OAuth</h3>Required scopes: <code>invoices.readonly</code> or <code>invoices</code>
|
|
692
|
+
*/
|
|
693
|
+
get: operations["listInvoiceItems"];
|
|
690
694
|
put?: never;
|
|
691
695
|
/**
|
|
692
696
|
* Create an invoice item
|
|
@@ -4583,6 +4587,275 @@ interface components {
|
|
|
4583
4587
|
*/
|
|
4584
4588
|
transactionRef: string;
|
|
4585
4589
|
};
|
|
4590
|
+
getInvoiceItems: {
|
|
4591
|
+
/** @description List of invoice items. */
|
|
4592
|
+
invoiceItems: {
|
|
4593
|
+
/**
|
|
4594
|
+
* @deprecated
|
|
4595
|
+
* @description Deprecated. Use totalAmount instead.
|
|
4596
|
+
*/
|
|
4597
|
+
amount: number;
|
|
4598
|
+
/** @description Amounts in the original base currency, before any alt-currency conversion. */
|
|
4599
|
+
baseAmounts: {
|
|
4600
|
+
/** @description ISO currency code. */
|
|
4601
|
+
currencyCode: string;
|
|
4602
|
+
/** @description Discount deduction in major units. */
|
|
4603
|
+
discountedAmount: number;
|
|
4604
|
+
/** @description Tax details. */
|
|
4605
|
+
tax?: {
|
|
4606
|
+
/** @description Tax amount in major units. */
|
|
4607
|
+
amount: number;
|
|
4608
|
+
/** @description Whether tax is included in the price. */
|
|
4609
|
+
inclusive: boolean;
|
|
4610
|
+
/** @description Tax rate as a decimal. */
|
|
4611
|
+
rate: number;
|
|
4612
|
+
/** @description Amount subject to tax in major units. */
|
|
4613
|
+
taxableAmount: number;
|
|
4614
|
+
};
|
|
4615
|
+
/** @description Total in major units. */
|
|
4616
|
+
totalAmount: number;
|
|
4617
|
+
/** @description Total excluding tax in major units. */
|
|
4618
|
+
totalExcludingTaxAmount: number;
|
|
4619
|
+
/** @description Unit price in major units. */
|
|
4620
|
+
unitAmount: number;
|
|
4621
|
+
/** @description Unit price excluding tax in major units. */
|
|
4622
|
+
unitExcludingTaxAmount: number;
|
|
4623
|
+
};
|
|
4624
|
+
/**
|
|
4625
|
+
* @deprecated
|
|
4626
|
+
* @description Deprecated. Use product.bookingRef instead.
|
|
4627
|
+
*/
|
|
4628
|
+
booking?: {
|
|
4629
|
+
[key: string]: unknown;
|
|
4630
|
+
};
|
|
4631
|
+
/**
|
|
4632
|
+
* Format: uuid
|
|
4633
|
+
* @description ID of the associated company.
|
|
4634
|
+
*/
|
|
4635
|
+
companyRef?: string;
|
|
4636
|
+
/**
|
|
4637
|
+
* Format: date-time
|
|
4638
|
+
* @description ISO timestamp of when the item was created.
|
|
4639
|
+
*/
|
|
4640
|
+
createDate: string;
|
|
4641
|
+
/**
|
|
4642
|
+
* @deprecated
|
|
4643
|
+
* @description Deprecated.
|
|
4644
|
+
*/
|
|
4645
|
+
creditPackage?: {
|
|
4646
|
+
[key: string]: unknown;
|
|
4647
|
+
};
|
|
4648
|
+
/** @description ISO currency code. Reflects the alt currency when present, otherwise the base currency. */
|
|
4649
|
+
currencyCode: string;
|
|
4650
|
+
/**
|
|
4651
|
+
* Format: date-time
|
|
4652
|
+
* @description ISO timestamp of when the item was deleted.
|
|
4653
|
+
*/
|
|
4654
|
+
deleteDate?: string;
|
|
4655
|
+
/**
|
|
4656
|
+
* @deprecated
|
|
4657
|
+
* @description Deprecated. Use product.title instead.
|
|
4658
|
+
*/
|
|
4659
|
+
description: string;
|
|
4660
|
+
/** @description Discount deduction in major units. Reflects the alt currency when present, otherwise the base currency. */
|
|
4661
|
+
discountedAmount: number;
|
|
4662
|
+
/** @description Applied discounts. */
|
|
4663
|
+
discounts: {
|
|
4664
|
+
/** @description Coupon applied to this item. */
|
|
4665
|
+
coupon: {
|
|
4666
|
+
/** @description Fixed discount amount in major units. */
|
|
4667
|
+
amountOff?: number;
|
|
4668
|
+
/** @description Currency code for amountOff. */
|
|
4669
|
+
currencyCode?: string;
|
|
4670
|
+
/** @description Discount duration type. */
|
|
4671
|
+
duration?: string;
|
|
4672
|
+
/** @description Number of months the discount applies. */
|
|
4673
|
+
durationInMonths?: number;
|
|
4674
|
+
/**
|
|
4675
|
+
* Format: uuid
|
|
4676
|
+
* @description Coupon ID.
|
|
4677
|
+
*/
|
|
4678
|
+
id?: string;
|
|
4679
|
+
/** @description Percentage discount. */
|
|
4680
|
+
percentOff?: number;
|
|
4681
|
+
/** @description Product types this coupon applies to. */
|
|
4682
|
+
productTypes?: string[];
|
|
4683
|
+
/** @description Coupon type. */
|
|
4684
|
+
type?: string;
|
|
4685
|
+
};
|
|
4686
|
+
/** @description Promocode applied to this item. */
|
|
4687
|
+
promocode?: {
|
|
4688
|
+
/** @description Promocode string. */
|
|
4689
|
+
code: string;
|
|
4690
|
+
/**
|
|
4691
|
+
* Format: date-time
|
|
4692
|
+
* @description Promocode expiration date.
|
|
4693
|
+
*/
|
|
4694
|
+
expiration?: string;
|
|
4695
|
+
/**
|
|
4696
|
+
* Format: uuid
|
|
4697
|
+
* @description Promocode ID.
|
|
4698
|
+
*/
|
|
4699
|
+
id: string;
|
|
4700
|
+
/** @description Whether limited to first purchase only. */
|
|
4701
|
+
limitByFirstPurchase?: boolean;
|
|
4702
|
+
};
|
|
4703
|
+
/**
|
|
4704
|
+
* Format: uuid
|
|
4705
|
+
* @description ID of the subscription this discount is associated with.
|
|
4706
|
+
*/
|
|
4707
|
+
subscriptionId?: string;
|
|
4708
|
+
}[];
|
|
4709
|
+
/** @description Unique identifier of the invoice item. */
|
|
4710
|
+
id: string;
|
|
4711
|
+
/**
|
|
4712
|
+
* Format: uuid
|
|
4713
|
+
* @description ID of the invoice this item belongs to.
|
|
4714
|
+
*/
|
|
4715
|
+
invoiceRef?: string;
|
|
4716
|
+
/**
|
|
4717
|
+
* Format: uuid
|
|
4718
|
+
* @description ID of the organization (location).
|
|
4719
|
+
*/
|
|
4720
|
+
locationRef: string;
|
|
4721
|
+
/**
|
|
4722
|
+
* Format: uuid
|
|
4723
|
+
* @description ID of the associated membership.
|
|
4724
|
+
*/
|
|
4725
|
+
membershipRef?: string;
|
|
4726
|
+
/**
|
|
4727
|
+
* Format: uuid
|
|
4728
|
+
* @description ID of the membership that created this item.
|
|
4729
|
+
*/
|
|
4730
|
+
membershipRefCreatedBy?: string;
|
|
4731
|
+
/**
|
|
4732
|
+
* @deprecated
|
|
4733
|
+
* @description Deprecated. Use totalExcludingTaxAmount instead.
|
|
4734
|
+
*/
|
|
4735
|
+
netAmount: number;
|
|
4736
|
+
/**
|
|
4737
|
+
* @deprecated
|
|
4738
|
+
* @description Deprecated. Use unitExcludingTaxAmount instead.
|
|
4739
|
+
*/
|
|
4740
|
+
netUnitAmount: number;
|
|
4741
|
+
/**
|
|
4742
|
+
* @deprecated
|
|
4743
|
+
* @description Deprecated. Use product.orderRef instead.
|
|
4744
|
+
*/
|
|
4745
|
+
orderItem?: {
|
|
4746
|
+
[key: string]: unknown;
|
|
4747
|
+
};
|
|
4748
|
+
/** @description Billing period for subscription items. */
|
|
4749
|
+
period?: {
|
|
4750
|
+
/**
|
|
4751
|
+
* Format: date-time
|
|
4752
|
+
* @description Subscription period end date.
|
|
4753
|
+
*/
|
|
4754
|
+
endDate: string;
|
|
4755
|
+
/**
|
|
4756
|
+
* Format: date-time
|
|
4757
|
+
* @description Subscription period start date.
|
|
4758
|
+
*/
|
|
4759
|
+
startDate: string;
|
|
4760
|
+
};
|
|
4761
|
+
/**
|
|
4762
|
+
* @deprecated
|
|
4763
|
+
* @description Deprecated. Use period instead.
|
|
4764
|
+
*/
|
|
4765
|
+
plan?: {
|
|
4766
|
+
[key: string]: unknown;
|
|
4767
|
+
};
|
|
4768
|
+
/** @description Product details. */
|
|
4769
|
+
product: {
|
|
4770
|
+
/**
|
|
4771
|
+
* Format: uuid
|
|
4772
|
+
* @description ID of the associated booking.
|
|
4773
|
+
*/
|
|
4774
|
+
bookingRef?: string;
|
|
4775
|
+
/**
|
|
4776
|
+
* Format: uuid
|
|
4777
|
+
* @description ID of the associated event ticket.
|
|
4778
|
+
*/
|
|
4779
|
+
eventTicketRef?: string;
|
|
4780
|
+
/**
|
|
4781
|
+
* Format: uuid
|
|
4782
|
+
* @description ID of the product option.
|
|
4783
|
+
*/
|
|
4784
|
+
optionRef?: string;
|
|
4785
|
+
/**
|
|
4786
|
+
* Format: uuid
|
|
4787
|
+
* @description ID of the associated order.
|
|
4788
|
+
*/
|
|
4789
|
+
orderRef?: string;
|
|
4790
|
+
/** @description Display title of the product. */
|
|
4791
|
+
title: string;
|
|
4792
|
+
/**
|
|
4793
|
+
* @description Type of the invoice item.
|
|
4794
|
+
* @enum {string}
|
|
4795
|
+
*/
|
|
4796
|
+
type: "creditPackage" | "custom" | "booking" | "eventTicket" | "subscription" | "order";
|
|
4797
|
+
};
|
|
4798
|
+
/** @description Quantity of units. */
|
|
4799
|
+
quantity: number;
|
|
4800
|
+
/**
|
|
4801
|
+
* Format: uuid
|
|
4802
|
+
* @description ID of the associated subscription.
|
|
4803
|
+
*/
|
|
4804
|
+
subscriptionRef?: string;
|
|
4805
|
+
/** @description Tax details. Reflects the alt currency when present, otherwise the base currency. */
|
|
4806
|
+
tax?: {
|
|
4807
|
+
/** @description Tax amount in major units. */
|
|
4808
|
+
amount: number;
|
|
4809
|
+
/** @description Whether tax is included in the price. */
|
|
4810
|
+
inclusive: boolean;
|
|
4811
|
+
/** @description Tax rate as a decimal. */
|
|
4812
|
+
rate: number;
|
|
4813
|
+
/** @description Amount subject to tax in major units. */
|
|
4814
|
+
taxableAmount: number;
|
|
4815
|
+
};
|
|
4816
|
+
/**
|
|
4817
|
+
* @deprecated
|
|
4818
|
+
* @description Deprecated. Use baseAmounts.tax.amount instead.
|
|
4819
|
+
*/
|
|
4820
|
+
taxAmount?: number;
|
|
4821
|
+
/**
|
|
4822
|
+
* @deprecated
|
|
4823
|
+
* @description Deprecated. Use baseAmounts.tax.taxableAmount instead.
|
|
4824
|
+
*/
|
|
4825
|
+
taxableAmount?: number;
|
|
4826
|
+
/**
|
|
4827
|
+
* @deprecated
|
|
4828
|
+
* @description Deprecated. Use product.eventTicketRef instead.
|
|
4829
|
+
*/
|
|
4830
|
+
ticket?: {
|
|
4831
|
+
[key: string]: unknown;
|
|
4832
|
+
};
|
|
4833
|
+
/** @description Total in major units. Reflects the alt currency when present, otherwise the base currency. */
|
|
4834
|
+
totalAmount: number;
|
|
4835
|
+
/** @description Total excluding tax in major units. Reflects the alt currency when present, otherwise the base currency. */
|
|
4836
|
+
totalExcludingTaxAmount: number;
|
|
4837
|
+
/**
|
|
4838
|
+
* @deprecated
|
|
4839
|
+
* @description Deprecated. Use product.type instead.
|
|
4840
|
+
*/
|
|
4841
|
+
type: string;
|
|
4842
|
+
/** @description Unit price in major units. Reflects the alt currency when present, otherwise the base currency. */
|
|
4843
|
+
unitAmount: number;
|
|
4844
|
+
/** @description Unit price excluding tax in major units. Reflects the alt currency when present, otherwise the base currency. */
|
|
4845
|
+
unitExcludingTaxAmount: number;
|
|
4846
|
+
/** @description User who created this item. */
|
|
4847
|
+
userCreatedBy?: {
|
|
4848
|
+
/** Format: uuid */
|
|
4849
|
+
id: string;
|
|
4850
|
+
name?: string;
|
|
4851
|
+
surname?: string;
|
|
4852
|
+
};
|
|
4853
|
+
}[];
|
|
4854
|
+
/** @description Pagination token to fetch the next page of results. */
|
|
4855
|
+
nextPageToken?: string;
|
|
4856
|
+
/** @description Search query parameters for the next page of results. Includes all filters used to fetch the current page. */
|
|
4857
|
+
searchQueryNext?: string;
|
|
4858
|
+
};
|
|
4586
4859
|
getCreditNotes: {
|
|
4587
4860
|
/** @description List of credit notes. */
|
|
4588
4861
|
creditNotes: {
|
|
@@ -4628,6 +4901,34 @@ interface components {
|
|
|
4628
4901
|
creditAmount?: number;
|
|
4629
4902
|
/** @description ISO currency code (from base or alt currency). */
|
|
4630
4903
|
currencyCode: string;
|
|
4904
|
+
/** @description Customer associated with this credit note. */
|
|
4905
|
+
customer: {
|
|
4906
|
+
/**
|
|
4907
|
+
* Format: uuid
|
|
4908
|
+
* @description ID of the company or membership.
|
|
4909
|
+
*/
|
|
4910
|
+
id: string;
|
|
4911
|
+
/** @description Company logo. */
|
|
4912
|
+
logo?: {
|
|
4913
|
+
key: string;
|
|
4914
|
+
url: string;
|
|
4915
|
+
};
|
|
4916
|
+
/** @description Company name. */
|
|
4917
|
+
title?: string;
|
|
4918
|
+
/**
|
|
4919
|
+
* @description Whether the customer is a company or a user.
|
|
4920
|
+
* @enum {string}
|
|
4921
|
+
*/
|
|
4922
|
+
type: "company" | "user";
|
|
4923
|
+
/** @description User details for membership customers. */
|
|
4924
|
+
user?: {
|
|
4925
|
+
/** Format: uuid */
|
|
4926
|
+
id: string;
|
|
4927
|
+
name?: string | null;
|
|
4928
|
+
photoUrl?: string | null;
|
|
4929
|
+
surname?: string | null;
|
|
4930
|
+
};
|
|
4931
|
+
};
|
|
4631
4932
|
/** @description Effective date in YYYY-MM-DD format. */
|
|
4632
4933
|
effectiveDate?: string;
|
|
4633
4934
|
/**
|
|
@@ -4915,6 +5216,34 @@ interface components {
|
|
|
4915
5216
|
creditAmount?: number;
|
|
4916
5217
|
/** @description ISO currency code (from base or alt currency). */
|
|
4917
5218
|
currencyCode: string;
|
|
5219
|
+
/** @description Customer associated with this credit note. */
|
|
5220
|
+
customer: {
|
|
5221
|
+
/**
|
|
5222
|
+
* Format: uuid
|
|
5223
|
+
* @description ID of the company or membership.
|
|
5224
|
+
*/
|
|
5225
|
+
id: string;
|
|
5226
|
+
/** @description Company logo. */
|
|
5227
|
+
logo?: {
|
|
5228
|
+
key: string;
|
|
5229
|
+
url: string;
|
|
5230
|
+
};
|
|
5231
|
+
/** @description Company name. */
|
|
5232
|
+
title?: string;
|
|
5233
|
+
/**
|
|
5234
|
+
* @description Whether the customer is a company or a user.
|
|
5235
|
+
* @enum {string}
|
|
5236
|
+
*/
|
|
5237
|
+
type: "company" | "user";
|
|
5238
|
+
/** @description User details for membership customers. */
|
|
5239
|
+
user?: {
|
|
5240
|
+
/** Format: uuid */
|
|
5241
|
+
id: string;
|
|
5242
|
+
name?: string | null;
|
|
5243
|
+
photoUrl?: string | null;
|
|
5244
|
+
surname?: string | null;
|
|
5245
|
+
};
|
|
5246
|
+
};
|
|
4918
5247
|
/** @description Effective date in YYYY-MM-DD format. */
|
|
4919
5248
|
effectiveDate?: string;
|
|
4920
5249
|
/**
|
|
@@ -5366,6 +5695,11 @@ interface components {
|
|
|
5366
5695
|
* @description ID of the location this contract belongs to.
|
|
5367
5696
|
*/
|
|
5368
5697
|
locationRef: string;
|
|
5698
|
+
/**
|
|
5699
|
+
* @description How the contract will be signed.
|
|
5700
|
+
* @enum {string}
|
|
5701
|
+
*/
|
|
5702
|
+
signatureMethod?: "eSignature" | "manual";
|
|
5369
5703
|
/** @description Signed document file, present after the contract is signed. */
|
|
5370
5704
|
signedDocument?: {
|
|
5371
5705
|
key: string;
|
|
@@ -5576,6 +5910,11 @@ interface components {
|
|
|
5576
5910
|
* @description ID of the location this contract belongs to.
|
|
5577
5911
|
*/
|
|
5578
5912
|
locationRef: string;
|
|
5913
|
+
/**
|
|
5914
|
+
* @description How the contract will be signed.
|
|
5915
|
+
* @enum {string}
|
|
5916
|
+
*/
|
|
5917
|
+
signatureMethod?: "eSignature" | "manual";
|
|
5579
5918
|
/** @description Signed document file, present after the contract is signed. */
|
|
5580
5919
|
signedDocument?: {
|
|
5581
5920
|
key: string;
|
|
@@ -7579,7 +7918,7 @@ interface components {
|
|
|
7579
7918
|
/** @description Subscription backing this assignment. */
|
|
7580
7919
|
subscription: {
|
|
7581
7920
|
/** @description ISO timestamp when the assignment ends. */
|
|
7582
|
-
endDate
|
|
7921
|
+
endDate?: string;
|
|
7583
7922
|
/**
|
|
7584
7923
|
* Format: uuid
|
|
7585
7924
|
* @description Subscription id.
|
|
@@ -16842,6 +17181,67 @@ interface operations {
|
|
|
16842
17181
|
};
|
|
16843
17182
|
};
|
|
16844
17183
|
};
|
|
17184
|
+
listInvoiceItems: {
|
|
17185
|
+
parameters: {
|
|
17186
|
+
query?: {
|
|
17187
|
+
/** @description Filter invoices created on or after this date (ISO 8601). Use with createDate[lte] for a range. */
|
|
17188
|
+
"createDate[gte]"?: string;
|
|
17189
|
+
/** @description Filter invoices created on or before this date (ISO 8601). Use with createDate[gte] for a range. */
|
|
17190
|
+
"createDate[lte]"?: string;
|
|
17191
|
+
/** @description UUID of the customer whose invoices to list. */
|
|
17192
|
+
customerRef?: string;
|
|
17193
|
+
/** @description Filter invoices issued on or after this date (ISO 8601). Use with issueDate[lte] for a range. */
|
|
17194
|
+
"issueDate[gte]"?: string;
|
|
17195
|
+
/** @description Filter invoices issued on or before this date (ISO 8601). Use with issueDate[gte] for a range. */
|
|
17196
|
+
"issueDate[lte]"?: string;
|
|
17197
|
+
/** @description Maximum number of invoices per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
|
|
17198
|
+
limit?: number;
|
|
17199
|
+
/** @description UUID of the location whose invoices to list. */
|
|
17200
|
+
locationRef?: string;
|
|
17201
|
+
/** @description Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
|
|
17202
|
+
nextPageToken?: string;
|
|
17203
|
+
/**
|
|
17204
|
+
* @description Filter by invoice status. Comma-separated values, e.g. `draft,issued`.
|
|
17205
|
+
*
|
|
17206
|
+
* Supported values:
|
|
17207
|
+
* - **draft** — created but not sent
|
|
17208
|
+
* - **issued** — sent to the customer but unpaid
|
|
17209
|
+
* - **paid** — fully paid
|
|
17210
|
+
* - **voided** — cancelled and no longer valid
|
|
17211
|
+
*/
|
|
17212
|
+
status?: string;
|
|
17213
|
+
/** @description Filter by invoice item type. Comma-separated values, e.g. `custom,order`. */
|
|
17214
|
+
type?: string;
|
|
17215
|
+
};
|
|
17216
|
+
header?: {
|
|
17217
|
+
/** @description The id of the network. Required when using bearer token authentication */
|
|
17218
|
+
"spacebring-network-id"?: string;
|
|
17219
|
+
};
|
|
17220
|
+
path?: never;
|
|
17221
|
+
cookie?: never;
|
|
17222
|
+
};
|
|
17223
|
+
requestBody?: never;
|
|
17224
|
+
responses: {
|
|
17225
|
+
/** @description OK */
|
|
17226
|
+
200: {
|
|
17227
|
+
headers: {
|
|
17228
|
+
[name: string]: unknown;
|
|
17229
|
+
};
|
|
17230
|
+
content: {
|
|
17231
|
+
"application/json": components["schemas"]["getInvoiceItems"];
|
|
17232
|
+
};
|
|
17233
|
+
};
|
|
17234
|
+
/** @description Bad Request */
|
|
17235
|
+
400: {
|
|
17236
|
+
headers: {
|
|
17237
|
+
[name: string]: unknown;
|
|
17238
|
+
};
|
|
17239
|
+
content: {
|
|
17240
|
+
"application/json": components["schemas"]["responseError"];
|
|
17241
|
+
};
|
|
17242
|
+
};
|
|
17243
|
+
};
|
|
17244
|
+
};
|
|
16845
17245
|
createInvoiceItem: {
|
|
16846
17246
|
parameters: {
|
|
16847
17247
|
query?: never;
|
|
@@ -22707,6 +23107,35 @@ interface GetUpcomingInvoiceQuery {
|
|
|
22707
23107
|
/** The id of the subscription. */
|
|
22708
23108
|
subscriptionRef?: string;
|
|
22709
23109
|
}
|
|
23110
|
+
/** Query parameters for `sb.billing.invoices.items.list()`. */
|
|
23111
|
+
interface ListInvoiceItemsQuery {
|
|
23112
|
+
/** Filter invoices created on or after this date (ISO 8601). Use with createDate[lte] for a range. */
|
|
23113
|
+
"createDate[gte]"?: string;
|
|
23114
|
+
/** Filter invoices created on or before this date (ISO 8601). Use with createDate[gte] for a range. */
|
|
23115
|
+
"createDate[lte]"?: string;
|
|
23116
|
+
/** UUID of the customer whose invoices to list. */
|
|
23117
|
+
customerRef?: string;
|
|
23118
|
+
/** Filter invoices issued on or after this date (ISO 8601). Use with issueDate[lte] for a range. */
|
|
23119
|
+
"issueDate[gte]"?: string;
|
|
23120
|
+
/** Filter invoices issued on or before this date (ISO 8601). Use with issueDate[gte] for a range. */
|
|
23121
|
+
"issueDate[lte]"?: string;
|
|
23122
|
+
/** Maximum number of invoices per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
|
|
23123
|
+
limit?: number;
|
|
23124
|
+
/** UUID of the location whose invoices to list. */
|
|
23125
|
+
locationRef?: string;
|
|
23126
|
+
/** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
|
|
23127
|
+
nextPageToken?: string;
|
|
23128
|
+
/** Filter by invoice status. Comma-separated values, e.g. `draft,issued`.
|
|
23129
|
+
|
|
23130
|
+
Supported values:
|
|
23131
|
+
- **draft** — created but not sent
|
|
23132
|
+
- **issued** — sent to the customer but unpaid
|
|
23133
|
+
- **paid** — fully paid
|
|
23134
|
+
- **voided** — cancelled and no longer valid */
|
|
23135
|
+
status?: string;
|
|
23136
|
+
/** Filter by invoice item type. Comma-separated values, e.g. `custom,order`. */
|
|
23137
|
+
type?: string;
|
|
23138
|
+
}
|
|
22710
23139
|
/** Request body for `sb.billing.creditNotes.create()`. */
|
|
22711
23140
|
type CreateCreditNoteBody = NonNullable<operations["createCreditNote"]["requestBody"]>["content"]["application/json"];
|
|
22712
23141
|
/** Request body for `sb.billing.invoices.create()`. */
|
|
@@ -22872,6 +23301,12 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
22872
23301
|
resend(invoiceId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22873
23302
|
void(invoiceId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
22874
23303
|
items: {
|
|
23304
|
+
list(query?: ListInvoiceItemsQuery, options?: SpacebringRequestOptions): Promise<{
|
|
23305
|
+
invoiceItems: InvoiceItem[];
|
|
23306
|
+
nextPageToken?: string;
|
|
23307
|
+
searchQueryNext?: string;
|
|
23308
|
+
}>;
|
|
23309
|
+
iterate(query?: Omit<ListInvoiceItemsQuery, "nextPageToken">, options?: SpacebringRequestOptions): AsyncGenerator<InvoiceItem, void, undefined>;
|
|
22875
23310
|
get(id: string, options?: SpacebringRequestOptions): Promise<InvoiceItem>;
|
|
22876
23311
|
create(body: CreateInvoiceItemBody, options?: SpacebringRequestOptions): Promise<InvoiceItem>;
|
|
22877
23312
|
update(id: string, body: UpdateInvoiceItemBody, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
@@ -23248,4 +23683,4 @@ declare class SpacebringError extends Error {
|
|
|
23248
23683
|
});
|
|
23249
23684
|
}
|
|
23250
23685
|
|
|
23251
|
-
export { type Activity, type AltCurrency, type Application, type ApplyBenefitBody, type Balance, type Benefit, type BenefitCategory, type Booking, type CheckInVisitBody, type CheckOutVisitBody, type CommentLike, type Company, type Contact, type Contract, type Coupon, type CreateAltCurrencyBody, type CreateBenefitBody, type CreateBenefitCategoryBody, type CreateBookingBody, type CreateCompanyBody, type CreateContactBody, type CreateContractBody, type CreateCouponBody, type CreateCreditNoteBody, type CreateCreditsTransactionBody, type CreateDayPassesTransactionBody, type CreateEventBody, type CreateFeedPostBody, type CreateFeedPostCommentBody, type CreateGuideBody, type CreateInvoiceBody, type CreateInvoiceItemBody, type CreateMembershipBody, type CreatePlanBody, type CreateProductBody, type CreatePromocodeBody, type CreateRequestBody, type CreateResourceBody, type CreateShopCategoryBody, type CreateSubscriptionBody, type CreateSubscriptionItemBody, type CreateSupportTicketBody, type CreateSupportTicketCommentBody, type CreateVisitBody, type CreditNote, type CreditTransaction, type DayPassTransaction, type Event, type EventTicket, type FeedComment, type GetAltCurrenciesQuery, type GetBenefitApplicationsQuery, type GetBenefitCategoriesQuery, type GetBenefitsQuery, type GetBookingsQuery, type GetCompaniesQuery, type GetContactsQuery, type GetContractsQuery, type GetCouponsQuery, type GetCreditNotesQuery, type GetCreditsTransactionsQuery, type GetDayPassesTransactionsQuery, type GetDiscountRedemptionsQuery, type GetEventTicketsQuery, type GetEventsByOrganizationQuery, type GetFeedPostsQuery, type GetFloorsQuery, type GetGuidesQuery, type GetInvoicesQuery, type GetMembershipsDeletedQuery, type GetMembershipsQuery, type GetMoneyTransactionsQuery, type GetOrdersQuery, type GetPlansQuery, type GetProductsQuery, type GetPromocodesQuery, type GetRegistrationsQuery, type GetRequestsQuery, type GetResourcesQuery, type GetShopCategoriesQuery, type GetSubscriptionsQuery, type GetSupportTicketsQuery, type GetUpcomingInvoiceItemsQuery, type GetUpcomingInvoiceQuery, type GetVisitsQuery, type Guide, type Invoice, type InvoiceItem, type IssueContractBody, type IssueInvoiceBody, type Location, type Membership, type MoneyTransaction, type Network, type Order, type PatchGuideBody, type PatchResourceBody, type PayInvoiceBody, type Plan, type Post, type PostComment, type PostLike, type PreviewCreditNoteBody, type Product, type Promocode, type Redemption, type Registration, type Request$1 as Request, type RequestVisit, type Resource, type ShopCategory, Spacebring, type SpacebringConfig, SpacebringError, type SpacebringErrorBody, type SpacebringRequestOptions, type SpacebringResources, type Subscription, type SupportTicket, type TerminateContractBody, type UpdateAltCurrencyBody, type UpdateBenefitBody, type UpdateBenefitCategoryBody, type UpdateCompanyBody, type UpdateCouponBody, type UpdateCreditNoteBody, type UpdateFeedPostBody, type UpdateInvoiceBody, type UpdateInvoiceItemBody, type UpdateMembershipBody, type UpdatePlanBody, type UpdateProductBody, type UpdateShopCategoryBody, type UpdateSubscriptionBody, type UpdateSubscriptionItemBody, type UpdateSupportTicketAssigneeBody, type UpdateSupportTicketStatusBody, type UpdateSupportTicketTypeBody, type UpdateVisitBody, type VisitorVisit, type components, type operations, type paths };
|
|
23686
|
+
export { type Activity, type AltCurrency, type Application, type ApplyBenefitBody, type Balance, type Benefit, type BenefitCategory, type Booking, type CheckInVisitBody, type CheckOutVisitBody, type CommentLike, type Company, type Contact, type Contract, type Coupon, type CreateAltCurrencyBody, type CreateBenefitBody, type CreateBenefitCategoryBody, type CreateBookingBody, type CreateCompanyBody, type CreateContactBody, type CreateContractBody, type CreateCouponBody, type CreateCreditNoteBody, type CreateCreditsTransactionBody, type CreateDayPassesTransactionBody, type CreateEventBody, type CreateFeedPostBody, type CreateFeedPostCommentBody, type CreateGuideBody, type CreateInvoiceBody, type CreateInvoiceItemBody, type CreateMembershipBody, type CreatePlanBody, type CreateProductBody, type CreatePromocodeBody, type CreateRequestBody, type CreateResourceBody, type CreateShopCategoryBody, type CreateSubscriptionBody, type CreateSubscriptionItemBody, type CreateSupportTicketBody, type CreateSupportTicketCommentBody, type CreateVisitBody, type CreditNote, type CreditTransaction, type DayPassTransaction, type Event, type EventTicket, type FeedComment, type GetAltCurrenciesQuery, type GetBenefitApplicationsQuery, type GetBenefitCategoriesQuery, type GetBenefitsQuery, type GetBookingsQuery, type GetCompaniesQuery, type GetContactsQuery, type GetContractsQuery, type GetCouponsQuery, type GetCreditNotesQuery, type GetCreditsTransactionsQuery, type GetDayPassesTransactionsQuery, type GetDiscountRedemptionsQuery, type GetEventTicketsQuery, type GetEventsByOrganizationQuery, type GetFeedPostsQuery, type GetFloorsQuery, type GetGuidesQuery, type GetInvoicesQuery, type GetMembershipsDeletedQuery, type GetMembershipsQuery, type GetMoneyTransactionsQuery, type GetOrdersQuery, type GetPlansQuery, type GetProductsQuery, type GetPromocodesQuery, type GetRegistrationsQuery, type GetRequestsQuery, type GetResourcesQuery, type GetShopCategoriesQuery, type GetSubscriptionsQuery, type GetSupportTicketsQuery, type GetUpcomingInvoiceItemsQuery, type GetUpcomingInvoiceQuery, type GetVisitsQuery, type Guide, type Invoice, type InvoiceItem, type IssueContractBody, type IssueInvoiceBody, type ListInvoiceItemsQuery, type Location, type Membership, type MoneyTransaction, type Network, type Order, type PatchGuideBody, type PatchResourceBody, type PayInvoiceBody, type Plan, type Post, type PostComment, type PostLike, type PreviewCreditNoteBody, type Product, type Promocode, type Redemption, type Registration, type Request$1 as Request, type RequestVisit, type Resource, type ShopCategory, Spacebring, type SpacebringConfig, SpacebringError, type SpacebringErrorBody, type SpacebringRequestOptions, type SpacebringResources, type Subscription, type SupportTicket, type TerminateContractBody, type UpdateAltCurrencyBody, type UpdateBenefitBody, type UpdateBenefitCategoryBody, type UpdateCompanyBody, type UpdateCouponBody, type UpdateCreditNoteBody, type UpdateFeedPostBody, type UpdateInvoiceBody, type UpdateInvoiceItemBody, type UpdateMembershipBody, type UpdatePlanBody, type UpdateProductBody, type UpdateShopCategoryBody, type UpdateSubscriptionBody, type UpdateSubscriptionItemBody, type UpdateSupportTicketAssigneeBody, type UpdateSupportTicketStatusBody, type UpdateSupportTicketTypeBody, type UpdateVisitBody, type VisitorVisit, type components, type operations, type paths };
|