public class OrderBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_COUNTRY_CODE |
static Double |
DEFAULT_DELIVER_LATITUDE |
static Double |
DEFAULT_DELIVER_LONGITDUE |
| Constructor and Description |
|---|
OrderBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static OrderBuilder |
aSourcingOrder() |
OrderModel |
build(AddressModel address,
CurrencyModel currency,
ProductService productService,
Map<String,Long> productInfo) |
OrderModel |
build(AddressModel address,
CurrencyModel currency,
ProductService productService,
Map<String,Long> productInfo,
PointOfServiceModel pointOfServiceModel,
DeliveryModeModel deliveryModeModel) |
UserModel |
setDefaultUser() |
OrderBuilder |
withBaseStore(BaseStoreModel baseStore) |
OrderBuilder |
withDeliveryGeoCode(double deliveryLatitude,
double deliveryLongitude) |
public static final Double DEFAULT_DELIVER_LATITUDE
public static final Double DEFAULT_DELIVER_LONGITDUE
public static final String DEFAULT_COUNTRY_CODE
public static OrderBuilder aSourcingOrder()
public OrderModel build(AddressModel address, CurrencyModel currency, ProductService productService, Map<String,Long> productInfo)
public OrderModel build(AddressModel address, CurrencyModel currency, ProductService productService, Map<String,Long> productInfo, PointOfServiceModel pointOfServiceModel, DeliveryModeModel deliveryModeModel)
public OrderBuilder withDeliveryGeoCode(double deliveryLatitude, double deliveryLongitude)
public UserModel setDefaultUser()
public OrderBuilder withBaseStore(BaseStoreModel baseStore)
Copyright © 2017 SAP SE. All Rights Reserved.