@munchi_oy/core 1.9.1 → 1.9.3

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.
@@ -2622,6 +2622,74 @@ export interface CompletedStepDto {
2622
2622
  [key: string]: any;
2623
2623
  } | null;
2624
2624
  }
2625
+ /**
2626
+ *
2627
+ * @export
2628
+ * @interface ConditionPayloadDto
2629
+ */
2630
+ export interface ConditionPayloadDto {
2631
+ /**
2632
+ *
2633
+ * @type {string}
2634
+ * @memberof ConditionPayloadDto
2635
+ */
2636
+ 'startUtc'?: string | null;
2637
+ /**
2638
+ *
2639
+ * @type {string}
2640
+ * @memberof ConditionPayloadDto
2641
+ */
2642
+ 'endUtc'?: string | null;
2643
+ /**
2644
+ *
2645
+ * @type {Array<number>}
2646
+ * @memberof ConditionPayloadDto
2647
+ */
2648
+ 'days'?: Array<number> | null;
2649
+ /**
2650
+ *
2651
+ * @type {string}
2652
+ * @memberof ConditionPayloadDto
2653
+ */
2654
+ 'from'?: string | null;
2655
+ /**
2656
+ *
2657
+ * @type {string}
2658
+ * @memberof ConditionPayloadDto
2659
+ */
2660
+ 'to'?: string | null;
2661
+ /**
2662
+ *
2663
+ * @type {number}
2664
+ * @memberof ConditionPayloadDto
2665
+ */
2666
+ 'minValue'?: number | null;
2667
+ /**
2668
+ *
2669
+ * @type {number}
2670
+ * @memberof ConditionPayloadDto
2671
+ */
2672
+ 'maxValue'?: number | null;
2673
+ /**
2674
+ *
2675
+ * @type {Array<number>}
2676
+ * @memberof ConditionPayloadDto
2677
+ */
2678
+ 'productIds'?: Array<number> | null;
2679
+ }
2680
+ /**
2681
+ *
2682
+ * @export
2683
+ * @enum {string}
2684
+ */
2685
+ export declare const ConditionType: {
2686
+ readonly TimeWindow: "TIME_WINDOW";
2687
+ readonly DateRange: "DATE_RANGE";
2688
+ readonly CartMinValue: "CART_MIN_VALUE";
2689
+ readonly CartMaxValue: "CART_MAX_VALUE";
2690
+ readonly ProductInCart: "PRODUCT_IN_CART";
2691
+ };
2692
+ export type ConditionType = typeof ConditionType[keyof typeof ConditionType];
2625
2693
  /**
2626
2694
  *
2627
2695
  * @export
@@ -3598,29 +3666,89 @@ export type DeviceType = typeof DeviceType[keyof typeof DeviceType];
3598
3666
  */
3599
3667
  export interface DiscountDto {
3600
3668
  /**
3601
- * Discount ID
3669
+ *
3602
3670
  * @type {string}
3603
3671
  * @memberof DiscountDto
3604
3672
  */
3605
- 'id': string;
3673
+ 'createdAt': string;
3606
3674
  /**
3607
- * Name of the discount
3675
+ *
3608
3676
  * @type {string}
3609
3677
  * @memberof DiscountDto
3610
3678
  */
3611
- 'discountName': string;
3679
+ 'updatedAt': string;
3612
3680
  /**
3613
- * Amount of discount
3681
+ *
3614
3682
  * @type {number}
3615
3683
  * @memberof DiscountDto
3616
3684
  */
3617
- 'discountAmount': number;
3685
+ 'id': number;
3618
3686
  /**
3619
- * Creation date of the discount
3687
+ *
3620
3688
  * @type {string}
3621
3689
  * @memberof DiscountDto
3622
3690
  */
3623
- 'createdAt': string;
3691
+ 'name': string;
3692
+ /**
3693
+ *
3694
+ * @type {number}
3695
+ * @memberof DiscountDto
3696
+ */
3697
+ 'value': number;
3698
+ /**
3699
+ *
3700
+ * @type {DiscountScopeType}
3701
+ * @memberof DiscountDto
3702
+ */
3703
+ 'scopeType': DiscountScopeType;
3704
+ /**
3705
+ *
3706
+ * @type {PromotionDiscountType}
3707
+ * @memberof DiscountDto
3708
+ */
3709
+ 'type'?: PromotionDiscountType;
3710
+ /**
3711
+ *
3712
+ * @type {string}
3713
+ * @memberof DiscountDto
3714
+ */
3715
+ 'description'?: string;
3716
+ /**
3717
+ *
3718
+ * @type {boolean}
3719
+ * @memberof DiscountDto
3720
+ */
3721
+ 'available'?: boolean;
3722
+ /**
3723
+ *
3724
+ * @type {ProviderEnum}
3725
+ * @memberof DiscountDto
3726
+ */
3727
+ 'channel'?: ProviderEnum | null;
3728
+ /**
3729
+ *
3730
+ * @type {boolean}
3731
+ * @memberof DiscountDto
3732
+ */
3733
+ 'isAutomatic': boolean;
3734
+ /**
3735
+ *
3736
+ * @type {number}
3737
+ * @memberof DiscountDto
3738
+ */
3739
+ 'maxUsesPerOrder'?: number | null;
3740
+ /**
3741
+ *
3742
+ * @type {number}
3743
+ * @memberof DiscountDto
3744
+ */
3745
+ 'priority': number;
3746
+ /**
3747
+ *
3748
+ * @type {Array<DiscountRuleDto>}
3749
+ * @memberof DiscountDto
3750
+ */
3751
+ 'rules': Array<DiscountRuleDto>;
3624
3752
  }
3625
3753
  /**
3626
3754
  *
@@ -3641,6 +3769,31 @@ export interface DiscountOptionsDto {
3641
3769
  */
3642
3770
  'value': number;
3643
3771
  }
3772
+ /**
3773
+ *
3774
+ * @export
3775
+ * @interface DiscountRuleDto
3776
+ */
3777
+ export interface DiscountRuleDto {
3778
+ /**
3779
+ *
3780
+ * @type {number}
3781
+ * @memberof DiscountRuleDto
3782
+ */
3783
+ 'id': number;
3784
+ /**
3785
+ *
3786
+ * @type {ConditionType}
3787
+ * @memberof DiscountRuleDto
3788
+ */
3789
+ 'type': ConditionType;
3790
+ /**
3791
+ *
3792
+ * @type {ConditionPayloadDto}
3793
+ * @memberof DiscountRuleDto
3794
+ */
3795
+ 'payload': ConditionPayloadDto;
3796
+ }
3644
3797
  /**
3645
3798
  *
3646
3799
  * @export
@@ -3651,6 +3804,16 @@ export declare const DiscountScope: {
3651
3804
  readonly Cart: "CART";
3652
3805
  };
3653
3806
  export type DiscountScope = typeof DiscountScope[keyof typeof DiscountScope];
3807
+ /**
3808
+ *
3809
+ * @export
3810
+ * @enum {string}
3811
+ */
3812
+ export declare const DiscountScopeType: {
3813
+ readonly Business: "BUSINESS";
3814
+ readonly Owner: "OWNER";
3815
+ };
3816
+ export type DiscountScopeType = typeof DiscountScopeType[keyof typeof DiscountScopeType];
3654
3817
  /**
3655
3818
  *
3656
3819
  * @export
@@ -13682,6 +13845,16 @@ export interface ProgramUserDto {
13682
13845
  */
13683
13846
  'address'?: string;
13684
13847
  }
13848
+ /**
13849
+ *
13850
+ * @export
13851
+ * @enum {string}
13852
+ */
13853
+ export declare const PromotionDiscountType: {
13854
+ readonly Percentage: "PERCENTAGE";
13855
+ readonly Fixed: "FIXED";
13856
+ };
13857
+ export type PromotionDiscountType = typeof PromotionDiscountType[keyof typeof PromotionDiscountType];
13685
13858
  /**
13686
13859
  *
13687
13860
  * @export
@@ -15486,7 +15659,7 @@ export interface SyncStationDto {
15486
15659
  * @type {string}
15487
15660
  * @memberof SyncStationDto
15488
15661
  */
15489
- 'prefix': string;
15662
+ 'prefix'?: string;
15490
15663
  /**
15491
15664
  *
15492
15665
  * @type {StationType}
@@ -21268,6 +21441,14 @@ export declare const BusinessApiAxiosParamCreator: (configuration?: Configuratio
21268
21441
  * @throws {RequiredError}
21269
21442
  */
21270
21443
  deleteBusinessPermission: (permissionId: string, businessId: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
21444
+ /**
21445
+ *
21446
+ * @summary Get unified discounts for all business and venue
21447
+ * @param {string} businessId
21448
+ * @param {*} [options] Override http request option.
21449
+ * @throws {RequiredError}
21450
+ */
21451
+ getAdvancedDiscounts: (businessId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
21271
21452
  /**
21272
21453
  *
21273
21454
  * @param {string} businessId
@@ -21480,6 +21661,14 @@ export declare const BusinessApiFp: (configuration?: Configuration) => {
21480
21661
  * @throws {RequiredError}
21481
21662
  */
21482
21663
  deleteBusinessPermission(permissionId: string, businessId: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
21664
+ /**
21665
+ *
21666
+ * @summary Get unified discounts for all business and venue
21667
+ * @param {string} businessId
21668
+ * @param {*} [options] Override http request option.
21669
+ * @throws {RequiredError}
21670
+ */
21671
+ getAdvancedDiscounts(businessId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DiscountDto>>>;
21483
21672
  /**
21484
21673
  *
21485
21674
  * @param {string} businessId
@@ -21692,6 +21881,14 @@ export declare const BusinessApiFactory: (configuration?: Configuration, basePat
21692
21881
  * @throws {RequiredError}
21693
21882
  */
21694
21883
  deleteBusinessPermission(permissionId: string, businessId: any, options?: any): AxiosPromise<void>;
21884
+ /**
21885
+ *
21886
+ * @summary Get unified discounts for all business and venue
21887
+ * @param {string} businessId
21888
+ * @param {*} [options] Override http request option.
21889
+ * @throws {RequiredError}
21890
+ */
21891
+ getAdvancedDiscounts(businessId: string, options?: any): AxiosPromise<Array<DiscountDto>>;
21695
21892
  /**
21696
21893
  *
21697
21894
  * @param {string} businessId
@@ -21907,6 +22104,15 @@ export interface BusinessApiInterface {
21907
22104
  * @memberof BusinessApiInterface
21908
22105
  */
21909
22106
  deleteBusinessPermission(permissionId: string, businessId: any, options?: AxiosRequestConfig): AxiosPromise<void>;
22107
+ /**
22108
+ *
22109
+ * @summary Get unified discounts for all business and venue
22110
+ * @param {string} businessId
22111
+ * @param {*} [options] Override http request option.
22112
+ * @throws {RequiredError}
22113
+ * @memberof BusinessApiInterface
22114
+ */
22115
+ getAdvancedDiscounts(businessId: string, options?: AxiosRequestConfig): AxiosPromise<Array<DiscountDto>>;
21910
22116
  /**
21911
22117
  *
21912
22118
  * @param {string} businessId
@@ -22146,6 +22352,15 @@ export declare class BusinessApi extends BaseAPI implements BusinessApiInterface
22146
22352
  * @memberof BusinessApi
22147
22353
  */
22148
22354
  deleteBusinessPermission(permissionId: string, businessId: any, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
22355
+ /**
22356
+ *
22357
+ * @summary Get unified discounts for all business and venue
22358
+ * @param {string} businessId
22359
+ * @param {*} [options] Override http request option.
22360
+ * @throws {RequiredError}
22361
+ * @memberof BusinessApi
22362
+ */
22363
+ getAdvancedDiscounts(businessId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DiscountDto[], any, {}>>;
22149
22364
  /**
22150
22365
  *
22151
22366
  * @param {string} businessId