@izak0s/spacebring-api 9.8.0 → 9.9.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.d.cts CHANGED
@@ -9082,16 +9082,16 @@ interface components {
9082
9082
  enabled: boolean;
9083
9083
  /** @description Stepped credit pricing tiers. */
9084
9084
  tiers: {
9085
- /** @description Fixed fee added for this tier. */
9085
+ /** @description Fixed fee added once to bookings in this tier. */
9086
9086
  flatAmount: number;
9087
- /** @description Start of this price tier in booking minutes. */
9087
+ /** @description Booking length in minutes at which this tier starts, for example 480 for 8 hours. */
9088
9088
  from: number;
9089
9089
  /**
9090
9090
  * @description Whether the tier is priced per hour or per day.
9091
9091
  * @enum {string}
9092
9092
  */
9093
9093
  unit: "hour" | "day";
9094
- /** @description Variable price per unit within this tier. */
9094
+ /** @description Price per unit of booking time within this tier, never per minute. */
9095
9095
  unitAmount: number;
9096
9096
  }[];
9097
9097
  };
@@ -9160,16 +9160,16 @@ interface components {
9160
9160
  enabled: boolean;
9161
9161
  /** @description Stepped money pricing tiers. */
9162
9162
  tiers: {
9163
- /** @description Fixed fee added for this tier. */
9163
+ /** @description Fixed fee added once to bookings in this tier. */
9164
9164
  flatAmount: number;
9165
- /** @description Start of this price tier in booking minutes. */
9165
+ /** @description Booking length in minutes at which this tier starts, for example 480 for 8 hours. */
9166
9166
  from: number;
9167
9167
  /**
9168
9168
  * @description Whether the tier is priced per hour or per day.
9169
9169
  * @enum {string}
9170
9170
  */
9171
9171
  unit: "hour" | "day";
9172
- /** @description Variable price per unit within this tier. */
9172
+ /** @description Price per unit of booking time within this tier, never per minute. */
9173
9173
  unitAmount: number;
9174
9174
  }[];
9175
9175
  };
@@ -9713,16 +9713,16 @@ interface components {
9713
9713
  enabled: boolean;
9714
9714
  /** @description Stepped credit pricing tiers. */
9715
9715
  tiers: {
9716
- /** @description Fixed fee added for this tier. */
9716
+ /** @description Fixed fee added once to bookings in this tier. */
9717
9717
  flatAmount: number;
9718
- /** @description Start of this price tier in booking minutes. */
9718
+ /** @description Booking length in minutes at which this tier starts, for example 480 for 8 hours. */
9719
9719
  from: number;
9720
9720
  /**
9721
9721
  * @description Whether the tier is priced per hour or per day.
9722
9722
  * @enum {string}
9723
9723
  */
9724
9724
  unit: "hour" | "day";
9725
- /** @description Variable price per unit within this tier. */
9725
+ /** @description Price per unit of booking time within this tier, never per minute. */
9726
9726
  unitAmount: number;
9727
9727
  }[];
9728
9728
  };
@@ -9791,16 +9791,16 @@ interface components {
9791
9791
  enabled: boolean;
9792
9792
  /** @description Stepped money pricing tiers. */
9793
9793
  tiers: {
9794
- /** @description Fixed fee added for this tier. */
9794
+ /** @description Fixed fee added once to bookings in this tier. */
9795
9795
  flatAmount: number;
9796
- /** @description Start of this price tier in booking minutes. */
9796
+ /** @description Booking length in minutes at which this tier starts, for example 480 for 8 hours. */
9797
9797
  from: number;
9798
9798
  /**
9799
9799
  * @description Whether the tier is priced per hour or per day.
9800
9800
  * @enum {string}
9801
9801
  */
9802
9802
  unit: "hour" | "day";
9803
- /** @description Variable price per unit within this tier. */
9803
+ /** @description Price per unit of booking time within this tier, never per minute. */
9804
9804
  unitAmount: number;
9805
9805
  }[];
9806
9806
  };
@@ -13206,6 +13206,35 @@ interface components {
13206
13206
  type?: "company" | "user";
13207
13207
  };
13208
13208
  };
13209
+ /** @description External payment method details: the payment is collected outside Spacebring, in cash or by bank transfer. */
13210
+ external?: {
13211
+ /** @description Customer who paid outside Spacebring. */
13212
+ customer: {
13213
+ /** @description Customer identifier. */
13214
+ id?: string;
13215
+ /** @description Location the customer belongs to. */
13216
+ location?: {
13217
+ /**
13218
+ * Format: uuid
13219
+ * @description Unique identifier of the location.
13220
+ */
13221
+ id: string;
13222
+ /** @description Display name of the location. */
13223
+ title: string;
13224
+ };
13225
+ /** @description First name of the customer. */
13226
+ name?: string | null;
13227
+ /** @description Last name of the customer. */
13228
+ surname?: string | null;
13229
+ /** @description Company title. */
13230
+ title?: string;
13231
+ /**
13232
+ * @description Customer type.
13233
+ * @enum {string}
13234
+ */
13235
+ type?: "company" | "user";
13236
+ };
13237
+ };
13209
13238
  /** @description Invoice payment method details. */
13210
13239
  invoice?: {
13211
13240
  /** @description Customer who paid by invoice. */
@@ -13299,7 +13328,7 @@ interface components {
13299
13328
  * @description Payment method type.
13300
13329
  * @enum {string}
13301
13330
  */
13302
- type: "credits" | "invoice" | "paymentGateway";
13331
+ type: "credits" | "external" | "invoice" | "paymentGateway";
13303
13332
  };
13304
13333
  /** @description Price breakdown for this payment. */
13305
13334
  price: {
@@ -13674,6 +13703,35 @@ interface components {
13674
13703
  type?: "company" | "user";
13675
13704
  };
13676
13705
  };
13706
+ /** @description External payment method details: the payment is collected outside Spacebring, in cash or by bank transfer. */
13707
+ external?: {
13708
+ /** @description Customer who paid outside Spacebring. */
13709
+ customer: {
13710
+ /** @description Customer identifier. */
13711
+ id?: string;
13712
+ /** @description Location the customer belongs to. */
13713
+ location?: {
13714
+ /**
13715
+ * Format: uuid
13716
+ * @description Unique identifier of the location.
13717
+ */
13718
+ id: string;
13719
+ /** @description Display name of the location. */
13720
+ title: string;
13721
+ };
13722
+ /** @description First name of the customer. */
13723
+ name?: string | null;
13724
+ /** @description Last name of the customer. */
13725
+ surname?: string | null;
13726
+ /** @description Company title. */
13727
+ title?: string;
13728
+ /**
13729
+ * @description Customer type.
13730
+ * @enum {string}
13731
+ */
13732
+ type?: "company" | "user";
13733
+ };
13734
+ };
13677
13735
  /** @description Invoice payment method details. */
13678
13736
  invoice?: {
13679
13737
  /** @description Customer who paid by invoice. */
@@ -13767,7 +13825,7 @@ interface components {
13767
13825
  * @description Payment method type.
13768
13826
  * @enum {string}
13769
13827
  */
13770
- type: "credits" | "invoice" | "paymentGateway";
13828
+ type: "credits" | "external" | "invoice" | "paymentGateway";
13771
13829
  };
13772
13830
  /** @description Price breakdown for this payment. */
13773
13831
  price: {
@@ -22940,11 +22998,11 @@ interface components {
22940
22998
  price?: number;
22941
22999
  /** @description Stepped credit pricing tiers. */
22942
23000
  tiers: {
22943
- /** @description Fixed fee added for this tier. */
23001
+ /** @description Fixed fee added once to bookings in this tier. */
22944
23002
  flatAmount: number;
22945
- /** @description Start of this price tier in booking minutes. */
23003
+ /** @description Booking length in minutes at which this tier starts, for example 480 for 8 hours. */
22946
23004
  from: number;
22947
- /** @description Variable price per unit within this tier. */
23005
+ /** @description Price per hour of booking within this tier, not per minute, for example 40 for 40 per hour. */
22948
23006
  unitAmount: number;
22949
23007
  }[];
22950
23008
  };
@@ -23009,11 +23067,11 @@ interface components {
23009
23067
  price?: number;
23010
23068
  /** @description Stepped money pricing tiers. */
23011
23069
  tiers: {
23012
- /** @description Fixed fee added for this tier. */
23070
+ /** @description Fixed fee added once to bookings in this tier. */
23013
23071
  flatAmount: number;
23014
- /** @description Start of this price tier in booking minutes. */
23072
+ /** @description Booking length in minutes at which this tier starts, for example 480 for 8 hours. */
23015
23073
  from: number;
23016
- /** @description Variable price per unit within this tier. */
23074
+ /** @description Price per hour of booking within this tier, not per minute, for example 40 for 40 per hour. */
23017
23075
  unitAmount: number;
23018
23076
  }[];
23019
23077
  };
@@ -23361,11 +23419,11 @@ interface components {
23361
23419
  price?: number;
23362
23420
  /** @description Stepped credit pricing tiers. */
23363
23421
  tiers: {
23364
- /** @description Fixed fee added for this tier. */
23422
+ /** @description Fixed fee added once to bookings in this tier. */
23365
23423
  flatAmount: number;
23366
- /** @description Start of this price tier in booking minutes. */
23424
+ /** @description Booking length in minutes at which this tier starts, for example 480 for 8 hours. */
23367
23425
  from: number;
23368
- /** @description Variable price per unit within this tier. */
23426
+ /** @description Price per hour of booking within this tier, not per minute, for example 40 for 40 per hour. */
23369
23427
  unitAmount: number;
23370
23428
  }[];
23371
23429
  };
@@ -23420,11 +23478,11 @@ interface components {
23420
23478
  price?: number;
23421
23479
  /** @description Stepped money pricing tiers. */
23422
23480
  tiers: {
23423
- /** @description Fixed fee added for this tier. */
23481
+ /** @description Fixed fee added once to bookings in this tier. */
23424
23482
  flatAmount: number;
23425
- /** @description Start of this price tier in booking minutes. */
23483
+ /** @description Booking length in minutes at which this tier starts, for example 480 for 8 hours. */
23426
23484
  from: number;
23427
- /** @description Variable price per unit within this tier. */
23485
+ /** @description Price per hour of booking within this tier, not per minute, for example 40 for 40 per hour. */
23428
23486
  unitAmount: number;
23429
23487
  }[];
23430
23488
  };
package/dist/index.d.ts CHANGED
@@ -9082,16 +9082,16 @@ interface components {
9082
9082
  enabled: boolean;
9083
9083
  /** @description Stepped credit pricing tiers. */
9084
9084
  tiers: {
9085
- /** @description Fixed fee added for this tier. */
9085
+ /** @description Fixed fee added once to bookings in this tier. */
9086
9086
  flatAmount: number;
9087
- /** @description Start of this price tier in booking minutes. */
9087
+ /** @description Booking length in minutes at which this tier starts, for example 480 for 8 hours. */
9088
9088
  from: number;
9089
9089
  /**
9090
9090
  * @description Whether the tier is priced per hour or per day.
9091
9091
  * @enum {string}
9092
9092
  */
9093
9093
  unit: "hour" | "day";
9094
- /** @description Variable price per unit within this tier. */
9094
+ /** @description Price per unit of booking time within this tier, never per minute. */
9095
9095
  unitAmount: number;
9096
9096
  }[];
9097
9097
  };
@@ -9160,16 +9160,16 @@ interface components {
9160
9160
  enabled: boolean;
9161
9161
  /** @description Stepped money pricing tiers. */
9162
9162
  tiers: {
9163
- /** @description Fixed fee added for this tier. */
9163
+ /** @description Fixed fee added once to bookings in this tier. */
9164
9164
  flatAmount: number;
9165
- /** @description Start of this price tier in booking minutes. */
9165
+ /** @description Booking length in minutes at which this tier starts, for example 480 for 8 hours. */
9166
9166
  from: number;
9167
9167
  /**
9168
9168
  * @description Whether the tier is priced per hour or per day.
9169
9169
  * @enum {string}
9170
9170
  */
9171
9171
  unit: "hour" | "day";
9172
- /** @description Variable price per unit within this tier. */
9172
+ /** @description Price per unit of booking time within this tier, never per minute. */
9173
9173
  unitAmount: number;
9174
9174
  }[];
9175
9175
  };
@@ -9713,16 +9713,16 @@ interface components {
9713
9713
  enabled: boolean;
9714
9714
  /** @description Stepped credit pricing tiers. */
9715
9715
  tiers: {
9716
- /** @description Fixed fee added for this tier. */
9716
+ /** @description Fixed fee added once to bookings in this tier. */
9717
9717
  flatAmount: number;
9718
- /** @description Start of this price tier in booking minutes. */
9718
+ /** @description Booking length in minutes at which this tier starts, for example 480 for 8 hours. */
9719
9719
  from: number;
9720
9720
  /**
9721
9721
  * @description Whether the tier is priced per hour or per day.
9722
9722
  * @enum {string}
9723
9723
  */
9724
9724
  unit: "hour" | "day";
9725
- /** @description Variable price per unit within this tier. */
9725
+ /** @description Price per unit of booking time within this tier, never per minute. */
9726
9726
  unitAmount: number;
9727
9727
  }[];
9728
9728
  };
@@ -9791,16 +9791,16 @@ interface components {
9791
9791
  enabled: boolean;
9792
9792
  /** @description Stepped money pricing tiers. */
9793
9793
  tiers: {
9794
- /** @description Fixed fee added for this tier. */
9794
+ /** @description Fixed fee added once to bookings in this tier. */
9795
9795
  flatAmount: number;
9796
- /** @description Start of this price tier in booking minutes. */
9796
+ /** @description Booking length in minutes at which this tier starts, for example 480 for 8 hours. */
9797
9797
  from: number;
9798
9798
  /**
9799
9799
  * @description Whether the tier is priced per hour or per day.
9800
9800
  * @enum {string}
9801
9801
  */
9802
9802
  unit: "hour" | "day";
9803
- /** @description Variable price per unit within this tier. */
9803
+ /** @description Price per unit of booking time within this tier, never per minute. */
9804
9804
  unitAmount: number;
9805
9805
  }[];
9806
9806
  };
@@ -13206,6 +13206,35 @@ interface components {
13206
13206
  type?: "company" | "user";
13207
13207
  };
13208
13208
  };
13209
+ /** @description External payment method details: the payment is collected outside Spacebring, in cash or by bank transfer. */
13210
+ external?: {
13211
+ /** @description Customer who paid outside Spacebring. */
13212
+ customer: {
13213
+ /** @description Customer identifier. */
13214
+ id?: string;
13215
+ /** @description Location the customer belongs to. */
13216
+ location?: {
13217
+ /**
13218
+ * Format: uuid
13219
+ * @description Unique identifier of the location.
13220
+ */
13221
+ id: string;
13222
+ /** @description Display name of the location. */
13223
+ title: string;
13224
+ };
13225
+ /** @description First name of the customer. */
13226
+ name?: string | null;
13227
+ /** @description Last name of the customer. */
13228
+ surname?: string | null;
13229
+ /** @description Company title. */
13230
+ title?: string;
13231
+ /**
13232
+ * @description Customer type.
13233
+ * @enum {string}
13234
+ */
13235
+ type?: "company" | "user";
13236
+ };
13237
+ };
13209
13238
  /** @description Invoice payment method details. */
13210
13239
  invoice?: {
13211
13240
  /** @description Customer who paid by invoice. */
@@ -13299,7 +13328,7 @@ interface components {
13299
13328
  * @description Payment method type.
13300
13329
  * @enum {string}
13301
13330
  */
13302
- type: "credits" | "invoice" | "paymentGateway";
13331
+ type: "credits" | "external" | "invoice" | "paymentGateway";
13303
13332
  };
13304
13333
  /** @description Price breakdown for this payment. */
13305
13334
  price: {
@@ -13674,6 +13703,35 @@ interface components {
13674
13703
  type?: "company" | "user";
13675
13704
  };
13676
13705
  };
13706
+ /** @description External payment method details: the payment is collected outside Spacebring, in cash or by bank transfer. */
13707
+ external?: {
13708
+ /** @description Customer who paid outside Spacebring. */
13709
+ customer: {
13710
+ /** @description Customer identifier. */
13711
+ id?: string;
13712
+ /** @description Location the customer belongs to. */
13713
+ location?: {
13714
+ /**
13715
+ * Format: uuid
13716
+ * @description Unique identifier of the location.
13717
+ */
13718
+ id: string;
13719
+ /** @description Display name of the location. */
13720
+ title: string;
13721
+ };
13722
+ /** @description First name of the customer. */
13723
+ name?: string | null;
13724
+ /** @description Last name of the customer. */
13725
+ surname?: string | null;
13726
+ /** @description Company title. */
13727
+ title?: string;
13728
+ /**
13729
+ * @description Customer type.
13730
+ * @enum {string}
13731
+ */
13732
+ type?: "company" | "user";
13733
+ };
13734
+ };
13677
13735
  /** @description Invoice payment method details. */
13678
13736
  invoice?: {
13679
13737
  /** @description Customer who paid by invoice. */
@@ -13767,7 +13825,7 @@ interface components {
13767
13825
  * @description Payment method type.
13768
13826
  * @enum {string}
13769
13827
  */
13770
- type: "credits" | "invoice" | "paymentGateway";
13828
+ type: "credits" | "external" | "invoice" | "paymentGateway";
13771
13829
  };
13772
13830
  /** @description Price breakdown for this payment. */
13773
13831
  price: {
@@ -22940,11 +22998,11 @@ interface components {
22940
22998
  price?: number;
22941
22999
  /** @description Stepped credit pricing tiers. */
22942
23000
  tiers: {
22943
- /** @description Fixed fee added for this tier. */
23001
+ /** @description Fixed fee added once to bookings in this tier. */
22944
23002
  flatAmount: number;
22945
- /** @description Start of this price tier in booking minutes. */
23003
+ /** @description Booking length in minutes at which this tier starts, for example 480 for 8 hours. */
22946
23004
  from: number;
22947
- /** @description Variable price per unit within this tier. */
23005
+ /** @description Price per hour of booking within this tier, not per minute, for example 40 for 40 per hour. */
22948
23006
  unitAmount: number;
22949
23007
  }[];
22950
23008
  };
@@ -23009,11 +23067,11 @@ interface components {
23009
23067
  price?: number;
23010
23068
  /** @description Stepped money pricing tiers. */
23011
23069
  tiers: {
23012
- /** @description Fixed fee added for this tier. */
23070
+ /** @description Fixed fee added once to bookings in this tier. */
23013
23071
  flatAmount: number;
23014
- /** @description Start of this price tier in booking minutes. */
23072
+ /** @description Booking length in minutes at which this tier starts, for example 480 for 8 hours. */
23015
23073
  from: number;
23016
- /** @description Variable price per unit within this tier. */
23074
+ /** @description Price per hour of booking within this tier, not per minute, for example 40 for 40 per hour. */
23017
23075
  unitAmount: number;
23018
23076
  }[];
23019
23077
  };
@@ -23361,11 +23419,11 @@ interface components {
23361
23419
  price?: number;
23362
23420
  /** @description Stepped credit pricing tiers. */
23363
23421
  tiers: {
23364
- /** @description Fixed fee added for this tier. */
23422
+ /** @description Fixed fee added once to bookings in this tier. */
23365
23423
  flatAmount: number;
23366
- /** @description Start of this price tier in booking minutes. */
23424
+ /** @description Booking length in minutes at which this tier starts, for example 480 for 8 hours. */
23367
23425
  from: number;
23368
- /** @description Variable price per unit within this tier. */
23426
+ /** @description Price per hour of booking within this tier, not per minute, for example 40 for 40 per hour. */
23369
23427
  unitAmount: number;
23370
23428
  }[];
23371
23429
  };
@@ -23420,11 +23478,11 @@ interface components {
23420
23478
  price?: number;
23421
23479
  /** @description Stepped money pricing tiers. */
23422
23480
  tiers: {
23423
- /** @description Fixed fee added for this tier. */
23481
+ /** @description Fixed fee added once to bookings in this tier. */
23424
23482
  flatAmount: number;
23425
- /** @description Start of this price tier in booking minutes. */
23483
+ /** @description Booking length in minutes at which this tier starts, for example 480 for 8 hours. */
23426
23484
  from: number;
23427
- /** @description Variable price per unit within this tier. */
23485
+ /** @description Price per hour of booking within this tier, not per minute, for example 40 for 40 per hour. */
23428
23486
  unitAmount: number;
23429
23487
  }[];
23430
23488
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@izak0s/spacebring-api",
3
- "version": "9.8.0",
3
+ "version": "9.9.0",
4
4
  "description": "Community-maintained TypeScript client (SDK) for the Spacebring (formerly andcards) coworking space management API",
5
5
  "license": "MIT",
6
6
  "author": "izak0s",