@springtree/eva-services-core-management 3.0.0-beta.3 → 3.0.0-beta.5

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.
@@ -1078,7 +1078,6 @@ export interface PushCase {
1078
1078
  AssignedOrganizationUnitBackendID?: string;
1079
1079
  Assignee?: CasesPushCase_PushCaseAssignee;
1080
1080
  BackendID: string;
1081
- BackendSystemID?: string;
1082
1081
  CaseRelatedItems?: CasesPushCase_PushCaseRelatedItems;
1083
1082
  ClosingTime?: string;
1084
1083
  CustomFields?: Record<string, TAnyValue | null>;
@@ -5037,19 +5036,6 @@ export interface ArchivePointAwardingRule {
5037
5036
  ID: string;
5038
5037
  }
5039
5038
  /**
5040
- * Attach a product limitation to a payment type.
5041
- */
5042
- export interface AttachLoyaltyProgramProductLimitationToPaymentType {
5043
- /**
5044
- * Entity type: LoyaltyProgramPaymentType
5045
- */
5046
- LoyaltyProgramPaymentTypeID: string;
5047
- /**
5048
- * Entity type: LoyaltyProgramProductLimitation
5049
- */
5050
- LoyaltyProgramProductLimitationID: string;
5051
- }
5052
- /**
5053
5039
  * Attach a loyalty program to an order
5054
5040
  */
5055
5041
  export interface AttachLoyaltyProgramToOrder {
@@ -5065,6 +5051,9 @@ export interface AttachLoyaltyProgramToOrder {
5065
5051
  * Entity type: User
5066
5052
  */
5067
5053
  UserID?: string;
5054
+ /**
5055
+ * When set, the UserID will also become required so we can verify the UserIdentifier.
5056
+ */
5068
5057
  UserIdentifier?: string;
5069
5058
  }
5070
5059
  /**
@@ -5222,6 +5211,7 @@ export interface CreateLoyaltyProgramPaymentType {
5222
5211
  * Entity type: PaymentType
5223
5212
  */
5224
5213
  PaymentTypeID: string;
5214
+ ProductLimitation?: LoyaltyLoyaltyProgramProductLimitationData;
5225
5215
  Required?: boolean;
5226
5216
  Sequence?: number;
5227
5217
  TaxHandling: DataModelsLoyaltyPaymentTaxHandlingType;
@@ -5265,6 +5255,10 @@ export interface CreateLoyaltyProgramResponse {
5265
5255
  */
5266
5256
  ID: string;
5267
5257
  Metadata?: ResponseMessageMetadata;
5258
+ /**
5259
+ * Entity type: Subscription
5260
+ */
5261
+ SubscriptionID: string;
5268
5262
  }
5269
5263
  /**
5270
5264
  * Create a point awarding rule.
@@ -5383,19 +5377,6 @@ export interface DetachLoyaltyProgramFromOrder {
5383
5377
  OrderID: string;
5384
5378
  }
5385
5379
  /**
5386
- * Detach a product limitation from a payment type.
5387
- */
5388
- export interface DetachLoyaltyProgramProductLimitationFromPaymentType {
5389
- /**
5390
- * Entity type: LoyaltyProgramPaymentType
5391
- */
5392
- LoyaltyProgramPaymentTypeID: string;
5393
- /**
5394
- * Entity type: LoyaltyProgramProductLimitation
5395
- */
5396
- LoyaltyProgramProductLimitationID: string;
5397
- }
5398
- /**
5399
5380
  * Disable a point awarding rule
5400
5381
  */
5401
5382
  export interface DisablePointAwardingRule {
@@ -5532,6 +5513,7 @@ export interface GetLoyaltyProgramPaymentTypeResponse {
5532
5513
  */
5533
5514
  PaymentTypeID: string;
5534
5515
  PaymentTypeName?: string;
5516
+ ProductLimitation?: LoyaltyLoyaltyProgramProductLimitationData;
5535
5517
  Required: boolean;
5536
5518
  Sequence: number;
5537
5519
  TaxHandling: DataModelsLoyaltyPaymentTaxHandlingType;
@@ -5647,6 +5629,34 @@ export interface GetLoyaltyProgramResponse {
5647
5629
  UserMaximumUsage?: number;
5648
5630
  }
5649
5631
  /**
5632
+ * Get the available loyalty program payment methods for the given order.
5633
+ */
5634
+ export interface GetOrderLoyaltyProgramPaymentTypes {
5635
+ /**
5636
+ * Entity type: Order
5637
+ */
5638
+ OrderID: string;
5639
+ }
5640
+ export interface GetOrderLoyaltyProgramPaymentTypesResponse {
5641
+ Error?: ServiceError;
5642
+ Metadata?: ResponseMessageMetadata;
5643
+ Options?: LoyaltyGetOrderLoyaltyProgramPaymentTypesResponse_Option[];
5644
+ }
5645
+ export interface LoyaltyGetOrderLoyaltyProgramPaymentTypesResponse_Option {
5646
+ BackendID?: string;
5647
+ /**
5648
+ * Entity type: LoyaltyProgramPaymentType
5649
+ */
5650
+ ID: string;
5651
+ /**
5652
+ * Entity type: PaymentType
5653
+ */
5654
+ PaymentTypeID: string;
5655
+ PaymentTypeName?: string;
5656
+ Required: boolean;
5657
+ Sequence: number;
5658
+ }
5659
+ /**
5650
5660
  * Get loyalty point rule.
5651
5661
  */
5652
5662
  export interface GetPointAwardingRule {
@@ -5863,7 +5873,21 @@ export interface LoyaltyListLoyaltyProgramProductLimitationsResponse_Item {
5863
5873
  */
5864
5874
  ID: string;
5865
5875
  Name?: string;
5876
+ /**
5877
+ * The quantity limit over the entire product limitation product set per order.
5878
+ */
5879
+ OverallQuantityLimitPerOrder?: number;
5880
+ /**
5881
+ * The quantity limit over the entire product limitation product set per user.
5882
+ */
5883
+ OverallQuantityLimitPerUser?: number;
5884
+ /**
5885
+ * The quantity limit per product within the product limitation product set per order.
5886
+ */
5866
5887
  QuantityLimitPerOrder?: number;
5888
+ /**
5889
+ * The quantity limit per product within the product limitation product set per user.
5890
+ */
5867
5891
  QuantityLimitPerUser?: number;
5868
5892
  }
5869
5893
  /**
@@ -5936,6 +5960,14 @@ export interface LoyaltyListPointAwardingRulesResponse_Rule {
5936
5960
  export interface LoyaltyLoyaltyProgramProductLimitationData {
5937
5961
  Filters?: Record<string, SearchFilterModel>;
5938
5962
  /**
5963
+ * The quantity limit over the entire product limitation product set per order.
5964
+ */
5965
+ OverallQuantityLimitPerOrder?: number;
5966
+ /**
5967
+ * The quantity limit over the entire product limitation product set per user.
5968
+ */
5969
+ OverallQuantityLimitPerUser?: number;
5970
+ /**
5939
5971
  * Entity type: Product
5940
5972
  */
5941
5973
  ProductIDs?: string[];
@@ -5943,17 +5975,25 @@ export interface LoyaltyLoyaltyProgramProductLimitationData {
5943
5975
  * Entity type: ProductSearchTemplate
5944
5976
  */
5945
5977
  ProductSearchID?: string;
5978
+ /**
5979
+ * The quantity limit per product within the product limitation product set per order.
5980
+ */
5946
5981
  QuantityLimitPerOrder?: number;
5982
+ /**
5983
+ * The quantity limit per product within the product limitation product set per user.
5984
+ */
5947
5985
  QuantityLimitPerUser?: number;
5948
5986
  }
5949
5987
  /**
5950
5988
  * Push a LoyaltyProgram.
5989
+ * If it doesn't exist it will be created, otherwise is will be updated.
5990
+ * Sub entities will also be created or updated, but will not be removed.
5951
5991
  */
5952
- export interface PushLoyaltyProgram {
5992
+ export interface LoyaltyPushLoyaltyProgram {
5953
5993
  /**
5954
5994
  * Indicates if the subscription can be unsubscribed and if so, who can do the unsubscribe.
5955
5995
  */
5956
- AllowUnsubscribeBy?: DataModelsAllowUnsubscribeByType;
5996
+ AllowUnsubscribeBy: DataModelsAllowUnsubscribeByType;
5957
5997
  /**
5958
5998
  * When true, the loyalty program will not automatically be applied to the order when a customer is attached and all conditions are met.
5959
5999
  * When false, the loyalty program will automatically be applied if all conditions are met.
@@ -5981,7 +6021,7 @@ export interface PushLoyaltyProgram {
5981
6021
  * Entity type: LoyaltyProgram
5982
6022
  */
5983
6023
  ID: string;
5984
- LoyaltyPointUsageOptions?: DataModelsLoyaltyPointUsageOptions;
6024
+ LoyaltyPointUsageOptions: DataModelsLoyaltyPointUsageOptions;
5985
6025
  /**
5986
6026
  * Entity type: LoyaltyProgramGroup
5987
6027
  */
@@ -5991,12 +6031,12 @@ export interface PushLoyaltyProgram {
5991
6031
  OrganizationUnitSets?: LoyaltyPushLoyaltyProgram_PushLoyaltyProgramOrganizationUnitSet[];
5992
6032
  PaymentTypes?: LoyaltyPushLoyaltyProgram_PushLoyaltyProgramPaymentType[];
5993
6033
  PointAwardingRules?: LoyaltyPushLoyaltyProgram_PushPointAwardingRule[];
5994
- PointExpirationPolicyData?: TAnyValue;
6034
+ PointExpirationPolicyData?: Record<string, TAnyValue>;
5995
6035
  PointExpirationPolicyType?: string;
5996
- PointPendingPolicyData?: TAnyValue;
6036
+ PointPendingPolicyData?: Record<string, TAnyValue>;
5997
6037
  PointPendingPolicyType?: string;
5998
6038
  /**
5999
- * Entity type: LoyaltyProgramCondition
6039
+ * Entity type: PriceList
6000
6040
  */
6001
6041
  PriceLists?: string[];
6002
6042
  ProductLimitations?: LoyaltyPushLoyaltyProgram_PushLoyaltyProgramProductLimitation[];
@@ -6032,7 +6072,7 @@ export interface PushLoyaltyProgram {
6032
6072
  /**
6033
6073
  * Handling when a user is unsubscribed and re-subscribes.
6034
6074
  */
6035
- ResubscribeHandling?: DataModelsResubscribeHandlingType;
6075
+ ResubscribeHandling: DataModelsResubscribeHandlingType;
6036
6076
  StartDate?: string;
6037
6077
  Status: DataModelsLoyaltyProgramStatus;
6038
6078
  UserBudget?: number;
@@ -6057,7 +6097,7 @@ export interface PushLoyaltyProgram {
6057
6097
  UserMaximumUsage?: number;
6058
6098
  }
6059
6099
  export interface LoyaltyPushLoyaltyProgram_PushLoyaltyProgramCondition {
6060
- Data: TAnyValue;
6100
+ Data: Record<string, TAnyValue>;
6061
6101
  /**
6062
6102
  * Entity type: LoyaltyProgramCondition
6063
6103
  */
@@ -6092,9 +6132,12 @@ export interface LoyaltyPushLoyaltyProgram_PushLoyaltyProgramPaymentType {
6092
6132
  UserMaximumUsage?: number;
6093
6133
  }
6094
6134
  export interface LoyaltyPushLoyaltyProgram_PushLoyaltyProgramProductLimitation {
6135
+ ApplyToPriceList?: boolean;
6095
6136
  Filters?: Record<string, SearchFilterModel>;
6096
6137
  ID: string;
6097
6138
  Name: string;
6139
+ OverallQuantityLimitPerOrder?: number;
6140
+ OverallQuantityLimitPerUser?: number;
6098
6141
  /**
6099
6142
  * Entity type: Product
6100
6143
  */
@@ -6138,6 +6181,125 @@ export interface PushLoyaltyProgramResponse {
6138
6181
  */
6139
6182
  ID: string;
6140
6183
  Metadata?: ResponseMessageMetadata;
6184
+ /**
6185
+ * Entity type: Subscription
6186
+ */
6187
+ SubscriptionID: string;
6188
+ }
6189
+ export interface PushLoyaltyProgram_Async {
6190
+ /**
6191
+ * Indicates if the subscription can be unsubscribed and if so, who can do the unsubscribe.
6192
+ */
6193
+ AllowUnsubscribeBy: DataModelsAllowUnsubscribeByType;
6194
+ /**
6195
+ * When true, the loyalty program will not automatically be applied to the order when a customer is attached and all conditions are met.
6196
+ * When false, the loyalty program will automatically be applied if all conditions are met.
6197
+ */
6198
+ ApplyManuallyOnly?: boolean;
6199
+ /**
6200
+ * When true, if a non anonymous customer is attached to the order they will be automatically subscribed on finishing the order.
6201
+ * When false, the customer will not be subscribed.
6202
+ *
6203
+ * This is ignore when`RequiresSubscribedCustomer` or `RequiresSubscriptionValidation` is set to true.
6204
+ */
6205
+ AutoSubscribeCustomer?: boolean;
6206
+ Budget?: number;
6207
+ /**
6208
+ * Entity type: Currency
6209
+ */
6210
+ BudgetCurrencyID?: string;
6211
+ Conditions?: LoyaltyPushLoyaltyProgram_PushLoyaltyProgramCondition[];
6212
+ Data?: TAnyValue;
6213
+ DeactivateWhenBudgetIsReached?: boolean;
6214
+ Description?: string;
6215
+ EndDate?: string;
6216
+ Handler: string;
6217
+ /**
6218
+ * Entity type: LoyaltyProgram
6219
+ */
6220
+ ID: string;
6221
+ LoyaltyPointUsageOptions: DataModelsLoyaltyPointUsageOptions;
6222
+ /**
6223
+ * Entity type: LoyaltyProgramGroup
6224
+ */
6225
+ LoyaltyProgramGroupID?: string;
6226
+ Name: string;
6227
+ Options: DataModelsLoyaltyProgramOptions;
6228
+ OrganizationUnitSets?: LoyaltyPushLoyaltyProgram_PushLoyaltyProgramOrganizationUnitSet[];
6229
+ PaymentTypes?: LoyaltyPushLoyaltyProgram_PushLoyaltyProgramPaymentType[];
6230
+ PointAwardingRules?: LoyaltyPushLoyaltyProgram_PushPointAwardingRule[];
6231
+ PointExpirationPolicyData?: Record<string, TAnyValue>;
6232
+ PointExpirationPolicyType?: string;
6233
+ PointPendingPolicyData?: Record<string, TAnyValue>;
6234
+ PointPendingPolicyType?: string;
6235
+ /**
6236
+ * Entity type: PriceList
6237
+ */
6238
+ PriceLists?: string[];
6239
+ ProductLimitations?: LoyaltyPushLoyaltyProgram_PushLoyaltyProgramProductLimitation[];
6240
+ ReactivateProgramWhenPossible?: boolean;
6241
+ ReloadPolicy?: string;
6242
+ /**
6243
+ * When true, the loyalty program will only be applied when a customer is attached to the order.
6244
+ *
6245
+ * When false, the loyalty program can be attached to the order even if there is no customer attached.
6246
+ */
6247
+ RequireCustomer?: boolean;
6248
+ /**
6249
+ * When set to true, subscribing the user will require a UserIdentifier to be given.
6250
+ * Attention!
6251
+ * This value will be used to create a subscription when either `RequiredCustomer` or `AutoSubscribeCustomer` is set to true.
6252
+ * 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.
6253
+ */
6254
+ RequireManualUserIdentifier?: boolean;
6255
+ /**
6256
+ * 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.
6257
+ * Also, this will make the `RequireCustomer` automatically true and `AutoSubscribeCustomer` false.
6258
+ *
6259
+ * When false, the loyalty program can be attached to the order if a customer is attached that isn't already subscribed to the loyalty program.
6260
+ */
6261
+ RequiresSubscribedCustomer?: boolean;
6262
+ /**
6263
+ * When true, the order will require that the attached customer on the order will be validated by providing the UserIdentifier in the `AttachBenefitProgramToOrder` service.
6264
+ * Also, this will make the `RequireCustomer` and `RequiresSubscribedCustomer` automatically true and `AutoSubscribeCustomer` false.
6265
+ *
6266
+ * When false, this validation isn't required.
6267
+ */
6268
+ RequiresSubscriptionValidation?: boolean;
6269
+ /**
6270
+ * Handling when a user is unsubscribed and re-subscribes.
6271
+ */
6272
+ ResubscribeHandling: DataModelsResubscribeHandlingType;
6273
+ StartDate?: string;
6274
+ Status: DataModelsLoyaltyProgramStatus;
6275
+ UserBudget?: number;
6276
+ /**
6277
+ * Attention!
6278
+ * This value will be used to create a subscription when either `RequiredCustomer` or `AutoSubscribeCustomer` is set to true.
6279
+ * 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.
6280
+ */
6281
+ UserIdentifierPrefix?: string;
6282
+ /**
6283
+ * Attention!
6284
+ * This value will be used to create a subscription when either `RequiredCustomer` or `AutoSubscribeCustomer` is set to true.
6285
+ * 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.
6286
+ */
6287
+ UserIdentifierStartNumber?: string;
6288
+ /**
6289
+ * Attention!
6290
+ * This value will be used to create a subscription when either `RequiredCustomer` or `AutoSubscribeCustomer` is set to true.
6291
+ * 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.
6292
+ */
6293
+ UserIdentifierSuffix?: string;
6294
+ UserMaximumUsage?: number;
6295
+ }
6296
+ export interface PushLoyaltyProgram_AsyncResponse {
6297
+ Error?: ServiceError;
6298
+ JobID?: string;
6299
+ Metadata?: ResponseMessageMetadata;
6300
+ }
6301
+ export interface PushLoyaltyProgram_AsyncResult {
6302
+ JobID?: string;
6141
6303
  }
6142
6304
  /**
6143
6305
  * Rebalance loyalty points of a user
@@ -6182,6 +6344,19 @@ export interface RemoveLoyaltyProgramPriceList {
6182
6344
  PriceListID: string;
6183
6345
  }
6184
6346
  /**
6347
+ * Set the loyalty program payment types for the order.
6348
+ */
6349
+ export interface SetOrderLoyaltyProgramPaymentTypes {
6350
+ /**
6351
+ * Entity type: Order
6352
+ */
6353
+ OrderID: string;
6354
+ /**
6355
+ * Entity type: LoyaltyProgramPaymentType
6356
+ */
6357
+ SelectedLoyaltyProgramPaymentTypes: string[];
6358
+ }
6359
+ /**
6185
6360
  * Update an existing LoyaltyProgram
6186
6361
  */
6187
6362
  export interface UpdateLoyaltyProgram {
@@ -6356,6 +6531,7 @@ export interface UpdateLoyaltyProgramPaymentType {
6356
6531
  ID: string;
6357
6532
  MaximumAmountPerOrder?: number;
6358
6533
  MaximumPercentageOfUserBudgetPerOrder?: number;
6534
+ ProductLimitation?: LoyaltyLoyaltyProgramProductLimitationData;
6359
6535
  Required?: boolean;
6360
6536
  Sequence?: number;
6361
6537
  TaxHandling: DataModelsLoyaltyPaymentTaxHandlingType;
@@ -8859,6 +9035,10 @@ export interface CreatePriceListAdjustment {
8859
9035
  PriceListID: string;
8860
9036
  PricingGroupID?: string;
8861
9037
  Sequence?: number;
9038
+ /**
9039
+ * If set to true, this will skip the recalculation of the price list after the adjustment is updated, defaults to false so it will always recalculate. Recalculation happens periodically thereafter.
9040
+ */
9041
+ SkipRecalculation?: boolean;
8862
9042
  Type: string;
8863
9043
  }
8864
9044
  export interface CreatePriceListAdjustmentResponse {
@@ -8955,6 +9135,10 @@ export interface DeletePriceListAdjustment {
8955
9135
  * Entity type: PriceListAdjustment
8956
9136
  */
8957
9137
  ID: string;
9138
+ /**
9139
+ * If set to true, this will skip the recalculation of the price list after the adjustment is updated, defaults to false so it will always recalculate. Recalculation happens periodically thereafter.
9140
+ */
9141
+ SkipRecalculation?: boolean;
8958
9142
  }
8959
9143
  /**
8960
9144
  * Delete a PriceListManualInputAdjustment
@@ -9429,6 +9613,10 @@ export interface UpdatePriceListAdjustment {
9429
9613
  ParentAdjustmentID?: string;
9430
9614
  PricingGroupID: string | null | undefined;
9431
9615
  Sequence?: number;
9616
+ /**
9617
+ * If set to true, this will skip the recalculation of the price list after the adjustment is updated, defaults to false so it will always recalculate. Recalculation happens periodically thereafter.
9618
+ */
9619
+ SkipRecalculation?: boolean;
9432
9620
  Type: string;
9433
9621
  }
9434
9622
  /**
@@ -10850,6 +11038,10 @@ export interface CreateShippingMethodTransportationTime {
10850
11038
  * Creates a new ShippingRestriction.
10851
11039
  */
10852
11040
  export interface CreateShippingRestriction {
11041
+ /**
11042
+ * When set to `true`, the script will be leading for the entire order. Default is `true`
11043
+ */
11044
+ CheckScriptOnly?: boolean;
10853
11045
  /**
10854
11046
  * Entity type: Country
10855
11047
  */
@@ -11069,6 +11261,7 @@ export interface GetShippingRestrictionByID {
11069
11261
  ID: string;
11070
11262
  }
11071
11263
  export interface GetShippingRestrictionByIDResponse {
11264
+ CheckScriptOnly: boolean;
11072
11265
  CountryID?: string;
11073
11266
  CountryName?: string;
11074
11267
  Error?: ServiceError;
@@ -11425,6 +11618,10 @@ export interface UpdateShippingMethodTransportationTime {
11425
11618
  * Updates a ShippingRestriction.
11426
11619
  */
11427
11620
  export interface UpdateShippingRestriction {
11621
+ /**
11622
+ * When set to `true`, the script will be leading for the entire order.
11623
+ */
11624
+ CheckScriptOnly?: boolean;
11428
11625
  /**
11429
11626
  * Entity type: Country
11430
11627
  */