@munchi_oy/core 1.9.79 → 1.9.80

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
@@ -1957,124 +1957,6 @@ export interface CashLogsQueryDto {
1957
1957
  }
1958
1958
 
1959
1959
 
1960
- /**
1961
- *
1962
- * @export
1963
- * @interface CashRefundPayload
1964
- */
1965
- export interface CashRefundPayload {
1966
- /**
1967
- * Unique internal ID for this refund transaction
1968
- * @type {string}
1969
- * @memberof CashRefundPayload
1970
- */
1971
- 'id': string;
1972
- /**
1973
- * Unique internal ID for this refund transaction
1974
- * @type {string}
1975
- * @memberof CashRefundPayload
1976
- */
1977
- 'refundId': string;
1978
- /**
1979
- * Refund ID from the payment provider (e.g., Stripe refund ID). Deprecated soon
1980
- * @type {string}
1981
- * @memberof CashRefundPayload
1982
- */
1983
- 'providerRefundId': string;
1984
- /**
1985
- * Refund ID from the payment provider V2 (e.g., Stripe refund ID)
1986
- * @type {string}
1987
- * @memberof CashRefundPayload
1988
- */
1989
- 'sourceTransactionId': string | null;
1990
- /**
1991
- * ID of the original payment being refunded
1992
- * @type {string}
1993
- * @memberof CashRefundPayload
1994
- * @deprecated
1995
- */
1996
- 'originalPaymentId'?: string | null;
1997
- /**
1998
- * ID of the original payment being refunded
1999
- * @type {string}
2000
- * @memberof CashRefundPayload
2001
- */
2002
- 'originalPaymentEventId'?: string | null;
2003
- /**
2004
- *
2005
- * @type {PaymentProviderEnum}
2006
- * @memberof CashRefundPayload
2007
- */
2008
- 'paymentProvider': PaymentProviderEnum;
2009
- /**
2010
- * The amount refunded
2011
- * @type {number}
2012
- * @memberof CashRefundPayload
2013
- */
2014
- 'amount': number;
2015
- /**
2016
- * Currency of the refund (ISO 4217 code, e.g., EUR)
2017
- * @type {string}
2018
- * @memberof CashRefundPayload
2019
- */
2020
- 'currency': string;
2021
- /**
2022
- *
2023
- * @type {RefundStatusEnum}
2024
- * @memberof CashRefundPayload
2025
- */
2026
- 'status': RefundStatusEnum;
2027
- /**
2028
- * Timestamp when the refund was processed
2029
- * @type {string}
2030
- * @memberof CashRefundPayload
2031
- */
2032
- 'processedAt': string;
2033
- /**
2034
- * Reason for the refund
2035
- * @type {string}
2036
- * @memberof CashRefundPayload
2037
- */
2038
- 'reason'?: string | null;
2039
- /**
2040
- * Specific items refunded
2041
- * @type {Array<RefundedItemDto>}
2042
- * @memberof CashRefundPayload
2043
- */
2044
- 'items'?: Array<RefundedItemDto>;
2045
- /**
2046
- * Per-line allocation persisted for this payment refund, keyed to original line item ids
2047
- * @type {Array<PaymentRefundLineAllocationDto>}
2048
- * @memberof CashRefundPayload
2049
- */
2050
- 'lineItemAllocations'?: Array<PaymentRefundLineAllocationDto>;
2051
- /**
2052
- *
2053
- * @type {PaymentMethod}
2054
- * @memberof CashRefundPayload
2055
- */
2056
- 'type'?: PaymentMethod;
2057
- /**
2058
- * Additional metadata from the payment provider or system
2059
- * @type {{ [key: string]: any; }}
2060
- * @memberof CashRefundPayload
2061
- */
2062
- 'metadata'?: { [key: string]: any; };
2063
- /**
2064
- * The ordering business ID for this transaction.
2065
- * @type {number}
2066
- * @memberof CashRefundPayload
2067
- */
2068
- 'orderingBusinessId': number;
2069
- /**
2070
- * The POS order id for this transaction.
2071
- * @type {string}
2072
- * @memberof CashRefundPayload
2073
- */
2074
- 'posOrderId': string;
2075
- }
2076
-
2077
-
2078
1960
  /**
2079
1961
  *
2080
1962
  * @export
@@ -9460,124 +9342,6 @@ export interface LoyaltyUserInfoResponseDto {
9460
9342
  */
9461
9343
  '_links': { [key: string]: LoyaltyInfoResponseDtoLinksValue; };
9462
9344
  }
9463
- /**
9464
- *
9465
- * @export
9466
- * @interface ManualRefundPayload
9467
- */
9468
- export interface ManualRefundPayload {
9469
- /**
9470
- * Unique internal ID for this refund transaction
9471
- * @type {string}
9472
- * @memberof ManualRefundPayload
9473
- */
9474
- 'id': string;
9475
- /**
9476
- * Unique internal ID for this refund transaction
9477
- * @type {string}
9478
- * @memberof ManualRefundPayload
9479
- */
9480
- 'refundId': string;
9481
- /**
9482
- * Refund ID from the payment provider (e.g., Stripe refund ID). Deprecated soon
9483
- * @type {string}
9484
- * @memberof ManualRefundPayload
9485
- */
9486
- 'providerRefundId': string;
9487
- /**
9488
- * Refund ID from the payment provider V2 (e.g., Stripe refund ID)
9489
- * @type {string}
9490
- * @memberof ManualRefundPayload
9491
- */
9492
- 'sourceTransactionId': string | null;
9493
- /**
9494
- * ID of the original payment being refunded
9495
- * @type {string}
9496
- * @memberof ManualRefundPayload
9497
- * @deprecated
9498
- */
9499
- 'originalPaymentId'?: string | null;
9500
- /**
9501
- * ID of the original payment being refunded
9502
- * @type {string}
9503
- * @memberof ManualRefundPayload
9504
- */
9505
- 'originalPaymentEventId'?: string | null;
9506
- /**
9507
- *
9508
- * @type {PaymentProviderEnum}
9509
- * @memberof ManualRefundPayload
9510
- */
9511
- 'paymentProvider': PaymentProviderEnum;
9512
- /**
9513
- * The amount refunded
9514
- * @type {number}
9515
- * @memberof ManualRefundPayload
9516
- */
9517
- 'amount': number;
9518
- /**
9519
- * Currency of the refund (ISO 4217 code, e.g., EUR)
9520
- * @type {string}
9521
- * @memberof ManualRefundPayload
9522
- */
9523
- 'currency': string;
9524
- /**
9525
- *
9526
- * @type {RefundStatusEnum}
9527
- * @memberof ManualRefundPayload
9528
- */
9529
- 'status': RefundStatusEnum;
9530
- /**
9531
- * Timestamp when the refund was processed
9532
- * @type {string}
9533
- * @memberof ManualRefundPayload
9534
- */
9535
- 'processedAt': string;
9536
- /**
9537
- * Reason for the refund
9538
- * @type {string}
9539
- * @memberof ManualRefundPayload
9540
- */
9541
- 'reason'?: string | null;
9542
- /**
9543
- * Specific items refunded
9544
- * @type {Array<RefundedItemDto>}
9545
- * @memberof ManualRefundPayload
9546
- */
9547
- 'items'?: Array<RefundedItemDto>;
9548
- /**
9549
- * Per-line allocation persisted for this payment refund, keyed to original line item ids
9550
- * @type {Array<PaymentRefundLineAllocationDto>}
9551
- * @memberof ManualRefundPayload
9552
- */
9553
- 'lineItemAllocations'?: Array<PaymentRefundLineAllocationDto>;
9554
- /**
9555
- *
9556
- * @type {PaymentMethod}
9557
- * @memberof ManualRefundPayload
9558
- */
9559
- 'type'?: PaymentMethod;
9560
- /**
9561
- * Additional metadata from the payment provider or system
9562
- * @type {{ [key: string]: any; }}
9563
- * @memberof ManualRefundPayload
9564
- */
9565
- 'metadata'?: { [key: string]: any; };
9566
- /**
9567
- * The ordering business ID for this transaction.
9568
- * @type {number}
9569
- * @memberof ManualRefundPayload
9570
- */
9571
- 'orderingBusinessId': number;
9572
- /**
9573
- * The POS order id for this transaction.
9574
- * @type {string}
9575
- * @memberof ManualRefundPayload
9576
- */
9577
- 'posOrderId': string;
9578
- }
9579
-
9580
-
9581
9345
  /**
9582
9346
  *
9583
9347
  * @export
@@ -15150,6 +14914,593 @@ export interface PosItemDtoDiscount {
15150
14914
  }
15151
14915
 
15152
14916
 
14917
+ /**
14918
+ *
14919
+ * @export
14920
+ * @interface PosMenuCategoryDto
14921
+ */
14922
+ export interface PosMenuCategoryDto {
14923
+ /**
14924
+ *
14925
+ * @type {string}
14926
+ * @memberof PosMenuCategoryDto
14927
+ */
14928
+ 'id': string;
14929
+ /**
14930
+ *
14931
+ * @type {string}
14932
+ * @memberof PosMenuCategoryDto
14933
+ */
14934
+ 'name': string;
14935
+ /**
14936
+ *
14937
+ * @type {string}
14938
+ * @memberof PosMenuCategoryDto
14939
+ */
14940
+ 'image': string | null;
14941
+ /**
14942
+ *
14943
+ * @type {number}
14944
+ * @memberof PosMenuCategoryDto
14945
+ */
14946
+ 'rank': number;
14947
+ /**
14948
+ *
14949
+ * @type {boolean}
14950
+ * @memberof PosMenuCategoryDto
14951
+ */
14952
+ 'enabled': boolean;
14953
+ /**
14954
+ *
14955
+ * @type {number}
14956
+ * @memberof PosMenuCategoryDto
14957
+ */
14958
+ 'parent_category_id': number | null;
14959
+ /**
14960
+ *
14961
+ * @type {string}
14962
+ * @memberof PosMenuCategoryDto
14963
+ */
14964
+ 'header': string | null;
14965
+ /**
14966
+ *
14967
+ * @type {string}
14968
+ * @memberof PosMenuCategoryDto
14969
+ */
14970
+ 'description': string | null;
14971
+ /**
14972
+ *
14973
+ * @type {string}
14974
+ * @memberof PosMenuCategoryDto
14975
+ */
14976
+ 'custom_color_code': string | null;
14977
+ /**
14978
+ *
14979
+ * @type {Array<PosMenuProductDto>}
14980
+ * @memberof PosMenuCategoryDto
14981
+ */
14982
+ 'products': Array<PosMenuProductDto>;
14983
+ /**
14984
+ *
14985
+ * @type {Array<PosMenuSubcategoryDto>}
14986
+ * @memberof PosMenuCategoryDto
14987
+ */
14988
+ 'subcategories': Array<PosMenuSubcategoryDto>;
14989
+ }
14990
+ /**
14991
+ *
14992
+ * @export
14993
+ * @interface PosMenuChannelConfigDto
14994
+ */
14995
+ export interface PosMenuChannelConfigDto {
14996
+ /**
14997
+ *
14998
+ * @type {string}
14999
+ * @memberof PosMenuChannelConfigDto
15000
+ */
15001
+ 'channel': string;
15002
+ /**
15003
+ *
15004
+ * @type {number}
15005
+ * @memberof PosMenuChannelConfigDto
15006
+ */
15007
+ 'quantity': number;
15008
+ /**
15009
+ *
15010
+ * @type {boolean}
15011
+ * @memberof PosMenuChannelConfigDto
15012
+ */
15013
+ 'inventoried': boolean;
15014
+ /**
15015
+ *
15016
+ * @type {boolean}
15017
+ * @memberof PosMenuChannelConfigDto
15018
+ */
15019
+ 'enabled': boolean;
15020
+ /**
15021
+ *
15022
+ * @type {string}
15023
+ * @memberof PosMenuChannelConfigDto
15024
+ */
15025
+ 'external_id': string | null;
15026
+ }
15027
+ /**
15028
+ *
15029
+ * @export
15030
+ * @interface PosMenuExtraDto
15031
+ */
15032
+ export interface PosMenuExtraDto {
15033
+ /**
15034
+ *
15035
+ * @type {number}
15036
+ * @memberof PosMenuExtraDto
15037
+ */
15038
+ 'id': number;
15039
+ /**
15040
+ *
15041
+ * @type {string}
15042
+ * @memberof PosMenuExtraDto
15043
+ */
15044
+ 'name': string;
15045
+ /**
15046
+ *
15047
+ * @type {string}
15048
+ * @memberof PosMenuExtraDto
15049
+ */
15050
+ 'description': string | null;
15051
+ /**
15052
+ *
15053
+ * @type {boolean}
15054
+ * @memberof PosMenuExtraDto
15055
+ */
15056
+ 'enabled': boolean;
15057
+ /**
15058
+ *
15059
+ * @type {number}
15060
+ * @memberof PosMenuExtraDto
15061
+ */
15062
+ 'rank': number;
15063
+ /**
15064
+ *
15065
+ * @type {Array<PosMenuOptionDto>}
15066
+ * @memberof PosMenuExtraDto
15067
+ */
15068
+ 'options': Array<PosMenuOptionDto>;
15069
+ }
15070
+ /**
15071
+ *
15072
+ * @export
15073
+ * @interface PosMenuListItemDto
15074
+ */
15075
+ export interface PosMenuListItemDto {
15076
+ /**
15077
+ *
15078
+ * @type {string}
15079
+ * @memberof PosMenuListItemDto
15080
+ */
15081
+ 'id': string;
15082
+ /**
15083
+ *
15084
+ * @type {string}
15085
+ * @memberof PosMenuListItemDto
15086
+ */
15087
+ 'name': string;
15088
+ /**
15089
+ *
15090
+ * @type {Array<string>}
15091
+ * @memberof PosMenuListItemDto
15092
+ */
15093
+ 'cid': Array<string>;
15094
+ }
15095
+ /**
15096
+ *
15097
+ * @export
15098
+ * @interface PosMenuOptionDto
15099
+ */
15100
+ export interface PosMenuOptionDto {
15101
+ /**
15102
+ *
15103
+ * @type {number}
15104
+ * @memberof PosMenuOptionDto
15105
+ */
15106
+ 'id': number;
15107
+ /**
15108
+ *
15109
+ * @type {string}
15110
+ * @memberof PosMenuOptionDto
15111
+ */
15112
+ 'name': string;
15113
+ /**
15114
+ *
15115
+ * @type {string}
15116
+ * @memberof PosMenuOptionDto
15117
+ */
15118
+ 'image': string | null;
15119
+ /**
15120
+ *
15121
+ * @type {number}
15122
+ * @memberof PosMenuOptionDto
15123
+ */
15124
+ 'min': number;
15125
+ /**
15126
+ *
15127
+ * @type {number}
15128
+ * @memberof PosMenuOptionDto
15129
+ */
15130
+ 'max': number;
15131
+ /**
15132
+ *
15133
+ * @type {number}
15134
+ * @memberof PosMenuOptionDto
15135
+ */
15136
+ 'rank': number;
15137
+ /**
15138
+ *
15139
+ * @type {boolean}
15140
+ * @memberof PosMenuOptionDto
15141
+ */
15142
+ 'allow_suboption_quantity': boolean;
15143
+ /**
15144
+ *
15145
+ * @type {boolean}
15146
+ * @memberof PosMenuOptionDto
15147
+ */
15148
+ 'limit_suboptions_by_max': boolean;
15149
+ /**
15150
+ *
15151
+ * @type {boolean}
15152
+ * @memberof PosMenuOptionDto
15153
+ */
15154
+ 'enabled': boolean;
15155
+ /**
15156
+ *
15157
+ * @type {Array<PosMenuSubOptionDto>}
15158
+ * @memberof PosMenuOptionDto
15159
+ */
15160
+ 'suboptions': Array<PosMenuSubOptionDto>;
15161
+ }
15162
+ /**
15163
+ *
15164
+ * @export
15165
+ * @interface PosMenuProductDto
15166
+ */
15167
+ export interface PosMenuProductDto {
15168
+ /**
15169
+ *
15170
+ * @type {number}
15171
+ * @memberof PosMenuProductDto
15172
+ */
15173
+ 'id': number;
15174
+ /**
15175
+ *
15176
+ * @type {string}
15177
+ * @memberof PosMenuProductDto
15178
+ */
15179
+ 'name': string;
15180
+ /**
15181
+ *
15182
+ * @type {number}
15183
+ * @memberof PosMenuProductDto
15184
+ */
15185
+ 'price': number;
15186
+ /**
15187
+ *
15188
+ * @type {string}
15189
+ * @memberof PosMenuProductDto
15190
+ */
15191
+ 'description': string;
15192
+ /**
15193
+ *
15194
+ * @type {string}
15195
+ * @memberof PosMenuProductDto
15196
+ */
15197
+ 'images': string;
15198
+ /**
15199
+ *
15200
+ * @type {string}
15201
+ * @memberof PosMenuProductDto
15202
+ */
15203
+ 'sku': string | null;
15204
+ /**
15205
+ *
15206
+ * @type {string}
15207
+ * @memberof PosMenuProductDto
15208
+ */
15209
+ 'barcode': string | null;
15210
+ /**
15211
+ *
15212
+ * @type {string}
15213
+ * @memberof PosMenuProductDto
15214
+ */
15215
+ 'barcode_alternative': string | null;
15216
+ /**
15217
+ *
15218
+ * @type {number}
15219
+ * @memberof PosMenuProductDto
15220
+ */
15221
+ 'category_id': number;
15222
+ /**
15223
+ *
15224
+ * @type {boolean}
15225
+ * @memberof PosMenuProductDto
15226
+ */
15227
+ 'enabled': boolean;
15228
+ /**
15229
+ *
15230
+ * @type {boolean}
15231
+ * @memberof PosMenuProductDto
15232
+ */
15233
+ 'in_offer': boolean;
15234
+ /**
15235
+ *
15236
+ * @type {number}
15237
+ * @memberof PosMenuProductDto
15238
+ */
15239
+ 'offer_price': number | null;
15240
+ /**
15241
+ *
15242
+ * @type {number}
15243
+ * @memberof PosMenuProductDto
15244
+ */
15245
+ 'rank': number;
15246
+ /**
15247
+ *
15248
+ * @type {string}
15249
+ * @memberof PosMenuProductDto
15250
+ */
15251
+ 'price_type': string | null;
15252
+ /**
15253
+ *
15254
+ * @type {PosMenuTaxDto}
15255
+ * @memberof PosMenuProductDto
15256
+ */
15257
+ 'tax': PosMenuTaxDto | null;
15258
+ /**
15259
+ *
15260
+ * @type {string}
15261
+ * @memberof PosMenuProductDto
15262
+ */
15263
+ 'custom_color_code': string | null;
15264
+ /**
15265
+ *
15266
+ * @type {PosMenuReportingCategoryDto}
15267
+ * @memberof PosMenuProductDto
15268
+ */
15269
+ 'reporting_category': PosMenuReportingCategoryDto | null;
15270
+ /**
15271
+ *
15272
+ * @type {string}
15273
+ * @memberof PosMenuProductDto
15274
+ */
15275
+ 'default_course_id': string | null;
15276
+ /**
15277
+ *
15278
+ * @type {string}
15279
+ * @memberof PosMenuProductDto
15280
+ */
15281
+ 'default_course_name': string | null;
15282
+ /**
15283
+ *
15284
+ * @type {string}
15285
+ * @memberof PosMenuProductDto
15286
+ */
15287
+ 'category_default_course_id': string | null;
15288
+ /**
15289
+ *
15290
+ * @type {string}
15291
+ * @memberof PosMenuProductDto
15292
+ */
15293
+ 'category_default_course_name': string | null;
15294
+ /**
15295
+ *
15296
+ * @type {string}
15297
+ * @memberof PosMenuProductDto
15298
+ */
15299
+ 'weight_unit': string | null;
15300
+ /**
15301
+ *
15302
+ * @type {Array<PosMenuChannelConfigDto>}
15303
+ * @memberof PosMenuProductDto
15304
+ */
15305
+ 'channel_configs': Array<PosMenuChannelConfigDto>;
15306
+ /**
15307
+ *
15308
+ * @type {Array<PosMenuExtraDto>}
15309
+ * @memberof PosMenuProductDto
15310
+ */
15311
+ 'extras': Array<PosMenuExtraDto>;
15312
+ }
15313
+ /**
15314
+ *
15315
+ * @export
15316
+ * @interface PosMenuReportingCategoryDto
15317
+ */
15318
+ export interface PosMenuReportingCategoryDto {
15319
+ /**
15320
+ *
15321
+ * @type {number}
15322
+ * @memberof PosMenuReportingCategoryDto
15323
+ */
15324
+ 'id': number;
15325
+ }
15326
+ /**
15327
+ *
15328
+ * @export
15329
+ * @interface PosMenuResponseDto
15330
+ */
15331
+ export interface PosMenuResponseDto {
15332
+ /**
15333
+ *
15334
+ * @type {Array<PosMenuListItemDto>}
15335
+ * @memberof PosMenuResponseDto
15336
+ */
15337
+ 'menus': Array<PosMenuListItemDto>;
15338
+ /**
15339
+ *
15340
+ * @type {Array<PosMenuCategoryDto>}
15341
+ * @memberof PosMenuResponseDto
15342
+ */
15343
+ 'categories': Array<PosMenuCategoryDto>;
15344
+ }
15345
+ /**
15346
+ *
15347
+ * @export
15348
+ * @interface PosMenuSubOptionDto
15349
+ */
15350
+ export interface PosMenuSubOptionDto {
15351
+ /**
15352
+ *
15353
+ * @type {number}
15354
+ * @memberof PosMenuSubOptionDto
15355
+ */
15356
+ 'id': number;
15357
+ /**
15358
+ *
15359
+ * @type {string}
15360
+ * @memberof PosMenuSubOptionDto
15361
+ */
15362
+ 'name': string;
15363
+ /**
15364
+ *
15365
+ * @type {number}
15366
+ * @memberof PosMenuSubOptionDto
15367
+ */
15368
+ 'price': number;
15369
+ /**
15370
+ *
15371
+ * @type {string}
15372
+ * @memberof PosMenuSubOptionDto
15373
+ */
15374
+ 'image': string | null;
15375
+ /**
15376
+ *
15377
+ * @type {string}
15378
+ * @memberof PosMenuSubOptionDto
15379
+ */
15380
+ 'sku': string | null;
15381
+ /**
15382
+ *
15383
+ * @type {number}
15384
+ * @memberof PosMenuSubOptionDto
15385
+ */
15386
+ 'rank': number;
15387
+ /**
15388
+ *
15389
+ * @type {string}
15390
+ * @memberof PosMenuSubOptionDto
15391
+ */
15392
+ 'description': string | null;
15393
+ /**
15394
+ *
15395
+ * @type {number}
15396
+ * @memberof PosMenuSubOptionDto
15397
+ */
15398
+ 'max': number;
15399
+ /**
15400
+ *
15401
+ * @type {boolean}
15402
+ * @memberof PosMenuSubOptionDto
15403
+ */
15404
+ 'enabled': boolean;
15405
+ }
15406
+ /**
15407
+ *
15408
+ * @export
15409
+ * @interface PosMenuSubcategoryDto
15410
+ */
15411
+ export interface PosMenuSubcategoryDto {
15412
+ /**
15413
+ *
15414
+ * @type {string}
15415
+ * @memberof PosMenuSubcategoryDto
15416
+ */
15417
+ 'id': string;
15418
+ /**
15419
+ *
15420
+ * @type {string}
15421
+ * @memberof PosMenuSubcategoryDto
15422
+ */
15423
+ 'name': string;
15424
+ /**
15425
+ *
15426
+ * @type {string}
15427
+ * @memberof PosMenuSubcategoryDto
15428
+ */
15429
+ 'image': string | null;
15430
+ /**
15431
+ *
15432
+ * @type {number}
15433
+ * @memberof PosMenuSubcategoryDto
15434
+ */
15435
+ 'rank': number;
15436
+ /**
15437
+ *
15438
+ * @type {boolean}
15439
+ * @memberof PosMenuSubcategoryDto
15440
+ */
15441
+ 'enabled': boolean;
15442
+ /**
15443
+ *
15444
+ * @type {number}
15445
+ * @memberof PosMenuSubcategoryDto
15446
+ */
15447
+ 'parent_category_id': number | null;
15448
+ /**
15449
+ *
15450
+ * @type {string}
15451
+ * @memberof PosMenuSubcategoryDto
15452
+ */
15453
+ 'header': string | null;
15454
+ /**
15455
+ *
15456
+ * @type {string}
15457
+ * @memberof PosMenuSubcategoryDto
15458
+ */
15459
+ 'description': string | null;
15460
+ /**
15461
+ *
15462
+ * @type {Array<PosMenuProductDto>}
15463
+ * @memberof PosMenuSubcategoryDto
15464
+ */
15465
+ 'products': Array<PosMenuProductDto>;
15466
+ }
15467
+ /**
15468
+ *
15469
+ * @export
15470
+ * @interface PosMenuTaxDto
15471
+ */
15472
+ export interface PosMenuTaxDto {
15473
+ /**
15474
+ *
15475
+ * @type {number}
15476
+ * @memberof PosMenuTaxDto
15477
+ */
15478
+ 'id': number;
15479
+ /**
15480
+ *
15481
+ * @type {string}
15482
+ * @memberof PosMenuTaxDto
15483
+ */
15484
+ 'name': string;
15485
+ /**
15486
+ *
15487
+ * @type {number}
15488
+ * @memberof PosMenuTaxDto
15489
+ */
15490
+ 'rate': number;
15491
+ /**
15492
+ *
15493
+ * @type {number}
15494
+ * @memberof PosMenuTaxDto
15495
+ */
15496
+ 'type': number;
15497
+ /**
15498
+ *
15499
+ * @type {string}
15500
+ * @memberof PosMenuTaxDto
15501
+ */
15502
+ 'external_id': string | null;
15503
+ }
15153
15504
  /**
15154
15505
  *
15155
15506
  * @export
@@ -18678,92 +19029,6 @@ export const RefundOverallStatus = {
18678
19029
  export type RefundOverallStatus = typeof RefundOverallStatus[keyof typeof RefundOverallStatus];
18679
19030
 
18680
19031
 
18681
- /**
18682
- *
18683
- * @export
18684
- * @interface RefundPayloadDto
18685
- */
18686
- export interface RefundPayloadDto {
18687
- /**
18688
- * The ordering business ID for this transaction.
18689
- * @type {number}
18690
- * @memberof RefundPayloadDto
18691
- */
18692
- 'orderingBusinessId': number;
18693
- /**
18694
- * The POS order id for this transaction.
18695
- * @type {string}
18696
- * @memberof RefundPayloadDto
18697
- */
18698
- 'posOrderId': string;
18699
- /**
18700
- * The transaction IDs to refund.
18701
- * @type {Array<string>}
18702
- * @memberof RefundPayloadDto
18703
- */
18704
- 'transactionIds': Array<string> | null;
18705
- /**
18706
- * The item data to be refunded
18707
- * @type {Array<RefundedItemDto>}
18708
- * @memberof RefundPayloadDto
18709
- */
18710
- 'items': Array<RefundedItemDto> | null;
18711
- /**
18712
- * The unique ID of the transaction to be refunded
18713
- * @type {string}
18714
- * @memberof RefundPayloadDto
18715
- */
18716
- 'refundTransactionId': string | null;
18717
- /**
18718
- * The terminal id for this transaction.
18719
- * @type {string}
18720
- * @memberof RefundPayloadDto
18721
- */
18722
- 'terminalId': string;
18723
- }
18724
- /**
18725
- *
18726
- * @export
18727
- * @interface RefundPayloadDtoV4
18728
- */
18729
- export interface RefundPayloadDtoV4 {
18730
- /**
18731
- * The amount to be refunded.
18732
- * @type {number}
18733
- * @memberof RefundPayloadDtoV4
18734
- */
18735
- 'amount': number;
18736
- /**
18737
- * The merchant ID for this transaction
18738
- * @type {string}
18739
- * @memberof RefundPayloadDtoV4
18740
- */
18741
- 'merchantId': string;
18742
- /**
18743
- * The parent session ID for this transaction.
18744
- * @type {string}
18745
- * @memberof RefundPayloadDtoV4
18746
- */
18747
- 'parentSessionId': string;
18748
- /**
18749
- * The parent session ID for this transaction.
18750
- * @type {string}
18751
- * @memberof RefundPayloadDtoV4
18752
- */
18753
- 'orderId': string;
18754
- /**
18755
- * The business ID for this transaction.
18756
- * @type {string}
18757
- * @memberof RefundPayloadDtoV4
18758
- */
18759
- 'businessId': string;
18760
- /**
18761
- * The terminal ID for this transaction
18762
- * @type {string}
18763
- * @memberof RefundPayloadDtoV4
18764
- */
18765
- 'terminalId': string;
18766
- }
18767
19032
  /**
18768
19033
  *
18769
19034
  * @export
@@ -30151,6 +30416,47 @@ export class CashManagementApi extends BaseAPI implements CashManagementApiInter
30151
30416
  */
30152
30417
  export const ChannelMenuApiAxiosParamCreator = function (configuration?: Configuration) {
30153
30418
  return {
30419
+ /**
30420
+ *
30421
+ * @summary Get the L2-cached schedule-agnostic catalog (menus + categories/products) for a business + channel type
30422
+ * @param {number} businessId
30423
+ * @param {string} channelType
30424
+ * @param {*} [options] Override http request option.
30425
+ * @throws {RequiredError}
30426
+ */
30427
+ getChannelCatalog: async (businessId: number, channelType: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30428
+ // verify required parameter 'businessId' is not null or undefined
30429
+ assertParamExists('getChannelCatalog', 'businessId', businessId)
30430
+ // verify required parameter 'channelType' is not null or undefined
30431
+ assertParamExists('getChannelCatalog', 'channelType', channelType)
30432
+ const localVarPath = `/api/v1/channel-menu/{businessId}/catalog`
30433
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
30434
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30435
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30436
+ let baseOptions;
30437
+ if (configuration) {
30438
+ baseOptions = configuration.baseOptions;
30439
+ }
30440
+
30441
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
30442
+ const localVarHeaderParameter = {} as any;
30443
+ const localVarQueryParameter = {} as any;
30444
+
30445
+ if (channelType !== undefined) {
30446
+ localVarQueryParameter['channelType'] = channelType;
30447
+ }
30448
+
30449
+
30450
+
30451
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30452
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30453
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30454
+
30455
+ return {
30456
+ url: toPathString(localVarUrlObj),
30457
+ options: localVarRequestOptions,
30458
+ };
30459
+ },
30154
30460
  /**
30155
30461
  *
30156
30462
  * @summary Get the L2-cached channel menu for a business + channel type
@@ -30248,6 +30554,18 @@ export const ChannelMenuApiAxiosParamCreator = function (configuration?: Configu
30248
30554
  export const ChannelMenuApiFp = function(configuration?: Configuration) {
30249
30555
  const localVarAxiosParamCreator = ChannelMenuApiAxiosParamCreator(configuration)
30250
30556
  return {
30557
+ /**
30558
+ *
30559
+ * @summary Get the L2-cached schedule-agnostic catalog (menus + categories/products) for a business + channel type
30560
+ * @param {number} businessId
30561
+ * @param {string} channelType
30562
+ * @param {*} [options] Override http request option.
30563
+ * @throws {RequiredError}
30564
+ */
30565
+ async getChannelCatalog(businessId: number, channelType: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PosMenuResponseDto>> {
30566
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getChannelCatalog(businessId, channelType, options);
30567
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30568
+ },
30251
30569
  /**
30252
30570
  *
30253
30571
  * @summary Get the L2-cached channel menu for a business + channel type
@@ -30283,6 +30601,17 @@ export const ChannelMenuApiFp = function(configuration?: Configuration) {
30283
30601
  export const ChannelMenuApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
30284
30602
  const localVarFp = ChannelMenuApiFp(configuration)
30285
30603
  return {
30604
+ /**
30605
+ *
30606
+ * @summary Get the L2-cached schedule-agnostic catalog (menus + categories/products) for a business + channel type
30607
+ * @param {number} businessId
30608
+ * @param {string} channelType
30609
+ * @param {*} [options] Override http request option.
30610
+ * @throws {RequiredError}
30611
+ */
30612
+ getChannelCatalog(businessId: number, channelType: string, options?: any): AxiosPromise<PosMenuResponseDto> {
30613
+ return localVarFp.getChannelCatalog(businessId, channelType, options).then((request) => request(axios, basePath));
30614
+ },
30286
30615
  /**
30287
30616
  *
30288
30617
  * @summary Get the L2-cached channel menu for a business + channel type
@@ -30315,6 +30644,17 @@ export const ChannelMenuApiFactory = function (configuration?: Configuration, ba
30315
30644
  * @interface ChannelMenuApi
30316
30645
  */
30317
30646
  export interface ChannelMenuApiInterface {
30647
+ /**
30648
+ *
30649
+ * @summary Get the L2-cached schedule-agnostic catalog (menus + categories/products) for a business + channel type
30650
+ * @param {number} businessId
30651
+ * @param {string} channelType
30652
+ * @param {*} [options] Override http request option.
30653
+ * @throws {RequiredError}
30654
+ * @memberof ChannelMenuApiInterface
30655
+ */
30656
+ getChannelCatalog(businessId: number, channelType: string, options?: AxiosRequestConfig): AxiosPromise<PosMenuResponseDto>;
30657
+
30318
30658
  /**
30319
30659
  *
30320
30660
  * @summary Get the L2-cached channel menu for a business + channel type
@@ -30347,6 +30687,19 @@ export interface ChannelMenuApiInterface {
30347
30687
  * @extends {BaseAPI}
30348
30688
  */
30349
30689
  export class ChannelMenuApi extends BaseAPI implements ChannelMenuApiInterface {
30690
+ /**
30691
+ *
30692
+ * @summary Get the L2-cached schedule-agnostic catalog (menus + categories/products) for a business + channel type
30693
+ * @param {number} businessId
30694
+ * @param {string} channelType
30695
+ * @param {*} [options] Override http request option.
30696
+ * @throws {RequiredError}
30697
+ * @memberof ChannelMenuApi
30698
+ */
30699
+ public getChannelCatalog(businessId: number, channelType: string, options?: AxiosRequestConfig) {
30700
+ return ChannelMenuApiFp(this.configuration).getChannelCatalog(businessId, channelType, options).then((request) => request(this.axios, this.basePath));
30701
+ }
30702
+
30350
30703
  /**
30351
30704
  *
30352
30705
  * @summary Get the L2-cached channel menu for a business + channel type
@@ -40518,114 +40871,6 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
40518
40871
  options: localVarRequestOptions,
40519
40872
  };
40520
40873
  },
40521
- /**
40522
- * Process a cash refund for a previous cash payment transaction.
40523
- * @summary Refund a cash payment
40524
- * @param {CashRefundPayload} cashRefundPayload Payload containing details for the cash refund.
40525
- * @param {*} [options] Override http request option.
40526
- * @throws {RequiredError}
40527
- */
40528
- refundCashPaymentV3: async (cashRefundPayload: CashRefundPayload, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
40529
- // verify required parameter 'cashRefundPayload' is not null or undefined
40530
- assertParamExists('refundCashPaymentV3', 'cashRefundPayload', cashRefundPayload)
40531
- const localVarPath = `/api/v3/payment/cash/refund`;
40532
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
40533
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
40534
- let baseOptions;
40535
- if (configuration) {
40536
- baseOptions = configuration.baseOptions;
40537
- }
40538
-
40539
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
40540
- const localVarHeaderParameter = {} as any;
40541
- const localVarQueryParameter = {} as any;
40542
-
40543
-
40544
-
40545
- localVarHeaderParameter['Content-Type'] = 'application/json';
40546
-
40547
- setSearchParams(localVarUrlObj, localVarQueryParameter);
40548
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
40549
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
40550
- localVarRequestOptions.data = serializeDataIfNeeded(cashRefundPayload, localVarRequestOptions, configuration)
40551
-
40552
- return {
40553
- url: toPathString(localVarUrlObj),
40554
- options: localVarRequestOptions,
40555
- };
40556
- },
40557
- /**
40558
- * Process a manual refund for a previous payment transaction of any type specified in the payload.
40559
- * @summary Refund a manual payment
40560
- * @param {ManualRefundPayload} manualRefundPayload Payload containing details for the manual refund.
40561
- * @param {*} [options] Override http request option.
40562
- * @throws {RequiredError}
40563
- */
40564
- refundManualPaymentV3: async (manualRefundPayload: ManualRefundPayload, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
40565
- // verify required parameter 'manualRefundPayload' is not null or undefined
40566
- assertParamExists('refundManualPaymentV3', 'manualRefundPayload', manualRefundPayload)
40567
- const localVarPath = `/api/v3/payment/manual/refund`;
40568
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
40569
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
40570
- let baseOptions;
40571
- if (configuration) {
40572
- baseOptions = configuration.baseOptions;
40573
- }
40574
-
40575
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
40576
- const localVarHeaderParameter = {} as any;
40577
- const localVarQueryParameter = {} as any;
40578
-
40579
-
40580
-
40581
- localVarHeaderParameter['Content-Type'] = 'application/json';
40582
-
40583
- setSearchParams(localVarUrlObj, localVarQueryParameter);
40584
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
40585
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
40586
- localVarRequestOptions.data = serializeDataIfNeeded(manualRefundPayload, localVarRequestOptions, configuration)
40587
-
40588
- return {
40589
- url: toPathString(localVarUrlObj),
40590
- options: localVarRequestOptions,
40591
- };
40592
- },
40593
- /**
40594
- * Refund a pos order
40595
- * @summary Refund a pos order with nets
40596
- * @param {RefundPayloadDtoV4} refundPayloadDtoV4 Pos order refund payload
40597
- * @param {*} [options] Override http request option.
40598
- * @throws {RequiredError}
40599
- */
40600
- refundNetsTransactionV3: async (refundPayloadDtoV4: RefundPayloadDtoV4, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
40601
- // verify required parameter 'refundPayloadDtoV4' is not null or undefined
40602
- assertParamExists('refundNetsTransactionV3', 'refundPayloadDtoV4', refundPayloadDtoV4)
40603
- const localVarPath = `/api/v3/payment/nets/refund`;
40604
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
40605
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
40606
- let baseOptions;
40607
- if (configuration) {
40608
- baseOptions = configuration.baseOptions;
40609
- }
40610
-
40611
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
40612
- const localVarHeaderParameter = {} as any;
40613
- const localVarQueryParameter = {} as any;
40614
-
40615
-
40616
-
40617
- localVarHeaderParameter['Content-Type'] = 'application/json';
40618
-
40619
- setSearchParams(localVarUrlObj, localVarQueryParameter);
40620
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
40621
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
40622
- localVarRequestOptions.data = serializeDataIfNeeded(refundPayloadDtoV4, localVarRequestOptions, configuration)
40623
-
40624
- return {
40625
- url: toPathString(localVarUrlObj),
40626
- options: localVarRequestOptions,
40627
- };
40628
- },
40629
40874
  /**
40630
40875
  * Refund a single viva transaction
40631
40876
  * @summary Refund a single viva transaction
@@ -40657,78 +40902,6 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
40657
40902
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
40658
40903
  localVarRequestOptions.data = serializeDataIfNeeded(createRefundDto, localVarRequestOptions, configuration)
40659
40904
 
40660
- return {
40661
- url: toPathString(localVarUrlObj),
40662
- options: localVarRequestOptions,
40663
- };
40664
- },
40665
- /**
40666
- * Refund a pos order
40667
- * @summary Refund a pos order
40668
- * @param {RefundPayloadDto} refundPayloadDto Pos order refund payload
40669
- * @param {*} [options] Override http request option.
40670
- * @throws {RequiredError}
40671
- */
40672
- refundVivaTransactionV3: async (refundPayloadDto: RefundPayloadDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
40673
- // verify required parameter 'refundPayloadDto' is not null or undefined
40674
- assertParamExists('refundVivaTransactionV3', 'refundPayloadDto', refundPayloadDto)
40675
- const localVarPath = `/api/v3/payment/refund`;
40676
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
40677
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
40678
- let baseOptions;
40679
- if (configuration) {
40680
- baseOptions = configuration.baseOptions;
40681
- }
40682
-
40683
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
40684
- const localVarHeaderParameter = {} as any;
40685
- const localVarQueryParameter = {} as any;
40686
-
40687
-
40688
-
40689
- localVarHeaderParameter['Content-Type'] = 'application/json';
40690
-
40691
- setSearchParams(localVarUrlObj, localVarQueryParameter);
40692
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
40693
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
40694
- localVarRequestOptions.data = serializeDataIfNeeded(refundPayloadDto, localVarRequestOptions, configuration)
40695
-
40696
- return {
40697
- url: toPathString(localVarUrlObj),
40698
- options: localVarRequestOptions,
40699
- };
40700
- },
40701
- /**
40702
- * Refund a pos order
40703
- * @summary Refund a pos order
40704
- * @param {RefundPayloadDtoV4} refundPayloadDtoV4 Pos order refund payload
40705
- * @param {*} [options] Override http request option.
40706
- * @throws {RequiredError}
40707
- */
40708
- refundVivaTransactionV4: async (refundPayloadDtoV4: RefundPayloadDtoV4, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
40709
- // verify required parameter 'refundPayloadDtoV4' is not null or undefined
40710
- assertParamExists('refundVivaTransactionV4', 'refundPayloadDtoV4', refundPayloadDtoV4)
40711
- const localVarPath = `/api/v4/payment/refund`;
40712
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
40713
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
40714
- let baseOptions;
40715
- if (configuration) {
40716
- baseOptions = configuration.baseOptions;
40717
- }
40718
-
40719
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
40720
- const localVarHeaderParameter = {} as any;
40721
- const localVarQueryParameter = {} as any;
40722
-
40723
-
40724
-
40725
- localVarHeaderParameter['Content-Type'] = 'application/json';
40726
-
40727
- setSearchParams(localVarUrlObj, localVarQueryParameter);
40728
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
40729
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
40730
- localVarRequestOptions.data = serializeDataIfNeeded(refundPayloadDtoV4, localVarRequestOptions, configuration)
40731
-
40732
40905
  return {
40733
40906
  url: toPathString(localVarUrlObj),
40734
40907
  options: localVarRequestOptions,
@@ -40832,39 +41005,6 @@ export const PaymentApiFp = function(configuration?: Configuration) {
40832
41005
  const localVarAxiosArgs = await localVarAxiosParamCreator.processOnlineOrderRefund(orderResponseDto, options);
40833
41006
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
40834
41007
  },
40835
- /**
40836
- * Process a cash refund for a previous cash payment transaction.
40837
- * @summary Refund a cash payment
40838
- * @param {CashRefundPayload} cashRefundPayload Payload containing details for the cash refund.
40839
- * @param {*} [options] Override http request option.
40840
- * @throws {RequiredError}
40841
- */
40842
- async refundCashPaymentV3(cashRefundPayload: CashRefundPayload, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PaymentRefundDto>>> {
40843
- const localVarAxiosArgs = await localVarAxiosParamCreator.refundCashPaymentV3(cashRefundPayload, options);
40844
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
40845
- },
40846
- /**
40847
- * Process a manual refund for a previous payment transaction of any type specified in the payload.
40848
- * @summary Refund a manual payment
40849
- * @param {ManualRefundPayload} manualRefundPayload Payload containing details for the manual refund.
40850
- * @param {*} [options] Override http request option.
40851
- * @throws {RequiredError}
40852
- */
40853
- async refundManualPaymentV3(manualRefundPayload: ManualRefundPayload, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PaymentRefundDto>>> {
40854
- const localVarAxiosArgs = await localVarAxiosParamCreator.refundManualPaymentV3(manualRefundPayload, options);
40855
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
40856
- },
40857
- /**
40858
- * Refund a pos order
40859
- * @summary Refund a pos order with nets
40860
- * @param {RefundPayloadDtoV4} refundPayloadDtoV4 Pos order refund payload
40861
- * @param {*} [options] Override http request option.
40862
- * @throws {RequiredError}
40863
- */
40864
- async refundNetsTransactionV3(refundPayloadDtoV4: RefundPayloadDtoV4, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
40865
- const localVarAxiosArgs = await localVarAxiosParamCreator.refundNetsTransactionV3(refundPayloadDtoV4, options);
40866
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
40867
- },
40868
41008
  /**
40869
41009
  * Refund a single viva transaction
40870
41010
  * @summary Refund a single viva transaction
@@ -40876,28 +41016,6 @@ export const PaymentApiFp = function(configuration?: Configuration) {
40876
41016
  const localVarAxiosArgs = await localVarAxiosParamCreator.refundSingleVivaTransaction(createRefundDto, options);
40877
41017
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
40878
41018
  },
40879
- /**
40880
- * Refund a pos order
40881
- * @summary Refund a pos order
40882
- * @param {RefundPayloadDto} refundPayloadDto Pos order refund payload
40883
- * @param {*} [options] Override http request option.
40884
- * @throws {RequiredError}
40885
- */
40886
- async refundVivaTransactionV3(refundPayloadDto: RefundPayloadDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PaymentRefundDto>>> {
40887
- const localVarAxiosArgs = await localVarAxiosParamCreator.refundVivaTransactionV3(refundPayloadDto, options);
40888
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
40889
- },
40890
- /**
40891
- * Refund a pos order
40892
- * @summary Refund a pos order
40893
- * @param {RefundPayloadDtoV4} refundPayloadDtoV4 Pos order refund payload
40894
- * @param {*} [options] Override http request option.
40895
- * @throws {RequiredError}
40896
- */
40897
- async refundVivaTransactionV4(refundPayloadDtoV4: RefundPayloadDtoV4, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VivaPaymentResultDto>> {
40898
- const localVarAxiosArgs = await localVarAxiosParamCreator.refundVivaTransactionV4(refundPayloadDtoV4, options);
40899
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
40900
- },
40901
41019
  }
40902
41020
  };
40903
41021
 
@@ -40988,36 +41106,6 @@ export const PaymentApiFactory = function (configuration?: Configuration, basePa
40988
41106
  processOnlineOrderRefund(orderResponseDto: OrderResponseDto, options?: any): AxiosPromise<void> {
40989
41107
  return localVarFp.processOnlineOrderRefund(orderResponseDto, options).then((request) => request(axios, basePath));
40990
41108
  },
40991
- /**
40992
- * Process a cash refund for a previous cash payment transaction.
40993
- * @summary Refund a cash payment
40994
- * @param {CashRefundPayload} cashRefundPayload Payload containing details for the cash refund.
40995
- * @param {*} [options] Override http request option.
40996
- * @throws {RequiredError}
40997
- */
40998
- refundCashPaymentV3(cashRefundPayload: CashRefundPayload, options?: any): AxiosPromise<Array<PaymentRefundDto>> {
40999
- return localVarFp.refundCashPaymentV3(cashRefundPayload, options).then((request) => request(axios, basePath));
41000
- },
41001
- /**
41002
- * Process a manual refund for a previous payment transaction of any type specified in the payload.
41003
- * @summary Refund a manual payment
41004
- * @param {ManualRefundPayload} manualRefundPayload Payload containing details for the manual refund.
41005
- * @param {*} [options] Override http request option.
41006
- * @throws {RequiredError}
41007
- */
41008
- refundManualPaymentV3(manualRefundPayload: ManualRefundPayload, options?: any): AxiosPromise<Array<PaymentRefundDto>> {
41009
- return localVarFp.refundManualPaymentV3(manualRefundPayload, options).then((request) => request(axios, basePath));
41010
- },
41011
- /**
41012
- * Refund a pos order
41013
- * @summary Refund a pos order with nets
41014
- * @param {RefundPayloadDtoV4} refundPayloadDtoV4 Pos order refund payload
41015
- * @param {*} [options] Override http request option.
41016
- * @throws {RequiredError}
41017
- */
41018
- refundNetsTransactionV3(refundPayloadDtoV4: RefundPayloadDtoV4, options?: any): AxiosPromise<string> {
41019
- return localVarFp.refundNetsTransactionV3(refundPayloadDtoV4, options).then((request) => request(axios, basePath));
41020
- },
41021
41109
  /**
41022
41110
  * Refund a single viva transaction
41023
41111
  * @summary Refund a single viva transaction
@@ -41028,26 +41116,6 @@ export const PaymentApiFactory = function (configuration?: Configuration, basePa
41028
41116
  refundSingleVivaTransaction(createRefundDto: CreateRefundDto, options?: any): AxiosPromise<VivaPaymentResultDto> {
41029
41117
  return localVarFp.refundSingleVivaTransaction(createRefundDto, options).then((request) => request(axios, basePath));
41030
41118
  },
41031
- /**
41032
- * Refund a pos order
41033
- * @summary Refund a pos order
41034
- * @param {RefundPayloadDto} refundPayloadDto Pos order refund payload
41035
- * @param {*} [options] Override http request option.
41036
- * @throws {RequiredError}
41037
- */
41038
- refundVivaTransactionV3(refundPayloadDto: RefundPayloadDto, options?: any): AxiosPromise<Array<PaymentRefundDto>> {
41039
- return localVarFp.refundVivaTransactionV3(refundPayloadDto, options).then((request) => request(axios, basePath));
41040
- },
41041
- /**
41042
- * Refund a pos order
41043
- * @summary Refund a pos order
41044
- * @param {RefundPayloadDtoV4} refundPayloadDtoV4 Pos order refund payload
41045
- * @param {*} [options] Override http request option.
41046
- * @throws {RequiredError}
41047
- */
41048
- refundVivaTransactionV4(refundPayloadDtoV4: RefundPayloadDtoV4, options?: any): AxiosPromise<VivaPaymentResultDto> {
41049
- return localVarFp.refundVivaTransactionV4(refundPayloadDtoV4, options).then((request) => request(axios, basePath));
41050
- },
41051
41119
  };
41052
41120
  };
41053
41121
 
@@ -41137,36 +41205,6 @@ export interface PaymentApiInterface {
41137
41205
  */
41138
41206
  processOnlineOrderRefund(orderResponseDto: OrderResponseDto, options?: AxiosRequestConfig): AxiosPromise<void>;
41139
41207
 
41140
- /**
41141
- * Process a cash refund for a previous cash payment transaction.
41142
- * @summary Refund a cash payment
41143
- * @param {CashRefundPayload} cashRefundPayload Payload containing details for the cash refund.
41144
- * @param {*} [options] Override http request option.
41145
- * @throws {RequiredError}
41146
- * @memberof PaymentApiInterface
41147
- */
41148
- refundCashPaymentV3(cashRefundPayload: CashRefundPayload, options?: AxiosRequestConfig): AxiosPromise<Array<PaymentRefundDto>>;
41149
-
41150
- /**
41151
- * Process a manual refund for a previous payment transaction of any type specified in the payload.
41152
- * @summary Refund a manual payment
41153
- * @param {ManualRefundPayload} manualRefundPayload Payload containing details for the manual refund.
41154
- * @param {*} [options] Override http request option.
41155
- * @throws {RequiredError}
41156
- * @memberof PaymentApiInterface
41157
- */
41158
- refundManualPaymentV3(manualRefundPayload: ManualRefundPayload, options?: AxiosRequestConfig): AxiosPromise<Array<PaymentRefundDto>>;
41159
-
41160
- /**
41161
- * Refund a pos order
41162
- * @summary Refund a pos order with nets
41163
- * @param {RefundPayloadDtoV4} refundPayloadDtoV4 Pos order refund payload
41164
- * @param {*} [options] Override http request option.
41165
- * @throws {RequiredError}
41166
- * @memberof PaymentApiInterface
41167
- */
41168
- refundNetsTransactionV3(refundPayloadDtoV4: RefundPayloadDtoV4, options?: AxiosRequestConfig): AxiosPromise<string>;
41169
-
41170
41208
  /**
41171
41209
  * Refund a single viva transaction
41172
41210
  * @summary Refund a single viva transaction
@@ -41177,26 +41215,6 @@ export interface PaymentApiInterface {
41177
41215
  */
41178
41216
  refundSingleVivaTransaction(createRefundDto: CreateRefundDto, options?: AxiosRequestConfig): AxiosPromise<VivaPaymentResultDto>;
41179
41217
 
41180
- /**
41181
- * Refund a pos order
41182
- * @summary Refund a pos order
41183
- * @param {RefundPayloadDto} refundPayloadDto Pos order refund payload
41184
- * @param {*} [options] Override http request option.
41185
- * @throws {RequiredError}
41186
- * @memberof PaymentApiInterface
41187
- */
41188
- refundVivaTransactionV3(refundPayloadDto: RefundPayloadDto, options?: AxiosRequestConfig): AxiosPromise<Array<PaymentRefundDto>>;
41189
-
41190
- /**
41191
- * Refund a pos order
41192
- * @summary Refund a pos order
41193
- * @param {RefundPayloadDtoV4} refundPayloadDtoV4 Pos order refund payload
41194
- * @param {*} [options] Override http request option.
41195
- * @throws {RequiredError}
41196
- * @memberof PaymentApiInterface
41197
- */
41198
- refundVivaTransactionV4(refundPayloadDtoV4: RefundPayloadDtoV4, options?: AxiosRequestConfig): AxiosPromise<VivaPaymentResultDto>;
41199
-
41200
41218
  }
41201
41219
 
41202
41220
  /**
@@ -41302,42 +41320,6 @@ export class PaymentApi extends BaseAPI implements PaymentApiInterface {
41302
41320
  return PaymentApiFp(this.configuration).processOnlineOrderRefund(orderResponseDto, options).then((request) => request(this.axios, this.basePath));
41303
41321
  }
41304
41322
 
41305
- /**
41306
- * Process a cash refund for a previous cash payment transaction.
41307
- * @summary Refund a cash payment
41308
- * @param {CashRefundPayload} cashRefundPayload Payload containing details for the cash refund.
41309
- * @param {*} [options] Override http request option.
41310
- * @throws {RequiredError}
41311
- * @memberof PaymentApi
41312
- */
41313
- public refundCashPaymentV3(cashRefundPayload: CashRefundPayload, options?: AxiosRequestConfig) {
41314
- return PaymentApiFp(this.configuration).refundCashPaymentV3(cashRefundPayload, options).then((request) => request(this.axios, this.basePath));
41315
- }
41316
-
41317
- /**
41318
- * Process a manual refund for a previous payment transaction of any type specified in the payload.
41319
- * @summary Refund a manual payment
41320
- * @param {ManualRefundPayload} manualRefundPayload Payload containing details for the manual refund.
41321
- * @param {*} [options] Override http request option.
41322
- * @throws {RequiredError}
41323
- * @memberof PaymentApi
41324
- */
41325
- public refundManualPaymentV3(manualRefundPayload: ManualRefundPayload, options?: AxiosRequestConfig) {
41326
- return PaymentApiFp(this.configuration).refundManualPaymentV3(manualRefundPayload, options).then((request) => request(this.axios, this.basePath));
41327
- }
41328
-
41329
- /**
41330
- * Refund a pos order
41331
- * @summary Refund a pos order with nets
41332
- * @param {RefundPayloadDtoV4} refundPayloadDtoV4 Pos order refund payload
41333
- * @param {*} [options] Override http request option.
41334
- * @throws {RequiredError}
41335
- * @memberof PaymentApi
41336
- */
41337
- public refundNetsTransactionV3(refundPayloadDtoV4: RefundPayloadDtoV4, options?: AxiosRequestConfig) {
41338
- return PaymentApiFp(this.configuration).refundNetsTransactionV3(refundPayloadDtoV4, options).then((request) => request(this.axios, this.basePath));
41339
- }
41340
-
41341
41323
  /**
41342
41324
  * Refund a single viva transaction
41343
41325
  * @summary Refund a single viva transaction
@@ -41349,30 +41331,6 @@ export class PaymentApi extends BaseAPI implements PaymentApiInterface {
41349
41331
  public refundSingleVivaTransaction(createRefundDto: CreateRefundDto, options?: AxiosRequestConfig) {
41350
41332
  return PaymentApiFp(this.configuration).refundSingleVivaTransaction(createRefundDto, options).then((request) => request(this.axios, this.basePath));
41351
41333
  }
41352
-
41353
- /**
41354
- * Refund a pos order
41355
- * @summary Refund a pos order
41356
- * @param {RefundPayloadDto} refundPayloadDto Pos order refund payload
41357
- * @param {*} [options] Override http request option.
41358
- * @throws {RequiredError}
41359
- * @memberof PaymentApi
41360
- */
41361
- public refundVivaTransactionV3(refundPayloadDto: RefundPayloadDto, options?: AxiosRequestConfig) {
41362
- return PaymentApiFp(this.configuration).refundVivaTransactionV3(refundPayloadDto, options).then((request) => request(this.axios, this.basePath));
41363
- }
41364
-
41365
- /**
41366
- * Refund a pos order
41367
- * @summary Refund a pos order
41368
- * @param {RefundPayloadDtoV4} refundPayloadDtoV4 Pos order refund payload
41369
- * @param {*} [options] Override http request option.
41370
- * @throws {RequiredError}
41371
- * @memberof PaymentApi
41372
- */
41373
- public refundVivaTransactionV4(refundPayloadDtoV4: RefundPayloadDtoV4, options?: AxiosRequestConfig) {
41374
- return PaymentApiFp(this.configuration).refundVivaTransactionV4(refundPayloadDtoV4, options).then((request) => request(this.axios, this.basePath));
41375
- }
41376
41334
  }
41377
41335
 
41378
41336
 
@@ -44807,6 +44765,40 @@ export class ProductApi extends BaseAPI implements ProductApiInterface {
44807
44765
  */
44808
44766
  export const ProviderApiAxiosParamCreator = function (configuration?: Configuration) {
44809
44767
  return {
44768
+ /**
44769
+ *
44770
+ * @summary Get provider integrations (MENU) for a business
44771
+ * @param {number} businessId
44772
+ * @param {*} [options] Override http request option.
44773
+ * @throws {RequiredError}
44774
+ */
44775
+ getMenuIntegrations: async (businessId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
44776
+ // verify required parameter 'businessId' is not null or undefined
44777
+ assertParamExists('getMenuIntegrations', 'businessId', businessId)
44778
+ const localVarPath = `/api/v1/provider/integrations/{businessId}`
44779
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
44780
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
44781
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
44782
+ let baseOptions;
44783
+ if (configuration) {
44784
+ baseOptions = configuration.baseOptions;
44785
+ }
44786
+
44787
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
44788
+ const localVarHeaderParameter = {} as any;
44789
+ const localVarQueryParameter = {} as any;
44790
+
44791
+
44792
+
44793
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
44794
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
44795
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
44796
+
44797
+ return {
44798
+ url: toPathString(localVarUrlObj),
44799
+ options: localVarRequestOptions,
44800
+ };
44801
+ },
44810
44802
  /**
44811
44803
  *
44812
44804
  * @summary Get supported channels for a business
@@ -44921,6 +44913,17 @@ export const ProviderApiAxiosParamCreator = function (configuration?: Configurat
44921
44913
  export const ProviderApiFp = function(configuration?: Configuration) {
44922
44914
  const localVarAxiosParamCreator = ProviderApiAxiosParamCreator(configuration)
44923
44915
  return {
44916
+ /**
44917
+ *
44918
+ * @summary Get provider integrations (MENU) for a business
44919
+ * @param {number} businessId
44920
+ * @param {*} [options] Override http request option.
44921
+ * @throws {RequiredError}
44922
+ */
44923
+ async getMenuIntegrations(businessId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProviderIntegrationDto>>> {
44924
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMenuIntegrations(businessId, options);
44925
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
44926
+ },
44924
44927
  /**
44925
44928
  *
44926
44929
  * @summary Get supported channels for a business
@@ -44962,6 +44965,16 @@ export const ProviderApiFp = function(configuration?: Configuration) {
44962
44965
  export const ProviderApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
44963
44966
  const localVarFp = ProviderApiFp(configuration)
44964
44967
  return {
44968
+ /**
44969
+ *
44970
+ * @summary Get provider integrations (MENU) for a business
44971
+ * @param {number} businessId
44972
+ * @param {*} [options] Override http request option.
44973
+ * @throws {RequiredError}
44974
+ */
44975
+ getMenuIntegrations(businessId: number, options?: any): AxiosPromise<Array<ProviderIntegrationDto>> {
44976
+ return localVarFp.getMenuIntegrations(businessId, options).then((request) => request(axios, basePath));
44977
+ },
44965
44978
  /**
44966
44979
  *
44967
44980
  * @summary Get supported channels for a business
@@ -44999,6 +45012,16 @@ export const ProviderApiFactory = function (configuration?: Configuration, baseP
44999
45012
  * @interface ProviderApi
45000
45013
  */
45001
45014
  export interface ProviderApiInterface {
45015
+ /**
45016
+ *
45017
+ * @summary Get provider integrations (MENU) for a business
45018
+ * @param {number} businessId
45019
+ * @param {*} [options] Override http request option.
45020
+ * @throws {RequiredError}
45021
+ * @memberof ProviderApiInterface
45022
+ */
45023
+ getMenuIntegrations(businessId: number, options?: AxiosRequestConfig): AxiosPromise<Array<ProviderIntegrationDto>>;
45024
+
45002
45025
  /**
45003
45026
  *
45004
45027
  * @summary Get supported channels for a business
@@ -45036,6 +45059,18 @@ export interface ProviderApiInterface {
45036
45059
  * @extends {BaseAPI}
45037
45060
  */
45038
45061
  export class ProviderApi extends BaseAPI implements ProviderApiInterface {
45062
+ /**
45063
+ *
45064
+ * @summary Get provider integrations (MENU) for a business
45065
+ * @param {number} businessId
45066
+ * @param {*} [options] Override http request option.
45067
+ * @throws {RequiredError}
45068
+ * @memberof ProviderApi
45069
+ */
45070
+ public getMenuIntegrations(businessId: number, options?: AxiosRequestConfig) {
45071
+ return ProviderApiFp(this.configuration).getMenuIntegrations(businessId, options).then((request) => request(this.axios, this.basePath));
45072
+ }
45073
+
45039
45074
  /**
45040
45075
  *
45041
45076
  * @summary Get supported channels for a business