Doloro GDK 22 .1.0 Beta
by Tauri Interactive
Doloro.InvetorySystem.TransactionService Class Reference

Detailed Description

Order that contains meta data related to the resource transfer instruction.

Services that handles transactions between right owners.

Classes

class  TransactionOrder
 Data container that defines transaction instruction. More...
 

Static Public Member Functions

static bool ExecuteAddOrder (Guid destinationStorageId, string itemBundle, string itemCode, int count)
 Instantly attempts to execute a transaction to a storage. More...
 
static bool ExecuteAddOrder (Guid destinationStorageId, string itemBundle, string itemCode, int count, string serviceCode)
 Instantly attempts to execute a transaction to a storage. More...
 
static bool ExecuteAddOrder (Guid destinationStorageId, Item item, int count)
 Instantly attempts to execute a transaction to a storage. More...
 
static bool ExecuteAddOrder (Guid destinationStorageId, Item item, int count, string serviceCode)
 Instantly attempts to execute a transaction to a storage. More...
 
static bool ExecuteAddOrder (Storage destination, string itemBundle, string itemCode, int count)
 Instantly attempts to execute a transaction to a storage. More...
 
static bool ExecuteAddOrder (Storage destination, string itemBundle, string itemCode, int count, string serviceCode)
 Instantly attempts to execute a transaction to a storage. More...
 
static bool ExecuteAddOrder (Storage destination, Item item, int count)
 Instantly attempts to execute a transaction to a storage. More...
 
static bool ExecuteAddOrder (Storage destination, Item item, int count, string serviceCode)
 Instantly attempts to execute a transaction to a storage. More...
 
static bool InstantTransactionOrder (Guid sourceStorageId, Guid destinationStorageId, string itemBundle, string itemCode, int count)
 Instantly attempts to execute a transaction order between two storages. More...
 
static bool InstantTransactionOrder (Guid sourceStorageId, Guid destinationStorageId, string itemBundle, string itemCode, int count, string serviceCode)
 Instantly attempts to execute a transaction order between two storages. More...
 
static bool InstantTransactionOrder (Guid sourceStorageId, Guid destinationStorageId, Item item, int count)
 Instantly attempts to execute a transaction order between two storages. More...
 
static bool InstantTransactionOrder (Guid sourceStorageId, Guid destinationStorageId, Item item, int count, string serviceCode)
 Instantly attempts to execute a transaction order between two storages. More...
 
static bool InstantTransactionOrder (Storage source, Storage destination, string itemBundle, string itemCode, int count)
 Instantly attempts to execute a transaction order between two storages. More...
 
static bool InstantTransactionOrder (Storage source, Storage destination, string itemBundle, string itemCode, int count, string serviceCode)
 Instantly attempts to execute a transaction order between two storages. More...
 
static bool InstantTransactionOrder (Storage source, Storage destination, Item item, int count)
 Instantly attempts to execute a transaction order between two storages. More...
 
static bool InstantTransactionOrder (Storage source, Storage destination, Item item, int count, string serviceCode)
 Instantly attempts to execute a transaction order between two storages. More...
 
static void ConfirmTransactionOrder (Guid orderId)
 Executes placed order. More...
 
static void ConfirmTransactionOrder (TransactionOrder order)
 Executes placed order. More...
 
static void CancelTransactionOrder (Guid orderId)
 Cancels the placed order by id. More...
 
static void CancelTransactionOrder (TransactionOrder order)
 Cancels the placed order by id. More...
 
static void CancelAllForStorage (Guid storageId)
 Cancels entire orders related to certain storage. More...
 
static bool PlaceTransactionOrder (Guid sourceStorageId, Guid destinationStorageId, string itemBundle, string itemCode, int count, out Guid orderId)
 Placing transfer order to the system reserving the resource but not confirms it. More...
 
static bool PlaceTransactionOrder (Guid sourceStorageId, Guid destinationStorageId, string itemBundle, string itemCode, int count, string serviceCode, out Guid orderId)
 Placing transfer order to the system reserving the resource but not confirms it. More...
 
static bool PlaceTransactionOrder (Guid sourceStorageId, Guid destinationStorageId, Item item, int count, out Guid orderId)
 Placing transfer order to the system reserving the resource but not confirms it. More...
 
static bool PlaceTransactionOrder (Guid sourceStorageId, Guid destinationStorageId, Item item, int count, string serviceCode, out Guid orderId)
 Placing transfer order to the system reserving the resource but not confirms it. More...
 
static bool PlaceTransactionOrder (Storage source, Storage destination, string itemBundle, string itemCode, int count, out Guid orderId)
 Placing transfer order to the system reserving the resource but not confirms it. More...
 
static bool PlaceTransactionOrder (Storage source, Storage destination, string itemBundle, string itemCode, int count, string serviceCode, out Guid orderId)
 Placing transfer order to the system reserving the resource but not confirms it. More...
 
static bool PlaceTransactionOrder (Storage source, Storage destination, Item item, int count, out Guid orderId)
 Placing transfer order to the system reserving the resource but not confirms it. More...
 
static bool PlaceTransactionOrder (Storage source, Storage destination, Item item, int count, string serviceCode, out Guid orderId)
 Placing transfer order to the system reserving the resource but not confirms it. More...
 
static bool ExecuteRemoveOrder (Guid sourceStorageId, string itemBundle, string itemCode, int count)
 Instantly attempts to remove a items from a storage. More...
 
static bool ExecuteRemoveOrder (Guid sourceStorageId, string itemBundle, string itemCode, int count, string serviceCode)
 Instantly attempts to remove a items from a storage. More...
 
static bool ExecuteRemoveOrder (Guid sourceStorageId, Item item, int count)
 Instantly attempts to remove a items from a storage. More...
 
static bool ExecuteRemoveOrder (Guid sourceStorageId, Item item, int count, string serviceCode)
 Instantly attempts to remove a items from a storage. More...
 
static bool ExecuteRemoveOrder (Storage source, string itemBundle, string itemCode, int count)
 Instantly attempts to remove a items from a storage. More...
 
static bool ExecuteRemoveOrder (Storage source, string itemBundle, string itemCode, int count, string serviceCode)
 Instantly attempts to execute a transaction to a storage. More...
 
static bool ExecuteRemoveOrder (Storage source, Item item, int count)
 Instantly attempts to remove a items from a storage. More...
 
static bool ExecuteRemoveOrder (Storage source, Item item, int count, string serviceCode)
 Instantly attempts to remove a items from a storage. More...
 
static Guid[] FindOrders (Guid storageId)
 Returns array of TransactionOrder.ids related to certain storage. More...
 
static ICollection< TransactionOrderFindOrders (Guid from, Guid to)
 Looking for orders between two storages. More...
 
static ICollection< TransactionOrderFindOrders (Guid from, Guid to, Func< TransactionOrder, bool > condition)
 Looking for orders between two storages. More...
 
static bool HasOrders (Guid storageId)
 Checks is there is any placed and not finalized or expired order related to the certain storage. More...
 
static TransactionOrder GetOrder (Guid orderId)
 Returns TransactionOrder by id if exists. More...
 
static IEnumerator< TransactionOrderGetOrdersEnumerator ()
 Returns enumerator of entire orders registered at the moment. More...
 

Properties

static AMaskStorageFeature LastInvalidProperty [get]
 Property that failed validation pass for order at last.
 

Member Function Documentation

◆ CancelAllForStorage()

static void Doloro.InvetorySystem.TransactionService.CancelAllForStorage ( Guid  storageId)
static

Cancels entire orders related to certain storage.

Parameters
storageIdId of the storage in the StoragesDatabase

◆ CancelTransactionOrder() [1/2]

static void Doloro.InvetorySystem.TransactionService.CancelTransactionOrder ( Guid  orderId)
static

Cancels the placed order by id.

Parameters
orderIdId of the order provided by the service via the PlaceTransactionOrder(Storage, Storage, string, string, int, out Guid) handler.

◆ CancelTransactionOrder() [2/2]

static void Doloro.InvetorySystem.TransactionService.CancelTransactionOrder ( TransactionOrder  order)
static

Cancels the placed order by id.

Parameters
orderOrder provided by the service via the PlaceTransactionOrder(Storage, Storage, string, string, int, out Guid) handler.

◆ ConfirmTransactionOrder() [1/2]

static void Doloro.InvetorySystem.TransactionService.ConfirmTransactionOrder ( Guid  orderId)
static

Executes placed order.

Parameters
orderIdId of the order provided by the service via the PlaceTransactionOrder(Storage, Storage, string, string, int, out Guid) handler.

◆ ConfirmTransactionOrder() [2/2]

static void Doloro.InvetorySystem.TransactionService.ConfirmTransactionOrder ( TransactionOrder  order)
static

Executes placed order.

Parameters
orderOrder provided by the service via the PlaceTransactionOrder(Storage, Storage, string, string, int, out Guid) handler.

◆ ExecuteAddOrder() [1/8]

static bool Doloro.InvetorySystem.TransactionService.ExecuteAddOrder ( Guid  destinationStorageId,
Item  item,
int  count 
)
static

Instantly attempts to execute a transaction to a storage.

Parameters
destinationStorageIdId of destination storage in StoragesDatabase to items transfer.
itemItem to exchange.
countCount to transfer.
Returns
true in case if order has been executed. false in case if transaction can't be fulfilled.
Exceptions
KeyNotFoundExceptionItem's resource not found.
InvalidCastExceptionResource has no Item component.

◆ ExecuteAddOrder() [2/8]

static bool Doloro.InvetorySystem.TransactionService.ExecuteAddOrder ( Guid  destinationStorageId,
Item  item,
int  count,
string  serviceCode 
)
static

Instantly attempts to execute a transaction to a storage.

Parameters
destinationStorageIdId of destination storage in StoragesDatabase to items transfer.
itemItem to exchange.
countCount to transfer.
serviceCodeTransactionOrder.code value to set.
Returns
true in case if order has been executed. false in case if transaction can't be fulfilled.
Exceptions
KeyNotFoundExceptionItem's resource not found.
InvalidCastExceptionResource has no Item component.

◆ ExecuteAddOrder() [3/8]

static bool Doloro.InvetorySystem.TransactionService.ExecuteAddOrder ( Guid  destinationStorageId,
string  itemBundle,
string  itemCode,
int  count 
)
static

Instantly attempts to execute a transaction to a storage.

Parameters
destinationStorageIdId of destination storage in StoragesDatabase to items transfer.
itemBundleResources bundle related to the item.
itemCodeCode of the item to transfer.
countCount to transfer.
Returns
true in case if order has been executed. false in case if transaction can't be fulfilled.
Exceptions
KeyNotFoundExceptionItem's resource not found.
InvalidCastExceptionResource has no Item component.

◆ ExecuteAddOrder() [4/8]

static bool Doloro.InvetorySystem.TransactionService.ExecuteAddOrder ( Guid  destinationStorageId,
string  itemBundle,
string  itemCode,
int  count,
string  serviceCode 
)
static

Instantly attempts to execute a transaction to a storage.

Parameters
destinationStorageIdId of destination storage in StoragesDatabase to items transfer.
itemBundleResources bundle related to the item.
itemCodeCode of the item to transfer.
countCount to transfer.
serviceCodeTransactionOrder.code value to set.
Returns
true in case if order has been executed. false in case if transaction can't be fulfilled.
Exceptions
KeyNotFoundExceptionItem's resource not found.
InvalidCastExceptionResource has no Item component.

◆ ExecuteAddOrder() [5/8]

static bool Doloro.InvetorySystem.TransactionService.ExecuteAddOrder ( Storage  destination,
Item  item,
int  count 
)
static

Instantly attempts to execute a transaction to a storage.

Parameters
destinationDestination storage to items transfer.
itemItem to exchange.
countCount to transfer.
Returns
true in case if order has been executed. false in case if transaction can't be fulfilled.
Exceptions
KeyNotFoundExceptionItem's resource not found.
InvalidCastExceptionResource has no Item component.

◆ ExecuteAddOrder() [6/8]

static bool Doloro.InvetorySystem.TransactionService.ExecuteAddOrder ( Storage  destination,
Item  item,
int  count,
string  serviceCode 
)
static

Instantly attempts to execute a transaction to a storage.

Parameters
destinationDestination storage to items transfer.
itemItem to exchange.
countCount to transfer.
serviceCodeTransactionOrder.code value to set.
Returns
true in case if order has been executed. false in case if transaction can't be fulfilled.
Exceptions
KeyNotFoundExceptionItem's resource not found.
InvalidCastExceptionResource has no Item component.

◆ ExecuteAddOrder() [7/8]

static bool Doloro.InvetorySystem.TransactionService.ExecuteAddOrder ( Storage  destination,
string  itemBundle,
string  itemCode,
int  count 
)
static

Instantly attempts to execute a transaction to a storage.

Parameters
destinationDestination storage to items transfer.
itemBundleResources bundle related to the item.
itemCodeCode of the item to transfer.
countCount to transfer.
Returns
true in case if order has been executed. false in case if transaction can't be fulfilled.
Exceptions
KeyNotFoundExceptionItem's resource not found.
InvalidCastExceptionResource has no Item component.

◆ ExecuteAddOrder() [8/8]

static bool Doloro.InvetorySystem.TransactionService.ExecuteAddOrder ( Storage  destination,
string  itemBundle,
string  itemCode,
int  count,
string  serviceCode 
)
static

Instantly attempts to execute a transaction to a storage.

Parameters
destinationDestination storage to items transfer.
itemBundleResources bundle related to the item.
itemCodeCode of the item to transfer.
countCount to transfer.
serviceCodeTransactionOrder.code value to set.
Returns
true in case if order has been executed. false in case if transaction can't be fulfilled.
Exceptions
KeyNotFoundExceptionItem's resource not found.
InvalidCastExceptionResource has no Item component.

◆ ExecuteRemoveOrder() [1/8]

static bool Doloro.InvetorySystem.TransactionService.ExecuteRemoveOrder ( Guid  sourceStorageId,
Item  item,
int  count 
)
static

Instantly attempts to remove a items from a storage.

Parameters
sourceStorageIdId of source storage in StoragesDatabase to items transfer.
itemItem to exchange.
countCount to transfer.
Returns
true in case if order has been executed. false in case if transaction can't be fulfilled.
Exceptions
KeyNotFoundExceptionItem's resource not found.
InvalidCastExceptionResource has no Item component.

◆ ExecuteRemoveOrder() [2/8]

static bool Doloro.InvetorySystem.TransactionService.ExecuteRemoveOrder ( Guid  sourceStorageId,
Item  item,
int  count,
string  serviceCode 
)
static

Instantly attempts to remove a items from a storage.

Parameters
sourceStorageIdId of source storage in StoragesDatabase to items transfer.
itemItem to exchange.
countCount to transfer.
serviceCodeTransactionOrder.code value to set.
Returns
true in case if order has been executed. false in case if transaction can't be fulfilled.
Exceptions
KeyNotFoundExceptionItem's resource not found.
InvalidCastExceptionResource has no Item component.

◆ ExecuteRemoveOrder() [3/8]

static bool Doloro.InvetorySystem.TransactionService.ExecuteRemoveOrder ( Guid  sourceStorageId,
string  itemBundle,
string  itemCode,
int  count 
)
static

Instantly attempts to remove a items from a storage.

Parameters
sourceStorageIdId of source storage in StoragesDatabase to items transfer.
itemBundleResources bundle related to the item.
itemCodeCode of the item to transfer.
countCount to transfer.
Returns
true in case if order has been executed. false in case if transaction can't be fulfilled.
Exceptions
KeyNotFoundExceptionItem's resource not found.
InvalidCastExceptionResource has no Item component.

◆ ExecuteRemoveOrder() [4/8]

static bool Doloro.InvetorySystem.TransactionService.ExecuteRemoveOrder ( Guid  sourceStorageId,
string  itemBundle,
string  itemCode,
int  count,
string  serviceCode 
)
static

Instantly attempts to remove a items from a storage.

Parameters
sourceStorageIdId of source storage in StoragesDatabase to items transfer.
itemBundleResources bundle related to the item.
itemCodeCode of the item to transfer.
countCount to transfer.
serviceCodeTransactionOrder.code value to set.
Returns
true in case if order has been executed. false in case if transaction can't be fulfilled.
Exceptions
KeyNotFoundExceptionItem's resource not found.
InvalidCastExceptionResource has no Item component.

◆ ExecuteRemoveOrder() [5/8]

static bool Doloro.InvetorySystem.TransactionService.ExecuteRemoveOrder ( Storage  source,
Item  item,
int  count 
)
static

Instantly attempts to remove a items from a storage.

Parameters
sourceSource of the items to transfer.
itemItem to exchange.
countCount to transfer.
Returns
true in case if order has been executed. false in case if transaction can't be fulfilled.
Exceptions
KeyNotFoundExceptionItem's resource not found.
InvalidCastExceptionResource has no Item component.

◆ ExecuteRemoveOrder() [6/8]

static bool Doloro.InvetorySystem.TransactionService.ExecuteRemoveOrder ( Storage  source,
Item  item,
int  count,
string  serviceCode 
)
static

Instantly attempts to remove a items from a storage.

Parameters
sourceSource of the items to transfer.
itemItem to exchange.
countCount to transfer.
serviceCodeTransactionOrder.code value to set.
Returns
true in case if order has been executed. false in case if transaction can't be fulfilled.
Exceptions
KeyNotFoundExceptionItem's resource not found.
InvalidCastExceptionResource has no Item component.

◆ ExecuteRemoveOrder() [7/8]

static bool Doloro.InvetorySystem.TransactionService.ExecuteRemoveOrder ( Storage  source,
string  itemBundle,
string  itemCode,
int  count 
)
static

Instantly attempts to remove a items from a storage.

Parameters
sourceSource of the items to transfer.
itemBundleResources bundle related to the item.
itemCodeCode of the item to transfer.
countCount to transfer.
Returns
true in case if order has been executed. false in case if transaction can't be fulfilled.
Exceptions
KeyNotFoundExceptionItem's resource not found.
InvalidCastExceptionResource has no Item component.

◆ ExecuteRemoveOrder() [8/8]

static bool Doloro.InvetorySystem.TransactionService.ExecuteRemoveOrder ( Storage  source,
string  itemBundle,
string  itemCode,
int  count,
string  serviceCode 
)
static

Instantly attempts to execute a transaction to a storage.

Parameters
sourceSource of the items to transfer.
itemBundleResources bundle related to the item.
itemCodeCode of the item to transfer.
countCount to transfer.
serviceCodeTransactionOrder.code value to set.
Returns
true in case if order has been executed. false in case if transaction can't be fulfilled.
Exceptions
KeyNotFoundExceptionItem's resource not found.
InvalidCastExceptionResource has no Item component.

◆ FindOrders() [1/3]

static ICollection< TransactionOrder > Doloro.InvetorySystem.TransactionService.FindOrders ( Guid  from,
Guid  to 
)
static

Looking for orders between two storages.

Parameters
fromId of the source storage.
toId of the destination storage.
Returns
Collection of valid orders.

◆ FindOrders() [2/3]

static ICollection< TransactionOrder > Doloro.InvetorySystem.TransactionService.FindOrders ( Guid  from,
Guid  to,
Func< TransactionOrder, bool >  condition 
)
static

Looking for orders between two storages.

Parameters
fromId of the source storage.
toId of the destination storage.
conditionCustom handler that decides is the order valid to search.
Returns
Collection of valid orders.

◆ FindOrders() [3/3]

static Guid[] Doloro.InvetorySystem.TransactionService.FindOrders ( Guid  storageId)
static

Returns array of TransactionOrder.ids related to certain storage.

Parameters
storageIdStoragesDatabase.StorageContainer.id to relatives search.
Returns
Array of ids of TransactionOrders related to the storage.

◆ GetOrder()

static TransactionOrder Doloro.InvetorySystem.TransactionService.GetOrder ( Guid  orderId)
static

Returns TransactionOrder by id if exists.

Parameters
orderIdIf of order to get.
Returns
Instance of order if found. null otherwise.

◆ GetOrdersEnumerator()

static IEnumerator< TransactionOrder > Doloro.InvetorySystem.TransactionService.GetOrdersEnumerator ( )
static

Returns enumerator of entire orders registered at the moment.

Returns
Enumerator instance.

◆ HasOrders()

static bool Doloro.InvetorySystem.TransactionService.HasOrders ( Guid  storageId)
static

Checks is there is any placed and not finalized or expired order related to the certain storage.

Parameters
storageIdStoragesDatabase.StorageContainer.id to check.
Returns
true in case if there is orders to executions. false otherwise.

◆ InstantTransactionOrder() [1/8]

static bool Doloro.InvetorySystem.TransactionService.InstantTransactionOrder ( Guid  sourceStorageId,
Guid  destinationStorageId,
Item  item,
int  count 
)
static

Instantly attempts to execute a transaction order between two storages.

Parameters
sourceStorageIdId of source storage in StoragesDatabase.
destinationStorageIdId of destination storage in StoragesDatabase to items transfer.
itemItem to exchange.
countCount to transfer.
Returns
true in case if order placed. false in case if transaction can't be fulfilled.
Exceptions
KeyNotFoundExceptionItem's resource not found.
InvalidCastExceptionResource has no Item component.

◆ InstantTransactionOrder() [2/8]

static bool Doloro.InvetorySystem.TransactionService.InstantTransactionOrder ( Guid  sourceStorageId,
Guid  destinationStorageId,
Item  item,
int  count,
string  serviceCode 
)
static

Instantly attempts to execute a transaction order between two storages.

Parameters
sourceStorageIdId of source storage in StoragesDatabase.
destinationStorageIdId of destination storage in StoragesDatabase to items transfer.
itemItem to exchange.
countCount to transfer.
serviceCodeTransactionOrder.code value to set.
Returns
true in case if order placed. false in case if transaction can't be fulfilled.
Exceptions
KeyNotFoundExceptionItem's resource not found.
InvalidCastExceptionResource has no Item component.

◆ InstantTransactionOrder() [3/8]

static bool Doloro.InvetorySystem.TransactionService.InstantTransactionOrder ( Guid  sourceStorageId,
Guid  destinationStorageId,
string  itemBundle,
string  itemCode,
int  count 
)
static

Instantly attempts to execute a transaction order between two storages.

Parameters
sourceStorageIdId of source storage in StoragesDatabase.
destinationStorageIdId of destination storage in StoragesDatabase to items transfer.
itemBundleResources bundle related to the item.
itemCodeCode of the item to transfer.
countCount to transfer.
Returns
true in case if order has been executed. false in case if transaction can't be fulfilled.
Exceptions
KeyNotFoundExceptionItem's resource not found.
InvalidCastExceptionResource has no Item component.

◆ InstantTransactionOrder() [4/8]

static bool Doloro.InvetorySystem.TransactionService.InstantTransactionOrder ( Guid  sourceStorageId,
Guid  destinationStorageId,
string  itemBundle,
string  itemCode,
int  count,
string  serviceCode 
)
static

Instantly attempts to execute a transaction order between two storages.

Parameters
sourceStorageIdId of source storage in StoragesDatabase.
destinationStorageIdId of destination storage in StoragesDatabase to items transfer.
itemBundleResources bundle related to the item.
itemCodeCode of the item to transfer.
countCount to transfer.
serviceCodeTransactionOrder.code value to set.
Returns
true in case if order has been executed. false in case if transaction can't be fulfilled.
Exceptions
KeyNotFoundExceptionItem's resource not found.
InvalidCastExceptionResource has no Item component.

◆ InstantTransactionOrder() [5/8]

static bool Doloro.InvetorySystem.TransactionService.InstantTransactionOrder ( Storage  source,
Storage  destination,
Item  item,
int  count 
)
static

Instantly attempts to execute a transaction order between two storages.

Parameters
sourceSource of the items to transfer.
destinationDestination storage to items transfer.
itemItem to exchange.
countCount to transfer.
Returns
true in case if order placed. false in case if transaction can't be fulfilled.
Exceptions
KeyNotFoundExceptionItem's resource not found.
InvalidCastExceptionResource has no Item component.

◆ InstantTransactionOrder() [6/8]

static bool Doloro.InvetorySystem.TransactionService.InstantTransactionOrder ( Storage  source,
Storage  destination,
Item  item,
int  count,
string  serviceCode 
)
static

Instantly attempts to execute a transaction order between two storages.

Parameters
sourceSource of the items to transfer.
destinationDestination storage to items transfer.
itemItem to exchange.
countCount to transfer.
serviceCodeTransactionOrder.code value to set.
Returns
true in case if order placed. false in case if transaction can't be fulfilled.
Exceptions
KeyNotFoundExceptionItem's resource not found.
InvalidCastExceptionResource has no Item component.

◆ InstantTransactionOrder() [7/8]

static bool Doloro.InvetorySystem.TransactionService.InstantTransactionOrder ( Storage  source,
Storage  destination,
string  itemBundle,
string  itemCode,
int  count 
)
static

Instantly attempts to execute a transaction order between two storages.

Parameters
sourceSource of the items to transfer.
destinationDestination storage to items transfer.
itemBundleResources bundle related to the item.
itemCodeCode of the item to transfer.
countCount to transfer.
Returns
true in case if order placed. false in case if transaction can't be fulfilled.
Exceptions
KeyNotFoundExceptionItem's resource not found.
InvalidCastExceptionResource has no Item component.

◆ InstantTransactionOrder() [8/8]

static bool Doloro.InvetorySystem.TransactionService.InstantTransactionOrder ( Storage  source,
Storage  destination,
string  itemBundle,
string  itemCode,
int  count,
string  serviceCode 
)
static

Instantly attempts to execute a transaction order between two storages.

Parameters
sourceSource of the items to transfer.
destinationDestination storage to items transfer.
itemBundleResources bundle related to the item.
itemCodeCode of the item to transfer.
countCount to transfer.
serviceCodeTransactionOrder.code value to set.
Returns
true in case if order placed. false in case if transaction can't be fulfilled.
Exceptions
KeyNotFoundExceptionItem's resource not found.
InvalidCastExceptionResource has no Item component.

◆ PlaceTransactionOrder() [1/8]

static bool Doloro.InvetorySystem.TransactionService.PlaceTransactionOrder ( Guid  sourceStorageId,
Guid  destinationStorageId,
Item  item,
int  count,
out Guid  orderId 
)
static

Placing transfer order to the system reserving the resource but not confirms it.

Parameters
sourceStorageIdId of source storage in StoragesDatabase.
destinationStorageIdId of destination storage in StoragesDatabase to items transfer.
itemItem to exchange
countCount to transfer.
orderIdId of order registered at the service.
Returns
true in case if order placed. false in case if transaction can't be fulfilled.
Exceptions
KeyNotFoundExceptionItem's resource not found.
InvalidCastExceptionResource has no Item component.

◆ PlaceTransactionOrder() [2/8]

static bool Doloro.InvetorySystem.TransactionService.PlaceTransactionOrder ( Guid  sourceStorageId,
Guid  destinationStorageId,
Item  item,
int  count,
string  serviceCode,
out Guid  orderId 
)
static

Placing transfer order to the system reserving the resource but not confirms it.

Parameters
sourceStorageIdId of source storage in StoragesDatabase.
destinationStorageIdId of destination storage in StoragesDatabase to items transfer.
itemItem to exchange
countCount to transfer.
serviceCodeTransactionOrder.code value to set.
orderIdId of order registered at the service.
Returns
true in case if order placed. false in case if transaction can't be fulfilled.
Exceptions
KeyNotFoundExceptionItem's resource not found.
InvalidCastExceptionResource has no Item component.

◆ PlaceTransactionOrder() [3/8]

static bool Doloro.InvetorySystem.TransactionService.PlaceTransactionOrder ( Guid  sourceStorageId,
Guid  destinationStorageId,
string  itemBundle,
string  itemCode,
int  count,
out Guid  orderId 
)
static

Placing transfer order to the system reserving the resource but not confirms it.

Parameters
sourceStorageIdId of source storage in StoragesDatabase.
destinationStorageIdId of destination storage in StoragesDatabase to items transfer.
itemBundleResources bundle related to the item.
itemCodeCode of the item to transfer.
countCount to transfer.
orderIdId of order registered at the service.
Returns
true in case if order placed. false in case if transaction can't be fulfilled.
Exceptions
KeyNotFoundExceptionItem's resource not found.
InvalidCastExceptionResource has no Item component.

◆ PlaceTransactionOrder() [4/8]

static bool Doloro.InvetorySystem.TransactionService.PlaceTransactionOrder ( Guid  sourceStorageId,
Guid  destinationStorageId,
string  itemBundle,
string  itemCode,
int  count,
string  serviceCode,
out Guid  orderId 
)
static

Placing transfer order to the system reserving the resource but not confirms it.

Parameters
sourceStorageIdId of source storage in StoragesDatabase.
destinationStorageIdId of destination storage in StoragesDatabase to items transfer.
itemBundleResources bundle related to the item.
itemCodeCode of the item to transfer.
countCount to transfer.
serviceCodeTransactionOrder.code value to set.
orderIdId of order registered at the service.
Returns
true in case if order placed. false in case if transaction can't be fulfilled.
Exceptions
KeyNotFoundExceptionItem's resource not found.
InvalidCastExceptionResource has no Item component.

◆ PlaceTransactionOrder() [5/8]

static bool Doloro.InvetorySystem.TransactionService.PlaceTransactionOrder ( Storage  source,
Storage  destination,
Item  item,
int  count,
out Guid  orderId 
)
static

Placing transfer order to the system reserving the resource but not confirms it.

Parameters
sourceSource of the items to transfer.
destinationDestination storage to items transfer.
itemItem to exchange.
countCount to transfer.
orderIdId of order registered at the service.
Returns
true in case if order placed. false in case if transaction can't be fulfilled.
Exceptions
KeyNotFoundExceptionItem's resource not found.
InvalidCastExceptionResource has no Item component.

◆ PlaceTransactionOrder() [6/8]

static bool Doloro.InvetorySystem.TransactionService.PlaceTransactionOrder ( Storage  source,
Storage  destination,
Item  item,
int  count,
string  serviceCode,
out Guid  orderId 
)
static

Placing transfer order to the system reserving the resource but not confirms it.

Parameters
sourceSource of the items to transfer.
destinationDestination storage to items transfer.
itemItem to exchange.
countCount to transfer.
serviceCodeTransactionOrder.code value to set.
orderIdId of order registered at the service.
Returns
true in case if order placed. false in case if transaction can't be fulfilled.
Exceptions
KeyNotFoundExceptionItem's resource not found.
InvalidCastExceptionResource has no Item component.

◆ PlaceTransactionOrder() [7/8]

static bool Doloro.InvetorySystem.TransactionService.PlaceTransactionOrder ( Storage  source,
Storage  destination,
string  itemBundle,
string  itemCode,
int  count,
out Guid  orderId 
)
static

Placing transfer order to the system reserving the resource but not confirms it.

Parameters
sourceSource of the items to transfer.
destinationDestination storage to items transfer.
itemBundleResources bundle related to the item.
itemCodeCode of the item to transfer.
countCount to transfer.
orderIdId of order registered at the service.
Returns
true in case if order placed. false in case if transaction can't be fulfilled.
Exceptions
KeyNotFoundExceptionItem's resource not found.
InvalidCastExceptionResource has no Item component.

◆ PlaceTransactionOrder() [8/8]

static bool Doloro.InvetorySystem.TransactionService.PlaceTransactionOrder ( Storage  source,
Storage  destination,
string  itemBundle,
string  itemCode,
int  count,
string  serviceCode,
out Guid  orderId 
)
static

Placing transfer order to the system reserving the resource but not confirms it.

Parameters
sourceSource of the items to transfer.
destinationDestination storage to items transfer.
itemBundleResources bundle related to the item.
itemCodeCode of the item to transfer.
countCount to transfer.
serviceCodeTransactionOrder.code value to set.
orderIdId of order registered at the service.
Returns
true in case if order placed. false in case if transaction can't be fulfilled.
Exceptions
KeyNotFoundExceptionItem's resource not found.
InvalidCastExceptionResource has no Item component.

The documentation for this class was generated from the following files: