@munchi_oy/core 1.9.40 → 1.9.43

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.
@@ -2414,6 +2414,12 @@ export interface CategoryDto {
2414
2414
  * @memberof CategoryDto
2415
2415
  */
2416
2416
  'description': object | null;
2417
+ /**
2418
+ * Default course ID assigned to this category
2419
+ * @type {object}
2420
+ * @memberof CategoryDto
2421
+ */
2422
+ 'default_course_id'?: object | null;
2417
2423
  /**
2418
2424
  *
2419
2425
  * @type {Array<ExtendedProductDto>}
@@ -4955,6 +4961,12 @@ export interface ExtendedCategoryDto {
4955
4961
  * @memberof ExtendedCategoryDto
4956
4962
  */
4957
4963
  'description': object | null;
4964
+ /**
4965
+ * Default course ID assigned to this category
4966
+ * @type {object}
4967
+ * @memberof ExtendedCategoryDto
4968
+ */
4969
+ 'default_course_id'?: object | null;
4958
4970
  /**
4959
4971
  *
4960
4972
  * @type {Array<ExtendedProductDto>}
@@ -5196,6 +5208,18 @@ export interface ExtendedProductDto {
5196
5208
  * @memberof ExtendedProductDto
5197
5209
  */
5198
5210
  'default_course_name'?: string | null;
5211
+ /**
5212
+ * Course ID inherited from the product\'s category, used as fallback when the product has no own course
5213
+ * @type {string}
5214
+ * @memberof ExtendedProductDto
5215
+ */
5216
+ 'category_default_course_id'?: string | null;
5217
+ /**
5218
+ * Course name inherited from the product\'s category, used as fallback when the product has no own course
5219
+ * @type {string}
5220
+ * @memberof ExtendedProductDto
5221
+ */
5222
+ 'category_default_course_name'?: string | null;
5199
5223
  }
5200
5224
  /**
5201
5225
  *
@@ -6019,11 +6043,11 @@ export interface InitiateVivaSessionResponseDtoVivaIntent {
6019
6043
  */
6020
6044
  'amount': number;
6021
6045
  /**
6022
- * The currency code for the transaction amount.
6023
- * @type {string}
6046
+ *
6047
+ * @type {VivaCurrencyCode}
6024
6048
  * @memberof InitiateVivaSessionResponseDtoVivaIntent
6025
6049
  */
6026
- 'currencyCode': CurrencyCodeEnum;
6050
+ 'currencyCode': VivaCurrencyCode;
6027
6051
  /**
6028
6052
  * A reference for the merchant.
6029
6053
  * @type {string}
@@ -6073,44 +6097,6 @@ export interface InitiateVivaSessionResponseDtoVivaIntent {
6073
6097
  */
6074
6098
  'skipSurcharge': boolean;
6075
6099
  }
6076
- export declare const CurrencyCodeEnum: {
6077
- readonly _978: "978";
6078
- readonly _840: "840";
6079
- readonly _826: "826";
6080
- readonly _392: "392";
6081
- readonly _036: "036";
6082
- readonly _124: "124";
6083
- readonly _756: "756";
6084
- readonly _156: "156";
6085
- readonly _344: "344";
6086
- readonly _554: "554";
6087
- readonly _752: "752";
6088
- readonly _410: "410";
6089
- readonly _702: "702";
6090
- readonly _578: "578";
6091
- readonly _484: "484";
6092
- readonly _356: "356";
6093
- readonly _643: "643";
6094
- readonly _710: "710";
6095
- readonly _949: "949";
6096
- readonly _986: "986";
6097
- readonly _901: "901";
6098
- readonly _208: "208";
6099
- readonly _985: "985";
6100
- readonly _764: "764";
6101
- readonly _360: "360";
6102
- readonly _348: "348";
6103
- readonly _203: "203";
6104
- readonly _376: "376";
6105
- readonly _152: "152";
6106
- readonly _608: "608";
6107
- readonly _784: "784";
6108
- readonly _170: "170";
6109
- readonly _682: "682";
6110
- readonly _458: "458";
6111
- readonly _946: "946";
6112
- };
6113
- export type CurrencyCodeEnum = typeof CurrencyCodeEnum[keyof typeof CurrencyCodeEnum];
6114
6100
  /**
6115
6101
  *
6116
6102
  * @export
@@ -13093,6 +13079,18 @@ export interface PosItemDto {
13093
13079
  * @memberof PosItemDto
13094
13080
  */
13095
13081
  'default_course_name'?: string | null;
13082
+ /**
13083
+ * Course ID inherited from the product\'s category, used as fallback when the product has no own course
13084
+ * @type {string}
13085
+ * @memberof PosItemDto
13086
+ */
13087
+ 'category_default_course_id'?: string | null;
13088
+ /**
13089
+ * Course name inherited from the product\'s category, used as fallback when the product has no own course
13090
+ * @type {string}
13091
+ * @memberof PosItemDto
13092
+ */
13093
+ 'category_default_course_name'?: string | null;
13096
13094
  /**
13097
13095
  * Order identifier
13098
13096
  * @type {string}
@@ -15346,6 +15344,12 @@ export interface ProductsByCategoriesResponseDto {
15346
15344
  * @memberof ProductsByCategoriesResponseDto
15347
15345
  */
15348
15346
  'products': Array<ProductWithCategoryDto>;
15347
+ /**
15348
+ * Categories sorted by rank (additive — existing clients can ignore this field)
15349
+ * @type {Array<RankedCategoryDto>}
15350
+ * @memberof ProductsByCategoriesResponseDto
15351
+ */
15352
+ 'categories': Array<RankedCategoryDto>;
15349
15353
  /**
15350
15354
  *
15351
15355
  * @type {ProductsByCategoriesResponseDtoSummary}
@@ -15621,6 +15625,43 @@ export declare const PubSubTarget: {
15621
15625
  readonly Kds: "KDS";
15622
15626
  };
15623
15627
  export type PubSubTarget = typeof PubSubTarget[keyof typeof PubSubTarget];
15628
+ /**
15629
+ *
15630
+ * @export
15631
+ * @interface RankedCategoryDto
15632
+ */
15633
+ export interface RankedCategoryDto {
15634
+ /**
15635
+ * Category ID
15636
+ * @type {number}
15637
+ * @memberof RankedCategoryDto
15638
+ */
15639
+ 'id': number;
15640
+ /**
15641
+ * Category name
15642
+ * @type {string}
15643
+ * @memberof RankedCategoryDto
15644
+ */
15645
+ 'name': string;
15646
+ /**
15647
+ * Display order rank of the category
15648
+ * @type {number}
15649
+ * @memberof RankedCategoryDto
15650
+ */
15651
+ 'rank': number;
15652
+ /**
15653
+ * Parent category ID for subcategories; null for top-level
15654
+ * @type {object}
15655
+ * @memberof RankedCategoryDto
15656
+ */
15657
+ 'parent_category_id'?: object | null;
15658
+ /**
15659
+ * Whether the category is enabled
15660
+ * @type {boolean}
15661
+ * @memberof RankedCategoryDto
15662
+ */
15663
+ 'enabled': boolean;
15664
+ }
15624
15665
  /**
15625
15666
  *
15626
15667
  * @export
@@ -17367,6 +17408,12 @@ export interface SubcategoryDto {
17367
17408
  * @memberof SubcategoryDto
17368
17409
  */
17369
17410
  'description': string | null;
17411
+ /**
17412
+ * Default course ID assigned to this subcategory
17413
+ * @type {object}
17414
+ * @memberof SubcategoryDto
17415
+ */
17416
+ 'default_course_id'?: object | null;
17370
17417
  /**
17371
17418
  * Products in this subcategory
17372
17419
  * @type {Array<ExtendedProductDto>}
@@ -21175,11 +21222,11 @@ export interface VivaPaymentIntent {
21175
21222
  */
21176
21223
  'amount': number;
21177
21224
  /**
21178
- * The currency code for the transaction amount.
21179
- * @type {string}
21225
+ *
21226
+ * @type {VivaCurrencyCode}
21180
21227
  * @memberof VivaPaymentIntent
21181
21228
  */
21182
- 'currencyCode': CurrencyCodeEnum;
21229
+ 'currencyCode': VivaCurrencyCode;
21183
21230
  /**
21184
21231
  * A reference for the merchant.
21185
21232
  * @type {string}
@@ -30673,13 +30720,21 @@ export declare const PaymentSessionApiAxiosParamCreator: (configuration?: Config
30673
30720
  */
30674
30721
  recordManualPayment: (createManualSessionDto: CreateManualSessionDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
30675
30722
  /**
30676
- * Reverses a completed Viva card payment (SUCCESS / CLOSED) by its sessionId (the order paymentEvent referenceId). Manual payments use void. Idempotent: re-calling a refunding/refunded session is a no-op.
30677
- * @summary Refund a settled Viva payment session
30723
+ * Refunds a Viva card payment at the gateway by its sessionId, optionally a partial `amount` (item / cluster refund). Validates the remaining refundable balance and supports multiple partial refunds. Does NOT write a reversal paymentEvent to the order — order-side accounting is handled by the refund plan. For a full reversal that writes the order paymentEvent, use /revert.
30724
+ * @summary Refund a settled Viva payment session (gateway only)
30678
30725
  * @param {ReverseSessionDto} reverseSessionDto
30679
30726
  * @param {*} [options] Override http request option.
30680
30727
  * @throws {RequiredError}
30681
30728
  */
30682
30729
  refundVivaSession: (reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
30730
+ /**
30731
+ * Fully reverses a completed Viva card payment (SUCCESS / CLOSED) by its sessionId: refunds the full amount at the gateway AND writes a reversal paymentEvent to the order via the settlement engine. Idempotent: re-calling a reverted session is a no-op.
30732
+ * @summary Revert (fully reverse) a settled Viva payment session
30733
+ * @param {ReverseSessionDto} reverseSessionDto
30734
+ * @param {*} [options] Override http request option.
30735
+ * @throws {RequiredError}
30736
+ */
30737
+ revertVivaSession: (reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
30683
30738
  /**
30684
30739
  * Reverses a manually-recorded payment (cash / voucher / CardManual / gift card / …) by its sessionId (the order paymentEvent referenceId). Not for card paymethods (Card/Debit/Credit/Edenred) — those use cancel/refund. Idempotent: re-calling a voided session is a no-op.
30685
30740
  * @summary Void a manual payment session
@@ -30728,13 +30783,21 @@ export declare const PaymentSessionApiFp: (configuration?: Configuration) => {
30728
30783
  */
30729
30784
  recordManualPayment(createManualSessionDto: CreateManualSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionViewDto>>;
30730
30785
  /**
30731
- * Reverses a completed Viva card payment (SUCCESS / CLOSED) by its sessionId (the order paymentEvent referenceId). Manual payments use void. Idempotent: re-calling a refunding/refunded session is a no-op.
30732
- * @summary Refund a settled Viva payment session
30786
+ * Refunds a Viva card payment at the gateway by its sessionId, optionally a partial `amount` (item / cluster refund). Validates the remaining refundable balance and supports multiple partial refunds. Does NOT write a reversal paymentEvent to the order — order-side accounting is handled by the refund plan. For a full reversal that writes the order paymentEvent, use /revert.
30787
+ * @summary Refund a settled Viva payment session (gateway only)
30733
30788
  * @param {ReverseSessionDto} reverseSessionDto
30734
30789
  * @param {*} [options] Override http request option.
30735
30790
  * @throws {RequiredError}
30736
30791
  */
30737
30792
  refundVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionViewDto>>;
30793
+ /**
30794
+ * Fully reverses a completed Viva card payment (SUCCESS / CLOSED) by its sessionId: refunds the full amount at the gateway AND writes a reversal paymentEvent to the order via the settlement engine. Idempotent: re-calling a reverted session is a no-op.
30795
+ * @summary Revert (fully reverse) a settled Viva payment session
30796
+ * @param {ReverseSessionDto} reverseSessionDto
30797
+ * @param {*} [options] Override http request option.
30798
+ * @throws {RequiredError}
30799
+ */
30800
+ revertVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentSessionViewDto>>;
30738
30801
  /**
30739
30802
  * Reverses a manually-recorded payment (cash / voucher / CardManual / gift card / …) by its sessionId (the order paymentEvent referenceId). Not for card paymethods (Card/Debit/Credit/Edenred) — those use cancel/refund. Idempotent: re-calling a voided session is a no-op.
30740
30803
  * @summary Void a manual payment session
@@ -30783,13 +30846,21 @@ export declare const PaymentSessionApiFactory: (configuration?: Configuration, b
30783
30846
  */
30784
30847
  recordManualPayment(createManualSessionDto: CreateManualSessionDto, options?: any): AxiosPromise<PaymentSessionViewDto>;
30785
30848
  /**
30786
- * Reverses a completed Viva card payment (SUCCESS / CLOSED) by its sessionId (the order paymentEvent referenceId). Manual payments use void. Idempotent: re-calling a refunding/refunded session is a no-op.
30787
- * @summary Refund a settled Viva payment session
30849
+ * Refunds a Viva card payment at the gateway by its sessionId, optionally a partial `amount` (item / cluster refund). Validates the remaining refundable balance and supports multiple partial refunds. Does NOT write a reversal paymentEvent to the order — order-side accounting is handled by the refund plan. For a full reversal that writes the order paymentEvent, use /revert.
30850
+ * @summary Refund a settled Viva payment session (gateway only)
30788
30851
  * @param {ReverseSessionDto} reverseSessionDto
30789
30852
  * @param {*} [options] Override http request option.
30790
30853
  * @throws {RequiredError}
30791
30854
  */
30792
30855
  refundVivaSession(reverseSessionDto: ReverseSessionDto, options?: any): AxiosPromise<PaymentSessionViewDto>;
30856
+ /**
30857
+ * Fully reverses a completed Viva card payment (SUCCESS / CLOSED) by its sessionId: refunds the full amount at the gateway AND writes a reversal paymentEvent to the order via the settlement engine. Idempotent: re-calling a reverted session is a no-op.
30858
+ * @summary Revert (fully reverse) a settled Viva payment session
30859
+ * @param {ReverseSessionDto} reverseSessionDto
30860
+ * @param {*} [options] Override http request option.
30861
+ * @throws {RequiredError}
30862
+ */
30863
+ revertVivaSession(reverseSessionDto: ReverseSessionDto, options?: any): AxiosPromise<PaymentSessionViewDto>;
30793
30864
  /**
30794
30865
  * Reverses a manually-recorded payment (cash / voucher / CardManual / gift card / …) by its sessionId (the order paymentEvent referenceId). Not for card paymethods (Card/Debit/Credit/Edenred) — those use cancel/refund. Idempotent: re-calling a voided session is a no-op.
30795
30866
  * @summary Void a manual payment session
@@ -30843,14 +30914,23 @@ export interface PaymentSessionApiInterface {
30843
30914
  */
30844
30915
  recordManualPayment(createManualSessionDto: CreateManualSessionDto, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
30845
30916
  /**
30846
- * Reverses a completed Viva card payment (SUCCESS / CLOSED) by its sessionId (the order paymentEvent referenceId). Manual payments use void. Idempotent: re-calling a refunding/refunded session is a no-op.
30847
- * @summary Refund a settled Viva payment session
30917
+ * Refunds a Viva card payment at the gateway by its sessionId, optionally a partial `amount` (item / cluster refund). Validates the remaining refundable balance and supports multiple partial refunds. Does NOT write a reversal paymentEvent to the order — order-side accounting is handled by the refund plan. For a full reversal that writes the order paymentEvent, use /revert.
30918
+ * @summary Refund a settled Viva payment session (gateway only)
30848
30919
  * @param {ReverseSessionDto} reverseSessionDto
30849
30920
  * @param {*} [options] Override http request option.
30850
30921
  * @throws {RequiredError}
30851
30922
  * @memberof PaymentSessionApiInterface
30852
30923
  */
30853
30924
  refundVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
30925
+ /**
30926
+ * Fully reverses a completed Viva card payment (SUCCESS / CLOSED) by its sessionId: refunds the full amount at the gateway AND writes a reversal paymentEvent to the order via the settlement engine. Idempotent: re-calling a reverted session is a no-op.
30927
+ * @summary Revert (fully reverse) a settled Viva payment session
30928
+ * @param {ReverseSessionDto} reverseSessionDto
30929
+ * @param {*} [options] Override http request option.
30930
+ * @throws {RequiredError}
30931
+ * @memberof PaymentSessionApiInterface
30932
+ */
30933
+ revertVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): AxiosPromise<PaymentSessionViewDto>;
30854
30934
  /**
30855
30935
  * Reverses a manually-recorded payment (cash / voucher / CardManual / gift card / …) by its sessionId (the order paymentEvent referenceId). Not for card paymethods (Card/Debit/Credit/Edenred) — those use cancel/refund. Idempotent: re-calling a voided session is a no-op.
30856
30936
  * @summary Void a manual payment session
@@ -30906,14 +30986,23 @@ export declare class PaymentSessionApi extends BaseAPI implements PaymentSession
30906
30986
  */
30907
30987
  recordManualPayment(createManualSessionDto: CreateManualSessionDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentSessionViewDto, any, {}>>;
30908
30988
  /**
30909
- * Reverses a completed Viva card payment (SUCCESS / CLOSED) by its sessionId (the order paymentEvent referenceId). Manual payments use void. Idempotent: re-calling a refunding/refunded session is a no-op.
30910
- * @summary Refund a settled Viva payment session
30989
+ * Refunds a Viva card payment at the gateway by its sessionId, optionally a partial `amount` (item / cluster refund). Validates the remaining refundable balance and supports multiple partial refunds. Does NOT write a reversal paymentEvent to the order — order-side accounting is handled by the refund plan. For a full reversal that writes the order paymentEvent, use /revert.
30990
+ * @summary Refund a settled Viva payment session (gateway only)
30911
30991
  * @param {ReverseSessionDto} reverseSessionDto
30912
30992
  * @param {*} [options] Override http request option.
30913
30993
  * @throws {RequiredError}
30914
30994
  * @memberof PaymentSessionApi
30915
30995
  */
30916
30996
  refundVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentSessionViewDto, any, {}>>;
30997
+ /**
30998
+ * Fully reverses a completed Viva card payment (SUCCESS / CLOSED) by its sessionId: refunds the full amount at the gateway AND writes a reversal paymentEvent to the order via the settlement engine. Idempotent: re-calling a reverted session is a no-op.
30999
+ * @summary Revert (fully reverse) a settled Viva payment session
31000
+ * @param {ReverseSessionDto} reverseSessionDto
31001
+ * @param {*} [options] Override http request option.
31002
+ * @throws {RequiredError}
31003
+ * @memberof PaymentSessionApi
31004
+ */
31005
+ revertVivaSession(reverseSessionDto: ReverseSessionDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentSessionViewDto, any, {}>>;
30917
31006
  /**
30918
31007
  * Reverses a manually-recorded payment (cash / voucher / CardManual / gift card / …) by its sessionId (the order paymentEvent referenceId). Not for card paymethods (Card/Debit/Credit/Edenred) — those use cancel/refund. Idempotent: re-calling a voided session is a no-op.
30919
31008
  * @summary Void a manual payment session