@springtree/eva-services-core-management 3.0.0-beta.6 → 3.0.0-beta.7

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.
@@ -2571,6 +2571,19 @@ export interface UpdateCustomField {
2571
2571
  TypeKey: string | null | undefined;
2572
2572
  }
2573
2573
  /**
2574
+ * Add required custom fields to ManualDiscount
2575
+ */
2576
+ export interface AddRequiredCustomFieldsToManualDiscount {
2577
+ /**
2578
+ * Entity type: CustomField
2579
+ */
2580
+ CustomFieldIDs: string[];
2581
+ /**
2582
+ * Entity type: Discount
2583
+ */
2584
+ DiscountID: string;
2585
+ }
2586
+ /**
2574
2587
  * Add security roles to ManualDiscount
2575
2588
  */
2576
2589
  export interface AddRolesToManualDiscount {
@@ -2658,6 +2671,10 @@ export interface CreateDiscount {
2658
2671
  OrganizationUnitSetID: string;
2659
2672
  PromotionLabel?: string;
2660
2673
  /**
2674
+ * For a manual discount, these will indicate custom fields that need to be filled in order to apply the discount.
2675
+ */
2676
+ RequiredCustomFields?: string[];
2677
+ /**
2661
2678
  * Entity type: OrganizationUnit
2662
2679
  */
2663
2680
  RestitutionOrganizationUnitID?: string;
@@ -3054,6 +3071,7 @@ export interface GetDiscountByIDResponse {
3054
3071
  OrganizationUnitSetName?: string;
3055
3072
  OrganizationUnitSetType?: DataModelsOrganizationUnitSetTypes;
3056
3073
  PromotionLabel?: string;
3074
+ RequiredCustomFields?: string[];
3057
3075
  /**
3058
3076
  * Entity type: OrganizationUnit
3059
3077
  */
@@ -3544,6 +3562,20 @@ export interface MoveDiscountLayer {
3544
3562
  ID: string;
3545
3563
  }
3546
3564
  /**
3565
+ * Remove required custom fields from ManualDiscount
3566
+ */
3567
+ export interface RemoveRequiredCustomFieldsFromManualDiscount {
3568
+ /**
3569
+ * Entity type: CustomField
3570
+ */
3571
+ CustomFieldIDs?: string[];
3572
+ /**
3573
+ * Entity type: Discount
3574
+ */
3575
+ DiscountID: string;
3576
+ RemoveAllRequiredCustomFields?: boolean;
3577
+ }
3578
+ /**
3547
3579
  * Remove security roles from ManualDiscount
3548
3580
  */
3549
3581
  export interface RemoveRolesFromManualDiscount {
@@ -3628,6 +3660,15 @@ export interface DiscountsSearchDiscountsByQueryResponse_DiscountDto {
3628
3660
  UserUsageReloadStrategy?: string;
3629
3661
  }
3630
3662
  /**
3663
+ * Takes in all discount layers and sets their sequences. All layers except the system layer are required.
3664
+ */
3665
+ export interface SetDiscountLayerSequences {
3666
+ /**
3667
+ * Entity type: DiscountLayer
3668
+ */
3669
+ Layers: string[];
3670
+ }
3671
+ /**
3631
3672
  * Update an existing discount
3632
3673
  */
3633
3674
  export interface UpdateDiscount {
@@ -3694,6 +3735,10 @@ export interface UpdateDiscount {
3694
3735
  OrganizationUnitSetID: string;
3695
3736
  PromotionLabel?: string;
3696
3737
  /**
3738
+ * For a manual discount, these will indicate custom fields that need to be filled in order to apply the discount.
3739
+ */
3740
+ RequiredCustomFields: string[] | null | undefined;
3741
+ /**
3697
3742
  * Entity type: OrganizationUnit
3698
3743
  */
3699
3744
  RestitutionOrganizationUnitID?: string;
@@ -3923,6 +3968,10 @@ export interface ValidateDiscount {
3923
3968
  */
3924
3969
  OrganizationUnitSetID: string;
3925
3970
  /**
3971
+ * For a manual discount, these will indicate custom fields that need to be filled in order to apply the discount.
3972
+ */
3973
+ RequiredCustomFields?: string[];
3974
+ /**
3926
3975
  * Entity type: OrganizationUnit
3927
3976
  */
3928
3977
  RestitutionOrganizationUnitID?: string;
@@ -4479,6 +4528,10 @@ export interface GiftCardsListGiftCardConfigurationsResponse_GiftCardConfigurati
4479
4528
  * `ProductGiftCard`: an item that describes the giftcard properties of a product with type GiftCard
4480
4529
  */
4481
4530
  export interface ListProductGiftCards {
4531
+ /**
4532
+ * Entity type: ProductPropertyType
4533
+ */
4534
+ IncludedProductProperties?: string[];
4482
4535
  PageConfig?: PageConfig<GiftCardsListProductGiftCardsFilter>;
4483
4536
  }
4484
4537
  export interface ListProductGiftCardsResponse {
@@ -4501,6 +4554,7 @@ export interface GiftCardsListProductGiftCardsResponse_ProductGiftCardDto {
4501
4554
  */
4502
4555
  ID: string;
4503
4556
  IsDigital: boolean;
4557
+ Product?: SearchIProductSearchItem;
4504
4558
  /**
4505
4559
  * Entity type: Product
4506
4560
  */
@@ -5023,6 +5077,19 @@ export interface AddLoyaltyProgramPriceList {
5023
5077
  PriceListID: string;
5024
5078
  }
5025
5079
  /**
5080
+ * Add a custom field requirement to the loyalty program. NOTE THAT a custom field can only be set once as a requirement.
5081
+ */
5082
+ export interface AddLoyaltyProgramRequiredCustomField {
5083
+ /**
5084
+ * Entity type: CustomField
5085
+ */
5086
+ CustomFieldID: string;
5087
+ /**
5088
+ * Entity type: LoyaltyProgram
5089
+ */
5090
+ LoyaltyProgramID: string;
5091
+ }
5092
+ /**
5026
5093
  * Archive a point awarding rule
5027
5094
  */
5028
5095
  export interface ArchivePointAwardingRule {
@@ -5887,6 +5954,32 @@ export interface LoyaltyListLoyaltyProgramProductLimitationsResponse_Item {
5887
5954
  QuantityLimitPerUser?: number;
5888
5955
  }
5889
5956
  /**
5957
+ * List the loyalty program CustomFieldRequirements
5958
+ */
5959
+ export interface ListLoyaltyProgramRequiredCustomFields {
5960
+ InitialPageConfig?: PageTokenConfig<Record<string, string | null> | null>;
5961
+ /**
5962
+ * Entity type: LoyaltyProgram
5963
+ */
5964
+ LoyaltyProgramID: string;
5965
+ PageToken?: string;
5966
+ }
5967
+ export interface ListLoyaltyProgramRequiredCustomFieldsResponse {
5968
+ Error?: ServiceError;
5969
+ Metadata?: ResponseMessageMetadata;
5970
+ NextPageToken?: string;
5971
+ PreviousPageToken?: string;
5972
+ Results?: LoyaltyListLoyaltyProgramRequiredCustomFieldsResponse_CustomField[];
5973
+ }
5974
+ export interface LoyaltyListLoyaltyProgramRequiredCustomFieldsResponse_CustomField {
5975
+ BackendID?: string;
5976
+ /**
5977
+ * Entity type: CustomField
5978
+ */
5979
+ ID: string;
5980
+ Name?: string;
5981
+ }
5982
+ /**
5890
5983
  * List the LoyaltyPrograms
5891
5984
  */
5892
5985
  export interface ListLoyaltyPrograms {
@@ -6051,6 +6144,7 @@ export interface LoyaltyPushLoyaltyProgram {
6051
6144
  * When this is not the case on create, this can be introduced on update. This value cannot be changed after it is set in either the create or update.
6052
6145
  */
6053
6146
  RequireManualUserIdentifier?: boolean;
6147
+ RequiredCustomFields?: string[];
6054
6148
  /**
6055
6149
  * When true, the loyalty program will only be applied when a customer is attached to the order that is already subscribed to the loyalty program.
6056
6150
  * Also, this will make the `RequireCustomer` automatically true and `AutoSubscribeCustomer` false.
@@ -6167,7 +6261,7 @@ export interface LoyaltyPushLoyaltyProgram_PushPointAwardingRule {
6167
6261
  }
6168
6262
  export interface LoyaltyPushLoyaltyProgram_PushPointAwardingRuleCondition {
6169
6263
  Data?: LoyaltyRulesIPointAwardingConditionData;
6170
- ID?: string;
6264
+ ID: string;
6171
6265
  Type: 'ORDERAMOUNT' | 'PRODUCT' | 'USERCUSTOMFIELD';
6172
6266
  }
6173
6267
  export interface PushLoyaltyProgramResponse {
@@ -6248,6 +6342,7 @@ export interface PushLoyaltyProgram_Async {
6248
6342
  * When this is not the case on create, this can be introduced on update. This value cannot be changed after it is set in either the create or update.
6249
6343
  */
6250
6344
  RequireManualUserIdentifier?: boolean;
6345
+ RequiredCustomFields?: string[];
6251
6346
  /**
6252
6347
  * When true, the loyalty program will only be applied when a customer is attached to the order that is already subscribed to the loyalty program.
6253
6348
  * Also, this will make the `RequireCustomer` automatically true and `AutoSubscribeCustomer` false.
@@ -6340,7 +6435,20 @@ export interface RemoveLoyaltyProgramPriceList {
6340
6435
  PriceListID: string;
6341
6436
  }
6342
6437
  /**
6343
- * Set the loyalty program payment types for the order.
6438
+ * Removes a custom field requirement from a loyalty program.
6439
+ */
6440
+ export interface RemoveLoyaltyProgramRequiredCustomField {
6441
+ /**
6442
+ * Entity type: CustomField
6443
+ */
6444
+ CustomFieldID: string;
6445
+ /**
6446
+ * Entity type: LoyaltyProgram
6447
+ */
6448
+ LoyaltyProgramID: string;
6449
+ }
6450
+ /**
6451
+ * Set the optional loyalty program payment types for the order.
6344
6452
  */
6345
6453
  export interface SetOrderLoyaltyProgramPaymentTypes {
6346
6454
  /**
@@ -6349,6 +6457,7 @@ export interface SetOrderLoyaltyProgramPaymentTypes {
6349
6457
  OrderID: string;
6350
6458
  /**
6351
6459
  * Entity type: LoyaltyProgramPaymentType
6460
+ * When left empty no optional payment types will be available. Required payment types cannot be unselected.
6352
6461
  */
6353
6462
  SelectedLoyaltyProgramPaymentTypes: string[];
6354
6463
  }