@munchi_oy/core 1.9.78 → 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/dist/generated/api.d.ts +700 -532
- package/dist/generated/api.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/generated/api.ts +776 -717
- package/package.json +1 -1
- package/src/version.ts +1 -1
package/generated/api.ts
CHANGED
|
@@ -688,6 +688,12 @@ export interface BusinessConfigResponseDtoBusiness {
|
|
|
688
688
|
* @memberof BusinessConfigResponseDtoBusiness
|
|
689
689
|
*/
|
|
690
690
|
'logo': string;
|
|
691
|
+
/**
|
|
692
|
+
* Banner of the business
|
|
693
|
+
* @type {string}
|
|
694
|
+
* @memberof BusinessConfigResponseDtoBusiness
|
|
695
|
+
*/
|
|
696
|
+
'banner'?: string | null;
|
|
691
697
|
/**
|
|
692
698
|
* Email of the business
|
|
693
699
|
* @type {string}
|
|
@@ -855,6 +861,12 @@ export interface BusinessDto {
|
|
|
855
861
|
* @memberof BusinessDto
|
|
856
862
|
*/
|
|
857
863
|
'logo': string;
|
|
864
|
+
/**
|
|
865
|
+
* Banner of the business
|
|
866
|
+
* @type {string}
|
|
867
|
+
* @memberof BusinessDto
|
|
868
|
+
*/
|
|
869
|
+
'banner'?: string | null;
|
|
858
870
|
/**
|
|
859
871
|
* Email of the business
|
|
860
872
|
* @type {string}
|
|
@@ -1945,124 +1957,6 @@ export interface CashLogsQueryDto {
|
|
|
1945
1957
|
}
|
|
1946
1958
|
|
|
1947
1959
|
|
|
1948
|
-
/**
|
|
1949
|
-
*
|
|
1950
|
-
* @export
|
|
1951
|
-
* @interface CashRefundPayload
|
|
1952
|
-
*/
|
|
1953
|
-
export interface CashRefundPayload {
|
|
1954
|
-
/**
|
|
1955
|
-
* Unique internal ID for this refund transaction
|
|
1956
|
-
* @type {string}
|
|
1957
|
-
* @memberof CashRefundPayload
|
|
1958
|
-
*/
|
|
1959
|
-
'id': string;
|
|
1960
|
-
/**
|
|
1961
|
-
* Unique internal ID for this refund transaction
|
|
1962
|
-
* @type {string}
|
|
1963
|
-
* @memberof CashRefundPayload
|
|
1964
|
-
*/
|
|
1965
|
-
'refundId': string;
|
|
1966
|
-
/**
|
|
1967
|
-
* Refund ID from the payment provider (e.g., Stripe refund ID). Deprecated soon
|
|
1968
|
-
* @type {string}
|
|
1969
|
-
* @memberof CashRefundPayload
|
|
1970
|
-
*/
|
|
1971
|
-
'providerRefundId': string;
|
|
1972
|
-
/**
|
|
1973
|
-
* Refund ID from the payment provider V2 (e.g., Stripe refund ID)
|
|
1974
|
-
* @type {string}
|
|
1975
|
-
* @memberof CashRefundPayload
|
|
1976
|
-
*/
|
|
1977
|
-
'sourceTransactionId': string | null;
|
|
1978
|
-
/**
|
|
1979
|
-
* ID of the original payment being refunded
|
|
1980
|
-
* @type {string}
|
|
1981
|
-
* @memberof CashRefundPayload
|
|
1982
|
-
* @deprecated
|
|
1983
|
-
*/
|
|
1984
|
-
'originalPaymentId'?: string | null;
|
|
1985
|
-
/**
|
|
1986
|
-
* ID of the original payment being refunded
|
|
1987
|
-
* @type {string}
|
|
1988
|
-
* @memberof CashRefundPayload
|
|
1989
|
-
*/
|
|
1990
|
-
'originalPaymentEventId'?: string | null;
|
|
1991
|
-
/**
|
|
1992
|
-
*
|
|
1993
|
-
* @type {PaymentProviderEnum}
|
|
1994
|
-
* @memberof CashRefundPayload
|
|
1995
|
-
*/
|
|
1996
|
-
'paymentProvider': PaymentProviderEnum;
|
|
1997
|
-
/**
|
|
1998
|
-
* The amount refunded
|
|
1999
|
-
* @type {number}
|
|
2000
|
-
* @memberof CashRefundPayload
|
|
2001
|
-
*/
|
|
2002
|
-
'amount': number;
|
|
2003
|
-
/**
|
|
2004
|
-
* Currency of the refund (ISO 4217 code, e.g., EUR)
|
|
2005
|
-
* @type {string}
|
|
2006
|
-
* @memberof CashRefundPayload
|
|
2007
|
-
*/
|
|
2008
|
-
'currency': string;
|
|
2009
|
-
/**
|
|
2010
|
-
*
|
|
2011
|
-
* @type {RefundStatusEnum}
|
|
2012
|
-
* @memberof CashRefundPayload
|
|
2013
|
-
*/
|
|
2014
|
-
'status': RefundStatusEnum;
|
|
2015
|
-
/**
|
|
2016
|
-
* Timestamp when the refund was processed
|
|
2017
|
-
* @type {string}
|
|
2018
|
-
* @memberof CashRefundPayload
|
|
2019
|
-
*/
|
|
2020
|
-
'processedAt': string;
|
|
2021
|
-
/**
|
|
2022
|
-
* Reason for the refund
|
|
2023
|
-
* @type {string}
|
|
2024
|
-
* @memberof CashRefundPayload
|
|
2025
|
-
*/
|
|
2026
|
-
'reason'?: string | null;
|
|
2027
|
-
/**
|
|
2028
|
-
* Specific items refunded
|
|
2029
|
-
* @type {Array<RefundedItemDto>}
|
|
2030
|
-
* @memberof CashRefundPayload
|
|
2031
|
-
*/
|
|
2032
|
-
'items'?: Array<RefundedItemDto>;
|
|
2033
|
-
/**
|
|
2034
|
-
* Per-line allocation persisted for this payment refund, keyed to original line item ids
|
|
2035
|
-
* @type {Array<PaymentRefundLineAllocationDto>}
|
|
2036
|
-
* @memberof CashRefundPayload
|
|
2037
|
-
*/
|
|
2038
|
-
'lineItemAllocations'?: Array<PaymentRefundLineAllocationDto>;
|
|
2039
|
-
/**
|
|
2040
|
-
*
|
|
2041
|
-
* @type {PaymentMethod}
|
|
2042
|
-
* @memberof CashRefundPayload
|
|
2043
|
-
*/
|
|
2044
|
-
'type'?: PaymentMethod;
|
|
2045
|
-
/**
|
|
2046
|
-
* Additional metadata from the payment provider or system
|
|
2047
|
-
* @type {{ [key: string]: any; }}
|
|
2048
|
-
* @memberof CashRefundPayload
|
|
2049
|
-
*/
|
|
2050
|
-
'metadata'?: { [key: string]: any; };
|
|
2051
|
-
/**
|
|
2052
|
-
* The ordering business ID for this transaction.
|
|
2053
|
-
* @type {number}
|
|
2054
|
-
* @memberof CashRefundPayload
|
|
2055
|
-
*/
|
|
2056
|
-
'orderingBusinessId': number;
|
|
2057
|
-
/**
|
|
2058
|
-
* The POS order id for this transaction.
|
|
2059
|
-
* @type {string}
|
|
2060
|
-
* @memberof CashRefundPayload
|
|
2061
|
-
*/
|
|
2062
|
-
'posOrderId': string;
|
|
2063
|
-
}
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
1960
|
/**
|
|
2067
1961
|
*
|
|
2068
1962
|
* @export
|
|
@@ -6104,6 +5998,12 @@ export interface ExternalBusinessConfigResponseDto {
|
|
|
6104
5998
|
* @memberof ExternalBusinessConfigResponseDto
|
|
6105
5999
|
*/
|
|
6106
6000
|
'logo': string;
|
|
6001
|
+
/**
|
|
6002
|
+
* Banner of the business
|
|
6003
|
+
* @type {string}
|
|
6004
|
+
* @memberof ExternalBusinessConfigResponseDto
|
|
6005
|
+
*/
|
|
6006
|
+
'banner'?: string | null;
|
|
6107
6007
|
/**
|
|
6108
6008
|
* Email of the business
|
|
6109
6009
|
* @type {string}
|
|
@@ -9442,124 +9342,6 @@ export interface LoyaltyUserInfoResponseDto {
|
|
|
9442
9342
|
*/
|
|
9443
9343
|
'_links': { [key: string]: LoyaltyInfoResponseDtoLinksValue; };
|
|
9444
9344
|
}
|
|
9445
|
-
/**
|
|
9446
|
-
*
|
|
9447
|
-
* @export
|
|
9448
|
-
* @interface ManualRefundPayload
|
|
9449
|
-
*/
|
|
9450
|
-
export interface ManualRefundPayload {
|
|
9451
|
-
/**
|
|
9452
|
-
* Unique internal ID for this refund transaction
|
|
9453
|
-
* @type {string}
|
|
9454
|
-
* @memberof ManualRefundPayload
|
|
9455
|
-
*/
|
|
9456
|
-
'id': string;
|
|
9457
|
-
/**
|
|
9458
|
-
* Unique internal ID for this refund transaction
|
|
9459
|
-
* @type {string}
|
|
9460
|
-
* @memberof ManualRefundPayload
|
|
9461
|
-
*/
|
|
9462
|
-
'refundId': string;
|
|
9463
|
-
/**
|
|
9464
|
-
* Refund ID from the payment provider (e.g., Stripe refund ID). Deprecated soon
|
|
9465
|
-
* @type {string}
|
|
9466
|
-
* @memberof ManualRefundPayload
|
|
9467
|
-
*/
|
|
9468
|
-
'providerRefundId': string;
|
|
9469
|
-
/**
|
|
9470
|
-
* Refund ID from the payment provider V2 (e.g., Stripe refund ID)
|
|
9471
|
-
* @type {string}
|
|
9472
|
-
* @memberof ManualRefundPayload
|
|
9473
|
-
*/
|
|
9474
|
-
'sourceTransactionId': string | null;
|
|
9475
|
-
/**
|
|
9476
|
-
* ID of the original payment being refunded
|
|
9477
|
-
* @type {string}
|
|
9478
|
-
* @memberof ManualRefundPayload
|
|
9479
|
-
* @deprecated
|
|
9480
|
-
*/
|
|
9481
|
-
'originalPaymentId'?: string | null;
|
|
9482
|
-
/**
|
|
9483
|
-
* ID of the original payment being refunded
|
|
9484
|
-
* @type {string}
|
|
9485
|
-
* @memberof ManualRefundPayload
|
|
9486
|
-
*/
|
|
9487
|
-
'originalPaymentEventId'?: string | null;
|
|
9488
|
-
/**
|
|
9489
|
-
*
|
|
9490
|
-
* @type {PaymentProviderEnum}
|
|
9491
|
-
* @memberof ManualRefundPayload
|
|
9492
|
-
*/
|
|
9493
|
-
'paymentProvider': PaymentProviderEnum;
|
|
9494
|
-
/**
|
|
9495
|
-
* The amount refunded
|
|
9496
|
-
* @type {number}
|
|
9497
|
-
* @memberof ManualRefundPayload
|
|
9498
|
-
*/
|
|
9499
|
-
'amount': number;
|
|
9500
|
-
/**
|
|
9501
|
-
* Currency of the refund (ISO 4217 code, e.g., EUR)
|
|
9502
|
-
* @type {string}
|
|
9503
|
-
* @memberof ManualRefundPayload
|
|
9504
|
-
*/
|
|
9505
|
-
'currency': string;
|
|
9506
|
-
/**
|
|
9507
|
-
*
|
|
9508
|
-
* @type {RefundStatusEnum}
|
|
9509
|
-
* @memberof ManualRefundPayload
|
|
9510
|
-
*/
|
|
9511
|
-
'status': RefundStatusEnum;
|
|
9512
|
-
/**
|
|
9513
|
-
* Timestamp when the refund was processed
|
|
9514
|
-
* @type {string}
|
|
9515
|
-
* @memberof ManualRefundPayload
|
|
9516
|
-
*/
|
|
9517
|
-
'processedAt': string;
|
|
9518
|
-
/**
|
|
9519
|
-
* Reason for the refund
|
|
9520
|
-
* @type {string}
|
|
9521
|
-
* @memberof ManualRefundPayload
|
|
9522
|
-
*/
|
|
9523
|
-
'reason'?: string | null;
|
|
9524
|
-
/**
|
|
9525
|
-
* Specific items refunded
|
|
9526
|
-
* @type {Array<RefundedItemDto>}
|
|
9527
|
-
* @memberof ManualRefundPayload
|
|
9528
|
-
*/
|
|
9529
|
-
'items'?: Array<RefundedItemDto>;
|
|
9530
|
-
/**
|
|
9531
|
-
* Per-line allocation persisted for this payment refund, keyed to original line item ids
|
|
9532
|
-
* @type {Array<PaymentRefundLineAllocationDto>}
|
|
9533
|
-
* @memberof ManualRefundPayload
|
|
9534
|
-
*/
|
|
9535
|
-
'lineItemAllocations'?: Array<PaymentRefundLineAllocationDto>;
|
|
9536
|
-
/**
|
|
9537
|
-
*
|
|
9538
|
-
* @type {PaymentMethod}
|
|
9539
|
-
* @memberof ManualRefundPayload
|
|
9540
|
-
*/
|
|
9541
|
-
'type'?: PaymentMethod;
|
|
9542
|
-
/**
|
|
9543
|
-
* Additional metadata from the payment provider or system
|
|
9544
|
-
* @type {{ [key: string]: any; }}
|
|
9545
|
-
* @memberof ManualRefundPayload
|
|
9546
|
-
*/
|
|
9547
|
-
'metadata'?: { [key: string]: any; };
|
|
9548
|
-
/**
|
|
9549
|
-
* The ordering business ID for this transaction.
|
|
9550
|
-
* @type {number}
|
|
9551
|
-
* @memberof ManualRefundPayload
|
|
9552
|
-
*/
|
|
9553
|
-
'orderingBusinessId': number;
|
|
9554
|
-
/**
|
|
9555
|
-
* The POS order id for this transaction.
|
|
9556
|
-
* @type {string}
|
|
9557
|
-
* @memberof ManualRefundPayload
|
|
9558
|
-
*/
|
|
9559
|
-
'posOrderId': string;
|
|
9560
|
-
}
|
|
9561
|
-
|
|
9562
|
-
|
|
9563
9345
|
/**
|
|
9564
9346
|
*
|
|
9565
9347
|
* @export
|
|
@@ -11499,6 +11281,12 @@ export interface OrderResponseDtoBusiness {
|
|
|
11499
11281
|
* @memberof OrderResponseDtoBusiness
|
|
11500
11282
|
*/
|
|
11501
11283
|
'logo': string;
|
|
11284
|
+
/**
|
|
11285
|
+
* Banner of the business
|
|
11286
|
+
* @type {string}
|
|
11287
|
+
* @memberof OrderResponseDtoBusiness
|
|
11288
|
+
*/
|
|
11289
|
+
'banner'?: string | null;
|
|
11502
11290
|
/**
|
|
11503
11291
|
* Email of the business
|
|
11504
11292
|
* @type {string}
|
|
@@ -15126,6 +14914,593 @@ export interface PosItemDtoDiscount {
|
|
|
15126
14914
|
}
|
|
15127
14915
|
|
|
15128
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
|
+
}
|
|
15129
15504
|
/**
|
|
15130
15505
|
*
|
|
15131
15506
|
* @export
|
|
@@ -18654,92 +19029,6 @@ export const RefundOverallStatus = {
|
|
|
18654
19029
|
export type RefundOverallStatus = typeof RefundOverallStatus[keyof typeof RefundOverallStatus];
|
|
18655
19030
|
|
|
18656
19031
|
|
|
18657
|
-
/**
|
|
18658
|
-
*
|
|
18659
|
-
* @export
|
|
18660
|
-
* @interface RefundPayloadDto
|
|
18661
|
-
*/
|
|
18662
|
-
export interface RefundPayloadDto {
|
|
18663
|
-
/**
|
|
18664
|
-
* The ordering business ID for this transaction.
|
|
18665
|
-
* @type {number}
|
|
18666
|
-
* @memberof RefundPayloadDto
|
|
18667
|
-
*/
|
|
18668
|
-
'orderingBusinessId': number;
|
|
18669
|
-
/**
|
|
18670
|
-
* The POS order id for this transaction.
|
|
18671
|
-
* @type {string}
|
|
18672
|
-
* @memberof RefundPayloadDto
|
|
18673
|
-
*/
|
|
18674
|
-
'posOrderId': string;
|
|
18675
|
-
/**
|
|
18676
|
-
* The transaction IDs to refund.
|
|
18677
|
-
* @type {Array<string>}
|
|
18678
|
-
* @memberof RefundPayloadDto
|
|
18679
|
-
*/
|
|
18680
|
-
'transactionIds': Array<string> | null;
|
|
18681
|
-
/**
|
|
18682
|
-
* The item data to be refunded
|
|
18683
|
-
* @type {Array<RefundedItemDto>}
|
|
18684
|
-
* @memberof RefundPayloadDto
|
|
18685
|
-
*/
|
|
18686
|
-
'items': Array<RefundedItemDto> | null;
|
|
18687
|
-
/**
|
|
18688
|
-
* The unique ID of the transaction to be refunded
|
|
18689
|
-
* @type {string}
|
|
18690
|
-
* @memberof RefundPayloadDto
|
|
18691
|
-
*/
|
|
18692
|
-
'refundTransactionId': string | null;
|
|
18693
|
-
/**
|
|
18694
|
-
* The terminal id for this transaction.
|
|
18695
|
-
* @type {string}
|
|
18696
|
-
* @memberof RefundPayloadDto
|
|
18697
|
-
*/
|
|
18698
|
-
'terminalId': string;
|
|
18699
|
-
}
|
|
18700
|
-
/**
|
|
18701
|
-
*
|
|
18702
|
-
* @export
|
|
18703
|
-
* @interface RefundPayloadDtoV4
|
|
18704
|
-
*/
|
|
18705
|
-
export interface RefundPayloadDtoV4 {
|
|
18706
|
-
/**
|
|
18707
|
-
* The amount to be refunded.
|
|
18708
|
-
* @type {number}
|
|
18709
|
-
* @memberof RefundPayloadDtoV4
|
|
18710
|
-
*/
|
|
18711
|
-
'amount': number;
|
|
18712
|
-
/**
|
|
18713
|
-
* The merchant ID for this transaction
|
|
18714
|
-
* @type {string}
|
|
18715
|
-
* @memberof RefundPayloadDtoV4
|
|
18716
|
-
*/
|
|
18717
|
-
'merchantId': string;
|
|
18718
|
-
/**
|
|
18719
|
-
* The parent session ID for this transaction.
|
|
18720
|
-
* @type {string}
|
|
18721
|
-
* @memberof RefundPayloadDtoV4
|
|
18722
|
-
*/
|
|
18723
|
-
'parentSessionId': string;
|
|
18724
|
-
/**
|
|
18725
|
-
* The parent session ID for this transaction.
|
|
18726
|
-
* @type {string}
|
|
18727
|
-
* @memberof RefundPayloadDtoV4
|
|
18728
|
-
*/
|
|
18729
|
-
'orderId': string;
|
|
18730
|
-
/**
|
|
18731
|
-
* The business ID for this transaction.
|
|
18732
|
-
* @type {string}
|
|
18733
|
-
* @memberof RefundPayloadDtoV4
|
|
18734
|
-
*/
|
|
18735
|
-
'businessId': string;
|
|
18736
|
-
/**
|
|
18737
|
-
* The terminal ID for this transaction
|
|
18738
|
-
* @type {string}
|
|
18739
|
-
* @memberof RefundPayloadDtoV4
|
|
18740
|
-
*/
|
|
18741
|
-
'terminalId': string;
|
|
18742
|
-
}
|
|
18743
19032
|
/**
|
|
18744
19033
|
*
|
|
18745
19034
|
* @export
|
|
@@ -30127,6 +30416,47 @@ export class CashManagementApi extends BaseAPI implements CashManagementApiInter
|
|
|
30127
30416
|
*/
|
|
30128
30417
|
export const ChannelMenuApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
30129
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
|
+
},
|
|
30130
30460
|
/**
|
|
30131
30461
|
*
|
|
30132
30462
|
* @summary Get the L2-cached channel menu for a business + channel type
|
|
@@ -30224,6 +30554,18 @@ export const ChannelMenuApiAxiosParamCreator = function (configuration?: Configu
|
|
|
30224
30554
|
export const ChannelMenuApiFp = function(configuration?: Configuration) {
|
|
30225
30555
|
const localVarAxiosParamCreator = ChannelMenuApiAxiosParamCreator(configuration)
|
|
30226
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
|
+
},
|
|
30227
30569
|
/**
|
|
30228
30570
|
*
|
|
30229
30571
|
* @summary Get the L2-cached channel menu for a business + channel type
|
|
@@ -30259,6 +30601,17 @@ export const ChannelMenuApiFp = function(configuration?: Configuration) {
|
|
|
30259
30601
|
export const ChannelMenuApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
30260
30602
|
const localVarFp = ChannelMenuApiFp(configuration)
|
|
30261
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
|
+
},
|
|
30262
30615
|
/**
|
|
30263
30616
|
*
|
|
30264
30617
|
* @summary Get the L2-cached channel menu for a business + channel type
|
|
@@ -30291,6 +30644,17 @@ export const ChannelMenuApiFactory = function (configuration?: Configuration, ba
|
|
|
30291
30644
|
* @interface ChannelMenuApi
|
|
30292
30645
|
*/
|
|
30293
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
|
+
|
|
30294
30658
|
/**
|
|
30295
30659
|
*
|
|
30296
30660
|
* @summary Get the L2-cached channel menu for a business + channel type
|
|
@@ -30323,6 +30687,19 @@ export interface ChannelMenuApiInterface {
|
|
|
30323
30687
|
* @extends {BaseAPI}
|
|
30324
30688
|
*/
|
|
30325
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
|
+
|
|
30326
30703
|
/**
|
|
30327
30704
|
*
|
|
30328
30705
|
* @summary Get the L2-cached channel menu for a business + channel type
|
|
@@ -40494,114 +40871,6 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
40494
40871
|
options: localVarRequestOptions,
|
|
40495
40872
|
};
|
|
40496
40873
|
},
|
|
40497
|
-
/**
|
|
40498
|
-
* Process a cash refund for a previous cash payment transaction.
|
|
40499
|
-
* @summary Refund a cash payment
|
|
40500
|
-
* @param {CashRefundPayload} cashRefundPayload Payload containing details for the cash refund.
|
|
40501
|
-
* @param {*} [options] Override http request option.
|
|
40502
|
-
* @throws {RequiredError}
|
|
40503
|
-
*/
|
|
40504
|
-
refundCashPaymentV3: async (cashRefundPayload: CashRefundPayload, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40505
|
-
// verify required parameter 'cashRefundPayload' is not null or undefined
|
|
40506
|
-
assertParamExists('refundCashPaymentV3', 'cashRefundPayload', cashRefundPayload)
|
|
40507
|
-
const localVarPath = `/api/v3/payment/cash/refund`;
|
|
40508
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40509
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40510
|
-
let baseOptions;
|
|
40511
|
-
if (configuration) {
|
|
40512
|
-
baseOptions = configuration.baseOptions;
|
|
40513
|
-
}
|
|
40514
|
-
|
|
40515
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
40516
|
-
const localVarHeaderParameter = {} as any;
|
|
40517
|
-
const localVarQueryParameter = {} as any;
|
|
40518
|
-
|
|
40519
|
-
|
|
40520
|
-
|
|
40521
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
40522
|
-
|
|
40523
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40524
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40525
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
40526
|
-
localVarRequestOptions.data = serializeDataIfNeeded(cashRefundPayload, localVarRequestOptions, configuration)
|
|
40527
|
-
|
|
40528
|
-
return {
|
|
40529
|
-
url: toPathString(localVarUrlObj),
|
|
40530
|
-
options: localVarRequestOptions,
|
|
40531
|
-
};
|
|
40532
|
-
},
|
|
40533
|
-
/**
|
|
40534
|
-
* Process a manual refund for a previous payment transaction of any type specified in the payload.
|
|
40535
|
-
* @summary Refund a manual payment
|
|
40536
|
-
* @param {ManualRefundPayload} manualRefundPayload Payload containing details for the manual refund.
|
|
40537
|
-
* @param {*} [options] Override http request option.
|
|
40538
|
-
* @throws {RequiredError}
|
|
40539
|
-
*/
|
|
40540
|
-
refundManualPaymentV3: async (manualRefundPayload: ManualRefundPayload, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40541
|
-
// verify required parameter 'manualRefundPayload' is not null or undefined
|
|
40542
|
-
assertParamExists('refundManualPaymentV3', 'manualRefundPayload', manualRefundPayload)
|
|
40543
|
-
const localVarPath = `/api/v3/payment/manual/refund`;
|
|
40544
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40545
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40546
|
-
let baseOptions;
|
|
40547
|
-
if (configuration) {
|
|
40548
|
-
baseOptions = configuration.baseOptions;
|
|
40549
|
-
}
|
|
40550
|
-
|
|
40551
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
40552
|
-
const localVarHeaderParameter = {} as any;
|
|
40553
|
-
const localVarQueryParameter = {} as any;
|
|
40554
|
-
|
|
40555
|
-
|
|
40556
|
-
|
|
40557
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
40558
|
-
|
|
40559
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40560
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40561
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
40562
|
-
localVarRequestOptions.data = serializeDataIfNeeded(manualRefundPayload, localVarRequestOptions, configuration)
|
|
40563
|
-
|
|
40564
|
-
return {
|
|
40565
|
-
url: toPathString(localVarUrlObj),
|
|
40566
|
-
options: localVarRequestOptions,
|
|
40567
|
-
};
|
|
40568
|
-
},
|
|
40569
|
-
/**
|
|
40570
|
-
* Refund a pos order
|
|
40571
|
-
* @summary Refund a pos order with nets
|
|
40572
|
-
* @param {RefundPayloadDtoV4} refundPayloadDtoV4 Pos order refund payload
|
|
40573
|
-
* @param {*} [options] Override http request option.
|
|
40574
|
-
* @throws {RequiredError}
|
|
40575
|
-
*/
|
|
40576
|
-
refundNetsTransactionV3: async (refundPayloadDtoV4: RefundPayloadDtoV4, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40577
|
-
// verify required parameter 'refundPayloadDtoV4' is not null or undefined
|
|
40578
|
-
assertParamExists('refundNetsTransactionV3', 'refundPayloadDtoV4', refundPayloadDtoV4)
|
|
40579
|
-
const localVarPath = `/api/v3/payment/nets/refund`;
|
|
40580
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40581
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40582
|
-
let baseOptions;
|
|
40583
|
-
if (configuration) {
|
|
40584
|
-
baseOptions = configuration.baseOptions;
|
|
40585
|
-
}
|
|
40586
|
-
|
|
40587
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
40588
|
-
const localVarHeaderParameter = {} as any;
|
|
40589
|
-
const localVarQueryParameter = {} as any;
|
|
40590
|
-
|
|
40591
|
-
|
|
40592
|
-
|
|
40593
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
40594
|
-
|
|
40595
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40596
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40597
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
40598
|
-
localVarRequestOptions.data = serializeDataIfNeeded(refundPayloadDtoV4, localVarRequestOptions, configuration)
|
|
40599
|
-
|
|
40600
|
-
return {
|
|
40601
|
-
url: toPathString(localVarUrlObj),
|
|
40602
|
-
options: localVarRequestOptions,
|
|
40603
|
-
};
|
|
40604
|
-
},
|
|
40605
40874
|
/**
|
|
40606
40875
|
* Refund a single viva transaction
|
|
40607
40876
|
* @summary Refund a single viva transaction
|
|
@@ -40633,78 +40902,6 @@ export const PaymentApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
40633
40902
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
40634
40903
|
localVarRequestOptions.data = serializeDataIfNeeded(createRefundDto, localVarRequestOptions, configuration)
|
|
40635
40904
|
|
|
40636
|
-
return {
|
|
40637
|
-
url: toPathString(localVarUrlObj),
|
|
40638
|
-
options: localVarRequestOptions,
|
|
40639
|
-
};
|
|
40640
|
-
},
|
|
40641
|
-
/**
|
|
40642
|
-
* Refund a pos order
|
|
40643
|
-
* @summary Refund a pos order
|
|
40644
|
-
* @param {RefundPayloadDto} refundPayloadDto Pos order refund payload
|
|
40645
|
-
* @param {*} [options] Override http request option.
|
|
40646
|
-
* @throws {RequiredError}
|
|
40647
|
-
*/
|
|
40648
|
-
refundVivaTransactionV3: async (refundPayloadDto: RefundPayloadDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40649
|
-
// verify required parameter 'refundPayloadDto' is not null or undefined
|
|
40650
|
-
assertParamExists('refundVivaTransactionV3', 'refundPayloadDto', refundPayloadDto)
|
|
40651
|
-
const localVarPath = `/api/v3/payment/refund`;
|
|
40652
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40653
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40654
|
-
let baseOptions;
|
|
40655
|
-
if (configuration) {
|
|
40656
|
-
baseOptions = configuration.baseOptions;
|
|
40657
|
-
}
|
|
40658
|
-
|
|
40659
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
40660
|
-
const localVarHeaderParameter = {} as any;
|
|
40661
|
-
const localVarQueryParameter = {} as any;
|
|
40662
|
-
|
|
40663
|
-
|
|
40664
|
-
|
|
40665
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
40666
|
-
|
|
40667
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40668
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40669
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
40670
|
-
localVarRequestOptions.data = serializeDataIfNeeded(refundPayloadDto, localVarRequestOptions, configuration)
|
|
40671
|
-
|
|
40672
|
-
return {
|
|
40673
|
-
url: toPathString(localVarUrlObj),
|
|
40674
|
-
options: localVarRequestOptions,
|
|
40675
|
-
};
|
|
40676
|
-
},
|
|
40677
|
-
/**
|
|
40678
|
-
* Refund a pos order
|
|
40679
|
-
* @summary Refund a pos order
|
|
40680
|
-
* @param {RefundPayloadDtoV4} refundPayloadDtoV4 Pos order refund payload
|
|
40681
|
-
* @param {*} [options] Override http request option.
|
|
40682
|
-
* @throws {RequiredError}
|
|
40683
|
-
*/
|
|
40684
|
-
refundVivaTransactionV4: async (refundPayloadDtoV4: RefundPayloadDtoV4, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40685
|
-
// verify required parameter 'refundPayloadDtoV4' is not null or undefined
|
|
40686
|
-
assertParamExists('refundVivaTransactionV4', 'refundPayloadDtoV4', refundPayloadDtoV4)
|
|
40687
|
-
const localVarPath = `/api/v4/payment/refund`;
|
|
40688
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40689
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40690
|
-
let baseOptions;
|
|
40691
|
-
if (configuration) {
|
|
40692
|
-
baseOptions = configuration.baseOptions;
|
|
40693
|
-
}
|
|
40694
|
-
|
|
40695
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
40696
|
-
const localVarHeaderParameter = {} as any;
|
|
40697
|
-
const localVarQueryParameter = {} as any;
|
|
40698
|
-
|
|
40699
|
-
|
|
40700
|
-
|
|
40701
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
40702
|
-
|
|
40703
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40704
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40705
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
40706
|
-
localVarRequestOptions.data = serializeDataIfNeeded(refundPayloadDtoV4, localVarRequestOptions, configuration)
|
|
40707
|
-
|
|
40708
40905
|
return {
|
|
40709
40906
|
url: toPathString(localVarUrlObj),
|
|
40710
40907
|
options: localVarRequestOptions,
|
|
@@ -40808,39 +41005,6 @@ export const PaymentApiFp = function(configuration?: Configuration) {
|
|
|
40808
41005
|
const localVarAxiosArgs = await localVarAxiosParamCreator.processOnlineOrderRefund(orderResponseDto, options);
|
|
40809
41006
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
40810
41007
|
},
|
|
40811
|
-
/**
|
|
40812
|
-
* Process a cash refund for a previous cash payment transaction.
|
|
40813
|
-
* @summary Refund a cash payment
|
|
40814
|
-
* @param {CashRefundPayload} cashRefundPayload Payload containing details for the cash refund.
|
|
40815
|
-
* @param {*} [options] Override http request option.
|
|
40816
|
-
* @throws {RequiredError}
|
|
40817
|
-
*/
|
|
40818
|
-
async refundCashPaymentV3(cashRefundPayload: CashRefundPayload, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PaymentRefundDto>>> {
|
|
40819
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.refundCashPaymentV3(cashRefundPayload, options);
|
|
40820
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
40821
|
-
},
|
|
40822
|
-
/**
|
|
40823
|
-
* Process a manual refund for a previous payment transaction of any type specified in the payload.
|
|
40824
|
-
* @summary Refund a manual payment
|
|
40825
|
-
* @param {ManualRefundPayload} manualRefundPayload Payload containing details for the manual refund.
|
|
40826
|
-
* @param {*} [options] Override http request option.
|
|
40827
|
-
* @throws {RequiredError}
|
|
40828
|
-
*/
|
|
40829
|
-
async refundManualPaymentV3(manualRefundPayload: ManualRefundPayload, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PaymentRefundDto>>> {
|
|
40830
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.refundManualPaymentV3(manualRefundPayload, options);
|
|
40831
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
40832
|
-
},
|
|
40833
|
-
/**
|
|
40834
|
-
* Refund a pos order
|
|
40835
|
-
* @summary Refund a pos order with nets
|
|
40836
|
-
* @param {RefundPayloadDtoV4} refundPayloadDtoV4 Pos order refund payload
|
|
40837
|
-
* @param {*} [options] Override http request option.
|
|
40838
|
-
* @throws {RequiredError}
|
|
40839
|
-
*/
|
|
40840
|
-
async refundNetsTransactionV3(refundPayloadDtoV4: RefundPayloadDtoV4, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
40841
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.refundNetsTransactionV3(refundPayloadDtoV4, options);
|
|
40842
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
40843
|
-
},
|
|
40844
41008
|
/**
|
|
40845
41009
|
* Refund a single viva transaction
|
|
40846
41010
|
* @summary Refund a single viva transaction
|
|
@@ -40852,28 +41016,6 @@ export const PaymentApiFp = function(configuration?: Configuration) {
|
|
|
40852
41016
|
const localVarAxiosArgs = await localVarAxiosParamCreator.refundSingleVivaTransaction(createRefundDto, options);
|
|
40853
41017
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
40854
41018
|
},
|
|
40855
|
-
/**
|
|
40856
|
-
* Refund a pos order
|
|
40857
|
-
* @summary Refund a pos order
|
|
40858
|
-
* @param {RefundPayloadDto} refundPayloadDto Pos order refund payload
|
|
40859
|
-
* @param {*} [options] Override http request option.
|
|
40860
|
-
* @throws {RequiredError}
|
|
40861
|
-
*/
|
|
40862
|
-
async refundVivaTransactionV3(refundPayloadDto: RefundPayloadDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PaymentRefundDto>>> {
|
|
40863
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.refundVivaTransactionV3(refundPayloadDto, options);
|
|
40864
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
40865
|
-
},
|
|
40866
|
-
/**
|
|
40867
|
-
* Refund a pos order
|
|
40868
|
-
* @summary Refund a pos order
|
|
40869
|
-
* @param {RefundPayloadDtoV4} refundPayloadDtoV4 Pos order refund payload
|
|
40870
|
-
* @param {*} [options] Override http request option.
|
|
40871
|
-
* @throws {RequiredError}
|
|
40872
|
-
*/
|
|
40873
|
-
async refundVivaTransactionV4(refundPayloadDtoV4: RefundPayloadDtoV4, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VivaPaymentResultDto>> {
|
|
40874
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.refundVivaTransactionV4(refundPayloadDtoV4, options);
|
|
40875
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
40876
|
-
},
|
|
40877
41019
|
}
|
|
40878
41020
|
};
|
|
40879
41021
|
|
|
@@ -40964,36 +41106,6 @@ export const PaymentApiFactory = function (configuration?: Configuration, basePa
|
|
|
40964
41106
|
processOnlineOrderRefund(orderResponseDto: OrderResponseDto, options?: any): AxiosPromise<void> {
|
|
40965
41107
|
return localVarFp.processOnlineOrderRefund(orderResponseDto, options).then((request) => request(axios, basePath));
|
|
40966
41108
|
},
|
|
40967
|
-
/**
|
|
40968
|
-
* Process a cash refund for a previous cash payment transaction.
|
|
40969
|
-
* @summary Refund a cash payment
|
|
40970
|
-
* @param {CashRefundPayload} cashRefundPayload Payload containing details for the cash refund.
|
|
40971
|
-
* @param {*} [options] Override http request option.
|
|
40972
|
-
* @throws {RequiredError}
|
|
40973
|
-
*/
|
|
40974
|
-
refundCashPaymentV3(cashRefundPayload: CashRefundPayload, options?: any): AxiosPromise<Array<PaymentRefundDto>> {
|
|
40975
|
-
return localVarFp.refundCashPaymentV3(cashRefundPayload, options).then((request) => request(axios, basePath));
|
|
40976
|
-
},
|
|
40977
|
-
/**
|
|
40978
|
-
* Process a manual refund for a previous payment transaction of any type specified in the payload.
|
|
40979
|
-
* @summary Refund a manual payment
|
|
40980
|
-
* @param {ManualRefundPayload} manualRefundPayload Payload containing details for the manual refund.
|
|
40981
|
-
* @param {*} [options] Override http request option.
|
|
40982
|
-
* @throws {RequiredError}
|
|
40983
|
-
*/
|
|
40984
|
-
refundManualPaymentV3(manualRefundPayload: ManualRefundPayload, options?: any): AxiosPromise<Array<PaymentRefundDto>> {
|
|
40985
|
-
return localVarFp.refundManualPaymentV3(manualRefundPayload, options).then((request) => request(axios, basePath));
|
|
40986
|
-
},
|
|
40987
|
-
/**
|
|
40988
|
-
* Refund a pos order
|
|
40989
|
-
* @summary Refund a pos order with nets
|
|
40990
|
-
* @param {RefundPayloadDtoV4} refundPayloadDtoV4 Pos order refund payload
|
|
40991
|
-
* @param {*} [options] Override http request option.
|
|
40992
|
-
* @throws {RequiredError}
|
|
40993
|
-
*/
|
|
40994
|
-
refundNetsTransactionV3(refundPayloadDtoV4: RefundPayloadDtoV4, options?: any): AxiosPromise<string> {
|
|
40995
|
-
return localVarFp.refundNetsTransactionV3(refundPayloadDtoV4, options).then((request) => request(axios, basePath));
|
|
40996
|
-
},
|
|
40997
41109
|
/**
|
|
40998
41110
|
* Refund a single viva transaction
|
|
40999
41111
|
* @summary Refund a single viva transaction
|
|
@@ -41004,26 +41116,6 @@ export const PaymentApiFactory = function (configuration?: Configuration, basePa
|
|
|
41004
41116
|
refundSingleVivaTransaction(createRefundDto: CreateRefundDto, options?: any): AxiosPromise<VivaPaymentResultDto> {
|
|
41005
41117
|
return localVarFp.refundSingleVivaTransaction(createRefundDto, options).then((request) => request(axios, basePath));
|
|
41006
41118
|
},
|
|
41007
|
-
/**
|
|
41008
|
-
* Refund a pos order
|
|
41009
|
-
* @summary Refund a pos order
|
|
41010
|
-
* @param {RefundPayloadDto} refundPayloadDto Pos order refund payload
|
|
41011
|
-
* @param {*} [options] Override http request option.
|
|
41012
|
-
* @throws {RequiredError}
|
|
41013
|
-
*/
|
|
41014
|
-
refundVivaTransactionV3(refundPayloadDto: RefundPayloadDto, options?: any): AxiosPromise<Array<PaymentRefundDto>> {
|
|
41015
|
-
return localVarFp.refundVivaTransactionV3(refundPayloadDto, options).then((request) => request(axios, basePath));
|
|
41016
|
-
},
|
|
41017
|
-
/**
|
|
41018
|
-
* Refund a pos order
|
|
41019
|
-
* @summary Refund a pos order
|
|
41020
|
-
* @param {RefundPayloadDtoV4} refundPayloadDtoV4 Pos order refund payload
|
|
41021
|
-
* @param {*} [options] Override http request option.
|
|
41022
|
-
* @throws {RequiredError}
|
|
41023
|
-
*/
|
|
41024
|
-
refundVivaTransactionV4(refundPayloadDtoV4: RefundPayloadDtoV4, options?: any): AxiosPromise<VivaPaymentResultDto> {
|
|
41025
|
-
return localVarFp.refundVivaTransactionV4(refundPayloadDtoV4, options).then((request) => request(axios, basePath));
|
|
41026
|
-
},
|
|
41027
41119
|
};
|
|
41028
41120
|
};
|
|
41029
41121
|
|
|
@@ -41113,36 +41205,6 @@ export interface PaymentApiInterface {
|
|
|
41113
41205
|
*/
|
|
41114
41206
|
processOnlineOrderRefund(orderResponseDto: OrderResponseDto, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
41115
41207
|
|
|
41116
|
-
/**
|
|
41117
|
-
* Process a cash refund for a previous cash payment transaction.
|
|
41118
|
-
* @summary Refund a cash payment
|
|
41119
|
-
* @param {CashRefundPayload} cashRefundPayload Payload containing details for the cash refund.
|
|
41120
|
-
* @param {*} [options] Override http request option.
|
|
41121
|
-
* @throws {RequiredError}
|
|
41122
|
-
* @memberof PaymentApiInterface
|
|
41123
|
-
*/
|
|
41124
|
-
refundCashPaymentV3(cashRefundPayload: CashRefundPayload, options?: AxiosRequestConfig): AxiosPromise<Array<PaymentRefundDto>>;
|
|
41125
|
-
|
|
41126
|
-
/**
|
|
41127
|
-
* Process a manual refund for a previous payment transaction of any type specified in the payload.
|
|
41128
|
-
* @summary Refund a manual payment
|
|
41129
|
-
* @param {ManualRefundPayload} manualRefundPayload Payload containing details for the manual refund.
|
|
41130
|
-
* @param {*} [options] Override http request option.
|
|
41131
|
-
* @throws {RequiredError}
|
|
41132
|
-
* @memberof PaymentApiInterface
|
|
41133
|
-
*/
|
|
41134
|
-
refundManualPaymentV3(manualRefundPayload: ManualRefundPayload, options?: AxiosRequestConfig): AxiosPromise<Array<PaymentRefundDto>>;
|
|
41135
|
-
|
|
41136
|
-
/**
|
|
41137
|
-
* Refund a pos order
|
|
41138
|
-
* @summary Refund a pos order with nets
|
|
41139
|
-
* @param {RefundPayloadDtoV4} refundPayloadDtoV4 Pos order refund payload
|
|
41140
|
-
* @param {*} [options] Override http request option.
|
|
41141
|
-
* @throws {RequiredError}
|
|
41142
|
-
* @memberof PaymentApiInterface
|
|
41143
|
-
*/
|
|
41144
|
-
refundNetsTransactionV3(refundPayloadDtoV4: RefundPayloadDtoV4, options?: AxiosRequestConfig): AxiosPromise<string>;
|
|
41145
|
-
|
|
41146
41208
|
/**
|
|
41147
41209
|
* Refund a single viva transaction
|
|
41148
41210
|
* @summary Refund a single viva transaction
|
|
@@ -41153,26 +41215,6 @@ export interface PaymentApiInterface {
|
|
|
41153
41215
|
*/
|
|
41154
41216
|
refundSingleVivaTransaction(createRefundDto: CreateRefundDto, options?: AxiosRequestConfig): AxiosPromise<VivaPaymentResultDto>;
|
|
41155
41217
|
|
|
41156
|
-
/**
|
|
41157
|
-
* Refund a pos order
|
|
41158
|
-
* @summary Refund a pos order
|
|
41159
|
-
* @param {RefundPayloadDto} refundPayloadDto Pos order refund payload
|
|
41160
|
-
* @param {*} [options] Override http request option.
|
|
41161
|
-
* @throws {RequiredError}
|
|
41162
|
-
* @memberof PaymentApiInterface
|
|
41163
|
-
*/
|
|
41164
|
-
refundVivaTransactionV3(refundPayloadDto: RefundPayloadDto, options?: AxiosRequestConfig): AxiosPromise<Array<PaymentRefundDto>>;
|
|
41165
|
-
|
|
41166
|
-
/**
|
|
41167
|
-
* Refund a pos order
|
|
41168
|
-
* @summary Refund a pos order
|
|
41169
|
-
* @param {RefundPayloadDtoV4} refundPayloadDtoV4 Pos order refund payload
|
|
41170
|
-
* @param {*} [options] Override http request option.
|
|
41171
|
-
* @throws {RequiredError}
|
|
41172
|
-
* @memberof PaymentApiInterface
|
|
41173
|
-
*/
|
|
41174
|
-
refundVivaTransactionV4(refundPayloadDtoV4: RefundPayloadDtoV4, options?: AxiosRequestConfig): AxiosPromise<VivaPaymentResultDto>;
|
|
41175
|
-
|
|
41176
41218
|
}
|
|
41177
41219
|
|
|
41178
41220
|
/**
|
|
@@ -41278,42 +41320,6 @@ export class PaymentApi extends BaseAPI implements PaymentApiInterface {
|
|
|
41278
41320
|
return PaymentApiFp(this.configuration).processOnlineOrderRefund(orderResponseDto, options).then((request) => request(this.axios, this.basePath));
|
|
41279
41321
|
}
|
|
41280
41322
|
|
|
41281
|
-
/**
|
|
41282
|
-
* Process a cash refund for a previous cash payment transaction.
|
|
41283
|
-
* @summary Refund a cash payment
|
|
41284
|
-
* @param {CashRefundPayload} cashRefundPayload Payload containing details for the cash refund.
|
|
41285
|
-
* @param {*} [options] Override http request option.
|
|
41286
|
-
* @throws {RequiredError}
|
|
41287
|
-
* @memberof PaymentApi
|
|
41288
|
-
*/
|
|
41289
|
-
public refundCashPaymentV3(cashRefundPayload: CashRefundPayload, options?: AxiosRequestConfig) {
|
|
41290
|
-
return PaymentApiFp(this.configuration).refundCashPaymentV3(cashRefundPayload, options).then((request) => request(this.axios, this.basePath));
|
|
41291
|
-
}
|
|
41292
|
-
|
|
41293
|
-
/**
|
|
41294
|
-
* Process a manual refund for a previous payment transaction of any type specified in the payload.
|
|
41295
|
-
* @summary Refund a manual payment
|
|
41296
|
-
* @param {ManualRefundPayload} manualRefundPayload Payload containing details for the manual refund.
|
|
41297
|
-
* @param {*} [options] Override http request option.
|
|
41298
|
-
* @throws {RequiredError}
|
|
41299
|
-
* @memberof PaymentApi
|
|
41300
|
-
*/
|
|
41301
|
-
public refundManualPaymentV3(manualRefundPayload: ManualRefundPayload, options?: AxiosRequestConfig) {
|
|
41302
|
-
return PaymentApiFp(this.configuration).refundManualPaymentV3(manualRefundPayload, options).then((request) => request(this.axios, this.basePath));
|
|
41303
|
-
}
|
|
41304
|
-
|
|
41305
|
-
/**
|
|
41306
|
-
* Refund a pos order
|
|
41307
|
-
* @summary Refund a pos order with nets
|
|
41308
|
-
* @param {RefundPayloadDtoV4} refundPayloadDtoV4 Pos order refund payload
|
|
41309
|
-
* @param {*} [options] Override http request option.
|
|
41310
|
-
* @throws {RequiredError}
|
|
41311
|
-
* @memberof PaymentApi
|
|
41312
|
-
*/
|
|
41313
|
-
public refundNetsTransactionV3(refundPayloadDtoV4: RefundPayloadDtoV4, options?: AxiosRequestConfig) {
|
|
41314
|
-
return PaymentApiFp(this.configuration).refundNetsTransactionV3(refundPayloadDtoV4, options).then((request) => request(this.axios, this.basePath));
|
|
41315
|
-
}
|
|
41316
|
-
|
|
41317
41323
|
/**
|
|
41318
41324
|
* Refund a single viva transaction
|
|
41319
41325
|
* @summary Refund a single viva transaction
|
|
@@ -41325,30 +41331,6 @@ export class PaymentApi extends BaseAPI implements PaymentApiInterface {
|
|
|
41325
41331
|
public refundSingleVivaTransaction(createRefundDto: CreateRefundDto, options?: AxiosRequestConfig) {
|
|
41326
41332
|
return PaymentApiFp(this.configuration).refundSingleVivaTransaction(createRefundDto, options).then((request) => request(this.axios, this.basePath));
|
|
41327
41333
|
}
|
|
41328
|
-
|
|
41329
|
-
/**
|
|
41330
|
-
* Refund a pos order
|
|
41331
|
-
* @summary Refund a pos order
|
|
41332
|
-
* @param {RefundPayloadDto} refundPayloadDto Pos order refund payload
|
|
41333
|
-
* @param {*} [options] Override http request option.
|
|
41334
|
-
* @throws {RequiredError}
|
|
41335
|
-
* @memberof PaymentApi
|
|
41336
|
-
*/
|
|
41337
|
-
public refundVivaTransactionV3(refundPayloadDto: RefundPayloadDto, options?: AxiosRequestConfig) {
|
|
41338
|
-
return PaymentApiFp(this.configuration).refundVivaTransactionV3(refundPayloadDto, options).then((request) => request(this.axios, this.basePath));
|
|
41339
|
-
}
|
|
41340
|
-
|
|
41341
|
-
/**
|
|
41342
|
-
* Refund a pos order
|
|
41343
|
-
* @summary Refund a pos order
|
|
41344
|
-
* @param {RefundPayloadDtoV4} refundPayloadDtoV4 Pos order refund payload
|
|
41345
|
-
* @param {*} [options] Override http request option.
|
|
41346
|
-
* @throws {RequiredError}
|
|
41347
|
-
* @memberof PaymentApi
|
|
41348
|
-
*/
|
|
41349
|
-
public refundVivaTransactionV4(refundPayloadDtoV4: RefundPayloadDtoV4, options?: AxiosRequestConfig) {
|
|
41350
|
-
return PaymentApiFp(this.configuration).refundVivaTransactionV4(refundPayloadDtoV4, options).then((request) => request(this.axios, this.basePath));
|
|
41351
|
-
}
|
|
41352
41334
|
}
|
|
41353
41335
|
|
|
41354
41336
|
|
|
@@ -44783,6 +44765,40 @@ export class ProductApi extends BaseAPI implements ProductApiInterface {
|
|
|
44783
44765
|
*/
|
|
44784
44766
|
export const ProviderApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
44785
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
|
+
},
|
|
44786
44802
|
/**
|
|
44787
44803
|
*
|
|
44788
44804
|
* @summary Get supported channels for a business
|
|
@@ -44897,6 +44913,17 @@ export const ProviderApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
44897
44913
|
export const ProviderApiFp = function(configuration?: Configuration) {
|
|
44898
44914
|
const localVarAxiosParamCreator = ProviderApiAxiosParamCreator(configuration)
|
|
44899
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
|
+
},
|
|
44900
44927
|
/**
|
|
44901
44928
|
*
|
|
44902
44929
|
* @summary Get supported channels for a business
|
|
@@ -44938,6 +44965,16 @@ export const ProviderApiFp = function(configuration?: Configuration) {
|
|
|
44938
44965
|
export const ProviderApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
44939
44966
|
const localVarFp = ProviderApiFp(configuration)
|
|
44940
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
|
+
},
|
|
44941
44978
|
/**
|
|
44942
44979
|
*
|
|
44943
44980
|
* @summary Get supported channels for a business
|
|
@@ -44975,6 +45012,16 @@ export const ProviderApiFactory = function (configuration?: Configuration, baseP
|
|
|
44975
45012
|
* @interface ProviderApi
|
|
44976
45013
|
*/
|
|
44977
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
|
+
|
|
44978
45025
|
/**
|
|
44979
45026
|
*
|
|
44980
45027
|
* @summary Get supported channels for a business
|
|
@@ -45012,6 +45059,18 @@ export interface ProviderApiInterface {
|
|
|
45012
45059
|
* @extends {BaseAPI}
|
|
45013
45060
|
*/
|
|
45014
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
|
+
|
|
45015
45074
|
/**
|
|
45016
45075
|
*
|
|
45017
45076
|
* @summary Get supported channels for a business
|