@munchi_oy/core 1.3.3 → 1.3.5

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/generated/api.ts CHANGED
@@ -85,7 +85,9 @@ export const EntityTypeEnum = {
85
85
  Shift: 'shift',
86
86
  Employee: 'employee',
87
87
  Config: 'config',
88
- Business: 'business'
88
+ Business: 'business',
89
+ Suboption: 'suboption',
90
+ Site: 'site'
89
91
  } as const;
90
92
 
91
93
  export type EntityTypeEnum = typeof EntityTypeEnum[keyof typeof EntityTypeEnum];
@@ -2749,31 +2751,6 @@ export interface CreateEmployeeAssignmentDto {
2749
2751
  */
2750
2752
  'roleId': string;
2751
2753
  }
2752
- /**
2753
- *
2754
- * @export
2755
- * @interface CreateEmployeeDto
2756
- */
2757
- export interface CreateEmployeeDto {
2758
- /**
2759
- * The employee\'s full name
2760
- * @type {string}
2761
- * @memberof CreateEmployeeDto
2762
- */
2763
- 'name': string;
2764
- /**
2765
- * The ID of the merchant this employee belongs to
2766
- * @type {string}
2767
- * @memberof CreateEmployeeDto
2768
- */
2769
- 'merchantId': string;
2770
- /**
2771
- * The 4-digit plain-text PIN for the employee
2772
- * @type {string}
2773
- * @memberof CreateEmployeeDto
2774
- */
2775
- 'pin': string;
2776
- }
2777
2754
  /**
2778
2755
  *
2779
2756
  * @export
@@ -3518,10 +3495,10 @@ export interface DeliveryDto {
3518
3495
  'selfDelivery': boolean | null;
3519
3496
  /**
3520
3497
  * Delivery note
3521
- * @type {string}
3498
+ * @type {object}
3522
3499
  * @memberof DeliveryDto
3523
3500
  */
3524
- 'note': string | null;
3501
+ 'note': object | null;
3525
3502
  /**
3526
3503
  *
3527
3504
  * @type {DeliveryStatus}
@@ -3828,45 +3805,6 @@ export interface EmployeeAssignmentResponseDto {
3828
3805
  */
3829
3806
  'roleId': string;
3830
3807
  }
3831
- /**
3832
- *
3833
- * @export
3834
- * @interface EmployeeResponseDto
3835
- */
3836
- export interface EmployeeResponseDto {
3837
- /**
3838
- *
3839
- * @type {string}
3840
- * @memberof EmployeeResponseDto
3841
- */
3842
- 'id': string;
3843
- /**
3844
- *
3845
- * @type {string}
3846
- * @memberof EmployeeResponseDto
3847
- */
3848
- 'name': string;
3849
- /**
3850
- *
3851
- * @type {string}
3852
- * @memberof EmployeeResponseDto
3853
- */
3854
- 'merchantId': string;
3855
- /**
3856
- *
3857
- * @type {Status}
3858
- * @memberof EmployeeResponseDto
3859
- */
3860
- 'status': Status;
3861
- /**
3862
- * The employee\'s plain-text, decrypted PIN
3863
- * @type {string}
3864
- * @memberof EmployeeResponseDto
3865
- */
3866
- 'pin': string;
3867
- }
3868
-
3869
-
3870
3808
  /**
3871
3809
  *
3872
3810
  * @export
@@ -4050,257 +3988,6 @@ export interface EmployeeShiftResponseDtoEmployee {
4050
3988
  }
4051
3989
 
4052
3990
 
4053
- /**
4054
- *
4055
- * @export
4056
- * @interface EndOfDayReportDto
4057
- */
4058
- export interface EndOfDayReportDto {
4059
- /**
4060
- * Report generated at
4061
- * @type {string}
4062
- * @memberof EndOfDayReportDto
4063
- */
4064
- 'reportGeneratedAt': string;
4065
- /**
4066
- * Report date start
4067
- * @type {string}
4068
- * @memberof EndOfDayReportDto
4069
- */
4070
- 'reportDateStart': string;
4071
- /**
4072
- * Report date end
4073
- * @type {string}
4074
- * @memberof EndOfDayReportDto
4075
- */
4076
- 'reportDateEnd': string;
4077
- /**
4078
- * Business ID
4079
- * @type {number}
4080
- * @memberof EndOfDayReportDto
4081
- */
4082
- 'businessId': number;
4083
- /**
4084
- * Payment reconciliation
4085
- * @type {Array<PaymentDetailsDto>}
4086
- * @memberof EndOfDayReportDto
4087
- */
4088
- 'paymentMethodDetails': Array<PaymentDetailsDto>;
4089
- /**
4090
- *
4091
- * @type {EndOfDayReportDtoSalesSummary}
4092
- * @memberof EndOfDayReportDto
4093
- */
4094
- 'salesSummary': EndOfDayReportDtoSalesSummary;
4095
- /**
4096
- *
4097
- * @type {EndOfDayReportDtoTaxBreakdown}
4098
- * @memberof EndOfDayReportDto
4099
- */
4100
- 'taxBreakdown': EndOfDayReportDtoTaxBreakdown;
4101
- /**
4102
- * Item breakdown
4103
- * @type {Array<ItemBreakdownDto>}
4104
- * @memberof EndOfDayReportDto
4105
- */
4106
- 'itemBreakdown': Array<ItemBreakdownDto>;
4107
- }
4108
- /**
4109
- * Sales summary
4110
- * @export
4111
- * @interface EndOfDayReportDtoSalesSummary
4112
- */
4113
- export interface EndOfDayReportDtoSalesSummary {
4114
- /**
4115
- * Total number of orders
4116
- * @type {number}
4117
- * @memberof EndOfDayReportDtoSalesSummary
4118
- */
4119
- 'totalOrders': number;
4120
- /**
4121
- * Total sales amount
4122
- * @type {number}
4123
- * @memberof EndOfDayReportDtoSalesSummary
4124
- */
4125
- 'totalSales': number;
4126
- /**
4127
- * Net sales amount after adjustments
4128
- * @type {number}
4129
- * @memberof EndOfDayReportDtoSalesSummary
4130
- */
4131
- 'netSales': number;
4132
- /**
4133
- * Total amount actually paid
4134
- * @type {number}
4135
- * @memberof EndOfDayReportDtoSalesSummary
4136
- */
4137
- 'totalPaid': number;
4138
- /**
4139
- * Total difference
4140
- * @type {number}
4141
- * @memberof EndOfDayReportDtoSalesSummary
4142
- */
4143
- 'totalDifference': number;
4144
- /**
4145
- * Total transactions
4146
- * @type {number}
4147
- * @memberof EndOfDayReportDtoSalesSummary
4148
- */
4149
- 'totalTransactions': number;
4150
- /**
4151
- * Number of rejected orders
4152
- * @type {number}
4153
- * @memberof EndOfDayReportDtoSalesSummary
4154
- */
4155
- 'rejectedOrders': number;
4156
- /**
4157
- * Total rejected sales amount
4158
- * @type {number}
4159
- * @memberof EndOfDayReportDtoSalesSummary
4160
- */
4161
- 'rejectedSales': number;
4162
- /**
4163
- * Average sales per order
4164
- * @type {number}
4165
- * @memberof EndOfDayReportDtoSalesSummary
4166
- */
4167
- 'averageSales': number;
4168
- /**
4169
- * Total number of items sold
4170
- * @type {number}
4171
- * @memberof EndOfDayReportDtoSalesSummary
4172
- */
4173
- 'totalItemsCount': number;
4174
- /**
4175
- * Total refund amount
4176
- * @type {number}
4177
- * @memberof EndOfDayReportDtoSalesSummary
4178
- */
4179
- 'totalRefunds': number;
4180
- /**
4181
- * Total discount amount given
4182
- * @type {number}
4183
- * @memberof EndOfDayReportDtoSalesSummary
4184
- */
4185
- 'totalDiscounts': number;
4186
- /**
4187
- * Total voucher forfeited amount in cents
4188
- * @type {number}
4189
- * @memberof EndOfDayReportDtoSalesSummary
4190
- */
4191
- 'totalVoucherForfeited': number;
4192
- }
4193
- /**
4194
- * Tax breakdown
4195
- * @export
4196
- * @interface EndOfDayReportDtoTaxBreakdown
4197
- */
4198
- export interface EndOfDayReportDtoTaxBreakdown {
4199
- /**
4200
- * Standard tax amount
4201
- * @type {number}
4202
- * @memberof EndOfDayReportDtoTaxBreakdown
4203
- */
4204
- 'standardTaxAmount': number;
4205
- /**
4206
- * Premium tax amount
4207
- * @type {number}
4208
- * @memberof EndOfDayReportDtoTaxBreakdown
4209
- */
4210
- 'premiumTaxAmount': number;
4211
- /**
4212
- * Total tax amount
4213
- * @type {number}
4214
- * @memberof EndOfDayReportDtoTaxBreakdown
4215
- */
4216
- 'totalTaxAmount': number;
4217
- /**
4218
- * Standard tax rate %
4219
- * @type {number}
4220
- * @memberof EndOfDayReportDtoTaxBreakdown
4221
- */
4222
- 'standardTaxRate': number;
4223
- /**
4224
- * Premium tax rate %
4225
- * @type {number}
4226
- * @memberof EndOfDayReportDtoTaxBreakdown
4227
- */
4228
- 'premiumTaxRate': number;
4229
- }
4230
- /**
4231
- *
4232
- * @export
4233
- * @interface EndOfDayReportDtoV3
4234
- */
4235
- export interface EndOfDayReportDtoV3 {
4236
- /**
4237
- * Report generated at
4238
- * @type {string}
4239
- * @memberof EndOfDayReportDtoV3
4240
- */
4241
- 'reportGeneratedAt': string;
4242
- /**
4243
- * Report date start
4244
- * @type {string}
4245
- * @memberof EndOfDayReportDtoV3
4246
- */
4247
- 'reportDateStart': string;
4248
- /**
4249
- * Report date end
4250
- * @type {string}
4251
- * @memberof EndOfDayReportDtoV3
4252
- */
4253
- 'reportDateEnd': string;
4254
- /**
4255
- * Business ID
4256
- * @type {number}
4257
- * @memberof EndOfDayReportDtoV3
4258
- */
4259
- 'businessId': number;
4260
- /**
4261
- * Payment reconciliation
4262
- * @type {Array<PaymentDetailsDto>}
4263
- * @memberof EndOfDayReportDtoV3
4264
- */
4265
- 'paymentMethodDetails': Array<PaymentDetailsDto>;
4266
- /**
4267
- *
4268
- * @type {EndOfDayReportDtoSalesSummary}
4269
- * @memberof EndOfDayReportDtoV3
4270
- */
4271
- 'salesSummary': EndOfDayReportDtoSalesSummary;
4272
- /**
4273
- *
4274
- * @type {EndOfDayReportDtoV3TaxBreakdown}
4275
- * @memberof EndOfDayReportDtoV3
4276
- */
4277
- 'taxBreakdown': EndOfDayReportDtoV3TaxBreakdown;
4278
- /**
4279
- * Item breakdown
4280
- * @type {Array<ItemBreakdownDto>}
4281
- * @memberof EndOfDayReportDtoV3
4282
- */
4283
- 'itemBreakdown': Array<ItemBreakdownDto>;
4284
- }
4285
- /**
4286
- * Tax breakdown
4287
- * @export
4288
- * @interface EndOfDayReportDtoV3TaxBreakdown
4289
- */
4290
- export interface EndOfDayReportDtoV3TaxBreakdown {
4291
- /**
4292
- * Tax breakdown by rate
4293
- * @type {Array<TaxRateItem>}
4294
- * @memberof EndOfDayReportDtoV3TaxBreakdown
4295
- */
4296
- 'taxRates': Array<TaxRateItem>;
4297
- /**
4298
- * Total tax amount
4299
- * @type {number}
4300
- * @memberof EndOfDayReportDtoV3TaxBreakdown
4301
- */
4302
- 'totalTaxAmount': number;
4303
- }
4304
3991
  /**
4305
3992
  *
4306
3993
  * @export
@@ -4345,10 +4032,10 @@ export interface EndOfDayReportDtoV4 {
4345
4032
  'salesSummary': EndOfDayReportDtoV4SalesSummary;
4346
4033
  /**
4347
4034
  *
4348
- * @type {EndOfDayReportDtoV3TaxBreakdown}
4035
+ * @type {EndOfDayReportDtoV4TaxBreakdown}
4349
4036
  * @memberof EndOfDayReportDtoV4
4350
4037
  */
4351
- 'taxBreakdown': EndOfDayReportDtoV3TaxBreakdown;
4038
+ 'taxBreakdown': EndOfDayReportDtoV4TaxBreakdown;
4352
4039
  /**
4353
4040
  * Item breakdown
4354
4041
  * @type {Array<ItemBreakdownDto>}
@@ -4447,6 +4134,25 @@ export interface EndOfDayReportDtoV4SalesSummary {
4447
4134
  */
4448
4135
  'totalPaymentAmount': number;
4449
4136
  }
4137
+ /**
4138
+ * Tax breakdown
4139
+ * @export
4140
+ * @interface EndOfDayReportDtoV4TaxBreakdown
4141
+ */
4142
+ export interface EndOfDayReportDtoV4TaxBreakdown {
4143
+ /**
4144
+ * Tax breakdown by rate
4145
+ * @type {Array<TaxRateItem>}
4146
+ * @memberof EndOfDayReportDtoV4TaxBreakdown
4147
+ */
4148
+ 'taxRates': Array<TaxRateItem>;
4149
+ /**
4150
+ * Total tax amount
4151
+ * @type {number}
4152
+ * @memberof EndOfDayReportDtoV4TaxBreakdown
4153
+ */
4154
+ 'totalTaxAmount': number;
4155
+ }
4450
4156
  /**
4451
4157
  *
4452
4158
  * @export
@@ -4463,7 +4169,9 @@ export const EntityType = {
4463
4169
  Shift: 'shift',
4464
4170
  Employee: 'employee',
4465
4171
  Config: 'config',
4466
- Business: 'business'
4172
+ Business: 'business',
4173
+ Suboption: 'suboption',
4174
+ Site: 'site'
4467
4175
  } as const;
4468
4176
 
4469
4177
  export type EntityType = typeof EntityType[keyof typeof EntityType];
@@ -7690,10 +7398,10 @@ export interface OrderHistoryPosResponseDtoV2Summary {
7690
7398
  export interface OrderHistoryResponseDto {
7691
7399
  /**
7692
7400
  * Order details
7693
- * @type {Array<OrderResponseDto>}
7401
+ * @type {Array<UnifiedOrderResponseDto>}
7694
7402
  * @memberof OrderHistoryResponseDto
7695
7403
  */
7696
- 'orders': Array<OrderResponseDto>;
7404
+ 'orders': Array<UnifiedOrderResponseDto>;
7697
7405
  /**
7698
7406
  *
7699
7407
  * @type {OrderHistoryResponseDtoSummary}
@@ -7766,50 +7474,7 @@ export interface OrderHistoryResponseDtoSummary {
7766
7474
  /**
7767
7475
  *
7768
7476
  * @export
7769
- * @interface OrderPaginationDto
7770
- */
7771
- export interface OrderPaginationDto {
7772
- /**
7773
- * Page number (starts from 1)
7774
- * @type {number}
7775
- * @memberof OrderPaginationDto
7776
- */
7777
- 'page'?: number;
7778
- /**
7779
- * Number of items per page (max 100)
7780
- * @type {number}
7781
- * @memberof OrderPaginationDto
7782
- */
7783
- 'limit'?: number;
7784
- /**
7785
- * Total number of items
7786
- * @type {number}
7787
- * @memberof OrderPaginationDto
7788
- */
7789
- 'total': number;
7790
- /**
7791
- * Total number of pages
7792
- * @type {number}
7793
- * @memberof OrderPaginationDto
7794
- */
7795
- 'totalPages': number;
7796
- /**
7797
- * Whether there is a next page
7798
- * @type {boolean}
7799
- * @memberof OrderPaginationDto
7800
- */
7801
- 'hasNext': boolean;
7802
- /**
7803
- * Whether there is a previous page
7804
- * @type {boolean}
7805
- * @memberof OrderPaginationDto
7806
- */
7807
- 'hasPrevious': boolean;
7808
- }
7809
- /**
7810
- *
7811
- * @export
7812
- * @enum {string}
7477
+ * @enum {string}
7813
7478
  */
7814
7479
 
7815
7480
  export const OrderRefundStatus = {
@@ -8140,10 +7805,10 @@ export interface OrderResponseDtoDelivery {
8140
7805
  'selfDelivery': boolean | null;
8141
7806
  /**
8142
7807
  * Delivery note
8143
- * @type {string}
7808
+ * @type {object}
8144
7809
  * @memberof OrderResponseDtoDelivery
8145
7810
  */
8146
- 'note': string | null;
7811
+ 'note': object | null;
8147
7812
  /**
8148
7813
  *
8149
7814
  * @type {DeliveryStatus}
@@ -8217,6 +7882,20 @@ export interface OrderResponseDtoPriceSummary {
8217
7882
  */
8218
7883
  'totalNet': number;
8219
7884
  }
7885
+ /**
7886
+ *
7887
+ * @export
7888
+ * @enum {string}
7889
+ */
7890
+
7891
+ export const OrderSource = {
7892
+ Platform: 'PLATFORM',
7893
+ Pos: 'POS'
7894
+ } as const;
7895
+
7896
+ export type OrderSource = typeof OrderSource[keyof typeof OrderSource];
7897
+
7898
+
8220
7899
  /**
8221
7900
  *
8222
7901
  * @export
@@ -8889,87 +8568,6 @@ export interface OrderingItemExtraSubOptionDto {
8889
8568
  */
8890
8569
  'enabled': boolean;
8891
8570
  }
8892
- /**
8893
- *
8894
- * @export
8895
- * @interface PaginatedEmployeesResponseDto
8896
- */
8897
- export interface PaginatedEmployeesResponseDto {
8898
- /**
8899
- *
8900
- * @type {Array<EmployeeResponseDto>}
8901
- * @memberof PaginatedEmployeesResponseDto
8902
- */
8903
- 'data': Array<EmployeeResponseDto>;
8904
- /**
8905
- *
8906
- * @type {PaginationMetaDto}
8907
- * @memberof PaginatedEmployeesResponseDto
8908
- */
8909
- 'pagination': PaginationMetaDto;
8910
- }
8911
- /**
8912
- *
8913
- * @export
8914
- * @interface PaginatedOrderResponseDto
8915
- */
8916
- export interface PaginatedOrderResponseDto {
8917
- /**
8918
- * Order details
8919
- * @type {Array<OrderResponseDto>}
8920
- * @memberof PaginatedOrderResponseDto
8921
- */
8922
- 'orders': Array<OrderResponseDto>;
8923
- /**
8924
- *
8925
- * @type {PaginatedOrderResponseDtoPagination}
8926
- * @memberof PaginatedOrderResponseDto
8927
- */
8928
- 'pagination': PaginatedOrderResponseDtoPagination;
8929
- }
8930
- /**
8931
- * Pagination details
8932
- * @export
8933
- * @interface PaginatedOrderResponseDtoPagination
8934
- */
8935
- export interface PaginatedOrderResponseDtoPagination {
8936
- /**
8937
- * Page number (starts from 1)
8938
- * @type {number}
8939
- * @memberof PaginatedOrderResponseDtoPagination
8940
- */
8941
- 'page'?: number;
8942
- /**
8943
- * Number of items per page (max 100)
8944
- * @type {number}
8945
- * @memberof PaginatedOrderResponseDtoPagination
8946
- */
8947
- 'limit'?: number;
8948
- /**
8949
- * Total number of items
8950
- * @type {number}
8951
- * @memberof PaginatedOrderResponseDtoPagination
8952
- */
8953
- 'total': number;
8954
- /**
8955
- * Total number of pages
8956
- * @type {number}
8957
- * @memberof PaginatedOrderResponseDtoPagination
8958
- */
8959
- 'totalPages': number;
8960
- /**
8961
- * Whether there is a next page
8962
- * @type {boolean}
8963
- * @memberof PaginatedOrderResponseDtoPagination
8964
- */
8965
- 'hasNext': boolean;
8966
- /**
8967
- * Whether there is a previous page
8968
- * @type {boolean}
8969
- * @memberof PaginatedOrderResponseDtoPagination
8970
- */
8971
- 'hasPrevious': boolean;
8972
- }
8973
8571
  /**
8974
8572
  *
8975
8573
  * @export
@@ -9014,37 +8612,6 @@ export interface PaginationDto {
9014
8612
  */
9015
8613
  'totalPages': number;
9016
8614
  }
9017
- /**
9018
- *
9019
- * @export
9020
- * @interface PaginationMetaDto
9021
- */
9022
- export interface PaginationMetaDto {
9023
- /**
9024
- *
9025
- * @type {number}
9026
- * @memberof PaginationMetaDto
9027
- */
9028
- 'total': number;
9029
- /**
9030
- *
9031
- * @type {number}
9032
- * @memberof PaginationMetaDto
9033
- */
9034
- 'page': number;
9035
- /**
9036
- *
9037
- * @type {number}
9038
- * @memberof PaginationMetaDto
9039
- */
9040
- 'limit': number;
9041
- /**
9042
- *
9043
- * @type {number}
9044
- * @memberof PaginationMetaDto
9045
- */
9046
- 'totalPages': number;
9047
- }
9048
8615
  /**
9049
8616
  *
9050
8617
  * @export
@@ -10432,6 +9999,12 @@ export interface PosBusinessDto {
10432
9999
  * @memberof PosBusinessDto
10433
10000
  */
10434
10001
  'name': string;
10002
+ /**
10003
+ *
10004
+ * @type {string}
10005
+ * @memberof PosBusinessDto
10006
+ */
10007
+ 'logo': string | null;
10435
10008
  /**
10436
10009
  *
10437
10010
  * @type {string}
@@ -11741,7 +11314,8 @@ export const PosPermission = {
11741
11314
  Shift: 'Shift::*',
11742
11315
  ShiftForceClockOut: 'Shift::ForceClockOut',
11743
11316
  Settings: 'Settings::*',
11744
- SettingsEditProfile: 'Settings::EditProfile'
11317
+ SettingsEditProfile: 'Settings::EditProfile',
11318
+ OpenOrdersDelete: 'OpenOrders::Delete'
11745
11319
  } as const;
11746
11320
 
11747
11321
  export type PosPermission = typeof PosPermission[keyof typeof PosPermission];
@@ -13641,91 +13215,6 @@ export interface RoleResponseDto {
13641
13215
  */
13642
13216
  'permissionRules': Array<PermissionRuleDto>;
13643
13217
  }
13644
- /**
13645
- *
13646
- * @export
13647
- * @interface SalesSummaryDto
13648
- */
13649
- export interface SalesSummaryDto {
13650
- /**
13651
- * Total number of orders
13652
- * @type {number}
13653
- * @memberof SalesSummaryDto
13654
- */
13655
- 'totalOrders': number;
13656
- /**
13657
- * Total sales amount
13658
- * @type {number}
13659
- * @memberof SalesSummaryDto
13660
- */
13661
- 'totalSales': number;
13662
- /**
13663
- * Net sales amount after adjustments
13664
- * @type {number}
13665
- * @memberof SalesSummaryDto
13666
- */
13667
- 'netSales': number;
13668
- /**
13669
- * Total amount actually paid
13670
- * @type {number}
13671
- * @memberof SalesSummaryDto
13672
- */
13673
- 'totalPaid': number;
13674
- /**
13675
- * Total difference
13676
- * @type {number}
13677
- * @memberof SalesSummaryDto
13678
- */
13679
- 'totalDifference': number;
13680
- /**
13681
- * Total transactions
13682
- * @type {number}
13683
- * @memberof SalesSummaryDto
13684
- */
13685
- 'totalTransactions': number;
13686
- /**
13687
- * Number of rejected orders
13688
- * @type {number}
13689
- * @memberof SalesSummaryDto
13690
- */
13691
- 'rejectedOrders': number;
13692
- /**
13693
- * Total rejected sales amount
13694
- * @type {number}
13695
- * @memberof SalesSummaryDto
13696
- */
13697
- 'rejectedSales': number;
13698
- /**
13699
- * Average sales per order
13700
- * @type {number}
13701
- * @memberof SalesSummaryDto
13702
- */
13703
- 'averageSales': number;
13704
- /**
13705
- * Total number of items sold
13706
- * @type {number}
13707
- * @memberof SalesSummaryDto
13708
- */
13709
- 'totalItemsCount': number;
13710
- /**
13711
- * Total refund amount
13712
- * @type {number}
13713
- * @memberof SalesSummaryDto
13714
- */
13715
- 'totalRefunds': number;
13716
- /**
13717
- * Total discount amount given
13718
- * @type {number}
13719
- * @memberof SalesSummaryDto
13720
- */
13721
- 'totalDiscounts': number;
13722
- /**
13723
- * Total voucher forfeited amount in cents
13724
- * @type {number}
13725
- * @memberof SalesSummaryDto
13726
- */
13727
- 'totalVoucherForfeited': number;
13728
- }
13729
13218
  /**
13730
13219
  *
13731
13220
  * @export
@@ -13858,277 +13347,69 @@ export interface SearchUserInfoResponseDto {
13858
13347
  /**
13859
13348
  *
13860
13349
  * @export
13861
- * @interface SendPosOrderTicketDto
13350
+ * @interface SendReportEmailDto
13862
13351
  */
13863
- export interface SendPosOrderTicketDto {
13352
+ export interface SendReportEmailDto {
13864
13353
  /**
13865
- *
13866
- * @type {SendPosOrderTicketDtoData}
13867
- * @memberof SendPosOrderTicketDto
13354
+ * Optional custom subject
13355
+ * @type {string}
13356
+ * @memberof SendReportEmailDto
13868
13357
  */
13869
- 'data': SendPosOrderTicketDtoData;
13358
+ 'subject'?: string;
13870
13359
  /**
13871
- * Business ID
13360
+ * Additional message for email body
13872
13361
  * @type {string}
13873
- * @memberof SendPosOrderTicketDto
13362
+ * @memberof SendReportEmailDto
13874
13363
  */
13875
- 'businessId': string;
13364
+ 'message'?: string;
13876
13365
  /**
13877
- * Send notification to the business
13878
- * @type {boolean}
13879
- * @memberof SendPosOrderTicketDto
13366
+ * Email address to send the report to
13367
+ * @type {string}
13368
+ * @memberof SendReportEmailDto
13880
13369
  */
13881
- 'sendNotification'?: boolean;
13370
+ 'email'?: string;
13882
13371
  }
13883
13372
  /**
13884
- * Order data
13373
+ *
13885
13374
  * @export
13886
- * @interface SendPosOrderTicketDtoData
13375
+ * @interface ShareOrderingBusinessIdPayload
13887
13376
  */
13888
- export interface SendPosOrderTicketDtoData {
13889
- /**
13890
- *
13891
- * @type {string}
13892
- * @memberof SendPosOrderTicketDtoData
13893
- */
13894
- 'id': string;
13895
- /**
13896
- *
13897
- * @type {string}
13898
- * @memberof SendPosOrderTicketDtoData
13899
- */
13900
- 'businessId': string;
13901
- /**
13902
- *
13903
- * @type {CurrencyCode}
13904
- * @memberof SendPosOrderTicketDtoData
13905
- */
13906
- 'currency': CurrencyCode;
13907
- /**
13908
- *
13909
- * @type {PosBusinessDto}
13910
- * @memberof SendPosOrderTicketDtoData
13911
- */
13912
- 'business': PosBusinessDto;
13913
- /**
13914
- *
13915
- * @type {string}
13916
- * @memberof SendPosOrderTicketDtoData
13917
- */
13918
- 'createdAt': string;
13377
+ export interface ShareOrderingBusinessIdPayload {
13919
13378
  /**
13920
- *
13921
- * @type {OrderStatusEnum}
13922
- * @memberof SendPosOrderTicketDtoData
13379
+ * The ordering business ID for this transaction.
13380
+ * @type {number}
13381
+ * @memberof ShareOrderingBusinessIdPayload
13923
13382
  */
13924
- 'status': OrderStatusEnum;
13383
+ 'orderingBusinessId': number;
13384
+ }
13385
+ /**
13386
+ *
13387
+ * @export
13388
+ * @interface ShiftEmployeeDto
13389
+ */
13390
+ export interface ShiftEmployeeDto {
13925
13391
  /**
13926
13392
  *
13927
13393
  * @type {string}
13928
- * @memberof SendPosOrderTicketDtoData
13394
+ * @memberof ShiftEmployeeDto
13929
13395
  */
13930
- 'updatedAt': string;
13396
+ 'id': string;
13931
13397
  /**
13932
13398
  *
13933
13399
  * @type {string}
13934
- * @memberof SendPosOrderTicketDtoData
13400
+ * @memberof ShiftEmployeeDto
13935
13401
  */
13936
- 'orderNumber': string;
13402
+ 'name': string;
13937
13403
  /**
13938
13404
  *
13939
- * @type {OrderTypePOS}
13940
- * @memberof SendPosOrderTicketDtoData
13405
+ * @type {Status}
13406
+ * @memberof ShiftEmployeeDto
13941
13407
  */
13942
- 'orderType': OrderTypePOS;
13408
+ 'status': Status;
13943
13409
  /**
13944
13410
  *
13945
13411
  * @type {string}
13946
- * @memberof SendPosOrderTicketDtoData
13947
- */
13948
- 'spotNumber': string | null;
13949
- /**
13950
- *
13951
- * @type {string}
13952
- * @memberof SendPosOrderTicketDtoData
13953
- */
13954
- 'comments': string | null;
13955
- /**
13956
- * Id of the staff in shift
13957
- * @type {string}
13958
- * @memberof SendPosOrderTicketDtoData
13959
- */
13960
- 'staffId': string | null;
13961
- /**
13962
- * Id of the shift
13963
- * @type {string}
13964
- * @memberof SendPosOrderTicketDtoData
13965
- */
13966
- 'shiftId': string | null;
13967
- /**
13968
- *
13969
- * @type {OrderRefundStatus}
13970
- * @memberof SendPosOrderTicketDtoData
13971
- */
13972
- 'orderRefundStatus': OrderRefundStatus;
13973
- /**
13974
- *
13975
- * @type {LocatorType}
13976
- * @memberof SendPosOrderTicketDtoData
13977
- */
13978
- 'locatorType': LocatorType;
13979
- /**
13980
- *
13981
- * @type {PosOrderPriceDto}
13982
- * @memberof SendPosOrderTicketDtoData
13983
- */
13984
- 'basketPrice': PosOrderPriceDto;
13985
- /**
13986
- *
13987
- * @type {Array<PosOrderItemDto>}
13988
- * @memberof SendPosOrderTicketDtoData
13989
- */
13990
- 'items': Array<PosOrderItemDto>;
13991
- /**
13992
- *
13993
- * @type {Array<PosDiscountDto>}
13994
- * @memberof SendPosOrderTicketDtoData
13995
- */
13996
- 'discounts': Array<PosDiscountDto>;
13997
- /**
13998
- *
13999
- * @type {PosCustomerDto}
14000
- * @memberof SendPosOrderTicketDtoData
14001
- */
14002
- 'customer': PosCustomerDto | null;
14003
- /**
14004
- *
14005
- * @type {Array<TransactionDto>}
14006
- * @memberof SendPosOrderTicketDtoData
14007
- */
14008
- 'paymentEvents': Array<TransactionDto>;
14009
- /**
14010
- *
14011
- * @type {Array<PaymentRefundDto>}
14012
- * @memberof SendPosOrderTicketDtoData
14013
- */
14014
- 'refunds'?: Array<PaymentRefundDto>;
14015
- /**
14016
- * Data version code
14017
- * @type {string}
14018
- * @memberof SendPosOrderTicketDtoData
14019
- */
14020
- 'version': string;
14021
- /**
14022
- *
14023
- * @type {OrderFormat}
14024
- * @memberof SendPosOrderTicketDtoData
14025
- */
14026
- 'orderFormat'?: OrderFormat;
14027
- /**
14028
- * The ID of the loyalty program active during this order.
14029
- * @type {string}
14030
- * @memberof SendPosOrderTicketDtoData
14031
- */
14032
- 'loyaltyProgramId': string | null;
14033
- /**
14034
- * An array of loyalty transaction IDs related to this order.
14035
- * @type {Array<string>}
14036
- * @memberof SendPosOrderTicketDtoData
14037
- */
14038
- 'loyaltyTransactionIds': Array<string>;
14039
- /**
14040
- *
14041
- * @type {PosOrderDtoTaxSummary}
14042
- * @memberof SendPosOrderTicketDtoData
14043
- */
14044
- 'taxSummary'?: PosOrderDtoTaxSummary;
14045
- /**
14046
- * Name of staff member who created the order
14047
- * @type {string}
14048
- * @memberof SendPosOrderTicketDtoData
14049
- */
14050
- 'staffName'?: string | null;
14051
- /**
14052
- *
14053
- * @type {PosOrderDtoInvoiceCompany}
14054
- * @memberof SendPosOrderTicketDtoData
14055
- */
14056
- 'invoiceCompany'?: PosOrderDtoInvoiceCompany | null;
14057
- /**
14058
- *
14059
- * @type {object}
14060
- * @memberof SendPosOrderTicketDtoData
14061
- */
14062
- 'lastPaymentError'?: object;
14063
- }
14064
-
14065
-
14066
- /**
14067
- *
14068
- * @export
14069
- * @interface SendReportEmailDto
14070
- */
14071
- export interface SendReportEmailDto {
14072
- /**
14073
- * Optional custom subject
14074
- * @type {string}
14075
- * @memberof SendReportEmailDto
14076
- */
14077
- 'subject'?: string;
14078
- /**
14079
- * Additional message for email body
14080
- * @type {string}
14081
- * @memberof SendReportEmailDto
14082
- */
14083
- 'message'?: string;
14084
- /**
14085
- * Email address to send the report to
14086
- * @type {string}
14087
- * @memberof SendReportEmailDto
14088
- */
14089
- 'email'?: string;
14090
- }
14091
- /**
14092
- *
14093
- * @export
14094
- * @interface ShareOrderingBusinessIdPayload
14095
- */
14096
- export interface ShareOrderingBusinessIdPayload {
14097
- /**
14098
- * The ordering business ID for this transaction.
14099
- * @type {number}
14100
- * @memberof ShareOrderingBusinessIdPayload
14101
- */
14102
- 'orderingBusinessId': number;
14103
- }
14104
- /**
14105
- *
14106
- * @export
14107
- * @interface ShiftEmployeeDto
14108
- */
14109
- export interface ShiftEmployeeDto {
14110
- /**
14111
- *
14112
- * @type {string}
14113
- * @memberof ShiftEmployeeDto
14114
- */
14115
- 'id': string;
14116
- /**
14117
- *
14118
- * @type {string}
14119
- * @memberof ShiftEmployeeDto
14120
- */
14121
- 'name': string;
14122
- /**
14123
- *
14124
- * @type {Status}
14125
- * @memberof ShiftEmployeeDto
14126
- */
14127
- 'status': Status;
14128
- /**
14129
- *
14130
- * @type {string}
14131
- * @memberof ShiftEmployeeDto
13412
+ * @memberof ShiftEmployeeDto
14132
13413
  */
14133
13414
  'photoUrl': string | null;
14134
13415
  }
@@ -14878,43 +14159,6 @@ export interface SyncTerminalDto {
14878
14159
  }
14879
14160
 
14880
14161
 
14881
- /**
14882
- *
14883
- * @export
14884
- * @interface TaxBreakdownDto
14885
- */
14886
- export interface TaxBreakdownDto {
14887
- /**
14888
- * Standard tax amount
14889
- * @type {number}
14890
- * @memberof TaxBreakdownDto
14891
- */
14892
- 'standardTaxAmount': number;
14893
- /**
14894
- * Premium tax amount
14895
- * @type {number}
14896
- * @memberof TaxBreakdownDto
14897
- */
14898
- 'premiumTaxAmount': number;
14899
- /**
14900
- * Total tax amount
14901
- * @type {number}
14902
- * @memberof TaxBreakdownDto
14903
- */
14904
- 'totalTaxAmount': number;
14905
- /**
14906
- * Standard tax rate %
14907
- * @type {number}
14908
- * @memberof TaxBreakdownDto
14909
- */
14910
- 'standardTaxRate': number;
14911
- /**
14912
- * Premium tax rate %
14913
- * @type {number}
14914
- * @memberof TaxBreakdownDto
14915
- */
14916
- 'premiumTaxRate': number;
14917
- }
14918
14162
  /**
14919
14163
  *
14920
14164
  * @export
@@ -15368,91 +14612,1311 @@ export type Type = typeof Type[keyof typeof Type];
15368
14612
  /**
15369
14613
  *
15370
14614
  * @export
15371
- * @interface UnifiedDiscountsResponseDto
14615
+ * @interface UnifiedBusinessDto
15372
14616
  */
15373
- export interface UnifiedDiscountsResponseDto {
14617
+ export interface UnifiedBusinessDto {
15374
14618
  /**
15375
- * Venue-level discounts
15376
- * @type {Array<BusinessDiscountDto>}
15377
- * @memberof UnifiedDiscountsResponseDto
14619
+ * Unique identifier of the business
14620
+ * @type {string}
14621
+ * @memberof UnifiedBusinessDto
15378
14622
  */
15379
- 'venue': Array<BusinessDiscountDto>;
14623
+ 'id': string;
15380
14624
  /**
15381
- * Global (owner-level) discounts applicable to this venue
15382
- * @type {Array<BusinessDiscountDto>}
15383
- * @memberof UnifiedDiscountsResponseDto
14625
+ * Display name of the business
14626
+ * @type {string}
14627
+ * @memberof UnifiedBusinessDto
15384
14628
  */
15385
- 'global': Array<BusinessDiscountDto>;
15386
- }
15387
- /**
15388
- *
15389
- * @export
15390
- * @interface UnlockTerminalDto
15391
- */
15392
- export interface UnlockTerminalDto {
14629
+ 'name': string;
15393
14630
  /**
15394
- * The ID of the employee unlocking the terminal.
14631
+ * Logo URL of the business
15395
14632
  * @type {string}
15396
- * @memberof UnlockTerminalDto
14633
+ * @memberof UnifiedBusinessDto
15397
14634
  */
15398
- 'employeeId': string;
15399
- }
15400
- /**
15401
- *
15402
- * @export
15403
- * @interface UpdateChannelInventoryDto
15404
- */
15405
- export interface UpdateChannelInventoryDto {
14635
+ 'logo'?: string | null;
15406
14636
  /**
15407
- * Array of channel inventory updates
15408
- * @type {Array<ChannelInventoryUpdateDto>}
15409
- * @memberof UpdateChannelInventoryDto
14637
+ * Contact email of the business
14638
+ * @type {string}
14639
+ * @memberof UnifiedBusinessDto
15410
14640
  */
15411
- 'channels': Array<ChannelInventoryUpdateDto>;
15412
- }
15413
- /**
15414
- *
15415
- * @export
15416
- * @interface UpdateInvoiceCompanyDto
15417
- */
15418
- export interface UpdateInvoiceCompanyDto {
14641
+ 'email'?: string | null;
15419
14642
  /**
15420
- *
14643
+ * Physical address of the business
15421
14644
  * @type {string}
15422
- * @memberof UpdateInvoiceCompanyDto
14645
+ * @memberof UnifiedBusinessDto
15423
14646
  */
15424
- 'name'?: string;
14647
+ 'address'?: string | null;
15425
14648
  /**
15426
- *
14649
+ * Contact phone number of the business
15427
14650
  * @type {string}
15428
- * @memberof UpdateInvoiceCompanyDto
14651
+ * @memberof UnifiedBusinessDto
15429
14652
  */
15430
- 'email'?: string;
14653
+ 'phone'?: string | null;
15431
14654
  /**
15432
- *
14655
+ * Whether the business is currently enabled
14656
+ * @type {boolean}
14657
+ * @memberof UnifiedBusinessDto
14658
+ */
14659
+ 'enabled'?: boolean | null;
14660
+ /**
14661
+ * Timezone of the business, e.g. Europe/Helsinki. POS only
15433
14662
  * @type {string}
15434
- * @memberof UpdateInvoiceCompanyDto
14663
+ * @memberof UnifiedBusinessDto
15435
14664
  */
15436
- 'countryCode'?: string;
14665
+ 'timezone'?: string | null;
15437
14666
  /**
15438
- *
14667
+ * BIC/SWIFT code of the business. POS only
15439
14668
  * @type {string}
15440
- * @memberof UpdateInvoiceCompanyDto
14669
+ * @memberof UnifiedBusinessDto
15441
14670
  */
15442
- 'phone'?: string;
14671
+ 'bic'?: string | null;
15443
14672
  /**
15444
- *
14673
+ * Legal company name of the business. POS only
15445
14674
  * @type {string}
15446
- * @memberof UpdateInvoiceCompanyDto
14675
+ * @memberof UnifiedBusinessDto
15447
14676
  */
15448
- 'bic'?: string;
14677
+ 'companyName'?: string | null;
15449
14678
  /**
15450
- *
14679
+ * Company phone number of the business. POS only
15451
14680
  * @type {string}
15452
- * @memberof UpdateInvoiceCompanyDto
14681
+ * @memberof UnifiedBusinessDto
15453
14682
  */
15454
- 'address'?: string;
15455
- }
14683
+ 'companyPhone'?: string | null;
14684
+ /**
14685
+ * Ordering platform business ID. POS only
14686
+ * @type {string}
14687
+ * @memberof UnifiedBusinessDto
14688
+ */
14689
+ 'orderingBusinessId'?: string | null;
14690
+ }
14691
+ /**
14692
+ *
14693
+ * @export
14694
+ * @interface UnifiedCustomerDto
14695
+ */
14696
+ export interface UnifiedCustomerDto {
14697
+ /**
14698
+ * Unique identifier of the customer
14699
+ * @type {string}
14700
+ * @memberof UnifiedCustomerDto
14701
+ */
14702
+ 'id': string;
14703
+ /**
14704
+ * Full name of the customer
14705
+ * @type {string}
14706
+ * @memberof UnifiedCustomerDto
14707
+ */
14708
+ 'name'?: string | null;
14709
+ /**
14710
+ * Phone number of the customer
14711
+ * @type {string}
14712
+ * @memberof UnifiedCustomerDto
14713
+ */
14714
+ 'phone'?: string | null;
14715
+ /**
14716
+ * Email address of the customer
14717
+ * @type {string}
14718
+ * @memberof UnifiedCustomerDto
14719
+ */
14720
+ 'email'?: string | null;
14721
+ /**
14722
+ * Phone country code of the customer, e.g. +358. POS only
14723
+ * @type {string}
14724
+ * @memberof UnifiedCustomerDto
14725
+ */
14726
+ 'countryCode'?: string | null;
14727
+ /**
14728
+ * Logo URL of the customer. POS only
14729
+ * @type {string}
14730
+ * @memberof UnifiedCustomerDto
14731
+ */
14732
+ 'logo'?: string | null;
14733
+ }
14734
+ /**
14735
+ *
14736
+ * @export
14737
+ * @interface UnifiedDeliveryDto
14738
+ */
14739
+ export interface UnifiedDeliveryDto {
14740
+ /**
14741
+ * Delivery fee amount in the order currency
14742
+ * @type {number}
14743
+ * @memberof UnifiedDeliveryDto
14744
+ */
14745
+ 'deliveryFee': number;
14746
+ /**
14747
+ *
14748
+ * @type {DeliveryStatus}
14749
+ * @memberof UnifiedDeliveryDto
14750
+ */
14751
+ 'status': DeliveryStatus;
14752
+ /**
14753
+ *
14754
+ * @type {DeliveryType}
14755
+ * @memberof UnifiedDeliveryDto
14756
+ */
14757
+ 'type': DeliveryType;
14758
+ /**
14759
+ * Whether the business handles delivery themselves
14760
+ * @type {boolean}
14761
+ * @memberof UnifiedDeliveryDto
14762
+ */
14763
+ 'selfDelivery'?: boolean | null;
14764
+ /**
14765
+ * Delivery note left by the customer
14766
+ * @type {string}
14767
+ * @memberof UnifiedDeliveryDto
14768
+ */
14769
+ 'note'?: string | null;
14770
+ /**
14771
+ * Formatted delivery address
14772
+ * @type {string}
14773
+ * @memberof UnifiedDeliveryDto
14774
+ */
14775
+ 'formattedAddress'?: string | null;
14776
+ /**
14777
+ * City of the delivery address
14778
+ * @type {string}
14779
+ * @memberof UnifiedDeliveryDto
14780
+ */
14781
+ 'city'?: string | null;
14782
+ /**
14783
+ * Country of the delivery address
14784
+ * @type {string}
14785
+ * @memberof UnifiedDeliveryDto
14786
+ */
14787
+ 'country'?: string | null;
14788
+ }
14789
+
14790
+
14791
+ /**
14792
+ *
14793
+ * @export
14794
+ * @interface UnifiedDiscountsResponseDto
14795
+ */
14796
+ export interface UnifiedDiscountsResponseDto {
14797
+ /**
14798
+ * Venue-level discounts
14799
+ * @type {Array<BusinessDiscountDto>}
14800
+ * @memberof UnifiedDiscountsResponseDto
14801
+ */
14802
+ 'venue': Array<BusinessDiscountDto>;
14803
+ /**
14804
+ * Global (owner-level) discounts applicable to this venue
14805
+ * @type {Array<BusinessDiscountDto>}
14806
+ * @memberof UnifiedDiscountsResponseDto
14807
+ */
14808
+ 'global': Array<BusinessDiscountDto>;
14809
+ }
14810
+ /**
14811
+ *
14812
+ * @export
14813
+ * @interface UnifiedLastPaymentErrorDto
14814
+ */
14815
+ export interface UnifiedLastPaymentErrorDto {
14816
+ /**
14817
+ *
14818
+ * @type {PaymentFailureCode}
14819
+ * @memberof UnifiedLastPaymentErrorDto
14820
+ */
14821
+ 'code': PaymentFailureCode;
14822
+ /**
14823
+ * Human-readable error message from the payment provider
14824
+ * @type {string}
14825
+ * @memberof UnifiedLastPaymentErrorDto
14826
+ */
14827
+ 'providerMessage': string;
14828
+ /**
14829
+ * Timestamp when the payment error occurred
14830
+ * @type {string}
14831
+ * @memberof UnifiedLastPaymentErrorDto
14832
+ */
14833
+ 'timestamp': string;
14834
+ /**
14835
+ * Whether the payment can be retried after this error
14836
+ * @type {boolean}
14837
+ * @memberof UnifiedLastPaymentErrorDto
14838
+ */
14839
+ 'retryable': boolean;
14840
+ }
14841
+
14842
+
14843
+ /**
14844
+ *
14845
+ * @export
14846
+ * @interface UnifiedOptionDto
14847
+ */
14848
+ export interface UnifiedOptionDto {
14849
+ /**
14850
+ * Unique identifier of the option
14851
+ * @type {string}
14852
+ * @memberof UnifiedOptionDto
14853
+ */
14854
+ 'id': string;
14855
+ /**
14856
+ * External identifier of the option from the ordering platform
14857
+ * @type {string}
14858
+ * @memberof UnifiedOptionDto
14859
+ */
14860
+ 'externalId': string;
14861
+ /**
14862
+ * Display name of the option
14863
+ * @type {string}
14864
+ * @memberof UnifiedOptionDto
14865
+ */
14866
+ 'name': string;
14867
+ /**
14868
+ * Image URL for the option
14869
+ * @type {string}
14870
+ * @memberof UnifiedOptionDto
14871
+ */
14872
+ 'image'?: string | null;
14873
+ /**
14874
+ * List of sub-options selected under this option
14875
+ * @type {Array<UnifiedSubOptionDto>}
14876
+ * @memberof UnifiedOptionDto
14877
+ */
14878
+ 'subOptions': Array<UnifiedSubOptionDto>;
14879
+ }
14880
+ /**
14881
+ *
14882
+ * @export
14883
+ * @interface UnifiedOrderResponseDto
14884
+ */
14885
+ export interface UnifiedOrderResponseDto {
14886
+ /**
14887
+ *
14888
+ * @type {OrderSource}
14889
+ * @memberof UnifiedOrderResponseDto
14890
+ */
14891
+ 'source': OrderSource;
14892
+ /**
14893
+ * Unique identifier of the order
14894
+ * @type {string}
14895
+ * @memberof UnifiedOrderResponseDto
14896
+ */
14897
+ 'id': string;
14898
+ /**
14899
+ * Human-readable order number shown to staff and customers
14900
+ * @type {string}
14901
+ * @memberof UnifiedOrderResponseDto
14902
+ */
14903
+ 'orderNumber': string;
14904
+ /**
14905
+ *
14906
+ * @type {ProviderEnum}
14907
+ * @memberof UnifiedOrderResponseDto
14908
+ */
14909
+ 'provider': ProviderEnum;
14910
+ /**
14911
+ *
14912
+ * @type {OrderStatusEnum}
14913
+ * @memberof UnifiedOrderResponseDto
14914
+ */
14915
+ 'status': OrderStatusEnum;
14916
+ /**
14917
+ * Ordering platform business ID that owns this order
14918
+ * @type {number}
14919
+ * @memberof UnifiedOrderResponseDto
14920
+ */
14921
+ 'orderingBusinessId': number;
14922
+ /**
14923
+ * Timestamp when the order was created
14924
+ * @type {string}
14925
+ * @memberof UnifiedOrderResponseDto
14926
+ */
14927
+ 'createdAt': string;
14928
+ /**
14929
+ * Timestamp when the order was last updated
14930
+ * @type {string}
14931
+ * @memberof UnifiedOrderResponseDto
14932
+ */
14933
+ 'updatedAt': string;
14934
+ /**
14935
+ *
14936
+ * @type {OrderType}
14937
+ * @memberof UnifiedOrderResponseDto
14938
+ */
14939
+ 'orderType': OrderType;
14940
+ /**
14941
+ * External order identifier from the delivery platform. Platform only
14942
+ * @type {string}
14943
+ * @memberof UnifiedOrderResponseDto
14944
+ */
14945
+ 'externalId'?: string | null;
14946
+ /**
14947
+ *
14948
+ * @type {Type}
14949
+ * @memberof UnifiedOrderResponseDto
14950
+ */
14951
+ 'type'?: Type | null;
14952
+ /**
14953
+ *
14954
+ * @type {PaymentStatus}
14955
+ * @memberof UnifiedOrderResponseDto
14956
+ */
14957
+ 'paymentStatus'?: PaymentStatus | null;
14958
+ /**
14959
+ *
14960
+ * @type {PaymentTypeEnum}
14961
+ * @memberof UnifiedOrderResponseDto
14962
+ */
14963
+ 'paymentType'?: PaymentTypeEnum | null;
14964
+ /**
14965
+ * Preparation time in minutes set when the order was accepted. Platform only
14966
+ * @type {number}
14967
+ * @memberof UnifiedOrderResponseDto
14968
+ */
14969
+ 'preparedIn'?: number | null;
14970
+ /**
14971
+ * Additional comment left by the customer. Platform only
14972
+ * @type {string}
14973
+ * @memberof UnifiedOrderResponseDto
14974
+ */
14975
+ 'customerComment'?: string | null;
14976
+ /**
14977
+ * Dine-in table or seat number. Platform only
14978
+ * @type {string}
14979
+ * @memberof UnifiedOrderResponseDto
14980
+ */
14981
+ 'dineInNumber'?: string | null;
14982
+ /**
14983
+ * Reason provided when the order was rejected. Platform only
14984
+ * @type {string}
14985
+ * @memberof UnifiedOrderResponseDto
14986
+ */
14987
+ 'rejectedReason'?: string | null;
14988
+ /**
14989
+ * Timestamp when the order expires. Platform only
14990
+ * @type {string}
14991
+ * @memberof UnifiedOrderResponseDto
14992
+ */
14993
+ 'expiryDate'?: string | null;
14994
+ /**
14995
+ * Timestamp when the order was accepted. Platform only
14996
+ * @type {string}
14997
+ * @memberof UnifiedOrderResponseDto
14998
+ */
14999
+ 'acceptedAt'?: string | null;
15000
+ /**
15001
+ * Estimated customer pickup time. Platform only
15002
+ * @type {string}
15003
+ * @memberof UnifiedOrderResponseDto
15004
+ */
15005
+ 'pickupEta'?: string | null;
15006
+ /**
15007
+ * Estimated delivery time to the customer. Platform only
15008
+ * @type {string}
15009
+ * @memberof UnifiedOrderResponseDto
15010
+ */
15011
+ 'deliveryEta'?: string | null;
15012
+ /**
15013
+ * Firebase business document ID. POS only
15014
+ * @type {string}
15015
+ * @memberof UnifiedOrderResponseDto
15016
+ */
15017
+ 'businessId'?: string | null;
15018
+ /**
15019
+ *
15020
+ * @type {CurrencyCode}
15021
+ * @memberof UnifiedOrderResponseDto
15022
+ */
15023
+ 'currency'?: CurrencyCode | null;
15024
+ /**
15025
+ * Spot or table number assigned to the order. POS only
15026
+ * @type {string}
15027
+ * @memberof UnifiedOrderResponseDto
15028
+ */
15029
+ 'spotNumber'?: string | null;
15030
+ /**
15031
+ * General comment on the order. POS only
15032
+ * @type {string}
15033
+ * @memberof UnifiedOrderResponseDto
15034
+ */
15035
+ 'comments'?: string | null;
15036
+ /**
15037
+ * ID of the staff member who created or handled the order. POS only
15038
+ * @type {string}
15039
+ * @memberof UnifiedOrderResponseDto
15040
+ */
15041
+ 'staffId'?: string | null;
15042
+ /**
15043
+ * ID of the shift during which the order was created. POS only
15044
+ * @type {string}
15045
+ * @memberof UnifiedOrderResponseDto
15046
+ */
15047
+ 'shiftId'?: string | null;
15048
+ /**
15049
+ * Name of the staff member who created the order. POS only
15050
+ * @type {string}
15051
+ * @memberof UnifiedOrderResponseDto
15052
+ */
15053
+ 'staffName'?: string | null;
15054
+ /**
15055
+ * Data schema version of the POS order document. POS only
15056
+ * @type {string}
15057
+ * @memberof UnifiedOrderResponseDto
15058
+ */
15059
+ 'version'?: string | null;
15060
+ /**
15061
+ *
15062
+ * @type {OrderRefundStatus}
15063
+ * @memberof UnifiedOrderResponseDto
15064
+ */
15065
+ 'orderRefundStatus'?: OrderRefundStatus | null;
15066
+ /**
15067
+ *
15068
+ * @type {LocatorType}
15069
+ * @memberof UnifiedOrderResponseDto
15070
+ */
15071
+ 'locatorType'?: LocatorType | null;
15072
+ /**
15073
+ *
15074
+ * @type {OrderFormat}
15075
+ * @memberof UnifiedOrderResponseDto
15076
+ */
15077
+ 'orderFormat'?: OrderFormat | null;
15078
+ /**
15079
+ * ID of the loyalty program active during this order. POS only
15080
+ * @type {string}
15081
+ * @memberof UnifiedOrderResponseDto
15082
+ */
15083
+ 'loyaltyProgramId'?: string | null;
15084
+ /**
15085
+ * Array of loyalty transaction IDs linked to this order. POS only
15086
+ * @type {Array<string>}
15087
+ * @memberof UnifiedOrderResponseDto
15088
+ */
15089
+ 'loyaltyTransactionIds'?: Array<string>;
15090
+ /**
15091
+ *
15092
+ * @type {UnifiedOrderResponseDtoCustomer}
15093
+ * @memberof UnifiedOrderResponseDto
15094
+ */
15095
+ 'customer'?: UnifiedOrderResponseDtoCustomer | null;
15096
+ /**
15097
+ *
15098
+ * @type {UnifiedOrderResponseDtoBusiness}
15099
+ * @memberof UnifiedOrderResponseDto
15100
+ */
15101
+ 'business'?: UnifiedOrderResponseDtoBusiness | null;
15102
+ /**
15103
+ * List of refunds associated with this order
15104
+ * @type {Array<UnifiedRefundDto>}
15105
+ * @memberof UnifiedOrderResponseDto
15106
+ */
15107
+ 'refunds'?: Array<UnifiedRefundDto>;
15108
+ /**
15109
+ *
15110
+ * @type {UnifiedOrderResponseDtoDelivery}
15111
+ * @memberof UnifiedOrderResponseDto
15112
+ */
15113
+ 'delivery'?: UnifiedOrderResponseDtoDelivery | null;
15114
+ /**
15115
+ *
15116
+ * @type {UnifiedOrderResponseDtoPreorder}
15117
+ * @memberof UnifiedOrderResponseDto
15118
+ */
15119
+ 'preorder'?: UnifiedOrderResponseDtoPreorder | null;
15120
+ /**
15121
+ *
15122
+ * @type {UnifiedOrderResponseDtoPriceSummary}
15123
+ * @memberof UnifiedOrderResponseDto
15124
+ */
15125
+ 'priceSummary'?: UnifiedOrderResponseDtoPriceSummary | null;
15126
+ /**
15127
+ * Discounts applied to the order. Platform only
15128
+ * @type {Array<UnifiedPlatformDiscountDto>}
15129
+ * @memberof UnifiedOrderResponseDto
15130
+ */
15131
+ 'discounts'?: Array<UnifiedPlatformDiscountDto>;
15132
+ /**
15133
+ * Products in the order. Platform only
15134
+ * @type {Array<UnifiedProductDto>}
15135
+ * @memberof UnifiedOrderResponseDto
15136
+ */
15137
+ 'products'?: Array<UnifiedProductDto>;
15138
+ /**
15139
+ *
15140
+ * @type {UnifiedOrderResponseDtoBasketPrice}
15141
+ * @memberof UnifiedOrderResponseDto
15142
+ */
15143
+ 'basketPrice'?: UnifiedOrderResponseDtoBasketPrice | null;
15144
+ /**
15145
+ * Line items in the POS order. POS only
15146
+ * @type {Array<PosOrderItemDto>}
15147
+ * @memberof UnifiedOrderResponseDto
15148
+ */
15149
+ 'items'?: Array<PosOrderItemDto>;
15150
+ /**
15151
+ * Discounts applied in the POS order. POS only
15152
+ * @type {Array<PosDiscountDto>}
15153
+ * @memberof UnifiedOrderResponseDto
15154
+ */
15155
+ 'posDiscounts'?: Array<PosDiscountDto>;
15156
+ /**
15157
+ * Payment transactions recorded for the POS order. POS only
15158
+ * @type {Array<TransactionDto>}
15159
+ * @memberof UnifiedOrderResponseDto
15160
+ */
15161
+ 'paymentEvents'?: Array<TransactionDto>;
15162
+ /**
15163
+ *
15164
+ * @type {UnifiedOrderResponseDtoTaxSummary}
15165
+ * @memberof UnifiedOrderResponseDto
15166
+ */
15167
+ 'taxSummary'?: UnifiedOrderResponseDtoTaxSummary | null;
15168
+ /**
15169
+ *
15170
+ * @type {UnifiedOrderResponseDtoInvoiceCompany}
15171
+ * @memberof UnifiedOrderResponseDto
15172
+ */
15173
+ 'invoiceCompany'?: UnifiedOrderResponseDtoInvoiceCompany | null;
15174
+ /**
15175
+ *
15176
+ * @type {UnifiedOrderResponseDtoLastPaymentError}
15177
+ * @memberof UnifiedOrderResponseDto
15178
+ */
15179
+ 'lastPaymentError'?: UnifiedOrderResponseDtoLastPaymentError | null;
15180
+ }
15181
+
15182
+
15183
+ /**
15184
+ * Full price breakdown including discounts and totals. POS only
15185
+ * @export
15186
+ * @interface UnifiedOrderResponseDtoBasketPrice
15187
+ */
15188
+ export interface UnifiedOrderResponseDtoBasketPrice {
15189
+ /**
15190
+ *
15191
+ * @type {PriceBreakdownDto}
15192
+ * @memberof UnifiedOrderResponseDtoBasketPrice
15193
+ */
15194
+ 'priceBreakdown': PriceBreakdownDto;
15195
+ /**
15196
+ *
15197
+ * @type {MoneyDto}
15198
+ * @memberof UnifiedOrderResponseDtoBasketPrice
15199
+ */
15200
+ 'total': MoneyDto;
15201
+ }
15202
+ /**
15203
+ * Business that received the order
15204
+ * @export
15205
+ * @interface UnifiedOrderResponseDtoBusiness
15206
+ */
15207
+ export interface UnifiedOrderResponseDtoBusiness {
15208
+ /**
15209
+ * Unique identifier of the business
15210
+ * @type {string}
15211
+ * @memberof UnifiedOrderResponseDtoBusiness
15212
+ */
15213
+ 'id': string;
15214
+ /**
15215
+ * Display name of the business
15216
+ * @type {string}
15217
+ * @memberof UnifiedOrderResponseDtoBusiness
15218
+ */
15219
+ 'name': string;
15220
+ /**
15221
+ * Logo URL of the business
15222
+ * @type {string}
15223
+ * @memberof UnifiedOrderResponseDtoBusiness
15224
+ */
15225
+ 'logo'?: string | null;
15226
+ /**
15227
+ * Contact email of the business
15228
+ * @type {string}
15229
+ * @memberof UnifiedOrderResponseDtoBusiness
15230
+ */
15231
+ 'email'?: string | null;
15232
+ /**
15233
+ * Physical address of the business
15234
+ * @type {string}
15235
+ * @memberof UnifiedOrderResponseDtoBusiness
15236
+ */
15237
+ 'address'?: string | null;
15238
+ /**
15239
+ * Contact phone number of the business
15240
+ * @type {string}
15241
+ * @memberof UnifiedOrderResponseDtoBusiness
15242
+ */
15243
+ 'phone'?: string | null;
15244
+ /**
15245
+ * Whether the business is currently enabled
15246
+ * @type {boolean}
15247
+ * @memberof UnifiedOrderResponseDtoBusiness
15248
+ */
15249
+ 'enabled'?: boolean | null;
15250
+ /**
15251
+ * Timezone of the business, e.g. Europe/Helsinki. POS only
15252
+ * @type {string}
15253
+ * @memberof UnifiedOrderResponseDtoBusiness
15254
+ */
15255
+ 'timezone'?: string | null;
15256
+ /**
15257
+ * BIC/SWIFT code of the business. POS only
15258
+ * @type {string}
15259
+ * @memberof UnifiedOrderResponseDtoBusiness
15260
+ */
15261
+ 'bic'?: string | null;
15262
+ /**
15263
+ * Legal company name of the business. POS only
15264
+ * @type {string}
15265
+ * @memberof UnifiedOrderResponseDtoBusiness
15266
+ */
15267
+ 'companyName'?: string | null;
15268
+ /**
15269
+ * Company phone number of the business. POS only
15270
+ * @type {string}
15271
+ * @memberof UnifiedOrderResponseDtoBusiness
15272
+ */
15273
+ 'companyPhone'?: string | null;
15274
+ /**
15275
+ * Ordering platform business ID. POS only
15276
+ * @type {string}
15277
+ * @memberof UnifiedOrderResponseDtoBusiness
15278
+ */
15279
+ 'orderingBusinessId'?: string | null;
15280
+ }
15281
+ /**
15282
+ * Customer who placed the order
15283
+ * @export
15284
+ * @interface UnifiedOrderResponseDtoCustomer
15285
+ */
15286
+ export interface UnifiedOrderResponseDtoCustomer {
15287
+ /**
15288
+ * Unique identifier of the customer
15289
+ * @type {string}
15290
+ * @memberof UnifiedOrderResponseDtoCustomer
15291
+ */
15292
+ 'id': string;
15293
+ /**
15294
+ * Full name of the customer
15295
+ * @type {string}
15296
+ * @memberof UnifiedOrderResponseDtoCustomer
15297
+ */
15298
+ 'name'?: string | null;
15299
+ /**
15300
+ * Phone number of the customer
15301
+ * @type {string}
15302
+ * @memberof UnifiedOrderResponseDtoCustomer
15303
+ */
15304
+ 'phone'?: string | null;
15305
+ /**
15306
+ * Email address of the customer
15307
+ * @type {string}
15308
+ * @memberof UnifiedOrderResponseDtoCustomer
15309
+ */
15310
+ 'email'?: string | null;
15311
+ /**
15312
+ * Phone country code of the customer, e.g. +358. POS only
15313
+ * @type {string}
15314
+ * @memberof UnifiedOrderResponseDtoCustomer
15315
+ */
15316
+ 'countryCode'?: string | null;
15317
+ /**
15318
+ * Logo URL of the customer. POS only
15319
+ * @type {string}
15320
+ * @memberof UnifiedOrderResponseDtoCustomer
15321
+ */
15322
+ 'logo'?: string | null;
15323
+ }
15324
+ /**
15325
+ * Delivery details for the order. Platform only
15326
+ * @export
15327
+ * @interface UnifiedOrderResponseDtoDelivery
15328
+ */
15329
+ export interface UnifiedOrderResponseDtoDelivery {
15330
+ /**
15331
+ * Delivery fee amount in the order currency
15332
+ * @type {number}
15333
+ * @memberof UnifiedOrderResponseDtoDelivery
15334
+ */
15335
+ 'deliveryFee': number;
15336
+ /**
15337
+ *
15338
+ * @type {DeliveryStatus}
15339
+ * @memberof UnifiedOrderResponseDtoDelivery
15340
+ */
15341
+ 'status': DeliveryStatus;
15342
+ /**
15343
+ *
15344
+ * @type {DeliveryType}
15345
+ * @memberof UnifiedOrderResponseDtoDelivery
15346
+ */
15347
+ 'type': DeliveryType;
15348
+ /**
15349
+ * Whether the business handles delivery themselves
15350
+ * @type {boolean}
15351
+ * @memberof UnifiedOrderResponseDtoDelivery
15352
+ */
15353
+ 'selfDelivery'?: boolean | null;
15354
+ /**
15355
+ * Delivery note left by the customer
15356
+ * @type {string}
15357
+ * @memberof UnifiedOrderResponseDtoDelivery
15358
+ */
15359
+ 'note'?: string | null;
15360
+ /**
15361
+ * Formatted delivery address
15362
+ * @type {string}
15363
+ * @memberof UnifiedOrderResponseDtoDelivery
15364
+ */
15365
+ 'formattedAddress'?: string | null;
15366
+ /**
15367
+ * City of the delivery address
15368
+ * @type {string}
15369
+ * @memberof UnifiedOrderResponseDtoDelivery
15370
+ */
15371
+ 'city'?: string | null;
15372
+ /**
15373
+ * Country of the delivery address
15374
+ * @type {string}
15375
+ * @memberof UnifiedOrderResponseDtoDelivery
15376
+ */
15377
+ 'country'?: string | null;
15378
+ }
15379
+
15380
+
15381
+ /**
15382
+ * Invoice company details attached to the POS order. POS only
15383
+ * @export
15384
+ * @interface UnifiedOrderResponseDtoInvoiceCompany
15385
+ */
15386
+ export interface UnifiedOrderResponseDtoInvoiceCompany {
15387
+ /**
15388
+ *
15389
+ * @type {string}
15390
+ * @memberof UnifiedOrderResponseDtoInvoiceCompany
15391
+ */
15392
+ 'id': string;
15393
+ /**
15394
+ *
15395
+ * @type {number}
15396
+ * @memberof UnifiedOrderResponseDtoInvoiceCompany
15397
+ */
15398
+ 'businessId': number;
15399
+ /**
15400
+ *
15401
+ * @type {string}
15402
+ * @memberof UnifiedOrderResponseDtoInvoiceCompany
15403
+ */
15404
+ 'name': string;
15405
+ /**
15406
+ *
15407
+ * @type {string}
15408
+ * @memberof UnifiedOrderResponseDtoInvoiceCompany
15409
+ */
15410
+ 'email': string;
15411
+ /**
15412
+ *
15413
+ * @type {string}
15414
+ * @memberof UnifiedOrderResponseDtoInvoiceCompany
15415
+ */
15416
+ 'countryCode': string;
15417
+ /**
15418
+ *
15419
+ * @type {string}
15420
+ * @memberof UnifiedOrderResponseDtoInvoiceCompany
15421
+ */
15422
+ 'phone': string;
15423
+ /**
15424
+ *
15425
+ * @type {string}
15426
+ * @memberof UnifiedOrderResponseDtoInvoiceCompany
15427
+ */
15428
+ 'bic'?: string;
15429
+ /**
15430
+ *
15431
+ * @type {string}
15432
+ * @memberof UnifiedOrderResponseDtoInvoiceCompany
15433
+ */
15434
+ 'address'?: string;
15435
+ /**
15436
+ *
15437
+ * @type {string}
15438
+ * @memberof UnifiedOrderResponseDtoInvoiceCompany
15439
+ */
15440
+ 'createdAt': string;
15441
+ /**
15442
+ *
15443
+ * @type {string}
15444
+ * @memberof UnifiedOrderResponseDtoInvoiceCompany
15445
+ */
15446
+ 'updatedAt': string;
15447
+ }
15448
+ /**
15449
+ * Details of the last payment error if the payment failed. POS only
15450
+ * @export
15451
+ * @interface UnifiedOrderResponseDtoLastPaymentError
15452
+ */
15453
+ export interface UnifiedOrderResponseDtoLastPaymentError {
15454
+ /**
15455
+ *
15456
+ * @type {PaymentFailureCode}
15457
+ * @memberof UnifiedOrderResponseDtoLastPaymentError
15458
+ */
15459
+ 'code': PaymentFailureCode;
15460
+ /**
15461
+ * Human-readable error message from the payment provider
15462
+ * @type {string}
15463
+ * @memberof UnifiedOrderResponseDtoLastPaymentError
15464
+ */
15465
+ 'providerMessage': string;
15466
+ /**
15467
+ * Timestamp when the payment error occurred
15468
+ * @type {string}
15469
+ * @memberof UnifiedOrderResponseDtoLastPaymentError
15470
+ */
15471
+ 'timestamp': string;
15472
+ /**
15473
+ * Whether the payment can be retried after this error
15474
+ * @type {boolean}
15475
+ * @memberof UnifiedOrderResponseDtoLastPaymentError
15476
+ */
15477
+ 'retryable': boolean;
15478
+ }
15479
+
15480
+
15481
+ /**
15482
+ * Preorder scheduling details. Platform only
15483
+ * @export
15484
+ * @interface UnifiedOrderResponseDtoPreorder
15485
+ */
15486
+ export interface UnifiedOrderResponseDtoPreorder {
15487
+ /**
15488
+ * Unique identifier of the preorder
15489
+ * @type {string}
15490
+ * @memberof UnifiedOrderResponseDtoPreorder
15491
+ */
15492
+ 'id': string;
15493
+ /**
15494
+ *
15495
+ * @type {PreorderStatus}
15496
+ * @memberof UnifiedOrderResponseDtoPreorder
15497
+ */
15498
+ 'status': PreorderStatus;
15499
+ /**
15500
+ * Scheduled time for the preorder pickup or delivery
15501
+ * @type {string}
15502
+ * @memberof UnifiedOrderResponseDtoPreorder
15503
+ */
15504
+ 'preorderTime'?: string | null;
15505
+ }
15506
+
15507
+
15508
+ /**
15509
+ * Price summary of the order. Platform only
15510
+ * @export
15511
+ * @interface UnifiedOrderResponseDtoPriceSummary
15512
+ */
15513
+ export interface UnifiedOrderResponseDtoPriceSummary {
15514
+ /**
15515
+ * Unique identifier of the price summary record
15516
+ * @type {string}
15517
+ * @memberof UnifiedOrderResponseDtoPriceSummary
15518
+ */
15519
+ 'id': string;
15520
+ /**
15521
+ * Total net amount of the order
15522
+ * @type {number}
15523
+ * @memberof UnifiedOrderResponseDtoPriceSummary
15524
+ */
15525
+ 'totalNet': number;
15526
+ }
15527
+ /**
15528
+ * Tax breakdown summary for the POS order. POS only
15529
+ * @export
15530
+ * @interface UnifiedOrderResponseDtoTaxSummary
15531
+ */
15532
+ export interface UnifiedOrderResponseDtoTaxSummary {
15533
+ /**
15534
+ * Tax breakdown by rate
15535
+ * @type {Array<OrderTaxSummaryDto>}
15536
+ * @memberof UnifiedOrderResponseDtoTaxSummary
15537
+ */
15538
+ 'taxSummaries': Array<OrderTaxSummaryDto>;
15539
+ /**
15540
+ * Total without tax in cents
15541
+ * @type {number}
15542
+ * @memberof UnifiedOrderResponseDtoTaxSummary
15543
+ */
15544
+ 'totalWithoutTax': number;
15545
+ /**
15546
+ * Total tax amount in cents
15547
+ * @type {number}
15548
+ * @memberof UnifiedOrderResponseDtoTaxSummary
15549
+ */
15550
+ 'totalTax': number;
15551
+ /**
15552
+ * Grand total in cents
15553
+ * @type {number}
15554
+ * @memberof UnifiedOrderResponseDtoTaxSummary
15555
+ */
15556
+ 'grandTotal': number;
15557
+ }
15558
+ /**
15559
+ *
15560
+ * @export
15561
+ * @interface UnifiedPlatformDiscountDto
15562
+ */
15563
+ export interface UnifiedPlatformDiscountDto {
15564
+ /**
15565
+ * Unique identifier of the discount
15566
+ * @type {string}
15567
+ * @memberof UnifiedPlatformDiscountDto
15568
+ */
15569
+ 'id': string;
15570
+ /**
15571
+ * Display name of the discount
15572
+ * @type {string}
15573
+ * @memberof UnifiedPlatformDiscountDto
15574
+ */
15575
+ 'discountName': string;
15576
+ /**
15577
+ * Discount amount applied to the order
15578
+ * @type {number}
15579
+ * @memberof UnifiedPlatformDiscountDto
15580
+ */
15581
+ 'discountAmount': number;
15582
+ /**
15583
+ * Timestamp when the discount was created
15584
+ * @type {string}
15585
+ * @memberof UnifiedPlatformDiscountDto
15586
+ */
15587
+ 'createdAt': string;
15588
+ }
15589
+ /**
15590
+ *
15591
+ * @export
15592
+ * @interface UnifiedPreorderDto
15593
+ */
15594
+ export interface UnifiedPreorderDto {
15595
+ /**
15596
+ * Unique identifier of the preorder
15597
+ * @type {string}
15598
+ * @memberof UnifiedPreorderDto
15599
+ */
15600
+ 'id': string;
15601
+ /**
15602
+ *
15603
+ * @type {PreorderStatus}
15604
+ * @memberof UnifiedPreorderDto
15605
+ */
15606
+ 'status': PreorderStatus;
15607
+ /**
15608
+ * Scheduled time for the preorder pickup or delivery
15609
+ * @type {string}
15610
+ * @memberof UnifiedPreorderDto
15611
+ */
15612
+ 'preorderTime'?: string | null;
15613
+ }
15614
+
15615
+
15616
+ /**
15617
+ *
15618
+ * @export
15619
+ * @interface UnifiedPriceSummaryDto
15620
+ */
15621
+ export interface UnifiedPriceSummaryDto {
15622
+ /**
15623
+ * Unique identifier of the price summary record
15624
+ * @type {string}
15625
+ * @memberof UnifiedPriceSummaryDto
15626
+ */
15627
+ 'id': string;
15628
+ /**
15629
+ * Total net amount of the order
15630
+ * @type {number}
15631
+ * @memberof UnifiedPriceSummaryDto
15632
+ */
15633
+ 'totalNet': number;
15634
+ }
15635
+ /**
15636
+ *
15637
+ * @export
15638
+ * @interface UnifiedProductDto
15639
+ */
15640
+ export interface UnifiedProductDto {
15641
+ /**
15642
+ * Unique identifier of the product line item
15643
+ * @type {string}
15644
+ * @memberof UnifiedProductDto
15645
+ */
15646
+ 'id': string;
15647
+ /**
15648
+ * External identifier of the product from the ordering platform
15649
+ * @type {string}
15650
+ * @memberof UnifiedProductDto
15651
+ */
15652
+ 'externalId': string;
15653
+ /**
15654
+ * Display name of the product
15655
+ * @type {string}
15656
+ * @memberof UnifiedProductDto
15657
+ */
15658
+ 'name': string;
15659
+ /**
15660
+ * Quantity of this product ordered
15661
+ * @type {number}
15662
+ * @memberof UnifiedProductDto
15663
+ */
15664
+ 'quantity': number;
15665
+ /**
15666
+ * Unit price of the product
15667
+ * @type {number}
15668
+ * @memberof UnifiedProductDto
15669
+ */
15670
+ 'unitPrice': number;
15671
+ /**
15672
+ * Actual paid price of the product
15673
+ * @type {number}
15674
+ * @memberof UnifiedProductDto
15675
+ */
15676
+ 'paidPrice': number;
15677
+ /**
15678
+ * Special instruction or comment for this product
15679
+ * @type {string}
15680
+ * @memberof UnifiedProductDto
15681
+ */
15682
+ 'comment'?: string | null;
15683
+ /**
15684
+ * Current kitchen preparation status of the product
15685
+ * @type {string}
15686
+ * @memberof UnifiedProductDto
15687
+ */
15688
+ 'kitchenStatus'?: string | null;
15689
+ /**
15690
+ * List of options selected for this product
15691
+ * @type {Array<UnifiedOptionDto>}
15692
+ * @memberof UnifiedProductDto
15693
+ */
15694
+ 'options': Array<UnifiedOptionDto>;
15695
+ }
15696
+ /**
15697
+ *
15698
+ * @export
15699
+ * @interface UnifiedRefundDto
15700
+ */
15701
+ export interface UnifiedRefundDto {
15702
+ /**
15703
+ * Unique internal identifier of the refund record
15704
+ * @type {string}
15705
+ * @memberof UnifiedRefundDto
15706
+ */
15707
+ 'id': string;
15708
+ /**
15709
+ * Refund transaction identifier
15710
+ * @type {string}
15711
+ * @memberof UnifiedRefundDto
15712
+ */
15713
+ 'refundId': string;
15714
+ /**
15715
+ *
15716
+ * @type {PaymentProvider}
15717
+ * @memberof UnifiedRefundDto
15718
+ */
15719
+ 'paymentProvider': PaymentProvider;
15720
+ /**
15721
+ * Amount refunded in the smallest currency unit
15722
+ * @type {number}
15723
+ * @memberof UnifiedRefundDto
15724
+ */
15725
+ 'amount': number;
15726
+ /**
15727
+ * ISO 4217 currency code of the refund, e.g. EUR
15728
+ * @type {string}
15729
+ * @memberof UnifiedRefundDto
15730
+ */
15731
+ 'currency': string;
15732
+ /**
15733
+ *
15734
+ * @type {RefundStatusEnum}
15735
+ * @memberof UnifiedRefundDto
15736
+ */
15737
+ 'status': RefundStatusEnum;
15738
+ /**
15739
+ * Timestamp when the refund was processed
15740
+ * @type {string}
15741
+ * @memberof UnifiedRefundDto
15742
+ */
15743
+ 'processedAt': string;
15744
+ /**
15745
+ * Reason provided for the refund
15746
+ * @type {string}
15747
+ * @memberof UnifiedRefundDto
15748
+ */
15749
+ 'reason'?: string | null;
15750
+ /**
15751
+ *
15752
+ * @type {PaymentMethod}
15753
+ * @memberof UnifiedRefundDto
15754
+ */
15755
+ 'type'?: PaymentMethod | null;
15756
+ /**
15757
+ * Specific line items that were refunded
15758
+ * @type {Array<UnifiedRefundedItemDto>}
15759
+ * @memberof UnifiedRefundDto
15760
+ */
15761
+ 'items'?: Array<UnifiedRefundedItemDto>;
15762
+ }
15763
+
15764
+
15765
+ /**
15766
+ *
15767
+ * @export
15768
+ * @interface UnifiedRefundedItemDto
15769
+ */
15770
+ export interface UnifiedRefundedItemDto {
15771
+ /**
15772
+ * Reference to the unique line item from the original order
15773
+ * @type {string}
15774
+ * @memberof UnifiedRefundedItemDto
15775
+ */
15776
+ 'lineItemId': string;
15777
+ /**
15778
+ * Reference to the general product ID, e.g. SKU or posId
15779
+ * @type {string}
15780
+ * @memberof UnifiedRefundedItemDto
15781
+ */
15782
+ 'itemId': string;
15783
+ /**
15784
+ * Display name of the refunded product
15785
+ * @type {string}
15786
+ * @memberof UnifiedRefundedItemDto
15787
+ */
15788
+ 'name': string;
15789
+ /**
15790
+ * Unit price of the refunded item at time of refund
15791
+ * @type {number}
15792
+ * @memberof UnifiedRefundedItemDto
15793
+ */
15794
+ 'unitPrice': number;
15795
+ /**
15796
+ * Quantity refunded for this item
15797
+ * @type {number}
15798
+ * @memberof UnifiedRefundedItemDto
15799
+ */
15800
+ 'quantity': number;
15801
+ /**
15802
+ * Total amount refunded for this line item
15803
+ * @type {number}
15804
+ * @memberof UnifiedRefundedItemDto
15805
+ */
15806
+ 'amount': number;
15807
+ }
15808
+ /**
15809
+ *
15810
+ * @export
15811
+ * @interface UnifiedSubOptionDto
15812
+ */
15813
+ export interface UnifiedSubOptionDto {
15814
+ /**
15815
+ * Unique identifier of the sub-option
15816
+ * @type {string}
15817
+ * @memberof UnifiedSubOptionDto
15818
+ */
15819
+ 'id': string;
15820
+ /**
15821
+ * External identifier of the sub-option from the ordering platform
15822
+ * @type {string}
15823
+ * @memberof UnifiedSubOptionDto
15824
+ */
15825
+ 'externalId': string;
15826
+ /**
15827
+ * Display name of the sub-option
15828
+ * @type {string}
15829
+ * @memberof UnifiedSubOptionDto
15830
+ */
15831
+ 'name': string;
15832
+ /**
15833
+ * Unit price of the sub-option
15834
+ * @type {number}
15835
+ * @memberof UnifiedSubOptionDto
15836
+ */
15837
+ 'unitPrice': number;
15838
+ /**
15839
+ * Actual paid price of the sub-option
15840
+ * @type {number}
15841
+ * @memberof UnifiedSubOptionDto
15842
+ */
15843
+ 'paidPrice': number;
15844
+ /**
15845
+ * Quantity of this sub-option selected
15846
+ * @type {number}
15847
+ * @memberof UnifiedSubOptionDto
15848
+ */
15849
+ 'quantity': number;
15850
+ }
15851
+ /**
15852
+ *
15853
+ * @export
15854
+ * @interface UnlockTerminalDto
15855
+ */
15856
+ export interface UnlockTerminalDto {
15857
+ /**
15858
+ * The ID of the employee unlocking the terminal.
15859
+ * @type {string}
15860
+ * @memberof UnlockTerminalDto
15861
+ */
15862
+ 'employeeId': string;
15863
+ }
15864
+ /**
15865
+ *
15866
+ * @export
15867
+ * @interface UpdateChannelInventoryDto
15868
+ */
15869
+ export interface UpdateChannelInventoryDto {
15870
+ /**
15871
+ * Array of channel inventory updates
15872
+ * @type {Array<ChannelInventoryUpdateDto>}
15873
+ * @memberof UpdateChannelInventoryDto
15874
+ */
15875
+ 'channels': Array<ChannelInventoryUpdateDto>;
15876
+ }
15877
+ /**
15878
+ *
15879
+ * @export
15880
+ * @interface UpdateInvoiceCompanyDto
15881
+ */
15882
+ export interface UpdateInvoiceCompanyDto {
15883
+ /**
15884
+ *
15885
+ * @type {string}
15886
+ * @memberof UpdateInvoiceCompanyDto
15887
+ */
15888
+ 'name'?: string;
15889
+ /**
15890
+ *
15891
+ * @type {string}
15892
+ * @memberof UpdateInvoiceCompanyDto
15893
+ */
15894
+ 'email'?: string;
15895
+ /**
15896
+ *
15897
+ * @type {string}
15898
+ * @memberof UpdateInvoiceCompanyDto
15899
+ */
15900
+ 'countryCode'?: string;
15901
+ /**
15902
+ *
15903
+ * @type {string}
15904
+ * @memberof UpdateInvoiceCompanyDto
15905
+ */
15906
+ 'phone'?: string;
15907
+ /**
15908
+ *
15909
+ * @type {string}
15910
+ * @memberof UpdateInvoiceCompanyDto
15911
+ */
15912
+ 'bic'?: string;
15913
+ /**
15914
+ *
15915
+ * @type {string}
15916
+ * @memberof UpdateInvoiceCompanyDto
15917
+ */
15918
+ 'address'?: string;
15919
+ }
15456
15920
  /**
15457
15921
  *
15458
15922
  * @export
@@ -20388,87 +20852,6 @@ export const EmployeesApiAxiosParamCreator = function (configuration?: Configura
20388
20852
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20389
20853
  localVarRequestOptions.data = serializeDataIfNeeded(createEmployeeAssignmentDto, localVarRequestOptions, configuration)
20390
20854
 
20391
- return {
20392
- url: toPathString(localVarUrlObj),
20393
- options: localVarRequestOptions,
20394
- };
20395
- },
20396
- /**
20397
- *
20398
- * @param {CreateEmployeeDto} createEmployeeDto
20399
- * @param {*} [options] Override http request option.
20400
- * @throws {RequiredError}
20401
- */
20402
- createEmployee: async (createEmployeeDto: CreateEmployeeDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
20403
- // verify required parameter 'createEmployeeDto' is not null or undefined
20404
- assertParamExists('createEmployee', 'createEmployeeDto', createEmployeeDto)
20405
- const localVarPath = `/api/v1/employees`;
20406
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
20407
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20408
- let baseOptions;
20409
- if (configuration) {
20410
- baseOptions = configuration.baseOptions;
20411
- }
20412
-
20413
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
20414
- const localVarHeaderParameter = {} as any;
20415
- const localVarQueryParameter = {} as any;
20416
-
20417
-
20418
-
20419
- localVarHeaderParameter['Content-Type'] = 'application/json';
20420
-
20421
- setSearchParams(localVarUrlObj, localVarQueryParameter);
20422
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20423
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20424
- localVarRequestOptions.data = serializeDataIfNeeded(createEmployeeDto, localVarRequestOptions, configuration)
20425
-
20426
- return {
20427
- url: toPathString(localVarUrlObj),
20428
- options: localVarRequestOptions,
20429
- };
20430
- },
20431
- /**
20432
- *
20433
- * @param {string} merchantId
20434
- * @param {number} [limit]
20435
- * @param {number} [page]
20436
- * @param {*} [options] Override http request option.
20437
- * @throws {RequiredError}
20438
- */
20439
- getEmployees: async (merchantId: string, limit?: number, page?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
20440
- // verify required parameter 'merchantId' is not null or undefined
20441
- assertParamExists('getEmployees', 'merchantId', merchantId)
20442
- const localVarPath = `/api/v1/employees`;
20443
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
20444
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20445
- let baseOptions;
20446
- if (configuration) {
20447
- baseOptions = configuration.baseOptions;
20448
- }
20449
-
20450
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
20451
- const localVarHeaderParameter = {} as any;
20452
- const localVarQueryParameter = {} as any;
20453
-
20454
- if (merchantId !== undefined) {
20455
- localVarQueryParameter['merchantId'] = merchantId;
20456
- }
20457
-
20458
- if (limit !== undefined) {
20459
- localVarQueryParameter['limit'] = limit;
20460
- }
20461
-
20462
- if (page !== undefined) {
20463
- localVarQueryParameter['page'] = page;
20464
- }
20465
-
20466
-
20467
-
20468
- setSearchParams(localVarUrlObj, localVarQueryParameter);
20469
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20470
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20471
-
20472
20855
  return {
20473
20856
  url: toPathString(localVarUrlObj),
20474
20857
  options: localVarRequestOptions,
@@ -20495,28 +20878,6 @@ export const EmployeesApiFp = function(configuration?: Configuration) {
20495
20878
  const localVarAxiosArgs = await localVarAxiosParamCreator.createAssignment(businessId, createEmployeeAssignmentDto, options);
20496
20879
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
20497
20880
  },
20498
- /**
20499
- *
20500
- * @param {CreateEmployeeDto} createEmployeeDto
20501
- * @param {*} [options] Override http request option.
20502
- * @throws {RequiredError}
20503
- */
20504
- async createEmployee(createEmployeeDto: CreateEmployeeDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmployeeResponseDto>> {
20505
- const localVarAxiosArgs = await localVarAxiosParamCreator.createEmployee(createEmployeeDto, options);
20506
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
20507
- },
20508
- /**
20509
- *
20510
- * @param {string} merchantId
20511
- * @param {number} [limit]
20512
- * @param {number} [page]
20513
- * @param {*} [options] Override http request option.
20514
- * @throws {RequiredError}
20515
- */
20516
- async getEmployees(merchantId: string, limit?: number, page?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedEmployeesResponseDto>> {
20517
- const localVarAxiosArgs = await localVarAxiosParamCreator.getEmployees(merchantId, limit, page, options);
20518
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
20519
- },
20520
20881
  }
20521
20882
  };
20522
20883
 
@@ -20537,26 +20898,6 @@ export const EmployeesApiFactory = function (configuration?: Configuration, base
20537
20898
  createAssignment(businessId: number, createEmployeeAssignmentDto: CreateEmployeeAssignmentDto, options?: any): AxiosPromise<EmployeeAssignmentResponseDto> {
20538
20899
  return localVarFp.createAssignment(businessId, createEmployeeAssignmentDto, options).then((request) => request(axios, basePath));
20539
20900
  },
20540
- /**
20541
- *
20542
- * @param {CreateEmployeeDto} createEmployeeDto
20543
- * @param {*} [options] Override http request option.
20544
- * @throws {RequiredError}
20545
- */
20546
- createEmployee(createEmployeeDto: CreateEmployeeDto, options?: any): AxiosPromise<EmployeeResponseDto> {
20547
- return localVarFp.createEmployee(createEmployeeDto, options).then((request) => request(axios, basePath));
20548
- },
20549
- /**
20550
- *
20551
- * @param {string} merchantId
20552
- * @param {number} [limit]
20553
- * @param {number} [page]
20554
- * @param {*} [options] Override http request option.
20555
- * @throws {RequiredError}
20556
- */
20557
- getEmployees(merchantId: string, limit?: number, page?: number, options?: any): AxiosPromise<PaginatedEmployeesResponseDto> {
20558
- return localVarFp.getEmployees(merchantId, limit, page, options).then((request) => request(axios, basePath));
20559
- },
20560
20901
  };
20561
20902
  };
20562
20903
 
@@ -20576,26 +20917,6 @@ export interface EmployeesApiInterface {
20576
20917
  */
20577
20918
  createAssignment(businessId: number, createEmployeeAssignmentDto: CreateEmployeeAssignmentDto, options?: AxiosRequestConfig): AxiosPromise<EmployeeAssignmentResponseDto>;
20578
20919
 
20579
- /**
20580
- *
20581
- * @param {CreateEmployeeDto} createEmployeeDto
20582
- * @param {*} [options] Override http request option.
20583
- * @throws {RequiredError}
20584
- * @memberof EmployeesApiInterface
20585
- */
20586
- createEmployee(createEmployeeDto: CreateEmployeeDto, options?: AxiosRequestConfig): AxiosPromise<EmployeeResponseDto>;
20587
-
20588
- /**
20589
- *
20590
- * @param {string} merchantId
20591
- * @param {number} [limit]
20592
- * @param {number} [page]
20593
- * @param {*} [options] Override http request option.
20594
- * @throws {RequiredError}
20595
- * @memberof EmployeesApiInterface
20596
- */
20597
- getEmployees(merchantId: string, limit?: number, page?: number, options?: AxiosRequestConfig): AxiosPromise<PaginatedEmployeesResponseDto>;
20598
-
20599
20920
  }
20600
20921
 
20601
20922
  /**
@@ -20616,30 +20937,6 @@ export class EmployeesApi extends BaseAPI implements EmployeesApiInterface {
20616
20937
  public createAssignment(businessId: number, createEmployeeAssignmentDto: CreateEmployeeAssignmentDto, options?: AxiosRequestConfig) {
20617
20938
  return EmployeesApiFp(this.configuration).createAssignment(businessId, createEmployeeAssignmentDto, options).then((request) => request(this.axios, this.basePath));
20618
20939
  }
20619
-
20620
- /**
20621
- *
20622
- * @param {CreateEmployeeDto} createEmployeeDto
20623
- * @param {*} [options] Override http request option.
20624
- * @throws {RequiredError}
20625
- * @memberof EmployeesApi
20626
- */
20627
- public createEmployee(createEmployeeDto: CreateEmployeeDto, options?: AxiosRequestConfig) {
20628
- return EmployeesApiFp(this.configuration).createEmployee(createEmployeeDto, options).then((request) => request(this.axios, this.basePath));
20629
- }
20630
-
20631
- /**
20632
- *
20633
- * @param {string} merchantId
20634
- * @param {number} [limit]
20635
- * @param {number} [page]
20636
- * @param {*} [options] Override http request option.
20637
- * @throws {RequiredError}
20638
- * @memberof EmployeesApi
20639
- */
20640
- public getEmployees(merchantId: string, limit?: number, page?: number, options?: AxiosRequestConfig) {
20641
- return EmployeesApiFp(this.configuration).getEmployees(merchantId, limit, page, options).then((request) => request(this.axios, this.basePath));
20642
- }
20643
20940
  }
20644
20941
 
20645
20942
 
@@ -24807,96 +25104,12 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
24807
25104
 
24808
25105
 
24809
25106
 
24810
- localVarHeaderParameter['Content-Type'] = 'application/json';
24811
-
24812
- setSearchParams(localVarUrlObj, localVarQueryParameter);
24813
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
24814
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
24815
- localVarRequestOptions.data = serializeDataIfNeeded(deliveredOrderDto, localVarRequestOptions, configuration)
24816
-
24817
- return {
24818
- url: toPathString(localVarUrlObj),
24819
- options: localVarRequestOptions,
24820
- };
24821
- },
24822
- /**
24823
- *
24824
- * @summary Get all orders across all statuses
24825
- * @param {string} businessIds Comma-separated list of business IDs
24826
- * @param {*} [options] Override http request option.
24827
- * @throws {RequiredError}
24828
- */
24829
- getAllOrdersV2: async (businessIds: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
24830
- // verify required parameter 'businessIds' is not null or undefined
24831
- assertParamExists('getAllOrdersV2', 'businessIds', businessIds)
24832
- const localVarPath = `/api/v2/orders`;
24833
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
24834
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
24835
- let baseOptions;
24836
- if (configuration) {
24837
- baseOptions = configuration.baseOptions;
24838
- }
24839
-
24840
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
24841
- const localVarHeaderParameter = {} as any;
24842
- const localVarQueryParameter = {} as any;
24843
-
24844
- if (businessIds !== undefined) {
24845
- localVarQueryParameter['businessIds'] = businessIds;
24846
- }
24847
-
24848
-
24849
-
24850
- setSearchParams(localVarUrlObj, localVarQueryParameter);
24851
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
24852
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
24853
-
24854
- return {
24855
- url: toPathString(localVarUrlObj),
24856
- options: localVarRequestOptions,
24857
- };
24858
- },
24859
- /**
24860
- * Returns paginated orders sorted by status-specific logic. Database and POS orders are combined and sorted before pagination is applied.
24861
- * @summary Get all orders across all statuses with pagination
24862
- * @param {string} businessIds Comma-separated list of business IDs
24863
- * @param {number} [limit] Number of items per page (max 100)
24864
- * @param {number} [page] Page number (starts from 1)
24865
- * @param {*} [options] Override http request option.
24866
- * @throws {RequiredError}
24867
- */
24868
- getAllOrdersV3: async (businessIds: string, limit?: number, page?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
24869
- // verify required parameter 'businessIds' is not null or undefined
24870
- assertParamExists('getAllOrdersV3', 'businessIds', businessIds)
24871
- const localVarPath = `/api/v3/orders`;
24872
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
24873
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
24874
- let baseOptions;
24875
- if (configuration) {
24876
- baseOptions = configuration.baseOptions;
24877
- }
24878
-
24879
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
24880
- const localVarHeaderParameter = {} as any;
24881
- const localVarQueryParameter = {} as any;
24882
-
24883
- if (limit !== undefined) {
24884
- localVarQueryParameter['limit'] = limit;
24885
- }
24886
-
24887
- if (page !== undefined) {
24888
- localVarQueryParameter['page'] = page;
24889
- }
24890
-
24891
- if (businessIds !== undefined) {
24892
- localVarQueryParameter['businessIds'] = businessIds;
24893
- }
24894
-
24895
-
24896
-
25107
+ localVarHeaderParameter['Content-Type'] = 'application/json';
25108
+
24897
25109
  setSearchParams(localVarUrlObj, localVarQueryParameter);
24898
25110
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
24899
25111
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
25112
+ localVarRequestOptions.data = serializeDataIfNeeded(deliveredOrderDto, localVarRequestOptions, configuration)
24900
25113
 
24901
25114
  return {
24902
25115
  url: toPathString(localVarUrlObj),
@@ -24905,21 +25118,15 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
24905
25118
  },
24906
25119
  /**
24907
25120
  *
24908
- * @summary Get orders by status
24909
- * @param {'pending' | 'in_progress' | 'ready' | 'delivered' | 'rejected' | 'pick_up_by_driver' | 'preorder' | 'accept_by_driver' | 'parked' | 'refunded' | 'draft'} status Order status filter
25121
+ * @summary Get all orders across all statuses
24910
25122
  * @param {string} businessIds Comma-separated list of business IDs
24911
- * @param {string} [posBusinessId] Id of the pos
24912
- * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront'} [extraProvider] Extra attributes to get POS orders
24913
25123
  * @param {*} [options] Override http request option.
24914
25124
  * @throws {RequiredError}
24915
25125
  */
24916
- getOrdersV2: async (status: 'pending' | 'in_progress' | 'ready' | 'delivered' | 'rejected' | 'pick_up_by_driver' | 'preorder' | 'accept_by_driver' | 'parked' | 'refunded' | 'draft', businessIds: string, posBusinessId?: string, extraProvider?: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
24917
- // verify required parameter 'status' is not null or undefined
24918
- assertParamExists('getOrdersV2', 'status', status)
25126
+ getAllOrdersV2: async (businessIds: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
24919
25127
  // verify required parameter 'businessIds' is not null or undefined
24920
- assertParamExists('getOrdersV2', 'businessIds', businessIds)
24921
- const localVarPath = `/api/v2/orders/{status}`
24922
- .replace(`{${"status"}}`, encodeURIComponent(String(status)));
25128
+ assertParamExists('getAllOrdersV2', 'businessIds', businessIds)
25129
+ const localVarPath = `/api/v2/orders`;
24923
25130
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
24924
25131
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
24925
25132
  let baseOptions;
@@ -24931,14 +25138,6 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
24931
25138
  const localVarHeaderParameter = {} as any;
24932
25139
  const localVarQueryParameter = {} as any;
24933
25140
 
24934
- if (posBusinessId !== undefined) {
24935
- localVarQueryParameter['posBusinessId'] = posBusinessId;
24936
- }
24937
-
24938
- if (extraProvider !== undefined) {
24939
- localVarQueryParameter['extraProvider'] = extraProvider;
24940
- }
24941
-
24942
25141
  if (businessIds !== undefined) {
24943
25142
  localVarQueryParameter['businessIds'] = businessIds;
24944
25143
  }
@@ -24955,23 +25154,21 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
24955
25154
  };
24956
25155
  },
24957
25156
  /**
24958
- * Returns paginated orders filtered by status and sorted by status-specific logic. Database and POS orders are combined and sorted before pagination is applied.
24959
- * @summary Get orders by status with pagination
25157
+ *
25158
+ * @summary Get orders by status
24960
25159
  * @param {'pending' | 'in_progress' | 'ready' | 'delivered' | 'rejected' | 'pick_up_by_driver' | 'preorder' | 'accept_by_driver' | 'parked' | 'refunded' | 'draft'} status Order status filter
24961
25160
  * @param {string} businessIds Comma-separated list of business IDs
24962
- * @param {number} [limit] Number of items per page (max 100)
24963
- * @param {number} [page] Page number (starts from 1)
24964
25161
  * @param {string} [posBusinessId] Id of the pos
24965
25162
  * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront'} [extraProvider] Extra attributes to get POS orders
24966
25163
  * @param {*} [options] Override http request option.
24967
25164
  * @throws {RequiredError}
24968
25165
  */
24969
- getOrdersV3: async (status: 'pending' | 'in_progress' | 'ready' | 'delivered' | 'rejected' | 'pick_up_by_driver' | 'preorder' | 'accept_by_driver' | 'parked' | 'refunded' | 'draft', businessIds: string, limit?: number, page?: number, posBusinessId?: string, extraProvider?: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
25166
+ getOrdersV2: async (status: 'pending' | 'in_progress' | 'ready' | 'delivered' | 'rejected' | 'pick_up_by_driver' | 'preorder' | 'accept_by_driver' | 'parked' | 'refunded' | 'draft', businessIds: string, posBusinessId?: string, extraProvider?: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
24970
25167
  // verify required parameter 'status' is not null or undefined
24971
- assertParamExists('getOrdersV3', 'status', status)
25168
+ assertParamExists('getOrdersV2', 'status', status)
24972
25169
  // verify required parameter 'businessIds' is not null or undefined
24973
- assertParamExists('getOrdersV3', 'businessIds', businessIds)
24974
- const localVarPath = `/api/v3/orders/{status}`
25170
+ assertParamExists('getOrdersV2', 'businessIds', businessIds)
25171
+ const localVarPath = `/api/v2/orders/{status}`
24975
25172
  .replace(`{${"status"}}`, encodeURIComponent(String(status)));
24976
25173
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
24977
25174
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -24984,14 +25181,6 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
24984
25181
  const localVarHeaderParameter = {} as any;
24985
25182
  const localVarQueryParameter = {} as any;
24986
25183
 
24987
- if (limit !== undefined) {
24988
- localVarQueryParameter['limit'] = limit;
24989
- }
24990
-
24991
- if (page !== undefined) {
24992
- localVarQueryParameter['page'] = page;
24993
- }
24994
-
24995
25184
  if (posBusinessId !== undefined) {
24996
25185
  localVarQueryParameter['posBusinessId'] = posBusinessId;
24997
25186
  }
@@ -25088,78 +25277,6 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
25088
25277
  options: localVarRequestOptions,
25089
25278
  };
25090
25279
  },
25091
- /**
25092
- *
25093
- * @summary Place an POS order
25094
- * @param {PosOrderPayloadDto} posOrderPayloadDto
25095
- * @param {*} [options] Override http request option.
25096
- * @throws {RequiredError}
25097
- */
25098
- placePosOrderV2: async (posOrderPayloadDto: PosOrderPayloadDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
25099
- // verify required parameter 'posOrderPayloadDto' is not null or undefined
25100
- assertParamExists('placePosOrderV2', 'posOrderPayloadDto', posOrderPayloadDto)
25101
- const localVarPath = `/api/v2/orders/pos/place`;
25102
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
25103
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
25104
- let baseOptions;
25105
- if (configuration) {
25106
- baseOptions = configuration.baseOptions;
25107
- }
25108
-
25109
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
25110
- const localVarHeaderParameter = {} as any;
25111
- const localVarQueryParameter = {} as any;
25112
-
25113
-
25114
-
25115
- localVarHeaderParameter['Content-Type'] = 'application/json';
25116
-
25117
- setSearchParams(localVarUrlObj, localVarQueryParameter);
25118
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
25119
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
25120
- localVarRequestOptions.data = serializeDataIfNeeded(posOrderPayloadDto, localVarRequestOptions, configuration)
25121
-
25122
- return {
25123
- url: toPathString(localVarUrlObj),
25124
- options: localVarRequestOptions,
25125
- };
25126
- },
25127
- /**
25128
- *
25129
- * @summary Place an POS order
25130
- * @param {PosOrderPayloadDto} posOrderPayloadDto
25131
- * @param {*} [options] Override http request option.
25132
- * @throws {RequiredError}
25133
- */
25134
- placePosOrderV3: async (posOrderPayloadDto: PosOrderPayloadDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
25135
- // verify required parameter 'posOrderPayloadDto' is not null or undefined
25136
- assertParamExists('placePosOrderV3', 'posOrderPayloadDto', posOrderPayloadDto)
25137
- const localVarPath = `/api/v3/orders/pos/place`;
25138
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
25139
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
25140
- let baseOptions;
25141
- if (configuration) {
25142
- baseOptions = configuration.baseOptions;
25143
- }
25144
-
25145
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
25146
- const localVarHeaderParameter = {} as any;
25147
- const localVarQueryParameter = {} as any;
25148
-
25149
-
25150
-
25151
- localVarHeaderParameter['Content-Type'] = 'application/json';
25152
-
25153
- setSearchParams(localVarUrlObj, localVarQueryParameter);
25154
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
25155
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
25156
- localVarRequestOptions.data = serializeDataIfNeeded(posOrderPayloadDto, localVarRequestOptions, configuration)
25157
-
25158
- return {
25159
- url: toPathString(localVarUrlObj),
25160
- options: localVarRequestOptions,
25161
- };
25162
- },
25163
25280
  /**
25164
25281
  *
25165
25282
  * @summary Place an POS order
@@ -25268,42 +25385,6 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
25268
25385
  options: localVarRequestOptions,
25269
25386
  };
25270
25387
  },
25271
- /**
25272
- *
25273
- * @summary Send a POS order ticket
25274
- * @param {SendPosOrderTicketDto} sendPosOrderTicketDto
25275
- * @param {*} [options] Override http request option.
25276
- * @throws {RequiredError}
25277
- */
25278
- sendPosOrderTicketV2: async (sendPosOrderTicketDto: SendPosOrderTicketDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
25279
- // verify required parameter 'sendPosOrderTicketDto' is not null or undefined
25280
- assertParamExists('sendPosOrderTicketV2', 'sendPosOrderTicketDto', sendPosOrderTicketDto)
25281
- const localVarPath = `/api/v2/orders/pos/ticket`;
25282
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
25283
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
25284
- let baseOptions;
25285
- if (configuration) {
25286
- baseOptions = configuration.baseOptions;
25287
- }
25288
-
25289
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
25290
- const localVarHeaderParameter = {} as any;
25291
- const localVarQueryParameter = {} as any;
25292
-
25293
-
25294
-
25295
- localVarHeaderParameter['Content-Type'] = 'application/json';
25296
-
25297
- setSearchParams(localVarUrlObj, localVarQueryParameter);
25298
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
25299
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
25300
- localVarRequestOptions.data = serializeDataIfNeeded(sendPosOrderTicketDto, localVarRequestOptions, configuration)
25301
-
25302
- return {
25303
- url: toPathString(localVarUrlObj),
25304
- options: localVarRequestOptions,
25305
- };
25306
- },
25307
25388
  /**
25308
25389
  *
25309
25390
  * @summary Update a POS order status
@@ -25401,23 +25482,10 @@ export const OrdersApiFp = function(configuration?: Configuration) {
25401
25482
  * @param {*} [options] Override http request option.
25402
25483
  * @throws {RequiredError}
25403
25484
  */
25404
- async getAllOrdersV2(businessIds: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderResponseDto>>> {
25485
+ async getAllOrdersV2(businessIds: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UnifiedOrderResponseDto>>> {
25405
25486
  const localVarAxiosArgs = await localVarAxiosParamCreator.getAllOrdersV2(businessIds, options);
25406
25487
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
25407
25488
  },
25408
- /**
25409
- * Returns paginated orders sorted by status-specific logic. Database and POS orders are combined and sorted before pagination is applied.
25410
- * @summary Get all orders across all statuses with pagination
25411
- * @param {string} businessIds Comma-separated list of business IDs
25412
- * @param {number} [limit] Number of items per page (max 100)
25413
- * @param {number} [page] Page number (starts from 1)
25414
- * @param {*} [options] Override http request option.
25415
- * @throws {RequiredError}
25416
- */
25417
- async getAllOrdersV3(businessIds: string, limit?: number, page?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedOrderResponseDto>> {
25418
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAllOrdersV3(businessIds, limit, page, options);
25419
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
25420
- },
25421
25489
  /**
25422
25490
  *
25423
25491
  * @summary Get orders by status
@@ -25428,26 +25496,10 @@ export const OrdersApiFp = function(configuration?: Configuration) {
25428
25496
  * @param {*} [options] Override http request option.
25429
25497
  * @throws {RequiredError}
25430
25498
  */
25431
- async getOrdersV2(status: 'pending' | 'in_progress' | 'ready' | 'delivered' | 'rejected' | 'pick_up_by_driver' | 'preorder' | 'accept_by_driver' | 'parked' | 'refunded' | 'draft', businessIds: string, posBusinessId?: string, extraProvider?: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderResponseDto>>> {
25499
+ async getOrdersV2(status: 'pending' | 'in_progress' | 'ready' | 'delivered' | 'rejected' | 'pick_up_by_driver' | 'preorder' | 'accept_by_driver' | 'parked' | 'refunded' | 'draft', businessIds: string, posBusinessId?: string, extraProvider?: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UnifiedOrderResponseDto>>> {
25432
25500
  const localVarAxiosArgs = await localVarAxiosParamCreator.getOrdersV2(status, businessIds, posBusinessId, extraProvider, options);
25433
25501
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
25434
25502
  },
25435
- /**
25436
- * Returns paginated orders filtered by status and sorted by status-specific logic. Database and POS orders are combined and sorted before pagination is applied.
25437
- * @summary Get orders by status with pagination
25438
- * @param {'pending' | 'in_progress' | 'ready' | 'delivered' | 'rejected' | 'pick_up_by_driver' | 'preorder' | 'accept_by_driver' | 'parked' | 'refunded' | 'draft'} status Order status filter
25439
- * @param {string} businessIds Comma-separated list of business IDs
25440
- * @param {number} [limit] Number of items per page (max 100)
25441
- * @param {number} [page] Page number (starts from 1)
25442
- * @param {string} [posBusinessId] Id of the pos
25443
- * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront'} [extraProvider] Extra attributes to get POS orders
25444
- * @param {*} [options] Override http request option.
25445
- * @throws {RequiredError}
25446
- */
25447
- async getOrdersV3(status: 'pending' | 'in_progress' | 'ready' | 'delivered' | 'rejected' | 'pick_up_by_driver' | 'preorder' | 'accept_by_driver' | 'parked' | 'refunded' | 'draft', businessIds: string, limit?: number, page?: number, posBusinessId?: string, extraProvider?: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedOrderResponseDto>> {
25448
- const localVarAxiosArgs = await localVarAxiosParamCreator.getOrdersV3(status, businessIds, limit, page, posBusinessId, extraProvider, options);
25449
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
25450
- },
25451
25503
  /**
25452
25504
  *
25453
25505
  * @summary Get all Pos park order
@@ -25470,28 +25522,6 @@ export const OrdersApiFp = function(configuration?: Configuration) {
25470
25522
  const localVarAxiosArgs = await localVarAxiosParamCreator.markOrderAsReady(readyOrderDto, options);
25471
25523
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
25472
25524
  },
25473
- /**
25474
- *
25475
- * @summary Place an POS order
25476
- * @param {PosOrderPayloadDto} posOrderPayloadDto
25477
- * @param {*} [options] Override http request option.
25478
- * @throws {RequiredError}
25479
- */
25480
- async placePosOrderV2(posOrderPayloadDto: PosOrderPayloadDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PosOrderDto>> {
25481
- const localVarAxiosArgs = await localVarAxiosParamCreator.placePosOrderV2(posOrderPayloadDto, options);
25482
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
25483
- },
25484
- /**
25485
- *
25486
- * @summary Place an POS order
25487
- * @param {PosOrderPayloadDto} posOrderPayloadDto
25488
- * @param {*} [options] Override http request option.
25489
- * @throws {RequiredError}
25490
- */
25491
- async placePosOrderV3(posOrderPayloadDto: PosOrderPayloadDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PosOrderDto>> {
25492
- const localVarAxiosArgs = await localVarAxiosParamCreator.placePosOrderV3(posOrderPayloadDto, options);
25493
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
25494
- },
25495
25525
  /**
25496
25526
  *
25497
25527
  * @summary Place an POS order
@@ -25525,17 +25555,6 @@ export const OrdersApiFp = function(configuration?: Configuration) {
25525
25555
  const localVarAxiosArgs = await localVarAxiosParamCreator.rejectOrder(rejectOrderDto, options);
25526
25556
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
25527
25557
  },
25528
- /**
25529
- *
25530
- * @summary Send a POS order ticket
25531
- * @param {SendPosOrderTicketDto} sendPosOrderTicketDto
25532
- * @param {*} [options] Override http request option.
25533
- * @throws {RequiredError}
25534
- */
25535
- async sendPosOrderTicketV2(sendPosOrderTicketDto: SendPosOrderTicketDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PosOrderDto>> {
25536
- const localVarAxiosArgs = await localVarAxiosParamCreator.sendPosOrderTicketV2(sendPosOrderTicketDto, options);
25537
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
25538
- },
25539
25558
  /**
25540
25559
  *
25541
25560
  * @summary Update a POS order status
@@ -25604,21 +25623,9 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
25604
25623
  * @param {*} [options] Override http request option.
25605
25624
  * @throws {RequiredError}
25606
25625
  */
25607
- getAllOrdersV2(businessIds: string, options?: any): AxiosPromise<Array<OrderResponseDto>> {
25626
+ getAllOrdersV2(businessIds: string, options?: any): AxiosPromise<Array<UnifiedOrderResponseDto>> {
25608
25627
  return localVarFp.getAllOrdersV2(businessIds, options).then((request) => request(axios, basePath));
25609
25628
  },
25610
- /**
25611
- * Returns paginated orders sorted by status-specific logic. Database and POS orders are combined and sorted before pagination is applied.
25612
- * @summary Get all orders across all statuses with pagination
25613
- * @param {string} businessIds Comma-separated list of business IDs
25614
- * @param {number} [limit] Number of items per page (max 100)
25615
- * @param {number} [page] Page number (starts from 1)
25616
- * @param {*} [options] Override http request option.
25617
- * @throws {RequiredError}
25618
- */
25619
- getAllOrdersV3(businessIds: string, limit?: number, page?: number, options?: any): AxiosPromise<PaginatedOrderResponseDto> {
25620
- return localVarFp.getAllOrdersV3(businessIds, limit, page, options).then((request) => request(axios, basePath));
25621
- },
25622
25629
  /**
25623
25630
  *
25624
25631
  * @summary Get orders by status
@@ -25629,24 +25636,9 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
25629
25636
  * @param {*} [options] Override http request option.
25630
25637
  * @throws {RequiredError}
25631
25638
  */
25632
- getOrdersV2(status: 'pending' | 'in_progress' | 'ready' | 'delivered' | 'rejected' | 'pick_up_by_driver' | 'preorder' | 'accept_by_driver' | 'parked' | 'refunded' | 'draft', businessIds: string, posBusinessId?: string, extraProvider?: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront', options?: any): AxiosPromise<Array<OrderResponseDto>> {
25639
+ getOrdersV2(status: 'pending' | 'in_progress' | 'ready' | 'delivered' | 'rejected' | 'pick_up_by_driver' | 'preorder' | 'accept_by_driver' | 'parked' | 'refunded' | 'draft', businessIds: string, posBusinessId?: string, extraProvider?: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront', options?: any): AxiosPromise<Array<UnifiedOrderResponseDto>> {
25633
25640
  return localVarFp.getOrdersV2(status, businessIds, posBusinessId, extraProvider, options).then((request) => request(axios, basePath));
25634
25641
  },
25635
- /**
25636
- * Returns paginated orders filtered by status and sorted by status-specific logic. Database and POS orders are combined and sorted before pagination is applied.
25637
- * @summary Get orders by status with pagination
25638
- * @param {'pending' | 'in_progress' | 'ready' | 'delivered' | 'rejected' | 'pick_up_by_driver' | 'preorder' | 'accept_by_driver' | 'parked' | 'refunded' | 'draft'} status Order status filter
25639
- * @param {string} businessIds Comma-separated list of business IDs
25640
- * @param {number} [limit] Number of items per page (max 100)
25641
- * @param {number} [page] Page number (starts from 1)
25642
- * @param {string} [posBusinessId] Id of the pos
25643
- * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront'} [extraProvider] Extra attributes to get POS orders
25644
- * @param {*} [options] Override http request option.
25645
- * @throws {RequiredError}
25646
- */
25647
- getOrdersV3(status: 'pending' | 'in_progress' | 'ready' | 'delivered' | 'rejected' | 'pick_up_by_driver' | 'preorder' | 'accept_by_driver' | 'parked' | 'refunded' | 'draft', businessIds: string, limit?: number, page?: number, posBusinessId?: string, extraProvider?: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront', options?: any): AxiosPromise<PaginatedOrderResponseDto> {
25648
- return localVarFp.getOrdersV3(status, businessIds, limit, page, posBusinessId, extraProvider, options).then((request) => request(axios, basePath));
25649
- },
25650
25642
  /**
25651
25643
  *
25652
25644
  * @summary Get all Pos park order
@@ -25667,26 +25659,6 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
25667
25659
  markOrderAsReady(readyOrderDto: ReadyOrderDto, options?: any): AxiosPromise<OrderStatusResponseDto> {
25668
25660
  return localVarFp.markOrderAsReady(readyOrderDto, options).then((request) => request(axios, basePath));
25669
25661
  },
25670
- /**
25671
- *
25672
- * @summary Place an POS order
25673
- * @param {PosOrderPayloadDto} posOrderPayloadDto
25674
- * @param {*} [options] Override http request option.
25675
- * @throws {RequiredError}
25676
- */
25677
- placePosOrderV2(posOrderPayloadDto: PosOrderPayloadDto, options?: any): AxiosPromise<PosOrderDto> {
25678
- return localVarFp.placePosOrderV2(posOrderPayloadDto, options).then((request) => request(axios, basePath));
25679
- },
25680
- /**
25681
- *
25682
- * @summary Place an POS order
25683
- * @param {PosOrderPayloadDto} posOrderPayloadDto
25684
- * @param {*} [options] Override http request option.
25685
- * @throws {RequiredError}
25686
- */
25687
- placePosOrderV3(posOrderPayloadDto: PosOrderPayloadDto, options?: any): AxiosPromise<PosOrderDto> {
25688
- return localVarFp.placePosOrderV3(posOrderPayloadDto, options).then((request) => request(axios, basePath));
25689
- },
25690
25662
  /**
25691
25663
  *
25692
25664
  * @summary Place an POS order
@@ -25717,16 +25689,6 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
25717
25689
  rejectOrder(rejectOrderDto: RejectOrderDto, options?: any): AxiosPromise<OrderStatusResponseDto> {
25718
25690
  return localVarFp.rejectOrder(rejectOrderDto, options).then((request) => request(axios, basePath));
25719
25691
  },
25720
- /**
25721
- *
25722
- * @summary Send a POS order ticket
25723
- * @param {SendPosOrderTicketDto} sendPosOrderTicketDto
25724
- * @param {*} [options] Override http request option.
25725
- * @throws {RequiredError}
25726
- */
25727
- sendPosOrderTicketV2(sendPosOrderTicketDto: SendPosOrderTicketDto, options?: any): AxiosPromise<PosOrderDto> {
25728
- return localVarFp.sendPosOrderTicketV2(sendPosOrderTicketDto, options).then((request) => request(axios, basePath));
25729
- },
25730
25692
  /**
25731
25693
  *
25732
25694
  * @summary Update a POS order status
@@ -25794,19 +25756,7 @@ export interface OrdersApiInterface {
25794
25756
  * @throws {RequiredError}
25795
25757
  * @memberof OrdersApiInterface
25796
25758
  */
25797
- getAllOrdersV2(businessIds: string, options?: AxiosRequestConfig): AxiosPromise<Array<OrderResponseDto>>;
25798
-
25799
- /**
25800
- * Returns paginated orders sorted by status-specific logic. Database and POS orders are combined and sorted before pagination is applied.
25801
- * @summary Get all orders across all statuses with pagination
25802
- * @param {string} businessIds Comma-separated list of business IDs
25803
- * @param {number} [limit] Number of items per page (max 100)
25804
- * @param {number} [page] Page number (starts from 1)
25805
- * @param {*} [options] Override http request option.
25806
- * @throws {RequiredError}
25807
- * @memberof OrdersApiInterface
25808
- */
25809
- getAllOrdersV3(businessIds: string, limit?: number, page?: number, options?: AxiosRequestConfig): AxiosPromise<PaginatedOrderResponseDto>;
25759
+ getAllOrdersV2(businessIds: string, options?: AxiosRequestConfig): AxiosPromise<Array<UnifiedOrderResponseDto>>;
25810
25760
 
25811
25761
  /**
25812
25762
  *
@@ -25819,22 +25769,7 @@ export interface OrdersApiInterface {
25819
25769
  * @throws {RequiredError}
25820
25770
  * @memberof OrdersApiInterface
25821
25771
  */
25822
- getOrdersV2(status: 'pending' | 'in_progress' | 'ready' | 'delivered' | 'rejected' | 'pick_up_by_driver' | 'preorder' | 'accept_by_driver' | 'parked' | 'refunded' | 'draft', businessIds: string, posBusinessId?: string, extraProvider?: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront', options?: AxiosRequestConfig): AxiosPromise<Array<OrderResponseDto>>;
25823
-
25824
- /**
25825
- * Returns paginated orders filtered by status and sorted by status-specific logic. Database and POS orders are combined and sorted before pagination is applied.
25826
- * @summary Get orders by status with pagination
25827
- * @param {'pending' | 'in_progress' | 'ready' | 'delivered' | 'rejected' | 'pick_up_by_driver' | 'preorder' | 'accept_by_driver' | 'parked' | 'refunded' | 'draft'} status Order status filter
25828
- * @param {string} businessIds Comma-separated list of business IDs
25829
- * @param {number} [limit] Number of items per page (max 100)
25830
- * @param {number} [page] Page number (starts from 1)
25831
- * @param {string} [posBusinessId] Id of the pos
25832
- * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront'} [extraProvider] Extra attributes to get POS orders
25833
- * @param {*} [options] Override http request option.
25834
- * @throws {RequiredError}
25835
- * @memberof OrdersApiInterface
25836
- */
25837
- getOrdersV3(status: 'pending' | 'in_progress' | 'ready' | 'delivered' | 'rejected' | 'pick_up_by_driver' | 'preorder' | 'accept_by_driver' | 'parked' | 'refunded' | 'draft', businessIds: string, limit?: number, page?: number, posBusinessId?: string, extraProvider?: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront', options?: AxiosRequestConfig): AxiosPromise<PaginatedOrderResponseDto>;
25772
+ getOrdersV2(status: 'pending' | 'in_progress' | 'ready' | 'delivered' | 'rejected' | 'pick_up_by_driver' | 'preorder' | 'accept_by_driver' | 'parked' | 'refunded' | 'draft', businessIds: string, posBusinessId?: string, extraProvider?: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront', options?: AxiosRequestConfig): AxiosPromise<Array<UnifiedOrderResponseDto>>;
25838
25773
 
25839
25774
  /**
25840
25775
  *
@@ -25856,26 +25791,6 @@ export interface OrdersApiInterface {
25856
25791
  */
25857
25792
  markOrderAsReady(readyOrderDto: ReadyOrderDto, options?: AxiosRequestConfig): AxiosPromise<OrderStatusResponseDto>;
25858
25793
 
25859
- /**
25860
- *
25861
- * @summary Place an POS order
25862
- * @param {PosOrderPayloadDto} posOrderPayloadDto
25863
- * @param {*} [options] Override http request option.
25864
- * @throws {RequiredError}
25865
- * @memberof OrdersApiInterface
25866
- */
25867
- placePosOrderV2(posOrderPayloadDto: PosOrderPayloadDto, options?: AxiosRequestConfig): AxiosPromise<PosOrderDto>;
25868
-
25869
- /**
25870
- *
25871
- * @summary Place an POS order
25872
- * @param {PosOrderPayloadDto} posOrderPayloadDto
25873
- * @param {*} [options] Override http request option.
25874
- * @throws {RequiredError}
25875
- * @memberof OrdersApiInterface
25876
- */
25877
- placePosOrderV3(posOrderPayloadDto: PosOrderPayloadDto, options?: AxiosRequestConfig): AxiosPromise<PosOrderDto>;
25878
-
25879
25794
  /**
25880
25795
  *
25881
25796
  * @summary Place an POS order
@@ -25904,17 +25819,7 @@ export interface OrdersApiInterface {
25904
25819
  * @throws {RequiredError}
25905
25820
  * @memberof OrdersApiInterface
25906
25821
  */
25907
- rejectOrder(rejectOrderDto: RejectOrderDto, options?: AxiosRequestConfig): AxiosPromise<OrderStatusResponseDto>;
25908
-
25909
- /**
25910
- *
25911
- * @summary Send a POS order ticket
25912
- * @param {SendPosOrderTicketDto} sendPosOrderTicketDto
25913
- * @param {*} [options] Override http request option.
25914
- * @throws {RequiredError}
25915
- * @memberof OrdersApiInterface
25916
- */
25917
- sendPosOrderTicketV2(sendPosOrderTicketDto: SendPosOrderTicketDto, options?: AxiosRequestConfig): AxiosPromise<PosOrderDto>;
25822
+ rejectOrder(rejectOrderDto: RejectOrderDto, options?: AxiosRequestConfig): AxiosPromise<OrderStatusResponseDto>;
25918
25823
 
25919
25824
  /**
25920
25825
  *
@@ -25995,20 +25900,6 @@ export class OrdersApi extends BaseAPI implements OrdersApiInterface {
25995
25900
  return OrdersApiFp(this.configuration).getAllOrdersV2(businessIds, options).then((request) => request(this.axios, this.basePath));
25996
25901
  }
25997
25902
 
25998
- /**
25999
- * Returns paginated orders sorted by status-specific logic. Database and POS orders are combined and sorted before pagination is applied.
26000
- * @summary Get all orders across all statuses with pagination
26001
- * @param {string} businessIds Comma-separated list of business IDs
26002
- * @param {number} [limit] Number of items per page (max 100)
26003
- * @param {number} [page] Page number (starts from 1)
26004
- * @param {*} [options] Override http request option.
26005
- * @throws {RequiredError}
26006
- * @memberof OrdersApi
26007
- */
26008
- public getAllOrdersV3(businessIds: string, limit?: number, page?: number, options?: AxiosRequestConfig) {
26009
- return OrdersApiFp(this.configuration).getAllOrdersV3(businessIds, limit, page, options).then((request) => request(this.axios, this.basePath));
26010
- }
26011
-
26012
25903
  /**
26013
25904
  *
26014
25905
  * @summary Get orders by status
@@ -26024,23 +25915,6 @@ export class OrdersApi extends BaseAPI implements OrdersApiInterface {
26024
25915
  return OrdersApiFp(this.configuration).getOrdersV2(status, businessIds, posBusinessId, extraProvider, options).then((request) => request(this.axios, this.basePath));
26025
25916
  }
26026
25917
 
26027
- /**
26028
- * Returns paginated orders filtered by status and sorted by status-specific logic. Database and POS orders are combined and sorted before pagination is applied.
26029
- * @summary Get orders by status with pagination
26030
- * @param {'pending' | 'in_progress' | 'ready' | 'delivered' | 'rejected' | 'pick_up_by_driver' | 'preorder' | 'accept_by_driver' | 'parked' | 'refunded' | 'draft'} status Order status filter
26031
- * @param {string} businessIds Comma-separated list of business IDs
26032
- * @param {number} [limit] Number of items per page (max 100)
26033
- * @param {number} [page] Page number (starts from 1)
26034
- * @param {string} [posBusinessId] Id of the pos
26035
- * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront'} [extraProvider] Extra attributes to get POS orders
26036
- * @param {*} [options] Override http request option.
26037
- * @throws {RequiredError}
26038
- * @memberof OrdersApi
26039
- */
26040
- public getOrdersV3(status: 'pending' | 'in_progress' | 'ready' | 'delivered' | 'rejected' | 'pick_up_by_driver' | 'preorder' | 'accept_by_driver' | 'parked' | 'refunded' | 'draft', businessIds: string, limit?: number, page?: number, posBusinessId?: string, extraProvider?: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront', options?: AxiosRequestConfig) {
26041
- return OrdersApiFp(this.configuration).getOrdersV3(status, businessIds, limit, page, posBusinessId, extraProvider, options).then((request) => request(this.axios, this.basePath));
26042
- }
26043
-
26044
25918
  /**
26045
25919
  *
26046
25920
  * @summary Get all Pos park order
@@ -26065,30 +25939,6 @@ export class OrdersApi extends BaseAPI implements OrdersApiInterface {
26065
25939
  return OrdersApiFp(this.configuration).markOrderAsReady(readyOrderDto, options).then((request) => request(this.axios, this.basePath));
26066
25940
  }
26067
25941
 
26068
- /**
26069
- *
26070
- * @summary Place an POS order
26071
- * @param {PosOrderPayloadDto} posOrderPayloadDto
26072
- * @param {*} [options] Override http request option.
26073
- * @throws {RequiredError}
26074
- * @memberof OrdersApi
26075
- */
26076
- public placePosOrderV2(posOrderPayloadDto: PosOrderPayloadDto, options?: AxiosRequestConfig) {
26077
- return OrdersApiFp(this.configuration).placePosOrderV2(posOrderPayloadDto, options).then((request) => request(this.axios, this.basePath));
26078
- }
26079
-
26080
- /**
26081
- *
26082
- * @summary Place an POS order
26083
- * @param {PosOrderPayloadDto} posOrderPayloadDto
26084
- * @param {*} [options] Override http request option.
26085
- * @throws {RequiredError}
26086
- * @memberof OrdersApi
26087
- */
26088
- public placePosOrderV3(posOrderPayloadDto: PosOrderPayloadDto, options?: AxiosRequestConfig) {
26089
- return OrdersApiFp(this.configuration).placePosOrderV3(posOrderPayloadDto, options).then((request) => request(this.axios, this.basePath));
26090
- }
26091
-
26092
25942
  /**
26093
25943
  *
26094
25944
  * @summary Place an POS order
@@ -26125,18 +25975,6 @@ export class OrdersApi extends BaseAPI implements OrdersApiInterface {
26125
25975
  return OrdersApiFp(this.configuration).rejectOrder(rejectOrderDto, options).then((request) => request(this.axios, this.basePath));
26126
25976
  }
26127
25977
 
26128
- /**
26129
- *
26130
- * @summary Send a POS order ticket
26131
- * @param {SendPosOrderTicketDto} sendPosOrderTicketDto
26132
- * @param {*} [options] Override http request option.
26133
- * @throws {RequiredError}
26134
- * @memberof OrdersApi
26135
- */
26136
- public sendPosOrderTicketV2(sendPosOrderTicketDto: SendPosOrderTicketDto, options?: AxiosRequestConfig) {
26137
- return OrdersApiFp(this.configuration).sendPosOrderTicketV2(sendPosOrderTicketDto, options).then((request) => request(this.axios, this.basePath));
26138
- }
26139
-
26140
25978
  /**
26141
25979
  *
26142
25980
  * @summary Update a POS order status
@@ -30507,243 +30345,24 @@ export class RefundsApi extends BaseAPI implements RefundsApiInterface {
30507
30345
  * ReportApi - axios parameter creator
30508
30346
  * @export
30509
30347
  */
30510
- export const ReportApiAxiosParamCreator = function (configuration?: Configuration) {
30511
- return {
30512
- /**
30513
- *
30514
- * @summary Get end-of-day financial report for POS
30515
- * @param {Array<number>} businessIds Business ID selected
30516
- * @param {TimeSpan} [timeSpan] Time span
30517
- * @param {string} [start] Start date
30518
- * @param {string} [end] End date
30519
- * @param {*} [options] Override http request option.
30520
- * @throws {RequiredError}
30521
- */
30522
- getPOSEndOfDayReport: async (businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30523
- // verify required parameter 'businessIds' is not null or undefined
30524
- assertParamExists('getPOSEndOfDayReport', 'businessIds', businessIds)
30525
- const localVarPath = `/api/v1/report/pos/end-of-day`;
30526
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
30527
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30528
- let baseOptions;
30529
- if (configuration) {
30530
- baseOptions = configuration.baseOptions;
30531
- }
30532
-
30533
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
30534
- const localVarHeaderParameter = {} as any;
30535
- const localVarQueryParameter = {} as any;
30536
-
30537
- if (timeSpan !== undefined) {
30538
- localVarQueryParameter['timeSpan'] = timeSpan;
30539
- }
30540
-
30541
- if (start !== undefined) {
30542
- localVarQueryParameter['start'] = start;
30543
- }
30544
-
30545
- if (end !== undefined) {
30546
- localVarQueryParameter['end'] = end;
30547
- }
30548
-
30549
- if (businessIds) {
30550
- localVarQueryParameter['businessIds'] = businessIds;
30551
- }
30552
-
30553
-
30554
-
30555
- setSearchParams(localVarUrlObj, localVarQueryParameter);
30556
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30557
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30558
-
30559
- return {
30560
- url: toPathString(localVarUrlObj),
30561
- options: localVarRequestOptions,
30562
- };
30563
- },
30564
- /**
30565
- *
30566
- * @summary Get end-of-day financial report for POS (V2)
30567
- * @param {Array<number>} businessIds Business ID selected
30568
- * @param {TimeSpan} [timeSpan] Time span
30569
- * @param {string} [start] Start date
30570
- * @param {string} [end] End date
30571
- * @param {*} [options] Override http request option.
30572
- * @throws {RequiredError}
30573
- */
30574
- getPOSEndOfDayReportV2: async (businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30575
- // verify required parameter 'businessIds' is not null or undefined
30576
- assertParamExists('getPOSEndOfDayReportV2', 'businessIds', businessIds)
30577
- const localVarPath = `/api/v2/report/pos/end-of-day`;
30578
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
30579
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30580
- let baseOptions;
30581
- if (configuration) {
30582
- baseOptions = configuration.baseOptions;
30583
- }
30584
-
30585
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
30586
- const localVarHeaderParameter = {} as any;
30587
- const localVarQueryParameter = {} as any;
30588
-
30589
- if (timeSpan !== undefined) {
30590
- localVarQueryParameter['timeSpan'] = timeSpan;
30591
- }
30592
-
30593
- if (start !== undefined) {
30594
- localVarQueryParameter['start'] = start;
30595
- }
30596
-
30597
- if (end !== undefined) {
30598
- localVarQueryParameter['end'] = end;
30599
- }
30600
-
30601
- if (businessIds) {
30602
- localVarQueryParameter['businessIds'] = businessIds;
30603
- }
30604
-
30605
-
30606
-
30607
- setSearchParams(localVarUrlObj, localVarQueryParameter);
30608
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30609
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30610
-
30611
- return {
30612
- url: toPathString(localVarUrlObj),
30613
- options: localVarRequestOptions,
30614
- };
30615
- },
30616
- /**
30617
- *
30618
- * @summary Get end-of-day financial report for POS (V3)
30619
- * @param {Array<number>} businessIds Business ID selected
30620
- * @param {TimeSpan} [timeSpan] Time span
30621
- * @param {string} [start] Start date
30622
- * @param {string} [end] End date
30623
- * @param {string} [timezone] Timezone (default is \&quot;UTC\&quot;)
30624
- * @param {*} [options] Override http request option.
30625
- * @throws {RequiredError}
30626
- */
30627
- getPOSEndOfDayReportV3: async (businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, timezone?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30628
- // verify required parameter 'businessIds' is not null or undefined
30629
- assertParamExists('getPOSEndOfDayReportV3', 'businessIds', businessIds)
30630
- const localVarPath = `/api/v3/report/pos/end-of-day`;
30631
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
30632
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30633
- let baseOptions;
30634
- if (configuration) {
30635
- baseOptions = configuration.baseOptions;
30636
- }
30637
-
30638
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
30639
- const localVarHeaderParameter = {} as any;
30640
- const localVarQueryParameter = {} as any;
30641
-
30642
- if (timeSpan !== undefined) {
30643
- localVarQueryParameter['timeSpan'] = timeSpan;
30644
- }
30645
-
30646
- if (start !== undefined) {
30647
- localVarQueryParameter['start'] = start;
30648
- }
30649
-
30650
- if (end !== undefined) {
30651
- localVarQueryParameter['end'] = end;
30652
- }
30653
-
30654
- if (businessIds) {
30655
- localVarQueryParameter['businessIds'] = businessIds;
30656
- }
30657
-
30658
- if (timezone !== undefined) {
30659
- localVarQueryParameter['timezone'] = timezone;
30660
- }
30661
-
30662
-
30663
-
30664
- setSearchParams(localVarUrlObj, localVarQueryParameter);
30665
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30666
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30667
-
30668
- return {
30669
- url: toPathString(localVarUrlObj),
30670
- options: localVarRequestOptions,
30671
- };
30672
- },
30673
- /**
30674
- *
30675
- * @summary Get end-of-day financial report for POS (V4)
30676
- * @param {Array<number>} businessIds Business ID selected
30677
- * @param {TimeSpan} [timeSpan] Time span
30678
- * @param {string} [start] Start date
30679
- * @param {string} [end] End date
30680
- * @param {string} [timezone] Timezone (default is \&quot;UTC\&quot;)
30681
- * @param {*} [options] Override http request option.
30682
- * @throws {RequiredError}
30683
- */
30684
- getPOSEndOfDayReportV4: async (businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, timezone?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30685
- // verify required parameter 'businessIds' is not null or undefined
30686
- assertParamExists('getPOSEndOfDayReportV4', 'businessIds', businessIds)
30687
- const localVarPath = `/api/v4/report/pos/end-of-day`;
30688
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
30689
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30690
- let baseOptions;
30691
- if (configuration) {
30692
- baseOptions = configuration.baseOptions;
30693
- }
30694
-
30695
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
30696
- const localVarHeaderParameter = {} as any;
30697
- const localVarQueryParameter = {} as any;
30698
-
30699
- if (timeSpan !== undefined) {
30700
- localVarQueryParameter['timeSpan'] = timeSpan;
30701
- }
30702
-
30703
- if (start !== undefined) {
30704
- localVarQueryParameter['start'] = start;
30705
- }
30706
-
30707
- if (end !== undefined) {
30708
- localVarQueryParameter['end'] = end;
30709
- }
30710
-
30711
- if (businessIds) {
30712
- localVarQueryParameter['businessIds'] = businessIds;
30713
- }
30714
-
30715
- if (timezone !== undefined) {
30716
- localVarQueryParameter['timezone'] = timezone;
30717
- }
30718
-
30719
-
30720
-
30721
- setSearchParams(localVarUrlObj, localVarQueryParameter);
30722
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30723
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30724
-
30725
- return {
30726
- url: toPathString(localVarUrlObj),
30727
- options: localVarRequestOptions,
30728
- };
30729
- },
30348
+ export const ReportApiAxiosParamCreator = function (configuration?: Configuration) {
30349
+ return {
30730
30350
  /**
30731
30351
  *
30732
- * @summary Send end-of-day report via email
30352
+ * @summary Get end-of-day financial report (V5)
30733
30353
  * @param {Array<number>} businessIds Business ID selected
30734
- * @param {SendReportEmailDto} sendReportEmailDto
30735
30354
  * @param {TimeSpan} [timeSpan] Time span
30736
30355
  * @param {string} [start] Start date
30737
30356
  * @param {string} [end] End date
30357
+ * @param {string} [timezone] Timezone (default is \&quot;UTC\&quot;)
30358
+ * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront'} [provider] Order source provider (default is MunchiPos)
30738
30359
  * @param {*} [options] Override http request option.
30739
30360
  * @throws {RequiredError}
30740
30361
  */
30741
- sendReportEmail: async (businessIds: Array<number>, sendReportEmailDto: SendReportEmailDto, timeSpan?: TimeSpan, start?: string, end?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30362
+ getEndOfDayReportV5: async (businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, timezone?: string, provider?: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30742
30363
  // verify required parameter 'businessIds' is not null or undefined
30743
- assertParamExists('sendReportEmail', 'businessIds', businessIds)
30744
- // verify required parameter 'sendReportEmailDto' is not null or undefined
30745
- assertParamExists('sendReportEmail', 'sendReportEmailDto', sendReportEmailDto)
30746
- const localVarPath = `/api/v1/report/email`;
30364
+ assertParamExists('getEndOfDayReportV5', 'businessIds', businessIds)
30365
+ const localVarPath = `/api/v5/report/end-of-day`;
30747
30366
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
30748
30367
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30749
30368
  let baseOptions;
@@ -30751,7 +30370,7 @@ export const ReportApiAxiosParamCreator = function (configuration?: Configuratio
30751
30370
  baseOptions = configuration.baseOptions;
30752
30371
  }
30753
30372
 
30754
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
30373
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
30755
30374
  const localVarHeaderParameter = {} as any;
30756
30375
  const localVarQueryParameter = {} as any;
30757
30376
 
@@ -30771,14 +30390,19 @@ export const ReportApiAxiosParamCreator = function (configuration?: Configuratio
30771
30390
  localVarQueryParameter['businessIds'] = businessIds;
30772
30391
  }
30773
30392
 
30393
+ if (timezone !== undefined) {
30394
+ localVarQueryParameter['timezone'] = timezone;
30395
+ }
30396
+
30397
+ if (provider !== undefined) {
30398
+ localVarQueryParameter['provider'] = provider;
30399
+ }
30774
30400
 
30775
-
30776
- localVarHeaderParameter['Content-Type'] = 'application/json';
30777
30401
 
30402
+
30778
30403
  setSearchParams(localVarUrlObj, localVarQueryParameter);
30779
30404
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30780
30405
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30781
- localVarRequestOptions.data = serializeDataIfNeeded(sendReportEmailDto, localVarRequestOptions, configuration)
30782
30406
 
30783
30407
  return {
30784
30408
  url: toPathString(localVarUrlObj),
@@ -30787,21 +30411,19 @@ export const ReportApiAxiosParamCreator = function (configuration?: Configuratio
30787
30411
  },
30788
30412
  /**
30789
30413
  *
30790
- * @summary Send end-of-day report via email (V2)
30414
+ * @summary Get end-of-day financial report for POS (V4)
30791
30415
  * @param {Array<number>} businessIds Business ID selected
30792
- * @param {SendReportEmailDto} sendReportEmailDto
30793
30416
  * @param {TimeSpan} [timeSpan] Time span
30794
30417
  * @param {string} [start] Start date
30795
30418
  * @param {string} [end] End date
30419
+ * @param {string} [timezone] Timezone (default is \&quot;UTC\&quot;)
30796
30420
  * @param {*} [options] Override http request option.
30797
30421
  * @throws {RequiredError}
30798
30422
  */
30799
- sendReportEmailV2: async (businessIds: Array<number>, sendReportEmailDto: SendReportEmailDto, timeSpan?: TimeSpan, start?: string, end?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30423
+ getPOSEndOfDayReportV4: async (businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, timezone?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30800
30424
  // verify required parameter 'businessIds' is not null or undefined
30801
- assertParamExists('sendReportEmailV2', 'businessIds', businessIds)
30802
- // verify required parameter 'sendReportEmailDto' is not null or undefined
30803
- assertParamExists('sendReportEmailV2', 'sendReportEmailDto', sendReportEmailDto)
30804
- const localVarPath = `/api/v2/report/email`;
30425
+ assertParamExists('getPOSEndOfDayReportV4', 'businessIds', businessIds)
30426
+ const localVarPath = `/api/v4/report/pos/end-of-day`;
30805
30427
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
30806
30428
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30807
30429
  let baseOptions;
@@ -30809,7 +30431,7 @@ export const ReportApiAxiosParamCreator = function (configuration?: Configuratio
30809
30431
  baseOptions = configuration.baseOptions;
30810
30432
  }
30811
30433
 
30812
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
30434
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
30813
30435
  const localVarHeaderParameter = {} as any;
30814
30436
  const localVarQueryParameter = {} as any;
30815
30437
 
@@ -30829,14 +30451,15 @@ export const ReportApiAxiosParamCreator = function (configuration?: Configuratio
30829
30451
  localVarQueryParameter['businessIds'] = businessIds;
30830
30452
  }
30831
30453
 
30454
+ if (timezone !== undefined) {
30455
+ localVarQueryParameter['timezone'] = timezone;
30456
+ }
30832
30457
 
30833
-
30834
- localVarHeaderParameter['Content-Type'] = 'application/json';
30835
30458
 
30459
+
30836
30460
  setSearchParams(localVarUrlObj, localVarQueryParameter);
30837
30461
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30838
30462
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30839
- localVarRequestOptions.data = serializeDataIfNeeded(sendReportEmailDto, localVarRequestOptions, configuration)
30840
30463
 
30841
30464
  return {
30842
30465
  url: toPathString(localVarUrlObj),
@@ -30845,7 +30468,7 @@ export const ReportApiAxiosParamCreator = function (configuration?: Configuratio
30845
30468
  },
30846
30469
  /**
30847
30470
  *
30848
- * @summary Send end-of-day report via email (V3)
30471
+ * @summary Send end-of-day report via email (V4)
30849
30472
  * @param {Array<number>} businessIds Business ID selected
30850
30473
  * @param {string} timezone
30851
30474
  * @param {SendReportEmailDto} sendReportEmailDto
@@ -30855,14 +30478,14 @@ export const ReportApiAxiosParamCreator = function (configuration?: Configuratio
30855
30478
  * @param {*} [options] Override http request option.
30856
30479
  * @throws {RequiredError}
30857
30480
  */
30858
- sendReportEmailV3: async (businessIds: Array<number>, timezone: string, sendReportEmailDto: SendReportEmailDto, timeSpan?: TimeSpan, start?: string, end?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30481
+ sendReportEmailV4: async (businessIds: Array<number>, timezone: string, sendReportEmailDto: SendReportEmailDto, timeSpan?: TimeSpan, start?: string, end?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30859
30482
  // verify required parameter 'businessIds' is not null or undefined
30860
- assertParamExists('sendReportEmailV3', 'businessIds', businessIds)
30483
+ assertParamExists('sendReportEmailV4', 'businessIds', businessIds)
30861
30484
  // verify required parameter 'timezone' is not null or undefined
30862
- assertParamExists('sendReportEmailV3', 'timezone', timezone)
30485
+ assertParamExists('sendReportEmailV4', 'timezone', timezone)
30863
30486
  // verify required parameter 'sendReportEmailDto' is not null or undefined
30864
- assertParamExists('sendReportEmailV3', 'sendReportEmailDto', sendReportEmailDto)
30865
- const localVarPath = `/api/v3/report/email`;
30487
+ assertParamExists('sendReportEmailV4', 'sendReportEmailDto', sendReportEmailDto)
30488
+ const localVarPath = `/api/v4/report/email`;
30866
30489
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
30867
30490
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30868
30491
  let baseOptions;
@@ -30910,24 +30533,25 @@ export const ReportApiAxiosParamCreator = function (configuration?: Configuratio
30910
30533
  },
30911
30534
  /**
30912
30535
  *
30913
- * @summary Send end-of-day report via email (V4)
30536
+ * @summary Send end-of-day report via email (V5)
30914
30537
  * @param {Array<number>} businessIds Business ID selected
30915
30538
  * @param {string} timezone
30916
30539
  * @param {SendReportEmailDto} sendReportEmailDto
30917
30540
  * @param {TimeSpan} [timeSpan] Time span
30918
30541
  * @param {string} [start] Start date
30919
30542
  * @param {string} [end] End date
30543
+ * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront'} [provider] Order source provider (default is MunchiPos)
30920
30544
  * @param {*} [options] Override http request option.
30921
30545
  * @throws {RequiredError}
30922
30546
  */
30923
- sendReportEmailV4: async (businessIds: Array<number>, timezone: string, sendReportEmailDto: SendReportEmailDto, timeSpan?: TimeSpan, start?: string, end?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30547
+ sendReportEmailV5: async (businessIds: Array<number>, timezone: string, sendReportEmailDto: SendReportEmailDto, timeSpan?: TimeSpan, start?: string, end?: string, provider?: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30924
30548
  // verify required parameter 'businessIds' is not null or undefined
30925
- assertParamExists('sendReportEmailV4', 'businessIds', businessIds)
30549
+ assertParamExists('sendReportEmailV5', 'businessIds', businessIds)
30926
30550
  // verify required parameter 'timezone' is not null or undefined
30927
- assertParamExists('sendReportEmailV4', 'timezone', timezone)
30551
+ assertParamExists('sendReportEmailV5', 'timezone', timezone)
30928
30552
  // verify required parameter 'sendReportEmailDto' is not null or undefined
30929
- assertParamExists('sendReportEmailV4', 'sendReportEmailDto', sendReportEmailDto)
30930
- const localVarPath = `/api/v4/report/email`;
30553
+ assertParamExists('sendReportEmailV5', 'sendReportEmailDto', sendReportEmailDto)
30554
+ const localVarPath = `/api/v5/report/email`;
30931
30555
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
30932
30556
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30933
30557
  let baseOptions;
@@ -30959,6 +30583,10 @@ export const ReportApiAxiosParamCreator = function (configuration?: Configuratio
30959
30583
  localVarQueryParameter['timezone'] = timezone;
30960
30584
  }
30961
30585
 
30586
+ if (provider !== undefined) {
30587
+ localVarQueryParameter['provider'] = provider;
30588
+ }
30589
+
30962
30590
 
30963
30591
 
30964
30592
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -30985,45 +30613,18 @@ export const ReportApiFp = function(configuration?: Configuration) {
30985
30613
  return {
30986
30614
  /**
30987
30615
  *
30988
- * @summary Get end-of-day financial report for POS
30989
- * @param {Array<number>} businessIds Business ID selected
30990
- * @param {TimeSpan} [timeSpan] Time span
30991
- * @param {string} [start] Start date
30992
- * @param {string} [end] End date
30993
- * @param {*} [options] Override http request option.
30994
- * @throws {RequiredError}
30995
- */
30996
- async getPOSEndOfDayReport(businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EndOfDayReportDto>> {
30997
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPOSEndOfDayReport(businessIds, timeSpan, start, end, options);
30998
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30999
- },
31000
- /**
31001
- *
31002
- * @summary Get end-of-day financial report for POS (V2)
31003
- * @param {Array<number>} businessIds Business ID selected
31004
- * @param {TimeSpan} [timeSpan] Time span
31005
- * @param {string} [start] Start date
31006
- * @param {string} [end] End date
31007
- * @param {*} [options] Override http request option.
31008
- * @throws {RequiredError}
31009
- */
31010
- async getPOSEndOfDayReportV2(businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EndOfDayReportDto>> {
31011
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPOSEndOfDayReportV2(businessIds, timeSpan, start, end, options);
31012
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
31013
- },
31014
- /**
31015
- *
31016
- * @summary Get end-of-day financial report for POS (V3)
30616
+ * @summary Get end-of-day financial report (V5)
31017
30617
  * @param {Array<number>} businessIds Business ID selected
31018
30618
  * @param {TimeSpan} [timeSpan] Time span
31019
30619
  * @param {string} [start] Start date
31020
30620
  * @param {string} [end] End date
31021
30621
  * @param {string} [timezone] Timezone (default is \&quot;UTC\&quot;)
30622
+ * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront'} [provider] Order source provider (default is MunchiPos)
31022
30623
  * @param {*} [options] Override http request option.
31023
30624
  * @throws {RequiredError}
31024
30625
  */
31025
- async getPOSEndOfDayReportV3(businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, timezone?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EndOfDayReportDtoV3>> {
31026
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPOSEndOfDayReportV3(businessIds, timeSpan, start, end, timezone, options);
30626
+ async getEndOfDayReportV5(businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, timezone?: string, provider?: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EndOfDayReportDtoV4>> {
30627
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getEndOfDayReportV5(businessIds, timeSpan, start, end, timezone, provider, options);
31027
30628
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
31028
30629
  },
31029
30630
  /**
@@ -31043,37 +30644,7 @@ export const ReportApiFp = function(configuration?: Configuration) {
31043
30644
  },
31044
30645
  /**
31045
30646
  *
31046
- * @summary Send end-of-day report via email
31047
- * @param {Array<number>} businessIds Business ID selected
31048
- * @param {SendReportEmailDto} sendReportEmailDto
31049
- * @param {TimeSpan} [timeSpan] Time span
31050
- * @param {string} [start] Start date
31051
- * @param {string} [end] End date
31052
- * @param {*} [options] Override http request option.
31053
- * @throws {RequiredError}
31054
- */
31055
- async sendReportEmail(businessIds: Array<number>, sendReportEmailDto: SendReportEmailDto, timeSpan?: TimeSpan, start?: string, end?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
31056
- const localVarAxiosArgs = await localVarAxiosParamCreator.sendReportEmail(businessIds, sendReportEmailDto, timeSpan, start, end, options);
31057
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
31058
- },
31059
- /**
31060
- *
31061
- * @summary Send end-of-day report via email (V2)
31062
- * @param {Array<number>} businessIds Business ID selected
31063
- * @param {SendReportEmailDto} sendReportEmailDto
31064
- * @param {TimeSpan} [timeSpan] Time span
31065
- * @param {string} [start] Start date
31066
- * @param {string} [end] End date
31067
- * @param {*} [options] Override http request option.
31068
- * @throws {RequiredError}
31069
- */
31070
- async sendReportEmailV2(businessIds: Array<number>, sendReportEmailDto: SendReportEmailDto, timeSpan?: TimeSpan, start?: string, end?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
31071
- const localVarAxiosArgs = await localVarAxiosParamCreator.sendReportEmailV2(businessIds, sendReportEmailDto, timeSpan, start, end, options);
31072
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
31073
- },
31074
- /**
31075
- *
31076
- * @summary Send end-of-day report via email (V3)
30647
+ * @summary Send end-of-day report via email (V4)
31077
30648
  * @param {Array<number>} businessIds Business ID selected
31078
30649
  * @param {string} timezone
31079
30650
  * @param {SendReportEmailDto} sendReportEmailDto
@@ -31083,24 +30654,25 @@ export const ReportApiFp = function(configuration?: Configuration) {
31083
30654
  * @param {*} [options] Override http request option.
31084
30655
  * @throws {RequiredError}
31085
30656
  */
31086
- async sendReportEmailV3(businessIds: Array<number>, timezone: string, sendReportEmailDto: SendReportEmailDto, timeSpan?: TimeSpan, start?: string, end?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
31087
- const localVarAxiosArgs = await localVarAxiosParamCreator.sendReportEmailV3(businessIds, timezone, sendReportEmailDto, timeSpan, start, end, options);
30657
+ async sendReportEmailV4(businessIds: Array<number>, timezone: string, sendReportEmailDto: SendReportEmailDto, timeSpan?: TimeSpan, start?: string, end?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
30658
+ const localVarAxiosArgs = await localVarAxiosParamCreator.sendReportEmailV4(businessIds, timezone, sendReportEmailDto, timeSpan, start, end, options);
31088
30659
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
31089
30660
  },
31090
30661
  /**
31091
30662
  *
31092
- * @summary Send end-of-day report via email (V4)
30663
+ * @summary Send end-of-day report via email (V5)
31093
30664
  * @param {Array<number>} businessIds Business ID selected
31094
30665
  * @param {string} timezone
31095
30666
  * @param {SendReportEmailDto} sendReportEmailDto
31096
30667
  * @param {TimeSpan} [timeSpan] Time span
31097
30668
  * @param {string} [start] Start date
31098
30669
  * @param {string} [end] End date
30670
+ * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront'} [provider] Order source provider (default is MunchiPos)
31099
30671
  * @param {*} [options] Override http request option.
31100
30672
  * @throws {RequiredError}
31101
30673
  */
31102
- async sendReportEmailV4(businessIds: Array<number>, timezone: string, sendReportEmailDto: SendReportEmailDto, timeSpan?: TimeSpan, start?: string, end?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
31103
- const localVarAxiosArgs = await localVarAxiosParamCreator.sendReportEmailV4(businessIds, timezone, sendReportEmailDto, timeSpan, start, end, options);
30674
+ async sendReportEmailV5(businessIds: Array<number>, timezone: string, sendReportEmailDto: SendReportEmailDto, timeSpan?: TimeSpan, start?: string, end?: string, provider?: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
30675
+ const localVarAxiosArgs = await localVarAxiosParamCreator.sendReportEmailV5(businessIds, timezone, sendReportEmailDto, timeSpan, start, end, provider, options);
31104
30676
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
31105
30677
  },
31106
30678
  }
@@ -31115,43 +30687,18 @@ export const ReportApiFactory = function (configuration?: Configuration, basePat
31115
30687
  return {
31116
30688
  /**
31117
30689
  *
31118
- * @summary Get end-of-day financial report for POS
31119
- * @param {Array<number>} businessIds Business ID selected
31120
- * @param {TimeSpan} [timeSpan] Time span
31121
- * @param {string} [start] Start date
31122
- * @param {string} [end] End date
31123
- * @param {*} [options] Override http request option.
31124
- * @throws {RequiredError}
31125
- */
31126
- getPOSEndOfDayReport(businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, options?: any): AxiosPromise<EndOfDayReportDto> {
31127
- return localVarFp.getPOSEndOfDayReport(businessIds, timeSpan, start, end, options).then((request) => request(axios, basePath));
31128
- },
31129
- /**
31130
- *
31131
- * @summary Get end-of-day financial report for POS (V2)
31132
- * @param {Array<number>} businessIds Business ID selected
31133
- * @param {TimeSpan} [timeSpan] Time span
31134
- * @param {string} [start] Start date
31135
- * @param {string} [end] End date
31136
- * @param {*} [options] Override http request option.
31137
- * @throws {RequiredError}
31138
- */
31139
- getPOSEndOfDayReportV2(businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, options?: any): AxiosPromise<EndOfDayReportDto> {
31140
- return localVarFp.getPOSEndOfDayReportV2(businessIds, timeSpan, start, end, options).then((request) => request(axios, basePath));
31141
- },
31142
- /**
31143
- *
31144
- * @summary Get end-of-day financial report for POS (V3)
30690
+ * @summary Get end-of-day financial report (V5)
31145
30691
  * @param {Array<number>} businessIds Business ID selected
31146
30692
  * @param {TimeSpan} [timeSpan] Time span
31147
30693
  * @param {string} [start] Start date
31148
30694
  * @param {string} [end] End date
31149
30695
  * @param {string} [timezone] Timezone (default is \&quot;UTC\&quot;)
30696
+ * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront'} [provider] Order source provider (default is MunchiPos)
31150
30697
  * @param {*} [options] Override http request option.
31151
30698
  * @throws {RequiredError}
31152
30699
  */
31153
- getPOSEndOfDayReportV3(businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, timezone?: string, options?: any): AxiosPromise<EndOfDayReportDtoV3> {
31154
- return localVarFp.getPOSEndOfDayReportV3(businessIds, timeSpan, start, end, timezone, options).then((request) => request(axios, basePath));
30700
+ getEndOfDayReportV5(businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, timezone?: string, provider?: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront', options?: any): AxiosPromise<EndOfDayReportDtoV4> {
30701
+ return localVarFp.getEndOfDayReportV5(businessIds, timeSpan, start, end, timezone, provider, options).then((request) => request(axios, basePath));
31155
30702
  },
31156
30703
  /**
31157
30704
  *
@@ -31169,35 +30716,7 @@ export const ReportApiFactory = function (configuration?: Configuration, basePat
31169
30716
  },
31170
30717
  /**
31171
30718
  *
31172
- * @summary Send end-of-day report via email
31173
- * @param {Array<number>} businessIds Business ID selected
31174
- * @param {SendReportEmailDto} sendReportEmailDto
31175
- * @param {TimeSpan} [timeSpan] Time span
31176
- * @param {string} [start] Start date
31177
- * @param {string} [end] End date
31178
- * @param {*} [options] Override http request option.
31179
- * @throws {RequiredError}
31180
- */
31181
- sendReportEmail(businessIds: Array<number>, sendReportEmailDto: SendReportEmailDto, timeSpan?: TimeSpan, start?: string, end?: string, options?: any): AxiosPromise<void> {
31182
- return localVarFp.sendReportEmail(businessIds, sendReportEmailDto, timeSpan, start, end, options).then((request) => request(axios, basePath));
31183
- },
31184
- /**
31185
- *
31186
- * @summary Send end-of-day report via email (V2)
31187
- * @param {Array<number>} businessIds Business ID selected
31188
- * @param {SendReportEmailDto} sendReportEmailDto
31189
- * @param {TimeSpan} [timeSpan] Time span
31190
- * @param {string} [start] Start date
31191
- * @param {string} [end] End date
31192
- * @param {*} [options] Override http request option.
31193
- * @throws {RequiredError}
31194
- */
31195
- sendReportEmailV2(businessIds: Array<number>, sendReportEmailDto: SendReportEmailDto, timeSpan?: TimeSpan, start?: string, end?: string, options?: any): AxiosPromise<void> {
31196
- return localVarFp.sendReportEmailV2(businessIds, sendReportEmailDto, timeSpan, start, end, options).then((request) => request(axios, basePath));
31197
- },
31198
- /**
31199
- *
31200
- * @summary Send end-of-day report via email (V3)
30719
+ * @summary Send end-of-day report via email (V4)
31201
30720
  * @param {Array<number>} businessIds Business ID selected
31202
30721
  * @param {string} timezone
31203
30722
  * @param {SendReportEmailDto} sendReportEmailDto
@@ -31207,23 +30726,24 @@ export const ReportApiFactory = function (configuration?: Configuration, basePat
31207
30726
  * @param {*} [options] Override http request option.
31208
30727
  * @throws {RequiredError}
31209
30728
  */
31210
- sendReportEmailV3(businessIds: Array<number>, timezone: string, sendReportEmailDto: SendReportEmailDto, timeSpan?: TimeSpan, start?: string, end?: string, options?: any): AxiosPromise<void> {
31211
- return localVarFp.sendReportEmailV3(businessIds, timezone, sendReportEmailDto, timeSpan, start, end, options).then((request) => request(axios, basePath));
30729
+ sendReportEmailV4(businessIds: Array<number>, timezone: string, sendReportEmailDto: SendReportEmailDto, timeSpan?: TimeSpan, start?: string, end?: string, options?: any): AxiosPromise<void> {
30730
+ return localVarFp.sendReportEmailV4(businessIds, timezone, sendReportEmailDto, timeSpan, start, end, options).then((request) => request(axios, basePath));
31212
30731
  },
31213
30732
  /**
31214
30733
  *
31215
- * @summary Send end-of-day report via email (V4)
30734
+ * @summary Send end-of-day report via email (V5)
31216
30735
  * @param {Array<number>} businessIds Business ID selected
31217
30736
  * @param {string} timezone
31218
30737
  * @param {SendReportEmailDto} sendReportEmailDto
31219
30738
  * @param {TimeSpan} [timeSpan] Time span
31220
30739
  * @param {string} [start] Start date
31221
30740
  * @param {string} [end] End date
30741
+ * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront'} [provider] Order source provider (default is MunchiPos)
31222
30742
  * @param {*} [options] Override http request option.
31223
30743
  * @throws {RequiredError}
31224
30744
  */
31225
- sendReportEmailV4(businessIds: Array<number>, timezone: string, sendReportEmailDto: SendReportEmailDto, timeSpan?: TimeSpan, start?: string, end?: string, options?: any): AxiosPromise<void> {
31226
- return localVarFp.sendReportEmailV4(businessIds, timezone, sendReportEmailDto, timeSpan, start, end, options).then((request) => request(axios, basePath));
30745
+ sendReportEmailV5(businessIds: Array<number>, timezone: string, sendReportEmailDto: SendReportEmailDto, timeSpan?: TimeSpan, start?: string, end?: string, provider?: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront', options?: any): AxiosPromise<void> {
30746
+ return localVarFp.sendReportEmailV5(businessIds, timezone, sendReportEmailDto, timeSpan, start, end, provider, options).then((request) => request(axios, basePath));
31227
30747
  },
31228
30748
  };
31229
30749
  };
@@ -31236,43 +30756,18 @@ export const ReportApiFactory = function (configuration?: Configuration, basePat
31236
30756
  export interface ReportApiInterface {
31237
30757
  /**
31238
30758
  *
31239
- * @summary Get end-of-day financial report for POS
31240
- * @param {Array<number>} businessIds Business ID selected
31241
- * @param {TimeSpan} [timeSpan] Time span
31242
- * @param {string} [start] Start date
31243
- * @param {string} [end] End date
31244
- * @param {*} [options] Override http request option.
31245
- * @throws {RequiredError}
31246
- * @memberof ReportApiInterface
31247
- */
31248
- getPOSEndOfDayReport(businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, options?: AxiosRequestConfig): AxiosPromise<EndOfDayReportDto>;
31249
-
31250
- /**
31251
- *
31252
- * @summary Get end-of-day financial report for POS (V2)
31253
- * @param {Array<number>} businessIds Business ID selected
31254
- * @param {TimeSpan} [timeSpan] Time span
31255
- * @param {string} [start] Start date
31256
- * @param {string} [end] End date
31257
- * @param {*} [options] Override http request option.
31258
- * @throws {RequiredError}
31259
- * @memberof ReportApiInterface
31260
- */
31261
- getPOSEndOfDayReportV2(businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, options?: AxiosRequestConfig): AxiosPromise<EndOfDayReportDto>;
31262
-
31263
- /**
31264
- *
31265
- * @summary Get end-of-day financial report for POS (V3)
30759
+ * @summary Get end-of-day financial report (V5)
31266
30760
  * @param {Array<number>} businessIds Business ID selected
31267
30761
  * @param {TimeSpan} [timeSpan] Time span
31268
30762
  * @param {string} [start] Start date
31269
30763
  * @param {string} [end] End date
31270
30764
  * @param {string} [timezone] Timezone (default is \&quot;UTC\&quot;)
30765
+ * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront'} [provider] Order source provider (default is MunchiPos)
31271
30766
  * @param {*} [options] Override http request option.
31272
30767
  * @throws {RequiredError}
31273
30768
  * @memberof ReportApiInterface
31274
30769
  */
31275
- getPOSEndOfDayReportV3(businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, timezone?: string, options?: AxiosRequestConfig): AxiosPromise<EndOfDayReportDtoV3>;
30770
+ getEndOfDayReportV5(businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, timezone?: string, provider?: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront', options?: AxiosRequestConfig): AxiosPromise<EndOfDayReportDtoV4>;
31276
30771
 
31277
30772
  /**
31278
30773
  *
@@ -31290,35 +30785,7 @@ export interface ReportApiInterface {
31290
30785
 
31291
30786
  /**
31292
30787
  *
31293
- * @summary Send end-of-day report via email
31294
- * @param {Array<number>} businessIds Business ID selected
31295
- * @param {SendReportEmailDto} sendReportEmailDto
31296
- * @param {TimeSpan} [timeSpan] Time span
31297
- * @param {string} [start] Start date
31298
- * @param {string} [end] End date
31299
- * @param {*} [options] Override http request option.
31300
- * @throws {RequiredError}
31301
- * @memberof ReportApiInterface
31302
- */
31303
- sendReportEmail(businessIds: Array<number>, sendReportEmailDto: SendReportEmailDto, timeSpan?: TimeSpan, start?: string, end?: string, options?: AxiosRequestConfig): AxiosPromise<void>;
31304
-
31305
- /**
31306
- *
31307
- * @summary Send end-of-day report via email (V2)
31308
- * @param {Array<number>} businessIds Business ID selected
31309
- * @param {SendReportEmailDto} sendReportEmailDto
31310
- * @param {TimeSpan} [timeSpan] Time span
31311
- * @param {string} [start] Start date
31312
- * @param {string} [end] End date
31313
- * @param {*} [options] Override http request option.
31314
- * @throws {RequiredError}
31315
- * @memberof ReportApiInterface
31316
- */
31317
- sendReportEmailV2(businessIds: Array<number>, sendReportEmailDto: SendReportEmailDto, timeSpan?: TimeSpan, start?: string, end?: string, options?: AxiosRequestConfig): AxiosPromise<void>;
31318
-
31319
- /**
31320
- *
31321
- * @summary Send end-of-day report via email (V3)
30788
+ * @summary Send end-of-day report via email (V4)
31322
30789
  * @param {Array<number>} businessIds Business ID selected
31323
30790
  * @param {string} timezone
31324
30791
  * @param {SendReportEmailDto} sendReportEmailDto
@@ -31329,22 +30796,23 @@ export interface ReportApiInterface {
31329
30796
  * @throws {RequiredError}
31330
30797
  * @memberof ReportApiInterface
31331
30798
  */
31332
- sendReportEmailV3(businessIds: Array<number>, timezone: string, sendReportEmailDto: SendReportEmailDto, timeSpan?: TimeSpan, start?: string, end?: string, options?: AxiosRequestConfig): AxiosPromise<void>;
30799
+ sendReportEmailV4(businessIds: Array<number>, timezone: string, sendReportEmailDto: SendReportEmailDto, timeSpan?: TimeSpan, start?: string, end?: string, options?: AxiosRequestConfig): AxiosPromise<void>;
31333
30800
 
31334
30801
  /**
31335
30802
  *
31336
- * @summary Send end-of-day report via email (V4)
30803
+ * @summary Send end-of-day report via email (V5)
31337
30804
  * @param {Array<number>} businessIds Business ID selected
31338
30805
  * @param {string} timezone
31339
30806
  * @param {SendReportEmailDto} sendReportEmailDto
31340
30807
  * @param {TimeSpan} [timeSpan] Time span
31341
30808
  * @param {string} [start] Start date
31342
30809
  * @param {string} [end] End date
30810
+ * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront'} [provider] Order source provider (default is MunchiPos)
31343
30811
  * @param {*} [options] Override http request option.
31344
30812
  * @throws {RequiredError}
31345
30813
  * @memberof ReportApiInterface
31346
30814
  */
31347
- sendReportEmailV4(businessIds: Array<number>, timezone: string, sendReportEmailDto: SendReportEmailDto, timeSpan?: TimeSpan, start?: string, end?: string, options?: AxiosRequestConfig): AxiosPromise<void>;
30815
+ sendReportEmailV5(businessIds: Array<number>, timezone: string, sendReportEmailDto: SendReportEmailDto, timeSpan?: TimeSpan, start?: string, end?: string, provider?: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront', options?: AxiosRequestConfig): AxiosPromise<void>;
31348
30816
 
31349
30817
  }
31350
30818
 
@@ -31357,48 +30825,19 @@ export interface ReportApiInterface {
31357
30825
  export class ReportApi extends BaseAPI implements ReportApiInterface {
31358
30826
  /**
31359
30827
  *
31360
- * @summary Get end-of-day financial report for POS
31361
- * @param {Array<number>} businessIds Business ID selected
31362
- * @param {TimeSpan} [timeSpan] Time span
31363
- * @param {string} [start] Start date
31364
- * @param {string} [end] End date
31365
- * @param {*} [options] Override http request option.
31366
- * @throws {RequiredError}
31367
- * @memberof ReportApi
31368
- */
31369
- public getPOSEndOfDayReport(businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, options?: AxiosRequestConfig) {
31370
- return ReportApiFp(this.configuration).getPOSEndOfDayReport(businessIds, timeSpan, start, end, options).then((request) => request(this.axios, this.basePath));
31371
- }
31372
-
31373
- /**
31374
- *
31375
- * @summary Get end-of-day financial report for POS (V2)
31376
- * @param {Array<number>} businessIds Business ID selected
31377
- * @param {TimeSpan} [timeSpan] Time span
31378
- * @param {string} [start] Start date
31379
- * @param {string} [end] End date
31380
- * @param {*} [options] Override http request option.
31381
- * @throws {RequiredError}
31382
- * @memberof ReportApi
31383
- */
31384
- public getPOSEndOfDayReportV2(businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, options?: AxiosRequestConfig) {
31385
- return ReportApiFp(this.configuration).getPOSEndOfDayReportV2(businessIds, timeSpan, start, end, options).then((request) => request(this.axios, this.basePath));
31386
- }
31387
-
31388
- /**
31389
- *
31390
- * @summary Get end-of-day financial report for POS (V3)
30828
+ * @summary Get end-of-day financial report (V5)
31391
30829
  * @param {Array<number>} businessIds Business ID selected
31392
30830
  * @param {TimeSpan} [timeSpan] Time span
31393
30831
  * @param {string} [start] Start date
31394
30832
  * @param {string} [end] End date
31395
30833
  * @param {string} [timezone] Timezone (default is \&quot;UTC\&quot;)
30834
+ * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront'} [provider] Order source provider (default is MunchiPos)
31396
30835
  * @param {*} [options] Override http request option.
31397
30836
  * @throws {RequiredError}
31398
30837
  * @memberof ReportApi
31399
30838
  */
31400
- public getPOSEndOfDayReportV3(businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, timezone?: string, options?: AxiosRequestConfig) {
31401
- return ReportApiFp(this.configuration).getPOSEndOfDayReportV3(businessIds, timeSpan, start, end, timezone, options).then((request) => request(this.axios, this.basePath));
30839
+ public getEndOfDayReportV5(businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, timezone?: string, provider?: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront', options?: AxiosRequestConfig) {
30840
+ return ReportApiFp(this.configuration).getEndOfDayReportV5(businessIds, timeSpan, start, end, timezone, provider, options).then((request) => request(this.axios, this.basePath));
31402
30841
  }
31403
30842
 
31404
30843
  /**
@@ -31419,39 +30858,7 @@ export class ReportApi extends BaseAPI implements ReportApiInterface {
31419
30858
 
31420
30859
  /**
31421
30860
  *
31422
- * @summary Send end-of-day report via email
31423
- * @param {Array<number>} businessIds Business ID selected
31424
- * @param {SendReportEmailDto} sendReportEmailDto
31425
- * @param {TimeSpan} [timeSpan] Time span
31426
- * @param {string} [start] Start date
31427
- * @param {string} [end] End date
31428
- * @param {*} [options] Override http request option.
31429
- * @throws {RequiredError}
31430
- * @memberof ReportApi
31431
- */
31432
- public sendReportEmail(businessIds: Array<number>, sendReportEmailDto: SendReportEmailDto, timeSpan?: TimeSpan, start?: string, end?: string, options?: AxiosRequestConfig) {
31433
- return ReportApiFp(this.configuration).sendReportEmail(businessIds, sendReportEmailDto, timeSpan, start, end, options).then((request) => request(this.axios, this.basePath));
31434
- }
31435
-
31436
- /**
31437
- *
31438
- * @summary Send end-of-day report via email (V2)
31439
- * @param {Array<number>} businessIds Business ID selected
31440
- * @param {SendReportEmailDto} sendReportEmailDto
31441
- * @param {TimeSpan} [timeSpan] Time span
31442
- * @param {string} [start] Start date
31443
- * @param {string} [end] End date
31444
- * @param {*} [options] Override http request option.
31445
- * @throws {RequiredError}
31446
- * @memberof ReportApi
31447
- */
31448
- public sendReportEmailV2(businessIds: Array<number>, sendReportEmailDto: SendReportEmailDto, timeSpan?: TimeSpan, start?: string, end?: string, options?: AxiosRequestConfig) {
31449
- return ReportApiFp(this.configuration).sendReportEmailV2(businessIds, sendReportEmailDto, timeSpan, start, end, options).then((request) => request(this.axios, this.basePath));
31450
- }
31451
-
31452
- /**
31453
- *
31454
- * @summary Send end-of-day report via email (V3)
30861
+ * @summary Send end-of-day report via email (V4)
31455
30862
  * @param {Array<number>} businessIds Business ID selected
31456
30863
  * @param {string} timezone
31457
30864
  * @param {SendReportEmailDto} sendReportEmailDto
@@ -31462,25 +30869,26 @@ export class ReportApi extends BaseAPI implements ReportApiInterface {
31462
30869
  * @throws {RequiredError}
31463
30870
  * @memberof ReportApi
31464
30871
  */
31465
- public sendReportEmailV3(businessIds: Array<number>, timezone: string, sendReportEmailDto: SendReportEmailDto, timeSpan?: TimeSpan, start?: string, end?: string, options?: AxiosRequestConfig) {
31466
- return ReportApiFp(this.configuration).sendReportEmailV3(businessIds, timezone, sendReportEmailDto, timeSpan, start, end, options).then((request) => request(this.axios, this.basePath));
30872
+ public sendReportEmailV4(businessIds: Array<number>, timezone: string, sendReportEmailDto: SendReportEmailDto, timeSpan?: TimeSpan, start?: string, end?: string, options?: AxiosRequestConfig) {
30873
+ return ReportApiFp(this.configuration).sendReportEmailV4(businessIds, timezone, sendReportEmailDto, timeSpan, start, end, options).then((request) => request(this.axios, this.basePath));
31467
30874
  }
31468
30875
 
31469
30876
  /**
31470
30877
  *
31471
- * @summary Send end-of-day report via email (V4)
30878
+ * @summary Send end-of-day report via email (V5)
31472
30879
  * @param {Array<number>} businessIds Business ID selected
31473
30880
  * @param {string} timezone
31474
30881
  * @param {SendReportEmailDto} sendReportEmailDto
31475
30882
  * @param {TimeSpan} [timeSpan] Time span
31476
30883
  * @param {string} [start] Start date
31477
30884
  * @param {string} [end] End date
30885
+ * @param {'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront'} [provider] Order source provider (default is MunchiPos)
31478
30886
  * @param {*} [options] Override http request option.
31479
30887
  * @throws {RequiredError}
31480
30888
  * @memberof ReportApi
31481
30889
  */
31482
- public sendReportEmailV4(businessIds: Array<number>, timezone: string, sendReportEmailDto: SendReportEmailDto, timeSpan?: TimeSpan, start?: string, end?: string, options?: AxiosRequestConfig) {
31483
- return ReportApiFp(this.configuration).sendReportEmailV4(businessIds, timezone, sendReportEmailDto, timeSpan, start, end, options).then((request) => request(this.axios, this.basePath));
30890
+ public sendReportEmailV5(businessIds: Array<number>, timezone: string, sendReportEmailDto: SendReportEmailDto, timeSpan?: TimeSpan, start?: string, end?: string, provider?: 'Wolt' | 'MunchiOnline' | 'MunchiKiosk' | 'MunchiPos' | 'UberEats' | 'Foodora' | 'Bolt' | 'MunchiKioskV2' | 'Kiosk' | 'WoltStorefront', options?: AxiosRequestConfig) {
30891
+ return ReportApiFp(this.configuration).sendReportEmailV5(businessIds, timezone, sendReportEmailDto, timeSpan, start, end, provider, options).then((request) => request(this.axios, this.basePath));
31484
30892
  }
31485
30893
  }
31486
30894