|
Maps SDK for C++ 1.0.0
|
Defines an order that will be visited. More...


Public Member Functions | |
| Order ()=default | |
| Default constructor. | |
| Order (const Customer &customer) | |
| Constructs a Order object initialized with Customer information. | |
| Order (const Order &)=default | |
| Default copy constructor. | |
| Order (Order &&) noexcept=default | |
| Default move constructor noexcept is deduced. | |
| Order & | operator= (const Order &)=default |
| Default copy assignment operator. | |
| Order & | operator= (Order &&) noexcept=default |
| Default move assignment operator. | |
| bool | operator== (Order const &order) const |
| Compares two Order objects for equality. | |
| bool | operator!= (Order const &order) const |
| Compares two Order objects for equality. | |
| LargeInteger | getId () const noexcept |
| Get the id of the order. | |
| const CoordinatesRef | getCoordinates () const noexcept |
| Retrieves the coordinates of the order. | |
| CoordinatesRef | getCoordinates () |
| Provides direct access to modify the coordinates of the order. | |
| Order & | setCoordinates (const Coordinates &coords) noexcept |
| Set the coordinates of the order. | |
| const StringRef | getAlias () const noexcept |
| Retrieves the alias of this order. | |
| Order & | setAlias (const String &alias) noexcept |
| Sets the alias for this order. | |
| const StringRef | getFirstName () const noexcept |
| Retrieves the first name of the owner of the order. | |
| Order & | setFirstName (const String &firstName) noexcept |
| Sets the fist name of the owner of the order. | |
| const StringRef | getLastName () const noexcept |
| Retrieves the last name of the owner of the order. | |
| Order & | setLastName (const String &lastName) noexcept |
| Sets the last name of the owner of the order. | |
| const AddressInfoRef | getAddress () const noexcept |
| Retrieves the address associated with the order. | |
| Order & | setAddress (const AddressInfo &address) noexcept |
| Sets the address for the order's location. | |
| const StringRef | getPhoneNumber () const noexcept |
| Retrieves the phone number of the owner of the order. | |
| Order & | setPhoneNumber (const String &phoneNumber) noexcept |
| Sets the phone number of the owner of the order, which the driver will use to contact him. | |
| const CustomDataListRef | getCustomData () const noexcept |
| Get the custom data of the order. | |
| Order & | setCustomData (const CustomDataList &list) noexcept |
| Set the order's custom data. | |
| unsigned int | getNumberOfPackages () const noexcept |
| Get the number of packages which has to be delivered at order or picked-up from the order depending on the order's type. | |
| Order & | setNumberOfPackages (unsigned int numberOfPackages) noexcept |
| Set the number of packages which has to be delivered at this order or picked-up from this order depending on the order's type. | |
| float | getWeight () const noexcept |
| Get the weight which has to be delivered at order or picked-up from the order depending on the order's type. | |
| Order & | setWeight (float weightKg) noexcept |
| Set the weight which has to be delivered at order or picked-up from the order depending on the order's type. | |
| float | getCube () const noexcept |
| Get the cube which has to be delivered at order or picked-up from the order depending on the order's type. | |
| Order & | setCube (float cube) noexcept |
| Set the cube which has to be delivered at order or picked-up from the order depending on the order's type. | |
| std::pair< int, int > | getTimeWindow () const noexcept |
| Get the time window within which the order must be visited. | |
| Order & | setTimeWindow (std::pair< int, int > timeWindowInMinutes) noexcept |
| Set the time window within which the order must be visited. | |
| unsigned int | getServiceTime () const noexcept |
| Get the amount of time (in seconds) that the vehicle has to stay at the current order (to load/unload the goods). | |
| Order & | setServiceTime (unsigned int serviceTimeSeconds) noexcept |
| Set the amount of time (in seconds) that the vehicle has to stay at the current order (to load/unload the goods). | |
| EOrderType | getType () const noexcept |
| Get the order’s type. | |
| Order & | setType (EOrderType orderType) noexcept |
| Set the order’s type. | |
| EOrderStatus | getStatus () const noexcept |
| Get the order’s status. | |
| EOrderState | getState () const noexcept |
| Get the order’s state. | |
| EOrderPriority | getPriority () const noexcept |
| Get the order’s priority. | |
| Order & | setPriority (EOrderPriority orderPriority) noexcept |
| Set the order’s priority. | |
| float | getRevenue () const noexcept |
| Get the revenue which has to be received from the order. | |
| Order & | setRevenue (float revenue) noexcept |
| Set the revenue which has to be received from the order. | |
| const TimeRef | getCreationTime () const noexcept |
| Get the date and time when the order was saved. | |
| const CustomerRef | getCustomer () const noexcept |
| Get the Customer of the order. | |
| Order & | setCustomer (const Customer &customer) noexcept |
| Set the Customer of the order. | |
| LargeInteger | getDepotId () const noexcept |
| Get the id of the depot(MiscLocation) where to which the order belongs. | |
| Order & | setDepotId (LargeInteger depotId) noexcept |
| Set the id of the depot where to which the order belongs. | |
Defines an order that will be visited.
Implements share-read / copy-on-write Api object over IOrder.
|
inline |
|
inlinenoexcept |
Retrieves the address associated with the order.
This address provides a human-readable location for the order's location, complementing the coordinates.
|
inlinenoexcept |
Retrieves the alias of this order.
|
inline |
Provides direct access to modify the coordinates of the order.
This allows for setting or updating the geographical location of the order.
|
inlinenoexcept |
Retrieves the coordinates of the order.
These coordinates represent the geographical location of the order.
|
inlinenoexcept |
Get the date and time when the order was saved.
|
inlinenoexcept |
Get the cube which has to be delivered at order or picked-up from the order depending on the order's type.
|
inlinenoexcept |
Get the custom data of the order.
|
inlinenoexcept |
|
inlinenoexcept |
Get the id of the depot(MiscLocation) where to which the order belongs.
|
inlinenoexcept |
Retrieves the first name of the owner of the order.
|
inlinenoexcept |
Get the id of the order.
It is a unique identifier of the order and it is used for update or delete.
|
inlinenoexcept |
Retrieves the last name of the owner of the order.
|
inlinenoexcept |
Get the number of packages which has to be delivered at order or picked-up from the order depending on the order's type.
The default value is 0.
|
inlinenoexcept |
Retrieves the phone number of the owner of the order.
|
inlinenoexcept |
Get the order’s priority.
High priority orders will be the first to be visited if it is possible.
|
inlinenoexcept |
Get the revenue which has to be received from the order.
|
inlinenoexcept |
Get the amount of time (in seconds) that the vehicle has to stay at the current order (to load/unload the goods).
|
inlinenoexcept |
Get the order’s state.
|
inlinenoexcept |
Get the order’s status.
|
inlinenoexcept |
Get the time window within which the order must be visited.
The unit is minutes since midnight, for example the pair (480, 660) means that the order can be visited between 7:00 AM and 11:00 AM
In case the time window lasts more than 24 hours, the end time is calculated in minutes from the first day. For example for the time window 6:00 PM - 10:00 AM next day we will set the pair (1080, 2040)
|
inlinenoexcept |
Get the order’s type.
|
inlinenoexcept |
Get the weight which has to be delivered at order or picked-up from the order depending on the order's type.
|
inline |
Default copy assignment operator.
Replaces the contents of this object with a copy of another Order object.
Default move assignment operator.
Moves the contents of another Order object into this one.
|
inline |
|
inlinenoexcept |
Sets the address for the order's location.
| address | The new address for the order. |
|
inlinenoexcept |
Set the coordinates of the order.
The coordinates cannot be updated, only set at the creation of the order.
| coords | The new geographical coordinates for the order's location. |
|
inlinenoexcept |
Set the cube which has to be delivered at order or picked-up from the order depending on the order's type.
By default it is 0.
| cube | The total cubic volume of the packages picked up/delivered from this order |
|
inlinenoexcept |
Set the order's custom data.
Used to set other descriptive data; e.g.: regular customer
| list | The custom data as CustomDataList |
|
inlinenoexcept |
Set the id of the depot where to which the order belongs.
| depotId | The id of the depot (from MiscLocation) |
|
inlinenoexcept |
Set the number of packages which has to be delivered at this order or picked-up from this order depending on the order's type.
By default it is 0.
| numberOfPackages | The number of packages to be pickup or delivered. |
|
inlinenoexcept |
Set the order’s priority.
By default it is EOrderPriority::OP_Low.
| orderPriority | The order's priority as a EOrderPriority value |
|
inlinenoexcept |
Set the revenue which has to be received from the order.
By default it is 0.
| revenue | The revenue collected from this order |
|
inlinenoexcept |
Set the amount of time (in seconds) that the vehicle has to stay at the current order (to load/unload the goods).
By default it is 0.
| serviceTimeSeconds | The amount of time the vehicle spends at this order in seconds |
|
inlinenoexcept |
Set the time window within which the order must be visited.
The unit is minutes since midnight, for example the pair (480, 660) means that the order can be visited between 7:00 AM and 11:00 AM
In case the time window lasts more than 24 hours, the end time is calculated in minutes from the first day. For example for the time window 6:00 PM - 10:00 AM next day we will set the pair (1080, 2040)
| timeWindowInMinutes | a pair of two ints: the first one is the start of the time window and the second one is the end of the time window |
|
inlinenoexcept |
Set the order’s type.
By default it is EOrderType::OT_PickUp.
| orderType | The type of the order as a EOrderType value. |
|
inlinenoexcept |
Set the weight which has to be delivered at order or picked-up from the order depending on the order's type.
By default it is 0. The unit is kg.
| weightKg | The total weight of the packages picked up/delivered from this order |