Documentation ¶
Index ¶
- func BuildAlternativeDeliveryWithAlternativeDiscounts(t *testing.T) *cart.Delivery
- func BuildDeliveryWithDifferentDiscounts(t *testing.T) *cart.Delivery
- func BuildDeliveryWithDifferentDiscountsAndShippingDiscounts(t *testing.T) *cart.Delivery
- func BuildDeliveryWithDiscounts(t *testing.T) *cart.Delivery
- func BuildDeliveryWithDuplicateDiscounts(t *testing.T) *cart.Delivery
- func BuildDeliveryWithDuplicateDiscountsAndShippingDiscounts(t *testing.T) *cart.Delivery
- func BuildDeliveryWithoutDiscounts(t *testing.T) *cart.Delivery
- func BuildDeliveryWithoutDiscountsAndShippingDiscounts(t *testing.T) *cart.Delivery
- func BuildDeliveryWithoutItemsButWithShippingDiscounts(t *testing.T) *cart.Delivery
- func BuildItemWithAlternativeDiscounts(t *testing.T) *cart.Item
- func BuildItemWithDiscounts(t *testing.T) *cart.Item
- func BuildItemWithDuplicateDiscounts(t *testing.T) *cart.Item
- func BuildShippingItemWithAlternativeDiscounts(t *testing.T) *cart.ShippingItem
- func BuildShippingItemWithDiscounts(t *testing.T) *cart.ShippingItem
- func BuildShippingItemWithDuplicateDiscounts(t *testing.T) *cart.ShippingItem
- type ByCode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAlternativeDeliveryWithAlternativeDiscounts ¶
BuildAlternativeDeliveryWithAlternativeDiscounts helper for delivery building Adds an item with alternative discount twice This means when discounts are summed up (based on type + delivery) The amount should be added to the previous discount
func BuildDeliveryWithDifferentDiscounts ¶
BuildDeliveryWithDifferentDiscounts helper for delivery building Adds an item with alternative discount twice This means when discounts are summed up (based on type + delivery) The amount should be added to the previous discount
func BuildDeliveryWithDifferentDiscountsAndShippingDiscounts ¶
BuildDeliveryWithDifferentDiscountsAndShippingDiscounts helper for delivery building Adds an item with alternative discount twice Adds a shipping item with discounts This means when discounts are summed up (based on type + delivery) The amount should be added to the previous discount
func BuildDeliveryWithDiscounts ¶
BuildDeliveryWithDiscounts helper for delivery building Adds an item with discount twice This means when discounts are summed up (based on type + delivery) The amount should be added to the previous discount
func BuildDeliveryWithDuplicateDiscounts ¶
BuildDeliveryWithDuplicateDiscounts helper for delivery building Adds an item with alternative discount twice This means when discounts are summed up (based on type + delivery) The amount should be added to the previous discount
func BuildDeliveryWithDuplicateDiscountsAndShippingDiscounts ¶
BuildDeliveryWithDuplicateDiscountsAndShippingDiscounts helper for delivery building Adds an item with duplicate discounts Adds a shipping item with discounts This means when discounts are summed up (based on type + delivery) The amount should be added to the previous discount
func BuildDeliveryWithoutDiscounts ¶
BuildDeliveryWithoutDiscounts helper for delivery building
func BuildDeliveryWithoutDiscountsAndShippingDiscounts ¶
BuildDeliveryWithoutDiscountsAndShippingDiscounts helper for delivery building
func BuildDeliveryWithoutItemsButWithShippingDiscounts ¶
BuildDeliveryWithoutItemsButWithShippingDiscounts helper for delivery building
func BuildItemWithAlternativeDiscounts ¶
BuildItemWithAlternativeDiscounts helper for item building with different discounts
func BuildItemWithDiscounts ¶
BuildItemWithDiscounts helper for item building
func BuildItemWithDuplicateDiscounts ¶
BuildItemWithDuplicateDiscounts helper for item building with duplicate discounts
func BuildShippingItemWithAlternativeDiscounts ¶
func BuildShippingItemWithAlternativeDiscounts(t *testing.T) *cart.ShippingItem
BuildShippingItemWithAlternativeDiscounts helper for shipping item building with different discounts
func BuildShippingItemWithDiscounts ¶
func BuildShippingItemWithDiscounts(t *testing.T) *cart.ShippingItem
BuildShippingItemWithDiscounts helper for shipping item building
func BuildShippingItemWithDuplicateDiscounts ¶
func BuildShippingItemWithDuplicateDiscounts(t *testing.T) *cart.ShippingItem
BuildShippingItemWithDuplicateDiscounts helper for shipping item building with duplicate discounts