-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GITBOOK-31: change request with no subject merged in GitBook
- Loading branch information
1 parent
101f0c5
commit c4aa40e
Showing
66 changed files
with
416 additions
and
200 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Addons | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
--- | ||
description: A service which handles storing of the Basket in the database | ||
--- | ||
|
||
# Database Service | ||
|
||
{% hint style="info" %} | ||
This feature requires a paid license | ||
{% endhint %} | ||
|
||
The database service is what handles the insertion, updating, and clearing of the UmbCheckout Basket within the database. | ||
|
||
You can access the database service by injecting `IDatabaseService` which can be found within the namespace `UmbCheckout.Core.Addons.Interfaces` | ||
|
||
#### UpdateBasket | ||
|
||
Updates the stored Basket | ||
|
||
Parameters: | ||
|
||
| Name | Detail | | ||
| --------- | ----------------------------------------------------------------------- | | ||
| sessionId | The session to retrieve the [Basket](../object-reference/basket.md) for | | ||
| basket | The [Basket](../object-reference/basket.md) to be stored | | ||
|
||
```csharp | ||
Task<Basket> UpdateBasket(string sessionId, Basket basket); | ||
``` | ||
|
||
#### DeleteBasket | ||
|
||
Deleted the stored Basket | ||
|
||
Parameters: | ||
|
||
| Name | Detail | | ||
| --------- | --------------------------------------------------------------------- | | ||
| sessionId | The session to delete the [Basket](../object-reference/basket.md) for | | ||
|
||
```csharp | ||
Task DeleteBasket(string sessionId); | ||
``` | ||
|
||
#### DeleteBaskets | ||
|
||
Deleted all of the stored Baskets older than the specified days | ||
|
||
Parameters: | ||
|
||
| Name | Detail | | ||
| -------------- | ----------------------- | | ||
| expiryDateTime | The days to delete from | | ||
|
||
```csharp | ||
Task DeleteBaskets(DateTime expiryDateTime); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,23 @@ | ||
# Database Service | ||
--- | ||
description: A service which handles storing of the Basket in the database | ||
--- | ||
|
||
{% hint style="info" %} | ||
This feature requires a paid license | ||
{% endhint %} | ||
# Database Service | ||
|
||
The database service is what and handles the insertion, retrieval, updating and clearing of the UmbCheckout Basket within the database. | ||
The database service is what handles the retrieval of the UmbCheckout Basket within the database. | ||
|
||
You can access the database service by injecting `IDatabaseService` which can be found within the namespace`UmbCheckout.Core.Interfaces` | ||
|
||
#### GetBasket | ||
|
||
The gets the stored Basket | ||
|
||
```csharp | ||
Task<Basket?> GetBasket(string sessionId); | ||
``` | ||
Parameters: | ||
|
||
#### UpdateBasket | ||
|
||
Updates the stored Basket | ||
| Name | Detail | | ||
| --------- | -------------------------------------------------------------------- | | ||
| sessionId | The session to retrieve the [Basket](object-reference/basket.md) for | | ||
|
||
```csharp | ||
Task<Basket> UpdateBasket(string sessionId, Basket basket); | ||
``` | ||
|
||
#### DeleteBasket | ||
|
||
Deleted the stored Basket | ||
|
||
```csharp | ||
Task DeleteBasket(string sessionId); | ||
``` | ||
|
||
#### DeleteBaskets | ||
|
||
Deleted all of the stored Baskets older than the specified days | ||
|
||
```csharp | ||
Task DeleteBaskets(DateTime expiryDateTime); | ||
Task<Basket?> GetBasket(string sessionId); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.