@izak0s/spacebring-api 1.4.0 → 1.6.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/dist/index.d.cts +952 -183
- package/dist/index.d.ts +952 -183
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4297,6 +4297,295 @@ interface components {
|
|
|
4297
4297
|
*/
|
|
4298
4298
|
transactionRef: string;
|
|
4299
4299
|
};
|
|
4300
|
+
getCreditNotes: {
|
|
4301
|
+
/** @description List of credit notes. */
|
|
4302
|
+
creditNotes: {
|
|
4303
|
+
/** @description Amounts in the base currency. */
|
|
4304
|
+
baseAmounts: {
|
|
4305
|
+
/** @description ISO currency code. */
|
|
4306
|
+
currencyCode: string;
|
|
4307
|
+
/**
|
|
4308
|
+
* @deprecated
|
|
4309
|
+
* @description Deprecated.
|
|
4310
|
+
*/
|
|
4311
|
+
grossAmount: number;
|
|
4312
|
+
/** @description Post-payment credit amount in major units. */
|
|
4313
|
+
postPaymentAmount: number;
|
|
4314
|
+
/** @description Pre-payment credit amount in major units. */
|
|
4315
|
+
prePaymentAmount: number;
|
|
4316
|
+
/** @description Subtotal in major units. */
|
|
4317
|
+
subtotalAmount: number;
|
|
4318
|
+
/** @description Subtotal excluding tax in major units. */
|
|
4319
|
+
subtotalAmountExcludingTax: number;
|
|
4320
|
+
/** @description Tax breakdown. */
|
|
4321
|
+
taxes: {
|
|
4322
|
+
/** @description Tax amount in major units. */
|
|
4323
|
+
amount: number;
|
|
4324
|
+
/** @description Whether tax is included in the price. */
|
|
4325
|
+
inclusive: boolean;
|
|
4326
|
+
/** @description Tax rate as a decimal. */
|
|
4327
|
+
rate: number;
|
|
4328
|
+
/** @description Amount subject to tax in major units. */
|
|
4329
|
+
taxableAmount: number;
|
|
4330
|
+
}[];
|
|
4331
|
+
/** @description Total in major units. */
|
|
4332
|
+
totalAmount: number;
|
|
4333
|
+
/** @description Total excluding tax in major units. */
|
|
4334
|
+
totalExcludingTaxAmount: number;
|
|
4335
|
+
};
|
|
4336
|
+
/**
|
|
4337
|
+
* Format: date-time
|
|
4338
|
+
* @description ISO timestamp of when the credit note was created.
|
|
4339
|
+
*/
|
|
4340
|
+
createDate: string;
|
|
4341
|
+
/** @description Amount credited to customer balance in major units. */
|
|
4342
|
+
creditAmount?: number;
|
|
4343
|
+
/** @description ISO currency code (from base or alt currency). */
|
|
4344
|
+
currencyCode: string;
|
|
4345
|
+
/** @description Effective date in YYYY-MM-DD format. */
|
|
4346
|
+
effectiveDate?: string;
|
|
4347
|
+
/**
|
|
4348
|
+
* @deprecated
|
|
4349
|
+
* @description Deprecated.
|
|
4350
|
+
*/
|
|
4351
|
+
grossAmount: number;
|
|
4352
|
+
/**
|
|
4353
|
+
* Format: uuid
|
|
4354
|
+
* @description Unique identifier of the credit note.
|
|
4355
|
+
*/
|
|
4356
|
+
id: string;
|
|
4357
|
+
/** @description Internal memo (visible to admins only). */
|
|
4358
|
+
internalNote?: string;
|
|
4359
|
+
/**
|
|
4360
|
+
* Format: uuid
|
|
4361
|
+
* @description ID of the invoice being credited.
|
|
4362
|
+
*/
|
|
4363
|
+
invoiceRef: string;
|
|
4364
|
+
/** @description Credit note line items. */
|
|
4365
|
+
lines: {
|
|
4366
|
+
/** @description Amounts in the base currency. */
|
|
4367
|
+
baseAmounts: {
|
|
4368
|
+
/** @description ISO currency code. */
|
|
4369
|
+
currencyCode: string;
|
|
4370
|
+
/** @description Discount deduction in major units. */
|
|
4371
|
+
discountedAmount: number;
|
|
4372
|
+
/** @description Tax details. */
|
|
4373
|
+
tax?: {
|
|
4374
|
+
/** @description Tax amount in major units. */
|
|
4375
|
+
amount: number;
|
|
4376
|
+
/** @description Whether tax is included in the price. */
|
|
4377
|
+
inclusive: boolean;
|
|
4378
|
+
/** @description Tax rate as a decimal. */
|
|
4379
|
+
rate: number;
|
|
4380
|
+
/** @description Amount subject to tax in major units. */
|
|
4381
|
+
taxableAmount: number;
|
|
4382
|
+
};
|
|
4383
|
+
/** @description Total in major units. */
|
|
4384
|
+
totalAmount: number;
|
|
4385
|
+
/** @description Total excluding tax in major units. */
|
|
4386
|
+
totalExcludingTaxAmount: number;
|
|
4387
|
+
/** @description Unit price in major units. */
|
|
4388
|
+
unitAmount?: number;
|
|
4389
|
+
/** @description Unit price excluding tax in major units. */
|
|
4390
|
+
unitExcludingTaxAmount?: number;
|
|
4391
|
+
};
|
|
4392
|
+
/**
|
|
4393
|
+
* Format: date-time
|
|
4394
|
+
* @description ISO timestamp of line item creation.
|
|
4395
|
+
*/
|
|
4396
|
+
createDate: string;
|
|
4397
|
+
/** @description ISO currency code. */
|
|
4398
|
+
currencyCode: string;
|
|
4399
|
+
/** @description Discount deduction in major units. */
|
|
4400
|
+
discountedAmount: number;
|
|
4401
|
+
/** @description Applied discounts. */
|
|
4402
|
+
discounts?: {
|
|
4403
|
+
/** @description Coupon applied. */
|
|
4404
|
+
coupon: {
|
|
4405
|
+
/** @description Fixed discount amount in major units. */
|
|
4406
|
+
amountOff?: number;
|
|
4407
|
+
/** @description Currency code for amountOff. */
|
|
4408
|
+
currencyCode?: string;
|
|
4409
|
+
/** @description Discount duration type. */
|
|
4410
|
+
duration?: string;
|
|
4411
|
+
/** @description Number of months the discount applies. */
|
|
4412
|
+
durationInMonths?: number;
|
|
4413
|
+
/**
|
|
4414
|
+
* Format: uuid
|
|
4415
|
+
* @description Coupon ID.
|
|
4416
|
+
*/
|
|
4417
|
+
id?: string;
|
|
4418
|
+
/** @description Percentage discount. */
|
|
4419
|
+
percentOff?: number;
|
|
4420
|
+
/** @description Coupon type. */
|
|
4421
|
+
type?: string;
|
|
4422
|
+
};
|
|
4423
|
+
/** @description Promocode applied. */
|
|
4424
|
+
promocode?: {
|
|
4425
|
+
code: string;
|
|
4426
|
+
/** Format: date-time */
|
|
4427
|
+
expiration?: string;
|
|
4428
|
+
/** Format: uuid */
|
|
4429
|
+
id: string;
|
|
4430
|
+
limitByFirstPurchase?: boolean;
|
|
4431
|
+
};
|
|
4432
|
+
/**
|
|
4433
|
+
* Format: uuid
|
|
4434
|
+
* @description Associated subscription ID.
|
|
4435
|
+
*/
|
|
4436
|
+
subscriptionId?: string;
|
|
4437
|
+
}[];
|
|
4438
|
+
/**
|
|
4439
|
+
* Format: uuid
|
|
4440
|
+
* @description Unique identifier of the line item.
|
|
4441
|
+
*/
|
|
4442
|
+
id: string;
|
|
4443
|
+
/**
|
|
4444
|
+
* Format: uuid
|
|
4445
|
+
* @description ID of the original invoice item.
|
|
4446
|
+
*/
|
|
4447
|
+
invoiceItemRef: string;
|
|
4448
|
+
/**
|
|
4449
|
+
* Format: uuid
|
|
4450
|
+
* @description ID of the invoice.
|
|
4451
|
+
*/
|
|
4452
|
+
invoiceRef: string;
|
|
4453
|
+
/**
|
|
4454
|
+
* Format: uuid
|
|
4455
|
+
* @description ID of the organization (location).
|
|
4456
|
+
*/
|
|
4457
|
+
locationRef: string;
|
|
4458
|
+
/**
|
|
4459
|
+
* Format: uuid
|
|
4460
|
+
* @description ID of the network.
|
|
4461
|
+
*/
|
|
4462
|
+
networkRef: string;
|
|
4463
|
+
/** @description Quantity refunded. */
|
|
4464
|
+
quantity?: number;
|
|
4465
|
+
/** @description Tax details. */
|
|
4466
|
+
tax?: {
|
|
4467
|
+
/** @description Tax amount in major units. */
|
|
4468
|
+
amount: number;
|
|
4469
|
+
/** @description Whether tax is included in the price. */
|
|
4470
|
+
inclusive: boolean;
|
|
4471
|
+
/** @description Tax rate as a decimal. */
|
|
4472
|
+
rate: number;
|
|
4473
|
+
/** @description Amount subject to tax in major units. */
|
|
4474
|
+
taxableAmount: number;
|
|
4475
|
+
};
|
|
4476
|
+
/** @description Total in major units. */
|
|
4477
|
+
totalAmount: number;
|
|
4478
|
+
/** @description Total excluding tax in major units. */
|
|
4479
|
+
totalExcludingTaxAmount: number;
|
|
4480
|
+
/** @description Unit price in major units. */
|
|
4481
|
+
unitAmount?: number;
|
|
4482
|
+
/** @description Unit price excluding tax in major units. */
|
|
4483
|
+
unitExcludingTaxAmount?: number;
|
|
4484
|
+
/**
|
|
4485
|
+
* Format: date-time
|
|
4486
|
+
* @description ISO timestamp of last update.
|
|
4487
|
+
*/
|
|
4488
|
+
updateDate: string;
|
|
4489
|
+
}[];
|
|
4490
|
+
/**
|
|
4491
|
+
* Format: uuid
|
|
4492
|
+
* @description ID of the organization (location).
|
|
4493
|
+
*/
|
|
4494
|
+
locationRef: string;
|
|
4495
|
+
/**
|
|
4496
|
+
* Format: uuid
|
|
4497
|
+
* @description ID of the network.
|
|
4498
|
+
*/
|
|
4499
|
+
networkRef: string;
|
|
4500
|
+
/** @description Credit note number. */
|
|
4501
|
+
number?: number;
|
|
4502
|
+
/** @description Out-of-band refund amount in major units. */
|
|
4503
|
+
outOfBandAmount?: number;
|
|
4504
|
+
/** @description URL to download the credit note PDF. */
|
|
4505
|
+
pdfUrl: string;
|
|
4506
|
+
/** @description Post-payment credit amount in major units. */
|
|
4507
|
+
postPaymentAmount: number;
|
|
4508
|
+
/** @description Pre-payment credit amount in major units. */
|
|
4509
|
+
prePaymentAmount: number;
|
|
4510
|
+
/**
|
|
4511
|
+
* @description Reason for the credit note.
|
|
4512
|
+
* @enum {string}
|
|
4513
|
+
*/
|
|
4514
|
+
reason: "duplicate" | "orderChange" | "productUnsatisfactory" | "fraudulent" | "other";
|
|
4515
|
+
/** @description Refunds associated with this credit note. */
|
|
4516
|
+
refunds?: {
|
|
4517
|
+
/** @description Refund amount in major units. */
|
|
4518
|
+
amount: number;
|
|
4519
|
+
/** @description ISO currency code. */
|
|
4520
|
+
currencyCode: string;
|
|
4521
|
+
/**
|
|
4522
|
+
* Format: uuid
|
|
4523
|
+
* @description Unique identifier of the refund.
|
|
4524
|
+
*/
|
|
4525
|
+
id: string;
|
|
4526
|
+
/** @description Refund payment method. */
|
|
4527
|
+
method?: {
|
|
4528
|
+
/** @description Payment method label. */
|
|
4529
|
+
label?: string;
|
|
4530
|
+
/**
|
|
4531
|
+
* @description Payment method type.
|
|
4532
|
+
* @enum {string}
|
|
4533
|
+
*/
|
|
4534
|
+
type: "external" | "paymentGateway";
|
|
4535
|
+
};
|
|
4536
|
+
/**
|
|
4537
|
+
* Format: uuid
|
|
4538
|
+
* @description ID of the transaction being refunded.
|
|
4539
|
+
*/
|
|
4540
|
+
transactionRef: string;
|
|
4541
|
+
}[];
|
|
4542
|
+
/**
|
|
4543
|
+
* @description Credit note status.
|
|
4544
|
+
* @enum {string}
|
|
4545
|
+
*/
|
|
4546
|
+
status: "issued" | "voided";
|
|
4547
|
+
/** @description Subtotal in major units. */
|
|
4548
|
+
subtotalAmount: number;
|
|
4549
|
+
/** @description Subtotal excluding tax in major units. */
|
|
4550
|
+
subtotalAmountExcludingTax: number;
|
|
4551
|
+
/** @description Tax breakdown. */
|
|
4552
|
+
taxes: {
|
|
4553
|
+
/** @description Tax amount in major units. */
|
|
4554
|
+
amount: number;
|
|
4555
|
+
/** @description Whether tax is included in the price. */
|
|
4556
|
+
inclusive: boolean;
|
|
4557
|
+
/** @description Tax rate as a decimal. */
|
|
4558
|
+
rate: number;
|
|
4559
|
+
/** @description Amount subject to tax in major units. */
|
|
4560
|
+
taxableAmount: number;
|
|
4561
|
+
}[];
|
|
4562
|
+
/** @description Credit note title. */
|
|
4563
|
+
title: string;
|
|
4564
|
+
/** @description Total in major units. */
|
|
4565
|
+
totalAmount: number;
|
|
4566
|
+
/** @description Total excluding tax in major units. */
|
|
4567
|
+
totalExcludingTaxAmount: number;
|
|
4568
|
+
/**
|
|
4569
|
+
* @description Credit note type.
|
|
4570
|
+
* @enum {string}
|
|
4571
|
+
*/
|
|
4572
|
+
type: "prePayment" | "postPayment" | "mixed";
|
|
4573
|
+
/**
|
|
4574
|
+
* Format: date-time
|
|
4575
|
+
* @description ISO timestamp of last update.
|
|
4576
|
+
*/
|
|
4577
|
+
updateDate: string;
|
|
4578
|
+
/**
|
|
4579
|
+
* Format: date-time
|
|
4580
|
+
* @description ISO timestamp of when the credit note was voided.
|
|
4581
|
+
*/
|
|
4582
|
+
voidDate?: string;
|
|
4583
|
+
}[];
|
|
4584
|
+
/** @description Pagination token to fetch the next page of results. */
|
|
4585
|
+
nextPageToken?: string;
|
|
4586
|
+
/** @description Search query parameters for the next page of results. Includes all filters used to fetch the current page. */
|
|
4587
|
+
searchQueryNext?: string;
|
|
4588
|
+
};
|
|
4300
4589
|
creditNote: {
|
|
4301
4590
|
/** @description Amounts in the base currency. */
|
|
4302
4591
|
baseAmounts: {
|
|
@@ -5910,8 +6199,10 @@ interface components {
|
|
|
5910
6199
|
* @description Payment type.
|
|
5911
6200
|
* @enum {string}
|
|
5912
6201
|
*/
|
|
5913
|
-
type: "credits" | "external" | "flow" | "fondy" | "freedompay" | "invoice" | "kakaopay" | "maya" | "mercadopago" | "mollie" | "paypal" | "paystack" | "plata" | "stripe" | "tap" | "wayforpay";
|
|
6202
|
+
type: "credits" | "external" | "flow" | "fondy" | "freedompay" | "invoice" | "kakaopay" | "maya" | "mercadopago" | "mollie" | "paypal" | "paystack" | "plata" | "stripe" | "tap" | "wayforpay" | "xendit";
|
|
5914
6203
|
};
|
|
6204
|
+
/** @description Number of tickets included in this purchase. */
|
|
6205
|
+
quantity: number;
|
|
5915
6206
|
/**
|
|
5916
6207
|
* @description Role of the ticket holder.
|
|
5917
6208
|
* @enum {string}
|
|
@@ -8294,7 +8585,7 @@ interface components {
|
|
|
8294
8585
|
* @description Payment gateway type.
|
|
8295
8586
|
* @enum {string}
|
|
8296
8587
|
*/
|
|
8297
|
-
type?: "flow" | "fondy" | "freedompay" | "kakaopay" | "maya" | "mercadopago" | "paypal" | "paystack" | "plata" | "stripe" | "tap" | "wayforpay" | "mollie";
|
|
8588
|
+
type?: "flow" | "fondy" | "freedompay" | "kakaopay" | "maya" | "mercadopago" | "paypal" | "paystack" | "plata" | "stripe" | "tap" | "wayforpay" | "mollie" | "xendit";
|
|
8298
8589
|
};
|
|
8299
8590
|
/**
|
|
8300
8591
|
* @description Payment method type.
|
|
@@ -8762,7 +9053,7 @@ interface components {
|
|
|
8762
9053
|
* @description Payment gateway type.
|
|
8763
9054
|
* @enum {string}
|
|
8764
9055
|
*/
|
|
8765
|
-
type?: "flow" | "fondy" | "freedompay" | "kakaopay" | "maya" | "mercadopago" | "paypal" | "paystack" | "plata" | "stripe" | "tap" | "wayforpay" | "mollie";
|
|
9056
|
+
type?: "flow" | "fondy" | "freedompay" | "kakaopay" | "maya" | "mercadopago" | "paypal" | "paystack" | "plata" | "stripe" | "tap" | "wayforpay" | "mollie" | "xendit";
|
|
8766
9057
|
};
|
|
8767
9058
|
/**
|
|
8768
9059
|
* @description Payment method type.
|
|
@@ -10835,149 +11126,616 @@ interface components {
|
|
|
10835
11126
|
id?: string;
|
|
10836
11127
|
title?: string;
|
|
10837
11128
|
};
|
|
10838
|
-
};
|
|
10839
|
-
company?: components["schemas"]["company"];
|
|
10840
|
-
/** Format: uuid */
|
|
10841
|
-
companyRef?: string;
|
|
10842
|
-
createDate?: components["schemas"]["dateSchema"];
|
|
10843
|
-
/** @description The memo of the transaction. */
|
|
10844
|
-
description?: string;
|
|
10845
|
-
/** Format: uuid */
|
|
10846
|
-
id?: string;
|
|
10847
|
-
expiringAmount?: number;
|
|
10848
|
-
/** Format: uuid */
|
|
10849
|
-
locationRef?: string;
|
|
10850
|
-
/** Format: uuid */
|
|
10851
|
-
membershipRefCreator?: string;
|
|
10852
|
-
/** Format: uuid */
|
|
10853
|
-
membershipRef?: string;
|
|
10854
|
-
order?: {
|
|
10855
|
-
/** Format: uuid */
|
|
10856
|
-
id?: string;
|
|
10857
|
-
option?: {
|
|
11129
|
+
};
|
|
11130
|
+
company?: components["schemas"]["company"];
|
|
11131
|
+
/** Format: uuid */
|
|
11132
|
+
companyRef?: string;
|
|
11133
|
+
createDate?: components["schemas"]["dateSchema"];
|
|
11134
|
+
/** @description The memo of the transaction. */
|
|
11135
|
+
description?: string;
|
|
11136
|
+
/** Format: uuid */
|
|
11137
|
+
id?: string;
|
|
11138
|
+
expiringAmount?: number;
|
|
11139
|
+
/** Format: uuid */
|
|
11140
|
+
locationRef?: string;
|
|
11141
|
+
/** Format: uuid */
|
|
11142
|
+
membershipRefCreator?: string;
|
|
11143
|
+
/** Format: uuid */
|
|
11144
|
+
membershipRef?: string;
|
|
11145
|
+
order?: {
|
|
11146
|
+
/** Format: uuid */
|
|
11147
|
+
id?: string;
|
|
11148
|
+
option?: {
|
|
11149
|
+
/** Format: uuid */
|
|
11150
|
+
id?: string;
|
|
11151
|
+
name?: string;
|
|
11152
|
+
};
|
|
11153
|
+
product?: {
|
|
11154
|
+
/** Format: uuid */
|
|
11155
|
+
id?: string;
|
|
11156
|
+
title?: string;
|
|
11157
|
+
};
|
|
11158
|
+
};
|
|
11159
|
+
permanentAmount?: number;
|
|
11160
|
+
refund?: {
|
|
11161
|
+
amount?: number;
|
|
11162
|
+
createDate?: components["schemas"]["dateSchema"];
|
|
11163
|
+
};
|
|
11164
|
+
/** @enum {string} */
|
|
11165
|
+
status?: "canceled" | "failed" | "succeeded";
|
|
11166
|
+
ticket?: {
|
|
11167
|
+
createDate?: components["schemas"]["dateSchema"];
|
|
11168
|
+
event?: {
|
|
11169
|
+
endDate?: components["schemas"]["dateSchema"];
|
|
11170
|
+
/** Format: uuid */
|
|
11171
|
+
id?: string;
|
|
11172
|
+
startDate?: components["schemas"]["dateSchema"];
|
|
11173
|
+
title?: string;
|
|
11174
|
+
};
|
|
11175
|
+
/** Format: uuid */
|
|
11176
|
+
id?: string;
|
|
11177
|
+
};
|
|
11178
|
+
/** @enum {string} */
|
|
11179
|
+
type?: "booking" | "chargeExpiringCredits" | "chargePermanentCredits" | "creditPackage" | "eventTicket" | "order" | "refund" | "subscriptionExpiration" | "subscriptionRenewal" | "transferExpiringCredits" | "transferPermanentCredits";
|
|
11180
|
+
userCreator?: components["schemas"]["user"];
|
|
11181
|
+
userOwner?: components["schemas"]["user"];
|
|
11182
|
+
/** Format: uuid */
|
|
11183
|
+
userRefCreator?: string;
|
|
11184
|
+
/** Format: uuid */
|
|
11185
|
+
userRefOwner?: string;
|
|
11186
|
+
};
|
|
11187
|
+
transactionCredits: {
|
|
11188
|
+
amount?: number;
|
|
11189
|
+
company?: components["schemas"]["company"];
|
|
11190
|
+
/** Format: uuid */
|
|
11191
|
+
companyRef?: string;
|
|
11192
|
+
createDate?: components["schemas"]["dateSchema"];
|
|
11193
|
+
/** @description The memo of the transaction. */
|
|
11194
|
+
description?: string;
|
|
11195
|
+
/** Format: uuid */
|
|
11196
|
+
id?: string;
|
|
11197
|
+
/** Format: uuid */
|
|
11198
|
+
locationRef?: string;
|
|
11199
|
+
/** Format: uuid */
|
|
11200
|
+
membershipRef?: string;
|
|
11201
|
+
/** Format: uuid */
|
|
11202
|
+
membershipRefCreator?: string;
|
|
11203
|
+
/** @enum {string} */
|
|
11204
|
+
status?: "canceled" | "failed" | "succeeded";
|
|
11205
|
+
/** @enum {string} */
|
|
11206
|
+
type?: "chargeExpiringCredits" | "chargePermanentCredits" | "transferExpiringCredits" | "transferPermanentCredits";
|
|
11207
|
+
userCreator?: components["schemas"]["user"];
|
|
11208
|
+
userOwner?: components["schemas"]["user"];
|
|
11209
|
+
/** Format: uuid */
|
|
11210
|
+
userRef?: string;
|
|
11211
|
+
/** Format: uuid */
|
|
11212
|
+
userRefCreator?: string;
|
|
11213
|
+
};
|
|
11214
|
+
getDayPassesTransactions: {
|
|
11215
|
+
/** @description Pagination token to fetch the next page of results. */
|
|
11216
|
+
nextPageToken?: string;
|
|
11217
|
+
/** @description List of day pass transactions. */
|
|
11218
|
+
transactions: {
|
|
11219
|
+
/** @description Total day pass amount (absolute sum of expiring and permanent). */
|
|
11220
|
+
amount: number;
|
|
11221
|
+
/** @description Per-bucket amounts for charge transactions. */
|
|
11222
|
+
amounts: {
|
|
11223
|
+
/** @description Amount deducted from this balance bucket. */
|
|
11224
|
+
amount: number;
|
|
11225
|
+
/**
|
|
11226
|
+
* Format: date-time
|
|
11227
|
+
* @description Expiration date for expiring balances.
|
|
11228
|
+
*/
|
|
11229
|
+
expirationDate?: string;
|
|
11230
|
+
/**
|
|
11231
|
+
* Format: uuid
|
|
11232
|
+
* @description Subscription associated with expiring balances.
|
|
11233
|
+
*/
|
|
11234
|
+
subscriptionRef?: string;
|
|
11235
|
+
/**
|
|
11236
|
+
* @description Balance bucket type.
|
|
11237
|
+
* @enum {string}
|
|
11238
|
+
*/
|
|
11239
|
+
type: "expiring" | "permanent";
|
|
11240
|
+
}[];
|
|
11241
|
+
/**
|
|
11242
|
+
* @deprecated
|
|
11243
|
+
* @description Deprecated. Use product instead.
|
|
11244
|
+
*/
|
|
11245
|
+
booking?: {
|
|
11246
|
+
/**
|
|
11247
|
+
* Format: uuid
|
|
11248
|
+
* @description Booking id.
|
|
11249
|
+
*/
|
|
11250
|
+
id: string;
|
|
11251
|
+
/** @description Booked resource. */
|
|
11252
|
+
resource: {
|
|
11253
|
+
/**
|
|
11254
|
+
* Format: uuid
|
|
11255
|
+
* @description Resource id.
|
|
11256
|
+
*/
|
|
11257
|
+
id: string;
|
|
11258
|
+
/** @description Resource title. */
|
|
11259
|
+
title: string;
|
|
11260
|
+
};
|
|
11261
|
+
};
|
|
11262
|
+
/**
|
|
11263
|
+
* @deprecated
|
|
11264
|
+
* @description Deprecated. Use customer instead.
|
|
11265
|
+
*/
|
|
11266
|
+
company?: {
|
|
11267
|
+
/**
|
|
11268
|
+
* Format: date-time
|
|
11269
|
+
* @description ISO timestamp of company creation.
|
|
11270
|
+
*/
|
|
11271
|
+
createDate: string;
|
|
11272
|
+
/**
|
|
11273
|
+
* Format: uuid
|
|
11274
|
+
* @description Company id.
|
|
11275
|
+
*/
|
|
11276
|
+
id: string;
|
|
11277
|
+
/**
|
|
11278
|
+
* Format: uuid
|
|
11279
|
+
* @description Location id.
|
|
11280
|
+
*/
|
|
11281
|
+
locationRef: string;
|
|
11282
|
+
/** @description Company logo. */
|
|
11283
|
+
logo?: {
|
|
11284
|
+
/** @description Storage key of the company logo. */
|
|
11285
|
+
key: string;
|
|
11286
|
+
/** @description Public URL of the company logo. */
|
|
11287
|
+
url: string;
|
|
11288
|
+
};
|
|
11289
|
+
/** @description Company metadata. */
|
|
11290
|
+
metadata?: {
|
|
11291
|
+
[key: string]: unknown;
|
|
11292
|
+
};
|
|
11293
|
+
/** @description Internal notes. */
|
|
11294
|
+
notes?: string;
|
|
11295
|
+
/** @description Public logo URL derived from the company website. */
|
|
11296
|
+
publicLogoUrl?: string;
|
|
11297
|
+
/**
|
|
11298
|
+
* Format: uuid
|
|
11299
|
+
* @description Primary subscription id.
|
|
11300
|
+
*/
|
|
11301
|
+
subscriptionRef: string | null;
|
|
11302
|
+
/** @description Company name. */
|
|
11303
|
+
title: string;
|
|
11304
|
+
};
|
|
11305
|
+
/**
|
|
11306
|
+
* Format: uuid
|
|
11307
|
+
* @deprecated
|
|
11308
|
+
* @description Deprecated. Use customer instead.
|
|
11309
|
+
*/
|
|
11310
|
+
companyRef?: string;
|
|
11311
|
+
/**
|
|
11312
|
+
* Format: date-time
|
|
11313
|
+
* @description ISO timestamp of when the transaction was created.
|
|
11314
|
+
*/
|
|
11315
|
+
createDate: string;
|
|
11316
|
+
/** @description Customer associated with this transaction. */
|
|
11317
|
+
customer: {
|
|
11318
|
+
/**
|
|
11319
|
+
* Format: uuid
|
|
11320
|
+
* @description ID of the company or membership.
|
|
11321
|
+
*/
|
|
11322
|
+
id: string;
|
|
11323
|
+
/** @description Company logo. */
|
|
11324
|
+
logo?: {
|
|
11325
|
+
key: string;
|
|
11326
|
+
url: string;
|
|
11327
|
+
};
|
|
11328
|
+
/** @description Company name. */
|
|
11329
|
+
title?: string;
|
|
11330
|
+
/**
|
|
11331
|
+
* @description Whether the customer is a company or a user.
|
|
11332
|
+
* @enum {string}
|
|
11333
|
+
*/
|
|
11334
|
+
type: "company" | "user";
|
|
11335
|
+
/** @description User details for membership customers. */
|
|
11336
|
+
user?: {
|
|
11337
|
+
about?: string | null;
|
|
11338
|
+
email?: string | null;
|
|
11339
|
+
/** Format: uuid */
|
|
11340
|
+
id: string;
|
|
11341
|
+
name?: string | null;
|
|
11342
|
+
phoneNumber?: string | null;
|
|
11343
|
+
photoUrl?: string | null;
|
|
11344
|
+
surname?: string | null;
|
|
11345
|
+
};
|
|
11346
|
+
};
|
|
11347
|
+
/** @description Transaction description. */
|
|
11348
|
+
description?: string;
|
|
11349
|
+
/**
|
|
11350
|
+
* Format: uuid
|
|
11351
|
+
* @description Unique identifier of the transaction.
|
|
11352
|
+
*/
|
|
11353
|
+
id: string;
|
|
11354
|
+
/**
|
|
11355
|
+
* Format: uuid
|
|
11356
|
+
* @description ID of the organization (location).
|
|
11357
|
+
*/
|
|
11358
|
+
locationRef: string;
|
|
11359
|
+
/**
|
|
11360
|
+
* Format: uuid
|
|
11361
|
+
* @deprecated
|
|
11362
|
+
* @description Deprecated. Use customer instead.
|
|
11363
|
+
*/
|
|
11364
|
+
membershipRef?: string;
|
|
11365
|
+
/**
|
|
11366
|
+
* Format: uuid
|
|
11367
|
+
* @deprecated
|
|
11368
|
+
* @description Deprecated. Use userCreator instead.
|
|
11369
|
+
*/
|
|
11370
|
+
membershipRefCreator?: string;
|
|
11371
|
+
/**
|
|
11372
|
+
* Format: uuid
|
|
11373
|
+
* @description ID of the network.
|
|
11374
|
+
*/
|
|
11375
|
+
networkRef: string;
|
|
11376
|
+
/** @description Product details. */
|
|
11377
|
+
product?: {
|
|
11378
|
+
/**
|
|
11379
|
+
* Format: uuid
|
|
11380
|
+
* @description ID of the associated booking.
|
|
11381
|
+
*/
|
|
11382
|
+
bookingRef?: string;
|
|
11383
|
+
/** @description Display title of the product. */
|
|
11384
|
+
title: string;
|
|
11385
|
+
/**
|
|
11386
|
+
* @description Product type.
|
|
11387
|
+
* @enum {string}
|
|
11388
|
+
*/
|
|
11389
|
+
type: "booking";
|
|
11390
|
+
};
|
|
11391
|
+
/**
|
|
11392
|
+
* @deprecated
|
|
11393
|
+
* @description Deprecated.
|
|
11394
|
+
*/
|
|
11395
|
+
refund?: {
|
|
11396
|
+
/** @description Refunded expiring amount. */
|
|
11397
|
+
amount: number;
|
|
11398
|
+
/**
|
|
11399
|
+
* Format: date-time
|
|
11400
|
+
* @description Refund creation timestamp.
|
|
11401
|
+
*/
|
|
11402
|
+
createDate: string;
|
|
11403
|
+
};
|
|
11404
|
+
/** @description Transaction status. */
|
|
11405
|
+
status: string;
|
|
11406
|
+
/**
|
|
11407
|
+
* @description Day pass transaction type.
|
|
11408
|
+
* @enum {string}
|
|
11409
|
+
*/
|
|
11410
|
+
type: "adminAllocation" | "adminCharge" | "booking" | "expiration" | "purchaseAllocation" | "refund" | "subscriptionAllocation" | "subscriptionExpiration";
|
|
11411
|
+
/**
|
|
11412
|
+
* @deprecated
|
|
11413
|
+
* @description Deprecated. Use userOwner instead.
|
|
11414
|
+
*/
|
|
11415
|
+
user?: {
|
|
11416
|
+
about?: string | null;
|
|
11417
|
+
email?: string | null;
|
|
11418
|
+
/** Format: uuid */
|
|
11419
|
+
id: string;
|
|
11420
|
+
name?: string | null;
|
|
11421
|
+
phoneNumber?: string | null;
|
|
11422
|
+
photoUrl?: string | null;
|
|
11423
|
+
surname?: string | null;
|
|
11424
|
+
};
|
|
11425
|
+
/** @description User who created the transaction. */
|
|
11426
|
+
userCreatedBy?: {
|
|
11427
|
+
about?: string | null;
|
|
11428
|
+
email?: string | null;
|
|
11429
|
+
/** Format: uuid */
|
|
11430
|
+
id: string;
|
|
11431
|
+
name?: string | null;
|
|
11432
|
+
phoneNumber?: string | null;
|
|
11433
|
+
photoUrl?: string | null;
|
|
11434
|
+
surname?: string | null;
|
|
11435
|
+
};
|
|
11436
|
+
/**
|
|
11437
|
+
* @deprecated
|
|
11438
|
+
* @description Deprecated. Use userCreatedBy instead.
|
|
11439
|
+
*/
|
|
11440
|
+
userCreator?: {
|
|
11441
|
+
about?: string | null;
|
|
11442
|
+
email?: string | null;
|
|
11443
|
+
/** Format: uuid */
|
|
11444
|
+
id: string;
|
|
11445
|
+
name?: string | null;
|
|
11446
|
+
phoneNumber?: string | null;
|
|
11447
|
+
photoUrl?: string | null;
|
|
11448
|
+
surname?: string | null;
|
|
11449
|
+
};
|
|
11450
|
+
/**
|
|
11451
|
+
* @deprecated
|
|
11452
|
+
* @description Deprecated. Use customer.user instead.
|
|
11453
|
+
*/
|
|
11454
|
+
userOwner?: {
|
|
11455
|
+
about?: string | null;
|
|
11456
|
+
email?: string | null;
|
|
11457
|
+
/** Format: uuid */
|
|
11458
|
+
id: string;
|
|
11459
|
+
name?: string | null;
|
|
11460
|
+
phoneNumber?: string | null;
|
|
11461
|
+
photoUrl?: string | null;
|
|
11462
|
+
surname?: string | null;
|
|
11463
|
+
};
|
|
11464
|
+
/**
|
|
11465
|
+
* Format: uuid
|
|
11466
|
+
* @deprecated
|
|
11467
|
+
* @description Deprecated. Use userCreatedBy instead.
|
|
11468
|
+
*/
|
|
11469
|
+
userRefCreator?: string;
|
|
11470
|
+
/**
|
|
11471
|
+
* Format: uuid
|
|
11472
|
+
* @deprecated
|
|
11473
|
+
* @description Deprecated. Use customer.user instead.
|
|
11474
|
+
*/
|
|
11475
|
+
userRefOwner?: string;
|
|
11476
|
+
}[];
|
|
11477
|
+
};
|
|
11478
|
+
createDayPassesTransaction: {
|
|
11479
|
+
/** @description The created day passes transaction. */
|
|
11480
|
+
transaction: {
|
|
11481
|
+
/** @description Total day pass amount (absolute sum of expiring and permanent). */
|
|
11482
|
+
amount: number;
|
|
11483
|
+
/** @description Per-bucket amounts for charge transactions. */
|
|
11484
|
+
amounts: {
|
|
11485
|
+
/** @description Amount deducted from this balance bucket. */
|
|
11486
|
+
amount: number;
|
|
11487
|
+
/**
|
|
11488
|
+
* Format: date-time
|
|
11489
|
+
* @description Expiration date for expiring balances.
|
|
11490
|
+
*/
|
|
11491
|
+
expirationDate?: string;
|
|
11492
|
+
/**
|
|
11493
|
+
* Format: uuid
|
|
11494
|
+
* @description Subscription associated with expiring balances.
|
|
11495
|
+
*/
|
|
11496
|
+
subscriptionRef?: string;
|
|
11497
|
+
/**
|
|
11498
|
+
* @description Balance bucket type.
|
|
11499
|
+
* @enum {string}
|
|
11500
|
+
*/
|
|
11501
|
+
type: "expiring" | "permanent";
|
|
11502
|
+
}[];
|
|
11503
|
+
/**
|
|
11504
|
+
* @deprecated
|
|
11505
|
+
* @description Deprecated. Use product instead.
|
|
11506
|
+
*/
|
|
11507
|
+
booking?: {
|
|
11508
|
+
/**
|
|
11509
|
+
* Format: uuid
|
|
11510
|
+
* @description Booking id.
|
|
11511
|
+
*/
|
|
11512
|
+
id: string;
|
|
11513
|
+
/** @description Booked resource. */
|
|
11514
|
+
resource: {
|
|
11515
|
+
/**
|
|
11516
|
+
* Format: uuid
|
|
11517
|
+
* @description Resource id.
|
|
11518
|
+
*/
|
|
11519
|
+
id: string;
|
|
11520
|
+
/** @description Resource title. */
|
|
11521
|
+
title: string;
|
|
11522
|
+
};
|
|
11523
|
+
};
|
|
11524
|
+
/**
|
|
11525
|
+
* @deprecated
|
|
11526
|
+
* @description Deprecated. Use customer instead.
|
|
11527
|
+
*/
|
|
11528
|
+
company?: {
|
|
11529
|
+
/**
|
|
11530
|
+
* Format: date-time
|
|
11531
|
+
* @description ISO timestamp of company creation.
|
|
11532
|
+
*/
|
|
11533
|
+
createDate: string;
|
|
11534
|
+
/**
|
|
11535
|
+
* Format: uuid
|
|
11536
|
+
* @description Company id.
|
|
11537
|
+
*/
|
|
11538
|
+
id: string;
|
|
11539
|
+
/**
|
|
11540
|
+
* Format: uuid
|
|
11541
|
+
* @description Location id.
|
|
11542
|
+
*/
|
|
11543
|
+
locationRef: string;
|
|
11544
|
+
/** @description Company logo. */
|
|
11545
|
+
logo?: {
|
|
11546
|
+
/** @description Storage key of the company logo. */
|
|
11547
|
+
key: string;
|
|
11548
|
+
/** @description Public URL of the company logo. */
|
|
11549
|
+
url: string;
|
|
11550
|
+
};
|
|
11551
|
+
/** @description Company metadata. */
|
|
11552
|
+
metadata?: {
|
|
11553
|
+
[key: string]: unknown;
|
|
11554
|
+
};
|
|
11555
|
+
/** @description Internal notes. */
|
|
11556
|
+
notes?: string;
|
|
11557
|
+
/** @description Public logo URL derived from the company website. */
|
|
11558
|
+
publicLogoUrl?: string;
|
|
11559
|
+
/**
|
|
11560
|
+
* Format: uuid
|
|
11561
|
+
* @description Primary subscription id.
|
|
11562
|
+
*/
|
|
11563
|
+
subscriptionRef: string | null;
|
|
11564
|
+
/** @description Company name. */
|
|
11565
|
+
title: string;
|
|
11566
|
+
};
|
|
11567
|
+
/**
|
|
11568
|
+
* Format: uuid
|
|
11569
|
+
* @deprecated
|
|
11570
|
+
* @description Deprecated. Use customer instead.
|
|
11571
|
+
*/
|
|
11572
|
+
companyRef?: string;
|
|
11573
|
+
/**
|
|
11574
|
+
* Format: date-time
|
|
11575
|
+
* @description ISO timestamp of when the transaction was created.
|
|
11576
|
+
*/
|
|
11577
|
+
createDate: string;
|
|
11578
|
+
/** @description Customer associated with this transaction. */
|
|
11579
|
+
customer: {
|
|
11580
|
+
/**
|
|
11581
|
+
* Format: uuid
|
|
11582
|
+
* @description ID of the company or membership.
|
|
11583
|
+
*/
|
|
11584
|
+
id: string;
|
|
11585
|
+
/** @description Company logo. */
|
|
11586
|
+
logo?: {
|
|
11587
|
+
key: string;
|
|
11588
|
+
url: string;
|
|
11589
|
+
};
|
|
11590
|
+
/** @description Company name. */
|
|
11591
|
+
title?: string;
|
|
11592
|
+
/**
|
|
11593
|
+
* @description Whether the customer is a company or a user.
|
|
11594
|
+
* @enum {string}
|
|
11595
|
+
*/
|
|
11596
|
+
type: "company" | "user";
|
|
11597
|
+
/** @description User details for membership customers. */
|
|
11598
|
+
user?: {
|
|
11599
|
+
about?: string | null;
|
|
11600
|
+
email?: string | null;
|
|
11601
|
+
/** Format: uuid */
|
|
11602
|
+
id: string;
|
|
11603
|
+
name?: string | null;
|
|
11604
|
+
phoneNumber?: string | null;
|
|
11605
|
+
photoUrl?: string | null;
|
|
11606
|
+
surname?: string | null;
|
|
11607
|
+
};
|
|
11608
|
+
};
|
|
11609
|
+
/** @description Transaction description. */
|
|
11610
|
+
description?: string;
|
|
11611
|
+
/**
|
|
11612
|
+
* Format: uuid
|
|
11613
|
+
* @description Unique identifier of the transaction.
|
|
11614
|
+
*/
|
|
11615
|
+
id: string;
|
|
11616
|
+
/**
|
|
11617
|
+
* Format: uuid
|
|
11618
|
+
* @description ID of the organization (location).
|
|
11619
|
+
*/
|
|
11620
|
+
locationRef: string;
|
|
11621
|
+
/**
|
|
11622
|
+
* Format: uuid
|
|
11623
|
+
* @deprecated
|
|
11624
|
+
* @description Deprecated. Use customer instead.
|
|
11625
|
+
*/
|
|
11626
|
+
membershipRef?: string;
|
|
11627
|
+
/**
|
|
11628
|
+
* Format: uuid
|
|
11629
|
+
* @deprecated
|
|
11630
|
+
* @description Deprecated. Use userCreator instead.
|
|
11631
|
+
*/
|
|
11632
|
+
membershipRefCreator?: string;
|
|
11633
|
+
/**
|
|
11634
|
+
* Format: uuid
|
|
11635
|
+
* @description ID of the network.
|
|
11636
|
+
*/
|
|
11637
|
+
networkRef: string;
|
|
11638
|
+
/** @description Product details. */
|
|
11639
|
+
product?: {
|
|
11640
|
+
/**
|
|
11641
|
+
* Format: uuid
|
|
11642
|
+
* @description ID of the associated booking.
|
|
11643
|
+
*/
|
|
11644
|
+
bookingRef?: string;
|
|
11645
|
+
/** @description Display title of the product. */
|
|
11646
|
+
title: string;
|
|
11647
|
+
/**
|
|
11648
|
+
* @description Product type.
|
|
11649
|
+
* @enum {string}
|
|
11650
|
+
*/
|
|
11651
|
+
type: "booking";
|
|
11652
|
+
};
|
|
11653
|
+
/**
|
|
11654
|
+
* @deprecated
|
|
11655
|
+
* @description Deprecated.
|
|
11656
|
+
*/
|
|
11657
|
+
refund?: {
|
|
11658
|
+
/** @description Refunded expiring amount. */
|
|
11659
|
+
amount: number;
|
|
11660
|
+
/**
|
|
11661
|
+
* Format: date-time
|
|
11662
|
+
* @description Refund creation timestamp.
|
|
11663
|
+
*/
|
|
11664
|
+
createDate: string;
|
|
11665
|
+
};
|
|
11666
|
+
/** @description Transaction status. */
|
|
11667
|
+
status: string;
|
|
11668
|
+
/**
|
|
11669
|
+
* @description Day pass transaction type.
|
|
11670
|
+
* @enum {string}
|
|
11671
|
+
*/
|
|
11672
|
+
type: "adminAllocation" | "adminCharge" | "booking" | "expiration" | "purchaseAllocation" | "refund" | "subscriptionAllocation" | "subscriptionExpiration";
|
|
11673
|
+
/**
|
|
11674
|
+
* @deprecated
|
|
11675
|
+
* @description Deprecated. Use userOwner instead.
|
|
11676
|
+
*/
|
|
11677
|
+
user?: {
|
|
11678
|
+
about?: string | null;
|
|
11679
|
+
email?: string | null;
|
|
10858
11680
|
/** Format: uuid */
|
|
10859
|
-
id
|
|
10860
|
-
name?: string;
|
|
11681
|
+
id: string;
|
|
11682
|
+
name?: string | null;
|
|
11683
|
+
phoneNumber?: string | null;
|
|
11684
|
+
photoUrl?: string | null;
|
|
11685
|
+
surname?: string | null;
|
|
10861
11686
|
};
|
|
10862
|
-
|
|
11687
|
+
/** @description User who created the transaction. */
|
|
11688
|
+
userCreatedBy?: {
|
|
11689
|
+
about?: string | null;
|
|
11690
|
+
email?: string | null;
|
|
10863
11691
|
/** Format: uuid */
|
|
10864
|
-
id
|
|
10865
|
-
|
|
11692
|
+
id: string;
|
|
11693
|
+
name?: string | null;
|
|
11694
|
+
phoneNumber?: string | null;
|
|
11695
|
+
photoUrl?: string | null;
|
|
11696
|
+
surname?: string | null;
|
|
10866
11697
|
};
|
|
10867
|
-
|
|
10868
|
-
|
|
10869
|
-
|
|
10870
|
-
|
|
10871
|
-
|
|
10872
|
-
|
|
10873
|
-
|
|
10874
|
-
status?: "canceled" | "failed" | "succeeded";
|
|
10875
|
-
ticket?: {
|
|
10876
|
-
createDate?: components["schemas"]["dateSchema"];
|
|
10877
|
-
event?: {
|
|
10878
|
-
endDate?: components["schemas"]["dateSchema"];
|
|
11698
|
+
/**
|
|
11699
|
+
* @deprecated
|
|
11700
|
+
* @description Deprecated. Use userCreatedBy instead.
|
|
11701
|
+
*/
|
|
11702
|
+
userCreator?: {
|
|
11703
|
+
about?: string | null;
|
|
11704
|
+
email?: string | null;
|
|
10879
11705
|
/** Format: uuid */
|
|
10880
|
-
id
|
|
10881
|
-
|
|
10882
|
-
|
|
11706
|
+
id: string;
|
|
11707
|
+
name?: string | null;
|
|
11708
|
+
phoneNumber?: string | null;
|
|
11709
|
+
photoUrl?: string | null;
|
|
11710
|
+
surname?: string | null;
|
|
10883
11711
|
};
|
|
10884
|
-
/**
|
|
10885
|
-
|
|
10886
|
-
|
|
10887
|
-
|
|
10888
|
-
|
|
10889
|
-
|
|
10890
|
-
|
|
10891
|
-
/** Format: uuid */
|
|
10892
|
-
userRefCreator?: string;
|
|
10893
|
-
/** Format: uuid */
|
|
10894
|
-
userRefOwner?: string;
|
|
10895
|
-
};
|
|
10896
|
-
transactionCredits: {
|
|
10897
|
-
amount?: number;
|
|
10898
|
-
company?: components["schemas"]["company"];
|
|
10899
|
-
/** Format: uuid */
|
|
10900
|
-
companyRef?: string;
|
|
10901
|
-
createDate?: components["schemas"]["dateSchema"];
|
|
10902
|
-
/** @description The memo of the transaction. */
|
|
10903
|
-
description?: string;
|
|
10904
|
-
/** Format: uuid */
|
|
10905
|
-
id?: string;
|
|
10906
|
-
/** Format: uuid */
|
|
10907
|
-
locationRef?: string;
|
|
10908
|
-
/** Format: uuid */
|
|
10909
|
-
membershipRef?: string;
|
|
10910
|
-
/** Format: uuid */
|
|
10911
|
-
membershipRefCreator?: string;
|
|
10912
|
-
/** @enum {string} */
|
|
10913
|
-
status?: "canceled" | "failed" | "succeeded";
|
|
10914
|
-
/** @enum {string} */
|
|
10915
|
-
type?: "chargeExpiringCredits" | "chargePermanentCredits" | "transferExpiringCredits" | "transferPermanentCredits";
|
|
10916
|
-
userCreator?: components["schemas"]["user"];
|
|
10917
|
-
userOwner?: components["schemas"]["user"];
|
|
10918
|
-
/** Format: uuid */
|
|
10919
|
-
userRef?: string;
|
|
10920
|
-
/** Format: uuid */
|
|
10921
|
-
userRefCreator?: string;
|
|
10922
|
-
};
|
|
10923
|
-
transactionDayPassesExpanded: {
|
|
10924
|
-
amount?: number;
|
|
10925
|
-
booking?: {
|
|
10926
|
-
/** Format: uuid */
|
|
10927
|
-
id?: string;
|
|
10928
|
-
resource?: {
|
|
11712
|
+
/**
|
|
11713
|
+
* @deprecated
|
|
11714
|
+
* @description Deprecated. Use customer.user instead.
|
|
11715
|
+
*/
|
|
11716
|
+
userOwner?: {
|
|
11717
|
+
about?: string | null;
|
|
11718
|
+
email?: string | null;
|
|
10929
11719
|
/** Format: uuid */
|
|
10930
|
-
id
|
|
10931
|
-
|
|
11720
|
+
id: string;
|
|
11721
|
+
name?: string | null;
|
|
11722
|
+
phoneNumber?: string | null;
|
|
11723
|
+
photoUrl?: string | null;
|
|
11724
|
+
surname?: string | null;
|
|
10932
11725
|
};
|
|
11726
|
+
/**
|
|
11727
|
+
* Format: uuid
|
|
11728
|
+
* @deprecated
|
|
11729
|
+
* @description Deprecated. Use userCreatedBy instead.
|
|
11730
|
+
*/
|
|
11731
|
+
userRefCreator?: string;
|
|
11732
|
+
/**
|
|
11733
|
+
* Format: uuid
|
|
11734
|
+
* @deprecated
|
|
11735
|
+
* @description Deprecated. Use customer.user instead.
|
|
11736
|
+
*/
|
|
11737
|
+
userRefOwner?: string;
|
|
10933
11738
|
};
|
|
10934
|
-
company?: components["schemas"]["company"];
|
|
10935
|
-
/** Format: uuid */
|
|
10936
|
-
companyRef?: string;
|
|
10937
|
-
createDate?: components["schemas"]["dateSchema"];
|
|
10938
|
-
/** Format: uuid */
|
|
10939
|
-
id?: string;
|
|
10940
|
-
/** Format: uuid */
|
|
10941
|
-
locationRef?: string;
|
|
10942
|
-
/** Format: uuid */
|
|
10943
|
-
membershipRefCreator?: string;
|
|
10944
|
-
/** Format: uuid */
|
|
10945
|
-
membershipRefOwner?: string;
|
|
10946
|
-
refund?: {
|
|
10947
|
-
amount?: number;
|
|
10948
|
-
createDate?: components["schemas"]["dateSchema"];
|
|
10949
|
-
};
|
|
10950
|
-
/** @enum {string} */
|
|
10951
|
-
type?: "booking" | "chargeExpiringDayPasses" | "chargePermanentDayPasses" | "refund" | "subscriptionExpiration" | "subscriptionRenewal" | "transferExpiringDayPasses" | "transferPermanentDayPasses";
|
|
10952
|
-
userCreator?: components["schemas"]["user"];
|
|
10953
|
-
userOwner?: components["schemas"]["user"];
|
|
10954
|
-
/** Format: uuid */
|
|
10955
|
-
userRefCreator?: string;
|
|
10956
|
-
/** Format: uuid */
|
|
10957
|
-
userRefOwner?: string;
|
|
10958
|
-
};
|
|
10959
|
-
transactionDayPasses: {
|
|
10960
|
-
amount?: number;
|
|
10961
|
-
company?: components["schemas"]["company"];
|
|
10962
|
-
/** Format: uuid */
|
|
10963
|
-
companyRef?: string;
|
|
10964
|
-
createDate?: components["schemas"]["dateSchema"];
|
|
10965
|
-
description?: string;
|
|
10966
|
-
/** Format: uuid */
|
|
10967
|
-
id?: string;
|
|
10968
|
-
/** Format: uuid */
|
|
10969
|
-
locationRef?: string;
|
|
10970
|
-
/** Format: uuid */
|
|
10971
|
-
membershipRef?: string;
|
|
10972
|
-
/** Format: uuid */
|
|
10973
|
-
membershipRefCreator?: string;
|
|
10974
|
-
/** @enum {string} */
|
|
10975
|
-
type?: "chargeExpiringDayPasses" | "chargePermanentDayPasses" | "transferExpiringDayPasses" | "transferPermanentDayPasses";
|
|
10976
|
-
user?: components["schemas"]["user"];
|
|
10977
|
-
/** Format: uuid */
|
|
10978
|
-
userRef?: string;
|
|
10979
|
-
/** Format: uuid */
|
|
10980
|
-
userRefCreator?: string;
|
|
10981
11739
|
};
|
|
10982
11740
|
transaction: {
|
|
10983
11741
|
amount?: number;
|
|
@@ -11683,7 +12441,7 @@ interface components {
|
|
|
11683
12441
|
* @description Payment gateway type.
|
|
11684
12442
|
* @enum {string}
|
|
11685
12443
|
*/
|
|
11686
|
-
type: "external" | "freedompay" | "kakaopay" | "maya" | "mercadopago" | "mollie" | "paypal" | "paystack" | "plata" | "stripe" | "tap" | "wayforpay";
|
|
12444
|
+
type: "external" | "freedompay" | "kakaopay" | "maya" | "mercadopago" | "mollie" | "paypal" | "paystack" | "plata" | "stripe" | "tap" | "wayforpay" | "xendit";
|
|
11687
12445
|
};
|
|
11688
12446
|
/** @description Whether the user has accepted the payment terms. */
|
|
11689
12447
|
termsConsent?: boolean;
|
|
@@ -14578,27 +15336,40 @@ interface components {
|
|
|
14578
15336
|
content: {
|
|
14579
15337
|
"application/json": {
|
|
14580
15338
|
transaction: {
|
|
15339
|
+
/** @description Day pass amount. Must be greater than zero. */
|
|
14581
15340
|
amount: number;
|
|
14582
15341
|
/**
|
|
14583
15342
|
* Format: uuid
|
|
14584
|
-
* @
|
|
15343
|
+
* @deprecated
|
|
15344
|
+
* @description Deprecated. Use customerRef instead.
|
|
14585
15345
|
*/
|
|
14586
15346
|
companyRef?: string;
|
|
14587
|
-
/**
|
|
15347
|
+
/**
|
|
15348
|
+
* Format: uuid
|
|
15349
|
+
* @description The company or membership id to charge or transfer day passes to or from.
|
|
15350
|
+
*/
|
|
15351
|
+
customerRef?: string;
|
|
15352
|
+
/** @description Description of the transaction. */
|
|
14588
15353
|
description?: string;
|
|
15354
|
+
/** @description Expiration date for expiring day passes. */
|
|
15355
|
+
expirationDate?: string;
|
|
14589
15356
|
/**
|
|
14590
15357
|
* Format: uuid
|
|
14591
|
-
* @description The location id where to create
|
|
15358
|
+
* @description The location id where to create the transaction.
|
|
14592
15359
|
*/
|
|
14593
15360
|
locationRef: string;
|
|
14594
15361
|
/**
|
|
14595
15362
|
* Format: uuid
|
|
14596
|
-
* @
|
|
15363
|
+
* @deprecated
|
|
15364
|
+
* @description Deprecated. Use customerRef instead.
|
|
14597
15365
|
*/
|
|
14598
15366
|
membershipRef?: string;
|
|
14599
|
-
/**
|
|
14600
|
-
|
|
14601
|
-
|
|
15367
|
+
/**
|
|
15368
|
+
* @description Transaction type. chargeExpiringDayPasses, chargePermanentDayPasses, transferExpiringDayPasses, and transferPermanentDayPasses are deprecated; use adminCharge or adminAllocation instead.
|
|
15369
|
+
* @enum {string}
|
|
15370
|
+
*/
|
|
15371
|
+
type: "adminAllocation" | "adminCharge" | "chargeExpiringDayPasses" | "chargePermanentDayPasses" | "transferExpiringDayPasses" | "transferPermanentDayPasses";
|
|
15372
|
+
};
|
|
14602
15373
|
};
|
|
14603
15374
|
};
|
|
14604
15375
|
};
|
|
@@ -15999,14 +16770,26 @@ interface operations {
|
|
|
15999
16770
|
getCreditNotes: {
|
|
16000
16771
|
parameters: {
|
|
16001
16772
|
query?: {
|
|
16002
|
-
/** @description
|
|
16773
|
+
/** @description Filter credit notes created on or after this date (ISO 8601). Use with createDate[lte] for a range. */
|
|
16774
|
+
"createDate[gte]"?: string;
|
|
16775
|
+
/** @description Filter credit notes created on or before this date (ISO 8601). Use with createDate[gte] for a range. */
|
|
16776
|
+
"createDate[lte]"?: string;
|
|
16777
|
+
/** @description UUID of the invoice whose credit notes to list. */
|
|
16003
16778
|
invoiceRef?: string;
|
|
16004
|
-
/** @description
|
|
16005
|
-
locationRef?: string;
|
|
16006
|
-
/** @description The maximum number of items to return (max 100, default 25) */
|
|
16779
|
+
/** @description Maximum number of credit notes per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
|
|
16007
16780
|
limit?: number;
|
|
16008
|
-
/** @description
|
|
16009
|
-
|
|
16781
|
+
/** @description UUID of the location whose credit notes to list. */
|
|
16782
|
+
locationRef?: string;
|
|
16783
|
+
/** @description Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. */
|
|
16784
|
+
nextPageToken?: string;
|
|
16785
|
+
/**
|
|
16786
|
+
* @description Filter by credit note status. Comma-separated values, e.g. `issued,voided`.
|
|
16787
|
+
*
|
|
16788
|
+
* Supported values:
|
|
16789
|
+
* - **issued** — active credit note
|
|
16790
|
+
* - **voided** — cancelled and no longer valid
|
|
16791
|
+
*/
|
|
16792
|
+
status?: string;
|
|
16010
16793
|
};
|
|
16011
16794
|
header?: {
|
|
16012
16795
|
/** @description The id of the network. Required when using bearer token authentication */
|
|
@@ -16023,11 +16806,7 @@ interface operations {
|
|
|
16023
16806
|
[name: string]: unknown;
|
|
16024
16807
|
};
|
|
16025
16808
|
content: {
|
|
16026
|
-
"application/json":
|
|
16027
|
-
creditNotes?: components["schemas"]["creditNote"][];
|
|
16028
|
-
nextPageToken?: components["schemas"]["nextPageToken"];
|
|
16029
|
-
searchQueryNext?: components["schemas"]["searchQueryNext"];
|
|
16030
|
-
};
|
|
16809
|
+
"application/json": components["schemas"]["getCreditNotes"];
|
|
16031
16810
|
};
|
|
16032
16811
|
};
|
|
16033
16812
|
/** @description Bad Request */
|
|
@@ -20148,29 +20927,24 @@ interface operations {
|
|
|
20148
20927
|
getDayPassesTransactions: {
|
|
20149
20928
|
parameters: {
|
|
20150
20929
|
query?: {
|
|
20151
|
-
/** @description The
|
|
20930
|
+
/** @description Deprecated. Use customerRef instead. The id of the company to get transactions for. */
|
|
20931
|
+
companyRef?: string;
|
|
20932
|
+
/** @description Get transactions with greater or equal createDate. Example: createDate[gte]=2021-05-21T10:00:00Z */
|
|
20933
|
+
"createDate[gte]"?: string;
|
|
20934
|
+
/** @description Get transactions with less or equal createDate. Example: createDate[lte]=2021-05-21T10:00:00Z */
|
|
20935
|
+
"createDate[lte]"?: string;
|
|
20936
|
+
/** @description UUID of the company or membership whose day pass transactions to list. */
|
|
20937
|
+
customerRef?: string;
|
|
20938
|
+
/** @description Maximum number of transactions per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. */
|
|
20152
20939
|
limit?: number;
|
|
20153
|
-
/** @description
|
|
20154
|
-
nextPageToken?: components["schemas"]["nextPageToken"];
|
|
20155
|
-
/** @description The date filter of items. */
|
|
20156
|
-
createDate?: {
|
|
20157
|
-
/**
|
|
20158
|
-
* Format: date-time
|
|
20159
|
-
* @description Get transactions with less createDate. Example: createDate[lte]=2021-05-21T10:00:00Z
|
|
20160
|
-
*/
|
|
20161
|
-
lte?: string;
|
|
20162
|
-
/**
|
|
20163
|
-
* Format: date-time
|
|
20164
|
-
* @description Get transactions with greater createDate. Example: createDate[gte]=2021-05-21T10:00:00Z
|
|
20165
|
-
*/
|
|
20166
|
-
gte?: string;
|
|
20167
|
-
};
|
|
20168
|
-
/** @description The id of the location to get transactions for */
|
|
20940
|
+
/** @description UUID of the location whose day pass transactions to list. */
|
|
20169
20941
|
locationRef?: string;
|
|
20170
|
-
/** @description The id of the membership to get transactions for */
|
|
20942
|
+
/** @description Deprecated. Use customerRef instead. The id of the membership to get transactions for. */
|
|
20171
20943
|
membershipRef?: string;
|
|
20172
|
-
/** @description
|
|
20173
|
-
|
|
20944
|
+
/** @description Token to retrieve the next page of results. */
|
|
20945
|
+
nextPageToken?: string;
|
|
20946
|
+
/** @description Filter by transaction type. Comma-separated storage type values, e.g. `type=refund,booking`. Matches analytics report type filters. */
|
|
20947
|
+
type?: string;
|
|
20174
20948
|
};
|
|
20175
20949
|
header?: {
|
|
20176
20950
|
/** @description The id of the network. Required when using bearer token authentication */
|
|
@@ -20187,10 +20961,7 @@ interface operations {
|
|
|
20187
20961
|
[name: string]: unknown;
|
|
20188
20962
|
};
|
|
20189
20963
|
content: {
|
|
20190
|
-
"application/json":
|
|
20191
|
-
transactions?: components["schemas"]["transactionDayPassesExpanded"][];
|
|
20192
|
-
nextPageToken?: components["schemas"]["nextPageToken"];
|
|
20193
|
-
};
|
|
20964
|
+
"application/json": components["schemas"]["getDayPassesTransactions"];
|
|
20194
20965
|
};
|
|
20195
20966
|
};
|
|
20196
20967
|
/** @description Bad Request */
|
|
@@ -20222,9 +20993,7 @@ interface operations {
|
|
|
20222
20993
|
[name: string]: unknown;
|
|
20223
20994
|
};
|
|
20224
20995
|
content: {
|
|
20225
|
-
"application/json":
|
|
20226
|
-
transaction?: components["schemas"]["transactionDayPasses"];
|
|
20227
|
-
};
|
|
20996
|
+
"application/json": components["schemas"]["createDayPassesTransaction"];
|
|
20228
20997
|
};
|
|
20229
20998
|
};
|
|
20230
20999
|
/** @description Bad Request */
|