@izak0s/spacebring-api 5.1.0 → 5.3.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
@@ -3603,6 +3603,11 @@ interface components {
3603
3603
  customerName?: string;
3604
3604
  /** @description Customer tax ID. */
3605
3605
  customerTaxId?: string;
3606
+ /**
3607
+ * Format: date-time
3608
+ * @description ISO timestamp of when the invoice was deleted.
3609
+ */
3610
+ deleteDate?: string;
3606
3611
  /**
3607
3612
  * Format: date-time
3608
3613
  * @description Payment due date.
@@ -3982,6 +3987,11 @@ interface components {
3982
3987
  customerName?: string;
3983
3988
  /** @description Customer tax ID. */
3984
3989
  customerTaxId?: string;
3990
+ /**
3991
+ * Format: date-time
3992
+ * @description ISO timestamp of when the invoice was deleted.
3993
+ */
3994
+ deleteDate?: string;
3985
3995
  /**
3986
3996
  * Format: date-time
3987
3997
  * @description Payment due date.
@@ -4358,6 +4368,11 @@ interface components {
4358
4368
  customerName?: string;
4359
4369
  /** @description Customer tax ID. */
4360
4370
  customerTaxId?: string;
4371
+ /**
4372
+ * Format: date-time
4373
+ * @description ISO timestamp of when the invoice was deleted.
4374
+ */
4375
+ deleteDate?: string;
4361
4376
  /**
4362
4377
  * Format: date-time
4363
4378
  * @description Payment due date.
@@ -7302,7 +7317,7 @@ interface components {
7302
7317
  * @description Payment type.
7303
7318
  * @enum {string}
7304
7319
  */
7305
- type: "credits" | "external" | "flow" | "fondy" | "freedompay" | "invoice" | "kakaopay" | "maya" | "mercadopago" | "mollie" | "paypal" | "paystack" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "xendit";
7320
+ type: "authorizenet" | "credits" | "external" | "flow" | "fondy" | "freedompay" | "invoice" | "kakaopay" | "maya" | "mercadopago" | "mollie" | "paypal" | "paystack" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "xendit";
7306
7321
  };
7307
7322
  /** @description Number of tickets included in this purchase. */
7308
7323
  quantity: number;
@@ -7340,6 +7355,11 @@ interface components {
7340
7355
  * @description ISO timestamp of when the post was created.
7341
7356
  */
7342
7357
  createDate: string;
7358
+ /**
7359
+ * Format: date-time
7360
+ * @description ISO timestamp of when the post was deleted.
7361
+ */
7362
+ deleteDate?: string;
7343
7363
  /**
7344
7364
  * Format: uuid
7345
7365
  * @description Unique identifier of the post.
@@ -9931,7 +9951,7 @@ interface components {
9931
9951
  * @description Payment gateway type.
9932
9952
  * @enum {string}
9933
9953
  */
9934
- type?: "flow" | "fondy" | "freedompay" | "kakaopay" | "maya" | "mercadopago" | "paypal" | "paystack" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "mollie" | "xendit";
9954
+ type?: "authorizenet" | "flow" | "fondy" | "freedompay" | "kakaopay" | "maya" | "mercadopago" | "paypal" | "paystack" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "mollie" | "xendit";
9935
9955
  };
9936
9956
  /**
9937
9957
  * @description Payment method type.
@@ -10399,7 +10419,7 @@ interface components {
10399
10419
  * @description Payment gateway type.
10400
10420
  * @enum {string}
10401
10421
  */
10402
- type?: "flow" | "fondy" | "freedompay" | "kakaopay" | "maya" | "mercadopago" | "paypal" | "paystack" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "mollie" | "xendit";
10422
+ type?: "authorizenet" | "flow" | "fondy" | "freedompay" | "kakaopay" | "maya" | "mercadopago" | "paypal" | "paystack" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "mollie" | "xendit";
10403
10423
  };
10404
10424
  /**
10405
10425
  * @description Payment method type.
@@ -10901,6 +10921,11 @@ interface components {
10901
10921
  * @description Unique identifier of the resource.
10902
10922
  */
10903
10923
  id: string;
10924
+ /**
10925
+ * @deprecated
10926
+ * @description Cover image URL of the resource.
10927
+ */
10928
+ coverUrl?: string;
10904
10929
  /** @description Cover image URL of the resource. */
10905
10930
  imageUrl?: string;
10906
10931
  /** @description Display name of the resource. */
@@ -11423,6 +11448,11 @@ interface components {
11423
11448
  * @description Unique identifier of the resource.
11424
11449
  */
11425
11450
  id: string;
11451
+ /**
11452
+ * @deprecated
11453
+ * @description Cover image URL of the resource.
11454
+ */
11455
+ coverUrl?: string;
11426
11456
  /** @description Cover image URL of the resource. */
11427
11457
  imageUrl?: string;
11428
11458
  /** @description Display name of the resource. */
@@ -11946,6 +11976,11 @@ interface components {
11946
11976
  * @description Unique identifier of the resource.
11947
11977
  */
11948
11978
  id: string;
11979
+ /**
11980
+ * @deprecated
11981
+ * @description Cover image URL of the resource.
11982
+ */
11983
+ coverUrl?: string;
11949
11984
  /** @description Cover image URL of the resource. */
11950
11985
  imageUrl?: string;
11951
11986
  /** @description Display name of the resource. */
@@ -15241,6 +15276,11 @@ interface components {
15241
15276
  * @description ISO timestamp of the scheduled visit date.
15242
15277
  */
15243
15278
  date: string;
15279
+ /**
15280
+ * Format: date-time
15281
+ * @description ISO timestamp of when the visit was canceled.
15282
+ */
15283
+ deleteDate?: string;
15244
15284
  /**
15245
15285
  * Format: uuid
15246
15286
  * @description Unique identifier of the visit.
@@ -15716,8 +15756,37 @@ interface components {
15716
15756
  "application/json": {
15717
15757
  /** @description Partial payment amount in major units. */
15718
15758
  amount?: number;
15719
- /** @description Payment method to use. */
15720
- paymentMethod: {
15759
+ /** @description Payment details. Takes precedence over the deprecated paymentMethod field. */
15760
+ payment?: {
15761
+ /** @description Payment method details. */
15762
+ method: {
15763
+ /** @description External payment method, recorded outside the platform. */
15764
+ external?: Record<string, never>;
15765
+ /** @description Payment gateway (card) payment method. */
15766
+ paymentGateway?: {
15767
+ /**
15768
+ * @description Payment gateway provider.
15769
+ * @enum {string}
15770
+ */
15771
+ gateway: "authorizenet" | "freedompay" | "kakaopay" | "maya" | "mercadopago" | "mollie" | "paypal" | "paystack" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "xendit";
15772
+ /**
15773
+ * Format: uuid
15774
+ * @description ID of the saved payment method.
15775
+ */
15776
+ id?: string | null;
15777
+ };
15778
+ /**
15779
+ * @description Selected payment method type.
15780
+ * @enum {string}
15781
+ */
15782
+ type: "external" | "paymentGateway";
15783
+ };
15784
+ };
15785
+ /**
15786
+ * @deprecated
15787
+ * @description Payment method to use. Use payment.method instead.
15788
+ */
15789
+ paymentMethod?: {
15721
15790
  /**
15722
15791
  * Format: uuid
15723
15792
  * @description ID of the saved payment method.
@@ -15727,7 +15796,7 @@ interface components {
15727
15796
  * @description Payment gateway type.
15728
15797
  * @enum {string}
15729
15798
  */
15730
- type: "external" | "freedompay" | "kakaopay" | "maya" | "mercadopago" | "mollie" | "paypal" | "paystack" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "xendit";
15799
+ type: "authorizenet" | "external" | "freedompay" | "kakaopay" | "maya" | "mercadopago" | "mollie" | "paypal" | "paystack" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "xendit";
15731
15800
  };
15732
15801
  /** @description Whether the user has accepted the payment terms. */
15733
15802
  termsConsent?: boolean;
package/dist/index.d.ts CHANGED
@@ -3603,6 +3603,11 @@ interface components {
3603
3603
  customerName?: string;
3604
3604
  /** @description Customer tax ID. */
3605
3605
  customerTaxId?: string;
3606
+ /**
3607
+ * Format: date-time
3608
+ * @description ISO timestamp of when the invoice was deleted.
3609
+ */
3610
+ deleteDate?: string;
3606
3611
  /**
3607
3612
  * Format: date-time
3608
3613
  * @description Payment due date.
@@ -3982,6 +3987,11 @@ interface components {
3982
3987
  customerName?: string;
3983
3988
  /** @description Customer tax ID. */
3984
3989
  customerTaxId?: string;
3990
+ /**
3991
+ * Format: date-time
3992
+ * @description ISO timestamp of when the invoice was deleted.
3993
+ */
3994
+ deleteDate?: string;
3985
3995
  /**
3986
3996
  * Format: date-time
3987
3997
  * @description Payment due date.
@@ -4358,6 +4368,11 @@ interface components {
4358
4368
  customerName?: string;
4359
4369
  /** @description Customer tax ID. */
4360
4370
  customerTaxId?: string;
4371
+ /**
4372
+ * Format: date-time
4373
+ * @description ISO timestamp of when the invoice was deleted.
4374
+ */
4375
+ deleteDate?: string;
4361
4376
  /**
4362
4377
  * Format: date-time
4363
4378
  * @description Payment due date.
@@ -7302,7 +7317,7 @@ interface components {
7302
7317
  * @description Payment type.
7303
7318
  * @enum {string}
7304
7319
  */
7305
- type: "credits" | "external" | "flow" | "fondy" | "freedompay" | "invoice" | "kakaopay" | "maya" | "mercadopago" | "mollie" | "paypal" | "paystack" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "xendit";
7320
+ type: "authorizenet" | "credits" | "external" | "flow" | "fondy" | "freedompay" | "invoice" | "kakaopay" | "maya" | "mercadopago" | "mollie" | "paypal" | "paystack" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "xendit";
7306
7321
  };
7307
7322
  /** @description Number of tickets included in this purchase. */
7308
7323
  quantity: number;
@@ -7340,6 +7355,11 @@ interface components {
7340
7355
  * @description ISO timestamp of when the post was created.
7341
7356
  */
7342
7357
  createDate: string;
7358
+ /**
7359
+ * Format: date-time
7360
+ * @description ISO timestamp of when the post was deleted.
7361
+ */
7362
+ deleteDate?: string;
7343
7363
  /**
7344
7364
  * Format: uuid
7345
7365
  * @description Unique identifier of the post.
@@ -9931,7 +9951,7 @@ interface components {
9931
9951
  * @description Payment gateway type.
9932
9952
  * @enum {string}
9933
9953
  */
9934
- type?: "flow" | "fondy" | "freedompay" | "kakaopay" | "maya" | "mercadopago" | "paypal" | "paystack" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "mollie" | "xendit";
9954
+ type?: "authorizenet" | "flow" | "fondy" | "freedompay" | "kakaopay" | "maya" | "mercadopago" | "paypal" | "paystack" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "mollie" | "xendit";
9935
9955
  };
9936
9956
  /**
9937
9957
  * @description Payment method type.
@@ -10399,7 +10419,7 @@ interface components {
10399
10419
  * @description Payment gateway type.
10400
10420
  * @enum {string}
10401
10421
  */
10402
- type?: "flow" | "fondy" | "freedompay" | "kakaopay" | "maya" | "mercadopago" | "paypal" | "paystack" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "mollie" | "xendit";
10422
+ type?: "authorizenet" | "flow" | "fondy" | "freedompay" | "kakaopay" | "maya" | "mercadopago" | "paypal" | "paystack" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "mollie" | "xendit";
10403
10423
  };
10404
10424
  /**
10405
10425
  * @description Payment method type.
@@ -10901,6 +10921,11 @@ interface components {
10901
10921
  * @description Unique identifier of the resource.
10902
10922
  */
10903
10923
  id: string;
10924
+ /**
10925
+ * @deprecated
10926
+ * @description Cover image URL of the resource.
10927
+ */
10928
+ coverUrl?: string;
10904
10929
  /** @description Cover image URL of the resource. */
10905
10930
  imageUrl?: string;
10906
10931
  /** @description Display name of the resource. */
@@ -11423,6 +11448,11 @@ interface components {
11423
11448
  * @description Unique identifier of the resource.
11424
11449
  */
11425
11450
  id: string;
11451
+ /**
11452
+ * @deprecated
11453
+ * @description Cover image URL of the resource.
11454
+ */
11455
+ coverUrl?: string;
11426
11456
  /** @description Cover image URL of the resource. */
11427
11457
  imageUrl?: string;
11428
11458
  /** @description Display name of the resource. */
@@ -11946,6 +11976,11 @@ interface components {
11946
11976
  * @description Unique identifier of the resource.
11947
11977
  */
11948
11978
  id: string;
11979
+ /**
11980
+ * @deprecated
11981
+ * @description Cover image URL of the resource.
11982
+ */
11983
+ coverUrl?: string;
11949
11984
  /** @description Cover image URL of the resource. */
11950
11985
  imageUrl?: string;
11951
11986
  /** @description Display name of the resource. */
@@ -15241,6 +15276,11 @@ interface components {
15241
15276
  * @description ISO timestamp of the scheduled visit date.
15242
15277
  */
15243
15278
  date: string;
15279
+ /**
15280
+ * Format: date-time
15281
+ * @description ISO timestamp of when the visit was canceled.
15282
+ */
15283
+ deleteDate?: string;
15244
15284
  /**
15245
15285
  * Format: uuid
15246
15286
  * @description Unique identifier of the visit.
@@ -15716,8 +15756,37 @@ interface components {
15716
15756
  "application/json": {
15717
15757
  /** @description Partial payment amount in major units. */
15718
15758
  amount?: number;
15719
- /** @description Payment method to use. */
15720
- paymentMethod: {
15759
+ /** @description Payment details. Takes precedence over the deprecated paymentMethod field. */
15760
+ payment?: {
15761
+ /** @description Payment method details. */
15762
+ method: {
15763
+ /** @description External payment method, recorded outside the platform. */
15764
+ external?: Record<string, never>;
15765
+ /** @description Payment gateway (card) payment method. */
15766
+ paymentGateway?: {
15767
+ /**
15768
+ * @description Payment gateway provider.
15769
+ * @enum {string}
15770
+ */
15771
+ gateway: "authorizenet" | "freedompay" | "kakaopay" | "maya" | "mercadopago" | "mollie" | "paypal" | "paystack" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "xendit";
15772
+ /**
15773
+ * Format: uuid
15774
+ * @description ID of the saved payment method.
15775
+ */
15776
+ id?: string | null;
15777
+ };
15778
+ /**
15779
+ * @description Selected payment method type.
15780
+ * @enum {string}
15781
+ */
15782
+ type: "external" | "paymentGateway";
15783
+ };
15784
+ };
15785
+ /**
15786
+ * @deprecated
15787
+ * @description Payment method to use. Use payment.method instead.
15788
+ */
15789
+ paymentMethod?: {
15721
15790
  /**
15722
15791
  * Format: uuid
15723
15792
  * @description ID of the saved payment method.
@@ -15727,7 +15796,7 @@ interface components {
15727
15796
  * @description Payment gateway type.
15728
15797
  * @enum {string}
15729
15798
  */
15730
- type: "external" | "freedompay" | "kakaopay" | "maya" | "mercadopago" | "mollie" | "paypal" | "paystack" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "xendit";
15799
+ type: "authorizenet" | "external" | "freedompay" | "kakaopay" | "maya" | "mercadopago" | "mollie" | "paypal" | "paystack" | "payway" | "plata" | "stripe" | "tap" | "wayforpay" | "xendit";
15731
15800
  };
15732
15801
  /** @description Whether the user has accepted the payment terms. */
15733
15802
  termsConsent?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@izak0s/spacebring-api",
3
- "version": "5.1.0",
3
+ "version": "5.3.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",