Skip to main content
Anchor to BaseCartDiscountApplication

BaseCartDiscountApplication

interface

Captures the intent of a discount source at the time it was applied to a cart. This includes the discount value, how it's allocated across entitled items, and which line types it targets.

The actual discounted amounts on specific cart lines are represented by CartDiscountAllocation objects, which reference this application.

•DiscountApplicationAllocationMethod!
non-null

The method by which the discount's value is allocated to its entitled items.

•DiscountApplicationTargetSelection!
non-null

Which lines of targetType that the discount is allocated over.

•DiscountApplicationTargetType!
non-null

The type of line that the discount is applicable towards.

Anchor to totalAllocatedAmounttotalAllocatedAmount
•MoneyV2!
non-null

The total amount allocated by this discount application across all entitled items.

•PricingValue!
non-null

The value of the discount application.


Was this section helpful?

Anchor to Types implemented inTypes implemented in

•OBJECT

The discount application automatically applied based on prerequisites.

•DiscountApplicationAllocationMethod!
non-null

The method by which the discount's value is allocated to its entitled items.

•DiscountApplicationTargetSelection!
non-null

Which lines of targetType that the discount is allocated over.

•DiscountApplicationTargetType!
non-null

The type of line that the discount is applicable towards.

•String!
non-null

The title of the discount.

Anchor to totalAllocatedAmounttotalAllocatedAmount
•MoneyV2!
non-null

The total amount allocated by this discount application across all entitled items.

•PricingValue!
non-null

The value of the discount application.

•OBJECT

The discount application applied using a discount code.

•DiscountApplicationAllocationMethod!
non-null

The method by which the discount's value is allocated to its entitled items.

•String!
non-null

The code used to apply the discount.

•DiscountApplicationTargetSelection!
non-null

Which lines of targetType that the discount is allocated over.

•DiscountApplicationTargetType!
non-null

The type of line that the discount is applicable towards.

Anchor to totalAllocatedAmounttotalAllocatedAmount
•MoneyV2!
non-null

The total amount allocated by this discount application across all entitled items.

•PricingValue!
non-null

The value of the discount application.

•OBJECT

The discount application applied by a custom script or function.

•DiscountApplicationAllocationMethod!
non-null

The method by which the discount's value is allocated to its entitled items.

•DiscountApplicationTargetSelection!
non-null

Which lines of targetType that the discount is allocated over.

•DiscountApplicationTargetType!
non-null

The type of line that the discount is applicable towards.

•String!
non-null

The title of the discount.

Anchor to totalAllocatedAmounttotalAllocatedAmount
•MoneyV2!
non-null

The total amount allocated by this discount application across all entitled items.

•PricingValue!
non-null

The value of the discount application.


Was this section helpful?