CartExtension.ItemArrange
This Apex object holds the details of how to arrange an item between delivery groups
Methods
global ID getProductId()
Get the Product Id of the item to be arranged
Returns
global Decimal getQuantity()
Get the desired quantity of the item to be arranged
Returns
| Type | Description |
|---|
Decimal | s Decimal |
global ID getCartItemId()
Get the Cart Item Id of the item to be arranged
Returns
global ID getDeliveryAddressId()
Get the Id of the Contact Point Address that should be associated with the item to be arranged
Returns
global ID getDeliveryGroupId()
Get the Delivery Group Id that should be associated with the item to be arranged
Returns
global String getDeliveryGroupName()
Get the name of the Delivery Group that should be associated with the item to be arranged
Returns
| Type | Description |
|---|
String | s String |
global Address getDeliveryAddress()
Get the Delivery Address that should be associated with the item to be arranged
Returns
| Type | Description |
|---|
Address | s Address |
global String getDeliverToName()
Get the name on the Delivery Address that should be associated with the item to be arranged
Returns
| Type | Description |
|---|
String | s String |
global String getDeliverToFirstName()
Get the first name on the Delivery Address that should be associated with the item to be arranged
Returns
| Type | Description |
|---|
String | s String |
global String getDeliverToLastName()
Get the last name on the Delivery Address that should be associated with the item to be arranged
Returns
| Type | Description |
|---|
String | s String |
global String getDeliverToCompanyName()
Get the company name on the Delivery Address that should be associated with the item to be arranged
Returns
| Type | Description |
|---|
String | s String |
Classes
Builder
Builds an instance of ItemArrange. This should only be used for Apex unit testing.
Constructors
global Builder()
Methods
global Builder withProductId(String productId)
global Builder withCartItemId(String cartItemId)
global Builder withQuantity(Decimal quantity)
global Builder withDeliveryGroupId(String deliveryGroupId)
global Builder withDeliveryGroupName(String deliveryGroupName)
global Builder withDeliverToCity(String deliverToCity)
global Builder withDeliverToCountry(String deliverToCountry)
global Builder withDeliverFromFirstName(String deliverFromFirstName)
global Builder withDeliverFromLastName(String deliverFromLastName)
global Builder withDeliverToName(String deliverToName)
global Builder withDeliverToPostalCode(String deliverToPostalCode)
global Builder withDeliverToState(String deliverToState)
global Builder withDeliverToStreet(String deliverToStreet)
global Builder withDeliverToStateCode(String deliverToStateCode)
global Builder withDeliverToCountryCode(String deliverToCountryCode)
global Builder withDeliverToLongitude(Double deliverToLongitude)
global Builder withDeliverToLatitude(Double deliverToLatitude)
global Builder withDeliverToGeocodeAccuracy(String deliverToGeocodeAccuracy)
global Builder withDeliverToCompanyName(String deliverToCompanyName)
global Builder withDeliveryAddressId(String deliveryAddressId)
global ItemArrange build()