PriceRule constructor

PriceRule({
  1. int? id,
  2. String? valueType,
  3. String? value,
  4. String? customerSelection,
  5. String? targetType,
  6. String? targetSelection,
  7. String? allocationMethod,
  8. int? allocationLimit,
  9. bool? oncePerCustomer,
  10. int? usageLimit,
  11. String? startsAt,
  12. String? endsAt,
  13. String? createdAt,
  14. String? updatedAt,
  15. String? title,
  16. String? adminGraphqlApiId,
  17. List<int>? entitledCollectionIds,
  18. EntitledCountryIds? entitledCountryIds,
  19. List<int>? entitledProductIds,
  20. List<int>? entitledVariantIds,
  21. List<int>? prerequisiteCustomerIds,
  22. PrerequisiteQuantityRange? prerequisiteQuantityRange,
  23. List<int>? customerSegmentPrerequisiteIds,
  24. PrerequisiteShippingPriceRange? prerequisiteShippingPriceRange,
  25. PrerequisiteSubtotalRange? prerequisiteSubtotalRange,
  26. PrerequisiteToEntitlementPurchase? prerequisiteToEntitlementPurchase,
  27. List<int>? prerequisiteProductIds,
  28. List<int>? prerequisiteVariantIds,
  29. List<int>? prerequisiteCollectionIds,
  30. PrerequisiteToEntitlementQuantityRatio? prerequisiteToEntitlementQuantityRatio,
})

Implementation

PriceRule(
    {this.id,
    this.valueType,
    this.value,
    this.customerSelection,
    this.targetType,
    this.targetSelection,
    this.allocationMethod,
    this.allocationLimit,
    this.oncePerCustomer,
    this.usageLimit,
    this.startsAt,
    this.endsAt,
    this.createdAt,
    this.updatedAt,
    this.title,
    this.adminGraphqlApiId,
    this.entitledCollectionIds,
    this.entitledCountryIds,
    this.entitledProductIds,
    this.entitledVariantIds,
    this.prerequisiteCustomerIds,
    this.prerequisiteQuantityRange,
    this.customerSegmentPrerequisiteIds,
    this.prerequisiteShippingPriceRange,
    this.prerequisiteSubtotalRange,
    this.prerequisiteToEntitlementPurchase,
    this.prerequisiteProductIds,
    this.prerequisiteVariantIds,
    this.prerequisiteCollectionIds,
    this.prerequisiteToEntitlementQuantityRatio});