@vrplatform/api 1.2.33-stage.708 → 1.2.33-stage.710

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.
@@ -1018,6 +1018,23 @@ export interface paths {
1018
1018
  patch?: never;
1019
1019
  trace?: never;
1020
1020
  };
1021
+ "/accounts/{id}/reprocess-balances": {
1022
+ parameters: {
1023
+ query?: never;
1024
+ header?: never;
1025
+ path?: never;
1026
+ cookie?: never;
1027
+ };
1028
+ get?: never;
1029
+ /** @description Reprocess account balances */
1030
+ put: operations["reprocessAccountBalances"];
1031
+ post?: never;
1032
+ delete?: never;
1033
+ options?: never;
1034
+ head?: never;
1035
+ patch?: never;
1036
+ trace?: never;
1037
+ };
1021
1038
  "/accounts/{id}": {
1022
1039
  parameters: {
1023
1040
  query?: never;
@@ -1609,176 +1626,6 @@ export interface paths {
1609
1626
  patch?: never;
1610
1627
  trace?: never;
1611
1628
  };
1612
- "/reports/profit-and-loss/party": {
1613
- parameters: {
1614
- query?: never;
1615
- header?: never;
1616
- path?: never;
1617
- cookie?: never;
1618
- };
1619
- /** @description Profit & Loss report grouped by party */
1620
- get: operations["getProfitAndLossPartyReport"];
1621
- put?: never;
1622
- post?: never;
1623
- delete?: never;
1624
- options?: never;
1625
- head?: never;
1626
- patch?: never;
1627
- trace?: never;
1628
- };
1629
- "/reports/profit-and-loss/party/csv": {
1630
- parameters: {
1631
- query?: never;
1632
- header?: never;
1633
- path?: never;
1634
- cookie?: never;
1635
- };
1636
- /** @description Profit & Loss report grouped by party (CSV) */
1637
- get: operations["getProfitAndLossPartyReportCsv"];
1638
- put?: never;
1639
- post?: never;
1640
- delete?: never;
1641
- options?: never;
1642
- head?: never;
1643
- patch?: never;
1644
- trace?: never;
1645
- };
1646
- "/reports/profit-and-loss/listing": {
1647
- parameters: {
1648
- query?: never;
1649
- header?: never;
1650
- path?: never;
1651
- cookie?: never;
1652
- };
1653
- /** @description Profit & Loss report grouped by listing */
1654
- get: operations["getProfitAndLossListingReport"];
1655
- put?: never;
1656
- post?: never;
1657
- delete?: never;
1658
- options?: never;
1659
- head?: never;
1660
- patch?: never;
1661
- trace?: never;
1662
- };
1663
- "/reports/profit-and-loss/listing/csv": {
1664
- parameters: {
1665
- query?: never;
1666
- header?: never;
1667
- path?: never;
1668
- cookie?: never;
1669
- };
1670
- /** @description Profit & Loss report grouped by listing (CSV) */
1671
- get: operations["getProfitAndLossListingReportCsv"];
1672
- put?: never;
1673
- post?: never;
1674
- delete?: never;
1675
- options?: never;
1676
- head?: never;
1677
- patch?: never;
1678
- trace?: never;
1679
- };
1680
- "/reports/profit-and-loss/month": {
1681
- parameters: {
1682
- query?: never;
1683
- header?: never;
1684
- path?: never;
1685
- cookie?: never;
1686
- };
1687
- /** @description Profit & Loss report grouped by month */
1688
- get: operations["getProfitAndLossMonthReport"];
1689
- put?: never;
1690
- post?: never;
1691
- delete?: never;
1692
- options?: never;
1693
- head?: never;
1694
- patch?: never;
1695
- trace?: never;
1696
- };
1697
- "/reports/profit-and-loss/month/csv": {
1698
- parameters: {
1699
- query?: never;
1700
- header?: never;
1701
- path?: never;
1702
- cookie?: never;
1703
- };
1704
- /** @description Profit & Loss report grouped by month (CSV) */
1705
- get: operations["getProfitAndLossMonthReportCsv"];
1706
- put?: never;
1707
- post?: never;
1708
- delete?: never;
1709
- options?: never;
1710
- head?: never;
1711
- patch?: never;
1712
- trace?: never;
1713
- };
1714
- "/reports/profit-and-loss/quarter": {
1715
- parameters: {
1716
- query?: never;
1717
- header?: never;
1718
- path?: never;
1719
- cookie?: never;
1720
- };
1721
- /** @description Profit & Loss report grouped by quarter */
1722
- get: operations["getProfitAndLossQuarterReport"];
1723
- put?: never;
1724
- post?: never;
1725
- delete?: never;
1726
- options?: never;
1727
- head?: never;
1728
- patch?: never;
1729
- trace?: never;
1730
- };
1731
- "/reports/profit-and-loss/quarter/csv": {
1732
- parameters: {
1733
- query?: never;
1734
- header?: never;
1735
- path?: never;
1736
- cookie?: never;
1737
- };
1738
- /** @description Profit & Loss report grouped by quarter (CSV) */
1739
- get: operations["getProfitAndLossQuarterReportCsv"];
1740
- put?: never;
1741
- post?: never;
1742
- delete?: never;
1743
- options?: never;
1744
- head?: never;
1745
- patch?: never;
1746
- trace?: never;
1747
- };
1748
- "/reports/profit-and-loss/year": {
1749
- parameters: {
1750
- query?: never;
1751
- header?: never;
1752
- path?: never;
1753
- cookie?: never;
1754
- };
1755
- /** @description Profit & Loss report grouped by year */
1756
- get: operations["getProfitAndLossYearReport"];
1757
- put?: never;
1758
- post?: never;
1759
- delete?: never;
1760
- options?: never;
1761
- head?: never;
1762
- patch?: never;
1763
- trace?: never;
1764
- };
1765
- "/reports/profit-and-loss/year/csv": {
1766
- parameters: {
1767
- query?: never;
1768
- header?: never;
1769
- path?: never;
1770
- cookie?: never;
1771
- };
1772
- /** @description Profit & Loss report grouped by year (CSV) */
1773
- get: operations["getProfitAndLossYearReportCsv"];
1774
- put?: never;
1775
- post?: never;
1776
- delete?: never;
1777
- options?: never;
1778
- head?: never;
1779
- patch?: never;
1780
- trace?: never;
1781
- };
1782
1629
  "/calendar-blocks": {
1783
1630
  parameters: {
1784
1631
  query?: never;
@@ -3696,16 +3543,16 @@ export interface operations {
3696
3543
  requestBody: {
3697
3544
  content: {
3698
3545
  "application/json": {
3699
- /** Format: uuid */
3700
- accountId?: string | null;
3701
3546
  /** @enum {string|null} */
3702
3547
  revenueRecognition?: "checkIn" | "checkOut" | "bookedAt" | "proRata" | null;
3548
+ /** Format: uuid */
3549
+ accountId?: string | null;
3703
3550
  channelMappings?: {
3551
+ /** @enum {string|null} */
3552
+ revenueRecognition?: "checkIn" | "checkOut" | "bookedAt" | "proRata" | null;
3704
3553
  bookingChannel: string;
3705
3554
  /** Format: uuid */
3706
3555
  accountId?: string | null;
3707
- /** @enum {string|null} */
3708
- revenueRecognition?: "checkIn" | "checkOut" | "bookedAt" | "proRata" | null;
3709
3556
  }[] | null;
3710
3557
  };
3711
3558
  };
@@ -3718,12 +3565,12 @@ export interface operations {
3718
3565
  };
3719
3566
  content: {
3720
3567
  "application/json": {
3721
- /** Format: uuid */
3722
3568
  id?: string | null;
3723
3569
  account?: {
3724
- /** Format: uuid */
3725
3570
  id: string;
3726
3571
  name: string;
3572
+ /** @enum {string|null} */
3573
+ type?: "ledger" | "bank" | "recurringFee" | "nonPosting" | null;
3727
3574
  } | null;
3728
3575
  /** @enum {string} */
3729
3576
  status: "mapped" | "unmapped" | "excluded";
@@ -3731,12 +3578,12 @@ export interface operations {
3731
3578
  revenueRecognition?: "checkIn" | "checkOut" | "bookedAt" | "proRata" | null;
3732
3579
  type: string;
3733
3580
  channelMappings: {
3734
- /** Format: uuid */
3735
3581
  id?: string | null;
3736
3582
  account?: {
3737
- /** Format: uuid */
3738
3583
  id: string;
3739
3584
  name: string;
3585
+ /** @enum {string|null} */
3586
+ type?: "ledger" | "bank" | "recurringFee" | "nonPosting" | null;
3740
3587
  } | null;
3741
3588
  /** @enum {string} */
3742
3589
  status: "mapped" | "unmapped" | "excluded";
@@ -3824,12 +3671,12 @@ export interface operations {
3824
3671
  content: {
3825
3672
  "application/json": {
3826
3673
  data: {
3827
- /** Format: uuid */
3828
3674
  id?: string | null;
3829
3675
  account?: {
3830
- /** Format: uuid */
3831
3676
  id: string;
3832
3677
  name: string;
3678
+ /** @enum {string|null} */
3679
+ type?: "ledger" | "bank" | "recurringFee" | "nonPosting" | null;
3833
3680
  } | null;
3834
3681
  /** @enum {string} */
3835
3682
  status: "mapped" | "unmapped" | "excluded";
@@ -3837,12 +3684,12 @@ export interface operations {
3837
3684
  revenueRecognition?: "checkIn" | "checkOut" | "bookedAt" | "proRata" | null;
3838
3685
  type: string;
3839
3686
  channelMappings: {
3840
- /** Format: uuid */
3841
3687
  id?: string | null;
3842
3688
  account?: {
3843
- /** Format: uuid */
3844
3689
  id: string;
3845
3690
  name: string;
3691
+ /** @enum {string|null} */
3692
+ type?: "ledger" | "bank" | "recurringFee" | "nonPosting" | null;
3846
3693
  } | null;
3847
3694
  /** @enum {string} */
3848
3695
  status: "mapped" | "unmapped" | "excluded";
@@ -15598,44 +15445,9 @@ export interface operations {
15598
15445
  };
15599
15446
  content: {
15600
15447
  "application/json": {
15601
- id: string;
15602
- /** @enum {string} */
15603
- status: "active" | "inactive";
15604
- uniqueRef: string;
15605
15448
  description: string;
15449
+ uniqueRef: string;
15606
15450
  date: string;
15607
- currency: string;
15608
- amount: number;
15609
- pattern: {
15610
- /** @enum {string} */
15611
- frequency: "daily" | "weekly" | "monthly" | "yearly";
15612
- interval?: number | null;
15613
- weekDays?: number[] | null;
15614
- monthDays?: number[] | null;
15615
- months?: number[] | null;
15616
- count?: number | null;
15617
- endDate?: string | null;
15618
- };
15619
- /** @enum {string} */
15620
- paymentStatus: "unpaid" | "underpaid" | "overpaid" | "paid";
15621
- patternFormatted?: string | null;
15622
- nextTransactionInstanceAt?: string | null;
15623
- instancesCount: number;
15624
- account?: {
15625
- id: string;
15626
- name: string;
15627
- bankAccount?: {
15628
- /** Format: uuid */
15629
- id?: string | null;
15630
- name: string;
15631
- } | null;
15632
- } | null;
15633
- contact?: {
15634
- /** Format: uuid */
15635
- id: string;
15636
- name?: string | null;
15637
- uniqueRef?: string | null;
15638
- } | null;
15639
15451
  lines: {
15640
15452
  uniqueRef?: string | null;
15641
15453
  description: string;
@@ -15680,6 +15492,8 @@ export interface operations {
15680
15492
  account?: {
15681
15493
  id: string;
15682
15494
  name: string;
15495
+ /** @enum {string|null} */
15496
+ type?: "ledger" | "bank" | "recurringFee" | "nonPosting" | null;
15683
15497
  } | null;
15684
15498
  /** @enum {string} */
15685
15499
  party: "owners" | "manager";
@@ -15706,6 +15520,11 @@ export interface operations {
15706
15520
  } | null;
15707
15521
  } | null;
15708
15522
  }[];
15523
+ /** Format: uuid */
15524
+ recurringTemplateId?: string | null;
15525
+ /** @enum {string} */
15526
+ status: "active" | "inactive";
15527
+ id: string;
15709
15528
  issues: ({
15710
15529
  /** @enum {string} */
15711
15530
  code: "missingInstances";
@@ -15723,40 +15542,75 @@ export interface operations {
15723
15542
  ids: string[];
15724
15543
  };
15725
15544
  })[];
15726
- };
15727
- };
15728
- };
15729
- /** @description Invalid input data */
15730
- 400: {
15731
- headers: {
15732
- [name: string]: unknown;
15733
- };
15734
- content: {
15735
- "application/json": components["schemas"]["error.BAD_REQUEST"];
15736
- };
15737
- };
15738
- /** @description Authorization not provided */
15739
- 401: {
15740
- headers: {
15741
- [name: string]: unknown;
15742
- };
15743
- content: {
15744
- "application/json": components["schemas"]["error.UNAUTHORIZED"];
15745
- };
15746
- };
15747
- /** @description Insufficient access */
15748
- 403: {
15749
- headers: {
15750
- [name: string]: unknown;
15751
- };
15752
- content: {
15753
- "application/json": components["schemas"]["error.FORBIDDEN"];
15754
- };
15755
- };
15756
- /** @description Not found */
15757
- 404: {
15758
- headers: {
15759
- [name: string]: unknown;
15545
+ currency: string;
15546
+ /** @description Value in cents (100 = 1€) */
15547
+ amount: number;
15548
+ account?: {
15549
+ id: string;
15550
+ name: string;
15551
+ /** @enum {string|null} */
15552
+ type?: "ledger" | "bank" | "recurringFee" | "nonPosting" | null;
15553
+ bankAccount?: {
15554
+ /** Format: uuid */
15555
+ id?: string | null;
15556
+ name: string;
15557
+ } | null;
15558
+ } | null;
15559
+ contact?: {
15560
+ /** Format: uuid */
15561
+ id: string;
15562
+ name?: string | null;
15563
+ uniqueRef?: string | null;
15564
+ } | null;
15565
+ pattern: {
15566
+ /** @enum {string} */
15567
+ frequency: "daily" | "weekly" | "monthly" | "yearly";
15568
+ interval?: number | null;
15569
+ weekDays?: number[] | null;
15570
+ monthDays?: number[] | null;
15571
+ months?: number[] | null;
15572
+ count?: number | null;
15573
+ endDate?: string | null;
15574
+ };
15575
+ /** @enum {string} */
15576
+ paymentStatus: "unpaid" | "underpaid" | "overpaid" | "paid";
15577
+ nextTransactionInstanceAt?: string | null;
15578
+ patternFormatted?: string | null;
15579
+ instancesCount: number;
15580
+ };
15581
+ };
15582
+ };
15583
+ /** @description Invalid input data */
15584
+ 400: {
15585
+ headers: {
15586
+ [name: string]: unknown;
15587
+ };
15588
+ content: {
15589
+ "application/json": components["schemas"]["error.BAD_REQUEST"];
15590
+ };
15591
+ };
15592
+ /** @description Authorization not provided */
15593
+ 401: {
15594
+ headers: {
15595
+ [name: string]: unknown;
15596
+ };
15597
+ content: {
15598
+ "application/json": components["schemas"]["error.UNAUTHORIZED"];
15599
+ };
15600
+ };
15601
+ /** @description Insufficient access */
15602
+ 403: {
15603
+ headers: {
15604
+ [name: string]: unknown;
15605
+ };
15606
+ content: {
15607
+ "application/json": components["schemas"]["error.FORBIDDEN"];
15608
+ };
15609
+ };
15610
+ /** @description Not found */
15611
+ 404: {
15612
+ headers: {
15613
+ [name: string]: unknown;
15760
15614
  };
15761
15615
  content: {
15762
15616
  "application/json": components["schemas"]["error.NOT_FOUND"];
@@ -15787,12 +15641,47 @@ export interface operations {
15787
15641
  requestBody: {
15788
15642
  content: {
15789
15643
  "application/json": {
15790
- uniqueRef?: string;
15791
15644
  description?: string;
15792
- date?: string;
15793
- currency?: string | null;
15794
15645
  accountId?: string | null;
15795
15646
  contactId?: string | null;
15647
+ uniqueRef?: string;
15648
+ date?: string;
15649
+ currency?: string | null;
15650
+ lines?: {
15651
+ recurringTemplateId?: string | null;
15652
+ uniqueRef?: string | null;
15653
+ description: string;
15654
+ accountId?: string | null;
15655
+ /** @enum {string|null} */
15656
+ assignment?: "accountsPayable" | "accountsReceivable" | "cancellationRevenue" | "deferredRevenue" | "deposit_channelFee" | "deposit_coHostPayout" | "deposit_merchantFee" | "openingBalance" | "deposit_reserve" | "deposit_vat" | "expense_markup" | "expense_reimbursement" | "expense_salesTax" | "transfer_ownerPayout" | "transfer" | null;
15657
+ /** @description Value in cents (100 = 1€) */
15658
+ amount: number;
15659
+ markup?: {
15660
+ /** @description Value in cents (100 = 1€) */
15661
+ amount?: number | null;
15662
+ /** Format: uuid */
15663
+ taxRateId?: string | null;
15664
+ /**
15665
+ * @default excluded
15666
+ * @enum {string|null}
15667
+ */
15668
+ taxBehavior?: "excluded" | "included" | null;
15669
+ } | null;
15670
+ listingId?: string | null;
15671
+ reservationId?: string | null;
15672
+ /** Format: uuid */
15673
+ ownerStatementId?: string | null;
15674
+ /** @enum {string|null} */
15675
+ party?: "owners" | "manager" | null;
15676
+ contactId?: string | null;
15677
+ matchers?: {
15678
+ confirmationCode?: string | null;
15679
+ customerId?: string | null;
15680
+ lineType?: string | null;
15681
+ } | null;
15682
+ }[];
15683
+ /** @enum {string|null} */
15684
+ status?: "active" | "inactive" | null;
15796
15685
  pattern?: {
15797
15686
  /** @enum {string} */
15798
15687
  frequency: "daily" | "weekly" | "monthly" | "yearly";
@@ -15805,17 +15694,6 @@ export interface operations {
15805
15694
  };
15806
15695
  /** @enum {string} */
15807
15696
  paymentStatus?: "unpaid" | "underpaid" | "overpaid" | "paid";
15808
- lines?: {
15809
- description: string;
15810
- accountId?: string | null;
15811
- amount: number;
15812
- listingId?: string | null;
15813
- party?: string | null;
15814
- contactId?: string | null;
15815
- }[];
15816
- skipInitialInstance?: boolean;
15817
- /** @enum {string|null} */
15818
- status?: "active" | "inactive" | null;
15819
15697
  };
15820
15698
  };
15821
15699
  };
@@ -15827,44 +15705,9 @@ export interface operations {
15827
15705
  };
15828
15706
  content: {
15829
15707
  "application/json": {
15830
- id: string;
15831
- /** @enum {string} */
15832
- status: "active" | "inactive";
15833
- uniqueRef: string;
15834
15708
  description: string;
15709
+ uniqueRef: string;
15835
15710
  date: string;
15836
- currency: string;
15837
- amount: number;
15838
- pattern: {
15839
- /** @enum {string} */
15840
- frequency: "daily" | "weekly" | "monthly" | "yearly";
15841
- interval?: number | null;
15842
- weekDays?: number[] | null;
15843
- monthDays?: number[] | null;
15844
- months?: number[] | null;
15845
- count?: number | null;
15846
- endDate?: string | null;
15847
- };
15848
- /** @enum {string} */
15849
- paymentStatus: "unpaid" | "underpaid" | "overpaid" | "paid";
15850
- patternFormatted?: string | null;
15851
- nextTransactionInstanceAt?: string | null;
15852
- instancesCount: number;
15853
- account?: {
15854
- id: string;
15855
- name: string;
15856
- bankAccount?: {
15857
- /** Format: uuid */
15858
- id?: string | null;
15859
- name: string;
15860
- } | null;
15861
- } | null;
15862
- contact?: {
15863
- /** Format: uuid */
15864
- id: string;
15865
- name?: string | null;
15866
- uniqueRef?: string | null;
15867
- } | null;
15868
15711
  lines: {
15869
15712
  uniqueRef?: string | null;
15870
15713
  description: string;
@@ -15909,6 +15752,8 @@ export interface operations {
15909
15752
  account?: {
15910
15753
  id: string;
15911
15754
  name: string;
15755
+ /** @enum {string|null} */
15756
+ type?: "ledger" | "bank" | "recurringFee" | "nonPosting" | null;
15912
15757
  } | null;
15913
15758
  /** @enum {string} */
15914
15759
  party: "owners" | "manager";
@@ -15935,6 +15780,11 @@ export interface operations {
15935
15780
  } | null;
15936
15781
  } | null;
15937
15782
  }[];
15783
+ /** Format: uuid */
15784
+ recurringTemplateId?: string | null;
15785
+ /** @enum {string} */
15786
+ status: "active" | "inactive";
15787
+ id: string;
15938
15788
  issues: ({
15939
15789
  /** @enum {string} */
15940
15790
  code: "missingInstances";
@@ -15952,6 +15802,41 @@ export interface operations {
15952
15802
  ids: string[];
15953
15803
  };
15954
15804
  })[];
15805
+ currency: string;
15806
+ /** @description Value in cents (100 = 1€) */
15807
+ amount: number;
15808
+ account?: {
15809
+ id: string;
15810
+ name: string;
15811
+ /** @enum {string|null} */
15812
+ type?: "ledger" | "bank" | "recurringFee" | "nonPosting" | null;
15813
+ bankAccount?: {
15814
+ /** Format: uuid */
15815
+ id?: string | null;
15816
+ name: string;
15817
+ } | null;
15818
+ } | null;
15819
+ contact?: {
15820
+ /** Format: uuid */
15821
+ id: string;
15822
+ name?: string | null;
15823
+ uniqueRef?: string | null;
15824
+ } | null;
15825
+ pattern: {
15826
+ /** @enum {string} */
15827
+ frequency: "daily" | "weekly" | "monthly" | "yearly";
15828
+ interval?: number | null;
15829
+ weekDays?: number[] | null;
15830
+ monthDays?: number[] | null;
15831
+ months?: number[] | null;
15832
+ count?: number | null;
15833
+ endDate?: string | null;
15834
+ };
15835
+ /** @enum {string} */
15836
+ paymentStatus: "unpaid" | "underpaid" | "overpaid" | "paid";
15837
+ nextTransactionInstanceAt?: string | null;
15838
+ patternFormatted?: string | null;
15839
+ instancesCount: number;
15955
15840
  };
15956
15841
  };
15957
15842
  };
@@ -16100,44 +15985,9 @@ export interface operations {
16100
15985
  content: {
16101
15986
  "application/json": {
16102
15987
  data: {
16103
- id: string;
16104
- /** @enum {string} */
16105
- status: "active" | "inactive";
16106
- uniqueRef: string;
16107
15988
  description: string;
15989
+ uniqueRef: string;
16108
15990
  date: string;
16109
- currency: string;
16110
- amount: number;
16111
- pattern: {
16112
- /** @enum {string} */
16113
- frequency: "daily" | "weekly" | "monthly" | "yearly";
16114
- interval?: number | null;
16115
- weekDays?: number[] | null;
16116
- monthDays?: number[] | null;
16117
- months?: number[] | null;
16118
- count?: number | null;
16119
- endDate?: string | null;
16120
- };
16121
- /** @enum {string} */
16122
- paymentStatus: "unpaid" | "underpaid" | "overpaid" | "paid";
16123
- patternFormatted?: string | null;
16124
- nextTransactionInstanceAt?: string | null;
16125
- instancesCount: number;
16126
- account?: {
16127
- id: string;
16128
- name: string;
16129
- bankAccount?: {
16130
- /** Format: uuid */
16131
- id?: string | null;
16132
- name: string;
16133
- } | null;
16134
- } | null;
16135
- contact?: {
16136
- /** Format: uuid */
16137
- id: string;
16138
- name?: string | null;
16139
- uniqueRef?: string | null;
16140
- } | null;
16141
15991
  lines: {
16142
15992
  uniqueRef?: string | null;
16143
15993
  description: string;
@@ -16182,6 +16032,8 @@ export interface operations {
16182
16032
  account?: {
16183
16033
  id: string;
16184
16034
  name: string;
16035
+ /** @enum {string|null} */
16036
+ type?: "ledger" | "bank" | "recurringFee" | "nonPosting" | null;
16185
16037
  } | null;
16186
16038
  /** @enum {string} */
16187
16039
  party: "owners" | "manager";
@@ -16208,6 +16060,11 @@ export interface operations {
16208
16060
  } | null;
16209
16061
  } | null;
16210
16062
  }[];
16063
+ /** Format: uuid */
16064
+ recurringTemplateId?: string | null;
16065
+ /** @enum {string} */
16066
+ status: "active" | "inactive";
16067
+ id: string;
16211
16068
  issues: ({
16212
16069
  /** @enum {string} */
16213
16070
  code: "missingInstances";
@@ -16225,20 +16082,55 @@ export interface operations {
16225
16082
  ids: string[];
16226
16083
  };
16227
16084
  })[];
16228
- }[];
16229
- pagination: {
16230
- /** @default 100 */
16231
- limit: number;
16232
- /** @default 1 */
16233
- page: number;
16234
- total: number;
16235
- totalPage: number;
16236
- nextPage?: number;
16237
- };
16238
- };
16239
- };
16240
- };
16241
- /** @description Invalid input data */
16085
+ currency: string;
16086
+ /** @description Value in cents (100 = 1€) */
16087
+ amount: number;
16088
+ account?: {
16089
+ id: string;
16090
+ name: string;
16091
+ /** @enum {string|null} */
16092
+ type?: "ledger" | "bank" | "recurringFee" | "nonPosting" | null;
16093
+ bankAccount?: {
16094
+ /** Format: uuid */
16095
+ id?: string | null;
16096
+ name: string;
16097
+ } | null;
16098
+ } | null;
16099
+ contact?: {
16100
+ /** Format: uuid */
16101
+ id: string;
16102
+ name?: string | null;
16103
+ uniqueRef?: string | null;
16104
+ } | null;
16105
+ pattern: {
16106
+ /** @enum {string} */
16107
+ frequency: "daily" | "weekly" | "monthly" | "yearly";
16108
+ interval?: number | null;
16109
+ weekDays?: number[] | null;
16110
+ monthDays?: number[] | null;
16111
+ months?: number[] | null;
16112
+ count?: number | null;
16113
+ endDate?: string | null;
16114
+ };
16115
+ /** @enum {string} */
16116
+ paymentStatus: "unpaid" | "underpaid" | "overpaid" | "paid";
16117
+ nextTransactionInstanceAt?: string | null;
16118
+ patternFormatted?: string | null;
16119
+ instancesCount: number;
16120
+ }[];
16121
+ pagination: {
16122
+ /** @default 100 */
16123
+ limit: number;
16124
+ /** @default 1 */
16125
+ page: number;
16126
+ total: number;
16127
+ totalPage: number;
16128
+ nextPage?: number;
16129
+ };
16130
+ };
16131
+ };
16132
+ };
16133
+ /** @description Invalid input data */
16242
16134
  400: {
16243
16135
  headers: {
16244
16136
  [name: string]: unknown;
@@ -16297,12 +16189,47 @@ export interface operations {
16297
16189
  requestBody: {
16298
16190
  content: {
16299
16191
  "application/json": {
16300
- uniqueRef: string;
16301
16192
  description: string;
16302
- date: string;
16303
- currency?: string | null;
16304
16193
  accountId?: string | null;
16305
16194
  contactId?: string | null;
16195
+ uniqueRef: string;
16196
+ date: string;
16197
+ currency?: string | null;
16198
+ lines: {
16199
+ recurringTemplateId?: string | null;
16200
+ uniqueRef?: string | null;
16201
+ description: string;
16202
+ accountId?: string | null;
16203
+ /** @enum {string|null} */
16204
+ assignment?: "accountsPayable" | "accountsReceivable" | "cancellationRevenue" | "deferredRevenue" | "deposit_channelFee" | "deposit_coHostPayout" | "deposit_merchantFee" | "openingBalance" | "deposit_reserve" | "deposit_vat" | "expense_markup" | "expense_reimbursement" | "expense_salesTax" | "transfer_ownerPayout" | "transfer" | null;
16205
+ /** @description Value in cents (100 = 1€) */
16206
+ amount: number;
16207
+ markup?: {
16208
+ /** @description Value in cents (100 = 1€) */
16209
+ amount?: number | null;
16210
+ /** Format: uuid */
16211
+ taxRateId?: string | null;
16212
+ /**
16213
+ * @default excluded
16214
+ * @enum {string|null}
16215
+ */
16216
+ taxBehavior?: "excluded" | "included" | null;
16217
+ } | null;
16218
+ listingId?: string | null;
16219
+ reservationId?: string | null;
16220
+ /** Format: uuid */
16221
+ ownerStatementId?: string | null;
16222
+ /** @enum {string|null} */
16223
+ party?: "owners" | "manager" | null;
16224
+ contactId?: string | null;
16225
+ matchers?: {
16226
+ confirmationCode?: string | null;
16227
+ customerId?: string | null;
16228
+ lineType?: string | null;
16229
+ } | null;
16230
+ }[];
16231
+ /** @enum {string|null} */
16232
+ status?: "active" | "inactive" | null;
16306
16233
  pattern: {
16307
16234
  /** @enum {string} */
16308
16235
  frequency: "daily" | "weekly" | "monthly" | "yearly";
@@ -16315,15 +16242,6 @@ export interface operations {
16315
16242
  };
16316
16243
  /** @enum {string} */
16317
16244
  paymentStatus: "unpaid" | "underpaid" | "overpaid" | "paid";
16318
- lines: {
16319
- description: string;
16320
- accountId?: string | null;
16321
- amount: number;
16322
- listingId?: string | null;
16323
- party?: string | null;
16324
- contactId?: string | null;
16325
- }[];
16326
- skipInitialInstance?: boolean;
16327
16245
  };
16328
16246
  };
16329
16247
  };
@@ -16335,44 +16253,9 @@ export interface operations {
16335
16253
  };
16336
16254
  content: {
16337
16255
  "application/json": {
16338
- id: string;
16339
- /** @enum {string} */
16340
- status: "active" | "inactive";
16341
- uniqueRef: string;
16342
16256
  description: string;
16257
+ uniqueRef: string;
16343
16258
  date: string;
16344
- currency: string;
16345
- amount: number;
16346
- pattern: {
16347
- /** @enum {string} */
16348
- frequency: "daily" | "weekly" | "monthly" | "yearly";
16349
- interval?: number | null;
16350
- weekDays?: number[] | null;
16351
- monthDays?: number[] | null;
16352
- months?: number[] | null;
16353
- count?: number | null;
16354
- endDate?: string | null;
16355
- };
16356
- /** @enum {string} */
16357
- paymentStatus: "unpaid" | "underpaid" | "overpaid" | "paid";
16358
- patternFormatted?: string | null;
16359
- nextTransactionInstanceAt?: string | null;
16360
- instancesCount: number;
16361
- account?: {
16362
- id: string;
16363
- name: string;
16364
- bankAccount?: {
16365
- /** Format: uuid */
16366
- id?: string | null;
16367
- name: string;
16368
- } | null;
16369
- } | null;
16370
- contact?: {
16371
- /** Format: uuid */
16372
- id: string;
16373
- name?: string | null;
16374
- uniqueRef?: string | null;
16375
- } | null;
16376
16259
  lines: {
16377
16260
  uniqueRef?: string | null;
16378
16261
  description: string;
@@ -16417,6 +16300,8 @@ export interface operations {
16417
16300
  account?: {
16418
16301
  id: string;
16419
16302
  name: string;
16303
+ /** @enum {string|null} */
16304
+ type?: "ledger" | "bank" | "recurringFee" | "nonPosting" | null;
16420
16305
  } | null;
16421
16306
  /** @enum {string} */
16422
16307
  party: "owners" | "manager";
@@ -16443,6 +16328,11 @@ export interface operations {
16443
16328
  } | null;
16444
16329
  } | null;
16445
16330
  }[];
16331
+ /** Format: uuid */
16332
+ recurringTemplateId?: string | null;
16333
+ /** @enum {string} */
16334
+ status: "active" | "inactive";
16335
+ id: string;
16446
16336
  issues: ({
16447
16337
  /** @enum {string} */
16448
16338
  code: "missingInstances";
@@ -16460,6 +16350,41 @@ export interface operations {
16460
16350
  ids: string[];
16461
16351
  };
16462
16352
  })[];
16353
+ currency: string;
16354
+ /** @description Value in cents (100 = 1€) */
16355
+ amount: number;
16356
+ account?: {
16357
+ id: string;
16358
+ name: string;
16359
+ /** @enum {string|null} */
16360
+ type?: "ledger" | "bank" | "recurringFee" | "nonPosting" | null;
16361
+ bankAccount?: {
16362
+ /** Format: uuid */
16363
+ id?: string | null;
16364
+ name: string;
16365
+ } | null;
16366
+ } | null;
16367
+ contact?: {
16368
+ /** Format: uuid */
16369
+ id: string;
16370
+ name?: string | null;
16371
+ uniqueRef?: string | null;
16372
+ } | null;
16373
+ pattern: {
16374
+ /** @enum {string} */
16375
+ frequency: "daily" | "weekly" | "monthly" | "yearly";
16376
+ interval?: number | null;
16377
+ weekDays?: number[] | null;
16378
+ monthDays?: number[] | null;
16379
+ months?: number[] | null;
16380
+ count?: number | null;
16381
+ endDate?: string | null;
16382
+ };
16383
+ /** @enum {string} */
16384
+ paymentStatus: "unpaid" | "underpaid" | "overpaid" | "paid";
16385
+ nextTransactionInstanceAt?: string | null;
16386
+ patternFormatted?: string | null;
16387
+ instancesCount: number;
16463
16388
  };
16464
16389
  };
16465
16390
  };
@@ -18602,8 +18527,6 @@ export interface operations {
18602
18527
  /** @enum {string} */
18603
18528
  status: "completed" | "failed";
18604
18529
  entityType: string;
18605
- /** Format: uuid */
18606
- entityId: string;
18607
18530
  entityUniqueRef: string;
18608
18531
  }[];
18609
18532
  };
@@ -18909,7 +18832,7 @@ export interface operations {
18909
18832
  };
18910
18833
  };
18911
18834
  };
18912
- getAccount: {
18835
+ reprocessAccountBalances: {
18913
18836
  parameters: {
18914
18837
  query?: never;
18915
18838
  header?: {
@@ -19040,7 +18963,7 @@ export interface operations {
19040
18963
  };
19041
18964
  };
19042
18965
  };
19043
- updateAccount: {
18966
+ getAccount: {
19044
18967
  parameters: {
19045
18968
  query?: never;
19046
18969
  header?: {
@@ -19051,27 +18974,7 @@ export interface operations {
19051
18974
  };
19052
18975
  cookie?: never;
19053
18976
  };
19054
- requestBody: {
19055
- content: {
19056
- "application/json": {
19057
- name?: string;
19058
- /** @enum {string|null} */
19059
- status?: "active" | "inactive" | null;
19060
- /** @enum {string} */
19061
- type?: "ledger" | "bank" | "recurringFee" | "nonPosting";
19062
- assignments?: ("accountsPayable" | "accountsReceivable" | "cancellationRevenue" | "deferredRevenue" | "deposit_channelFee" | "deposit_coHostPayout" | "deposit_merchantFee" | "openingBalance" | "deposit_reserve" | "deposit_vat" | "expense_markup" | "expense_reimbursement" | "expense_salesTax" | "transfer_ownerPayout" | "transfer")[] | null;
19063
- offsetAccountId?: string | null;
19064
- categoryId?: string | null;
19065
- banking?: {
19066
- /** @enum {string|null} */
19067
- category?: "trust" | "operating" | "external" | null;
19068
- /** @enum {string|null} */
19069
- type?: "deposit" | "creditCard" | null;
19070
- last4?: string | null;
19071
- } | null;
19072
- };
19073
- };
19074
- };
18977
+ requestBody?: never;
19075
18978
  responses: {
19076
18979
  /** @description Successful response */
19077
18980
  200: {
@@ -19191,11 +19094,9 @@ export interface operations {
19191
19094
  };
19192
19095
  };
19193
19096
  };
19194
- deleteAccount: {
19097
+ updateAccount: {
19195
19098
  parameters: {
19196
- query?: {
19197
- onLocked?: "error" | "archive";
19198
- };
19099
+ query?: never;
19199
19100
  header?: {
19200
19101
  "X-Team-Id"?: string;
19201
19102
  };
@@ -19204,7 +19105,27 @@ export interface operations {
19204
19105
  };
19205
19106
  cookie?: never;
19206
19107
  };
19207
- requestBody?: never;
19108
+ requestBody: {
19109
+ content: {
19110
+ "application/json": {
19111
+ name?: string;
19112
+ /** @enum {string|null} */
19113
+ status?: "active" | "inactive" | null;
19114
+ /** @enum {string} */
19115
+ type?: "ledger" | "bank" | "recurringFee" | "nonPosting";
19116
+ assignments?: ("accountsPayable" | "accountsReceivable" | "cancellationRevenue" | "deferredRevenue" | "deposit_channelFee" | "deposit_coHostPayout" | "deposit_merchantFee" | "openingBalance" | "deposit_reserve" | "deposit_vat" | "expense_markup" | "expense_reimbursement" | "expense_salesTax" | "transfer_ownerPayout" | "transfer")[] | null;
19117
+ offsetAccountId?: string | null;
19118
+ categoryId?: string | null;
19119
+ banking?: {
19120
+ /** @enum {string|null} */
19121
+ category?: "trust" | "operating" | "external" | null;
19122
+ /** @enum {string|null} */
19123
+ type?: "deposit" | "creditCard" | null;
19124
+ last4?: string | null;
19125
+ } | null;
19126
+ };
19127
+ };
19128
+ };
19208
19129
  responses: {
19209
19130
  /** @description Successful response */
19210
19131
  200: {
@@ -19213,30 +19134,163 @@ export interface operations {
19213
19134
  };
19214
19135
  content: {
19215
19136
  "application/json": {
19137
+ name: string;
19138
+ /** @enum {string|null} */
19139
+ status?: "active" | "inactive" | null;
19216
19140
  /** @enum {string} */
19217
- status: "deleted" | "archived";
19218
- };
19219
- };
19220
- };
19221
- /** @description Invalid input data */
19222
- 400: {
19223
- headers: {
19224
- [name: string]: unknown;
19225
- };
19226
- content: {
19227
- "application/json": components["schemas"]["error.BAD_REQUEST"];
19228
- };
19229
- };
19230
- /** @description Authorization not provided */
19231
- 401: {
19232
- headers: {
19233
- [name: string]: unknown;
19234
- };
19235
- content: {
19236
- "application/json": components["schemas"]["error.UNAUTHORIZED"];
19237
- };
19238
- };
19239
- /** @description Insufficient access */
19141
+ type: "ledger" | "bank" | "recurringFee" | "nonPosting";
19142
+ id: string;
19143
+ offsetAccount?: {
19144
+ id: string;
19145
+ name: string;
19146
+ /** @enum {string|null} */
19147
+ type?: "ledger" | "bank" | "recurringFee" | "nonPosting" | null;
19148
+ } | null;
19149
+ assignments: ("accountsPayable" | "accountsReceivable" | "cancellationRevenue" | "deferredRevenue" | "deposit_channelFee" | "deposit_coHostPayout" | "deposit_merchantFee" | "openingBalance" | "deposit_reserve" | "deposit_vat" | "expense_markup" | "expense_reimbursement" | "expense_salesTax" | "transfer_ownerPayout" | "transfer")[];
19150
+ category?: {
19151
+ id: string;
19152
+ name: string;
19153
+ /** @enum {string|null} */
19154
+ classification?: "asset" | "liability" | "revenue" | "expense" | null;
19155
+ } | null;
19156
+ banking?: {
19157
+ /** @enum {string|null} */
19158
+ category?: "trust" | "operating" | "external" | null;
19159
+ /** @enum {string|null} */
19160
+ type?: "deposit" | "creditCard" | null;
19161
+ last4?: string | null;
19162
+ connections: {
19163
+ id: string;
19164
+ name: string;
19165
+ connection?: {
19166
+ id: string;
19167
+ icon?: string | null;
19168
+ } | null;
19169
+ /** @enum {string|null} */
19170
+ status?: "active" | "inactive" | null;
19171
+ currentSync?: {
19172
+ /** @enum {string} */
19173
+ status: "queued" | "started" | "completed" | "failed" | "canceled";
19174
+ createdAt: string;
19175
+ updatedAt: string;
19176
+ message?: string | null;
19177
+ } | null;
19178
+ source?: {
19179
+ /** Format: uuid */
19180
+ id: string;
19181
+ type: string;
19182
+ /** @enum {string|null} */
19183
+ status?: "active" | "inactive" | null;
19184
+ } | null;
19185
+ }[];
19186
+ bankRecords: {
19187
+ reconciled: number;
19188
+ unreconciled: number;
19189
+ total: number;
19190
+ latestCreatedAt?: string | null;
19191
+ };
19192
+ balance?: {
19193
+ openingDate?: string | null;
19194
+ opening: number;
19195
+ ending: number;
19196
+ } | null;
19197
+ } | null;
19198
+ };
19199
+ };
19200
+ };
19201
+ /** @description Invalid input data */
19202
+ 400: {
19203
+ headers: {
19204
+ [name: string]: unknown;
19205
+ };
19206
+ content: {
19207
+ "application/json": components["schemas"]["error.BAD_REQUEST"];
19208
+ };
19209
+ };
19210
+ /** @description Authorization not provided */
19211
+ 401: {
19212
+ headers: {
19213
+ [name: string]: unknown;
19214
+ };
19215
+ content: {
19216
+ "application/json": components["schemas"]["error.UNAUTHORIZED"];
19217
+ };
19218
+ };
19219
+ /** @description Insufficient access */
19220
+ 403: {
19221
+ headers: {
19222
+ [name: string]: unknown;
19223
+ };
19224
+ content: {
19225
+ "application/json": components["schemas"]["error.FORBIDDEN"];
19226
+ };
19227
+ };
19228
+ /** @description Not found */
19229
+ 404: {
19230
+ headers: {
19231
+ [name: string]: unknown;
19232
+ };
19233
+ content: {
19234
+ "application/json": components["schemas"]["error.NOT_FOUND"];
19235
+ };
19236
+ };
19237
+ /** @description Internal server error */
19238
+ 500: {
19239
+ headers: {
19240
+ [name: string]: unknown;
19241
+ };
19242
+ content: {
19243
+ "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
19244
+ };
19245
+ };
19246
+ };
19247
+ };
19248
+ deleteAccount: {
19249
+ parameters: {
19250
+ query?: {
19251
+ onLocked?: "error" | "archive";
19252
+ };
19253
+ header?: {
19254
+ "X-Team-Id"?: string;
19255
+ };
19256
+ path: {
19257
+ id: string;
19258
+ };
19259
+ cookie?: never;
19260
+ };
19261
+ requestBody?: never;
19262
+ responses: {
19263
+ /** @description Successful response */
19264
+ 200: {
19265
+ headers: {
19266
+ [name: string]: unknown;
19267
+ };
19268
+ content: {
19269
+ "application/json": {
19270
+ /** @enum {string} */
19271
+ status: "deleted" | "archived";
19272
+ };
19273
+ };
19274
+ };
19275
+ /** @description Invalid input data */
19276
+ 400: {
19277
+ headers: {
19278
+ [name: string]: unknown;
19279
+ };
19280
+ content: {
19281
+ "application/json": components["schemas"]["error.BAD_REQUEST"];
19282
+ };
19283
+ };
19284
+ /** @description Authorization not provided */
19285
+ 401: {
19286
+ headers: {
19287
+ [name: string]: unknown;
19288
+ };
19289
+ content: {
19290
+ "application/json": components["schemas"]["error.UNAUTHORIZED"];
19291
+ };
19292
+ };
19293
+ /** @description Insufficient access */
19240
19294
  403: {
19241
19295
  headers: {
19242
19296
  [name: string]: unknown;
@@ -23094,879 +23148,8 @@ export interface operations {
23094
23148
  error: string;
23095
23149
  parseErrors?: {
23096
23150
  rowNumber: number;
23097
- message: string;
23098
- }[];
23099
- };
23100
- };
23101
- };
23102
- };
23103
- /** @description Invalid input data */
23104
- 400: {
23105
- headers: {
23106
- [name: string]: unknown;
23107
- };
23108
- content: {
23109
- "application/json": components["schemas"]["error.BAD_REQUEST"];
23110
- };
23111
- };
23112
- /** @description Authorization not provided */
23113
- 401: {
23114
- headers: {
23115
- [name: string]: unknown;
23116
- };
23117
- content: {
23118
- "application/json": components["schemas"]["error.UNAUTHORIZED"];
23119
- };
23120
- };
23121
- /** @description Insufficient access */
23122
- 403: {
23123
- headers: {
23124
- [name: string]: unknown;
23125
- };
23126
- content: {
23127
- "application/json": components["schemas"]["error.FORBIDDEN"];
23128
- };
23129
- };
23130
- /** @description Internal server error */
23131
- 500: {
23132
- headers: {
23133
- [name: string]: unknown;
23134
- };
23135
- content: {
23136
- "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
23137
- };
23138
- };
23139
- };
23140
- };
23141
- getTrustReconciliationReport: {
23142
- parameters: {
23143
- query: {
23144
- endDate: string;
23145
- listingId?: string;
23146
- };
23147
- header?: {
23148
- "X-Team-Id"?: string;
23149
- };
23150
- path?: never;
23151
- cookie?: never;
23152
- };
23153
- requestBody?: never;
23154
- responses: {
23155
- /** @description Successful response */
23156
- 200: {
23157
- headers: {
23158
- [name: string]: unknown;
23159
- };
23160
- content: {
23161
- "application/json": {
23162
- data: ({
23163
- /** @enum {string} */
23164
- name: "Owner Payables";
23165
- total: number;
23166
- /** @enum {string} */
23167
- type: "listings";
23168
- listings: {
23169
- name: string;
23170
- id: string;
23171
- total: number;
23172
- }[];
23173
- } | {
23174
- name: string;
23175
- total: number;
23176
- /** @enum {string} */
23177
- type: "accounts";
23178
- accounts: {
23179
- id: string;
23180
- name: string;
23181
- total: number;
23182
- }[];
23183
- } | {
23184
- /** @enum {string} */
23185
- name: "Guest Receivables & Deposits";
23186
- total: number;
23187
- /** @enum {string} */
23188
- type: "occupancy_status";
23189
- occupancyStatuses: {
23190
- /** @enum {string} */
23191
- status: "departed" | "upcoming" | "inHouse" | "unassigned";
23192
- total: number;
23193
- }[];
23194
- })[];
23195
- };
23196
- };
23197
- };
23198
- /** @description Invalid input data */
23199
- 400: {
23200
- headers: {
23201
- [name: string]: unknown;
23202
- };
23203
- content: {
23204
- "application/json": components["schemas"]["error.BAD_REQUEST"];
23205
- };
23206
- };
23207
- /** @description Authorization not provided */
23208
- 401: {
23209
- headers: {
23210
- [name: string]: unknown;
23211
- };
23212
- content: {
23213
- "application/json": components["schemas"]["error.UNAUTHORIZED"];
23214
- };
23215
- };
23216
- /** @description Insufficient access */
23217
- 403: {
23218
- headers: {
23219
- [name: string]: unknown;
23220
- };
23221
- content: {
23222
- "application/json": components["schemas"]["error.FORBIDDEN"];
23223
- };
23224
- };
23225
- /** @description Not found */
23226
- 404: {
23227
- headers: {
23228
- [name: string]: unknown;
23229
- };
23230
- content: {
23231
- "application/json": components["schemas"]["error.NOT_FOUND"];
23232
- };
23233
- };
23234
- /** @description Internal server error */
23235
- 500: {
23236
- headers: {
23237
- [name: string]: unknown;
23238
- };
23239
- content: {
23240
- "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
23241
- };
23242
- };
23243
- };
23244
- };
23245
- getTrustReconciliationReportCsv: {
23246
- parameters: {
23247
- query: {
23248
- endDate: string;
23249
- listingId?: string;
23250
- };
23251
- header?: {
23252
- "X-Team-Id"?: string;
23253
- };
23254
- path?: never;
23255
- cookie?: never;
23256
- };
23257
- requestBody?: never;
23258
- responses: {
23259
- /** @description Successful response */
23260
- 200: {
23261
- headers: {
23262
- [name: string]: unknown;
23263
- };
23264
- content: {
23265
- "application/json": {
23266
- url: string;
23267
- };
23268
- };
23269
- };
23270
- /** @description Invalid input data */
23271
- 400: {
23272
- headers: {
23273
- [name: string]: unknown;
23274
- };
23275
- content: {
23276
- "application/json": components["schemas"]["error.BAD_REQUEST"];
23277
- };
23278
- };
23279
- /** @description Authorization not provided */
23280
- 401: {
23281
- headers: {
23282
- [name: string]: unknown;
23283
- };
23284
- content: {
23285
- "application/json": components["schemas"]["error.UNAUTHORIZED"];
23286
- };
23287
- };
23288
- /** @description Insufficient access */
23289
- 403: {
23290
- headers: {
23291
- [name: string]: unknown;
23292
- };
23293
- content: {
23294
- "application/json": components["schemas"]["error.FORBIDDEN"];
23295
- };
23296
- };
23297
- /** @description Not found */
23298
- 404: {
23299
- headers: {
23300
- [name: string]: unknown;
23301
- };
23302
- content: {
23303
- "application/json": components["schemas"]["error.NOT_FOUND"];
23304
- };
23305
- };
23306
- /** @description Internal server error */
23307
- 500: {
23308
- headers: {
23309
- [name: string]: unknown;
23310
- };
23311
- content: {
23312
- "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
23313
- };
23314
- };
23315
- };
23316
- };
23317
- getSalesTaxLiabilityReport: {
23318
- parameters: {
23319
- query: {
23320
- startDate: string;
23321
- endDate: string;
23322
- taxableLineIds: string;
23323
- channels?: string;
23324
- };
23325
- header?: {
23326
- "X-Team-Id"?: string;
23327
- };
23328
- path?: never;
23329
- cookie?: never;
23330
- };
23331
- requestBody?: never;
23332
- responses: {
23333
- /** @description Successful response */
23334
- 200: {
23335
- headers: {
23336
- [name: string]: unknown;
23337
- };
23338
- content: {
23339
- "application/json": {
23340
- data: {
23341
- /** Format: uuid */
23342
- id: string;
23343
- name: string;
23344
- taxableIncomeTotal: number;
23345
- collectableTaxesTotal: number;
23346
- channels: {
23347
- name: string;
23348
- taxableIncomeTotal: number;
23349
- collectableTaxesTotal: number;
23350
- reservations: {
23351
- /** Format: uuid */
23352
- id: string;
23353
- taxableIncome: number;
23354
- collectableTaxes: number;
23355
- checkIn: string;
23356
- checkOut: string;
23357
- bookedAt: string | null;
23358
- guestName: string;
23359
- confirmationCode: string;
23360
- nights: number;
23361
- }[];
23362
- }[];
23363
- }[];
23364
- taxesIncomeTotal: number;
23365
- collectableTaxesTotal: number;
23366
- };
23367
- };
23368
- };
23369
- /** @description Invalid input data */
23370
- 400: {
23371
- headers: {
23372
- [name: string]: unknown;
23373
- };
23374
- content: {
23375
- "application/json": components["schemas"]["error.BAD_REQUEST"];
23376
- };
23377
- };
23378
- /** @description Authorization not provided */
23379
- 401: {
23380
- headers: {
23381
- [name: string]: unknown;
23382
- };
23383
- content: {
23384
- "application/json": components["schemas"]["error.UNAUTHORIZED"];
23385
- };
23386
- };
23387
- /** @description Insufficient access */
23388
- 403: {
23389
- headers: {
23390
- [name: string]: unknown;
23391
- };
23392
- content: {
23393
- "application/json": components["schemas"]["error.FORBIDDEN"];
23394
- };
23395
- };
23396
- /** @description Not found */
23397
- 404: {
23398
- headers: {
23399
- [name: string]: unknown;
23400
- };
23401
- content: {
23402
- "application/json": components["schemas"]["error.NOT_FOUND"];
23403
- };
23404
- };
23405
- /** @description Internal server error */
23406
- 500: {
23407
- headers: {
23408
- [name: string]: unknown;
23409
- };
23410
- content: {
23411
- "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
23412
- };
23413
- };
23414
- };
23415
- };
23416
- getSalesTaxLiabilityReportCsv: {
23417
- parameters: {
23418
- query: {
23419
- startDate: string;
23420
- endDate: string;
23421
- taxableLineIds: string;
23422
- channels?: string;
23423
- };
23424
- header?: {
23425
- "X-Team-Id"?: string;
23426
- };
23427
- path?: never;
23428
- cookie?: never;
23429
- };
23430
- requestBody?: never;
23431
- responses: {
23432
- /** @description Successful response */
23433
- 200: {
23434
- headers: {
23435
- [name: string]: unknown;
23436
- };
23437
- content: {
23438
- "application/json": {
23439
- url: string;
23440
- };
23441
- };
23442
- };
23443
- /** @description Invalid input data */
23444
- 400: {
23445
- headers: {
23446
- [name: string]: unknown;
23447
- };
23448
- content: {
23449
- "application/json": components["schemas"]["error.BAD_REQUEST"];
23450
- };
23451
- };
23452
- /** @description Authorization not provided */
23453
- 401: {
23454
- headers: {
23455
- [name: string]: unknown;
23456
- };
23457
- content: {
23458
- "application/json": components["schemas"]["error.UNAUTHORIZED"];
23459
- };
23460
- };
23461
- /** @description Insufficient access */
23462
- 403: {
23463
- headers: {
23464
- [name: string]: unknown;
23465
- };
23466
- content: {
23467
- "application/json": components["schemas"]["error.FORBIDDEN"];
23468
- };
23469
- };
23470
- /** @description Not found */
23471
- 404: {
23472
- headers: {
23473
- [name: string]: unknown;
23474
- };
23475
- content: {
23476
- "application/json": components["schemas"]["error.NOT_FOUND"];
23477
- };
23478
- };
23479
- /** @description Internal server error */
23480
- 500: {
23481
- headers: {
23482
- [name: string]: unknown;
23483
- };
23484
- content: {
23485
- "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
23486
- };
23487
- };
23488
- };
23489
- };
23490
- getGuestBalancesReport: {
23491
- parameters: {
23492
- query: {
23493
- date: string;
23494
- occupancyStatus: "departed" | "inHouse" | "upcoming";
23495
- channels?: string;
23496
- };
23497
- header?: {
23498
- "X-Team-Id"?: string;
23499
- };
23500
- path?: never;
23501
- cookie?: never;
23502
- };
23503
- requestBody?: never;
23504
- responses: {
23505
- /** @description Successful response */
23506
- 200: {
23507
- headers: {
23508
- [name: string]: unknown;
23509
- };
23510
- content: {
23511
- "application/json": {
23512
- data: {
23513
- /** @enum {string} */
23514
- status: "booked" | "cancelled";
23515
- total: number;
23516
- listings: {
23517
- /** Format: uuid */
23518
- id: string;
23519
- name: string;
23520
- total: number;
23521
- reservations: {
23522
- /** Format: uuid */
23523
- id: string;
23524
- checkIn: string;
23525
- checkOut: string;
23526
- bookedAt: string | null;
23527
- cancelledAt: string | null;
23528
- bookingPlatform: string;
23529
- guestName: string;
23530
- confirmationCode: string;
23531
- nights: number;
23532
- total: number;
23533
- }[];
23534
- }[];
23535
- }[];
23536
- };
23537
- };
23538
- };
23539
- /** @description Invalid input data */
23540
- 400: {
23541
- headers: {
23542
- [name: string]: unknown;
23543
- };
23544
- content: {
23545
- "application/json": components["schemas"]["error.BAD_REQUEST"];
23546
- };
23547
- };
23548
- /** @description Authorization not provided */
23549
- 401: {
23550
- headers: {
23551
- [name: string]: unknown;
23552
- };
23553
- content: {
23554
- "application/json": components["schemas"]["error.UNAUTHORIZED"];
23555
- };
23556
- };
23557
- /** @description Insufficient access */
23558
- 403: {
23559
- headers: {
23560
- [name: string]: unknown;
23561
- };
23562
- content: {
23563
- "application/json": components["schemas"]["error.FORBIDDEN"];
23564
- };
23565
- };
23566
- /** @description Not found */
23567
- 404: {
23568
- headers: {
23569
- [name: string]: unknown;
23570
- };
23571
- content: {
23572
- "application/json": components["schemas"]["error.NOT_FOUND"];
23573
- };
23574
- };
23575
- /** @description Internal server error */
23576
- 500: {
23577
- headers: {
23578
- [name: string]: unknown;
23579
- };
23580
- content: {
23581
- "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
23582
- };
23583
- };
23584
- };
23585
- };
23586
- getGuestBalancesReportAggregated: {
23587
- parameters: {
23588
- query: {
23589
- date: string;
23590
- channels?: string;
23591
- };
23592
- header?: {
23593
- "X-Team-Id"?: string;
23594
- };
23595
- path?: never;
23596
- cookie?: never;
23597
- };
23598
- requestBody?: never;
23599
- responses: {
23600
- /** @description Successful response */
23601
- 200: {
23602
- headers: {
23603
- [name: string]: unknown;
23604
- };
23605
- content: {
23606
- "application/json": {
23607
- departed: number;
23608
- inHouse: number;
23609
- upcoming: number;
23610
- };
23611
- };
23612
- };
23613
- /** @description Invalid input data */
23614
- 400: {
23615
- headers: {
23616
- [name: string]: unknown;
23617
- };
23618
- content: {
23619
- "application/json": components["schemas"]["error.BAD_REQUEST"];
23620
- };
23621
- };
23622
- /** @description Authorization not provided */
23623
- 401: {
23624
- headers: {
23625
- [name: string]: unknown;
23626
- };
23627
- content: {
23628
- "application/json": components["schemas"]["error.UNAUTHORIZED"];
23629
- };
23630
- };
23631
- /** @description Insufficient access */
23632
- 403: {
23633
- headers: {
23634
- [name: string]: unknown;
23635
- };
23636
- content: {
23637
- "application/json": components["schemas"]["error.FORBIDDEN"];
23638
- };
23639
- };
23640
- /** @description Not found */
23641
- 404: {
23642
- headers: {
23643
- [name: string]: unknown;
23644
- };
23645
- content: {
23646
- "application/json": components["schemas"]["error.NOT_FOUND"];
23647
- };
23648
- };
23649
- /** @description Internal server error */
23650
- 500: {
23651
- headers: {
23652
- [name: string]: unknown;
23653
- };
23654
- content: {
23655
- "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
23656
- };
23657
- };
23658
- };
23659
- };
23660
- getGuestBalancesReportCsv: {
23661
- parameters: {
23662
- query: {
23663
- date: string;
23664
- occupancyStatus: "departed" | "inHouse" | "upcoming";
23665
- channels?: string;
23666
- };
23667
- header?: {
23668
- "X-Team-Id"?: string;
23669
- };
23670
- path?: never;
23671
- cookie?: never;
23672
- };
23673
- requestBody?: never;
23674
- responses: {
23675
- /** @description Successful response */
23676
- 200: {
23677
- headers: {
23678
- [name: string]: unknown;
23679
- };
23680
- content: {
23681
- "application/json": {
23682
- url: string;
23683
- };
23684
- };
23685
- };
23686
- /** @description Invalid input data */
23687
- 400: {
23688
- headers: {
23689
- [name: string]: unknown;
23690
- };
23691
- content: {
23692
- "application/json": components["schemas"]["error.BAD_REQUEST"];
23693
- };
23694
- };
23695
- /** @description Authorization not provided */
23696
- 401: {
23697
- headers: {
23698
- [name: string]: unknown;
23699
- };
23700
- content: {
23701
- "application/json": components["schemas"]["error.UNAUTHORIZED"];
23702
- };
23703
- };
23704
- /** @description Insufficient access */
23705
- 403: {
23706
- headers: {
23707
- [name: string]: unknown;
23708
- };
23709
- content: {
23710
- "application/json": components["schemas"]["error.FORBIDDEN"];
23711
- };
23712
- };
23713
- /** @description Not found */
23714
- 404: {
23715
- headers: {
23716
- [name: string]: unknown;
23717
- };
23718
- content: {
23719
- "application/json": components["schemas"]["error.NOT_FOUND"];
23720
- };
23721
- };
23722
- /** @description Internal server error */
23723
- 500: {
23724
- headers: {
23725
- [name: string]: unknown;
23726
- };
23727
- content: {
23728
- "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
23729
- };
23730
- };
23731
- };
23732
- };
23733
- getManagerStatementsReport: {
23734
- parameters: {
23735
- query: {
23736
- /** @description Year in format YYYY */
23737
- year: number;
23738
- };
23739
- header?: {
23740
- "X-Team-Id"?: string;
23741
- };
23742
- path?: never;
23743
- cookie?: never;
23744
- };
23745
- requestBody?: never;
23746
- responses: {
23747
- /** @description Successful response */
23748
- 200: {
23749
- headers: {
23750
- [name: string]: unknown;
23751
- };
23752
- content: {
23753
- "application/json": {
23754
- data: {
23755
- currency: unknown;
23756
- startAt: string;
23757
- endAt: string;
23758
- total: number;
23759
- financials: {
23760
- balanceStart: number;
23761
- balanceEnd: number;
23762
- netRevenue: number;
23763
- expenses: number;
23764
- netIncome: number;
23765
- transfers: number;
23766
- };
23767
- }[];
23768
- };
23769
- };
23770
- };
23771
- /** @description Invalid input data */
23772
- 400: {
23773
- headers: {
23774
- [name: string]: unknown;
23775
- };
23776
- content: {
23777
- "application/json": components["schemas"]["error.BAD_REQUEST"];
23778
- };
23779
- };
23780
- /** @description Authorization not provided */
23781
- 401: {
23782
- headers: {
23783
- [name: string]: unknown;
23784
- };
23785
- content: {
23786
- "application/json": components["schemas"]["error.UNAUTHORIZED"];
23787
- };
23788
- };
23789
- /** @description Insufficient access */
23790
- 403: {
23791
- headers: {
23792
- [name: string]: unknown;
23793
- };
23794
- content: {
23795
- "application/json": components["schemas"]["error.FORBIDDEN"];
23796
- };
23797
- };
23798
- /** @description Not found */
23799
- 404: {
23800
- headers: {
23801
- [name: string]: unknown;
23802
- };
23803
- content: {
23804
- "application/json": components["schemas"]["error.NOT_FOUND"];
23805
- };
23806
- };
23807
- /** @description Internal server error */
23808
- 500: {
23809
- headers: {
23810
- [name: string]: unknown;
23811
- };
23812
- content: {
23813
- "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
23814
- };
23815
- };
23816
- };
23817
- };
23818
- getManagerStatementReportDetail: {
23819
- parameters: {
23820
- query: {
23821
- startAt: string;
23822
- endAt: string;
23823
- };
23824
- header?: {
23825
- "X-Team-Id"?: string;
23826
- };
23827
- path?: never;
23828
- cookie?: never;
23829
- };
23830
- requestBody?: never;
23831
- responses: {
23832
- /** @description Successful response */
23833
- 200: {
23834
- headers: {
23835
- [name: string]: unknown;
23836
- };
23837
- content: {
23838
- "application/json": {
23839
- currency: unknown;
23840
- startAt: string;
23841
- endAt: string;
23842
- total: number;
23843
- financials: {
23844
- balanceStart: number;
23845
- balanceEnd: number;
23846
- netRevenue: number;
23847
- expenses: number;
23848
- netIncome: number;
23849
- transfers: number;
23850
- };
23851
- accounts: {
23852
- id: string;
23853
- name: string;
23854
- /** @enum {string} */
23855
- type: "ledger" | "bank" | "recurringFee" | "nonPosting";
23856
- category: {
23857
- id: string;
23858
- name: string;
23859
- /** @enum {string|null} */
23860
- classification?: "asset" | "liability" | "revenue" | "expense" | null;
23861
- } | null;
23862
- assignments: ("accountsPayable" | "accountsReceivable" | "cancellationRevenue" | "deferredRevenue" | "deposit_channelFee" | "deposit_coHostPayout" | "deposit_merchantFee" | "openingBalance" | "deposit_reserve" | "deposit_vat" | "expense_markup" | "expense_reimbursement" | "expense_salesTax" | "transfer_ownerPayout" | "transfer")[];
23863
- /** @description Value in cents (100 = 1€) */
23864
- centTotal: number;
23865
- }[];
23866
- };
23867
- };
23868
- };
23869
- /** @description Invalid input data */
23870
- 400: {
23871
- headers: {
23872
- [name: string]: unknown;
23873
- };
23874
- content: {
23875
- "application/json": components["schemas"]["error.BAD_REQUEST"];
23876
- };
23877
- };
23878
- /** @description Authorization not provided */
23879
- 401: {
23880
- headers: {
23881
- [name: string]: unknown;
23882
- };
23883
- content: {
23884
- "application/json": components["schemas"]["error.UNAUTHORIZED"];
23885
- };
23886
- };
23887
- /** @description Insufficient access */
23888
- 403: {
23889
- headers: {
23890
- [name: string]: unknown;
23891
- };
23892
- content: {
23893
- "application/json": components["schemas"]["error.FORBIDDEN"];
23894
- };
23895
- };
23896
- /** @description Not found */
23897
- 404: {
23898
- headers: {
23899
- [name: string]: unknown;
23900
- };
23901
- content: {
23902
- "application/json": components["schemas"]["error.NOT_FOUND"];
23903
- };
23904
- };
23905
- /** @description Internal server error */
23906
- 500: {
23907
- headers: {
23908
- [name: string]: unknown;
23909
- };
23910
- content: {
23911
- "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
23912
- };
23913
- };
23914
- };
23915
- };
23916
- getManagerStatementReportJournalEntries: {
23917
- parameters: {
23918
- query: {
23919
- startAt: string;
23920
- endAt: string;
23921
- limit?: number;
23922
- page?: number;
23923
- };
23924
- header?: {
23925
- "X-Team-Id"?: string;
23926
- };
23927
- path?: never;
23928
- cookie?: never;
23929
- };
23930
- requestBody?: never;
23931
- responses: {
23932
- /** @description Successful response */
23933
- 200: {
23934
- headers: {
23935
- [name: string]: unknown;
23936
- };
23937
- content: {
23938
- "application/json": {
23939
- data: {
23940
- id: string;
23941
- txnAt: string;
23942
- description: string;
23943
- centTotal: number;
23944
- reservationId?: string;
23945
- transactionId?: string;
23946
- ownerStatementId?: string;
23947
- currency: unknown;
23948
- entityType?: string;
23949
- status: string;
23950
- listingId?: string;
23951
- uniqueRef: string;
23952
- party?: string;
23953
- contactId?: string;
23954
- listingOwnershipPeriodId?: string;
23955
- recurringFeeId?: string;
23956
- recurringFeeListingSubscriptionId?: string;
23957
- account?: {
23958
- id: string;
23959
- name: string;
23960
- };
23961
- }[];
23962
- pagination: {
23963
- /** @default 100 */
23964
- limit: number;
23965
- /** @default 1 */
23966
- page: number;
23967
- total: number;
23968
- totalPage: number;
23969
- nextPage?: number;
23151
+ message: string;
23152
+ }[];
23970
23153
  };
23971
23154
  };
23972
23155
  };
@@ -23998,15 +23181,6 @@ export interface operations {
23998
23181
  "application/json": components["schemas"]["error.FORBIDDEN"];
23999
23182
  };
24000
23183
  };
24001
- /** @description Not found */
24002
- 404: {
24003
- headers: {
24004
- [name: string]: unknown;
24005
- };
24006
- content: {
24007
- "application/json": components["schemas"]["error.NOT_FOUND"];
24008
- };
24009
- };
24010
23184
  /** @description Internal server error */
24011
23185
  500: {
24012
23186
  headers: {
@@ -24018,11 +23192,11 @@ export interface operations {
24018
23192
  };
24019
23193
  };
24020
23194
  };
24021
- getProfitAndLossPartyReport: {
23195
+ getTrustReconciliationReport: {
24022
23196
  parameters: {
24023
- query?: {
24024
- startDate?: string;
24025
- endDate?: string;
23197
+ query: {
23198
+ endDate: string;
23199
+ listingId?: string;
24026
23200
  };
24027
23201
  header?: {
24028
23202
  "X-Team-Id"?: string;
@@ -24039,26 +23213,39 @@ export interface operations {
24039
23213
  };
24040
23214
  content: {
24041
23215
  "application/json": {
24042
- data: {
24043
- key: string;
24044
- title: string;
24045
- rows: {
23216
+ data: ({
23217
+ /** @enum {string} */
23218
+ name: "Owner Payables";
23219
+ total: number;
23220
+ /** @enum {string} */
23221
+ type: "listings";
23222
+ listings: {
23223
+ name: string;
24046
23224
  id: string;
24047
- title: string;
24048
- values: {
24049
- id: string;
24050
- title: string;
24051
- total: number;
24052
- accounts?: {
24053
- id: string;
24054
- title: string;
24055
- total: number;
24056
- }[];
24057
- }[];
24058
23225
  total: number;
24059
23226
  }[];
23227
+ } | {
23228
+ name: string;
23229
+ total: number;
23230
+ /** @enum {string} */
23231
+ type: "accounts";
23232
+ accounts: {
23233
+ id: string;
23234
+ name: string;
23235
+ total: number;
23236
+ }[];
23237
+ } | {
23238
+ /** @enum {string} */
23239
+ name: "Guest Receivables & Deposits";
24060
23240
  total: number;
24061
- }[];
23241
+ /** @enum {string} */
23242
+ type: "occupancy_status";
23243
+ occupancyStatuses: {
23244
+ /** @enum {string} */
23245
+ status: "departed" | "upcoming" | "inHouse" | "unassigned";
23246
+ total: number;
23247
+ }[];
23248
+ })[];
24062
23249
  };
24063
23250
  };
24064
23251
  };
@@ -24109,11 +23296,11 @@ export interface operations {
24109
23296
  };
24110
23297
  };
24111
23298
  };
24112
- getProfitAndLossPartyReportCsv: {
23299
+ getTrustReconciliationReportCsv: {
24113
23300
  parameters: {
24114
- query?: {
24115
- startDate?: string;
24116
- endDate?: string;
23301
+ query: {
23302
+ endDate: string;
23303
+ listingId?: string;
24117
23304
  };
24118
23305
  header?: {
24119
23306
  "X-Team-Id"?: string;
@@ -24181,11 +23368,13 @@ export interface operations {
24181
23368
  };
24182
23369
  };
24183
23370
  };
24184
- getProfitAndLossListingReport: {
23371
+ getSalesTaxLiabilityReport: {
24185
23372
  parameters: {
24186
- query?: {
24187
- startDate?: string;
24188
- endDate?: string;
23373
+ query: {
23374
+ startDate: string;
23375
+ endDate: string;
23376
+ taxableLineIds: string;
23377
+ channels?: string;
24189
23378
  };
24190
23379
  header?: {
24191
23380
  "X-Team-Id"?: string;
@@ -24203,25 +23392,31 @@ export interface operations {
24203
23392
  content: {
24204
23393
  "application/json": {
24205
23394
  data: {
24206
- key: string;
24207
- title: string;
24208
- rows: {
24209
- id: string;
24210
- title: string;
24211
- values: {
23395
+ /** Format: uuid */
23396
+ id: string;
23397
+ name: string;
23398
+ taxableIncomeTotal: number;
23399
+ collectableTaxesTotal: number;
23400
+ channels: {
23401
+ name: string;
23402
+ taxableIncomeTotal: number;
23403
+ collectableTaxesTotal: number;
23404
+ reservations: {
23405
+ /** Format: uuid */
24212
23406
  id: string;
24213
- title: string;
24214
- total: number;
24215
- accounts?: {
24216
- id: string;
24217
- title: string;
24218
- total: number;
24219
- }[];
23407
+ taxableIncome: number;
23408
+ collectableTaxes: number;
23409
+ checkIn: string;
23410
+ checkOut: string;
23411
+ bookedAt: string | null;
23412
+ guestName: string;
23413
+ confirmationCode: string;
23414
+ nights: number;
24220
23415
  }[];
24221
- total: number;
24222
23416
  }[];
24223
- total: number;
24224
23417
  }[];
23418
+ taxesIncomeTotal: number;
23419
+ collectableTaxesTotal: number;
24225
23420
  };
24226
23421
  };
24227
23422
  };
@@ -24272,11 +23467,13 @@ export interface operations {
24272
23467
  };
24273
23468
  };
24274
23469
  };
24275
- getProfitAndLossListingReportCsv: {
23470
+ getSalesTaxLiabilityReportCsv: {
24276
23471
  parameters: {
24277
- query?: {
24278
- startDate?: string;
24279
- endDate?: string;
23472
+ query: {
23473
+ startDate: string;
23474
+ endDate: string;
23475
+ taxableLineIds: string;
23476
+ channels?: string;
24280
23477
  };
24281
23478
  header?: {
24282
23479
  "X-Team-Id"?: string;
@@ -24344,11 +23541,12 @@ export interface operations {
24344
23541
  };
24345
23542
  };
24346
23543
  };
24347
- getProfitAndLossMonthReport: {
23544
+ getGuestBalancesReport: {
24348
23545
  parameters: {
24349
- query?: {
24350
- startDate?: string;
24351
- endDate?: string;
23546
+ query: {
23547
+ date: string;
23548
+ occupancyStatus: "departed" | "inHouse" | "upcoming";
23549
+ channels?: string;
24352
23550
  };
24353
23551
  header?: {
24354
23552
  "X-Team-Id"?: string;
@@ -24366,24 +23564,28 @@ export interface operations {
24366
23564
  content: {
24367
23565
  "application/json": {
24368
23566
  data: {
24369
- key: string;
24370
- title: string;
24371
- rows: {
23567
+ /** @enum {string} */
23568
+ status: "booked" | "cancelled";
23569
+ total: number;
23570
+ listings: {
23571
+ /** Format: uuid */
24372
23572
  id: string;
24373
- title: string;
24374
- values: {
23573
+ name: string;
23574
+ total: number;
23575
+ reservations: {
23576
+ /** Format: uuid */
24375
23577
  id: string;
24376
- title: string;
23578
+ checkIn: string;
23579
+ checkOut: string;
23580
+ bookedAt: string | null;
23581
+ cancelledAt: string | null;
23582
+ bookingPlatform: string;
23583
+ guestName: string;
23584
+ confirmationCode: string;
23585
+ nights: number;
24377
23586
  total: number;
24378
- accounts?: {
24379
- id: string;
24380
- title: string;
24381
- total: number;
24382
- }[];
24383
23587
  }[];
24384
- total: number;
24385
23588
  }[];
24386
- total: number;
24387
23589
  }[];
24388
23590
  };
24389
23591
  };
@@ -24435,11 +23637,11 @@ export interface operations {
24435
23637
  };
24436
23638
  };
24437
23639
  };
24438
- getProfitAndLossMonthReportCsv: {
23640
+ getGuestBalancesReportAggregated: {
24439
23641
  parameters: {
24440
- query?: {
24441
- startDate?: string;
24442
- endDate?: string;
23642
+ query: {
23643
+ date: string;
23644
+ channels?: string;
24443
23645
  };
24444
23646
  header?: {
24445
23647
  "X-Team-Id"?: string;
@@ -24456,7 +23658,9 @@ export interface operations {
24456
23658
  };
24457
23659
  content: {
24458
23660
  "application/json": {
24459
- url: string;
23661
+ departed: number;
23662
+ inHouse: number;
23663
+ upcoming: number;
24460
23664
  };
24461
23665
  };
24462
23666
  };
@@ -24507,11 +23711,12 @@ export interface operations {
24507
23711
  };
24508
23712
  };
24509
23713
  };
24510
- getProfitAndLossQuarterReport: {
23714
+ getGuestBalancesReportCsv: {
24511
23715
  parameters: {
24512
- query?: {
24513
- startDate?: string;
24514
- endDate?: string;
23716
+ query: {
23717
+ date: string;
23718
+ occupancyStatus: "departed" | "inHouse" | "upcoming";
23719
+ channels?: string;
24515
23720
  };
24516
23721
  header?: {
24517
23722
  "X-Team-Id"?: string;
@@ -24528,26 +23733,7 @@ export interface operations {
24528
23733
  };
24529
23734
  content: {
24530
23735
  "application/json": {
24531
- data: {
24532
- key: string;
24533
- title: string;
24534
- rows: {
24535
- id: string;
24536
- title: string;
24537
- values: {
24538
- id: string;
24539
- title: string;
24540
- total: number;
24541
- accounts?: {
24542
- id: string;
24543
- title: string;
24544
- total: number;
24545
- }[];
24546
- }[];
24547
- total: number;
24548
- }[];
24549
- total: number;
24550
- }[];
23736
+ url: string;
24551
23737
  };
24552
23738
  };
24553
23739
  };
@@ -24598,11 +23784,11 @@ export interface operations {
24598
23784
  };
24599
23785
  };
24600
23786
  };
24601
- getProfitAndLossQuarterReportCsv: {
23787
+ getManagerStatementsReport: {
24602
23788
  parameters: {
24603
- query?: {
24604
- startDate?: string;
24605
- endDate?: string;
23789
+ query: {
23790
+ /** @description Year in format YYYY */
23791
+ year: number;
24606
23792
  };
24607
23793
  header?: {
24608
23794
  "X-Team-Id"?: string;
@@ -24619,7 +23805,20 @@ export interface operations {
24619
23805
  };
24620
23806
  content: {
24621
23807
  "application/json": {
24622
- url: string;
23808
+ data: {
23809
+ currency: unknown;
23810
+ startAt: string;
23811
+ endAt: string;
23812
+ total: number;
23813
+ financials: {
23814
+ balanceStart: number;
23815
+ balanceEnd: number;
23816
+ netRevenue: number;
23817
+ expenses: number;
23818
+ netIncome: number;
23819
+ transfers: number;
23820
+ };
23821
+ }[];
24623
23822
  };
24624
23823
  };
24625
23824
  };
@@ -24670,11 +23869,11 @@ export interface operations {
24670
23869
  };
24671
23870
  };
24672
23871
  };
24673
- getProfitAndLossYearReport: {
23872
+ getManagerStatementReportDetail: {
24674
23873
  parameters: {
24675
- query?: {
24676
- startDate?: string;
24677
- endDate?: string;
23874
+ query: {
23875
+ startAt: string;
23876
+ endAt: string;
24678
23877
  };
24679
23878
  header?: {
24680
23879
  "X-Team-Id"?: string;
@@ -24691,25 +23890,32 @@ export interface operations {
24691
23890
  };
24692
23891
  content: {
24693
23892
  "application/json": {
24694
- data: {
24695
- key: string;
24696
- title: string;
24697
- rows: {
23893
+ currency: unknown;
23894
+ startAt: string;
23895
+ endAt: string;
23896
+ total: number;
23897
+ financials: {
23898
+ balanceStart: number;
23899
+ balanceEnd: number;
23900
+ netRevenue: number;
23901
+ expenses: number;
23902
+ netIncome: number;
23903
+ transfers: number;
23904
+ };
23905
+ accounts: {
23906
+ id: string;
23907
+ name: string;
23908
+ /** @enum {string} */
23909
+ type: "ledger" | "bank" | "recurringFee" | "nonPosting";
23910
+ category: {
24698
23911
  id: string;
24699
- title: string;
24700
- values: {
24701
- id: string;
24702
- title: string;
24703
- total: number;
24704
- accounts?: {
24705
- id: string;
24706
- title: string;
24707
- total: number;
24708
- }[];
24709
- }[];
24710
- total: number;
24711
- }[];
24712
- total: number;
23912
+ name: string;
23913
+ /** @enum {string|null} */
23914
+ classification?: "asset" | "liability" | "revenue" | "expense" | null;
23915
+ } | null;
23916
+ assignments: ("accountsPayable" | "accountsReceivable" | "cancellationRevenue" | "deferredRevenue" | "deposit_channelFee" | "deposit_coHostPayout" | "deposit_merchantFee" | "openingBalance" | "deposit_reserve" | "deposit_vat" | "expense_markup" | "expense_reimbursement" | "expense_salesTax" | "transfer_ownerPayout" | "transfer")[];
23917
+ /** @description Value in cents (100 = 1€) */
23918
+ centTotal: number;
24713
23919
  }[];
24714
23920
  };
24715
23921
  };
@@ -24761,11 +23967,14 @@ export interface operations {
24761
23967
  };
24762
23968
  };
24763
23969
  };
24764
- getProfitAndLossYearReportCsv: {
23970
+ getManagerStatementReportJournalEntries: {
24765
23971
  parameters: {
24766
- query?: {
24767
- startDate?: string;
24768
- endDate?: string;
23972
+ query: {
23973
+ startAt: string;
23974
+ endAt: string;
23975
+ limit?: number;
23976
+ offset?: number;
23977
+ page?: number;
24769
23978
  };
24770
23979
  header?: {
24771
23980
  "X-Team-Id"?: string;
@@ -24782,7 +23991,38 @@ export interface operations {
24782
23991
  };
24783
23992
  content: {
24784
23993
  "application/json": {
24785
- url: string;
23994
+ data: {
23995
+ id: string;
23996
+ txnAt: string;
23997
+ description: string;
23998
+ centTotal: number;
23999
+ reservationId?: string;
24000
+ transactionId?: string;
24001
+ ownerStatementId?: string;
24002
+ currency: unknown;
24003
+ entityType?: string;
24004
+ status: string;
24005
+ listingId?: string;
24006
+ uniqueRef: string;
24007
+ party?: string;
24008
+ contactId?: string;
24009
+ listingOwnershipPeriodId?: string;
24010
+ recurringFeeId?: string;
24011
+ recurringFeeListingSubscriptionId?: string;
24012
+ account?: {
24013
+ id: string;
24014
+ name: string;
24015
+ };
24016
+ }[];
24017
+ pagination: {
24018
+ /** @default 100 */
24019
+ limit: number;
24020
+ /** @default 1 */
24021
+ page: number;
24022
+ total: number;
24023
+ totalPage: number;
24024
+ nextPage?: number;
24025
+ };
24786
24026
  };
24787
24027
  };
24788
24028
  };