@izak0s/spacebring-api 10.6.0 → 11.0.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/README.md +1 -1
- package/dist/index.cjs +9 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +226 -81
- package/dist/index.d.ts +226 -81
- package/dist/index.js +9 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -619,26 +619,6 @@ interface paths {
|
|
|
619
619
|
patch?: never;
|
|
620
620
|
trace?: never;
|
|
621
621
|
};
|
|
622
|
-
"/billing/invoices/v1/{invoiceId}/items": {
|
|
623
|
-
parameters: {
|
|
624
|
-
query?: never;
|
|
625
|
-
header?: never;
|
|
626
|
-
path?: never;
|
|
627
|
-
cookie?: never;
|
|
628
|
-
};
|
|
629
|
-
/**
|
|
630
|
-
* List invoice items
|
|
631
|
-
* @description List all items for a specific invoice. <h3>OAuth</h3>Required scopes: <code>invoices.readonly</code> or <code>invoices</code>
|
|
632
|
-
*/
|
|
633
|
-
get: operations["getInvoiceItems"];
|
|
634
|
-
put?: never;
|
|
635
|
-
post?: never;
|
|
636
|
-
delete?: never;
|
|
637
|
-
options?: never;
|
|
638
|
-
head?: never;
|
|
639
|
-
patch?: never;
|
|
640
|
-
trace?: never;
|
|
641
|
-
};
|
|
642
622
|
"/billing/invoices/v1/{invoiceId}/pay": {
|
|
643
623
|
parameters: {
|
|
644
624
|
query?: never;
|
|
@@ -708,7 +688,7 @@ interface paths {
|
|
|
708
688
|
};
|
|
709
689
|
/**
|
|
710
690
|
* List invoice items
|
|
711
|
-
* @description List invoice items filtered by customer, location, type, status, pending, or date range.
|
|
691
|
+
* @description List invoice items filtered by customer, location, type, status, pending, or date range. 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. <h3>OAuth</h3>Required scopes: <code>invoices.readonly</code> or <code>invoices</code>
|
|
712
692
|
*/
|
|
713
693
|
get: operations["listInvoiceItems"];
|
|
714
694
|
put?: never;
|
|
@@ -760,7 +740,8 @@ interface paths {
|
|
|
760
740
|
};
|
|
761
741
|
/**
|
|
762
742
|
* List upcoming invoice items
|
|
763
|
-
* @
|
|
743
|
+
* @deprecated
|
|
744
|
+
* @description List a customer's pending invoice items. Deprecated: use <a href="/developer/api/billing/list-invoice-items">List invoice items</a> with <code>pending=true</code> and <code>customerRef</code> instead. <h3>OAuth</h3>Required scopes: <code>invoices.readonly</code> or <code>invoices</code>
|
|
764
745
|
*/
|
|
765
746
|
get: operations["getUpcomingInvoiceItems"];
|
|
766
747
|
put?: never;
|
|
@@ -5269,6 +5250,11 @@ interface components {
|
|
|
5269
5250
|
* @description ID of the invoice this item belongs to.
|
|
5270
5251
|
*/
|
|
5271
5252
|
invoiceRef?: string;
|
|
5253
|
+
/**
|
|
5254
|
+
* Format: date-time
|
|
5255
|
+
* @description ISO timestamp of when the item was issued with its invoice.
|
|
5256
|
+
*/
|
|
5257
|
+
issueDate?: string;
|
|
5272
5258
|
/**
|
|
5273
5259
|
* Format: uuid
|
|
5274
5260
|
* @description ID of the organization (location).
|
|
@@ -5665,6 +5651,11 @@ interface components {
|
|
|
5665
5651
|
* @description ID of the invoice this item belongs to.
|
|
5666
5652
|
*/
|
|
5667
5653
|
invoiceRef?: string;
|
|
5654
|
+
/**
|
|
5655
|
+
* Format: date-time
|
|
5656
|
+
* @description ISO timestamp of when the item was issued with its invoice.
|
|
5657
|
+
*/
|
|
5658
|
+
issueDate?: string;
|
|
5668
5659
|
/**
|
|
5669
5660
|
* Format: uuid
|
|
5670
5661
|
* @description ID of the organization (location).
|
|
@@ -8920,7 +8911,7 @@ interface components {
|
|
|
8920
8911
|
legalName?: string;
|
|
8921
8912
|
/** @enum {string} */
|
|
8922
8913
|
locale?: "en" | "es" | "ko" | "uk" | "ru";
|
|
8923
|
-
/** @description
|
|
8914
|
+
/** @description Photos and videos of the location in the order administrators arranged them, with any added since first, newest first. The first one is the location's cover. */
|
|
8924
8915
|
media?: {
|
|
8925
8916
|
height?: number;
|
|
8926
8917
|
/** @description Storage key of the image. */
|
|
@@ -10278,6 +10269,60 @@ interface components {
|
|
|
10278
10269
|
* @enum {string}
|
|
10279
10270
|
*/
|
|
10280
10271
|
preparationMinutes: "zeroMinutes" | "fiveMinutes" | "tenMinutes" | "fifteenMinutes" | "thirtyMinutes" | "sixtyMinutes";
|
|
10272
|
+
/** @description Prices that replace the regular money and credit tiers for bookings starting on the selected weekdays. A booking is priced by the rule covering the weekday of its start in the location's time zone, and by the regular tiers when no rule covers it. */
|
|
10273
|
+
pricingRules: {
|
|
10274
|
+
/** @description Credit prices on the selected days. When omitted, the regular credit tiers apply on them. */
|
|
10275
|
+
credits?: {
|
|
10276
|
+
/** @description Stepped credit pricing tiers for the selected days. */
|
|
10277
|
+
tiers: {
|
|
10278
|
+
/** @description Fixed fee added once to bookings in this tier. */
|
|
10279
|
+
flatAmount: number;
|
|
10280
|
+
/** @description Booking length in minutes at which this tier starts, for example 480 for 8 hours. */
|
|
10281
|
+
from: number;
|
|
10282
|
+
/**
|
|
10283
|
+
* @description Whether the tier is priced per hour or per day.
|
|
10284
|
+
* @enum {string}
|
|
10285
|
+
*/
|
|
10286
|
+
unit: "hour" | "day";
|
|
10287
|
+
/** @description Price per unit of booking time within this tier, never per minute. */
|
|
10288
|
+
unitAmount: number;
|
|
10289
|
+
}[];
|
|
10290
|
+
};
|
|
10291
|
+
/** @description Weekdays, in the location's time zone, on which a booking that starts gets these prices. */
|
|
10292
|
+
days: {
|
|
10293
|
+
/** @description Whether the rule applies to bookings starting on a Friday. */
|
|
10294
|
+
friday: boolean;
|
|
10295
|
+
/** @description Whether the rule applies to bookings starting on a Monday. */
|
|
10296
|
+
monday: boolean;
|
|
10297
|
+
/** @description Whether the rule applies to bookings starting on a Saturday. */
|
|
10298
|
+
saturday: boolean;
|
|
10299
|
+
/** @description Whether the rule applies to bookings starting on a Sunday. */
|
|
10300
|
+
sunday: boolean;
|
|
10301
|
+
/** @description Whether the rule applies to bookings starting on a Thursday. */
|
|
10302
|
+
thursday: boolean;
|
|
10303
|
+
/** @description Whether the rule applies to bookings starting on a Tuesday. */
|
|
10304
|
+
tuesday: boolean;
|
|
10305
|
+
/** @description Whether the rule applies to bookings starting on a Wednesday. */
|
|
10306
|
+
wednesday: boolean;
|
|
10307
|
+
};
|
|
10308
|
+
/** @description Money prices on the selected days. When omitted, the regular money tiers apply on them. */
|
|
10309
|
+
money?: {
|
|
10310
|
+
/** @description Stepped money pricing tiers for the selected days. */
|
|
10311
|
+
tiers: {
|
|
10312
|
+
/** @description Fixed fee added once to bookings in this tier. */
|
|
10313
|
+
flatAmount: number;
|
|
10314
|
+
/** @description Booking length in minutes at which this tier starts, for example 480 for 8 hours. */
|
|
10315
|
+
from: number;
|
|
10316
|
+
/**
|
|
10317
|
+
* @description Whether the tier is priced per hour or per day.
|
|
10318
|
+
* @enum {string}
|
|
10319
|
+
*/
|
|
10320
|
+
unit: "hour" | "day";
|
|
10321
|
+
/** @description Price per unit of booking time within this tier, never per minute. */
|
|
10322
|
+
unitAmount: number;
|
|
10323
|
+
}[];
|
|
10324
|
+
};
|
|
10325
|
+
}[];
|
|
10281
10326
|
/**
|
|
10282
10327
|
* @description Refund threshold for cancellations.
|
|
10283
10328
|
* @enum {string}
|
|
@@ -10921,6 +10966,60 @@ interface components {
|
|
|
10921
10966
|
* @enum {string}
|
|
10922
10967
|
*/
|
|
10923
10968
|
preparationMinutes: "zeroMinutes" | "fiveMinutes" | "tenMinutes" | "fifteenMinutes" | "thirtyMinutes" | "sixtyMinutes";
|
|
10969
|
+
/** @description Prices that replace the regular money and credit tiers for bookings starting on the selected weekdays. A booking is priced by the rule covering the weekday of its start in the location's time zone, and by the regular tiers when no rule covers it. */
|
|
10970
|
+
pricingRules: {
|
|
10971
|
+
/** @description Credit prices on the selected days. When omitted, the regular credit tiers apply on them. */
|
|
10972
|
+
credits?: {
|
|
10973
|
+
/** @description Stepped credit pricing tiers for the selected days. */
|
|
10974
|
+
tiers: {
|
|
10975
|
+
/** @description Fixed fee added once to bookings in this tier. */
|
|
10976
|
+
flatAmount: number;
|
|
10977
|
+
/** @description Booking length in minutes at which this tier starts, for example 480 for 8 hours. */
|
|
10978
|
+
from: number;
|
|
10979
|
+
/**
|
|
10980
|
+
* @description Whether the tier is priced per hour or per day.
|
|
10981
|
+
* @enum {string}
|
|
10982
|
+
*/
|
|
10983
|
+
unit: "hour" | "day";
|
|
10984
|
+
/** @description Price per unit of booking time within this tier, never per minute. */
|
|
10985
|
+
unitAmount: number;
|
|
10986
|
+
}[];
|
|
10987
|
+
};
|
|
10988
|
+
/** @description Weekdays, in the location's time zone, on which a booking that starts gets these prices. */
|
|
10989
|
+
days: {
|
|
10990
|
+
/** @description Whether the rule applies to bookings starting on a Friday. */
|
|
10991
|
+
friday: boolean;
|
|
10992
|
+
/** @description Whether the rule applies to bookings starting on a Monday. */
|
|
10993
|
+
monday: boolean;
|
|
10994
|
+
/** @description Whether the rule applies to bookings starting on a Saturday. */
|
|
10995
|
+
saturday: boolean;
|
|
10996
|
+
/** @description Whether the rule applies to bookings starting on a Sunday. */
|
|
10997
|
+
sunday: boolean;
|
|
10998
|
+
/** @description Whether the rule applies to bookings starting on a Thursday. */
|
|
10999
|
+
thursday: boolean;
|
|
11000
|
+
/** @description Whether the rule applies to bookings starting on a Tuesday. */
|
|
11001
|
+
tuesday: boolean;
|
|
11002
|
+
/** @description Whether the rule applies to bookings starting on a Wednesday. */
|
|
11003
|
+
wednesday: boolean;
|
|
11004
|
+
};
|
|
11005
|
+
/** @description Money prices on the selected days. When omitted, the regular money tiers apply on them. */
|
|
11006
|
+
money?: {
|
|
11007
|
+
/** @description Stepped money pricing tiers for the selected days. */
|
|
11008
|
+
tiers: {
|
|
11009
|
+
/** @description Fixed fee added once to bookings in this tier. */
|
|
11010
|
+
flatAmount: number;
|
|
11011
|
+
/** @description Booking length in minutes at which this tier starts, for example 480 for 8 hours. */
|
|
11012
|
+
from: number;
|
|
11013
|
+
/**
|
|
11014
|
+
* @description Whether the tier is priced per hour or per day.
|
|
11015
|
+
* @enum {string}
|
|
11016
|
+
*/
|
|
11017
|
+
unit: "hour" | "day";
|
|
11018
|
+
/** @description Price per unit of booking time within this tier, never per minute. */
|
|
11019
|
+
unitAmount: number;
|
|
11020
|
+
}[];
|
|
11021
|
+
};
|
|
11022
|
+
}[];
|
|
10924
11023
|
/**
|
|
10925
11024
|
* @description Refund threshold for cancellations.
|
|
10926
11025
|
* @enum {string}
|
|
@@ -24477,6 +24576,50 @@ interface components {
|
|
|
24477
24576
|
* @enum {string}
|
|
24478
24577
|
*/
|
|
24479
24578
|
preparationMinutes?: "zeroMinutes" | "fiveMinutes" | "tenMinutes" | "fifteenMinutes" | "thirtyMinutes" | "sixtyMinutes";
|
|
24579
|
+
/** @description Prices that replace the regular money and credit tiers for bookings starting on the selected weekdays. The list holds at most one rule. On update the list replaces the current rule, and an empty list removes it. */
|
|
24580
|
+
pricingRules?: {
|
|
24581
|
+
/** @description Credit prices on the selected days, kept only while credits are enabled. Omit to keep the regular credit tiers on them. */
|
|
24582
|
+
credits?: {
|
|
24583
|
+
/** @description Stepped credit pricing tiers for the selected days. */
|
|
24584
|
+
tiers: {
|
|
24585
|
+
/** @description Fixed fee added once to bookings in this tier. */
|
|
24586
|
+
flatAmount: number;
|
|
24587
|
+
/** @description Booking length in minutes at which this tier starts, for example 480 for 8 hours. */
|
|
24588
|
+
from: number;
|
|
24589
|
+
/** @description Price per hour of booking within this tier, not per minute, for example 40 for 40 per hour. */
|
|
24590
|
+
unitAmount: number;
|
|
24591
|
+
}[];
|
|
24592
|
+
};
|
|
24593
|
+
/** @description Weekdays, in the location's time zone, on which a booking that starts gets these prices. Select at least one day. */
|
|
24594
|
+
days: {
|
|
24595
|
+
/** @description Whether the rule applies to bookings starting on a Friday. */
|
|
24596
|
+
friday: boolean;
|
|
24597
|
+
/** @description Whether the rule applies to bookings starting on a Monday. */
|
|
24598
|
+
monday: boolean;
|
|
24599
|
+
/** @description Whether the rule applies to bookings starting on a Saturday. */
|
|
24600
|
+
saturday: boolean;
|
|
24601
|
+
/** @description Whether the rule applies to bookings starting on a Sunday. */
|
|
24602
|
+
sunday: boolean;
|
|
24603
|
+
/** @description Whether the rule applies to bookings starting on a Thursday. */
|
|
24604
|
+
thursday: boolean;
|
|
24605
|
+
/** @description Whether the rule applies to bookings starting on a Tuesday. */
|
|
24606
|
+
tuesday: boolean;
|
|
24607
|
+
/** @description Whether the rule applies to bookings starting on a Wednesday. */
|
|
24608
|
+
wednesday: boolean;
|
|
24609
|
+
};
|
|
24610
|
+
/** @description Money prices on the selected days, kept only while money is enabled. Omit to keep the regular money tiers on them. */
|
|
24611
|
+
money?: {
|
|
24612
|
+
/** @description Stepped money pricing tiers for the selected days. */
|
|
24613
|
+
tiers: {
|
|
24614
|
+
/** @description Fixed fee added once to bookings in this tier. */
|
|
24615
|
+
flatAmount: number;
|
|
24616
|
+
/** @description Booking length in minutes at which this tier starts, for example 480 for 8 hours. */
|
|
24617
|
+
from: number;
|
|
24618
|
+
/** @description Price per hour of booking within this tier, not per minute, for example 40 for 40 per hour. */
|
|
24619
|
+
unitAmount: number;
|
|
24620
|
+
}[];
|
|
24621
|
+
};
|
|
24622
|
+
}[];
|
|
24480
24623
|
/**
|
|
24481
24624
|
* @description How long before start a booking remains refundable.
|
|
24482
24625
|
* @enum {string}
|
|
@@ -24916,6 +25059,50 @@ interface components {
|
|
|
24916
25059
|
* @enum {string}
|
|
24917
25060
|
*/
|
|
24918
25061
|
preparationMinutes?: "zeroMinutes" | "fiveMinutes" | "tenMinutes" | "fifteenMinutes" | "thirtyMinutes" | "sixtyMinutes";
|
|
25062
|
+
/** @description Prices that replace the regular money and credit tiers for bookings starting on the selected weekdays. The list holds at most one rule. On update the list replaces the current rule, and an empty list removes it. */
|
|
25063
|
+
pricingRules?: {
|
|
25064
|
+
/** @description Credit prices on the selected days, kept only while credits are enabled. Omit to keep the regular credit tiers on them. */
|
|
25065
|
+
credits?: {
|
|
25066
|
+
/** @description Stepped credit pricing tiers for the selected days. */
|
|
25067
|
+
tiers: {
|
|
25068
|
+
/** @description Fixed fee added once to bookings in this tier. */
|
|
25069
|
+
flatAmount: number;
|
|
25070
|
+
/** @description Booking length in minutes at which this tier starts, for example 480 for 8 hours. */
|
|
25071
|
+
from: number;
|
|
25072
|
+
/** @description Price per hour of booking within this tier, not per minute, for example 40 for 40 per hour. */
|
|
25073
|
+
unitAmount: number;
|
|
25074
|
+
}[];
|
|
25075
|
+
};
|
|
25076
|
+
/** @description Weekdays, in the location's time zone, on which a booking that starts gets these prices. Select at least one day. */
|
|
25077
|
+
days: {
|
|
25078
|
+
/** @description Whether the rule applies to bookings starting on a Friday. */
|
|
25079
|
+
friday: boolean;
|
|
25080
|
+
/** @description Whether the rule applies to bookings starting on a Monday. */
|
|
25081
|
+
monday: boolean;
|
|
25082
|
+
/** @description Whether the rule applies to bookings starting on a Saturday. */
|
|
25083
|
+
saturday: boolean;
|
|
25084
|
+
/** @description Whether the rule applies to bookings starting on a Sunday. */
|
|
25085
|
+
sunday: boolean;
|
|
25086
|
+
/** @description Whether the rule applies to bookings starting on a Thursday. */
|
|
25087
|
+
thursday: boolean;
|
|
25088
|
+
/** @description Whether the rule applies to bookings starting on a Tuesday. */
|
|
25089
|
+
tuesday: boolean;
|
|
25090
|
+
/** @description Whether the rule applies to bookings starting on a Wednesday. */
|
|
25091
|
+
wednesday: boolean;
|
|
25092
|
+
};
|
|
25093
|
+
/** @description Money prices on the selected days, kept only while money is enabled. Omit to keep the regular money tiers on them. */
|
|
25094
|
+
money?: {
|
|
25095
|
+
/** @description Stepped money pricing tiers for the selected days. */
|
|
25096
|
+
tiers: {
|
|
25097
|
+
/** @description Fixed fee added once to bookings in this tier. */
|
|
25098
|
+
flatAmount: number;
|
|
25099
|
+
/** @description Booking length in minutes at which this tier starts, for example 480 for 8 hours. */
|
|
25100
|
+
from: number;
|
|
25101
|
+
/** @description Price per hour of booking within this tier, not per minute, for example 40 for 40 per hour. */
|
|
25102
|
+
unitAmount: number;
|
|
25103
|
+
}[];
|
|
25104
|
+
};
|
|
25105
|
+
}[];
|
|
24919
25106
|
/**
|
|
24920
25107
|
* @description How long before start a booking remains refundable.
|
|
24921
25108
|
* @enum {string}
|
|
@@ -27638,44 +27825,6 @@ interface operations {
|
|
|
27638
27825
|
};
|
|
27639
27826
|
};
|
|
27640
27827
|
};
|
|
27641
|
-
getInvoiceItems: {
|
|
27642
|
-
parameters: {
|
|
27643
|
-
query?: never;
|
|
27644
|
-
header?: {
|
|
27645
|
-
/** @description The id of the network. Required when using bearer token authentication */
|
|
27646
|
-
"spacebring-network-id"?: string;
|
|
27647
|
-
};
|
|
27648
|
-
path: {
|
|
27649
|
-
/** @description The id of an invoice. */
|
|
27650
|
-
invoiceId: string;
|
|
27651
|
-
};
|
|
27652
|
-
cookie?: never;
|
|
27653
|
-
};
|
|
27654
|
-
requestBody?: never;
|
|
27655
|
-
responses: {
|
|
27656
|
-
/** @description OK */
|
|
27657
|
-
200: {
|
|
27658
|
-
headers: {
|
|
27659
|
-
[name: string]: unknown;
|
|
27660
|
-
};
|
|
27661
|
-
content: {
|
|
27662
|
-
"application/json": {
|
|
27663
|
-
invoice?: components["schemas"]["invoice"];
|
|
27664
|
-
invoiceItems?: components["schemas"]["invoiceItem"][];
|
|
27665
|
-
};
|
|
27666
|
-
};
|
|
27667
|
-
};
|
|
27668
|
-
/** @description Bad Request */
|
|
27669
|
-
400: {
|
|
27670
|
-
headers: {
|
|
27671
|
-
[name: string]: unknown;
|
|
27672
|
-
};
|
|
27673
|
-
content: {
|
|
27674
|
-
"application/json": components["schemas"]["responseError"];
|
|
27675
|
-
};
|
|
27676
|
-
};
|
|
27677
|
-
};
|
|
27678
|
-
};
|
|
27679
27828
|
payInvoice: {
|
|
27680
27829
|
parameters: {
|
|
27681
27830
|
query?: never;
|
|
@@ -27783,24 +27932,24 @@ interface operations {
|
|
|
27783
27932
|
listInvoiceItems: {
|
|
27784
27933
|
parameters: {
|
|
27785
27934
|
query?: {
|
|
27786
|
-
/** @description Filter
|
|
27935
|
+
/** @description Filter invoice items created on or after this date (ISO 8601). Use with createDate[lte] for a range. */
|
|
27787
27936
|
"createDate[gte]"?: string;
|
|
27788
|
-
/** @description Filter
|
|
27937
|
+
/** @description Filter invoice items created on or before this date (ISO 8601). Use with createDate[gte] for a range. */
|
|
27789
27938
|
"createDate[lte]"?: string;
|
|
27790
|
-
/** @description UUID of the customer whose
|
|
27939
|
+
/** @description UUID of the customer whose invoice items to list. */
|
|
27791
27940
|
customerRef?: string;
|
|
27792
|
-
/** @description Filter invoices issued on or after this date (ISO 8601). Use with issueDate[lte] for a range. */
|
|
27941
|
+
/** @description Filter invoice items on invoices issued on or after this date (ISO 8601). Items not on an issued invoice are excluded. Use with issueDate[lte] for a range. */
|
|
27793
27942
|
"issueDate[gte]"?: string;
|
|
27794
|
-
/** @description Filter invoices issued on or before this date (ISO 8601). Use with issueDate[gte] for a range. */
|
|
27943
|
+
/** @description Filter invoice items on invoices issued on or before this date (ISO 8601). Items not on an issued invoice are excluded. Use with issueDate[gte] for a range. */
|
|
27795
27944
|
"issueDate[lte]"?: string;
|
|
27796
|
-
/** @description Maximum number of
|
|
27945
|
+
/** @description Maximum number of invoice items per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
|
|
27797
27946
|
limit?: number;
|
|
27798
|
-
/** @description UUID of the location whose
|
|
27947
|
+
/** @description UUID of the location whose invoice items to list. */
|
|
27799
27948
|
locationRef?: string;
|
|
27800
27949
|
/** @description Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
|
|
27801
27950
|
nextPageToken?: string;
|
|
27802
27951
|
/**
|
|
27803
|
-
* @description Filter by invoice
|
|
27952
|
+
* @description Filter by the status of the invoice the item is on. Items not on an invoice are excluded. Comma-separated values, e.g. `draft,issued`.
|
|
27804
27953
|
*
|
|
27805
27954
|
* Supported values:
|
|
27806
27955
|
* - **draft** — created but not sent
|
|
@@ -35778,23 +35927,23 @@ interface GetUpcomingInvoiceQuery {
|
|
|
35778
35927
|
}
|
|
35779
35928
|
/** Query parameters for `sb.billing.invoices.items.list()`. */
|
|
35780
35929
|
interface ListInvoiceItemsQuery {
|
|
35781
|
-
/** Filter
|
|
35930
|
+
/** Filter invoice items created on or after this date (ISO 8601). Use with createDate[lte] for a range. */
|
|
35782
35931
|
"createDate[gte]"?: string;
|
|
35783
|
-
/** Filter
|
|
35932
|
+
/** Filter invoice items created on or before this date (ISO 8601). Use with createDate[gte] for a range. */
|
|
35784
35933
|
"createDate[lte]"?: string;
|
|
35785
|
-
/** UUID of the customer whose
|
|
35934
|
+
/** UUID of the customer whose invoice items to list. */
|
|
35786
35935
|
customerRef?: string;
|
|
35787
|
-
/** Filter invoices issued on or after this date (ISO 8601). Use with issueDate[lte] for a range. */
|
|
35936
|
+
/** Filter invoice items on invoices issued on or after this date (ISO 8601). Items not on an issued invoice are excluded. Use with issueDate[lte] for a range. */
|
|
35788
35937
|
"issueDate[gte]"?: string;
|
|
35789
|
-
/** Filter invoices issued on or before this date (ISO 8601). Use with issueDate[gte] for a range. */
|
|
35938
|
+
/** Filter invoice items on invoices issued on or before this date (ISO 8601). Items not on an issued invoice are excluded. Use with issueDate[gte] for a range. */
|
|
35790
35939
|
"issueDate[lte]"?: string;
|
|
35791
|
-
/** Maximum number of
|
|
35940
|
+
/** Maximum number of invoice items per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
|
|
35792
35941
|
limit?: number;
|
|
35793
|
-
/** UUID of the location whose
|
|
35942
|
+
/** UUID of the location whose invoice items to list. */
|
|
35794
35943
|
locationRef?: string;
|
|
35795
35944
|
/** Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
|
|
35796
35945
|
nextPageToken?: string;
|
|
35797
|
-
/** Filter by invoice
|
|
35946
|
+
/** Filter by the status of the invoice the item is on. Items not on an invoice are excluded. Comma-separated values, e.g. `draft,issued`.
|
|
35798
35947
|
|
|
35799
35948
|
Supported values:
|
|
35800
35949
|
- **draft** — created but not sent
|
|
@@ -35970,10 +36119,6 @@ declare function createResources(client: Client<paths>, defaults: SpacebringDefa
|
|
|
35970
36119
|
delete(invoiceId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
35971
36120
|
cancelPayment(invoiceId: string, options?: SpacebringRequestOptions): Promise<undefined>;
|
|
35972
36121
|
duplicate(invoiceId: string, options?: SpacebringRequestOptions): Promise<Invoice>;
|
|
35973
|
-
getItems(invoiceId: string, options?: SpacebringRequestOptions): Promise<{
|
|
35974
|
-
invoice?: Invoice;
|
|
35975
|
-
invoiceItems?: InvoiceItem[];
|
|
35976
|
-
}>;
|
|
35977
36122
|
getUpcoming(query?: GetUpcomingInvoiceQuery, options?: SpacebringRequestOptions): Promise<{
|
|
35978
36123
|
invoice?: Invoice;
|
|
35979
36124
|
invoiceItems?: InvoiceItem[];
|