diff --git a/14/umbraco-commerce/.gitbook.yaml b/14/umbraco-commerce/.gitbook.yaml new file mode 100644 index 00000000000..2993b01c84b --- /dev/null +++ b/14/umbraco-commerce/.gitbook.yaml @@ -0,0 +1,14 @@ +root: ./ + +​structure: + readme: README.md + summary: SUMMARY.md + +redirects: +getting-started/installation/README: installation/install.md +getting-started/licensing-model: installation/the-licensing-model.md +getting-started/upgrading/README: upgrading/upgrade.md +getting-started/upgrading/version-specific-upgrades: upgrading/version-specific-upgrades.md +how-to-guides/migrate-from-vendr-to-umbraco-commerce/migrate-custom-payment-providers: upgrading/migrate-from-vendr-to-umbraco-commerce/migrate-custom-payment-providers.md +how-to-guides/migrate-from-vendr-to-umbraco-commerce/migrate-umbraco-commerce-checkout: upgrading/migrate-from-vendr-to-umbraco-commerce/migrate-umbraco-commerce-checkout.md +how-to-guides/migrate-from-vendr-to-umbraco-commerce/README: upgrading/migrate-from-vendr-to-umbraco-commerce/README.md diff --git a/14/umbraco-commerce/.gitbook/assets/IMG_0506.png b/14/umbraco-commerce/.gitbook/assets/IMG_0506.png new file mode 100644 index 00000000000..90dd2f6f9f0 Binary files /dev/null and b/14/umbraco-commerce/.gitbook/assets/IMG_0506.png differ diff --git a/14/umbraco-commerce/.gitbook/assets/IMG_0507.png b/14/umbraco-commerce/.gitbook/assets/IMG_0507.png new file mode 100644 index 00000000000..d283b70956d Binary files /dev/null and b/14/umbraco-commerce/.gitbook/assets/IMG_0507.png differ diff --git a/14/umbraco-commerce/.gitbook/assets/Umbraco_Brand_Guidelines_2020_28_Illustration blocks.png b/14/umbraco-commerce/.gitbook/assets/Umbraco_Brand_Guidelines_2020_28_Illustration blocks.png new file mode 100644 index 00000000000..a95c5528737 Binary files /dev/null and b/14/umbraco-commerce/.gitbook/assets/Umbraco_Brand_Guidelines_2020_28_Illustration blocks.png differ diff --git a/14/umbraco-commerce/.gitbook/assets/Umbraco_Commerce_Blue.png b/14/umbraco-commerce/.gitbook/assets/Umbraco_Commerce_Blue.png new file mode 100644 index 00000000000..5ff60ec073f Binary files /dev/null and b/14/umbraco-commerce/.gitbook/assets/Umbraco_Commerce_Blue.png differ diff --git a/14/umbraco-commerce/.gitbook/assets/commerce-icon.png b/14/umbraco-commerce/.gitbook/assets/commerce-icon.png new file mode 100644 index 00000000000..b19e49a7b69 Binary files /dev/null and b/14/umbraco-commerce/.gitbook/assets/commerce-icon.png differ diff --git a/14/umbraco-commerce/.gitbook/assets/create_variants_attributes.png b/14/umbraco-commerce/.gitbook/assets/create_variants_attributes.png new file mode 100644 index 00000000000..579d716c727 Binary files /dev/null and b/14/umbraco-commerce/.gitbook/assets/create_variants_attributes.png differ diff --git a/14/umbraco-commerce/.gitbook/assets/create_variants_presets.png b/14/umbraco-commerce/.gitbook/assets/create_variants_presets.png new file mode 100644 index 00000000000..14d78e85c9e Binary files /dev/null and b/14/umbraco-commerce/.gitbook/assets/create_variants_presets.png differ diff --git a/14/umbraco-commerce/.gitbook/assets/edit_variant.png b/14/umbraco-commerce/.gitbook/assets/edit_variant.png new file mode 100644 index 00000000000..103ef2f30a0 Binary files /dev/null and b/14/umbraco-commerce/.gitbook/assets/edit_variant.png differ diff --git a/14/umbraco-commerce/.gitbook/assets/product_attribute_preset_values.png b/14/umbraco-commerce/.gitbook/assets/product_attribute_preset_values.png new file mode 100644 index 00000000000..b16e815dede Binary files /dev/null and b/14/umbraco-commerce/.gitbook/assets/product_attribute_preset_values.png differ diff --git a/14/umbraco-commerce/.gitbook/assets/product_attribute_presets.png b/14/umbraco-commerce/.gitbook/assets/product_attribute_presets.png new file mode 100644 index 00000000000..3529d31029d Binary files /dev/null and b/14/umbraco-commerce/.gitbook/assets/product_attribute_presets.png differ diff --git a/14/umbraco-commerce/.gitbook/assets/product_attribute_values.png b/14/umbraco-commerce/.gitbook/assets/product_attribute_values.png new file mode 100644 index 00000000000..909193f5fa3 Binary files /dev/null and b/14/umbraco-commerce/.gitbook/assets/product_attribute_values.png differ diff --git a/14/umbraco-commerce/.gitbook/assets/product_attributes.png b/14/umbraco-commerce/.gitbook/assets/product_attributes.png new file mode 100644 index 00000000000..7c51cb1006e Binary files /dev/null and b/14/umbraco-commerce/.gitbook/assets/product_attributes.png differ diff --git a/14/umbraco-commerce/.gitbook/assets/storefront_swagger.json b/14/umbraco-commerce/.gitbook/assets/storefront_swagger.json new file mode 100644 index 00000000000..9f10a21f5fb --- /dev/null +++ b/14/umbraco-commerce/.gitbook/assets/storefront_swagger.json @@ -0,0 +1,9070 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Umbraco Commerce Storefront API", + "description": "Describes the Umbraco Commerce Storefront API, the front end headless API for Umbraco Commerce cart management and checkout processing.", + "version": "Latest" + }, + "paths": { + "/umbraco/commerce/storefront/api/v1/checkout/{orderId}/pay/{token}": { + "get": { + "tags": [ + "Checkout (Hosted)" + ], + "summary": "Starts the hosted payment process", + "description": "Redirects to the given Orders selected payment gateway for payment processing.

If in `Framed` mode should be redirected to as normal, or if in `Framed` mode, the endpoint URL should be launched in a WebView/iframe and developers should watch for changes in the URL to detect the outcome of the transaction. Final endpoint URLs will be one of `{endpointUrl}/completed`, `{endpointUrl}/canceled` or `{endpointUrl}/errored`. If launched in an iframe from a web context, you can also register a `message` event handler to get notified of the final status. Messages will be in the format `UC:{orderId}:{token}:{status}`", + "parameters": [ + { + "name": "orderId", + "in": "path", + "description": "The ID of the order being checked out", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "a3140924-7f3a-4625-a378-81f05b6b9166" + }, + { + "name": "token", + "in": "path", + "description": "The checkout token for the checkout session", + "required": true, + "schema": { + "type": "string" + }, + "example": "ca6f5d62-32de-4849-bbf4-643d6f945a8d" + } + ], + "responses": { + "200": { + "description": "Success" + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + } + } + } + }, + "/umbraco/commerce/storefront/api/v1/checkout/{orderId}/token": { + "get": { + "tags": [ + "Checkout (Hosted)" + ], + "summary": "Initialize a hosted checkout flow", + "description": "Initialization prepares the order for checkout and produces a token to be passed to the `/pay` endpoint.", + "parameters": [ + { + "name": "Store", + "in": "header", + "description": "The ID or the alias of the store", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "b78a4683-e2f2-475d-b924-a52a8b302246" + }, + "Entity Alias": { + "value": "blendid" + } + } + }, + { + "name": "orderId", + "in": "path", + "description": "The ID of the order being checked out", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "1ca12483-eec6-414f-bfcc-2dd2430cac4c" + }, + { + "name": "Origin", + "in": "header", + "description": "The base URL the checkout request originates from. Used on the checkout status pages to securly post messages back to a parent window about the checkout status.", + "schema": { + "type": "string" + }, + "example": "https://www.example.com" + }, + { + "name": "Mode", + "in": "header", + "description": "Sets the mode the checkout should run in, either `Redirect` (default) which follows the regular full redirect approach and after payment returns to the configured URL's in the payment provider settings, or `Framed` where it is assumed the checkout will be opened in a WebView/iframe and the status of the container monitored.", + "schema": { + "type": "string" + }, + "examples": { + "Redirect": { + "value": "Redirect" + }, + "Framed": { + "value": "Framed" + } + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CheckoutTokenResponseDto" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + } + } + } + }, + "/umbraco/commerce/storefront/api/v1/checkout/{orderId}/confirm": { + "post": { + "tags": [ + "Checkout (Inline)" + ], + "summary": "Confirms an inline checkout flow", + "description": "Updates the given Orders transaction info with the supplied details and transitions the order from a `open` to a `finalized` state", + "parameters": [ + { + "name": "Api-Key", + "in": "header", + "description": "API key specified through configuration to authorize access to the API.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Store", + "in": "header", + "description": "The ID or the alias of the store", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "5883cc2a-34d1-493f-aee7-5112210f7345" + }, + "Entity Alias": { + "value": "blendid" + } + } + }, + { + "name": "orderId", + "in": "path", + "description": "The ID of the order being checked out", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "087492f4-4ff2-41fd-aebd-df1dcd198c3c" + }, + { + "name": "expand", + "in": "query", + "description": "Defines the properties that should be expanded in the response", + "schema": { + "type": "string" + }, + "examples": { + "Expand none": { + "value": " " + }, + "Expand prices": { + "value": "$price" + }, + "Expand specific property": { + "value": "currency" + }, + "Expand nested properties": { + "value": "paymentmethod[taxclass]" + } + } + }, + { + "name": "fields", + "in": "query", + "description": "Limit the properties returned in the response", + "schema": { + "type": "string" + }, + "examples": { + "Return all fields": { + "value": " " + }, + "Return single field": { + "value": "totalprice" + }, + "Return multiple fields": { + "value": "orderlines,totalprice" + }, + "Return nested fields": { + "value": "orderlines[sku,description]" + } + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CheckoutConfirmRequestDto" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CheckoutConfirmResponseDto" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + } + } + } + }, + "/umbraco/commerce/storefront/api/v1/checkout/{orderId}/initialize": { + "get": { + "tags": [ + "Checkout (Inline)" + ], + "summary": "Initialize an inline checkout flow", + "description": "With inline checkout flow it's the developers responsibility to capture the transaction and confirm the payment via the `/confirm` endpoint. The selected payment methods setting are returned to ease payment gateway configuation, along with details of any meta data the payment method expects to be captured.", + "parameters": [ + { + "name": "Api-Key", + "in": "header", + "description": "API key specified through configuration to authorize access to the API.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Store", + "in": "header", + "description": "The ID or the alias of the store", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "85087853-2a64-4aa9-8591-d76fab9adfd2" + }, + "Entity Alias": { + "value": "blendid" + } + } + }, + { + "name": "orderId", + "in": "path", + "description": "The ID of the order being checked out", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "b69092b3-4609-4640-b283-b76f44dd8dd2" + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CheckoutInitializeResponseDto" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + } + } + } + }, + "/umbraco/delivery/api/v1/content/item/{id}/variant": { + "get": { + "tags": [ + "Content" + ], + "summary": "Gets a multi-variants content", + "description": "By default the variants property editor from Umbraco Commerce will only return attribute information with a product node to save on excessive payload sizes. The variants endpoint can be called to dynamically fetch an attibute combinations content only when it is requested.", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "The ID of the content item that has an Umbraco Commerce variants property editor defined on it", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "3658dedd-98e1-4d3f-b7a5-9bd37144a16f" + }, + { + "name": "attribute", + "in": "query", + "description": "The attribute combination of the variant to return", + "required": true, + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "example": [ + "key1:value1", + "key2:value2" + ] + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProductVariantItemDto" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + } + } + } + }, + "/umbraco/commerce/storefront/api/v1/countries": { + "get": { + "tags": [ + "Country" + ], + "summary": "Gets all the Countries in a Store", + "parameters": [ + { + "name": "Api-Key", + "in": "header", + "description": "API key specified through configuration to authorize access to the API.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Store", + "in": "header", + "description": "The ID or the alias of the store", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "aaaee3a8-262b-468a-9850-cd3070f96276" + }, + "Entity Alias": { + "value": "blendid" + } + } + }, + { + "name": "Current-Order", + "in": "header", + "description": "The ID of the current order associated with the current session", + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "3939a415-ce07-462b-ae10-7e965e2e8e5c" + }, + { + "name": "Billing-Country", + "in": "header", + "description": "The ID or alias of the session default billing country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "b8fa37cd-d163-43dc-bf66-c0da215a4434" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Billing-Region", + "in": "header", + "description": "The ID or alias of the session default billing region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "2afb85ce-71c5-4463-9433-d49ae13a2ed6" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Shipping-Country", + "in": "header", + "description": "The ID or alias of the session default shipping country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "9037c567-8494-462f-aca9-cafd14b2b8f3" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Shipping-Region", + "in": "header", + "description": "The ID or alias of the session default shipping region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "c0ffff68-4173-4d97-ad29-99634f67fb97" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Tax-Class", + "in": "header", + "description": "The ID or alias of the session default tax class", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "46009e99-ef4e-4a28-8c8b-81f1a048244e" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Currency", + "in": "header", + "description": "The ID or alias of the session currency", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "a9e6b7d6-6259-4d5d-816c-4cb6ebe06295" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Accept-Language", + "in": "header", + "description": "The ISO culture code of the current session culture", + "schema": { + "type": "string" + }, + "example": "en-US" + }, + { + "name": "Customer-Reference", + "in": "header", + "description": "The unique reference for the customer associated with the current session", + "schema": { + "type": "string" + }, + "example": "cust_b1a82255-000f-4954-9f04-393258d7b5f4" + }, + { + "name": "filter", + "in": "query", + "description": "Filter the returned list of items", + "schema": { + "type": "string" + }, + "examples": { + "Return all results": { + "value": " " + }, + "Return items allowed in a given country": { + "value": "allowedInCountry:GB" + } + } + }, + { + "name": "expand", + "in": "query", + "description": "Defines the properties that should be expanded in the response", + "schema": { + "type": "string" + }, + "examples": { + "Expand none": { + "value": " " + }, + "Expand prices": { + "value": "$price" + }, + "Expand specific property": { + "value": "currency" + }, + "Expand nested properties": { + "value": "paymentmethod[taxclass]" + } + } + }, + { + "name": "fields", + "in": "query", + "description": "Limit the properties returned in the response", + "schema": { + "type": "string" + }, + "examples": { + "Return all fields": { + "value": " " + }, + "Return single field": { + "value": "totalprice" + }, + "Return multiple fields": { + "value": "orderlines,totalprice" + }, + "Return nested fields": { + "value": "orderlines[sku,description]" + } + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CountryResponseDto" + } + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + } + } + } + }, + "/umbraco/commerce/storefront/api/v1/country/{countryIdOrAlias}/region/{regionIdOrAlias}/paymentmethods": { + "get": { + "tags": [ + "Country" + ], + "summary": "Gets the Payment Methods allowed in a Region", + "parameters": [ + { + "name": "Api-Key", + "in": "header", + "description": "API key specified through configuration to authorize access to the API.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Store", + "in": "header", + "description": "The ID or the alias of the store", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "87aff01f-8d57-4198-a7e1-b951f2f0b637" + }, + "Entity Alias": { + "value": "blendid" + } + } + }, + { + "name": "Current-Order", + "in": "header", + "description": "The ID of the current order associated with the current session", + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "4cb7359e-aabd-474b-af9f-3842f141b46e" + }, + { + "name": "Billing-Country", + "in": "header", + "description": "The ID or alias of the session default billing country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "114305df-42cb-4b30-ad05-0609f035dadb" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Billing-Region", + "in": "header", + "description": "The ID or alias of the session default billing region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "624c58a0-e840-4510-808c-8c17126e841d" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Shipping-Country", + "in": "header", + "description": "The ID or alias of the session default shipping country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "5a98bf85-c567-493e-ad2d-0c2a42e93729" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Shipping-Region", + "in": "header", + "description": "The ID or alias of the session default shipping region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "c537ad6d-c21b-46d9-a0f9-d3af308fb3e1" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Tax-Class", + "in": "header", + "description": "The ID or alias of the session default tax class", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "37da8bae-7033-4277-9950-e413d8558a54" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Currency", + "in": "header", + "description": "The ID or alias of the session currency", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "c53b28d6-8cca-402e-9dec-5c7fd6683d8c" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Accept-Language", + "in": "header", + "description": "The ISO culture code of the current session culture", + "schema": { + "type": "string" + }, + "example": "en-US" + }, + { + "name": "Customer-Reference", + "in": "header", + "description": "The unique reference for the customer associated with the current session", + "schema": { + "type": "string" + }, + "example": "cust_83a3d6aa-f5f8-4abb-827d-82286bdb6373" + }, + { + "name": "countryIdOrAlias", + "in": "path", + "description": "The ID or the alias of the country resource", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "aaba32bf-030a-4698-9cc9-4331dcba8fa2" + }, + "Entity Alias": { + "value": "alias" + } + } + }, + { + "name": "regionIdOrAlias", + "in": "path", + "description": "The ID or the alias of the region resource", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "b3ea7224-dd02-4d20-8dc4-98704474751b" + }, + "Entity Alias": { + "value": "alias" + } + } + }, + { + "name": "expand", + "in": "query", + "description": "Defines the properties that should be expanded in the response", + "schema": { + "type": "string" + }, + "examples": { + "Expand none": { + "value": " " + }, + "Expand prices": { + "value": "$price" + }, + "Expand specific property": { + "value": "currency" + }, + "Expand nested properties": { + "value": "paymentmethod[taxclass]" + } + } + }, + { + "name": "fields", + "in": "query", + "description": "Limit the properties returned in the response", + "schema": { + "type": "string" + }, + "examples": { + "Return all fields": { + "value": " " + }, + "Return single field": { + "value": "totalprice" + }, + "Return multiple fields": { + "value": "orderlines,totalprice" + }, + "Return nested fields": { + "value": "orderlines[sku,description]" + } + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PaymentMethodResponseDto" + } + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + } + } + } + }, + "/umbraco/commerce/storefront/api/v1/country/{countryIdOrAlias}/region/{regionIdOrAlias}/shippingmethods": { + "get": { + "tags": [ + "Country" + ], + "summary": "Gets the Shipping Methods allowed in a Region", + "parameters": [ + { + "name": "Api-Key", + "in": "header", + "description": "API key specified through configuration to authorize access to the API.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Store", + "in": "header", + "description": "The ID or the alias of the store", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "4de1f409-1e95-4955-9339-032646ea1b03" + }, + "Entity Alias": { + "value": "blendid" + } + } + }, + { + "name": "Current-Order", + "in": "header", + "description": "The ID of the current order associated with the current session", + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "92150ab9-0c6e-4133-8117-91ddbba71057" + }, + { + "name": "Billing-Country", + "in": "header", + "description": "The ID or alias of the session default billing country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "026a73c1-92e6-4328-a12b-456244721209" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Billing-Region", + "in": "header", + "description": "The ID or alias of the session default billing region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "f7ac8f88-7793-49a8-9b2f-e2675ec0b363" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Shipping-Country", + "in": "header", + "description": "The ID or alias of the session default shipping country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "090721b8-14c1-4b85-b6fd-17e6232ba537" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Shipping-Region", + "in": "header", + "description": "The ID or alias of the session default shipping region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "139b8d9d-9dee-46f1-9482-20f52b07aff2" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Tax-Class", + "in": "header", + "description": "The ID or alias of the session default tax class", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "77657d45-7470-4442-8f6b-5c8e5b2b6e18" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Currency", + "in": "header", + "description": "The ID or alias of the session currency", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "df4703de-e9cd-4396-bcaa-63f274f94d95" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Accept-Language", + "in": "header", + "description": "The ISO culture code of the current session culture", + "schema": { + "type": "string" + }, + "example": "en-US" + }, + { + "name": "Customer-Reference", + "in": "header", + "description": "The unique reference for the customer associated with the current session", + "schema": { + "type": "string" + }, + "example": "cust_d628ebd1-829c-4dab-bc14-77ba67caa22a" + }, + { + "name": "countryIdOrAlias", + "in": "path", + "description": "The ID or the alias of the country resource", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "f1ba917a-2065-432d-a902-41ecd349a088" + }, + "Entity Alias": { + "value": "alias" + } + } + }, + { + "name": "regionIdOrAlias", + "in": "path", + "description": "The ID or the alias of the region resource", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "740debc9-d547-492d-abab-ec9ade822a37" + }, + "Entity Alias": { + "value": "alias" + } + } + }, + { + "name": "expand", + "in": "query", + "description": "Defines the properties that should be expanded in the response", + "schema": { + "type": "string" + }, + "examples": { + "Expand none": { + "value": " " + }, + "Expand prices": { + "value": "$price" + }, + "Expand specific property": { + "value": "currency" + }, + "Expand nested properties": { + "value": "paymentmethod[taxclass]" + } + } + }, + { + "name": "fields", + "in": "query", + "description": "Limit the properties returned in the response", + "schema": { + "type": "string" + }, + "examples": { + "Return all fields": { + "value": " " + }, + "Return single field": { + "value": "totalprice" + }, + "Return multiple fields": { + "value": "orderlines,totalprice" + }, + "Return nested fields": { + "value": "orderlines[sku,description]" + } + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ShippingMethodResponseDto" + } + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + } + } + } + }, + "/umbraco/commerce/storefront/api/v1/country/{idOrAlias}": { + "get": { + "tags": [ + "Country" + ], + "summary": "Gets a Country by ID or Alias", + "parameters": [ + { + "name": "Api-Key", + "in": "header", + "description": "API key specified through configuration to authorize access to the API.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Store", + "in": "header", + "description": "The ID or the alias of the store", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "39dd640b-fe70-45b7-94fc-bfa3d01785df" + }, + "Entity Alias": { + "value": "blendid" + } + } + }, + { + "name": "Current-Order", + "in": "header", + "description": "The ID of the current order associated with the current session", + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "5f6f4cf6-8a75-464c-9f91-2956b470058e" + }, + { + "name": "Billing-Country", + "in": "header", + "description": "The ID or alias of the session default billing country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "1caff81a-a59b-45af-9879-7ba5871cb536" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Billing-Region", + "in": "header", + "description": "The ID or alias of the session default billing region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "8fe3ad9f-eead-4e1f-8556-52b590917cdd" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Shipping-Country", + "in": "header", + "description": "The ID or alias of the session default shipping country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "8007ae4b-8a48-477c-beec-11577ce6bd9e" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Shipping-Region", + "in": "header", + "description": "The ID or alias of the session default shipping region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "374d22a3-501c-47f4-bcc3-d22addaccabe" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Tax-Class", + "in": "header", + "description": "The ID or alias of the session default tax class", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "0c0b0b74-ea44-40e0-9894-c75b98968eb3" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Currency", + "in": "header", + "description": "The ID or alias of the session currency", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "36ef13cc-b9db-49b8-a5d1-2e26afebd456" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Accept-Language", + "in": "header", + "description": "The ISO culture code of the current session culture", + "schema": { + "type": "string" + }, + "example": "en-US" + }, + { + "name": "Customer-Reference", + "in": "header", + "description": "The unique reference for the customer associated with the current session", + "schema": { + "type": "string" + }, + "example": "cust_72224c93-8b0d-4e60-bb6f-e8f4923422d0" + }, + { + "name": "idOrAlias", + "in": "path", + "description": "The ID or the alias of the given resource", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "7540acb8-4650-46d2-9ae9-988d611a4da2" + }, + "Entity Alias": { + "value": "alias" + } + } + }, + { + "name": "expand", + "in": "query", + "description": "Defines the properties that should be expanded in the response", + "schema": { + "type": "string" + }, + "examples": { + "Expand none": { + "value": " " + }, + "Expand prices": { + "value": "$price" + }, + "Expand specific property": { + "value": "currency" + }, + "Expand nested properties": { + "value": "paymentmethod[taxclass]" + } + } + }, + { + "name": "fields", + "in": "query", + "description": "Limit the properties returned in the response", + "schema": { + "type": "string" + }, + "examples": { + "Return all fields": { + "value": " " + }, + "Return single field": { + "value": "totalprice" + }, + "Return multiple fields": { + "value": "orderlines,totalprice" + }, + "Return nested fields": { + "value": "orderlines[sku,description]" + } + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CountryResponseDto" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + } + } + } + }, + "/umbraco/commerce/storefront/api/v1/country/{idOrAlias}/currencies": { + "get": { + "tags": [ + "Country" + ], + "summary": "Gets the Currencies allowed in a Country", + "parameters": [ + { + "name": "Api-Key", + "in": "header", + "description": "API key specified through configuration to authorize access to the API.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Store", + "in": "header", + "description": "The ID or the alias of the store", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "ce04e0b5-8b72-484f-9d80-a58551cd61d9" + }, + "Entity Alias": { + "value": "blendid" + } + } + }, + { + "name": "Current-Order", + "in": "header", + "description": "The ID of the current order associated with the current session", + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "338b1ced-378a-4c68-a1bc-b71e5ea6a80c" + }, + { + "name": "Billing-Country", + "in": "header", + "description": "The ID or alias of the session default billing country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "c92f83d1-9148-44d1-a296-6abbe1dc0999" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Billing-Region", + "in": "header", + "description": "The ID or alias of the session default billing region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "b07917b5-70d8-40fc-b35c-83a24fbda8e9" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Shipping-Country", + "in": "header", + "description": "The ID or alias of the session default shipping country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "505d8dbf-7d46-4493-8989-cd6a972af6df" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Shipping-Region", + "in": "header", + "description": "The ID or alias of the session default shipping region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "2dbaafcc-8b5c-454f-8c4c-e8b67d8761d1" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Tax-Class", + "in": "header", + "description": "The ID or alias of the session default tax class", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "3f4cf70c-a93d-434f-940e-c9a92aa47094" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Currency", + "in": "header", + "description": "The ID or alias of the session currency", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "2ab654d8-f683-48b7-b45d-2d3828805fce" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Accept-Language", + "in": "header", + "description": "The ISO culture code of the current session culture", + "schema": { + "type": "string" + }, + "example": "en-US" + }, + { + "name": "Customer-Reference", + "in": "header", + "description": "The unique reference for the customer associated with the current session", + "schema": { + "type": "string" + }, + "example": "cust_b93c2d78-1a50-4980-ab6e-718d6b13acc1" + }, + { + "name": "idOrAlias", + "in": "path", + "description": "The ID or the alias of the given resource", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "1a4ad2a7-349b-47b2-bf4c-a1d7e1b8f063" + }, + "Entity Alias": { + "value": "alias" + } + } + }, + { + "name": "expand", + "in": "query", + "description": "Defines the properties that should be expanded in the response", + "schema": { + "type": "string" + }, + "examples": { + "Expand none": { + "value": " " + }, + "Expand prices": { + "value": "$price" + }, + "Expand specific property": { + "value": "currency" + }, + "Expand nested properties": { + "value": "paymentmethod[taxclass]" + } + } + }, + { + "name": "fields", + "in": "query", + "description": "Limit the properties returned in the response", + "schema": { + "type": "string" + }, + "examples": { + "Return all fields": { + "value": " " + }, + "Return single field": { + "value": "totalprice" + }, + "Return multiple fields": { + "value": "orderlines,totalprice" + }, + "Return nested fields": { + "value": "orderlines[sku,description]" + } + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CurrencyResponseDto" + } + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + } + } + } + }, + "/umbraco/commerce/storefront/api/v1/country/{idOrAlias}/paymentmethods": { + "get": { + "tags": [ + "Country" + ], + "summary": "Gets the Payment Methods allowed in a Country", + "parameters": [ + { + "name": "Api-Key", + "in": "header", + "description": "API key specified through configuration to authorize access to the API.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Store", + "in": "header", + "description": "The ID or the alias of the store", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "7bdc7462-97ae-425c-88ec-9fb5e479fc61" + }, + "Entity Alias": { + "value": "blendid" + } + } + }, + { + "name": "Current-Order", + "in": "header", + "description": "The ID of the current order associated with the current session", + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "3cf3c75e-777e-470d-af12-811bfb56decc" + }, + { + "name": "Billing-Country", + "in": "header", + "description": "The ID or alias of the session default billing country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "033fb3f7-9633-4b0d-9f76-47eec8b4e0db" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Billing-Region", + "in": "header", + "description": "The ID or alias of the session default billing region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "2f0afc87-b993-49db-8dc2-3aa87691026e" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Shipping-Country", + "in": "header", + "description": "The ID or alias of the session default shipping country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "be7376a4-135b-4211-965e-dd6b3a6da86a" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Shipping-Region", + "in": "header", + "description": "The ID or alias of the session default shipping region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "9950a82a-9e7f-4d16-a444-9edbc9088ef5" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Tax-Class", + "in": "header", + "description": "The ID or alias of the session default tax class", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "ac4e2892-ea4a-401f-b749-39bb971f1f94" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Currency", + "in": "header", + "description": "The ID or alias of the session currency", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "64ea1e7f-c69a-4535-a1ce-3dade8d33cc6" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Accept-Language", + "in": "header", + "description": "The ISO culture code of the current session culture", + "schema": { + "type": "string" + }, + "example": "en-US" + }, + { + "name": "Customer-Reference", + "in": "header", + "description": "The unique reference for the customer associated with the current session", + "schema": { + "type": "string" + }, + "example": "cust_21d95084-2a0b-45e8-a619-9b2ed3e89eee" + }, + { + "name": "idOrAlias", + "in": "path", + "description": "The ID or the alias of the given resource", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "80b94f39-9697-44e6-8ecb-1212ba074910" + }, + "Entity Alias": { + "value": "alias" + } + } + }, + { + "name": "expand", + "in": "query", + "description": "Defines the properties that should be expanded in the response", + "schema": { + "type": "string" + }, + "examples": { + "Expand none": { + "value": " " + }, + "Expand prices": { + "value": "$price" + }, + "Expand specific property": { + "value": "currency" + }, + "Expand nested properties": { + "value": "paymentmethod[taxclass]" + } + } + }, + { + "name": "fields", + "in": "query", + "description": "Limit the properties returned in the response", + "schema": { + "type": "string" + }, + "examples": { + "Return all fields": { + "value": " " + }, + "Return single field": { + "value": "totalprice" + }, + "Return multiple fields": { + "value": "orderlines,totalprice" + }, + "Return nested fields": { + "value": "orderlines[sku,description]" + } + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PaymentMethodResponseDto" + } + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + } + } + } + }, + "/umbraco/commerce/storefront/api/v1/country/{idOrAlias}/shippingmethods": { + "get": { + "tags": [ + "Country" + ], + "summary": "Gets the Shipping Methods allowed in a Country", + "parameters": [ + { + "name": "Api-Key", + "in": "header", + "description": "API key specified through configuration to authorize access to the API.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Store", + "in": "header", + "description": "The ID or the alias of the store", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "b16d136e-5b57-4812-b231-ad95fc473142" + }, + "Entity Alias": { + "value": "blendid" + } + } + }, + { + "name": "Current-Order", + "in": "header", + "description": "The ID of the current order associated with the current session", + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "691fa037-f27c-45a5-ac80-cb5c9ad5e6d5" + }, + { + "name": "Billing-Country", + "in": "header", + "description": "The ID or alias of the session default billing country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "46d309bb-258e-415b-a2db-1ef712c2c0aa" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Billing-Region", + "in": "header", + "description": "The ID or alias of the session default billing region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "1060cb1a-ad6c-4b41-bd3b-3ecbc26ef531" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Shipping-Country", + "in": "header", + "description": "The ID or alias of the session default shipping country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "09013686-7d5a-47dc-a52b-736366c0fc37" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Shipping-Region", + "in": "header", + "description": "The ID or alias of the session default shipping region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "7f6298ed-aada-446e-b2f1-95ea60840bdc" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Tax-Class", + "in": "header", + "description": "The ID or alias of the session default tax class", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "984db4a2-86b1-4c2b-96b1-60422d420be9" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Currency", + "in": "header", + "description": "The ID or alias of the session currency", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "61cd7707-f12a-493c-93d7-aa76be7f6a42" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Accept-Language", + "in": "header", + "description": "The ISO culture code of the current session culture", + "schema": { + "type": "string" + }, + "example": "en-US" + }, + { + "name": "Customer-Reference", + "in": "header", + "description": "The unique reference for the customer associated with the current session", + "schema": { + "type": "string" + }, + "example": "cust_0ee595ef-93e8-449b-8cf3-bbc4364d4391" + }, + { + "name": "idOrAlias", + "in": "path", + "description": "The ID or the alias of the given resource", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "d8b00204-3b3b-4bc0-a715-9aa1c01795c1" + }, + "Entity Alias": { + "value": "alias" + } + } + }, + { + "name": "expand", + "in": "query", + "description": "Defines the properties that should be expanded in the response", + "schema": { + "type": "string" + }, + "examples": { + "Expand none": { + "value": " " + }, + "Expand prices": { + "value": "$price" + }, + "Expand specific property": { + "value": "currency" + }, + "Expand nested properties": { + "value": "paymentmethod[taxclass]" + } + } + }, + { + "name": "fields", + "in": "query", + "description": "Limit the properties returned in the response", + "schema": { + "type": "string" + }, + "examples": { + "Return all fields": { + "value": " " + }, + "Return single field": { + "value": "totalprice" + }, + "Return multiple fields": { + "value": "orderlines,totalprice" + }, + "Return nested fields": { + "value": "orderlines[sku,description]" + } + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ShippingMethodResponseDto" + } + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + } + } + } + }, + "/umbraco/commerce/storefront/api/v1/currencies": { + "get": { + "tags": [ + "Currency" + ], + "summary": "Gets all the Currencies in a Store", + "parameters": [ + { + "name": "Api-Key", + "in": "header", + "description": "API key specified through configuration to authorize access to the API.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Store", + "in": "header", + "description": "The ID or the alias of the store", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "dbc1f7a2-6cb8-43c6-9489-30ba08d82c7f" + }, + "Entity Alias": { + "value": "blendid" + } + } + }, + { + "name": "Current-Order", + "in": "header", + "description": "The ID of the current order associated with the current session", + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "e35b6b9d-dffe-4a41-a324-9d44b2e66b8d" + }, + { + "name": "Billing-Country", + "in": "header", + "description": "The ID or alias of the session default billing country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "837d138c-64af-4248-abc9-d93f747e3d94" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Billing-Region", + "in": "header", + "description": "The ID or alias of the session default billing region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "14f54183-d1fe-482a-ae8c-90100bdc69a9" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Shipping-Country", + "in": "header", + "description": "The ID or alias of the session default shipping country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "35c0687c-1754-4858-a1a2-26b684922a5b" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Shipping-Region", + "in": "header", + "description": "The ID or alias of the session default shipping region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "df29f28f-708f-4704-a832-e17ec9f4015d" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Tax-Class", + "in": "header", + "description": "The ID or alias of the session default tax class", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "cad6bb8c-8829-4f92-8ce3-0e939f1043cf" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Currency", + "in": "header", + "description": "The ID or alias of the session currency", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "73a5a892-ceeb-4acd-ab08-d531d73f97e7" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Accept-Language", + "in": "header", + "description": "The ISO culture code of the current session culture", + "schema": { + "type": "string" + }, + "example": "en-US" + }, + { + "name": "Customer-Reference", + "in": "header", + "description": "The unique reference for the customer associated with the current session", + "schema": { + "type": "string" + }, + "example": "cust_9418af18-1156-4505-9af6-96ff0f12b800" + }, + { + "name": "filter", + "in": "query", + "description": "Filter the returned list of items", + "schema": { + "type": "string" + }, + "examples": { + "Return all results": { + "value": " " + }, + "Return items allowed in a given country": { + "value": "allowedInCountry:GB" + } + } + }, + { + "name": "expand", + "in": "query", + "description": "Defines the properties that should be expanded in the response", + "schema": { + "type": "string" + }, + "examples": { + "Expand none": { + "value": " " + }, + "Expand prices": { + "value": "$price" + }, + "Expand specific property": { + "value": "currency" + }, + "Expand nested properties": { + "value": "paymentmethod[taxclass]" + } + } + }, + { + "name": "fields", + "in": "query", + "description": "Limit the properties returned in the response", + "schema": { + "type": "string" + }, + "examples": { + "Return all fields": { + "value": " " + }, + "Return single field": { + "value": "totalprice" + }, + "Return multiple fields": { + "value": "orderlines,totalprice" + }, + "Return nested fields": { + "value": "orderlines[sku,description]" + } + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CurrencyResponseDto" + } + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + } + } + } + }, + "/umbraco/commerce/storefront/api/v1/currency/{idOrAlias}": { + "get": { + "tags": [ + "Currency" + ], + "summary": "Gets a Currency by ID or Alias", + "parameters": [ + { + "name": "Api-Key", + "in": "header", + "description": "API key specified through configuration to authorize access to the API.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Store", + "in": "header", + "description": "The ID or the alias of the store", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "20b72b2c-3c21-4a30-b75a-3453556a5662" + }, + "Entity Alias": { + "value": "blendid" + } + } + }, + { + "name": "Current-Order", + "in": "header", + "description": "The ID of the current order associated with the current session", + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "d98ede52-7168-4e57-bd70-6cc1c5c7d9e8" + }, + { + "name": "Billing-Country", + "in": "header", + "description": "The ID or alias of the session default billing country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "a54fe566-6ea2-459f-9b85-9a160210686a" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Billing-Region", + "in": "header", + "description": "The ID or alias of the session default billing region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "3566f760-25d2-4231-bf91-7e8ac22a1f72" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Shipping-Country", + "in": "header", + "description": "The ID or alias of the session default shipping country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "0e909dc8-a657-4b32-a9a1-47f8dde64e3f" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Shipping-Region", + "in": "header", + "description": "The ID or alias of the session default shipping region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "4dbbfb54-3408-49ae-b0c7-39d1b48c6898" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Tax-Class", + "in": "header", + "description": "The ID or alias of the session default tax class", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "2fa21b66-1d08-463f-9cec-a47ad78efe9e" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Currency", + "in": "header", + "description": "The ID or alias of the session currency", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "fc0e3a30-5c0d-4bf8-8db9-0ca52d7f17bf" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Accept-Language", + "in": "header", + "description": "The ISO culture code of the current session culture", + "schema": { + "type": "string" + }, + "example": "en-US" + }, + { + "name": "Customer-Reference", + "in": "header", + "description": "The unique reference for the customer associated with the current session", + "schema": { + "type": "string" + }, + "example": "cust_ec365a61-0ddf-4440-9d7f-35bb94ec7f37" + }, + { + "name": "idOrAlias", + "in": "path", + "description": "The ID or the alias of the given resource", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "0cb10bb7-211f-498e-87fa-897caef86a48" + }, + "Entity Alias": { + "value": "alias" + } + } + }, + { + "name": "expand", + "in": "query", + "description": "Defines the properties that should be expanded in the response", + "schema": { + "type": "string" + }, + "examples": { + "Expand none": { + "value": " " + }, + "Expand prices": { + "value": "$price" + }, + "Expand specific property": { + "value": "currency" + }, + "Expand nested properties": { + "value": "paymentmethod[taxclass]" + } + } + }, + { + "name": "fields", + "in": "query", + "description": "Limit the properties returned in the response", + "schema": { + "type": "string" + }, + "examples": { + "Return all fields": { + "value": " " + }, + "Return single field": { + "value": "totalprice" + }, + "Return multiple fields": { + "value": "orderlines,totalprice" + }, + "Return nested fields": { + "value": "orderlines[sku,description]" + } + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CurrencyResponseDto" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + } + } + } + }, + "/umbraco/commerce/storefront/api/v1/customer/{customerReferenceOrEmail}/orders": { + "get": { + "tags": [ + "Customer" + ], + "summary": "Gets all the finalized Order of a Customer", + "parameters": [ + { + "name": "Api-Key", + "in": "header", + "description": "API key specified through configuration to authorize access to the API.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Store", + "in": "header", + "description": "The ID or the alias of the store", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "5a7e5d2e-d932-4f18-bc4b-8ee1b641b358" + }, + "Entity Alias": { + "value": "blendid" + } + } + }, + { + "name": "customerReferenceOrEmail", + "in": "path", + "description": "A custom reference or email of an existing customer. Can be UrlBase64 encoded.", + "required": true, + "schema": { + "type": "string" + }, + "example": "cust_14c7ba32-367d-42f3-83b1-e59c839e5d22" + }, + { + "name": "expand", + "in": "query", + "description": "Defines the properties that should be expanded in the response", + "schema": { + "type": "string" + }, + "examples": { + "Expand none": { + "value": " " + }, + "Expand prices": { + "value": "$price" + }, + "Expand specific property": { + "value": "currency" + }, + "Expand nested properties": { + "value": "paymentmethod[taxclass]" + } + } + }, + { + "name": "fields", + "in": "query", + "description": "Limit the properties returned in the response", + "schema": { + "type": "string" + }, + "examples": { + "Return all fields": { + "value": " " + }, + "Return single field": { + "value": "totalprice" + }, + "Return multiple fields": { + "value": "orderlines,totalprice" + }, + "Return nested fields": { + "value": "orderlines[sku,description]" + } + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OrderResponseDto" + } + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + } + } + } + }, + "/umbraco/commerce/storefront/api/v1/order/{orderId}": { + "delete": { + "tags": [ + "Order" + ], + "summary": "Deletes an Order", + "parameters": [ + { + "name": "Api-Key", + "in": "header", + "description": "API key specified through configuration to authorize access to the API.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Store", + "in": "header", + "description": "The ID or the alias of the store", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "95a2ae74-7314-4adc-bb94-f28d3fb4e953" + }, + "Entity Alias": { + "value": "blendid" + } + } + }, + { + "name": "Current-Order", + "in": "header", + "description": "The ID of the current order associated with the current session", + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "0069e286-22d1-41e5-9cf1-ebbf4c6b240e" + }, + { + "name": "Billing-Country", + "in": "header", + "description": "The ID or alias of the session default billing country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "3fad8e78-31d4-4fcc-9927-4f1cf87e019b" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Billing-Region", + "in": "header", + "description": "The ID or alias of the session default billing region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "2f04ec0a-4196-4be1-8bab-ea7bb4706f59" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Shipping-Country", + "in": "header", + "description": "The ID or alias of the session default shipping country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "613d4f97-3f2c-424c-a9ba-78178756d725" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Shipping-Region", + "in": "header", + "description": "The ID or alias of the session default shipping region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "c1165355-5ef2-460a-b4b4-175929e3ffa0" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Tax-Class", + "in": "header", + "description": "The ID or alias of the session default tax class", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "df976c97-24f0-4fbe-98c7-a07d8465c01b" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Currency", + "in": "header", + "description": "The ID or alias of the session currency", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "868c2364-f4fd-4bef-959d-02bd34b596dd" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Accept-Language", + "in": "header", + "description": "The ISO culture code of the current session culture", + "schema": { + "type": "string" + }, + "example": "en-US" + }, + { + "name": "Customer-Reference", + "in": "header", + "description": "The unique reference for the customer associated with the current session", + "schema": { + "type": "string" + }, + "example": "cust_53775bb3-8f50-453d-9096-df08e9c447a3" + }, + { + "name": "orderId", + "in": "path", + "description": "The ID of the order", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "2c057deb-fd04-4658-b137-4b12033821f3" + } + ], + "responses": { + "200": { + "description": "Success" + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + } + } + }, + "get": { + "tags": [ + "Order" + ], + "summary": "Gets an Order by ID", + "parameters": [ + { + "name": "Api-Key", + "in": "header", + "description": "API key specified through configuration to authorize access to the API.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Store", + "in": "header", + "description": "The ID or the alias of the store", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "0cee075c-3e9e-4fe3-a870-2804a0ec3bbf" + }, + "Entity Alias": { + "value": "blendid" + } + } + }, + { + "name": "Current-Order", + "in": "header", + "description": "The ID of the current order associated with the current session", + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "c1af1022-9646-446c-9332-56ceddf8ec72" + }, + { + "name": "Billing-Country", + "in": "header", + "description": "The ID or alias of the session default billing country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "d4488951-b00f-4c3d-b7d6-b359ba0e5e34" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Billing-Region", + "in": "header", + "description": "The ID or alias of the session default billing region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "271234f2-ffad-47b9-8c3a-443239f1d11e" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Shipping-Country", + "in": "header", + "description": "The ID or alias of the session default shipping country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "c7092d3d-7a2f-4c90-8ad5-5bf3fbe1f89e" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Shipping-Region", + "in": "header", + "description": "The ID or alias of the session default shipping region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "723d0bf4-5637-45dd-b34a-352b5fa846a9" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Tax-Class", + "in": "header", + "description": "The ID or alias of the session default tax class", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "1a5851d6-f5a3-43f1-bce3-16cf97957721" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Currency", + "in": "header", + "description": "The ID or alias of the session currency", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "06e03cf6-c6d2-49cb-9259-96b4cfad1649" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Accept-Language", + "in": "header", + "description": "The ISO culture code of the current session culture", + "schema": { + "type": "string" + }, + "example": "en-US" + }, + { + "name": "Customer-Reference", + "in": "header", + "description": "The unique reference for the customer associated with the current session", + "schema": { + "type": "string" + }, + "example": "cust_1acdc1dc-84fa-4fec-b91f-d5b6ff8e5493" + }, + { + "name": "orderId", + "in": "path", + "description": "The ID of the order", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "9552c564-be6c-448c-9872-9a291766bc37" + }, + { + "name": "expand", + "in": "query", + "description": "Defines the properties that should be expanded in the response", + "schema": { + "type": "string" + }, + "examples": { + "Expand none": { + "value": " " + }, + "Expand prices": { + "value": "$price" + }, + "Expand specific property": { + "value": "currency" + }, + "Expand nested properties": { + "value": "paymentmethod[taxclass]" + } + } + }, + { + "name": "fields", + "in": "query", + "description": "Limit the properties returned in the response", + "schema": { + "type": "string" + }, + "examples": { + "Return all fields": { + "value": " " + }, + "Return single field": { + "value": "totalprice" + }, + "Return multiple fields": { + "value": "orderlines,totalprice" + }, + "Return nested fields": { + "value": "orderlines[sku,description]" + } + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrderResponseDto" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + } + } + }, + "patch": { + "tags": [ + "Order" + ], + "summary": "Updates an Order", + "parameters": [ + { + "name": "Api-Key", + "in": "header", + "description": "API key specified through configuration to authorize access to the API.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Store", + "in": "header", + "description": "The ID or the alias of the store", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "e6683440-640f-435c-a86d-9b6ffda8c8b3" + }, + "Entity Alias": { + "value": "blendid" + } + } + }, + { + "name": "Current-Order", + "in": "header", + "description": "The ID of the current order associated with the current session", + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "23f6e40a-bd99-4438-ace0-8b322fadd110" + }, + { + "name": "Billing-Country", + "in": "header", + "description": "The ID or alias of the session default billing country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "45e9d12c-5179-44ed-abe2-d234d71fb7fb" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Billing-Region", + "in": "header", + "description": "The ID or alias of the session default billing region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "ba281ccc-82fb-4c57-bde1-e699bc47730c" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Shipping-Country", + "in": "header", + "description": "The ID or alias of the session default shipping country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "8d237853-7243-4415-8d18-1bceec4c24d2" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Shipping-Region", + "in": "header", + "description": "The ID or alias of the session default shipping region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "1352d095-d27b-43f9-94cd-8df9cebc2e5a" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Tax-Class", + "in": "header", + "description": "The ID or alias of the session default tax class", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "df864be5-33a6-405b-aef6-9d7d5a3d2426" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Currency", + "in": "header", + "description": "The ID or alias of the session currency", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "6ee66bbb-1a4e-4900-801d-98705592b7dc" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Accept-Language", + "in": "header", + "description": "The ISO culture code of the current session culture", + "schema": { + "type": "string" + }, + "example": "en-US" + }, + { + "name": "Customer-Reference", + "in": "header", + "description": "The unique reference for the customer associated with the current session", + "schema": { + "type": "string" + }, + "example": "cust_fc236c25-bbae-4355-91ca-9867ecf8df02" + }, + { + "name": "orderId", + "in": "path", + "description": "The ID of the order", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "c6ee6b2c-3233-43df-aa4f-21615aa5cc9b" + }, + { + "name": "expand", + "in": "query", + "description": "Defines the properties that should be expanded in the response", + "schema": { + "type": "string" + }, + "examples": { + "Expand none": { + "value": " " + }, + "Expand prices": { + "value": "$price" + }, + "Expand specific property": { + "value": "currency" + }, + "Expand nested properties": { + "value": "paymentmethod[taxclass]" + } + } + }, + { + "name": "fields", + "in": "query", + "description": "Limit the properties returned in the response", + "schema": { + "type": "string" + }, + "examples": { + "Return all fields": { + "value": " " + }, + "Return single field": { + "value": "totalprice" + }, + "Return multiple fields": { + "value": "orderlines,totalprice" + }, + "Return nested fields": { + "value": "orderlines[sku,description]" + } + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateOrderRequestDto" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrderResponseDto" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + } + } + }, + "post": { + "tags": [ + "Order" + ], + "summary": "Adds a product to an Order", + "parameters": [ + { + "name": "Api-Key", + "in": "header", + "description": "API key specified through configuration to authorize access to the API.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Store", + "in": "header", + "description": "The ID or the alias of the store", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "8bbfbc68-4679-4924-a992-bcc85d278d2c" + }, + "Entity Alias": { + "value": "blendid" + } + } + }, + { + "name": "Current-Order", + "in": "header", + "description": "The ID of the current order associated with the current session", + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "3f29ad06-c73f-471b-8d50-4008d5fba487" + }, + { + "name": "Billing-Country", + "in": "header", + "description": "The ID or alias of the session default billing country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "715871d7-bb59-473b-a8dd-ab41923b663b" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Billing-Region", + "in": "header", + "description": "The ID or alias of the session default billing region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "3e01ee69-7686-4c30-9049-bc4058257d86" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Shipping-Country", + "in": "header", + "description": "The ID or alias of the session default shipping country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "bfefdb24-bb1f-4d5c-8f38-cd34ff409147" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Shipping-Region", + "in": "header", + "description": "The ID or alias of the session default shipping region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "8a5ebe37-6c3e-4b14-aba6-c8ec03b80ebe" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Tax-Class", + "in": "header", + "description": "The ID or alias of the session default tax class", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "43607317-17f4-42aa-be09-d342bcda577a" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Currency", + "in": "header", + "description": "The ID or alias of the session currency", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "10663191-15bd-49d9-8ad4-741ba57d3742" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Accept-Language", + "in": "header", + "description": "The ISO culture code of the current session culture", + "schema": { + "type": "string" + }, + "example": "en-US" + }, + { + "name": "Customer-Reference", + "in": "header", + "description": "The unique reference for the customer associated with the current session", + "schema": { + "type": "string" + }, + "example": "cust_73894966-2a44-4c83-8cd4-13115ab015eb" + }, + { + "name": "orderId", + "in": "path", + "description": "The ID of the order", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "6501b7b7-179a-4eed-b726-4c10dab2dd15" + }, + { + "name": "expand", + "in": "query", + "description": "Defines the properties that should be expanded in the response", + "schema": { + "type": "string" + }, + "examples": { + "Expand none": { + "value": " " + }, + "Expand prices": { + "value": "$price" + }, + "Expand specific property": { + "value": "currency" + }, + "Expand nested properties": { + "value": "paymentmethod[taxclass]" + } + } + }, + { + "name": "fields", + "in": "query", + "description": "Limit the properties returned in the response", + "schema": { + "type": "string" + }, + "examples": { + "Return all fields": { + "value": " " + }, + "Return single field": { + "value": "totalprice" + }, + "Return multiple fields": { + "value": "orderlines,totalprice" + }, + "Return nested fields": { + "value": "orderlines[sku,description]" + } + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AddProductRequestDto" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrderResponseDto" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + } + } + } + }, + "/umbraco/commerce/storefront/api/v1/order/{orderId}/bundle/{bundleId}": { + "post": { + "tags": [ + "Order" + ], + "summary": "Adds a product to a Bundle", + "parameters": [ + { + "name": "Api-Key", + "in": "header", + "description": "API key specified through configuration to authorize access to the API.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Store", + "in": "header", + "description": "The ID or the alias of the store", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "3730a5ec-0db6-4505-a732-80d20e0f91b5" + }, + "Entity Alias": { + "value": "blendid" + } + } + }, + { + "name": "Current-Order", + "in": "header", + "description": "The ID of the current order associated with the current session", + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "a75fcd7f-f659-4475-8367-63d9aad2f500" + }, + { + "name": "Billing-Country", + "in": "header", + "description": "The ID or alias of the session default billing country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "7bcdee91-0749-4546-8005-51076fffaead" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Billing-Region", + "in": "header", + "description": "The ID or alias of the session default billing region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "45a510a5-a9c4-4219-ab41-1d6efd2a5614" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Shipping-Country", + "in": "header", + "description": "The ID or alias of the session default shipping country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "d1a5f064-0bb1-49c9-99ee-0d5ce1c717a0" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Shipping-Region", + "in": "header", + "description": "The ID or alias of the session default shipping region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "6a43332b-93ba-4216-9977-bc11fe712469" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Tax-Class", + "in": "header", + "description": "The ID or alias of the session default tax class", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "1cee4030-0aee-4438-8c67-2770f7cca1bf" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Currency", + "in": "header", + "description": "The ID or alias of the session currency", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "5f75d33b-2360-4851-a497-bbbbabe9d2ad" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Accept-Language", + "in": "header", + "description": "The ISO culture code of the current session culture", + "schema": { + "type": "string" + }, + "example": "en-US" + }, + { + "name": "Customer-Reference", + "in": "header", + "description": "The unique reference for the customer associated with the current session", + "schema": { + "type": "string" + }, + "example": "cust_81ce937e-e188-42a6-8683-9b7e5b58014f" + }, + { + "name": "orderId", + "in": "path", + "description": "The ID of the order", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "b3942bea-ffe4-479d-a6f7-e4c70fd37609" + }, + { + "name": "bundleId", + "in": "path", + "description": "The ID of the bundle", + "required": true, + "schema": { + "type": "string" + }, + "example": "2cdfee74-430b-4578-9140-1e482bc3f346" + }, + { + "name": "expand", + "in": "query", + "description": "Defines the properties that should be expanded in the response", + "schema": { + "type": "string" + }, + "examples": { + "Expand none": { + "value": " " + }, + "Expand prices": { + "value": "$price" + }, + "Expand specific property": { + "value": "currency" + }, + "Expand nested properties": { + "value": "paymentmethod[taxclass]" + } + } + }, + { + "name": "fields", + "in": "query", + "description": "Limit the properties returned in the response", + "schema": { + "type": "string" + }, + "examples": { + "Return all fields": { + "value": " " + }, + "Return single field": { + "value": "totalprice" + }, + "Return multiple fields": { + "value": "orderlines,totalprice" + }, + "Return nested fields": { + "value": "orderlines[sku,description]" + } + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AddProductRequestDto" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrderResponseDto" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + } + } + } + }, + "/umbraco/commerce/storefront/api/v1/order/{orderId}/bundle/{bundleId}/item/{orderLineId}": { + "delete": { + "tags": [ + "Order" + ], + "summary": "Deletes an Order Line in a Bundle", + "parameters": [ + { + "name": "Api-Key", + "in": "header", + "description": "API key specified through configuration to authorize access to the API.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Store", + "in": "header", + "description": "The ID or the alias of the store", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "4b526716-dc0f-4bb7-ab31-cf685ed5970e" + }, + "Entity Alias": { + "value": "blendid" + } + } + }, + { + "name": "Current-Order", + "in": "header", + "description": "The ID of the current order associated with the current session", + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "3134de87-6feb-4ead-8890-c4ac4e1cdde3" + }, + { + "name": "Billing-Country", + "in": "header", + "description": "The ID or alias of the session default billing country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "26d0646b-ab6e-486c-8f7a-10764e12a45b" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Billing-Region", + "in": "header", + "description": "The ID or alias of the session default billing region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "f0dba06c-47e5-4de0-8394-ece29c211ff5" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Shipping-Country", + "in": "header", + "description": "The ID or alias of the session default shipping country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "3c1f5d7e-3231-4d2a-95bc-896e0df1b460" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Shipping-Region", + "in": "header", + "description": "The ID or alias of the session default shipping region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "e0688154-ee92-4e57-89d0-2381b35e1690" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Tax-Class", + "in": "header", + "description": "The ID or alias of the session default tax class", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "efe482ae-00e7-442a-ab1a-2182abfbc3d7" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Currency", + "in": "header", + "description": "The ID or alias of the session currency", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "1f21ea5f-4ac0-48bb-96e8-cf41f6cb9d91" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Accept-Language", + "in": "header", + "description": "The ISO culture code of the current session culture", + "schema": { + "type": "string" + }, + "example": "en-US" + }, + { + "name": "Customer-Reference", + "in": "header", + "description": "The unique reference for the customer associated with the current session", + "schema": { + "type": "string" + }, + "example": "cust_f26be500-69cf-40bb-8b39-311fec48f282" + }, + { + "name": "orderId", + "in": "path", + "description": "The ID of the order", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "63ff8924-6284-4348-a3ef-202bb494b6f4" + }, + { + "name": "bundleId", + "in": "path", + "description": "The ID of the bundle", + "required": true, + "schema": { + "type": "string" + }, + "example": "d7cf5194-33e7-4b9e-b4cb-1b6916f5f38f" + }, + { + "name": "orderLineId", + "in": "path", + "description": "The ID of the order line", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "ba9518e6-7594-49cf-bb4e-0785c5c39e91" + }, + { + "name": "expand", + "in": "query", + "description": "Defines the properties that should be expanded in the response", + "schema": { + "type": "string" + }, + "examples": { + "Expand none": { + "value": " " + }, + "Expand prices": { + "value": "$price" + }, + "Expand specific property": { + "value": "currency" + }, + "Expand nested properties": { + "value": "paymentmethod[taxclass]" + } + } + }, + { + "name": "fields", + "in": "query", + "description": "Limit the properties returned in the response", + "schema": { + "type": "string" + }, + "examples": { + "Return all fields": { + "value": " " + }, + "Return single field": { + "value": "totalprice" + }, + "Return multiple fields": { + "value": "orderlines,totalprice" + }, + "Return nested fields": { + "value": "orderlines[sku,description]" + } + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrderResponseDto" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + } + } + }, + "patch": { + "tags": [ + "Order" + ], + "summary": "Updates an Order Line in a Bundle", + "parameters": [ + { + "name": "Api-Key", + "in": "header", + "description": "API key specified through configuration to authorize access to the API.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Store", + "in": "header", + "description": "The ID or the alias of the store", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "1ee8bacf-2523-46ff-b169-1c8602a177c5" + }, + "Entity Alias": { + "value": "blendid" + } + } + }, + { + "name": "Current-Order", + "in": "header", + "description": "The ID of the current order associated with the current session", + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "d944fd27-d0c2-43bf-b6bc-81a9048a3761" + }, + { + "name": "Billing-Country", + "in": "header", + "description": "The ID or alias of the session default billing country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "74668b9d-aae6-44ff-bd21-2516c1191646" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Billing-Region", + "in": "header", + "description": "The ID or alias of the session default billing region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "28f5680e-b8b8-4d76-96b6-172f3b70b6fb" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Shipping-Country", + "in": "header", + "description": "The ID or alias of the session default shipping country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "a39dd754-1471-4937-8cfc-bd9dffc8349c" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Shipping-Region", + "in": "header", + "description": "The ID or alias of the session default shipping region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "809c2654-3e23-4332-bdd3-ad3844ff14b1" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Tax-Class", + "in": "header", + "description": "The ID or alias of the session default tax class", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "0489fe67-643c-47ce-805a-676aa4bced02" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Currency", + "in": "header", + "description": "The ID or alias of the session currency", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "93c14d21-398f-4e91-9ac2-4870e733ca10" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Accept-Language", + "in": "header", + "description": "The ISO culture code of the current session culture", + "schema": { + "type": "string" + }, + "example": "en-US" + }, + { + "name": "Customer-Reference", + "in": "header", + "description": "The unique reference for the customer associated with the current session", + "schema": { + "type": "string" + }, + "example": "cust_68090526-e7ce-4b27-b0d0-175f7f92a639" + }, + { + "name": "orderId", + "in": "path", + "description": "The ID of the order", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "24850c50-8e13-44b5-8d03-f747b4868ed5" + }, + { + "name": "bundleId", + "in": "path", + "description": "The ID of the bundle", + "required": true, + "schema": { + "type": "string" + }, + "example": "da5d970e-1eb0-4361-bb92-3fafe038fc47" + }, + { + "name": "orderLineId", + "in": "path", + "description": "The ID of the order line", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "35f3260a-ada2-4838-b3e4-50d86b6ebff9" + }, + { + "name": "expand", + "in": "query", + "description": "Defines the properties that should be expanded in the response", + "schema": { + "type": "string" + }, + "examples": { + "Expand none": { + "value": " " + }, + "Expand prices": { + "value": "$price" + }, + "Expand specific property": { + "value": "currency" + }, + "Expand nested properties": { + "value": "paymentmethod[taxclass]" + } + } + }, + { + "name": "fields", + "in": "query", + "description": "Limit the properties returned in the response", + "schema": { + "type": "string" + }, + "examples": { + "Return all fields": { + "value": " " + }, + "Return single field": { + "value": "totalprice" + }, + "Return multiple fields": { + "value": "orderlines,totalprice" + }, + "Return nested fields": { + "value": "orderlines[sku,description]" + } + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateOrderLineRequestDto" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrderResponseDto" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + } + } + } + }, + "/umbraco/commerce/storefront/api/v1/order/{orderId}/bundle/{bundleId}/items": { + "delete": { + "tags": [ + "Order" + ], + "summary": "Deletes all Order Lines in a Bundle", + "parameters": [ + { + "name": "Api-Key", + "in": "header", + "description": "API key specified through configuration to authorize access to the API.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Store", + "in": "header", + "description": "The ID or the alias of the store", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "ca2ad049-9c8d-4d5b-b0cd-7ed651b640b4" + }, + "Entity Alias": { + "value": "blendid" + } + } + }, + { + "name": "Current-Order", + "in": "header", + "description": "The ID of the current order associated with the current session", + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "0e424f22-e43e-4a3c-9690-f6fcee8474e4" + }, + { + "name": "Billing-Country", + "in": "header", + "description": "The ID or alias of the session default billing country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "01bbcaa8-d4bd-430d-b032-789bff870e49" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Billing-Region", + "in": "header", + "description": "The ID or alias of the session default billing region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "b71013ba-ba14-4426-89df-97373ad6a8eb" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Shipping-Country", + "in": "header", + "description": "The ID or alias of the session default shipping country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "35377fd5-66d4-4601-ac40-58dd9a54b026" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Shipping-Region", + "in": "header", + "description": "The ID or alias of the session default shipping region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "6c7237c4-b1dd-4453-9d18-af562ceccc4c" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Tax-Class", + "in": "header", + "description": "The ID or alias of the session default tax class", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "6ec77b61-2fd5-48d3-b2dc-950d5da2cb80" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Currency", + "in": "header", + "description": "The ID or alias of the session currency", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "d2238f8a-aedb-4cf1-81dd-2a210e0cfda6" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Accept-Language", + "in": "header", + "description": "The ISO culture code of the current session culture", + "schema": { + "type": "string" + }, + "example": "en-US" + }, + { + "name": "Customer-Reference", + "in": "header", + "description": "The unique reference for the customer associated with the current session", + "schema": { + "type": "string" + }, + "example": "cust_48c4ebb8-12f4-45a4-a7f5-9d0f7713754b" + }, + { + "name": "orderId", + "in": "path", + "description": "The ID of the order", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "31359e38-2aff-4c2e-a9b9-b6c2420df1fb" + }, + { + "name": "bundleId", + "in": "path", + "description": "The ID of the bundle", + "required": true, + "schema": { + "type": "string" + }, + "example": "ee3e348d-b58c-4a19-a82a-f4c55b784274" + }, + { + "name": "expand", + "in": "query", + "description": "Defines the properties that should be expanded in the response", + "schema": { + "type": "string" + }, + "examples": { + "Expand none": { + "value": " " + }, + "Expand prices": { + "value": "$price" + }, + "Expand specific property": { + "value": "currency" + }, + "Expand nested properties": { + "value": "paymentmethod[taxclass]" + } + } + }, + { + "name": "fields", + "in": "query", + "description": "Limit the properties returned in the response", + "schema": { + "type": "string" + }, + "examples": { + "Return all fields": { + "value": " " + }, + "Return single field": { + "value": "totalprice" + }, + "Return multiple fields": { + "value": "orderlines,totalprice" + }, + "Return nested fields": { + "value": "orderlines[sku,description]" + } + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrderResponseDto" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + } + } + }, + "patch": { + "tags": [ + "Order" + ], + "summary": "Bulk updates Order Lines in an Order", + "parameters": [ + { + "name": "Api-Key", + "in": "header", + "description": "API key specified through configuration to authorize access to the API.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Store", + "in": "header", + "description": "The ID or the alias of the store", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "4d159856-0845-4165-aeec-aa3379d15476" + }, + "Entity Alias": { + "value": "blendid" + } + } + }, + { + "name": "Current-Order", + "in": "header", + "description": "The ID of the current order associated with the current session", + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "153a3974-7a44-44e9-82b8-797ddf18e127" + }, + { + "name": "Billing-Country", + "in": "header", + "description": "The ID or alias of the session default billing country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "39aa37ed-1f90-4eef-bce8-6d64caeed7c8" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Billing-Region", + "in": "header", + "description": "The ID or alias of the session default billing region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "ad4ce33a-6126-41a4-89d7-09c356e0fc94" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Shipping-Country", + "in": "header", + "description": "The ID or alias of the session default shipping country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "09ffa3fa-b1ab-4eb9-9357-a1d03a75cb58" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Shipping-Region", + "in": "header", + "description": "The ID or alias of the session default shipping region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "4d784b41-af04-4a87-8b89-554cde2ed605" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Tax-Class", + "in": "header", + "description": "The ID or alias of the session default tax class", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "40864257-05c0-41ca-8d65-cce1059a5ec2" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Currency", + "in": "header", + "description": "The ID or alias of the session currency", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "d479fc39-005e-48f9-9558-83c386f3d7c5" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Accept-Language", + "in": "header", + "description": "The ISO culture code of the current session culture", + "schema": { + "type": "string" + }, + "example": "en-US" + }, + { + "name": "Customer-Reference", + "in": "header", + "description": "The unique reference for the customer associated with the current session", + "schema": { + "type": "string" + }, + "example": "cust_fcf6bd19-206e-40d6-9fab-22cc0abc40d9" + }, + { + "name": "orderId", + "in": "path", + "description": "The ID of the order", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "2ca0faf4-d2b9-4e83-8ab0-c56647f5042b" + }, + { + "name": "bundleId", + "in": "path", + "description": "The ID of the bundle", + "required": true, + "schema": { + "type": "string" + }, + "example": "270e14d0-4fe8-4039-ae6d-b47b1c0892f7" + }, + { + "name": "expand", + "in": "query", + "description": "Defines the properties that should be expanded in the response", + "schema": { + "type": "string" + }, + "examples": { + "Expand none": { + "value": " " + }, + "Expand prices": { + "value": "$price" + }, + "Expand specific property": { + "value": "currency" + }, + "Expand nested properties": { + "value": "paymentmethod[taxclass]" + } + } + }, + { + "name": "fields", + "in": "query", + "description": "Limit the properties returned in the response", + "schema": { + "type": "string" + }, + "examples": { + "Return all fields": { + "value": " " + }, + "Return single field": { + "value": "totalprice" + }, + "Return multiple fields": { + "value": "orderlines,totalprice" + }, + "Return nested fields": { + "value": "orderlines[sku,description]" + } + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UpdateOrderLineWithIdRequestDto" + } + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrderResponseDto" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + } + } + } + }, + "/umbraco/commerce/storefront/api/v1/order/{orderId}/item/{orderLineId}": { + "delete": { + "tags": [ + "Order" + ], + "summary": "Deletes an Order Line in an Order", + "parameters": [ + { + "name": "Api-Key", + "in": "header", + "description": "API key specified through configuration to authorize access to the API.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Store", + "in": "header", + "description": "The ID or the alias of the store", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "94d19207-2e3a-4dde-8d3e-a63e31143344" + }, + "Entity Alias": { + "value": "blendid" + } + } + }, + { + "name": "Current-Order", + "in": "header", + "description": "The ID of the current order associated with the current session", + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "42f3c348-24b9-41d9-8415-a4b7d8b31476" + }, + { + "name": "Billing-Country", + "in": "header", + "description": "The ID or alias of the session default billing country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "872b8c8c-9961-4d22-8dc4-22bdcd2cc437" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Billing-Region", + "in": "header", + "description": "The ID or alias of the session default billing region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "702bbd2d-07a4-4727-82b7-19d148198c4e" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Shipping-Country", + "in": "header", + "description": "The ID or alias of the session default shipping country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "907ba0dc-6938-4fa9-8070-ee4e6feda872" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Shipping-Region", + "in": "header", + "description": "The ID or alias of the session default shipping region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "ec89fc43-a62c-42cf-9309-2475fdb009af" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Tax-Class", + "in": "header", + "description": "The ID or alias of the session default tax class", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "415b9be2-0ec5-4001-a8b4-1bd24866f1e8" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Currency", + "in": "header", + "description": "The ID or alias of the session currency", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "d694f924-11a2-4183-bf87-eef053cf749f" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Accept-Language", + "in": "header", + "description": "The ISO culture code of the current session culture", + "schema": { + "type": "string" + }, + "example": "en-US" + }, + { + "name": "Customer-Reference", + "in": "header", + "description": "The unique reference for the customer associated with the current session", + "schema": { + "type": "string" + }, + "example": "cust_1d14f624-6910-4c18-a2b9-d9e14296cd4c" + }, + { + "name": "orderId", + "in": "path", + "description": "The ID of the order", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "00a6fbce-0386-4e34-a504-a708ea789df0" + }, + { + "name": "orderLineId", + "in": "path", + "description": "The ID of the order line", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "76d901d2-f1ea-4b3b-9e28-5be8b46096e4" + }, + { + "name": "expand", + "in": "query", + "description": "Defines the properties that should be expanded in the response", + "schema": { + "type": "string" + }, + "examples": { + "Expand none": { + "value": " " + }, + "Expand prices": { + "value": "$price" + }, + "Expand specific property": { + "value": "currency" + }, + "Expand nested properties": { + "value": "paymentmethod[taxclass]" + } + } + }, + { + "name": "fields", + "in": "query", + "description": "Limit the properties returned in the response", + "schema": { + "type": "string" + }, + "examples": { + "Return all fields": { + "value": " " + }, + "Return single field": { + "value": "totalprice" + }, + "Return multiple fields": { + "value": "orderlines,totalprice" + }, + "Return nested fields": { + "value": "orderlines[sku,description]" + } + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrderResponseDto" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + } + } + }, + "patch": { + "tags": [ + "Order" + ], + "summary": "Updates an Order Line in an Order", + "parameters": [ + { + "name": "Api-Key", + "in": "header", + "description": "API key specified through configuration to authorize access to the API.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Store", + "in": "header", + "description": "The ID or the alias of the store", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "6c915eda-2b5f-485d-94b1-0576f3997656" + }, + "Entity Alias": { + "value": "blendid" + } + } + }, + { + "name": "Current-Order", + "in": "header", + "description": "The ID of the current order associated with the current session", + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "b9cd42a9-829f-459c-a589-99fb52b0fc62" + }, + { + "name": "Billing-Country", + "in": "header", + "description": "The ID or alias of the session default billing country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "e718af5e-ee21-4a9c-8023-3aaad2b3acaa" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Billing-Region", + "in": "header", + "description": "The ID or alias of the session default billing region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "9f974f7f-6ddd-4fdd-8e65-f61810e37cb1" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Shipping-Country", + "in": "header", + "description": "The ID or alias of the session default shipping country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "9d1b907f-17a9-4913-b9a4-30d6634ba9d0" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Shipping-Region", + "in": "header", + "description": "The ID or alias of the session default shipping region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "b6f62e17-1f91-4917-8a04-1de94faa6e5a" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Tax-Class", + "in": "header", + "description": "The ID or alias of the session default tax class", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "de74f938-734e-40f6-8039-b114887df84e" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Currency", + "in": "header", + "description": "The ID or alias of the session currency", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "edc91ea1-6795-4e96-bc9e-6ec8f5b2b813" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Accept-Language", + "in": "header", + "description": "The ISO culture code of the current session culture", + "schema": { + "type": "string" + }, + "example": "en-US" + }, + { + "name": "Customer-Reference", + "in": "header", + "description": "The unique reference for the customer associated with the current session", + "schema": { + "type": "string" + }, + "example": "cust_c94d09ff-ce8d-49e3-a139-3c9877f3858f" + }, + { + "name": "orderId", + "in": "path", + "description": "The ID of the order", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "3a687504-a46c-43a9-b5bf-03656a0a930f" + }, + { + "name": "orderLineId", + "in": "path", + "description": "The ID of the order line", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "0be414ec-69b4-40a4-935a-affda21f9bfb" + }, + { + "name": "expand", + "in": "query", + "description": "Defines the properties that should be expanded in the response", + "schema": { + "type": "string" + }, + "examples": { + "Expand none": { + "value": " " + }, + "Expand prices": { + "value": "$price" + }, + "Expand specific property": { + "value": "currency" + }, + "Expand nested properties": { + "value": "paymentmethod[taxclass]" + } + } + }, + { + "name": "fields", + "in": "query", + "description": "Limit the properties returned in the response", + "schema": { + "type": "string" + }, + "examples": { + "Return all fields": { + "value": " " + }, + "Return single field": { + "value": "totalprice" + }, + "Return multiple fields": { + "value": "orderlines,totalprice" + }, + "Return nested fields": { + "value": "orderlines[sku,description]" + } + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateOrderLineRequestDto" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrderResponseDto" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + } + } + } + }, + "/umbraco/commerce/storefront/api/v1/order/{orderId}/items": { + "delete": { + "tags": [ + "Order" + ], + "summary": "Deletes all Order Lines in an Order", + "parameters": [ + { + "name": "Api-Key", + "in": "header", + "description": "API key specified through configuration to authorize access to the API.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Store", + "in": "header", + "description": "The ID or the alias of the store", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "7b713de8-eaea-4a43-ae84-4db0a87586ea" + }, + "Entity Alias": { + "value": "blendid" + } + } + }, + { + "name": "Current-Order", + "in": "header", + "description": "The ID of the current order associated with the current session", + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "41157dd2-d4a1-4b15-81f4-aef60dcde021" + }, + { + "name": "Billing-Country", + "in": "header", + "description": "The ID or alias of the session default billing country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "75240f64-c441-46b3-b791-85fde4f996fd" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Billing-Region", + "in": "header", + "description": "The ID or alias of the session default billing region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "db2af947-07e2-47f1-937f-cb0379ce652d" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Shipping-Country", + "in": "header", + "description": "The ID or alias of the session default shipping country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "2f916699-0220-45ca-8efd-3cc0ad11efa8" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Shipping-Region", + "in": "header", + "description": "The ID or alias of the session default shipping region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "a81541c4-d02d-4fed-8916-b36d6c3aa30d" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Tax-Class", + "in": "header", + "description": "The ID or alias of the session default tax class", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "a1bf380e-5593-4268-9c35-c69e8222d07c" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Currency", + "in": "header", + "description": "The ID or alias of the session currency", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "bab88817-749b-4680-a111-54f0b30f9c57" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Accept-Language", + "in": "header", + "description": "The ISO culture code of the current session culture", + "schema": { + "type": "string" + }, + "example": "en-US" + }, + { + "name": "Customer-Reference", + "in": "header", + "description": "The unique reference for the customer associated with the current session", + "schema": { + "type": "string" + }, + "example": "cust_09bedb9f-0744-4c96-87fa-7afe781eb58d" + }, + { + "name": "orderId", + "in": "path", + "description": "The ID of the order", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "5f910d9e-1ebc-4864-a61a-d745f1582616" + }, + { + "name": "expand", + "in": "query", + "description": "Defines the properties that should be expanded in the response", + "schema": { + "type": "string" + }, + "examples": { + "Expand none": { + "value": " " + }, + "Expand prices": { + "value": "$price" + }, + "Expand specific property": { + "value": "currency" + }, + "Expand nested properties": { + "value": "paymentmethod[taxclass]" + } + } + }, + { + "name": "fields", + "in": "query", + "description": "Limit the properties returned in the response", + "schema": { + "type": "string" + }, + "examples": { + "Return all fields": { + "value": " " + }, + "Return single field": { + "value": "totalprice" + }, + "Return multiple fields": { + "value": "orderlines,totalprice" + }, + "Return nested fields": { + "value": "orderlines[sku,description]" + } + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrderResponseDto" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + } + } + }, + "patch": { + "tags": [ + "Order" + ], + "summary": "Bulk updates Order Lines in an Order", + "parameters": [ + { + "name": "Api-Key", + "in": "header", + "description": "API key specified through configuration to authorize access to the API.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Store", + "in": "header", + "description": "The ID or the alias of the store", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "bda2558c-903c-4523-8aa6-ce37dae1fc6e" + }, + "Entity Alias": { + "value": "blendid" + } + } + }, + { + "name": "Current-Order", + "in": "header", + "description": "The ID of the current order associated with the current session", + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "bdc5489e-35df-4005-a95c-0855b983c85c" + }, + { + "name": "Billing-Country", + "in": "header", + "description": "The ID or alias of the session default billing country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "a0cf0d9b-d5ac-4e74-897d-e8095cf6be0c" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Billing-Region", + "in": "header", + "description": "The ID or alias of the session default billing region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "54253a31-71ca-4ea4-9625-c18d4e98dbf0" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Shipping-Country", + "in": "header", + "description": "The ID or alias of the session default shipping country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "d878fdcd-b441-4805-9efd-a74affda1a2c" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Shipping-Region", + "in": "header", + "description": "The ID or alias of the session default shipping region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "fd93f19f-efcb-4ec0-9700-167ef0a90143" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Tax-Class", + "in": "header", + "description": "The ID or alias of the session default tax class", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "eec64c88-a08b-4f7a-8c81-f05f5179e3ae" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Currency", + "in": "header", + "description": "The ID or alias of the session currency", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "a00be2a4-1d78-480e-afdd-57e73868ae3a" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Accept-Language", + "in": "header", + "description": "The ISO culture code of the current session culture", + "schema": { + "type": "string" + }, + "example": "en-US" + }, + { + "name": "Customer-Reference", + "in": "header", + "description": "The unique reference for the customer associated with the current session", + "schema": { + "type": "string" + }, + "example": "cust_b6aaf43a-e6a9-4df6-8c21-f0e0e267c556" + }, + { + "name": "orderId", + "in": "path", + "description": "The ID of the order", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "3060c626-4026-4497-bd36-57af2143a12b" + }, + { + "name": "expand", + "in": "query", + "description": "Defines the properties that should be expanded in the response", + "schema": { + "type": "string" + }, + "examples": { + "Expand none": { + "value": " " + }, + "Expand prices": { + "value": "$price" + }, + "Expand specific property": { + "value": "currency" + }, + "Expand nested properties": { + "value": "paymentmethod[taxclass]" + } + } + }, + { + "name": "fields", + "in": "query", + "description": "Limit the properties returned in the response", + "schema": { + "type": "string" + }, + "examples": { + "Return all fields": { + "value": " " + }, + "Return single field": { + "value": "totalprice" + }, + "Return multiple fields": { + "value": "orderlines,totalprice" + }, + "Return nested fields": { + "value": "orderlines[sku,description]" + } + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UpdateOrderLineWithIdRequestDto" + } + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrderResponseDto" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + } + } + } + }, + "/umbraco/commerce/storefront/api/v1/orders": { + "post": { + "tags": [ + "Order" + ], + "summary": "Creates a new Order", + "parameters": [ + { + "name": "Api-Key", + "in": "header", + "description": "API key specified through configuration to authorize access to the API.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Store", + "in": "header", + "description": "The ID or the alias of the store", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "b53b88b8-005e-49c2-85bd-93513d587ca1" + }, + "Entity Alias": { + "value": "blendid" + } + } + }, + { + "name": "Current-Order", + "in": "header", + "description": "The ID of the current order associated with the current session", + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "e5f99a43-6141-4560-b0e1-e0dd6c591725" + }, + { + "name": "Billing-Country", + "in": "header", + "description": "The ID or alias of the session default billing country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "55edc2e6-bd07-48b0-a9ae-8ad5cdeb489c" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Billing-Region", + "in": "header", + "description": "The ID or alias of the session default billing region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "a6d4fa59-64bb-4b71-8a46-615ae1932248" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Shipping-Country", + "in": "header", + "description": "The ID or alias of the session default shipping country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "b68ab24e-7fb2-4c3c-904d-659f66223e6e" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Shipping-Region", + "in": "header", + "description": "The ID or alias of the session default shipping region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "0304d3a1-6adf-48df-8698-ac7be540e905" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Tax-Class", + "in": "header", + "description": "The ID or alias of the session default tax class", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "1f5a4a7d-a26b-46f7-bb7b-056b56a8e874" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Currency", + "in": "header", + "description": "The ID or alias of the session currency", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "d18270a7-04f6-4668-ba22-f25c0905483d" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Accept-Language", + "in": "header", + "description": "The ISO culture code of the current session culture", + "schema": { + "type": "string" + }, + "example": "en-US" + }, + { + "name": "Customer-Reference", + "in": "header", + "description": "The unique reference for the customer associated with the current session", + "schema": { + "type": "string" + }, + "example": "cust_07557567-3a6d-4c1c-a1f5-1bd5ea824af5" + }, + { + "name": "expand", + "in": "query", + "description": "Defines the properties that should be expanded in the response", + "schema": { + "type": "string" + }, + "examples": { + "Expand none": { + "value": " " + }, + "Expand prices": { + "value": "$price" + }, + "Expand specific property": { + "value": "currency" + }, + "Expand nested properties": { + "value": "paymentmethod[taxclass]" + } + } + }, + { + "name": "fields", + "in": "query", + "description": "Limit the properties returned in the response", + "schema": { + "type": "string" + }, + "examples": { + "Return all fields": { + "value": " " + }, + "Return single field": { + "value": "totalprice" + }, + "Return multiple fields": { + "value": "orderlines,totalprice" + }, + "Return nested fields": { + "value": "orderlines[sku,description]" + } + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateOrderRequestDto" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrderResponseDto" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + } + } + } + }, + "/umbraco/commerce/storefront/api/v1/paymentmethod/{idOrAlias}": { + "get": { + "tags": [ + "Payment Method" + ], + "summary": "Get a Payment Method by ID or Alias", + "parameters": [ + { + "name": "Api-Key", + "in": "header", + "description": "API key specified through configuration to authorize access to the API.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Store", + "in": "header", + "description": "The ID or the alias of the store", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "71605a40-8c15-45be-b6b3-7c3276897b78" + }, + "Entity Alias": { + "value": "blendid" + } + } + }, + { + "name": "Current-Order", + "in": "header", + "description": "The ID of the current order associated with the current session", + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "e20fef42-63b2-4311-99b7-b1cb917d2b33" + }, + { + "name": "Billing-Country", + "in": "header", + "description": "The ID or alias of the session default billing country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "9295363d-b523-40b3-a7f1-ff98755ac6bc" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Billing-Region", + "in": "header", + "description": "The ID or alias of the session default billing region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "868d24c5-661c-4e9c-9e73-9a78fcdbc86a" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Shipping-Country", + "in": "header", + "description": "The ID or alias of the session default shipping country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "54021f4f-0b2a-4780-a93c-1ff6fb039d27" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Shipping-Region", + "in": "header", + "description": "The ID or alias of the session default shipping region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "ae676130-8ce4-4a22-afde-dcfc4a2e370c" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Tax-Class", + "in": "header", + "description": "The ID or alias of the session default tax class", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "9252cb33-9b93-45d1-aaa3-ed9f3f149b9e" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Currency", + "in": "header", + "description": "The ID or alias of the session currency", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "b17bf9a8-0e3e-4b1b-93a3-fefb9689b30a" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Accept-Language", + "in": "header", + "description": "The ISO culture code of the current session culture", + "schema": { + "type": "string" + }, + "example": "en-US" + }, + { + "name": "Customer-Reference", + "in": "header", + "description": "The unique reference for the customer associated with the current session", + "schema": { + "type": "string" + }, + "example": "cust_b0239945-7e5a-4a55-8f19-868e6b27cdab" + }, + { + "name": "idOrAlias", + "in": "path", + "description": "The ID or the alias of the given resource", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "52ff3a45-e9dd-4ef7-a5d1-bf498c0fa012" + }, + "Entity Alias": { + "value": "alias" + } + } + }, + { + "name": "expand", + "in": "query", + "description": "Defines the properties that should be expanded in the response", + "schema": { + "type": "string" + }, + "examples": { + "Expand none": { + "value": " " + }, + "Expand prices": { + "value": "$price" + }, + "Expand specific property": { + "value": "currency" + }, + "Expand nested properties": { + "value": "paymentmethod[taxclass]" + } + } + }, + { + "name": "fields", + "in": "query", + "description": "Limit the properties returned in the response", + "schema": { + "type": "string" + }, + "examples": { + "Return all fields": { + "value": " " + }, + "Return single field": { + "value": "totalprice" + }, + "Return multiple fields": { + "value": "orderlines,totalprice" + }, + "Return nested fields": { + "value": "orderlines[sku,description]" + } + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PaymentMethodResponseDto" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + } + } + } + }, + "/umbraco/commerce/storefront/api/v1/paymentmethods": { + "get": { + "tags": [ + "Payment Method" + ], + "summary": "Gets all the Payment Methods in a Store", + "parameters": [ + { + "name": "Api-Key", + "in": "header", + "description": "API key specified through configuration to authorize access to the API.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Store", + "in": "header", + "description": "The ID or the alias of the store", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "587947af-2c36-4084-82f4-cfab786a96ea" + }, + "Entity Alias": { + "value": "blendid" + } + } + }, + { + "name": "Current-Order", + "in": "header", + "description": "The ID of the current order associated with the current session", + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "4ea4185f-4dd2-4c2d-82c2-aecf334b0d18" + }, + { + "name": "Billing-Country", + "in": "header", + "description": "The ID or alias of the session default billing country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "685f97ad-c3ff-4b4b-ae3e-2294bd5396ab" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Billing-Region", + "in": "header", + "description": "The ID or alias of the session default billing region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "5e8f5b86-b1b6-40f3-9953-4195ff224b53" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Shipping-Country", + "in": "header", + "description": "The ID or alias of the session default shipping country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "82ff479b-2c3d-4ce9-a080-24aa9dde11a4" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Shipping-Region", + "in": "header", + "description": "The ID or alias of the session default shipping region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "3119c012-db73-40f1-99fa-0f7efa953542" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Tax-Class", + "in": "header", + "description": "The ID or alias of the session default tax class", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "b0327cb0-7350-463c-940e-0d4c6ef2e893" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Currency", + "in": "header", + "description": "The ID or alias of the session currency", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "989e8a06-31fa-40f6-886b-1f47565cc5b9" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Accept-Language", + "in": "header", + "description": "The ISO culture code of the current session culture", + "schema": { + "type": "string" + }, + "example": "en-US" + }, + { + "name": "Customer-Reference", + "in": "header", + "description": "The unique reference for the customer associated with the current session", + "schema": { + "type": "string" + }, + "example": "cust_430b99c0-de84-447c-b1d7-c457ddbd476c" + }, + { + "name": "filter", + "in": "query", + "description": "Filter the returned list of items", + "schema": { + "type": "string" + }, + "examples": { + "Return all results": { + "value": " " + }, + "Return items allowed in a given country": { + "value": "allowedInCountry:GB" + } + } + }, + { + "name": "expand", + "in": "query", + "description": "Defines the properties that should be expanded in the response", + "schema": { + "type": "string" + }, + "examples": { + "Expand none": { + "value": " " + }, + "Expand prices": { + "value": "$price" + }, + "Expand specific property": { + "value": "currency" + }, + "Expand nested properties": { + "value": "paymentmethod[taxclass]" + } + } + }, + { + "name": "fields", + "in": "query", + "description": "Limit the properties returned in the response", + "schema": { + "type": "string" + }, + "examples": { + "Return all fields": { + "value": " " + }, + "Return single field": { + "value": "totalprice" + }, + "Return multiple fields": { + "value": "orderlines,totalprice" + }, + "Return nested fields": { + "value": "orderlines[sku,description]" + } + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PaymentMethodResponseDto" + } + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + } + } + } + }, + "/umbraco/commerce/storefront/api/v1/products": { + "get": { + "tags": [ + "Product" + ], + "summary": "Gets one or more Products by product reference", + "parameters": [ + { + "name": "Api-Key", + "in": "header", + "description": "API key specified through configuration to authorize access to the API.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Store", + "in": "header", + "description": "The ID or the alias of the store", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "ab5c64bf-8a31-468c-baba-ae8d61e73547" + }, + "Entity Alias": { + "value": "blendid" + } + } + }, + { + "name": "Current-Order", + "in": "header", + "description": "The ID of the current order associated with the current session", + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "bb750847-8a8c-419c-bb9a-163f96d89d7f" + }, + { + "name": "Billing-Country", + "in": "header", + "description": "The ID or alias of the session default billing country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "52fbd0e4-e65f-4928-ac1e-e4c8e5250d8a" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Billing-Region", + "in": "header", + "description": "The ID or alias of the session default billing region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "a762c4fc-2601-4331-ab6f-485ce36718c9" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Shipping-Country", + "in": "header", + "description": "The ID or alias of the session default shipping country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "33e7cd54-cbc6-4d1e-a326-967f01d2a3aa" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Shipping-Region", + "in": "header", + "description": "The ID or alias of the session default shipping region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "863e6466-21aa-410a-bf86-1861825690a1" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Tax-Class", + "in": "header", + "description": "The ID or alias of the session default tax class", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "5517a711-4742-42a7-a733-c315355cff1f" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Currency", + "in": "header", + "description": "The ID or alias of the session currency", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "57b6cae2-69ad-40ef-ad6f-beb164bc4aff" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Accept-Language", + "in": "header", + "description": "The ISO culture code of the current session culture", + "schema": { + "type": "string" + }, + "example": "en-US" + }, + { + "name": "Customer-Reference", + "in": "header", + "description": "The unique reference for the customer associated with the current session", + "schema": { + "type": "string" + }, + "example": "cust_de245ace-3fb2-4dbd-8cff-f09f67b7f5e7" + }, + { + "name": "productReference", + "in": "query", + "description": "One or more product references of products / product variants to retrieve.", + "schema": { + "type": "string" + }, + "examples": { + "A product": { + "value": "27ee0e97-9dc5-4d47-9a8d-356923ce194c" + }, + "A product variant": { + "value": "c8e2f5ae-2ecf-4537-a564-e53825aff7f6:ede5a80b-5f83-4cb2-9b46-2bf291866453" + } + } + }, + { + "name": "expand", + "in": "query", + "description": "Defines the properties that should be expanded in the response", + "schema": { + "type": "string" + }, + "examples": { + "Expand none": { + "value": " " + }, + "Expand prices": { + "value": "$price" + }, + "Expand specific property": { + "value": "currency" + }, + "Expand nested properties": { + "value": "paymentmethod[taxclass]" + } + } + }, + { + "name": "fields", + "in": "query", + "description": "Limit the properties returned in the response", + "schema": { + "type": "string" + }, + "examples": { + "Return all fields": { + "value": " " + }, + "Return single field": { + "value": "totalprice" + }, + "Return multiple fields": { + "value": "orderlines,totalprice" + }, + "Return nested fields": { + "value": "orderlines[sku,description]" + } + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProductResponseDto" + } + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + } + } + } + }, + "/umbraco/commerce/storefront/api/v1/shippingmethod/{idOrAlias}": { + "get": { + "tags": [ + "Shipping Method" + ], + "summary": "Get a Shipping Method by ID or Alias", + "parameters": [ + { + "name": "Api-Key", + "in": "header", + "description": "API key specified through configuration to authorize access to the API.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Store", + "in": "header", + "description": "The ID or the alias of the store", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "3845deb0-8a8c-4c3f-b659-275ecdde7317" + }, + "Entity Alias": { + "value": "blendid" + } + } + }, + { + "name": "Current-Order", + "in": "header", + "description": "The ID of the current order associated with the current session", + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "1f56a2a7-00f5-4341-9579-a3a32c0cc5d3" + }, + { + "name": "Billing-Country", + "in": "header", + "description": "The ID or alias of the session default billing country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "43b6cf87-bd03-4074-9c6f-a65b03654084" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Billing-Region", + "in": "header", + "description": "The ID or alias of the session default billing region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "7b5bcdf9-eec4-4519-9793-56f43023881b" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Shipping-Country", + "in": "header", + "description": "The ID or alias of the session default shipping country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "748650ba-b7b9-429b-ba13-01e96c4d2127" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Shipping-Region", + "in": "header", + "description": "The ID or alias of the session default shipping region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "8453aca6-45f0-4c04-9de7-c6b346d06926" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Tax-Class", + "in": "header", + "description": "The ID or alias of the session default tax class", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "e0f21e7b-f3a9-4261-92c4-d9a30c7fc2db" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Currency", + "in": "header", + "description": "The ID or alias of the session currency", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "a94f9577-9ce7-4164-bda4-ef5938dc557f" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Accept-Language", + "in": "header", + "description": "The ISO culture code of the current session culture", + "schema": { + "type": "string" + }, + "example": "en-US" + }, + { + "name": "Customer-Reference", + "in": "header", + "description": "The unique reference for the customer associated with the current session", + "schema": { + "type": "string" + }, + "example": "cust_6a30cebe-fd0c-4c3d-84d2-8d5f880dc041" + }, + { + "name": "idOrAlias", + "in": "path", + "description": "The ID or the alias of the given resource", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "61060231-d89c-4de0-a7da-33b9465ed755" + }, + "Entity Alias": { + "value": "alias" + } + } + }, + { + "name": "expand", + "in": "query", + "description": "Defines the properties that should be expanded in the response", + "schema": { + "type": "string" + }, + "examples": { + "Expand none": { + "value": " " + }, + "Expand prices": { + "value": "$price" + }, + "Expand specific property": { + "value": "currency" + }, + "Expand nested properties": { + "value": "paymentmethod[taxclass]" + } + } + }, + { + "name": "fields", + "in": "query", + "description": "Limit the properties returned in the response", + "schema": { + "type": "string" + }, + "examples": { + "Return all fields": { + "value": " " + }, + "Return single field": { + "value": "totalprice" + }, + "Return multiple fields": { + "value": "orderlines,totalprice" + }, + "Return nested fields": { + "value": "orderlines[sku,description]" + } + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ShippingMethodResponseDto" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + } + } + } + }, + "/umbraco/commerce/storefront/api/v1/shippingmethods": { + "get": { + "tags": [ + "Shipping Method" + ], + "summary": "Gets all the Shipping Methods in a Store", + "parameters": [ + { + "name": "Api-Key", + "in": "header", + "description": "API key specified through configuration to authorize access to the API.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Store", + "in": "header", + "description": "The ID or the alias of the store", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "2a88d89e-a754-4d5f-b9f8-b4b482ceb2a4" + }, + "Entity Alias": { + "value": "blendid" + } + } + }, + { + "name": "Current-Order", + "in": "header", + "description": "The ID of the current order associated with the current session", + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "ccee4cae-fe96-4920-bee1-233a43b250fe" + }, + { + "name": "Billing-Country", + "in": "header", + "description": "The ID or alias of the session default billing country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "79e62c9f-6161-4465-b66a-7caf273b5bf0" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Billing-Region", + "in": "header", + "description": "The ID or alias of the session default billing region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "51c1bf45-ad7a-4c3b-9495-9ee2acb368c6" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Shipping-Country", + "in": "header", + "description": "The ID or alias of the session default shipping country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "47f7c554-7bdb-42f6-99b6-81941a9658b5" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Shipping-Region", + "in": "header", + "description": "The ID or alias of the session default shipping region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "6caa7104-e602-40a2-a052-3b6b4a9208c2" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Tax-Class", + "in": "header", + "description": "The ID or alias of the session default tax class", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "fcc0aba4-44a7-43c8-b8c7-00138d16a4bd" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Currency", + "in": "header", + "description": "The ID or alias of the session currency", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "a722f159-238f-4ff1-8ee4-062074f3598b" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Accept-Language", + "in": "header", + "description": "The ISO culture code of the current session culture", + "schema": { + "type": "string" + }, + "example": "en-US" + }, + { + "name": "Customer-Reference", + "in": "header", + "description": "The unique reference for the customer associated with the current session", + "schema": { + "type": "string" + }, + "example": "cust_d742c337-747e-453c-be07-61d894cb2e0b" + }, + { + "name": "filter", + "in": "query", + "description": "Filter the returned list of items", + "schema": { + "type": "string" + }, + "examples": { + "Return all results": { + "value": " " + }, + "Return items allowed in a given country": { + "value": "allowedInCountry:GB" + } + } + }, + { + "name": "expand", + "in": "query", + "description": "Defines the properties that should be expanded in the response", + "schema": { + "type": "string" + }, + "examples": { + "Expand none": { + "value": " " + }, + "Expand prices": { + "value": "$price" + }, + "Expand specific property": { + "value": "currency" + }, + "Expand nested properties": { + "value": "paymentmethod[taxclass]" + } + } + }, + { + "name": "fields", + "in": "query", + "description": "Limit the properties returned in the response", + "schema": { + "type": "string" + }, + "examples": { + "Return all fields": { + "value": " " + }, + "Return single field": { + "value": "totalprice" + }, + "Return multiple fields": { + "value": "orderlines,totalprice" + }, + "Return nested fields": { + "value": "orderlines[sku,description]" + } + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ShippingMethodResponseDto" + } + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + } + } + } + }, + "/umbraco/commerce/storefront/api/v1/store/{idOrAlias}": { + "get": { + "tags": [ + "Store" + ], + "summary": "Gets a Store by ID or Alias", + "parameters": [ + { + "name": "Api-Key", + "in": "header", + "description": "API key specified through configuration to authorize access to the API.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "Current-Order", + "in": "header", + "description": "The ID of the current order associated with the current session", + "schema": { + "type": "string", + "format": "uuid" + }, + "example": "1092cdf5-dda3-4ae4-a07a-81e3a9fd8bfe" + }, + { + "name": "Billing-Country", + "in": "header", + "description": "The ID or alias of the session default billing country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "6f34bfec-acd7-46c7-b472-499528af25f4" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Billing-Region", + "in": "header", + "description": "The ID or alias of the session default billing region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "5cbe3147-a891-4fa7-bd52-d55116d84fca" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Shipping-Country", + "in": "header", + "description": "The ID or alias of the session default shipping country", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "e4567d73-227b-4817-9b07-95a79f7a9682" + }, + "Entity Alias": { + "value": "us" + } + } + }, + { + "name": "Shipping-Region", + "in": "header", + "description": "The ID or alias of the session default shipping region", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "a5a48afe-1b7d-4540-9a53-f0792c79d6f4" + }, + "Entity Alias": { + "value": "az" + } + } + }, + { + "name": "Tax-Class", + "in": "header", + "description": "The ID or alias of the session default tax class", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "a5cc0430-e423-47fe-8ab8-85e2e3b017a4" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Currency", + "in": "header", + "description": "The ID or alias of the session currency", + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "ccadbfd4-0f08-418c-8a7f-02dbd736135f" + }, + "Entity Alias": { + "value": "or" + } + } + }, + { + "name": "Accept-Language", + "in": "header", + "description": "The ISO culture code of the current session culture", + "schema": { + "type": "string" + }, + "example": "en-US" + }, + { + "name": "Customer-Reference", + "in": "header", + "description": "The unique reference for the customer associated with the current session", + "schema": { + "type": "string" + }, + "example": "cust_95e41d45-068b-47bd-9d13-5a75de4a757e" + }, + { + "name": "idOrAlias", + "in": "path", + "description": "The ID or the alias of the given resource", + "required": true, + "schema": { + "type": "string" + }, + "examples": { + "Entity ID": { + "value": "805e2989-7e91-4649-bbf1-35374f65ac28" + }, + "Entity Alias": { + "value": "alias" + } + } + }, + { + "name": "expand", + "in": "query", + "description": "Defines the properties that should be expanded in the response", + "schema": { + "type": "string" + }, + "examples": { + "Expand none": { + "value": " " + }, + "Expand prices": { + "value": "$price" + }, + "Expand specific property": { + "value": "currency" + }, + "Expand nested properties": { + "value": "paymentmethod[taxclass]" + } + } + }, + { + "name": "fields", + "in": "query", + "description": "Limit the properties returned in the response", + "schema": { + "type": "string" + }, + "examples": { + "Return all fields": { + "value": " " + }, + "Return single field": { + "value": "totalprice" + }, + "Return multiple fields": { + "value": "orderlines,totalprice" + }, + "Return nested fields": { + "value": "orderlines[sku,description]" + } + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/StoreResponseDto" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "AddProductRequestDto": { + "type": "object", + "properties": { + "productReference": { + "type": "string" + }, + "productVariantReference": { + "type": "string", + "nullable": true + }, + "quantity": { + "type": "number", + "format": "double" + }, + "properties": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "nullable": true + }, + "bundleId": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "AdjustedAmountDto": { + "type": "object", + "properties": { + "adjustments": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AmountAdjustmentDto" + }, + "nullable": true + }, + "withoutAdjustments": { + "$ref": "#/components/schemas/AmountDto" + }, + "adjustment": { + "$ref": "#/components/schemas/AmountDto" + }, + "value": { + "$ref": "#/components/schemas/AmountDto" + } + }, + "additionalProperties": false + }, + "AdjustedPriceDto": { + "type": "object", + "properties": { + "adjustments": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PriceAdjustmentDto" + }, + "nullable": true + }, + "withoutAdjustments": { + "$ref": "#/components/schemas/PriceDto" + }, + "adjustment": { + "$ref": "#/components/schemas/PriceDto" + }, + "value": { + "$ref": "#/components/schemas/PriceDto" + } + }, + "additionalProperties": false + }, + "AdjustedPriceWithPreviousAdjustmentsDto": { + "type": "object", + "properties": { + "adjustments": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PriceAdjustmentDto" + }, + "nullable": true + }, + "withoutAdjustments": { + "$ref": "#/components/schemas/PriceDto" + }, + "adjustment": { + "$ref": "#/components/schemas/PriceDto" + }, + "value": { + "$ref": "#/components/schemas/PriceDto" + }, + "previousAdjustments": { + "$ref": "#/components/schemas/PriceDto" + }, + "withPreviousAdjustments": { + "$ref": "#/components/schemas/PriceDto" + }, + "totalAdjustment": { + "$ref": "#/components/schemas/PriceDto" + } + }, + "additionalProperties": false + }, + "AllowedCountryDto": { + "type": "object", + "properties": { + "country": { + "$ref": "#/components/schemas/CountryReferenceDto" + } + }, + "additionalProperties": false + }, + "AmountAdjustmentDto": { + "type": "object", + "properties": { + "name": { + "type": "string", + "nullable": true + }, + "type": { + "type": "string", + "nullable": true + }, + "amount": { + "$ref": "#/components/schemas/AmountDto" + }, + "originalAmount": { + "$ref": "#/components/schemas/AmountDto" + } + }, + "additionalProperties": false + }, + "AmountDto": { + "type": "object", + "properties": { + "currency": { + "$ref": "#/components/schemas/CurrencyReferenceDto" + }, + "value": { + "type": "number", + "format": "double", + "nullable": true + }, + "formatted": { + "$ref": "#/components/schemas/FormattedAmountDto" + } + }, + "additionalProperties": false + }, + "AttributeCombinationDto": { + "type": "object", + "properties": { + "name": { + "$ref": "#/components/schemas/AttributeNameDto" + }, + "value": { + "$ref": "#/components/schemas/AttributeValueDto" + } + }, + "additionalProperties": false + }, + "AttributeNameDto": { + "type": "object", + "properties": { + "alias": { + "type": "string", + "nullable": true + }, + "name": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "AttributeValueDto": { + "type": "object", + "properties": { + "alias": { + "type": "string", + "nullable": true + }, + "name": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "CheckoutConfirmRequestDto": { + "type": "object", + "properties": { + "amount": { + "type": "number", + "format": "double" + }, + "fee": { + "type": "number", + "format": "double", + "nullable": true + }, + "transactionId": { + "type": "string" + }, + "paymentStatus": { + "$ref": "#/components/schemas/PaymentStatus" + }, + "metaData": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "nullable": true + } + }, + "additionalProperties": false + }, + "CheckoutConfirmResponseDto": { + "type": "object", + "properties": { + "orderNumber": { + "type": "string" + }, + "transactionInfo": { + "$ref": "#/components/schemas/OrderTransactionInfoResponseDto" + } + }, + "additionalProperties": false + }, + "CheckoutInitializeResponseDto": { + "type": "object", + "properties": { + "orderNumber": { + "type": "string" + }, + "paymentMethod": { + "$ref": "#/components/schemas/CheckoutPaymentMethodResponseDto" + } + }, + "additionalProperties": false + }, + "CheckoutPaymentMethodResponseDto": { + "type": "object", + "properties": { + "settings": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "metaDataDefinitions": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "nullable": true + }, + "urls": { + "$ref": "#/components/schemas/CheckoutPaymentMethodUrlsResponseDto" + } + }, + "additionalProperties": false + }, + "CheckoutPaymentMethodUrlsResponseDto": { + "type": "object", + "properties": { + "continue": { + "type": "string" + }, + "cancel": { + "type": "string" + }, + "error": { + "type": "string" + }, + "callback": { + "type": "string" + } + }, + "additionalProperties": false + }, + "CheckoutTokenResponseDto": { + "type": "object", + "properties": { + "token": { + "type": "string" + }, + "orderNumber": { + "type": "string" + }, + "payUrl": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "CountryReferenceDto": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "code": { + "type": "string" + } + }, + "additionalProperties": false + }, + "CountryResponseDto": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "code": { + "type": "string" + }, + "name": { + "type": "string", + "nullable": true + }, + "defaultCurrency": { + "$ref": "#/components/schemas/CurrencyReferenceDto" + }, + "defaultPaymentMethod": { + "$ref": "#/components/schemas/PaymentMethodReferenceDto" + }, + "defaultShippingMethod": { + "$ref": "#/components/schemas/ShippingMethodReferenceDto" + }, + "regions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RegionReferenceDto" + }, + "nullable": true + } + }, + "additionalProperties": false + }, + "CreateOrderRequestDto": { + "type": "object", + "properties": { + "language": { + "type": "string", + "nullable": true + }, + "currency": { + "type": "string", + "nullable": true + }, + "taxClass": { + "type": "string", + "nullable": true + }, + "customerReference": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "CurrencyReferenceDto": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "code": { + "type": "string" + } + }, + "additionalProperties": false + }, + "CurrencyResponseDto": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "code": { + "type": "string" + }, + "name": { + "type": "string", + "nullable": true + }, + "culture": { + "type": "string", + "nullable": true + }, + "formatTemplate": { + "type": "string", + "nullable": true + }, + "allowedCountries": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AllowedCountryDto" + }, + "nullable": true + } + }, + "additionalProperties": false + }, + "DiscountReferenceDto": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "alias": { + "type": "string" + } + }, + "additionalProperties": false + }, + "FormattedAmountDto": { + "type": "object", + "properties": { + "value": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "FormattedPriceDto": { + "type": "object", + "properties": { + "withoutTax": { + "type": "string", + "nullable": true + }, + "tax": { + "type": "string", + "nullable": true + }, + "withTax": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "GiftCardReferenceDto": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "code": { + "type": "string" + } + }, + "additionalProperties": false + }, + "HostedCheckoutMode": { + "enum": [ + "Framed", + "Redirect" + ], + "type": "integer", + "format": "int32" + }, + "IApiElementModel": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "readOnly": true + }, + "contentType": { + "type": "string", + "readOnly": true + }, + "properties": { + "type": "object", + "additionalProperties": { }, + "readOnly": true + } + }, + "additionalProperties": false + }, + "OrderAppliedDiscountCodeResponseDto": { + "type": "object", + "properties": { + "discount": { + "$ref": "#/components/schemas/DiscountReferenceDto" + }, + "code": { + "type": "string", + "nullable": true + }, + "isFulfilled": { + "type": "boolean", + "nullable": true + } + }, + "additionalProperties": false + }, + "OrderCustomerInfoResponseDto": { + "type": "object", + "properties": { + "customerReference": { + "type": "string", + "nullable": true + }, + "firstName": { + "type": "string", + "nullable": true + }, + "lastName": { + "type": "string", + "nullable": true + }, + "email": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "OrderLineResponseDto": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "productReference": { + "type": "string", + "nullable": true + }, + "productVariantReference": { + "type": "string", + "nullable": true + }, + "sku": { + "type": "string", + "nullable": true + }, + "name": { + "type": "string", + "nullable": true + }, + "quantity": { + "type": "number", + "format": "double", + "nullable": true + }, + "taxClass": { + "$ref": "#/components/schemas/TaxClassReferenceDto" + }, + "bundleId": { + "type": "string", + "nullable": true + }, + "orderLines": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OrderLineResponseDto" + }, + "nullable": true + }, + "properties": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "nullable": true + }, + "attributes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AttributeCombinationDto" + }, + "nullable": true + }, + "basePrice": { + "$ref": "#/components/schemas/AdjustedPriceDto" + }, + "unitPrice": { + "$ref": "#/components/schemas/AdjustedPriceDto" + }, + "taxRate": { + "type": "number", + "format": "double", + "nullable": true + }, + "totalPrice": { + "$ref": "#/components/schemas/AdjustedPriceWithPreviousAdjustmentsDto" + } + }, + "additionalProperties": false + }, + "OrderPaymentInfoResponseDto": { + "type": "object", + "properties": { + "country": { + "$ref": "#/components/schemas/CountryReferenceDto" + }, + "region": { + "$ref": "#/components/schemas/RegionReferenceDto" + }, + "paymentMethod": { + "$ref": "#/components/schemas/PaymentMethodReferenceDto" + }, + "taxRate": { + "type": "number", + "format": "double", + "nullable": true + }, + "totalPrice": { + "$ref": "#/components/schemas/AdjustedPriceDto" + } + }, + "additionalProperties": false + }, + "OrderResponseDto": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "cartNumber": { + "type": "string", + "nullable": true + }, + "orderNumber": { + "type": "string", + "nullable": true + }, + "languageIsoCode": { + "type": "string", + "nullable": true + }, + "currency": { + "$ref": "#/components/schemas/CurrencyReferenceDto" + }, + "taxClass": { + "$ref": "#/components/schemas/TaxClassReferenceDto" + }, + "taxRate": { + "type": "number", + "format": "double", + "nullable": true + }, + "orderStatus": { + "$ref": "#/components/schemas/OrderStatusReferenceDto" + }, + "customerInfo": { + "$ref": "#/components/schemas/OrderCustomerInfoResponseDto" + }, + "paymentInfo": { + "$ref": "#/components/schemas/OrderPaymentInfoResponseDto" + }, + "shippingInfo": { + "$ref": "#/components/schemas/OrderShippingInfoResponseDto" + }, + "transactionInfo": { + "$ref": "#/components/schemas/OrderTransactionInfoResponseDto" + }, + "discountCodes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OrderAppliedDiscountCodeResponseDto" + }, + "nullable": true + }, + "discounts": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DiscountReferenceDto" + }, + "nullable": true + }, + "giftCards": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GiftCardReferenceDto" + }, + "nullable": true + }, + "totalQuantity": { + "type": "number", + "format": "double", + "nullable": true + }, + "subtotalPrice": { + "$ref": "#/components/schemas/AdjustedPriceWithPreviousAdjustmentsDto" + }, + "totalPrice": { + "$ref": "#/components/schemas/AdjustedPriceWithPreviousAdjustmentsDto" + }, + "transactionAmount": { + "$ref": "#/components/schemas/AdjustedAmountDto" + }, + "orderLines": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OrderLineResponseDto" + }, + "nullable": true + }, + "properties": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "nullable": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "nullable": true + }, + "createDate": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "updateDate": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "finalizedDate": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "isFinalized": { + "type": "boolean", + "nullable": true + } + }, + "additionalProperties": false + }, + "OrderShippingInfoResponseDto": { + "type": "object", + "properties": { + "country": { + "$ref": "#/components/schemas/CountryReferenceDto" + }, + "region": { + "$ref": "#/components/schemas/RegionReferenceDto" + }, + "shippingMethod": { + "$ref": "#/components/schemas/ShippingMethodReferenceDto" + }, + "taxRate": { + "type": "number", + "format": "double", + "nullable": true + }, + "totalPrice": { + "$ref": "#/components/schemas/AdjustedPriceDto" + } + }, + "additionalProperties": false + }, + "OrderStatusReferenceDto": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "alias": { + "type": "string" + } + }, + "additionalProperties": false + }, + "OrderTransactionInfoResponseDto": { + "type": "object", + "properties": { + "transactionId": { + "type": "string", + "nullable": true + }, + "authorizedAmount": { + "$ref": "#/components/schemas/AmountDto" + }, + "feeAmount": { + "$ref": "#/components/schemas/AmountDto" + }, + "baseCurrencyExchangeRate": { + "type": "number", + "format": "double", + "nullable": true + }, + "paymentStatus": { + "$ref": "#/components/schemas/PaymentStatus" + } + }, + "additionalProperties": false + }, + "PaymentMethodReferenceDto": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "alias": { + "type": "string" + } + }, + "additionalProperties": false + }, + "PaymentMethodResponseDto": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "alias": { + "type": "string" + }, + "name": { + "type": "string", + "nullable": true + }, + "sku": { + "type": "string", + "nullable": true + }, + "taxClass": { + "$ref": "#/components/schemas/TaxClassReferenceDto" + }, + "paymentProviderAlias": { + "type": "string", + "nullable": true + }, + "price": { + "$ref": "#/components/schemas/PriceDto" + }, + "imageUrl": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "PaymentStatus": { + "enum": [ + "Initialized", + "Authorized", + "Captured", + "Cancelled", + "Refunded", + "PendingExternalSystem", + "Error" + ], + "type": "integer", + "format": "int32" + }, + "PriceAdjustmentDto": { + "type": "object", + "properties": { + "name": { + "type": "string", + "nullable": true + }, + "type": { + "type": "string", + "nullable": true + }, + "price": { + "$ref": "#/components/schemas/PriceDto" + }, + "originalPrice": { + "$ref": "#/components/schemas/PriceDto" + } + }, + "additionalProperties": false + }, + "PriceDto": { + "type": "object", + "properties": { + "currency": { + "$ref": "#/components/schemas/CurrencyReferenceDto" + }, + "withoutTax": { + "type": "number", + "format": "double", + "nullable": true + }, + "tax": { + "type": "number", + "format": "double", + "nullable": true + }, + "withTax": { + "type": "number", + "format": "double", + "nullable": true + }, + "formatted": { + "$ref": "#/components/schemas/FormattedPriceDto" + } + }, + "additionalProperties": false + }, + "ProblemDetails": { + "type": "object", + "properties": { + "type": { + "type": "string", + "nullable": true + }, + "title": { + "type": "string", + "nullable": true + }, + "status": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "detail": { + "type": "string", + "nullable": true + }, + "instance": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": { } + }, + "ProductResponseDto": { + "type": "object", + "properties": { + "productReference": { + "type": "string" + }, + "productVariantReference": { + "type": "string", + "nullable": true + }, + "sku": { + "type": "string", + "nullable": true + }, + "name": { + "type": "string", + "nullable": true + }, + "imageUrl": { + "type": "string", + "nullable": true + }, + "price": { + "$ref": "#/components/schemas/PriceDto" + }, + "stock": { + "type": "number", + "format": "double", + "nullable": true + }, + "attributes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AttributeCombinationDto" + }, + "nullable": true + }, + "taxClass": { + "$ref": "#/components/schemas/TaxClassReferenceDto" + }, + "properties": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "nullable": true + }, + "isGiftCard": { + "type": "boolean", + "nullable": true + } + }, + "additionalProperties": false + }, + "ProductVariantItemDto": { + "type": "object", + "properties": { + "content": { + "$ref": "#/components/schemas/IApiElementModel" + }, + "attributes": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "nullable": true + }, + "isDefault": { + "type": "boolean", + "nullable": true + } + }, + "additionalProperties": false + }, + "RegionReferenceDto": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "code": { + "type": "string" + } + }, + "additionalProperties": false + }, + "ShippingMethodReferenceDto": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "alias": { + "type": "string" + } + }, + "additionalProperties": false + }, + "ShippingMethodResponseDto": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "alias": { + "type": "string" + }, + "name": { + "type": "string", + "nullable": true + }, + "sku": { + "type": "string", + "nullable": true + }, + "taxClass": { + "$ref": "#/components/schemas/TaxClassReferenceDto" + }, + "price": { + "$ref": "#/components/schemas/PriceDto" + }, + "imageUrl": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "StoreResponseDto": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "alias": { + "type": "string" + }, + "name": { + "type": "string", + "nullable": true + }, + "defaultCountry": { + "$ref": "#/components/schemas/CountryReferenceDto" + }, + "defaultTaxClass": { + "$ref": "#/components/schemas/TaxClassReferenceDto" + }, + "baseCurrency": { + "$ref": "#/components/schemas/CurrencyReferenceDto" + }, + "pricesIncludeTax": { + "type": "boolean", + "nullable": true + } + }, + "additionalProperties": false + }, + "TaxClassReferenceDto": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "alias": { + "type": "string" + } + }, + "additionalProperties": false + }, + "UpdateAddressRequestDto": { + "type": "object", + "properties": { + "line1": { + "type": "string", + "nullable": true + }, + "line2": { + "type": "string", + "nullable": true + }, + "city": { + "type": "string", + "nullable": true + }, + "zipCode": { + "type": "string", + "nullable": true + }, + "country": { + "type": "string", + "nullable": true + }, + "region": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "UpdateContactRequestDto": { + "type": "object", + "properties": { + "firstName": { + "type": "string", + "nullable": true + }, + "lastName": { + "type": "string", + "nullable": true + }, + "company": { + "type": "string", + "nullable": true + }, + "email": { + "type": "string", + "nullable": true + }, + "telephone": { + "type": "string", + "nullable": true + }, + "mobile": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "UpdateCustomerRequestDto": { + "type": "object", + "properties": { + "firstName": { + "type": "string", + "nullable": true + }, + "lastName": { + "type": "string", + "nullable": true + }, + "company": { + "type": "string", + "nullable": true + }, + "email": { + "type": "string", + "nullable": true + }, + "telephone": { + "type": "string", + "nullable": true + }, + "mobile": { + "type": "string", + "nullable": true + }, + "taxCode": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "UpdateOrderLineRequestDto": { + "type": "object", + "properties": { + "quantityIncrement": { + "type": "number", + "format": "double", + "nullable": true + }, + "quantityDecrement": { + "type": "number", + "format": "double", + "nullable": true + }, + "quantity": { + "type": "number", + "format": "double", + "nullable": true + }, + "taxClass": { + "type": "string", + "nullable": true + }, + "properties": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "nullable": true + } + }, + "additionalProperties": false + }, + "UpdateOrderLineWithIdRequestDto": { + "type": "object", + "properties": { + "quantityIncrement": { + "type": "number", + "format": "double", + "nullable": true + }, + "quantityDecrement": { + "type": "number", + "format": "double", + "nullable": true + }, + "quantity": { + "type": "number", + "format": "double", + "nullable": true + }, + "taxClass": { + "type": "string", + "nullable": true + }, + "properties": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "nullable": true + }, + "id": { + "type": "string", + "format": "uuid" + } + }, + "additionalProperties": false + }, + "UpdateOrderRequestDto": { + "type": "object", + "properties": { + "language": { + "type": "string", + "nullable": true + }, + "currency": { + "type": "string", + "nullable": true + }, + "taxClass": { + "type": "string", + "nullable": true + }, + "customerReference": { + "type": "string", + "nullable": true + }, + "customer": { + "$ref": "#/components/schemas/UpdateCustomerRequestDto" + }, + "billingAddress": { + "$ref": "#/components/schemas/UpdateAddressRequestDto" + }, + "shippingAddress": { + "$ref": "#/components/schemas/UpdateShippingAddressRequestDto" + }, + "shippingMethod": { + "type": "string", + "nullable": true + }, + "paymentMethod": { + "type": "string", + "nullable": true + }, + "redeem": { + "type": "array", + "items": { + "type": "string" + }, + "nullable": true + }, + "unredeem": { + "type": "array", + "items": { + "type": "string" + }, + "nullable": true + }, + "properties": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "nullable": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "nullable": true + } + }, + "additionalProperties": false + }, + "UpdateShippingAddressRequestDto": { + "type": "object", + "properties": { + "line1": { + "type": "string", + "nullable": true + }, + "line2": { + "type": "string", + "nullable": true + }, + "city": { + "type": "string", + "nullable": true + }, + "zipCode": { + "type": "string", + "nullable": true + }, + "country": { + "type": "string", + "nullable": true + }, + "region": { + "type": "string", + "nullable": true + }, + "contact": { + "$ref": "#/components/schemas/UpdateContactRequestDto" + }, + "sameAsBilling": { + "type": "boolean" + } + }, + "additionalProperties": false + } + } + } +} diff --git a/14/umbraco-commerce/.gitbook/assets/umbraco_free_way_01.png b/14/umbraco-commerce/.gitbook/assets/umbraco_free_way_01.png new file mode 100644 index 00000000000..e683ec85496 Binary files /dev/null and b/14/umbraco-commerce/.gitbook/assets/umbraco_free_way_01.png differ diff --git a/14/umbraco-commerce/.gitbook/assets/variant_filtering.png b/14/umbraco-commerce/.gitbook/assets/variant_filtering.png new file mode 100644 index 00000000000..2672cd355b5 Binary files /dev/null and b/14/umbraco-commerce/.gitbook/assets/variant_filtering.png differ diff --git a/14/umbraco-commerce/.gitbook/assets/variants_editor_table_view.png b/14/umbraco-commerce/.gitbook/assets/variants_editor_table_view.png new file mode 100644 index 00000000000..1ac675eb291 Binary files /dev/null and b/14/umbraco-commerce/.gitbook/assets/variants_editor_table_view.png differ diff --git a/14/umbraco-commerce/README.md b/14/umbraco-commerce/README.md new file mode 100644 index 00000000000..df02205a5d2 --- /dev/null +++ b/14/umbraco-commerce/README.md @@ -0,0 +1,40 @@ +--- +title: Umbraco Commerce Documentation +description: >- + Browse the Umbraco Commerce documentation to learn more about the addon and + how to use it. +--- + +# Umbraco Commerce v14 Alpha Documentation + +{% hint style="danger" %} +This documentation is a work in progress and may undergo further revisions, updates, or amendments. The information contained herein is subject to change without notice. +{% endhint %} + +Umbraco Commerce is the official Umbraco e-commerce addon for your Umbraco CMS website. It can be used to set up small webshops, while it can also be implemented for big-scale e-commerce solutions spanning multiple countries. + +
Getting StartedFind all the information you need to get started using Umbraco Commerce with your Umbraco CMS implementation.introduction.mdcommerce-icon.png
How-to GuidesLooking to configure and implement something specific? Take a look through the How-to section where you might find a guide that fits your needs.overview.mdumbraco_free_way_01.png
Key ConceptsLooking to learn more about the different concepts and features of Umbraco Commerce? You can find detailed information about each of them in this section.overview.mdUmbraco_Brand_Guidelines_2020_28_Illustration blocks.png
+ + + +## Quick links + +{% content-ref url="reference/go-behind-the-scenes.md" %} +[go-behind-the-scenes.md](reference/go-behind-the-scenes.md) +{% endcontent-ref %} + +{% hint style="info" %} +Are you looking for Vendr documentation? + +The articles and topics covered on this documentation site are for Umbraco Commerce. + +Documentation for Vendr is located on the [Vendr Documentation site](https://vendr.net/docs/). +{% endhint %} + +### Using These Docs + +**These docs are aimed at developers** who have at least a basic understanding of [Umbraco](https://umbraco.com), as well as C# and MVC principals. + +If you require assistance you can use our support channels to seek assistance. diff --git a/14/umbraco-commerce/SUMMARY.md b/14/umbraco-commerce/SUMMARY.md new file mode 100644 index 00000000000..fc7f6101b15 --- /dev/null +++ b/14/umbraco-commerce/SUMMARY.md @@ -0,0 +1,96 @@ +# Table of contents + +* [Umbraco Commerce 14 (Alpha) Documentation](README.md) +* [Release Notes](release-notes/README.md) + * [v14.0.0-Alpha](release-notes/v14.0.0-alpha.md) + + + +## Installation + +* [Installing Umbraco Commerce](installation/install.md) +* [Licensing](installation/the-licensing-model.md) + +## Upgrading + +* [Upgrading Umbraco Commerce](upgrading/upgrade.md) +* [Version Specific Upgrade Notes](upgrading/version-specific-upgrade-notes.md) +* [Migrate from Vendr to Umbraco Commerce](upgrading/migrate-from-vendr-to-umbraco-commerce/README.md) + * [Migrate Umbraco Commerce Checkout](upgrading/migrate-from-vendr-to-umbraco-commerce/migrate-umbraco-commerce-checkout.md) + * [Migrate custom Payment Providers](upgrading/migrate-from-vendr-to-umbraco-commerce/migrate-custom-payment-providers.md) + +## Getting Started + +* [Introduction](getting-started/introduction.md) +* [Umbraco Configuration](getting-started/umbraco-configuration.md) +* [User Interface](getting-started/user-interface.md) + +## How-To Guides + +* [Overview](how-to-guides/overview.md) +* [Configure SQLite support](how-to-guides/configure-sqlite-support.md) +* [Limit Order Line Quantity](how-to-guides/limit-orderline-quantity.md) +* [Use an Alternative Database for Umbraco Commerce Tables](how-to-guides/use-an-alternative-database-for-umbraco-commerce-tables.md) + +## Key Concepts + +* [Get to know the main features](key-concepts/overview.md) +* [Base Currency](key-concepts/base-currency.md) +* [Bulk Actions](key-concepts/bulk-actions.md) +* [Calculators](key-concepts/calculators.md) +* [Dependency Injection](key-concepts/dependency-injection.md) +* [Discount Rules / Rewards](key-concepts/discount-rules-and-rewards.md) +* [Events](key-concepts/events.md) +* [Fluent API](key-concepts/fluent-api.md) +* [Order Calculation State](key-concepts/order-calculation-state.md) +* [Payment Forms](key-concepts/payment-forms.md) +* [Payment Providers](key-concepts/payment-providers.md) +* [Pipelines](key-concepts/pipelines.md) +* [Price/Amount Adjustments](key-concepts/price-amount-adjustments.md) +* [Price Freezing](key-concepts/price-freezing.md) +* [Product Adapters](key-concepts/product-adapters.md) +* [Product Bundles](key-concepts/product-bundles.md) +* [Product Variants](key-concepts/product-variants/README.md) + * [Complex Variants](key-concepts/product-variants/complex-variants.md) +* [Properties](key-concepts/properties.md) +* [ReadOnly and Writable Entities](key-concepts/readonly-and-writable-entities.md) +* [Search Specifications](key-concepts/search-specifications.md) +* [Settings Objects](key-concepts/settings-objects.md) +* [Shipping Package Factories](key-concepts/shipping-package-factories.md) +* [Shipping Providers](key-concepts/shipping-providers.md) +* [Shipping Range/Rate Providers](key-concepts/shipping-range-and-rate-providers.md) +* [Tax Sources](key-concepts/tax-sources.md) + +* [Umbraco Properties](key-concepts/umbraco-properties.md) +* [Unit of Work](key-concepts/unit-of-work.md) +* [Umbraco Commerce Builder](key-concepts/umbraco-commerce-builder.md) +* [Webhooks](key-concepts/webhooks.md) + +## Tutorials + +* [Overview](tutorials/overview.md) + +## Reference + +* [Stores](reference/stores/README.md) +* [Shipping](reference/shipping/README.md) + * [Fixed Rate Shipping](reference/shipping/fixed-rate-shipping.md) + * [Dynamic Rate Shipping](reference/shipping/dynamic-rate-shipping.md) + * [Realtime Rate Shipping](reference/shipping/realtime-rate-shipping.md) +* [Storefront API](reference/storefront-api/README.md) + * [Endpoints](reference/storefront-api/endpoints/README.md) + * [Order](reference/storefront-api/endpoints/order.md) + * [Checkout](reference/storefront-api/endpoints/checkout.md) + * [Product](reference/storefront-api/endpoints/product.md) + * [Customer](reference/storefront-api/endpoints/customer.md) + * [Store](reference/storefront-api/endpoints/store.md) + * [Currency](reference/storefront-api/endpoints/currency.md) + * [Country](reference/storefront-api/endpoints/country.md) + * [Payment method](reference/storefront-api/endpoints/payment-method.md) + * [Shipping method](reference/storefront-api/endpoints/shipping-method.md) + * [Content](reference/storefront-api/endpoints/content.md) +* [Go behind the scenes](reference/go-behind-the-scenes.md) diff --git a/14/umbraco-commerce/changelog-archive/Vendr-core.md b/14/umbraco-commerce/changelog-archive/Vendr-core.md new file mode 100644 index 00000000000..2de685aae2f --- /dev/null +++ b/14/umbraco-commerce/changelog-archive/Vendr-core.md @@ -0,0 +1,920 @@ +--- +title: Changelog +description: Changelog for the Core Vendr product +--- + +# Changelog + +### v3.0.11 + +**Date:** 2023-03-22\ +**Description:** Patch release with minor bug fixes and non-breaking enhancements + +* Fixed a bug where order line quantities were being multiplied by 10 due to culture-related issues ([#405](https://github.com/vendrhub/vendr/issues/405)). +* Fixed bug Vendr tree would vanish if installed with Umbraco Workflow due to controllers having the same class name. All Vendr trees have now been prefixed with `Vendr` ([#408](https://github.com/vendrhub/vendr/issues/408)). +* Fixed bug where date-based order advanced filters used UTC time when all other front-end dates were in local time. Vendr now converts the dates to UTC before applying the filters ([#406](https://github.com/vendrhub/vendr/issues/406)). +* Changed the default product adapter to also search child variants names, not just SKUs. +* Changed the multi-variants property editor to construct an SKU from the parent node if the variant node doesn't have an SKU defined. + +### v3.0.10 + +**Date:** 2023-02-24\ +**Description:** Patch release with minor bug fixes and non-breaking enhancements + +* Fixed issue where discount codes wouldn't persist changes when being updated. + +### v3.0.8/9 + +**Date:** 2023-02-14\ +**Description:** Patch release with minor bug fixes and non-breaking enhancements + +* Added debug symbols to NuGet packages. +* Fixed session manager incorrectly storing the default shipping method in the default shipping country cookie value ([#404](https://github.com/vendrhub/vendr/issues/404)). + +### v3.0.7 + +**Date:** 2023-02-07\ +**Description:** Patch release with minor bug fixes and non-breaking enhancements + +* Added extra logging around payment request handler failures. +* Fixed error when processing payment requests and an order number can't be found. Now returns 200 status to allow webhook notification to stop, but logs the error locally. + +### v3.0.6 + +**Date:** 2023-01-16\ +**Description:** Patch release with minor bug fixes and non-breaking enhancements + +* Added an extra `CalculatePrice` extension method to `IProductSnapshot` that can accept a current order as a reference to save on processing if a current order is known to exist. +* The product Attribute value sort order is now correctly honored. +* Fixed entity controllers actions not working for users with the only `Commerce` role assigned. We misunderstood how the authorize attribute works as we assumed it enforced them as an OR operation, but it appears it enforces them as an `AND` operation and so we now have an explicit `SettingsOrCommerce` section policy. + +### v3.0.5 + +**Date:** 2022-12-01\ +**Description:** Patch release with minor bug fixes and non-breaking enhancements + +* Added readme for new Umbraco marketplace. +* Changed the product adapter so that it only searches for published products. +* Fixed an issue where calls to entity services inside event handlers didn't have the most up-to-date entity because the temporary cache wasn't pushed back before the event handlers were called. +* Fixed the telemetry data service failing in Umbraco v11 due to it using an obsolete constructor that got removed in v11. +* Fixed the product adapter search not working for multi-word phrases. +* Fixed bug with price property editor erroring if there is no fraction config. + +### v3.0.4 + +**Date:** 2022-11-08\ +**Description:** Patch release with minor bug fixes and non-breaking enhancements + +* Added Umbraco marketplace tag to main NuGet package. +* Check `X-Forwarded-Host` when determining the base URL for payment provider links. +* Re-cache the order state if the order changes during save events. +* Fixed error when order properties are searched when not in the correct `alias:value` format. Now ignores values not in this format. +* Fixed the tags order filter not actually taking supplied tag values into account. + +### v3.0.3 + +**Date:** 2022-10-17\ +**Description:** Patch release with minor bug fixes and non-breaking enhancements + +* Fixed error screen when using dictionary input fields due to the resolution of a scoped service from a singleton ([#392](https://github.com/vendrhub/vendr/issues/392)). +* Fixed error screen when generating models builder models in Umbraco 10.3.0 RC due to changes in block editor base classes ([#393](https://github.com/vendrhub/vendr/issues/393)). + +### v3.0.2 + +**Date:** 2022-10-11\ +**Description:** Patch release with minor bug fixes and non-breaking enhancements + +* Fixed issue when deleting allowed shipping method countries causing an error due to them referencing a `paymentMethodId` in their SQL statements rather than `shippingMethodId`. +* Fixed issue with NPoco `ExecuteScalar` not handling Guid conversions. +* Fixed bug in the order list not pulling back child entities correctly due to an inner join having its order by clause removed causing a miss-match of orders being fetched. +* Fixed issue where joins with an order by's would throw an exception if there wasn't an offset applied to the query. We now always apply an offset, even if one isn't necessary. +* Fixed bug where `BeginPaymentForm` would overwrite the customer reference if one was already set. It now only sets the customer reference if one isn't already present. + +### v3.0.1 + +**Date:** 2022-09-29\ +**Description:** Patch release with minor bug fixes and non-breaking enhancements + +* Fixed DB migration error due to `DF__vendrOrderLine__quantity` prevent a migration step to execute when migrating from a v2 install. +* Fixed bug where Azure would automatically use `System.Data.SqlClient` when it should use `Microsoft.Data.SqlClient` +* Fixed Vendr health checks failing due to shipping method exception ([#388](https://github.com/vendrhub/vendr/issues/388)). +* Fixed `Unit of work has already been completed` error when creating all countries from the ISO country list ([#389](https://github.com/vendrhub/vendr/issues/389)). + +## v3.0.0 + +**Date:** 2022-09-21\ +**Description:** Minor release with additional features and bug fixes + +* Added `IVendrBuilder` concept to encapsulate Vendr's build configuration. +* Added option SQLite support for testing purposes. +* Added ability to store Vendr data in the alternative database to Umbraco. +* Added optimistic concurrency checks to ensure an entity hasn't changed since the last save. +* Added databased indexes on all `storeId` and `orderId` columns to aid performance. +* Added async support to `BeginPaymentForm` extension. +* Added support for bundle base price adjustments. +* Added new `BundleOrderLine` and `BundledOrderLine` entities for strongly typed access to bundle-specific features. +* Added new `IsBundle` and `GetBundles` methods to make working with bundles easier. +* Added default values support to payment provider/discount settings objects. +* Changed Umbraco dependency persistence layer for our own implementation. +* Changed Unit of Work to use an `Execute` method rather than using the `Create` method in a using statement. +* Changed `AsWritable` to automatically fetch the latest entity from the database instead of copying the in-memory state. +* Fixed issue where reverting a cart would revert stock levels when this should only occur for finalized orders. +* Dropped Umbraco v8 and v9 support +* Retargeted for Umbraco v10+ + +### v2.4.1 + +**Date:** 2022-10-11\ +**Description:** Patch release with minor bug fixes and non-breaking enhancements + +* Fixed bug where `BeginPaymentForm` would overwrite the customer reference if one was already set. It now only sets the customer reference if one isn't already present. + +## v2.4.0 + +**Date:** 2022-08-13\ +**Description:** Minor release with additional features and bug fixes + +* Added support for Cart/Order list config files to enable displaying order properties in the order list view. +* Fixed bug in property editor dialog passing the `orderId` in the `storeId` config setting. +* Fixed bug in the session manager storing the default payment method under the default country session ID. + +### v2.3.4 + +**Date:** 2022-08-22\ +**Description:** Patch release with minor bug fixes and non-breaking enhancements + +* Added more null checking to the `UmbracoStockSynchronizer` as the fix in 2.3.3 didn't quite fix the issue. +* Fixed regression with `AsyncHelper` causing error/hanging when attempting to send emails. + +### v2.3.3 + +**Date:** 2022-08-08\ +**Description:** Patch release with minor bug fixes and non-breaking enhancements + +* Fixed issue with `UmbracoStockSynchronizer` causing an exception if there is no previous data stored in the variants property editor. +* Fixed a bug in export logic where exporting multiple templates would actually just export the first template multiple times. +* Fixes issue with `AsyncHelper` causing `AggregateException` by switching to our newer style of `AsyncHelper` from v3. + +### v2.3.2 + +**Date:** 2022-07-06\ +**Description:** Patch release with minor bug fixes and non-breaking enhancements + +* Fixed v10 regression causing indexing of products/variants in Lucene to fail. +* Fixed null error in `RaiseOrderLineChangeEvents` as original Tax Class ID can be null for new order lines. +* Fixed `XSS` issue in custom order table cell rendering. Now HTML escapes all user input before rendering. +* Fixed bug on licenses dashboard now showing the Refresh button for subscription licenses. + +### v2.3.1 + +**Date:** 2022-06-21\ +**Description:** Patch release with minor bug fixes and non-breaking enhancements + +* Fixed v10 regression due to Umbraco API change where saving / publishing content would cause an error screen. +* Fixed v10 regression due to Umbraco API change where internal index would not rebuild and so Vendr store finders would not run. +* Fixed bug in Content based store finder due to incorrectly overriding base method. + +## v2.3.0 + +**Date:** 2022-06-21\ +**Description:** Minor release with Umbraco v10 support + +* Added decimal place configuration to `Vendr: Price` property editor. +* Added logging to payment callback handler. +* Added validation events to payment capture, cancel and refund actions to allow validating whether those actions should occur or not ([#369](https://github.com/vendrhub/vendr/issues/369)). +* Added support for default settings in payment providers and discounts rules / rewards. Can now set default values on settings Poco and these will apply during create. +* Updated DB migrations to work with SQLite (v10 only). +* Fixed v10 compatability issues. +* Fixed order editor UI issue with bundle order lines showing the parent order line prices. +* Fixed bug with unit price discounts being capped at a bundle order lines base price. +* Fixed bug where deleting carts would restock items. Now only reverts an order if it has been finalized. +* Fixed bug where Export Templates weren't being deleted ([#373](https://github.com/vendrhub/vendr/issues/373)). + +### v2.2.1 + +**Date:** 2022-05-23\ +**Description:** Patch release with minor bug fixes and non-breaking enhancements + +* Added ability to change the tax class of an order line. +* Added ability to set the number of decimal places a stock input field should accept. +* Fixed bug in stock input field formatting the number incorrectly for the current users culture ([#367](https://github.com/vendrhub/vendr/issues/367)). +* Fixed error when saving stock due to setting property value to string `"-1"` when it expects to be the decimal `-1` ([#368](https://github.com/vendrhub/vendr/issues/368)). + +## v2.2.0 + +**Date:** 2022-05-06\ +**Description:** Minor release with some breaking changes + +* Added `GetCurrentOrder` method to `SessionManager` that accepts a `customerReference` to allow finding an order via `IOrderFinder`. +* `GetCurrentOrder` on `SessionManager` with no `customerReference` parameter now calls the new `GetCurrentOrder` method passing in the current logged in members ID. This shouldn't change any behaviour for the majority of stores without order finders, but if intalls do have order finders you'll now need to pass `null` to the `customerReference` parameter if you want to get the current order whilst avoiding using order finders. +* `IOrderFinder.FindOrder` now accetps an additional `storeId` parameter. +* `IOrderService.FindOrder` now accetps an additional `storeId` parameter. + +### v2.1.3 + +**Date:** 2022-04-28\ +**Description:** Patch release with minor bug fixes and non-breaking enhancements + +* Updated price calculation process to set total prices temporarily as the pipelines goes along so that any stage within the calculation process you can get the total prices at the current state. +* Updated the licensing dialog to display a warning if there is an inactive license installed which usually means the local environment has been updraded beyond the installed licenses upgrade window ([#360](https://github.com/vendrhub/vendr/issues/360)). +* Fixed order table layout issue due to too large a `colspan` attribute. +* Fixed recuring tasks having the delay / interval in the wrong order in Umbraco v9. +* Fixed conflicting routes issue in Umbraco v9.5RC due to Umbraco introducing a new AnalyticsController. Have now prefixed all Vendr controllers with `Vendr` ([#362](https://github.com/vendrhub/vendr/issues/362)). +* Fixed product related analytics reports not passing the `storeId` into the product adapter when fetching up to date product info ([#364](https://github.com/vendrhub/vendr/issues/364)). +* Fixed bug when using own order editor config view where the order editor still trys to fix notes fields. Now does a null check before attempting. ([#363](https://github.com/vendrhub/vendr/issues/363)). + +### v2.1.2 + +**Date:** 2022-03-23\ +**Description:** Patch release with minor bug fixes and non-breaking enhancements + +* Added order activity log to order edit screen ([#351](https://github.com/vendrhub/vendr/issues/351)). +* We no longer maintain a cache of all Gift Cards in memory, instead, we do the same as we do with orders and just maintain active Gift Cards on a sliding expiration. +* Fixed issue when using `VariantsEditorValueConverter` in background threads due to the use of scoped services. Now no longer require effective services to be scoped. +* Fixed activity logs not recording the user ID of the user that performed the given task ([#350](https://github.com/vendrhub/vendr/issues/350)). +* Fixed error when saving product attributes due to a bug in deep-equals logic ([#354](https://github.com/vendrhub/vendr/issues/354)). + +### v2.1.1 + +**Date:** 2022-03-07\ +**Description:** Patch release with minor bug fixes and non-breaking enhancements + +* Added constants for the built-in payment provider aliases. +* Added `IUmbracoProductSnapshot` interface to allow snapshots to be swapped out, but still have the default Umbraco node-based stock implementation work. +* Added `ParentOrderLineId` and `ParentBundleId` properties to order lines to be able to easily identify an order line's parent. +* Discount `UsageLimit` is set to `0` if `IsUnlimited` is set to `true`. +* Payment provider callback handler without order info now returns OK status if it can't handle the supplied order, rather than Bad Request. +* Fixed cart edit form submitting on enter for Discount/Gift Card Codes field ([#344](https://github.com/vendrhub/vendr/issues/344)). +* Fixed issue with discounts not updating correctly due to deep comparisons not working. Switched from using `DeepEqual` library to `CompareNetObject` library instead ([#347](https://github.com/vendrhub/vendr/issues/347)). + +## v2.1.0 + +**Date:** 2022-02-14\ +**Description:** Minor release with new features and some breaking changes + +* Added `Carts` feature to `Commerce` section. +* Added `ProductAdapterBase` as a new base class for product adapters. +* Added `Cart` category for email, print, and export templates. +* Added `cart.editor.config.js` file support for controlling editable cart fields differently from editable order fields. +* Added `IUmbracoNodeStoreFinder` interface to allow custom ways of locating a store from an Umbraco node. Default finders and their order are `UmbracoPublishedContentStoreFinder`, `UmbracoLuceneStoreFinder` and `UmbracoContentStoreFinder`. Additional store finders can be added via the `WithUmbracoNodeStoreFinders` collection builder API available on the `IUmbracoBuilder` interface. +* Added Change Status bulk action to allow changing the order status of multiple orders at once ([#335](https://github.com/vendrhub/vendr/issues/335)). +* Added advanced search filter feature to allow searching for orders/carts in a more targeted way. This can also be extended by adding custom `AdvancedFilterBase` implementations to the DI container. +* Added Order tagging support to allow tagging orders with custom tags that can be used for filtering ([#324](https://github.com/vendrhub/vendr/issues/324)). +* Added custom `OutfieldDigitalExchangeRateService` and set as the default implementation that just acts as a proxy to the exchangerate.host API. This is to ensure that we can fix this in the future without people needing to upgrade, should that service ever stop working like the Exchange Rates API service did. +* Order editor customer information dialog now allows the countries to be edited. +* Order search now searches the customer's email too. +* Updated all places that located a store based on an Umbraco node/content item to use the new `IUmbracoNodeStoreFinder` implementations. +* Fixed bug when searching for orders that have an email address assigned (previously threw a malformed SQL error). +* Fixed bug where only admins could pick from store entity pickers ([#342](https://github.com/vendrhub/vendr/issues/342)). +* Fixed path inconsistencies on Linux due to case-sensitive file system ([#341](https://github.com/vendrhub/vendr/issues/341)). +* Fixed variant item editor not showing variant attribute summary in Umbraco v8. +* Fixed the issue with sorting not working due to the change to .NET Core. +* Fixed error when deleting bundle order lines due to items being deleted in the wrong order and thus causing an FK violation. +* Fixed styling issues in store entity picker pre-value editor UI. +* `IProductAdapter` now exposes `SearchProductSummaries`, `GetProductVariantAttributes` and `SearchProductVariantSummaries` methods for editable cart support. +* `IProductAdapter`, `IStockService`, `IProductService`, `IVendrApi` methods that accept a `productReference` / `productVariantReference` parameter now receives a `storeId` parameter as well ([#339](https://github.com/vendrhub/vendr/issues/339)). +* `IPaymentCalculator` and `IShippingCalculator` now accept a nullable `countryId` parameter. + +### v2.0.6 + +**Date:** 2022-02-01\ +**Description:** Patch release with minor bug fixes and non-breaking enhancements + +* Added explicit checks for the use of CloudFlares Flexible Secure Socket Layer (SSL) feature when resolving Vendr URLs. +* Added extra null checks in exchange rate service implementations. +* Added new `ExchangeRateHostCurrencyExchangeRateService` implementation. +* The payment controller now only returns `BadRequest` status if the URL has been tampered with. All other code paths now return a `OK` status so that webhooks won't keep attempting notifications for orders/transactions that can't be handled. +* Move the shipping company name field to be in the same location as the billing company name field. +* Updated the resolution of the `order.editor.config.js` file to prefer a config on disk over a legacy entry in the database table. +* Updated the default `ICurrencyExchangeRateService` to use the free `ExchangeRateHostCurrencyExchangeRateService`. +* Updated the `ExchangeRatesApiCurrencyExchangeRateService` to require an API key as this now appears to be required. +* Fixed license domains list not displaying correctly in the Vendr settings dashboard. +* Fixed divide-by-zero issues when applying exchange rates to an order. + +### v2.0.5 + +**Date:** 2022-01-17\ +**Description:** Patch release with minor bug fixes and non-breaking enhancements + +* Changed `EventBus` and `Pipeline` implementations to no use lazy dependencies as in some occasions it's possible in Umbraco that these get resolved too early before registration is complete and can end up caching a `null` value. +* Changed from using `IStartupFilter` for some core startup configurations to using `IComponent` due to issues with Umbraco Deploy firing too early. +* Fixed regression in license limitations checks for custom product adapters when using a lite license. Then namespace had changed in v2, but we didn't update the limitation check. + +### v2.0.4 + +**Date:** 2021-12-06\ +**Description:** Patch release with minor bug fixes and non-breaking enhancements + +* Changed the stock synchronizer to use an internal cache rather than rely on scoped dependencies. +* Removed Matryoshka override styles as shouldn't be necessary anymore. +* Fixed variants attribute group not showing in variants editor due to core changes in how tabs work. + +### v2.0.3 + +**Date:** 2021-10-26\ +**Description:** Patch release with minor bug fixes and non-breaking enhancements + +* Fixed issue with Opayo payment provider not working due to the `HttpRequestMessage` already having been read ([#4](https://github.com/vendrhub/vendr-payment-provider-opayo/issues/4)). +* Fixed issue with Order Export Template rendering everything on one line due to newline characters being escaped ([#330](https://github.com/vendrhub/vendr/issues/330)). + +### v2.0.2 + +**Date:** 2021-10-20\ +**Description:** Patch release with minor bug fixes and non-breaking enhancements + +* Fixed issue with the Variants property editor creating an empty `General` tab when using tabs on the product document type. + +### v2.0.1 + +**Date:** 2021-10-18\ +**Description:** Patch release with minor bug fixes and non-breaking enhancements + +* Added more null handling when accessing `ProductSnapshot` properties ([#327](https://github.com/vendrhub/vendr/issues/327)). +* Updated the Nuget build tasks to only replace the `App_Plugins\Vendr\backoffice` folder on `Clean`. +* Fixed bug in payment provider callback handler erroring for URLs where the order number isn't known. +* Fixed bug in payment provider context not populating `Request` property when converting to a strongly typed context. +* Fixed regression where deleted gift cards were showing in the gift cards list ([#326](https://github.com/vendrhub/vendr/issues/326)). +* Fixed a number of async deadlock issues. +* Fixed incorrect minimum Umbraco version in Umbraco `package.xml`. + +## v2.0.0 + +**Date:** 2021-10-07\ +**Description:** Major new release with breaking changes + +* Added v9 / .NET Core support. +* Added custom rounding support ([#168](ttps://github.com/vendrhub/vendr/issues/168)). +* Payment providers are now .netstandard2.0. +* Payment provider methods are now async. +* Payment providers now take in a `PaymentProviderContext` for most methods. +* Big project restructuring. +* More details on what's changed in the [v2.0.0 release blog post](https://vendr.net/blog/vendr-2-0-0-release/). + +### v1.8.6 + +**Date:** 2021-08-27\ +**Description:** Patch release with minor bug fixes and non-breaking enhancements + +* Added more null handling in exchange rate service providers. +* Updated the default order number generator to improve randomness and thus prevent collisions, especially in load-balanced environments. +* Fixed intermittent concurrency errors with `EntityCacheKeys`. Switched to a concurrent dictionary for cache key storage. +* Fixed issue with payment provider URLs forcing port 443 for non-localhost URLs. +* Updated the price property editor to allow an explicit zero value to be set ([#314](https://github.com/vendrhub/vendr/issues/314)). +* Fixed issue with analytics dashboard not allowing the viewing of todays figures ([#319](https://github.com/vendrhub/vendr/issues/319)). + +### v1.8.5 + +**Date:** 2021-07-23\ +**Description:** Patch release with minor bug fixes and non-breaking enhancements + +* Fixed regression where order editor configs weren't getting resolved correctly (1.8.4 didn't actually fix this). + +### v1.8.4 + +**Date:** 2021-07-22\ +**Description:** Patch release with minor bug fixes and non-breaking enhancements + +* Added refresh license button to licenses dashboard for subscription licenses. +* Removed `ILicensingService` and have a core `LicensingService` (which is now `sealed`) dependency instead. +* Fixed error where payment interactions from the order editor weren't having any effect ([#316](https://github.com/vendrhub/vendr/issues/316)). +* Fixed regression where order editor configs weren't getting resolved correctly. + +### v1.8.3 + +**Date:** 2021-06-21\ +**Description:** Patch release with minor bug fixes and non-breaking enhancements + +* Added ability to define reply to the email address on email templates ([#287](https://github.com/vendrhub/vendr/issues/287)). +* Added ability to replace and remove event handlers via the Vendr API ([#256](https://github.com/vendrhub/vendr/issues/256)) +* Added support for convention-based resolution of the order editor config, inline with how analytics and gift cards configs work. +* Implemented a `IPaymentService` to encapsulate the Capture, Cancel and Refund actions of a payment gateway to allow re-use outside of the Vendr UI. +* Umbraco Product Adapter now uses `IUmbracoContextFactory` instead of `IUmbracoContextAccessor` so that it can create a context if one isn't present, allowing it to run in background tasks. +* Updated cache refreshers to load their dependencies Lazily as was causing errors in some random instances. +* Updated Store editor to allow default email templates to be un-set in order to allow disabling of default emails ([#223](https://github.com/vendrhub/vendr/issues/223)). +* Updated County and Regions editor to allow Default Country, Payment Methods and Shipping Methods to be not set ([#305](https://github.com/vendrhub/vendr/issues/305)). +* Updated product attribute editor to allow camel case attribute aliases inline with all other aliases ([#269](https://github.com/vendrhub/vendr/issues/269)). +* Updated the stock input field to display the same "No store found" message if the product node has no store setting defined ([#193](https://github.com/vendrhub/vendr/issues/193)). +* Updated the stock property editor save event handlers to use `MemoryCache` to remember the state, rather than the `RequestCache` as there is no request cache when a content node is published via a schedule. +* Updated the payment controller actions to not continue with the processing if the order reference on file does not match that in the URL. +* Fixed errors in exchange rate services returning null. Now handles null values. +* Fixed an issue with analytics reports showing data in UTC and not in the local time zone ([#303](https://github.com/vendrhub/vendr/issues/303)). +* Fixed bug in top-selling product analytics chart erroring if a product's name changes at some point in the date range ([#297](https://github.com/vendrhub/vendr/issues/297)). +* Fixed a bug where the injected `vendr_variants` tab is displayed when using Matroyhska. Custom CSS has been added to ensure this remains hidden ([#304](https://github.com/vendrhub/vendr/issues/304)). +* Fixed a bug where payment provider settings weren't being translated before being passed to the payment provider within the Capture, Cancel, and Refund actions. + +### v1.8.2 + +**Date:** 2021-05-26\ +**Description:** Patch release with minor bug fixes. + +* Added `esc` keyboard shortcut to close the exports dialog ([#301](https://github.com/vendrhub/vendr/issues/301)). +* No longer errors if the same discount/gift card code is applied for a second time. +* Fixed error when creating Gift Cards in backoffice due to no currency defined yet. +* Fixed bug in gift cards searches API not initializing the gift card state correctly. + +### v1.8.1 + +**Date:** 2021-05-13\ +**Description:** Patch release with minor bug fixes + +* Added `Try` methods to `IStockService` and `IProductService` for all get/set stock methods. +* Made `PricePropertyValue` implement `IEnumerable` returning any price with a value. +* Fixed a bug in the shipping cost calculation not using the shipping tax rate ([#298](https://github.com/vendrhub/vendr/issues/298)). +* Removed obsolete `ProductVariantCollectionExtensions` causing naming conflicts. +* Fixed bug in variants editor save event handler not persisting initial stock levels. + +## v1.8.0 + +**Date:** 2021-05-05\ +**Description:** Minor release with new features and minor bug fixes + +* Added export templates section to the Store settings area. +* Added export bulk action to Orders, Gift Cards, and Discounts list views to allow exporting. +* Updated print dialog to disable the print button whilst there are no templates selected ([#292](https://github.com/vendrhub/vendr/issues/292)). + +### v1.7.3 + +**Date:** 2021-05-04\ +**Description:** Patch release with minor bug fixes + +* Updated the `ProductOrderLineAmountDiscountRewardProvider` with an `OrderLineSource` settings to allow choosing whether the matching product should be located anywhere on the order, or within the matching rule results. + +### v1.7.2 + +**Date:** 2021-04-26\ +**Description:** Patch release with minor bug fixes + +* Changed it so that when setting stock levels, if the stock source can't be found it no longer throws an error. Instead, it fails silently and logs a debug message. +* Changed the entity cache wrappers to use cache accessor functions so that the cache wrappers can be reused locally. + +### v1.7.1 + +**Date:** 2021-04-20\ +**Description:** Patch release with minor bug fixes + +* Fixed a bug in the new cache mechanism where changes weren't being pushed back into the global cache if an entity was accessed outside of a UoW within the same request prior to changes being made to that entity. + +### v1.7.0 + +**Date:** 2021-04-15\ +**Description:** Minor release with new features and minor bug fixes + +* Added new `EntityCaches` for independent cache repositories of entities. +* Order and Price Freezer caches now auto-expire items if they are not used. +* Added a new stock caching layer to help improve performance. +* Added new Order and GiftCard search API for more flexible searching ([#110](https://github.com/vendrhub/vendr/issues/110)). +* `EntityStateCache` has now been obsoleted in favor of a new `EntityCaches` with an improved caching mechanism. +* Transactional cache has now been updated to work with the new `EntityCaches` rather than the `EntityStateCache`. +* Old Order and GiftCard search methods have been obsoleted in favor of the new search API. + +## v1.6.0 + +**Date:** 2021-04-06\ +**Description:** Minor release with new features and minor bug fixes + +* Added order printing action button ([#79](https://github.com/vendrhub/vendr/issues/79)). +* Added bulk order printing feature to orders list. +* Email Templates are now located in a Templating parent folder to encompass both Email and Print templates +* Fixed hardcoded `/umbraco` URL prefixes preventing sites from running with non-standard admin path ([#290](https://github.com/vendrhub/vendr/issues/290)). + +### v1.5.3 + +**Date:** 2021-03-24\ +**Description:** Patch release with minor bug fixes + +* Fixed issue where the variants property editor was not recursively transforming property values when converting from editor to DB ([#285](https://github.com/vendrhub/vendr/issues/285)). +* Fixed minor styling issues in the default email templates ([#286](https://github.com/vendrhub/vendr/issues/286)). + +### v1.5.2 + +**Date:** 2021-03-17\ +**Description:** Patch release with minor bug fixes + +* Fixed error screen when fetching too many sub-entities in one SQL query. All sub-entity queries are now batched into groups of 2000 entities at a time ([#280](https://github.com/vendrhub/vendr/issues/280)). +* Fixed regression in `ZeroValuePaymentProvider` since 1.4.0 release due to it not being updated to use the `TransactionAmount` property ([#281](https://github.com/vendrhub/vendr/issues/281)). +* Added new event handlers when a content node with a variants editor is saved/copied/moved to automatically inject the related `storeId` for the variants editor into it's data structure. This is mainly to provide context to the `Vendr.Deploy` package. +* Added `Create` methods to `ProductAttribute` and `ProductAttributePreset` to allow the passing in of an ID. This is to enable them to be deployed in `Vendr.Deploy`. +* Updated the `UmbracoProductAdapter.GetProductSnapshot` introduced in 1.5.0 which accepts a `productVariantReference` to be virtual inline with the existing `GetProductSnapshot` method ([#282](https://github.com/vendrhub/vendr/issues/282)). +* Updated the product variants editor value converter to automatically lookup the related store so that a `storeId` isn't needed when using the `GetInUseProductAttributes` method. + +### v1.5.1 + +**Date:** 2021-02-26\ +**Description:** Patch release with minor bug fixes + +* Fixed stock property editor erroring on newly created variants in pre-existing product nodes. +* Fixed error due to variants prop editor being moved to first group. Now moved to it's own group and that group is then hidden. +* Fixed errors when using variants prop editor with content variants. +* As block list editors don't support content variants yet, the variants editor has been updated to grey out and prevent editing on non-default language variant editors. + +## v1.5.0 + +**Date:** 2021-02-11\ +**Description:** Minor release with new multi-variants feature + +* Multi-variants property editor. +* Added new Options node to stores in the Commerce section with subsections for new Product Attributes and Product Attribute Presets features. +* `AddProduct` API's now accept a new productVariantReference. +* Order Lines now expose a `ProductVariantReference` property. +* Order Lines now expose an `Attributes` property. +* Minimum Umbraco version updated to 8.10.+ due block list editor API requirement. +* Additional `IProductAdapter.GetProductSnapshot` method accepting a productVariantReference has been added. +* `IProductAdapter.GetProductReference` changed to `IProductAdapter.TryGetProductReference`. +* `IProductSnapshot` now exposes a `ProductVariantReference` property. +* `IProductSnapshot` now exposes an `Attributes` property. + +### v1.4.2 + +**Date:** 2021-02-04\ +**Description:** Patch release with minor bug fixes and enhancements + +* Added confirmation dialogs to Cancel, Refund, and Capture payment actions ([#251](https://github.com/vendrhub/vendr/issues/251)). +* Added extra events to fire when adding or updating order lines via the `AddProduct` methods ([#248](https://github.com/vendrhub/vendr/issues/248)). +* Added `IOrderFinder` interface so custom order locating can be added if no order is found for a customer reference. +* Fixed bug where Member ID wasn't being auto-assigned to orders ([#263](https://github.com/vendrhub/vendr/issues/263)). +* Fixed Vendr cache refreshers not refreshing distributed caches correctly ([#250](https://github.com/vendrhub/vendr/issues/250)). +* Fixed an issue where log files are getting filled with unnecessary log messages ([#249](https://github.com/vendrhub/vendr/issues/249)). +* Fixed an issue where using a Gift Card resulted in the order erroring ([#247](https://github.com/vendrhub/vendr/issues/247)). +* Fixed issue with analytics fixed timeframes not updating ([#234](https://github.com/vendrhub/vendr/issues/234)). +* Fixed styling issue where long order status labels were getting cropped ([#230](https://github.com/vendrhub/vendr/issues/230)). +* Fixed issue where `GetOrCreateCurrentOrder` could return an order for a previous logged-in member ([#216](https://github.com/vendrhub/vendr/issues/216)). +* Fixed formatting bug in menu actions interceptor. +* Fixed bug in Store Dashboard where error order statuses were linking to the order list view with the wrong query string parameter. + +### v1.4.1 + +**Date:** 2020-12-21\ +**Description:** Patch release with minor bug fixes and enhancements + +* Fixed bug with license checking erroring during Umbraco Deploy deployments ([#233](https://github.com/vendrhub/vendr/issues/233)). +* Fixed issue with order confirmation email using payment country name in place of shipping country name. +* Fixed spelling error in auto-generated error email template alias. +* Fixed regression where custom product adapter was not being allowed on a trial license. +* Updated discounts to apply percentage values differently depending on whether tax is included in prices or not (rounding issue). +* Fixed error screen when assigning an orders order status prior to finalization due to the activity logger. The activity logger now only logs activity for finalized orders. +* Updated the `Price` entity to prioritize tax rounding over base price rounding. + +## v1.4.0 + +**Date:** 2020-12-10\ +**Description:** Major breaking changes release + +For more details on this release, including a recommended upgrade strategy, please see the [Vendr 1.4.0 RC blog post](https://vendr.net/blog/vendr-1-4-0-release-candidate/). + +* Added price adjustments/adjusters. +* Added amount adjustments/adjusters. +* Changed licensing factory to support subscription licenses in the future. +* Discounts are now Price Adjustments and so all price "Discount" related properties have been renamed to "Adjustment" related properties. +* Because Discounts are now Price Adjustments, Discounts are now no longer calculated as their own calculation pipeline task (`CalculateOrderDiscountsTask`). Instead, there is now an adjustments calculation pipeline task that calculates all adjustments (`ApplyOrderPriceAdjustmentsTask`), of which Discounts are now a type of adjuster (`DiscountsPriceAdjuster`). +* Because price adjustments can be positive or negative, all discount adjustments are now negative in value (important if you using discounts to calculate a value). +* All order calculation pipeline tasks related to "Discounts"/"Discounted" have all been renamed to "Adjustments"/"Adjusted" task names. All previous tasks have been marked obsolete with IntelliSense to guide you to the new implementation. +* Gift Cards are now Amount Adjustments and so all "Gift Card" related properties are now found in the "Adjustment" related properties. +* Because Gift Cards are now Amount Adjustments, Gift Cards are now no longer calculated as their own calculation pipeline task (`CalculateOrderGiftCardAmountsTask`). Instead, there is now an adjustments calculation pipeline task that calculates all adjustments (`ApplyOrderAmountAdjustmentsTask`), of which Gift Cards are now a type of adjuster (`GiftCardsAmountAdjuster`). +* Gift Card / Amount Adjustment values are now found on the `TransactionAmount` property rather than the `TotalPrice` property of an order. + +### v1.3.5 + +**Date:** 2020-12-07\ +**Description:** Patch release with minor bug fixes and enhancements + +* Fixed a bug in the backoffice rendering of bundled items where total columns were not lining up. +* Fixed a bug where deleting a discount fired the `DiscountedCodeAdded` validation event and prevented a discount code from being removed ([#222](https://github.com/vendrhub/vendr/issues/222)). +* Fixed bug in `UmbracoBooleanJsonConverter` not handling null values ([#224](https://github.com/vendrhub/vendr/issues/224)). +* Added extra logging to cache refreshers so these can be debugged. + +### v1.3.4 + +**Date:** 2020-11-23\ +**Description:** Patch release with minor bug fixes and enhancements + +* Bulk actions are now extendable ([#218](https://github.com/vendrhub/vendr/issues/218)). +* Added validation error when redeeming a discount/gift card where the code doesn't exist. +* Added order line `bundleId` to uniqueness properties list by default to enforce all bundles being unique order lines. +* Added `HMACSHA1Hash` helper to payment provider base class. +* Fixed an issue where logged-in customers weren't assigned to newly created orders ([#213](https://github.com/vendrhub/vendr/issues/213)). +* Fixed bug in `PropertyValue` constructor not settings `IsServerSideOnly` and `IsReadOnly` to pass in values. +* Put the Vendr stores tree into the "Commerce" group so that if anyone adds a new tree to the commerce section, the store's node does not appear under a generic "Third Party" group. +* Fixed spelling mistakes in `RegisteredCustomerInfo` method name. +* Fixed bug in default Tax Class validation rule being passed the wrong ID to validate. +* Fixed bug with discount rules provider not filtering "All" rules fulfilled order lines correctly. + +### v1.3.3 + +**Date:** 2020-10-28\ +**Description:** Patch release with minor bug fixes and enhancements + +* Added extra hashing method to the Payment Provider base class ([#209](https://github.com/vendrhub/vendr/issues/209)). +* Added `UnassignFromCustomer` convenience method to order. +* Stock is now replenished if an order payment status is `Cancelled` ([#196](https://github.com/vendrhub/vendr/issues/196)). +* Added distributed cache refresher for gift cards ([#212](https://github.com/vendrhub/vendr/issues/212)). +* Added validation rules to ensure entities set as "defaults" can't be deleted until a new default is set ([#201](https://github.com/vendrhub/vendr/issues/201)). +* Fixed minor alignment issues on the store actions list ([#192](https://github.com/vendrhub/vendr/issues/192)). +* Fixed `TotalPrice.TotalDiscount` not taking into account payment/shipping discounts ([#207](https://github.com/vendrhub/vendr/issues/207)). +* Fixed discount distributed cache refresher not being hooked up ([#211](https://github.com/vendrhub/vendr/issues/211)). +* Fixed typo in validation error for invalid combination of currency/country ([#205](https://github.com/vendrhub/vendr/issues/205)). +* Fixed issue where member discounts aren't recalculated when the order customer changes ([#204](https://github.com/vendrhub/vendr/issues/204)). +* Fixed conditional input break after 7.7 UI breaking change ([#203](https://github.com/vendrhub/vendr/issues/203)). +* Changed the breakpoint at which the Vendr layout reduces to mobile ([#202](https://github.com/vendrhub/vendr/issues/202)). +* Changed how percentage discounts work so that they calculate the percentage of pre-tax + tax prices rather than the pre-tax + the orders tax rate. + +### v1.3.2 + +**Date:** 2020-10-05\ +**Description:** Patch release with minor bug fixes and enhancements + +* Added unique code validation rule for Gift Cards. +* Expose the NPoco database type in the DatabaseUnitOfWork. +* Fixed a bug where users would get logged out when editing discounts/gift cards due to the tree Controller checking the wrong permission ([#197](https://github.com/vendrhub/vendr/issues/197)). +* Fixed SQL date error in the Analytics section when using **British English - English** DB culture ([#198](https://github.com/vendrhub/vendr/issues/198)). +* Removed redundant code fetching members in order editor ([#185](https://github.com/vendrhub/vendr/issues/185)). + +### v1.3.1 + +**Date:** 2020-10-05\ +**Description:** Patch release with minor bug fixes and enhancements + +* Added `Formatted()` extension method to `DiscountedPrice`. +* Added extra methods to order service to get Finalized, Open, and All orders for a customer. +* Added Region info to billing/shipping address details ([#180](https://github.com/vendrhub/vendr/issues/180)). +* Added Discount entity to DiscountRuleContext inline with DiscountRewardContext ([#189](https://github.com/vendrhub/vendr/issues/189)) +* Added `StoreActionsRenderingNotification` and `ActivityLogEntriesRenderingNotification` events to allow extending the store dashboard. +* Added support for a `VendrLicensesDirectory` app setting to override where licenses are loaded from. +* Fixed error when deleting an order connected to a Gift Card ([#186](https://github.com/vendrhub/vendr/issues/186)). +* Fixed a spelling error in the search term model for the item picker directive. +* Fixed performance issue introduced in 1.3.0 where constantly loading an entity become significantly slower. Introduced a new `EntityStateCacheAccessor` to only use the new transactional entity state cache when necessary ([#191](https://github.com/vendrhub/vendr/issues/191)). +* Fixed migration error if installing on a site where the Vendr tables already exist, Vendr hasn't been installed yet ([#190](https://github.com/vendrhub/vendr/issues/190)). +* Removed redundant code fetching members in order editor ([#185](https://github.com/vendrhub/vendr/issues/185)). + +## v1.3.0 + +**Date:** 2020-09-17\ +**Description:** Minor release including new features and some bug fixes/breaking changes + +* Added a new store summary dashboard featuring a sales summary, links to pertinent actions as well as an activity log. +* Added commerce route dashboard giving a summary of stores the current user has access to. +* Added analytics section to stores to provide basic analytics reporting on the store's performance. +* Added ability to handle Vendr subscription-based licenses. +* Added Vendr logo to Umbraco package. +* Fixed Umbraco 8.8 RC styling issues mostly around icons. +* `IEntityStateCache` is now no longer an injectable dependency, instead it is accessed via the Unit of Work. +* List view buttons now use the outline style as per the latest Umbraco. +* `IProductCalculator` now accepts a `ProductCalculatorContext`. +* `IUnitOfWork` interface now provides access to the entity state cache. +* `UnitOfWork` now accepts a `VendrUnitOfWorkTransaction`. + +### v1.2.10 + +**Date:** 2020-09-11\ +**Description:** Patch release with minor bug fixes mostly around the Umbraco 8.7 release + +* Fixed a styling bug in the order details header that got missed in the previous release. + +### v1.2.9 + +**Date:** 2020-09-11\ +**Description:** Patch release with minor bug fixes mostly around the Umbraco 8.7 release + +* Fixed a bug in the session manager remembering an order after it had been moved to finalized. +* Fixed bug in UI not matching the same colors used by Umbraco ([#174](https://github.com/vendrhub/vendr/issues/174)). +* Fixed bug with price + store entity pickers not working correctly in Umbraco 8.7 ([#176](https://github.com/vendrhub/vendr/issues/176)). +* Fixed a series of style changes in the recent Umbraco 8.7 release. + +### v1.2.8 + +**Date:** 2020-08-21\ +**Description:** Patch release with minor bug fixes/enhancements + +* Added a new customer info panel accessible via a user icon next to the customer name to be able to display registered customer info + order history ([#129](https://github.com/vendrhub/vendr/issues/129)). +* Added helpful exception messages if you attempt to create an order but the required store default config isn't yet in place. It now tells you what needs fixing, and how to fix it ([#158](https://github.com/vendrhub/vendr/issues/158)). +* Use `umb-loader` component in Vendr list view rather than raw markup + css classes ([#161](https://github.com/vendrhub/vendr/issues/161)). +* Improved accessibility in a number of areas ([#162](https://github.com/vendrhub/vendr/issues/162)). +* Removed `umb-overlay` directive usage in favor of the `overlayService` ([#163](https://github.com/vendrhub/vendr/issues/163)). +* Expanded any self-closing directive DOM tags as this is considered bad practice for directives ([#164](https://github.com/vendrhub/vendr/issues/164)). +* Fixed a bug where creating a new order via the session manager wasn't populating a default shipping country/shipping method ([#156](https://github.com/vendrhub/vendr/issues/156)). +* Fixed bug in session manager SetDefaultCurrency and SetDefaultTaxClass where exception was thrown if `applyToCurrentOrder` is `true` ([#160](https://github.com/vendrhub/vendr/issues/160)). +* Add null checks and error logs if there is a problem calculating the order gift card amount if a gift card is deleted ([#167](https://github.com/vendrhub/vendr/issues/167)). +* Fixed long order line names flowing off-screen. They are now truncated with ... ([#147](https://github.com/vendrhub/vendr/issues/147)). +* Fixed bug in Member Group Discount Rule throwing an error screen due to DI resource not being found. Now use `IMemberService` for everything. +* Fixed rounding issue when applying a discount amount but the order line totals calculation doesn't match the price + tax of the discount exactly. + +### v1.2.7 + +**Date:** 2020-07-29\ +**Description:** Patch release with minor bug fixes/enhancements + +*** + +* Added payment provider feature to fetch an order's payment status from the payment gateway when an order is opened in the same way Tea Commerce does. +* Updated how the stock property editor loads and persists its value so that it doesn't cause a stock update every time it's saved. +* Orders now finalize if the payment status is anything but Initialized (previously didn't finalize if the status was PendingExternalSystem). +* The pending payment status is now displayed as purple in the backoffice so that it's not the same color as the canceled status. +* Updated the store entity picker to support multiple store resolution modes so that the picker can be used outside of the content section ([#141](https://github.com/vendrhub/vendr/issues/141)). +* Fixed bug when creating US country regions from preset ([#159](https://github.com/vendrhub/vendr/issues/159)). +* Fixed issue with payment provider continue/cancel/error URLs escaping query strings ([#157](https://github.com/vendrhub/vendr/issues/157)). +* Fixed <= price discount rule not displaying correct symbol ([#155](https://github.com/vendrhub/vendr/issues/155)). + +### v1.2.6 + +**Date:** 2020-07-02\ +**Description:** Patch release with minor bug fixes/enhancements and some breaking changes + +* Thawing prices now causes existing, unfinalized orders to recalculate and re-freeze prices at the current rate ([#145](https://github.com/vendrhub/vendr/issues/145)). +* Fixed error screen when applying a discount with multiple rewards for the same price target. Applied discounts now accumulate all rewards per price type ([#136](https://github.com/vendrhub/vendr/issues/136)). +* Fixed a bug in discounts where the "Block discount if previous discounts already apply" setting was not being honored ([#142](https://github.com/vendrhub/vendr/issues/142)). +* Fixed bug in discounts where Order Total based percentage discounts were not being applied ([#143](https://github.com/vendrhub/vendr/issues/143)). +* Fixed error when creating an order and adding order lines in the same UoW. This ultimately came down to the price freezing logic freezing prices too early. For new orders, prices are now frozen after the initial save ([#140](https://github.com/vendrhub/vendr/issues/140)). +* Fixed an issue in migrations where some installs seem to convert unique indexes into unique constraints and so an error is thrown when attempting to drop the index. We now check to see if a constraint exists first and then perform the appropriate task ([#116](https://github.com/vendrhub/vendr/issues/116)). +* `IShippingCalculator` methods now take in `ShippingCalculatorContext` with a reference to the current order/order calculation should one be available ([#146](https://github.com/vendrhub/vendr/issues/146)). +* `IPaymentCalculator` methods now take in `PaymentCalculatorContext` with a reference to the current order/order calculation should one be available ([#146](https://github.com/vendrhub/vendr/issues/146)). + +### v1.2.5 + +**Date:** 2020-06-17\ +**Description:** Patch release with minor bug fixes/enhancements + +* Added license warning message to gift cards, discounts, and store settings sections. +* Fixed the issue where the sort dialog displays the wrong error message if there is an error whilst sorting ([#131](https://github.com/vendrhub/vendr/issues/131)). +* Fixed issue where Dates were incorrect due to use of DateTime.Now rather than DateTime.UtcNow ([#134](https://github.com/vendrhub/vendr/issues/134)). +* Fixed rounding issue in order calculation ([#126](https://github.com/vendrhub/vendr/issues/126)). +* Fixed issue with the entity cache storing null values which shouldn't be allowed. +* Fixed issue where setting an explicit sort order on a new entity would be ignored on save. +* Fixed regression issue from 1.2.3 where loading orders from the database was switching the order id and currency id of the order causing calculation problems. +* Fixed issue with spelling mistake in discount rules / reward configurations for `Amounts Include Tax` properties ([#135](https://github.com/vendrhub/vendr/issues/135)). +* Fixed the issue with discounts not maintaining their sort order when loading from the database ([#132](https://github.com/vendrhub/vendr/issues/132)). +* Deprecated "Master" terminology in the code base so `MasterRelation` is now `ProductSource` (This is currently deprecated so the existing `MasterRelation` will still work, but moving forward `ProductSource` will be the recommended terminology). +* Updated the payment methods and create-dialog to exclude any payment providers marked with an `[Obsolete]` attribute. Obsolete payment providers can still be used, but they won't be selectable for new payment methods. +* Removed the sort option from the Gift Cards section as gift cards aren't sortable ([#131](https://github.com/vendrhub/vendr/issues/131)). +* Made the `Order.InitializeTransaction` method public to allow people to create and finalize a transaction in code without having to go via a payment gateway. +* Store `Create` method extended to make store auto population configurable. This is needed for Vendr.Deploy. + +### v1.2.4 + +**Date:** 2020-06-12\ +**Description:** Patch release with minor bug fixes / enhancements and some minor breaking changes + +* Added support for `UmbracoLicensesDirectory` app setting to define where licenses are located ([#119](https://github.com/vendrhub/vendr/issues/119)). +* Added `CanProcessOrder` method to payment providers so that payment providers can pre-check whether they would be capable of processing a given order. +* Fixed an issue where it wasn't possible to update a product's stock back to the previously entered stock level ([#127](https://github.com/vendrhub/vendr/issues/127)). +* Fixed issue where multiple operations within a single UoW were not being persisted due to stale state not getting updated correctly ([#128](https://github.com/vendrhub/vendr/issues/128)). +* Fixed issue with the `Extract` helper method throwing an exception if the given item to extract couldn't be found. +* Fixed issue where null order/order line properties would cause persistence error. +* Updated the percentage amount discounts rewards to only allow positive percentage values ([#113](https://github.com/vendrhub/vendr/issues/113)). +* Renamed the `Persistance` namespace to the correct `Persistence` spelling. This is a breaking change, but people shouldn't be using the persistence resources directly. +* Moved `ValidationError` to `Models` namespace. This is a breaking change, but people shouldn't be using the `ValidationError` model directly. +* With the introduction of the `UmbracoLicensesDirectory` app setting, if you are running on Umbraco Cloud and have a license installed, because Umbraco Cloud auto sets this setting to `~\App_Plugins\UmbracoLicenses\` you will need to move your license files from the `App_Data` folder to this new location. + +### v1.2.3 + +**Date:** 2020-06-05\ +**Description:** Patch release with minor bug fixes/enhancements + +* Fixed issue with recent gift card config settings not being copied when a store is deep cloned. +* Fixed issue with the store "allowed users" not persisting due to incorrect variable name in views. +* Fixed issue where domain events that affect the saving entity model were not being persisted due to a variable reference issue and deep comparisons not working. +* Fixed the issue with the sort dialog close button not working ([#123](https://github.com/vendrhub/vendr/issues/123)). +* Fixed issue where deleted gift cards were still showing in list view ([#124](https://github.com/vendrhub/vendr/issues/124)). +* Fixed issue where stock values were being cached at the page level where they should be at the request level ([#125](https://github.com/vendrhub/vendr/issues/125)). +* Only show payment/shipping "via" in the backoffice if a payment/shipping method is known. +* Added script to NuGet packages to auto increment client dependency version. +* Order calculation now rounds prices to the currencies defined decimal places level after each calculation step in order to prevent rounding issues ([#126](https://github.com/vendrhub/vendr/issues/126)). +* Payment Provider cancel, continue, and callback URL hashes now include the actual URL, and not only the reference as part of the hash. This is to prevent tampering of the URLs. +* Session cookies are now flagged as `HttpOnly` (this can be disabled by setting an app setting `Vendr:Cookies:HttpOnly` to `false`), and when the site is accessed over HTTPS, also flagged as `Secure`. This is to protect the session cookies from being hijacked by malicious entities. +* The current finalized order is now stored in its own session cookie with a limited lifetime of 5 minutes providing enough time to display a confirmation page, but no longer persisting until a new order took its place. + +### v1.2.1/2 + +**Date:** 2020-05-28\ +**Description:** Patch release with minor bug fixes/enhancements + +* Fixed bug in discount service preventing discount/gift cards from being redeemed 🤦‍♂️ +* Reverted fix for ([#116](https://github.com/vendrhub/vendr/issues/116)) as it was preventing clean installs so needs investigating further 🤦‍♂️ + +## v1.2.0 + +**Date:** 2020-05-28\ +**Description:** Minor version release predominantly for the Gift Cards feature with a few bug fixes too + +* Added gift cards feature which includes a new sub-section in the commerce section along with the ability to create gift cards manually and additional automation for automatically creating gift cards and sending gift card emails when a gift card is purchased. +* Added `IGiftCardCodeGenerator` to allow for a custom gift card code generation strategy. +* Added Zero Value payment provider in core to allow the passing through of orders whose final value is 0 and thus no payment needs to be taken. This will be up to the implementer however to set up and select this payment method accordingly. +* Added gift card service methods to the global `IVendrApi` helper. +* Added support of dynamic lambda statements in the syntax of `{Model.Value}` in email template subject lines ([#107](https://github.com/vendrhub/vendr/issues/107)). +* Added validation to the `AddProduct` method to ensure a price for the order currency exists. +* Added `_ViewStart.cshtml` file to the Vendr views folder to reset any global layout that might have been defined ([#117](https://github.com/vendrhub/vendr/issues/117)). +* Fixed NullReference exception when adding a product to an order when missing a price ([#112](https://github.com/vendrhub/vendr/issues/112)). +* Fixed a number of migration SQL errors when upgrading using SQL Server ([#116](https://github.com/vendrhub/vendr/issues/116)). +* Fixed error with discount property rule not working correctly when a property doesn't exist ([#115](https://github.com/vendrhub/vendr/issues/115)). +* Fixed bug with discount code validation incorrectly reporting the discount code is already in use. +* Store configuration now has additional gift card configuration fields. +* Email Templates now have a category used to filter the email templates to display in "send email" dialogs. +* Updated the store create-pipeline to auto-create the default gift card email. +* Updated the store create-pipeline to assign generated emails to the relevant categories. +* Send email dialogs now have the ability to override the `To` address before sending. +* Improved the `PricePropertyValue` model's `HasValue` method to also check for null values. +* Updated the `UmbracoProductSnapshot.Prices` property to check for values for the given currency before assuming it has a value. +* `IProductAdapater` interface now has a new `IsGiftCard` property. + +### v1.1.4 + +**Date:** 2020-05-19\ +**Description:** Patch release with minor bug fixes/enhancements + +* Fixed JavaScript error when refreshing the order list view after an order is deleted ([#96](https://github.com/vendrhub/vendr/issues/96)). +* Fixed formatting issue in table view selection message where `X of Y` the message was being displayed without spaces. +* Fixed error screen when deleting an order line that has discounts applied to it ([#98](https://github.com/vendrhub/vendr/issues/98)). +* Fixed order lines are limited to a max of 100 quantities ([#101](https://github.com/vendrhub/vendr/issues/101)). +* Fixed error in backoffice when displaying the transaction info dialog when some keys have an empty value ([#104](https://github.com/vendrhub/vendr/issues/104)). +* Fixed error when adding a suborder line to a bundle ([#106](https://github.com/vendrhub/vendr/issues/106)). + +### v1.1.3 + +**Date:** 2020-05-06\ +**Description:** Patch release with minor bug fixes/enhancements + +* Patch release `dll` timestamp is not formatted in the correct way. +* Fixed bug in TaxClassRepository.GetIdByAlias method which had a malformed SQL statement. +* Fixed NuGet install script not working correctly in directories containing spaces. +* When saving a product node with a stock property, only sync the value back to the stock database table if the property is dirty ([#93](https://github.com/vendrhub/vendr/issues/93)). + +### v1.1.2 + +**Date:** 2020-05-05\ +**Description:** Patch release with minor bug fixes / enhancements + +* Added `*.xip.io`, `*.nip.io` and `*.sslip.io` as valid test domains. +* Added strongly typed value converter for the store entity picker property editor. +* Added missing validation events for Discount code add/update/remove. +* Added validation events to all entities to validate the uniqueness of aliases/codes. +* Added `Exists` methods to all entity services to make it easier to check for the existence of an entity. +* Fixed bug in product uniqueness logic throwing an error if you add a product with no uniqueness properties after one that is already in the cart ([#88](https://github.com/vendrhub/vendr/issues/88)). +* Fixed build script formatting the patch release timestamp incorrectly. +* Fixed error when removing items from a cart and using SQL CE. This was due to a SQL statement that doesn't work on SQL CE. Now updated to work across the board ([#89](https://github.com/vendrhub/vendr/issues/89)). +* Fixed bug where discount codes declared on deleted discounts couldn't be reused ([#91](https://github.com/vendrhub/vendr/issues/91)). +* Discount aliases are now validated before saving and display a friendly error message ([#91](https://github.com/vendrhub/vendr/issues/91)). +* Changed picker property editor 'add' buttons to use a button element, rather than a link tag ([#86](https://github.com/vendrhub/vendr/issues/86)). +* Changed table view 'create' buttons to use a button element, rather than a link tag ([#87](https://github.com/vendrhub/vendr/issues/87)). +* Implemented friendlier display of validation errors ([#91](https://github.com/vendrhub/vendr/issues/91)). + +### v1.1.1 + +**Date:** 2020-04-29\ +**Description:** Patch release with minor bug fixes/enhancements + +* Fixed issue with the v1.1.0 NuGet package not copying email templates to the Views folder 🤦‍♂️. + +### v1.1.0 + +**Date:** 2020-04-29\ +**Description:** Minor release with new features and some minor bug fixes/enhancements + +* Added "Unlimited" checkbox to discount codes to allow them to have unlimited usage ([#50](https://github.com/vendrhub/vendr/issues/50)). +* Added basic Order/Payment Status filters to the Order list ([#63](https://github.com/vendrhub/vendr/issues/63)). +* Added escape key shortcut to close Discount rule/rewards settings editor dialog ([#60](https://github.com/vendrhub/vendr/issues/60)). +* Added feedback when copying order details to clipboard ([#22](https://github.com/vendrhub/vendr/issues/22)). +* Added a new store entity picker property editor to merge together all store entity pickers. Tax Class picker is now obsolete in favour of this new picker. +* Added email templates for the default Confirmation / Error emails. +* Fixed error when accessing transaction info for an order where the Payment Provider no longer existed. Now perform null checks on data ([#58](https://github.com/vendrhub/vendr/issues/58)). +* Fixed issue with NuGet packages not copying content files on upgrade. Added a PowerShell script to perform the copy. +* Fixed bug where customer details weren't being persisted into the dedicated fields in the database table (they are still present in the properties collection where they are referenced from 99% of the time) ([#85](https://github.com/vendrhub/vendr/issues/85)). +* Rule / Reward builders now support infinite editing when creating a rule so closing the editor via the 'close' link now goes back to the rule / reward picker. ([#81](https://github.com/vendrhub/vendr/issues/81)). +* Removed code for shipping method / payment method picker property editors in favour of the new store entity picker. These were never made public as actual property editors, as they were only used by the rule / reward builder so this won't be classed as a breaking change. + +### v1.0.3 + +**Date:** 2020-04-24\ +**Description:** Patch release with minor bug fixes/enhancements + +* Added missing Product discount rule to discounts rule builder ([#76](https://github.com/vendrhub/vendr/issues/76)). +* Added basic Order Line Amount Reward that applies to all Order Lines. +* Product prices now thaw when the last product of a type is removed from the cart ([#71](https://github.com/vendrhub/vendr/issues/71)). +* Fixed error when saving a property with a null value. The property is now removed if the value is null ([#78](https://github.com/vendrhub/vendr/issues/78)). +* Changed the name of the Products Order Line Amount Reward to Order Line (with Product) Amount Reward as it's more descriptive of its purpose. + +### v1.0.2 + +**Date:** 2020-04-15\ +**Description:** Patch release with minor bug fixes/enhancements + +* Added the ability to delete an order from the action menu. +* Added permission checks to all entity controller actions. +* Fixed ability to delete orders ([#49](https://github.com/vendrhub/vendr/issues/49)). +* Fixed issue with orders not finalizing if an error occurs sending emails. Email sending is now wrapped in a try-catch that logs errors to the error log instead ([#52](https://github.com/vendrhub/vendr/issues/52)). +* Fixed bug in EmailTemplateService.SendEmail where it wasn't sent to the supplied To email address unless "Send to Customer" on the email template was checked. This setting now only applies if you call the SendEmail method version that accepts an Order. The signature with the explicit `toEmailAddress` parameter will always send to the provided email address ([#54](https://github.com/vendrhub/vendr/issues/54)). +* Percentage reward inputs now only accept decimals ([#59](https://github.com/vendrhub/vendr/issues/59)). +* Fixed property discount rule, property alias field description describing the wrong thing ([#62](https://github.com/vendrhub/vendr/issues/62)). +* Changed payment status colours so Authorized is now blue and Refunded is orange so that Refunded doesn't look like an error ([#61](https://github.com/vendrhub/vendr/issues/61)). + +### v1.0.1 + +**Date:** 2020-04-06\ +**Description:** Patch release with minor fixes found post-launch + +* Fixed the wrong license URL displayed in the installer. +* Fixed stock input field not allowing a stock level greater than 100 ([#44](https://github.com/vendrhub/vendr/issues/44)). +* Fixed stock input field rounding decimal stock levels on save ([#45](https://github.com/vendrhub/vendr/issues/45)). +* Updated all caches to use a `GetOrAddIfNotNull` method to ensure null entities don't end up in the internal cache. + +## v1.0.0 + +**Date:** 2020-03-30\ +**Description:** Initial Vendr release diff --git a/14/umbraco-commerce/getting-started/introduction.md b/14/umbraco-commerce/getting-started/introduction.md new file mode 100644 index 00000000000..fa3205cd37b --- /dev/null +++ b/14/umbraco-commerce/getting-started/introduction.md @@ -0,0 +1,25 @@ +--- +description: Getting Started with Umbraco Commerce. +--- + +# Introduction + +In this section, you will find information about the key steps necessary to get you started with Umbraco Commerce. + +It is assumed that you have an Umbraco 12+ website configured, ready to install Umbraco Commerce into. + +{% hint style="info" %} +Find detailed instructions on how to install the latest version of Umbraco in the [Umbraco CMS documentation](https://docs.umbraco.com/umbraco-cms/fundamentals/setup/install). +{% endhint %} + +## System Requirements + +The minimum requirements for using Umbraco Commerce are as follows: + +* Umbraco CMS version 12+ +* SQL Server 2015+ Database + * **SQLite** is fine for testing, but not recommended for live deployments. See [Configuring SQLite support](../how-to-guides/configure-sqlite-support.md) for more details. + +## Versioning + +This is an add-on product to Umbraco CMS. Umbraco Commerce follows the [versioning strategy laid out for Umbraco CMS](https://umbraco.com/products/knowledge-center/versioning-and-release-cadence/). diff --git a/14/umbraco-commerce/getting-started/umbraco-configuration.md b/14/umbraco-commerce/getting-started/umbraco-configuration.md new file mode 100644 index 00000000000..b1274750016 --- /dev/null +++ b/14/umbraco-commerce/getting-started/umbraco-configuration.md @@ -0,0 +1,37 @@ +--- +description: Configuring Umbraco for Umbraco Commerce. +--- + +# Umbraco Configuration + +Before you can start to use Umbraco Commerce, you need to configure Umbraco to allow access to the relevant sections. The Umbraco Commerce UI is split over three sections within the Umbraco backoffice: + +* **Settings** for managing the different store settings. +* **Commerce** for managing store-related content (orders, discounts, etc). +* **Content** for managing the Umbraco Commerce products. + +In order to access these sections, you will need to ensure a User account with the relevant permissions to do so. When logged in as Administrator, access to the **Settings** and **Content** sections is already granted. + +To gain access to the **Commerce** section additional configuration is needed. + +## Creating a Commerce User Group + +To gain access to the **Commerce** section, it is advised to create a new User Group called **Commerce**. + +1. Navigate to the **User** section of the Umbraco backoffice. +2. Open the **User Groups** page. +3. Create a new User Group called **Commerce**. +4. Assign the relevant User accounts to that User Group. +5. Allow that User Group access to the **Commerce** section as a whole. + +Creating a custom User Group provides a way of managing Users who have access to the **Commerce** section, rather than allowing individual Users access. + +Learn more about [Users and User Groups in the Umbraco CMS Documentation](https://docs.umbraco.com/umbraco-cms/fundamentals/data/users). + +![Creating a Commerce User Group in Umbraco](../media/create\_commerce\_user\_group.png) + +## Accessing the Commerce Section + +Once created and assigned, you should be able to refresh the backoffice and see that we now have access to the new **Commerce** section. + +![Commerce Section in Umbraco Navigation](../media/commerce\_section.png) diff --git a/14/umbraco-commerce/getting-started/user-interface.md b/14/umbraco-commerce/getting-started/user-interface.md new file mode 100644 index 00000000000..81507db2be3 --- /dev/null +++ b/14/umbraco-commerce/getting-started/user-interface.md @@ -0,0 +1,46 @@ +--- +description: The User Interface for Umbraco Commerce. +--- + +# User Interface + +The Umbraco Commerce UI consists of a number of key areas, split over three sections within the Umbraco backoffice: + +* **Settings** for managing the different store settings. +* **Commerce** for managing store-related content (orders, discounts, etc). +* **Content** for managing the Umbraco Commerce products. + +## Settings Section + +The **Settings** section is where the configuration of all Store settings is managed. From here you can manage how the Store works as well as what options will be available within the Store. + +The UI for the **Settings** section consists of a Tree which lists all available Stores and their key areas available for configuration. It also contains a right-hand editor panel. This can either act as an editor interface or as a list view interface for listing items within that given configuration area. + +![Umbraco Commerce Settings - Editor View](../media/umbraco-commerce\_settings\_section\_editor\_view.png) + +![Umbraco Commerce Settings - List View](../media/umbraco-commerce\_settings\_section\_list\_view.png) + +Each Store has 8 key areas of configuration accessible within the **Settings** section: + +* **Store**: Each Store node contain Store level configuration settings. +* **Order Statuses** contain the configuration of the different Statuses an order can be in. Think of these as an organizational structure for your Orders. +* **Shipping Methods** contains the list of Shipping Methods available to a Store. +* **Payment Methods** contains the list of Payment Methods available to a Store. +* **Countries** contain the list of Countries the Store is able to trade with. +* **Currencies** contain the list of accepted Currencies for the Store. +* **Taxes** contains the list of Tax Classes and their Tax Rates for the Store. +* **Email Templates** contains the list of Email Templates supported by the Store. + +## Commerce Section + +The **Commerce** section contains a Tree to access the Stores and their different features, as well as a right-hand panel for managing the items. + +![Umbraco Commerce Orders View](../media/commerce\_orders\_view.png) + +![Umbraco Commerce Order Editor](../media/commerce\_order\_details.png) + +## Content Section + +The **Content** section is where the Umbraco Commerce product nodes are managed. Managing products with Umbraco Commerce is similar to working with regular content nodes. + +![Umbraco Commerce Store Picker Dialog](../media/content\_store\_picker.png) diff --git a/14/umbraco-commerce/how-to-guides/configure-sqlite-support.md b/14/umbraco-commerce/how-to-guides/configure-sqlite-support.md new file mode 100644 index 00000000000..407829fc7c1 --- /dev/null +++ b/14/umbraco-commerce/how-to-guides/configure-sqlite-support.md @@ -0,0 +1,45 @@ +--- +description: How-To Guide to configure SQLite support for Umbraco Commerce. +--- + +# Configure SQLite support + +Out of the box, Umbraco Commerce only supports SQL Server-based databases as this is the recommended database platform for live environments. To aid testing and rapid prototyping, however, Umbraco Commerce can be configured to use an SQLite database. + +{% hint style="warning" %} +Whilst Umbraco Commerce does support SQLite for testing, we do not recommend using it in a live environment. Due to the high levels of active connections required to manage concurrent shopping carts, this is not something SQLite handles well at all. +{% endhint %} + +## Install SQLite dependencies + +To add SQLite support, you will need to install the SQLite persistence layer NuGet package for Umbraco Commerce. + +```bash +PM> dotnet add package Umbraco.Commerce.Persistence.Sqlite +``` + +Once the NuGet package is installed, you need to register SQLite support with Umbraco Commerce via the [`IUmbracoCommerceBuilder`](../key-concepts/umbraco-commerce-builder.md) interface. + +Add .`AddUmbracoCommerce()` below `.AddWebsite()` in the `Program.cs` file. + +```csharp +.AddUmbracoCommerce(builder => { + builder.AddSQLite(); +}) +``` + +After configuring Umbraco CMS with SQLite, Umbraco Commerce will automatically utilize the same database configuration. If you wish to install Umbraco Commerce into its own SQLite database you can configure its connection string in the `appSettings.json` like so: + +```json +{ + ... + "ConnectionStrings": { + "umbracoDbDSN": "Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Shared;Foreign Keys=True;Pooling=True", + "umbracoDbDSN_ProviderName": "Microsoft.Data.SQLite", + "umbracoCommerceDbDSN": "Data Source=|DataDirectory|/Umbraco.Commerce.sqlite.db;Mode=ReadWrite;Foreign Keys=True;Pooling=True;Cache=Shared", + "umbracoCommerceDbDSN_ProviderName": "Microsoft.Data.SQLite" + }, + ... +} + +``` diff --git a/14/umbraco-commerce/how-to-guides/limit-orderline-quantity.md b/14/umbraco-commerce/how-to-guides/limit-orderline-quantity.md new file mode 100644 index 00000000000..41bc1edd17a --- /dev/null +++ b/14/umbraco-commerce/how-to-guides/limit-orderline-quantity.md @@ -0,0 +1,89 @@ +--- +description: How-To Guide to limit order line quantity in Umbraco Commerce. +--- + +# Limit Order Line Quantity + +In this guide, we will be looking at Validation events in Umbraco Commerce. These enabled you to limit order line quantity based on: + +* The existing stock value of the product, and +* The existing quantity of the product in the cart. + +## ProductAddValidationHandler + +When adding a product to the cart we need to verify that the product is in stock. We also need to verify that the customer does not already have the remaining quantities in the cart. + +```csharp +public class ProductAddValidationHandler : ValidationEventHandlerBase +{ + private readonly IProductService _productService; + + public ProductAddValidationHandler(IProductService productService) + { + _productService = productService; + } + + public override void Validate(ValidateOrderProductAdd evt) + { + var order = evt.Order; + var productReference = evt.ProductReference; + + var stock = _productService.GetProductStock(productReference); + + var totalQuantities = order?.OrderLines.Where(x => x.ProductReference == productReference).Sum(x => x.Quantity) ?? 0; + + if (stock.HasValue && totalQuantities >= stock.Value) + evt.Fail($"Only {stock} quantities can be purchased for {productReference}."); + } +} + +``` + +## OrderLineQuantityValidationHandler + +When changing the order line quantity on the cart page, we need to ensure that the quantities being changed are in stock. + +```csharp +public class OrderLineQuantityValidationHandler : ValidationEventHandlerBase +{ + private readonly IProductService _productService; + + public OrderLineQuantityValidationHandler(IProductService productService) + { + _productService = productService; + } + + public override void Validate(ValidateOrderLineQuantityChange evt) + { + var orderLine = evt.OrderLine; + var productReference = orderLine.ProductReference; + + var stock = _productService.GetProductStock(productReference); + + if (stock.HasValue && evt.Quantity.To > stock.Value) + evt.Fail($"Only {stock} quantities can be purchased for {productReference}."); + } +} + +``` + +## Register event handlers + +Finally, we need to register the Umbraco Commerce event handlers via an `IUmbracoCommerceBuilder` extension. + +```csharp +public static class UmbracoCommerceUmbracoBuilderExtensions +{ + public static IUmbracoCommerceBuilder AddEventHandlers(IUmbracoCommerceBuilder builder) + { + // Register event handlers + builder.WithValidationEvent() + .RegisterHandler(); + + builder.WithValidationEvent() + .RegisterHandler(); + + return builder; + } +} +``` diff --git a/14/umbraco-commerce/how-to-guides/overview.md b/14/umbraco-commerce/how-to-guides/overview.md new file mode 100644 index 00000000000..04e265d4214 --- /dev/null +++ b/14/umbraco-commerce/how-to-guides/overview.md @@ -0,0 +1,12 @@ +--- +description: How-to Guides on how to perform specific tasks in Umbraco Commerce. +--- + +# Overview + +In this section, we will provide a series of How-To Guides, showcasing how to perform specific tasks within Umbraco Commerce. + +## Available guides + +
Migrate from Vendr to Umbraco Commercemigrate-from-vendr-to-umbraco-commerce
Configure SQLite supportconfigure-sqlite-support.md
Limit Order Line Quantitylimit-orderline-quantity.md
Use an alternative database for Umbraco Commerce tablesuse-an-alternative-database-for-umbraco-commerce-tables.md
+ diff --git a/14/umbraco-commerce/how-to-guides/use-an-alternative-database-for-umbraco-commerce-tables.md b/14/umbraco-commerce/how-to-guides/use-an-alternative-database-for-umbraco-commerce-tables.md new file mode 100644 index 00000000000..2c75a466ba7 --- /dev/null +++ b/14/umbraco-commerce/how-to-guides/use-an-alternative-database-for-umbraco-commerce-tables.md @@ -0,0 +1,26 @@ +--- +description: >- + How-To Guide to configure using an alternative database for the tables of + Umbraco Commerce. +--- + +# Use an Alternative Database for Umbraco Commerce Tables + +By default, Umbraco Commerce will use the same database as Umbraco to store its data in. As e-commerce and content management have different database needs, it may be beneficial to house the Umbraco Commerce database tables in an alternative database. + +To do this, you can configure a Umbraco Commerce-specific connection string in your app settings `ConnectionStrings` section using the `umbracoCommerceDbDSN` prefix. + +```json +{ + ... + "ConnectionStrings": { + "umbracoDbDSN": "Server=umbracoServerAddress;Database=myUmbracoDb;User Id=myUsername;Password=myPassword;", + "umbracoDbDSN_ProviderName": "Microsoft.Data.SqlClient", + "umbracoCommerceDbDSN": "Server=umbracoCommerceServerAddress;Database=myUmbracoCommerceDb;User Id=myUsername;Password=myPassword;", + "umbracoCommerceDbDSN_ProviderName": "Microsoft.Data.SqlClient" + }, + ... +} +``` + +When Umbraco Commerce runs, it will perform all of its migrations and operations against this database instead of the default Umbraco database. diff --git a/14/umbraco-commerce/installation/install.md b/14/umbraco-commerce/installation/install.md new file mode 100644 index 00000000000..b97e51d7fd7 --- /dev/null +++ b/14/umbraco-commerce/installation/install.md @@ -0,0 +1,32 @@ +--- +description: >- + Learn the steps needed in order to install Umbraco Commerce into your Umbraco CMS website. +--- + +# Installation + +Learn how to install Umbraco Commerce into your Umbraco CMS implementation. + +You can also find information about how to upgrade and how to install and activate your Umbraco Commerce license. + +## NuGet Package Installation + +Umbraco Commerce is available via [NuGet.Org](https://www.nuget.org/packages/Umbraco.Commerce/). + +To install Umbraco Commerce via NuGet you can run the following command directly in the NuGet Manager Console window: + +```bash +PM> dotnet add package Umbraco.Commerce +``` + +Alternatively, you can also find and install the NuGet package via the NuGet Package Manager in Visual Studio. You will see a number of packages available, however, you will want to install the main **Umbraco Commerce** package. + +![Installing Umbraco Commerce via the NuGet Package Manager](../media/nuget-packages-overview.png) + +For most sites using a single solution, the above will be all you need to install Umbraco Commerce into your project. When you have a more complex solution structure consisting of multiple projects, Umbraco Commerce is available in multiple sub-packages with varying dependencies. + +
Sub-packageDescription
Umbraco.Commerce.CommonA shared project of common, non-Commerce-specific patterns and helpers.
Umbraco.Commerce.CoreCore Commerce functionality that doesn't require any infrastructure-specific dependencies.
Umbraco.Commerce.InfrastructureInfrastructure-specific project containing implementations of core Commerce functionality.
Umbraco.Commerce.Persistence.SqlServerPersistence-specific project containing implementations of core Commerce persistence functionality for SQL Server.
Umbraco.Commerce.Persistence.SqllitePersistence-specific project containing implementations of core Commerce persistence functionality for SQLite.
Umbraco.Commerce.WebCore Commerce functionality that requires a web context.
Umbraco.Commerce.CmsCore Commerce functionality that requires an Umbraco dependency.
Umbraco.Commerce.Cms.WebThe Commerce functionality for the Umbraco presentation layer.
Umbraco.Commerce.Cms.Web.UIThe static Commerce assets for the Umbraco presentation layer.
Umbraco.Commerce.Cms.StartupThe Commerce functionality for registering Commerce with Umbraco.
Umbraco.CommerceThe main Commerce package entry point package.
+ +## Installing a License + +See the [Licensing page](the-licensing-model.md#installing-your-license) for details on how to install a license. diff --git a/14/umbraco-commerce/installation/the-licensing-model.md b/14/umbraco-commerce/installation/the-licensing-model.md new file mode 100644 index 00000000000..2b4034a69f5 --- /dev/null +++ b/14/umbraco-commerce/installation/the-licensing-model.md @@ -0,0 +1,161 @@ +# Licensing + +Umbraco Commerce is a commercial product. You can run Umbraco Commerce unrestricted locally without the need for a license. Running Umbraco Commerce in the public domain will display a warning banner in the backoffice and will limit the maximum number of orders to 20. To remove these restrictions, you'll need to have a **valid license**. + +## How does it work? + +Licenses are sold per backoffice domain and will also work on all subdomains. If you have alternative staging/QA environment domains, additional domains can be added to the license on request. + +{% hint style="info" %} +The licenses are not bound to a specific product version. They will work for all versions of the related product. +{% endhint %} + +Let's say that you have a license configured for your domain, `mysite.com`, and you've requested two development domains, `devdomain.com` and `devdomain2.com`. + +The license will cover the following domains: + +* `localhost` +* `*.local` +* `*.mysite.com` +* `www.mysite.com` +* `devdomain.com` +* `www.devdomain.com` +* `devdomain2.com` +* `www.devdomain2.com` + +{% hint style="info" %} +You can have only 1 license per Umbraco installation. +{% endhint %} + +## What does a license cover? + +There are a few differences as to what the licenses cover: + +* A single license covers the installation of Umbraco Commerce in 1 production backoffice domain, as well as in any requested development domains. +* The production domain includes **all subdomains** (e.g. `*.mysite.com`). +* The development domains work with or without the `www` subdomain. +* The license allows for an unlimited number of orders. +* The license also includes `localhost` and `*.local` as a valid domain. + +{% hint style="info" %} +If you have multiple backoffice domains pointing at the same installation, you have the option to purchase and [add **additional domains**](the-licensing-model.md#add-additional-domains) to your license. + +This is an add-on domain for existing licenses. Refunds will not be given for this product. +{% endhint %} + +## Configuring your license + +You can look at the pricing, features, and purchase a license on the [Umbraco Commerce](https://umbraco.com/products/add-ons/commerce/) page. A member of the [sales team](mailto:suits@umbraco.com) will manage this process. In the process, you will need to provide all domains you wish to have covered by the license such as primary and development/staging/QA domains. You should then receive a license code to be installed in your solution. + +### Add additional domains + +To add additional domains to your license, reach out to a member of the [Sales team](mailto:suits@umbraco.com) with your request and they will manage this process. + +## Installing your license + +Once you have received your license code it needs to be installed on your site. + +1. Open the root directory for your project files. +2. Locate and open the `appSettings.json` file. +3. Add your Umbraco Commerce license key to `Umbraco:Licenses:Umbraco.Commerce`: + +```json +"Umbraco": { + "Licenses": { + "Umbraco.Commerce": "YOUR_LICENSE_KEY" + } +} +``` + +### Verify the license installation + +You can verify that your license is successfully installed by logging into your project's backoffice and navigating to the settings section. Here you will see a license dashboard which should display the status of your license. + +![Umbraco Commerce License Dashboard](../media/license-dashboard.png) + +### When and how to configure an `UmbracoApplicationUrl` + +If you are running on a single domain for both your frontend and backend environments, it's not necessary to configure a `UmbracoApplicationUrl`. + +If you have different domains for your frontend and backend, then it's advised that you configure an `UmbracoApplicationUrl` set to your backoffice URL. This helps the licensing engine know which URL should be used for validation checks. Without this configuration setting, the licensing engine will try and work out the domain to validate from the HTTP request object. This can lead to errors when switching between domains. + + +An `UmbracoApplicationUrl` can be configured in your `appSettings.json` file like so: + +```json +{ + "Umbraco": { + "CMS": { + "WebRouting": { + "UmbracoApplicationUrl": "https://admin.my-custom-domain.com/" + } + } + } +} +``` + +See the [Fixed Application URL](https://docs.umbraco.com/umbraco-cms/extending/health-check/guides/fixedapplicationurl) documentation for more details about this setting. + +#### Configuring `UmbracoApplicationUrl` on Umbraco Cloud + +If you are hosting on Umbraco Cloud you will find the configuration described above won't be reflected in your environment. The reason for this is that Umbraco Cloud sets this value as an environment variable set to the Cloud project domain (`.umbraco.io`). This overrides what is set via the `appSettings.json` file. + +There are two options in this case: +- Either the domains for each of your Cloud environments can be added to your license. +- Or, for more control and to ensure this value is set correctly for other reasons, you can apply the configuration via code. + +For example, in your `Program.cs`: + +```csharp +services.Configure(o => o.UmbracoApplicationUrl = ""); +``` + +In practice, you will probably want to make this a bit more sophisticated. You can read the value from another configuration key, removing the need to hard-code it and have it set as appropriate in different environments. You can also move this code into a composer or an extension method if you prefer not to clutter up the `Program.cs` file. + +### Validating a license without an outgoing Internet connection + +Some Umbraco installations will have a highly locked down production environment, with firewall rules that prevent outgoing HTTP requests. This will interfere with the normal process of license validation. + +On start-up, and periodically whilst Umbraco is running, the license component used by Umbraco Commerce will make an HTTP POST request to `https://license-validation.umbraco.com/api/ValidateLicense`. + +If it's possible to do so, the firewall rules should be adjusted to allow this request. + +If such a change is not feasible, there is another approach you can use. + +You will need to have a server, or serverless function, that is running and can make a request to the online license validation service. That needs to run on a daily schedule, making a request and relaying it onto the restricted Umbraco environment. + +To set this up, firstly ensure you have a reference to `Umbraco.Licenses` version 13.1 or higher. If the version of Commerce you are using depends on an earlier version, you can add a direct package reference for `Umbraco.Licenses`. + +Then configure a random string as an authorization key in configuration. This is used as protection to ensure only valid requests are handled. You can also disable the normal regular license checks - as there is no point in these running if they will be blocked: + +```json + "Umbraco": { + "Licenses": { + "Umbraco.Commerce": "" + }, + "LicensesOptions": { + "EnableScheduledValidation": false, + "ValidatedLicenseRelayAuthKey": "" + } +``` + +Your Internet-enabled server should make a request of the following form to the online license validation service: + +``` +POST https://license-validation.umbraco.com/api/ValidateLicense +{ + "ProductId": "Umbraco.Commerce", + "LicenseKey": "", + "Domain": "" +} +``` + +The response should be relayed exactly via an HTTP request to your restricted Umbraco environment: + +``` +POST http:///umbraco/licenses/validatedLicense/relay?productId=&licenseKey= +``` + +A header with a key of `X-AUTH-KEY` and the value of the authorization key you have configured should be provided. + +This will trigger the same processes that occur when the normal scheduled validation completes ensuring your product is considered licensed. diff --git a/14/umbraco-commerce/key-concepts/base-currency.md b/14/umbraco-commerce/key-concepts/base-currency.md new file mode 100644 index 00000000000..74c62fe801e --- /dev/null +++ b/14/umbraco-commerce/key-concepts/base-currency.md @@ -0,0 +1,43 @@ +--- +description: Base Currency for standardized reporting in Umbraco Commerce. +--- + +# Base Currency + +Within Umbraco Commerce we have support for showing analytics reports, including summaries of sales figures. At the same time, Umbraco Commerce also supports orders being placed in multiple currencies. These pose a problem of how to display a succinct sales figure when the orders are placed in multiple currencies. The answer to this is the store's **Base Currency**. + +When you configure a store you need to assign a base currency to it. This currency is there to identify which currency the store should use as its basis for reports and sales figures. This will be used regardless of whatever currency the order was placed in. + +When a store has a base currency configured, any order placed will track the price of the order in the customer's chosen currency. It will also track the current exchange rate between that currency and the store's base currency. Whenever a report is run the order total prices will be converted using this exchange rate. This means that they can all be automatically presented in the single base currency of the store. + +## Currency Exchange Rates + +Umbraco Commerce uses an `ICurrencyExchangeRateService` to retrieve the most up-to-date rate to be able to track the current exchange rate. This is done for each individual order. + +Out of the box, Umbraco Commerce comes with a number of available services you can choose to use. Some are free services, whilst others require a paid subscription. + +* **ExchangeRatesApiCurrencyExchangeRateService** uses the free [exchangeratesapi.io](https://exchangeratesapi.io/) API and is the default option. +* **FixerCurrencyExchangeRateService** uses the [fixer.io](https://fixer.io/) API which is a reliable paid option (with a reasonable free plan). +* **CurrencyLayerCurrencyExchangeRateService** uses the [currencylayer.com](https://currencylayer.com/) API which is another reliable paid option (with a reasonable free plan). + +If you wish to change the currency exchange rate service used, you can do so via the [dependency injection](dependency-injection.md) approach. This is used to override the default service configuration. For services that require configuration to be passed in, such as service API keys, you'll need to use the factory-based override as follows: + +```csharp +public static class UmbracoCommerceUmbracoBuilderExtensions +{ + public static IUmbracoCommerceBuilder AddMyServices(IUmbracoCommerceBuilder builder) + { + // Register the fixer tax service with your API key + builder.Services.AddUnique(new FixerCurrencyExchangeRateService("YOUR_FIXER_API_KEY")); + + // Return the builder to continue the chain + return builder; + } +} +``` + +## Historic Orders + +Umbraco Commerce has a background service that will attempt to ensure that all historic orders without an exchange rate defined get updated. This is done in case the third-party APIs fail and we need a method of cleaning data. It is also done in case the store base currency is ever changed. In this case, we need to re-process all orders again with the newly selected base currency. + +The currency exchange rate background task will run once every 24 hours or after 20 seconds after an app pool recycle. diff --git a/14/umbraco-commerce/key-concepts/bulk-actions.md b/14/umbraco-commerce/key-concepts/bulk-actions.md new file mode 100644 index 00000000000..0c509a89da4 --- /dev/null +++ b/14/umbraco-commerce/key-concepts/bulk-actions.md @@ -0,0 +1,140 @@ +--- +description: Perform bulk operations on entities in Umbraco Commerce. +--- + +# Bulk Actions + +{% hint style="danger" %} +This feature has changed in v14 and requires updated documentation. +{% endhint %} + +You might need to execute a custom action for each entity in a selection while extending Umbraco Commerce. For example, being able to trigger label printing for a series of orders, or printing physical gift cards for specific gift card entities. + +Umbraco Commerce allows extending the different table views, adding in **Bulk Actions** to the bulk action bar that appears when you select multiple items. Out of the box all list views contain at minimum a **Delete** bulk action. + +## Injecting a Bulk Action + +Bulk actions are client-side concepts and so additional bulk actions are injected with JavaScript in an AngularJS configuration module. + +To create a configuration module you can create a custom folder in the `App_Plugins` directory and create a JavaScript file to hold your configuration in. + +1. Create a custom folder in the `App_Plugins` directory. +2. Create a JavaScript file with this new folder. + +```bash +App_Plugins\MyPlugin\backoffice\config\umbraco-commerce-bulk-actions-config.js +``` + +3. Register the file in a `package.manifest` file within the same folder. + +```bash +App_Plugins\MyPlugin\package.manifest +``` + +4. Add the following JSON to the `package.manifest` file: + +```javascript +{ + "javascript": [ + "~/App_Plugins/MyPlugin/backoffice/config/umbraco-commerce-bulk-actions-config.js" + ] +} +``` + +5. Inject a bulk action inside the `umbraco-commerce-bulk-actions-config.js` by adding the following: + +```csharp +angular.module('umbracoCommerce') + .config(['umbracoCommerceActionsProvider', function (umbracoCommerceActionsProvider) { + umbracoCommerceActionsProvider.bulkActions.push(['myResource', function (myResource) + { + return { + name: 'My Action', + icon: 'icon-box', + itemAction: function (bulkItem) { + return myResource.doAction(bulkItem.id); + }, + condition: function (ctx) { + return ctx.entityType == 'Order' + }, + sortOrder: 110 + } + }]); + }]); + +``` + +Once created, the bulk action will be displayed in the bulk actions bar for the configured entities. + +![Bulk Action Button](../media/custom\_bulk\_action.png) + +## Bulk Action Options + +| Property | Description | +| ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `name` | Name of your bulk action that will be displayed in the bulk action button. | +| `icon` | Icon for your bulk action that will be displayed in the bulk action button next to the name. | +| `sortOrder` | The order in which to display this action in the bulk actions bar. System bulk actions sort orders are in multiples of `100` in order to allow the positioning of items between system bulk actions. | + +| Method | Description | +| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `configure(items)` | A function to run before the bulk operation in order to provide configuration for the bulk action. Returns a Promise that returns an object which is then passed to the item/bulk action methods. | +| `itemAction(item, config)` | Individual action to perform per selected item. A status will be displayed after each processed item shows progress. Returns a Promise. | +| `bulkAction(items, config)` | Single action to be performed for all selected items in one go. Returns a Promise. | +| `getConfirmMessage(total)` | A function that can provide a message to display before a bulk action is triggered should confirmation be required for the action to run. Returns a Promise that returns a string. | +| `getStatusMessage(count, total)` | Function used to provide a status message after each item has been processed. Displayed in the bulk actions bar after each `itemAction` has been called. Returns a Promise that returns a string. | +| `getSuccessMessage(total)` | A function to return a success message after all bulk actions have been performed. Returns a Promise that returns a string. | +| `condition(context)` | As all bulk actions are registered globally for all entity types, the `condition` function can be used to filter when, and for which entities a bulk action will display. | + +Only an `itemAction` or a `bulkAction` method can be defined for a bulk action configuration. If both are present, the `bulkAction` will be used and the `itemAction` will be ignored. If processing of items can be done individually, it is better to use the `itemAction` in order to provide user feedback. The `bulkAction` can only be used where items need to be processed in a single action. + +## Important Notes + +* Most methods apart from `itemAction` or `bulkAction` are optional. If methods aren't present, a default implementation will be used. Where the methods trigger, specific functionality such as the `configure` or `getConfirmMessage` methods will become disabled. +* The array-based syntax for registering is a bulk action with angular dependencies. Each bulk action is registered as an array, where all dependencies are defined first and then a factory function is defined last which returns the actual bulk action definition. +* Whilst these docs outline how to define a bulk action, you will likely need to register further resources or services that can perform the given bulk operation and include these as a dependency for your action. + +## Examples + +The following section display an example of a bulk action with dialog configuration step: + +```csharp +angular.module('umbracoCommerce') + .config(['umbracoCommerceActionsProvider', function (umbracoCommerceActionsProvider) { + umbracoCommerceActionsProvider.bulkActions.push(['$q', 'editorService', 'myResource', function ($q, editorService, myResource) + { + return { + name: 'My Action', + icon: 'icon-box', + configure: function (selected) { + return $q(function (resolve, reject) { + editorService.open({ + view: '/app_plugins/myplugin/views/dialogs/config.html', + size: 'small', + config: { + items: selected + }, + submit: function (model) { + editorService.close(); + resolve(model); + }, + close: function () { + editorService.close(); + reject(); + } + }); + }); + }, + bulkAction: function (items) { + var ids = items.map(itm => itm.id); + return myResource.doAction(ids); + }, + condition: function (ctx) { + return ctx.entityType == 'Order' + }, + sortOrder: 110 + } + }]); + }]); + +``` diff --git a/14/umbraco-commerce/key-concepts/calculators.md b/14/umbraco-commerce/key-concepts/calculators.md new file mode 100644 index 00000000000..d1cff883162 --- /dev/null +++ b/14/umbraco-commerce/key-concepts/calculators.md @@ -0,0 +1,57 @@ +--- +description: Performing calculations with Calculators in Umbraco Commerce. +--- + +# Calculators + +Calculators are small service implementations with the sole responsibility of calculating prices for a given aspect of an Order. There are five main Calculator service interfaces in Umbraco Commerce: + +* **IShippingCalculator** - Responsible for calculating the Shipping Method price/tax rate of a given Shipping Method. +* **IPaymentCalculator** - Responsible for calculating the Payment Method price/tax rate of a given Payment Method. +* **IProductCalculator** - Responsible for calculating the Product unit price/tax rate of a given Product. +* **IOrderLineCalculator** - Responsible for calculating the price/tax rate of a given OrderLine. +* **IOrderCalculator** - Responsible for calculating the entire Order. + +All Calculator services can be replaced with alternative implementations should you wish to change how Umbraco Commerce performs its calculations. + +## Defining a Custom Calculator Implementation + +The individual Calculator interfaces may differ but the process for defining a custom Calculator implementation is the same for all of them. It is possible to create a new class that implements the default system Calculator that you wish to replace. You can then override the relevant calculation methods. + +```csharp +public class MyProductCalculator : ProductCalculator +{ + public MyProductCalculator(ITaxService taxService, IStoreService storeService) + : base(taxService, storeService) + { } + + public override TaxRate CalculateProductTaxRate(IProductSnapshot productSnapshot, TaxSource taxSource, TaxRate fallbackTaxRate) + { + // Do custom tax rate calculation here + } + + public override Price CalculateProductPrice(IProductSnapshot productSnapshot, Guid currencyId, TaxRate taxRate) + { + // Do custom price calculation here + } +} + +``` + +## Registering a custom Calculator implementation + +Calculators are [registered via the IUmbracoCommerceBuilder](umbraco-commerce-builder.md) interface using the `AddUnique()` method on the `Services` property. The `TServiceInterface` parameter in this case is the Calculator interface Type you wish to replace and `TReplacementService` is the Type of your custom Calculator implementation. + +```csharp +public static class UmbracoCommerceUmbracoBuilderExtensions +{ + public static IUmbracoCommerceBuilder AddMyServices(IUmbracoCommerceBuilder builder) + { + // Replacing the product calculator implementation + builder.Services.AddUnique(); + + // Return the builder to continue the chain + return builder; + } +} +``` diff --git a/14/umbraco-commerce/key-concepts/dependency-injection.md b/14/umbraco-commerce/key-concepts/dependency-injection.md new file mode 100644 index 00000000000..238d5c93202 --- /dev/null +++ b/14/umbraco-commerce/key-concepts/dependency-injection.md @@ -0,0 +1,135 @@ +--- +description: Minimizing dependencies via dependency injection with Umbraco Commerce. +--- + +# Dependency Injection + +Dependency Injection (DI) can be an intimidating subject. DI reduces the number of hard-coded dependencies within a codebase by providing a means to define dependencies independently and have them "injected" dynamically. These dependencies are often exposed as interfaces, rather than concrete types. This enables them to be swapped out or replaced with minimal effort. + +The ability to "swap out" dependencies is used in Umbraco Commerce in a number of places to allow developers to provide alternative implementations of specific features. This could be the ability to: + +* Swap out the default Product Calculator to change how product prices are calculated. +* Swap out the default Order Number Generator should you wish to provide an alternative order numbering strategy. + +Umbraco Commerce makes heavy use of the dependency injection mechanism in Umbraco to manage many of the features. It is important to understand how to work with the registration process. + +What follows are examples of common tasks you'll need to be able to perform via the DI container in order to work effectively with Umbraco Commerce. For more detailed documentation, it is highly recommended that you read the [Umbraco CMS Dependency Injection and IoC documentation](https://docs.umbraco.com/umbraco-cms/reference/using-ioc). + +## Registering Dependencies + +Registering dependencies is an important ability to understand as this is used to register Umbraco Commerce event handlers and to extend system pipelines. + +To register a dependency you need to do so via the `IUmbracoBuilder` interface. This is exposed within the main `Program.cs` file, between the `AddComposers()` method call and the `Build()` method call. + +```csharp +builder.CreateUmbracoBuilder() + .AddBackOffice() + .AddWebsite() + .AddDeliveryApi() + .AddComposers() + // Append your dependencies here... + .Build(); +``` + +You can also add your registration logic inside an `IUmbracoBuilder` extension method and then call that within the `Program.cs` file. This is the recommended approach. + +```csharp +public static class UmbracoBuilderExtensions +{ + public static IUmbracoBuilder AddMyDependencies(this IUmbracoBuilder builder) + { + // Register my dependencies here via the builder parameter + ... + + // Return the builder to continue the chain + return builder; + } +} +``` + +```csharp +builder.CreateUmbracoBuilder() + .AddBackOffice() + .AddWebsite() + .AddDeliveryApi() + .AddComposers() + .AddMyDependencies() + .Build(); +``` + +Registering a dependency is achieved by working with the `IUmbracoBuilder` API: + +```csharp +public static class UmbracoBuilderExtensions +{ + public static IUmbracoBuilder AddMyDependencies(this IUmbracoBuilder builder) + { + // Register a singleton dependency + builder.Services.AddSingleton(); + + // Register a transient dependency + builder.Services.AddTransient(); + + // Return the builder to continue the chain + return builder; + } +} +``` + +## Replacing Dependencies + +Like it is possible to add new dependencies it is also possible to replace existing dependencies. This could be dependencies such as the different Calculators available in Umbraco Commerce. + +Where a feature is replaceable, replacing that dependency is also achieved via the `IUmbracoBuilder` API: + +```csharp +public static class UmbracoBuilderExtensions +{ + public static IUmbracoBuilder AddMyDependencies(this IUmbracoBuilder builder) + { + // Replacing the product calculator implementation + builder.Services.AddUnique(); + + // Replacing the default product adapter + builder.Services.AddUnique(); + + // Return the builder to continue the chain + return builder; + } +} +``` + +## Injecting Dependencies + +As well as registering dependencies, you will also need to know how to access Umbraco Commerce dependencies from within your Controllers. To do this, we add parameters to our Controllers constructor for the dependencies we require. Then, the IoC container will inject them automatically for us. + +```csharp +using Umbraco.Commerce.Core.Api; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.ViewEngines; +using Microsoft.Extensions.Logging; +using Umbraco.Cms.Core.Web; +using Umbraco.Cms.Web.Common.Controllers; + +namespace MyProject.Web.Controllers +{ + public class HomeController : RenderController + { + private readonly IUmbracoCommerceApi _umbracoCommerceApi; + + public HomeController(IUmbracoCommerceApi umbracoCommerceApi, ILogger logger, + ICompositeViewEngine compositeViewEngine, IUmbracoContextAccessor umbracoContextAccessor) + : base(logger, compositeViewEngine, umbracoContextAccessor) + { + _umbracoCommerceApi = umbracoCommerceApi; + } + + public override IActionResult Index() + { + // Work with the _umbracoCommerceApi here + + return CurrentTemplate(CurrentPage); + } + } +} +``` diff --git a/14/umbraco-commerce/key-concepts/discount-rules-and-rewards.md b/14/umbraco-commerce/key-concepts/discount-rules-and-rewards.md new file mode 100644 index 00000000000..a085fb99496 --- /dev/null +++ b/14/umbraco-commerce/key-concepts/discount-rules-and-rewards.md @@ -0,0 +1,180 @@ +--- +description: Define when a Discount should apply and what should be the Reward in Umbraco Commerce. +--- + +# Discount Rules / Rewards + +Discounts in Umbraco Commerce are defined using a series of rules and reward builders that let you configure the following: + +* When a Discount should apply. +* What the Reward should be for that Discount. + +These builders come with a handful of the most common Rules and Rewards that should suit the majority of web stores' needs. When need to create your own Rules or Rewards then these are extendable via a Provider model allowing you to incorporate your own custom logic. + +## Discount Rules + +There are two types of Discount Rules in Umbraco Commerce: + +* **Order Discount Rules**: Determine whether a discount should apply to an Order. Returns a Fulfilled/Unfulfilled status depending on whether the Rule logic has been met. +* **Order Line Discount Rules**: Determine whether a discount should apply to an Order Line within an Order. Returns a Fulfilled/Unfulfilled status depending on whether the Rule logic has been met. Where the status is Fulfilled, a list of all Order Lines that are fulfilled by this Rule is also returned. + +### Example: Custom Order Discount Rule Provider + +An example of an Order Discount Rule Provider would look something like this: + +```csharp +[DiscountRuleProvider("myCustomOrderRule", "My Custom Order Rule")] +public class MyCustomOrderRuleProvider : OrderDiscountRuleProviderBase +{ + public override DiscountRuleResult ValidateRule(DiscountRuleContext ctx, MyCustomOrderRuleProviderSettings settings) + { + if (/* Some custom logic */) + return Fulfilled(); + + return Unfulfilled(); + } +} + +public class MyCustomOrderRuleProviderSettings +{ + [DiscountRuleProviderSetting(Key = "priceType", + Name = "Price Type", + Description = "The type of price to compare against")] + public OrderPriceType PriceType { get; set; } + + ... +} + +``` + +All Order Discount Rule Providers inherit from a base class `OrderDiscountRuleProviderBase`. `TSettings` is the type of a Plain Old Class Object (POCO) model class representing the Discount Rule Providers settings. + +{% hint style="info" %} +See the [Settings Objects](discount-rules-and-rewards.md#settings-objects) section below for more information on Settings objects. +{% endhint %} + +The class must be decorated with `DiscountRuleProviderAttribute` which defines the Discount Rule Providers `alias` and `name`, and can also specify a `description` or `icon` to be displayed in the backoffice. The `DiscountRuleProviderAttribute` is also responsible for defining a `labelView` for the Provider. + +{% hint style="info" %} +See the [Label views](discount-rules-and-rewards.md#label-views) section below for more information on Label Views. +{% endhint %} + +Rule Providers have a `ValidateRule` method that accepts a `DiscountRuleContext` as well as an instance of the Providers `TSettings` settings model. Inside this you can perform your custom logic, returning a `DiscountRuleResult` to notify Umbraco Commerce of the Rule outcome. + +If the passed-in context (which contains a reference to the Order) meets the Rule's criteria, then a fulfilled `DiscountRuleResult` can be returned by calling `return Fulfilled();`. Alternatively, if the Order didn't meet the Rules criteria an unfulfilled `DiscountRuleResult` can be returned by calling `return Unfulfilled();`. + +### Example: Custom Order Line Discount Rule Provider + +An example of an Order Line Discount Rule Provider would look something like this: + +```csharp +[DiscountRuleProvider("myCustomOrderLineRule", "My Custom Order Line Rule")] +public class MyCustomOrderLineRuleProvider : OrderLineDiscountRuleProviderBase +{ + public override DiscountRuleResult ValidateRule(DiscountRuleContext ctx, MyCustomOrderLineRuleProviderSettings settings) + { + if (/* Some custom logic */) + return Fulfilled(fulfilledOrderLines); + + return Unfulfilled(); + } +} + +public class MyCustomOrderLineRuleProviderSettings +{ + [DiscountRuleProviderSetting(Key = "priceType", + Name = "Price Type", + Description = "The type of price to compare against")] + public OrderPriceType PriceType { get; set; } + + ... +} + +``` + +All Order Line Discount Rule Providers inherit from a base class `OrderLineDiscountRuleProviderBase` and follows much the same requirements as the Order Discount Rule Provider defined above. Where they differ is in the `ValidateRule` method implementation and when a fulfilled `DiscountRuleResult` is returned. In this case, an Order Line Discount Rule returns a collection of Order Lines processed by the Rule that have met the rules criteria. Whether the rules are met, is checked by calling `return Fulfilled(fulfilledOrderLines);`. + +## Discount Rewards + +### Example: Custom Discount Reward Provider + +An example of a Discount Reward Provider would look something like this: + +```csharp +[DiscountRewardProvider("myDiscountReward", "My Discount Reward")] +public class MyDiscountRewardProvider : DiscountRewardProviderBase +{ + public override DiscountRewardCalculation CalculateReward(DiscountRewardContext ctx, MyDiscountRewardProviderSettings settings) + { + var result = new DiscountRewardCalculation(); + + // Some custom calculation logic goes here + + return result; + } +} + +public class MyDiscountRewardProviderSettings +{ + [DiscountRewardProviderSetting(Key = "priceType", + Name = "Price Type", + Description = "The price that will be affected by this reward")] + public OrderPriceType PriceType { get; set; } + + ... +} + +``` + +All Discount Reward Providers inherit from a base class `DiscountRewardProviderBase`. `TSettings` is the Type of a POCO model class representing the Discount Reward Providers settings. + +{% hint style="info" %} +See the [Settings Objects](settings-objects.md) documentation for more information on Settings objects. +{% endhint %} + +The class must be decorated with `DiscountRewardProviderAttribute` which defines the Discount Reward Providers `alias` and `name`. It can also specify a `description` or `icon` to be displayed in the Umbraco Commerce backoffice. The `DiscountRewardProviderAttribute` is responsible for defining a `labelView` for the Provider. + +{% hint style="info" %} +See the [Label views](discount-rules-and-rewards.md#label-views) section below for more information on Label Views. +{% endhint %} + +Reward Providers have a `CalculateReward` method that accepts a `DiscountRewardContext` as well as an instance of the Providers `TSettings` settings model. Inside this, you can perform your custom calculation logic, returning a `DiscountRewardCalculation` instance that defines any Reward values to apply to the Order. + +```csharp +// Add a shipping total discount +result.ShippingTotalPriceAdjustments.Add(new DiscountAdjustment(ctx.Discount, price)); + +// Add a subtotal discount +result.SubtotalPriceAdjustments.Add(new DiscountAdjustment(ctx.Discount, price)); +``` + +## Common Features + +### Settings Objects + +{% hint style="info" %} +See the [Settings Objects](settings-objects.md) documentation for more information on Settings objects. +{% endhint %} + +### Label Views + +{% hint style="danger" %} +This feature has changed in v14 and requires updated documentation. +{% endhint %} + +Both the `DiscountRuleProviderAttribute` and the `DiscountRewardProviderAttribute` allow you to define a `labelView` for the Provider. It should be the path to an Angular JS view file that will be used to render a label in the Rule/Reward Builder UI. Where no `labelView` is supplied, one will be looked for by convention at the following location: + +`~/app_plugins/umbracocommerce/views/discount/{Type}/labelViews/{ProviderAlias}.html` + +`Type` is either `rules` or `rewards`, depending on the Type of Provider it refers to. `ProviderAlias` is the alias of the Provider. + +The Rule/Reward Label View should provide a user-friendly summary of its settings to display in the relevant Builder UI. + +![Discount Rule Label Views](../media/discount\_rule\_builder\_label\_views.png) + +The Label View file will be passed a `model` property which will be a JavaScript representation of the given Providers settings object. + +```html +Order {{ model.priceType | umbracoCommerceSplitCamelCase }} Discount + +``` diff --git a/14/umbraco-commerce/key-concepts/events.md b/14/umbraco-commerce/key-concepts/events.md new file mode 100644 index 00000000000..26dab017470 --- /dev/null +++ b/14/umbraco-commerce/key-concepts/events.md @@ -0,0 +1,136 @@ +--- +description: Listening for changes within Umbraco Commerce. +--- + +# Events + +Much like the standard events in .NET, Umbraco Commerce has an events system to notify you when certain things happen within the application. However, Umbraco Commerce differs slightly in the types of events that are fired and how you register your event handlers. + +Events in Umbraco Commerce are registered via the [`IUmbracoCommerceBuilder`](umbraco-commerce-builder.md) interface, rather than via static event delegates. This has a number of advantages, such as being able to control the order of when event handlers are fired. It also allows us to inject dependencies into the event handlers making it a much more decoupled approach to eventing. + +In Umbraco Commerce, there are two main types of events you can create handlers for. Both are explained in detail below. + +## Validation events + +Validation events are events that fire immediately before a change is about to be made to an entity. These events allow you to inject your own logic to decide whether an action should be possible or not. We already have a number of validation handlers built in to maintain the consistency of your data. Validation events allow you to extend this behavior with your own rules. + +### Example: Validation event handler + +An example of a Validation event handler would look something like this: + +```csharp +public class MyOrderProductAddValidationHandler : ValidationEventHandlerBase +{ + public override void Validate(ValidateOrderProductAdd evt) + { + if (evt.ProductReference == "MyProductRef" && evt.Quantity % 10 != 0) + evt.Fail("This product can only be purchased in increments of 10"); + } +} + +``` + +All Validation event handlers inherit from a base class `ValidationEventHandlerBase` where `TEvent` is the Type of the event the handler is for. They then have a `Validate` method that accepts an instance of the event type, and inside which you can perform your custom logic. If the event fails the validation logic, you can call `evt.Fail("Your message here")` to block the related action from happening and have a `ValidationException` be thrown. This can then be captured in the front end to display a friendly error message. + +### Registering a Validation event handler + +Validation event handlers are [registered via the IUmbracoCommerceBuilder](umbraco-commerce-builder.md) interface using the `WithValidationEvent()` builder extension method. This is done to identify the event you want to handle and then call the `RegisterHandler()` method to register your handler(s) for that event. + +```csharp +public static class UmbracoCommerceUmbracoBuilderExtensions +{ + public static IUmbracoCommerceBuilder AddMyEventHandlers(IUmbracoCommerceBuilder builder) + { + // Register my event handlers + builder.WithValidationEvent() + .RegisterHandler(); + + // Return the builder to continue the chain + return builder; + } +} +``` + +You can control the order of when Validation event handlers run, before or after another Validation event handler. This is done by registering them via the `RegisterHandlerBefore()` or `RegisterHandlerAfter()` methods respectively. + +```csharp +public static class UmbracoCommerceUmbracoBuilderExtensions +{ + public static IUmbracoCommerceBuilder AddMyEventHandlers(IUmbracoCommerceBuilder builder) + { + // Register MyOrderProductAddValidationHandler to execute before the SomeOtherValidationHandler handler + builder.WithValidationEvent() + .RegisterHandlerBefore(); + + // Register MyOrderProductAddValidationHandler to execute after the SomeOtherValidationHandler handler + builder.WithValidationEvent() + .RegisterHandlerAfter(); + + // Return the builder to continue the chain + return builder; + } +} +``` + +## Notification events + +Notification events are events that fire, often immediately before or after an action is executed. It provides you the ability to run custom logic to react to that action occurring. This is useful for scenarios such as sending emails when an Order is finalized or allowing you to synchronize stock updates with an external system. + +Notification events won't allow you to change the behavior of how Umbraco Commerce runs. They provide you with an effective means of reacting when changes occur. + +### Example: Notification event handler + +An example of a Notification event handler would look something like this: + +```csharp +public class MyOrderFinalizedHandler : NotificationEventHandlerBase +{ + public override void Handle(OrderFinalizedNotification evt) + { + // Implement your custom logic here + } +} + +``` + +All Notification event handlers inherit from a base class `NotificationEventHandlerBase` where `TEvent` is the Type of the event the handler is for. They then have a `Handle` method that accepts an instance of the event type, and inside which you can perform your custom logic. + +### Registering a Notification event handler + +Notification event handlers are [registered via the IUmbracoCommerceBuilder](umbraco-commerce-builder.md) interface using the `WithNotificationEvent()` builder extension method. This is used to identify the event you want to handle and then call the `RegisterHandler()` method to register your handler(s) for that event. + +```csharp +public static class UmbracoCommerceUmbracoBuilderExtensions +{ + public static IUmbracoCommerceBuilder AddMyEventHandlers(IUmbracoCommerceBuilder builder) + { + // Register my event handlers + builder.WithNotificationEvent() + .RegisterHandler(); + + // Return the builder to continue the chain + return builder; + } +} +``` + +You can also control the order of when Notification event handlers run by registering them via the `RegisterHandlerBefore()` or `RegisterHandlerAfter()` methods respectively. + +```csharp +public static class UmbracoCommerceUmbracoBuilderExtensions +{ + public static IUmbracoCommerceBuilder AddMyEventHandlers(IUmbracoCommerceBuilder builder) + { + // Register MyOrderFinalizedHandler to execute before the SomeOtherNotificationHandler handler + builder.WithNotificationEvent() + .RegisterHandlerBefore(); + + // Register MyOrderFinalizedHandler to execute after the SomeOtherNotificationHandler handler + builder.WithNotificationEvent() + .RegisterHandlerAfter(); + + // Return the builder to continue the chain + return builder; + } +} +``` diff --git a/14/umbraco-commerce/key-concepts/fluent-api.md b/14/umbraco-commerce/key-concepts/fluent-api.md new file mode 100644 index 00000000000..e40b2e9f4df --- /dev/null +++ b/14/umbraco-commerce/key-concepts/fluent-api.md @@ -0,0 +1,52 @@ +--- +description: Faster development thanks to the Fluent API of Umbraco Commerce. +--- + +# Fluent API + +An added side effect of having [ReadOnly and Writable entities](readonly-and-writable-entities.md) is that all of an entity's write operations are now performed via methods. This is instead of property setters, enabling to us convert Umbraco Commerce's write API in a fluent API. + +## Writing fluently + +You could perform a write operation as follows: + +```csharp +_uowProvider.Execute(uow => +{ + // Fetch the currency + var currency = _currencyService.GetCurrency(currencyId); + + // Convert the currency into it's Writable form + var writableCurrency = currency.AsWritable(uow); + + // Perform the write operation + writableCurrency.SetName("New Name"); + + // Persist the changes to the database + _currencyService.SaveCurrency(currency); + + // Close the transaction + uow.Complete(); +}); + +``` + +This could be simplified further by defining these actions fluently, chaining all of the entity methods into a succinct command sequence as follows: + +```csharp +_uowProvider.Execute(uow => +{ + var currency = _currencyService.GetCurrency(currencyId) + .AsWritable(uow) + .SetName("New Name"); + + _currencyService.SaveCurrency(currency); + + uow.Complete(); +}); + +``` + +{% hint style="info" %} +We know not everyone likes to write their code fluently and so the Umbraco Commerce Fluent API is an optional feature. Both code examples above are valid coding styles that will both work as well as each other. The Fluent API is an opt-in layer of syntax sugar that developers can use depending on their preferred style of coding. +{% endhint %} diff --git a/14/umbraco-commerce/key-concepts/order-calculation-state.md b/14/umbraco-commerce/key-concepts/order-calculation-state.md new file mode 100644 index 00000000000..ee68ff09939 --- /dev/null +++ b/14/umbraco-commerce/key-concepts/order-calculation-state.md @@ -0,0 +1,76 @@ +--- +description: Calculation context in Umbraco Commerce. +--- + +# Order Calculation State + +When extending the calculation process of Umbraco Commerce, either by custom [calculators](calculators.md) or custom [pipeline tasks](pipelines.md) it is important to be aware of the `OrderCalculation` object. + +## The Calculation Process + +When an order asks to be re-calculated, this triggers a calculation pipeline which in turn runs a series of calculation tasks. It then calls a number of extendable calculators in order to work out the orders' different prices. Throughout this process, Umbraco Commerce needs to keep track of all these prices as they change. At the same time, it also needs to ensure that the calculation is transactional in case something goes wrong. To accomplish both of these requirements we use a temporary state object called `OrderCalculation` to store all the information. Only at the end of the calculation, if everything was successful, we can copy those calculated prices back to the order. + +## Accessing Price Values + +In the different calculation extension points, Umbraco Commerce will often pass you **both** an `Order` object and the `OrderCalculation` object. We pass the order to get you access to any information held on it that you may need for calculations, such as custom properties. This shouldn't be used for accessing any price-related values of the order. + +As mentioned above, in order to maintain data integrity during the calculation process, the order itself is not updated until the end. This means that any calculations based on the order entities' price values would be based on the orders' **previously calculated price values**. + +In order to base your calculation on the current calculated price values you should instead access the `OrderCalculation` object. + +## The OrderCalculation Object + +```csharp +public class OrderCalculation +{ + public Dictionary OrderLines { get; } + + public Dictionary GiftCardAmounts { get; } + + public List FulfilledDiscountCodes { get; } + + public List FulfilledDiscounts { get; } + + public TaxRate TaxRate { get; set; } + + public OrderSubtotalPrice SubtotalPrice { get; set; } + + public TaxRate ShippingTaxRate { get; set; } + + public TotalPrice ShippingTotalPrice { get; set; } + + public TaxRate PaymentTaxRate { get; set; } + + public TotalPrice PaymentTotalPrice { get; set; } + + public OrderTotalPrice TotalPrice { get; set; } +} + +public class OrderLineCalculation +{ + public Dictionary OrderLines { get; } + + public TaxRate TaxRate { get; set; } + + public OrderLineUnitPrice UnitPrice { get; set; } + + public OrderLineTotalPrice TotalPrice { get; set; } + + public Price RollingSubOrderLinesTotalPrice { get; set; } + + public Price RollingSubOrderLinesTotalDiscountPrice { get; set; } +} +``` + +From the `OrderCalculation` object you can access the different order prices, including order line calculations. The order line calculations are stored in a dictionary. In this dictionary, the key is the order line's ID, and the value is an `OrderLineCalculation` object holding the calculated prices. + +By using the prices from the `OrderCalculation` object you can ensure that your calculation is based on the most up-to-date values for the order. + +{% hint style="info" %} +You should **always** base your price on the `OrderCalculation` object's price values when the following applies: + +* Your values are based on another price held on an order +* You have access to an `OrderCalculation` an object that isn't `null`. + +It should also only fall back to the order entity if there is no `OrderCalculation` available. +{% endhint %} diff --git a/14/umbraco-commerce/key-concepts/overview.md b/14/umbraco-commerce/key-concepts/overview.md new file mode 100644 index 00000000000..2170c1b2992 --- /dev/null +++ b/14/umbraco-commerce/key-concepts/overview.md @@ -0,0 +1,11 @@ +--- +description: >- + Learn everything you need to know about the main features and concepts of + Umbraco Commerce. +--- + +# Get to know the main features + +In this section, we will look at all the key concepts you will need to understand in order to work with Umbraco Commerce. Many of the concepts are based upon how Umbraco functions, although there are a number of Umbraco Commerce-specific concepts you will need to be aware of. + +
Umbraco PropertiesUmbraco Commerce is based on Umbraco CMS, which means that some of the things you'll be working with are native to the core product.umbraco-properties.md
CalculatorsLearn more about the different calculators that Umbraco Commerce ships with and how you can customize and extend them.calculators.md
Product VariantsWith Umbraco Commerce you can create a large array of different product variants. Learn more about how this all works.product-variants
diff --git a/14/umbraco-commerce/key-concepts/payment-forms.md b/14/umbraco-commerce/key-concepts/payment-forms.md new file mode 100644 index 00000000000..147940c65e9 --- /dev/null +++ b/14/umbraco-commerce/key-concepts/payment-forms.md @@ -0,0 +1,37 @@ +--- +description: Preparing to enter a Payment Providers payment gateway in Umbraco Commerce. +--- + +# Payment Forms + +In Umbraco Commerce, a Payment Form is a form that is displayed immediately prior to redirecting to the Payment Gateway for payment processing. This is usually displayed on some kind of review page, allowing a final review of the Order before commencing payment. + +The role of the Payment Form is to perform two tasks: + +* **Prepare the Order for the Payment Gateway** - This includes initializing the Orders transaction info and assigning the Order with an Order Number. It's also at this time that the Order is assigned to a Member if there is currently a logged-in session. This task may also involve passing information to the Payment Gateway to create a session, which the customer will complete in the next step. This is dependent on the Payment Provider implementation. +* **Redirect to the Payment Gateway** - The configured Payment Provider will return a Form that contains all the relevant information the Payment Gateway needs. This includes the Forms `action` attribute is set to post to a page on the Payment Gateways server, starting the payment capture process. + +{% hint style="info" %} +An Order's Order Number is assigned at the point of the Payment Form being rendered. This is to ensure that an Order has an Order Number prior to redirecting to the Payment Gateway. When the customer is redirected to the Confirmation page, there is always an Order Number to display + +The reason this is necessary is that many Payment Gateways finalize Orders asynchronously via webhooks. This means that it is possible that the customer will be redirected to the Confirmation page prior to actual finalization. This is why we set it early to ensure it is always available. + +It can happen that a customer cancels a payment mid-way through the capture process and returns to the Order to make modifications. In these cases, a new Order Number will be assigned at the point of re-displaying the Payment Form. +{% endhint %} + +## Example Payment Form + +An example of displaying a Payment Form would look something like this: + +```html +@using(await Html.BeginPaymentFormAsync(currentOrder)) { + +} + +``` + +The Payment Form is rendered using a `using` statement to wrap any additional form elements you wish to add, such as a submit button. + +{% hint style="info" %} +It's important to know that the Payment Form by default doesn't contain any button inputs to submit the Form. These must be supplied by the implementer. This is to ensure that the form will work with the design of the Site in question, giving developers more freedom. +{% endhint %} diff --git a/14/umbraco-commerce/key-concepts/payment-providers.md b/14/umbraco-commerce/key-concepts/payment-providers.md new file mode 100644 index 00000000000..848b27c1d8b --- /dev/null +++ b/14/umbraco-commerce/key-concepts/payment-providers.md @@ -0,0 +1,108 @@ +--- +description: Accepting payments via Payment Providers in Umbraco Commerce. +--- + +# Payment Providers + +Payment Providers are how Umbraco Commerce is able to accept multiple different methods of payment on a Site. Their job is to provide a standard interface between third-party payment gateways and Umbraco Commerce itself. This is done in order to allow the passing of information between the two platforms. + +How the integrations work is often different for each payment gateway. The Umbraco Commerce Payment Providers add a flexible interface that should be able to work with most payment gateways. + +## Example Payment Provider + +An example of a bare-bones Payment Provider would look something like this: + +```csharp +[PaymentProvider("my-payment-provider-alias", "My Payment Provider Name", "My Payment Provider Description")] +public class MyPaymentProvider : AsyncPaymentProviderBase +{ + public MyPaymentProvider(UmbracoCommerceContext umbracoCommerce) + : base(umbracoCommerce) + { } + + ... +} + +public class MyPaymentProviderSettings +{ + [PaymentProviderSetting(Name = "Continue URL", + Description = "The URL to continue to after this provider has done processing. eg: /continue/", + SortOrder = 100)] + public string ContinueUrl { get; set; } + + ... +} + +``` + +All Payment Providers inherit from a base class `AsyncPaymentProviderBase`. `TSettings` is the type of a Plain Old Class Object (POCO) model class representing the Payment Providers settings. The class must be decorated with `PaymentProviderAttribute` which defines the Payment Providers `alias`, `name` and `description`, and can also specify an `icon` to be displayed in the Umbraco Commerce backoffice. + +The settings class consists of a series of properties, each decorated with a `PaymentProviderSettingAttribute` defining a name, description, and possible angular editor view file. These will all be used to dynamically build an editor interface for the given settings in the backoffice. + +## Payment Provider Responsibilities + +There are two main responsibilities of a Payment Provider, and those are: + +* **Payment Capture** - Capturing the initial Order payment and finalizing the Order. +* **Payment Management** - Managing a payment post Order finalization, such as being able to Capture authorized payments or Refunding captured payments. + +### Payment Capture + +The Payment Capture workflow can be the hardest part of a Payment Provider. This is due to the fact that no two payment gateways are alike. Therefore it can be difficult to figure out how best to implement the gateway into the provider format. + +Generally, there are three methods within a Payment Provider that you may need to implement, and each one has a specific responsibility. + +* **GenerateForm** - The `GenerateForm` method is responsible for generating an HTML form that will redirect the customer to the given payment gateway payment form. In this method you may need to communicate with the payment gateway in order to initialize a payment, letting the payment gateway know how much to capture. This often results in some kind of code or redirect URL being returned which will need to be embedded into the generated form. The generated form is then usually displayed on a checkout **Review** page, the last page before payment is captured and will have an implementer-defined **Continue to Payment** button to submit the form and redirect the customer to the gateway. +* **ProcessCallback** - The `ProcessCallback` method is responsible for handling the response coming back from the payment gateway and processing whether the payment was successful or not. This can sometimes occur _synchronously_, if the payment gateway sends information back as part of the confirmation page redirect, or can occur _asynchronously_ if the payment gateway sends the information back via an out-of-band webhook request. +* **GetOrderReference** - The `GetOrderReference` method is responsible for extracting an order reference number from a request when the payment gateway uses an asynchronous webhook to finalize an Order **and** it uses a global webhook URL strategy for all notifications rather than a notification URL per transaction. Where a webhook URL can be passed per transaction, then Umbraco Commerce provides you with a unique callback URL you can register with the gateway that already identifies the order reference as part of the URL parameters, making implementing this method unnecessary. + +_\* denotes a required method implementation_. + +What follows is a generalized diagram in order to help in visualizing when each of these methods is called within a regular checkout flow. + +![Payment Provider Capture Workflow](../media/payment\_provider\_capture\_flow.png) + +### Payment Management + +In addition to the initial payment capture flow, Payment Providers can also be set up to manage the payment post-checkout. This could be Capturing Authorized transactions or Refunding Captured transactions. + +These features are optional and not required for Payment Provider developers to implement. They allow store owners to manage payments directly in the backoffice rather than through the payment gateway's portal when performing these types of actions. + +The implementable management methods are: + +* **FetchPaymentStatus** - The `FetchPaymentStatus` method communicates with the 3rd party payment gateway in order to fetch the current status of the given transaction. +* **CapturePayment** - The `CapturePayment` method communicates with the 3rd party payment gateway to capture a previously authorized payment associated with the given transaction. +* **CancelPayment** - The `CancelPayment` method communicates with the 3rd party payment gateway to cancel a previously authorized payment associated with the given transaction. +* **RefundPayment** - The `RefundPayment` method communicates with the 3rd party payment gateway to refund a previously captured payment associated with the given transaction. + +For each implemented method above, developers should also implement a corresponding boolean property returning a `true` value. This is to let Umbraco Commerce know that the given feature is supported by the Payment Provider. + +* **CanFetchPaymentStatus** +* **CanCapturePayments** +* **CanCancelPayments** +* **CanRefundPayments** + +## Payment Provider Meta Data + +For all implemented methods of a Payment Provider, all method return types support the returning of additional Meta Data. This is to allow Payment Providers to capture and store relevant information. This information will aid the provider in doing its job, or for storing useful reference information to display for the retailer. + +Any returned Meta Data from a Payment Provider method will be stored against the Order in its [Properties](properties.md) collection. Should you need to retrieve these values from other areas of the Payment Provider, you can use the passed-in Orders Properties collection. + +{% hint style="info" %} +As Meta Data is stored in Orders Properties collections, it is recommended to prefix your Meta Data keys with the Payment Providers alias. This is done to prevent possible conflicts. +{% endhint %} + +### Meta Data Definitions + +The Meta Data that is returned from the Payment Provider is useful for the retailer. The Payment Provider can also be used to display Meta Data descriptions and information in the backoffice. This is done by exposing a `TransactionMetaDataDefinitions` property consisting of a list of `TransactionMetaDataDefinition` values. Each of the values defines the `alias`, `name` and optional `description` of a Meta Data entry. + +```csharp +public override IEnumerable TransactionMetaDataDefinitions => new[]{ + new TransactionMetaDataDefinition("stripeSessionId", "Stripe Session ID"), + new TransactionMetaDataDefinition("stripePaymentIntentId", "Stripe Payment Intent ID"), + new TransactionMetaDataDefinition("stripeChargeId", "Stripe Charge ID"), + new TransactionMetaDataDefinition("stripeCardCountry", "Stripe Card Country") +}; +``` + +![Transaction Meta Data](../media/transaction\_meta\_data\_dialog.png) diff --git a/14/umbraco-commerce/key-concepts/pipelines.md b/14/umbraco-commerce/key-concepts/pipelines.md new file mode 100644 index 00000000000..8bcbb534198 --- /dev/null +++ b/14/umbraco-commerce/key-concepts/pipelines.md @@ -0,0 +1,78 @@ +--- +description: Performing sequential tasks with Pipelines in Umbraco Commerce. +--- + +# Pipelines + +Pipelines allow a series of tasks to be performed in a set sequence. This is done with the input of a given task being the output of the preceding task. It allows a result to be built up as an input is passed through these individual tasks, instead of being calculated in one go. + +The Pipelines feature provides an approach to insert additional steps into the process as pipeline tasks can be added or removed from the pipeline sequence. + +Where Pipelines is used, it allows an additional point at which developers can interject some custom logic, tweaking how Umbraco Commerce works. + +Consider these use-case examples: + +* An additional task could be injected into the `CalculateOrderPipeline` to alter how an Order is calculated. +* A task could be injected into the `EmailSendPipeline` to add a dynamic attachment to an email. + +## Example Pipeline task + +An example of a Pipeline task would look something like this: + +```csharp +public class AddCustomAttachmentTask : PipelineTaskWithTypedArgsBase +{ + public override PipelineResult Execute(EmailSendPipelineArgs args) + { + var attachment = new Attachment(File.OpenRead("path\to\license.lic"), "license.lic"); + + args.EmailContext.MailMessage.Attachments.Add(attachment); + + return Ok(args.EmailContext); + } +} +``` + +All Pipeline tasks inherit from a base class `PipelineTaskWithTypedArgsBase`. `TPipelineArgs` is the type of arguments supported by the pipeline and `TModel` is the pipeline's return model Type. You then need to implement an `Execute` method that accepts an instance of the argument's type as input and expects a `PipelineResult` as its output. Inside this method, you can perform your custom logic as required. To complete the pipeline task, you can call `Ok(TModel)` if the task was successful. This will pass in the updated `TModel` instance to returnæ. Otherwise, you can call `Fail()` to fail the whole pipeline. + +All pipelines occur within a [Unit of Work](unit-of-work.md). In case a Pipeline task fails, the whole pipeline will fail and no changes will persist. + +## Registering a Pipeline task + +Pipeline tasks are [registered via the IUmbracoCommerceBuilder](umbraco-commerce-builder.md) interface using the appropriate `With{PipelineName}Pipeline()` builder extension method. This is done to identify the pipeline you want to extend. You can then call the `Add()` method to add your task to the end of that pipeline. + +```csharp +public static class UmbracoCommerceUmbracoBuilderExtensions +{ + public static IUmbracoCommerceBuilder AddMyPipelineTasks(this IUmbracoCommerceBuilder builder) + { + // Add our custom pipeline tasks + builder.WithSendEmailPipeline() + .Add(); + + // Return the builder to continue the chain + return builder; + } +} +``` + +You can also control the order of when Pipeline tasks run, before or after another task, by appending them via the `InsertBefore()` or `InsertAfter()` methods respectively. + +```csharp +public static class UmbracoCommerceUmbracoBuilderExtensions +{ + public static IUmbracoCommerceBuilder AddMyPipelineTasks(this IUmbracoCommerceBuilder builder) + { + // Register AddCustomAttachmentTask to execute before the RaiseSendingEventTask + builder.WithSendEmailPipeline() + .InsertBefore(); + + // Register LogEmailSentTask to execute after the RaiseSendingEventTask + builder.WithSendEmailPipeline() + .InsertAfter(); + + // Return the builder to continue the chain + return builder; + } +} +``` diff --git a/14/umbraco-commerce/key-concepts/price-amount-adjustments.md b/14/umbraco-commerce/key-concepts/price-amount-adjustments.md new file mode 100644 index 00000000000..c8b681b6d13 --- /dev/null +++ b/14/umbraco-commerce/key-concepts/price-amount-adjustments.md @@ -0,0 +1,86 @@ +--- +description: Learn about adjusting prices in Umbraco Commerce. +--- + +# Price/Amount Adjustments + +In some cases, you may want to tweak the figures of an order. It could be reducing the price of a product if a customer purchases a given amount of a product. To handle this, Umbraco Commerce has the concept of Price/Amount Adjustments. What adjustments allow you to do is create a record/log of any changes that occur to a price/amount throughout the calculation process. Umbraco Commerce uses the adjustments in the calculation process to work out its final pricing and provides this list of the adjustments on the order. This makes it clear exactly how the price was calculated. + +Umbraco Commerce has two types of adjustments: + +* **Price Adjustment** - Adjusts one of the orders' price properties (discounts, fees). +* **Amount Adjustment** - Adjusts the final transaction amount of the order (gift cards, loyalty points). + +## Creating Custom Adjustments + +Adjustments are applied using a `IPriceAdjuster` or `IAmountAdjuster` with developers able to create their own adjusters to apply custom adjustments. + +```csharp +public class MyPriceAdjuster : PriceAdjusterBase +{ + public override void ApplyPriceAdjustments(PriceAdjusterArgs args) + { + // Calculate Adjustment + // Discount adjustments should be negative + // where as Fee adjustments should be positive + + // Create a £10 discount + var price = new Price(-8.33, -1.67, args.Order.CurrencyId); + var adjustment = new MyAdjustment("My Discount", "MD-001", price); + + // Add the adjustment to the sub total price + args.SubtotalPriceAdjustments.Add(adjustment); + } +} +``` + +Adjusters apply adjustments to the given price they wish to affect. Adjustments are strongly typed and each adjuster should define their own adjustment type, providing properties to collect any relevant information for the adjustment. This "metadata" gets serialized with the adjustment as is constantly available when accessing the given adjustment. + +```csharp +[Serializable] +public class MyAdjustment : PriceAdjustment +{ + public string MyAdjustmentRef { get; set; } + + // A parameterless constructor is required for cloning + public MyAdjustment() + : base() + { } + + // Additional helper constructors + public MyAdjustment (string name, string reference, Price adjustment) + : base(name, adjustment) + { + MyAdjustmentRef = reference; + } +} +``` + +Adjustments inherit from either `PriceAdjustment` or `AmountAdjustment` depending on the type of adjustment being applied. Both base classes follow a similar structure, the difference being whether the adjustment value is a `Price` or `Amount`. + +```csharp +public abstract class PriceAdjustment +{ + public Type Type { get; } + public string Name { get; } + public Price Price { get; } + public Price OriginalPrice { get; } +} +``` + +Once defined, the adjuster should be registered with the DI container to enable Umbraco Commerce to be aware of it and include it in the calculation process. + +```csharp +public static class UmbracoCommerceUmbracoBuilderExtensions +{ + public static IUmbracoCommerceBuilder AddMyServices(IUmbracoCommerceBuilder builder) + { + // Register the price adjuster + builder.WithPriceAdjusters() + .Append(); + + // Return the builder to continue the chain + return builder; + } +} +``` diff --git a/14/umbraco-commerce/key-concepts/price-freezing.md b/14/umbraco-commerce/key-concepts/price-freezing.md new file mode 100644 index 00000000000..b08affefcc0 --- /dev/null +++ b/14/umbraco-commerce/key-concepts/price-freezing.md @@ -0,0 +1,29 @@ +--- +description: Freezing prices for shopping carts in Umbraco Commerce. +--- + +# Price Freezing + +Price Freezing in Umbraco Commerce is the ability to freeze prices for products that are added to the shopping cart. Umbraco Commerce takes a snapshot of a product's price once it's added to the shopping card. This is done in order to ensure the price is honored for the life of the shopping cart. This process prevents a customer's shopping cart from suddenly changing in value should a price change occur whilst their cart session is in progress. + +A product's price is frozen from the point it is added to the current Order, and only for the current Currency of the Order. Should the Customer change the Currency of their Order, then a new snapshot of the product price will be taken for that Currency. + +## Controlling Price Freezing + +There are times when you may wish to control when a frozen price should expire. This could be if a product was incorrectly priced, or if you have rules on how long an Order-session is allowed to maintain price. + +On these occasions, you can force frozen prices to expire by using the `IPriceFreezerService` and its `ThawPrices` method. + +All frozen prices have an `OrderId` property and a `Key` that uniquely identifies them. For product prices, this key consists of a generated token of the following format `{StoreId}_{OrderId}_{ProductReference}`. In addition, the product prices Currency, and date of the freeze are also tracked. It is important to know these details as we can use all of these attributes to target which prices we wish to thaw. + +For example, to thaw all prices for a product with the reference `c0296b75-1764-4f62-b59c-7005c2348fdd` we could call: + +```csharp +_priceFreezerService.ThawPrices(partialKey: "c0296b75-1764-4f62-b59c-7005c2348fdd"); +``` + +Or to thaw all prices for a given Currency that are greater than 30 days old we could call: + +```csharp +_priceFreezerService.ThawPrices(currencyId: currency.Id, olderThan: DateTime.Now.AddDays(-30)); +``` diff --git a/14/umbraco-commerce/key-concepts/product-adapters.md b/14/umbraco-commerce/key-concepts/product-adapters.md new file mode 100644 index 00000000000..9bb69fab26d --- /dev/null +++ b/14/umbraco-commerce/key-concepts/product-adapters.md @@ -0,0 +1,185 @@ +--- +description: Converting product sources into understandable products for Umbraco Commerce. +--- + +# Product Adapters + +The role of a Product Adapter in Umbraco Commerce is to provide an interface between a product information source and convert it into a standardized format. This is done to prevent the need for Umbraco Commerce to be tied to that source. + +What this means for developers is that Product Adapters allow you to hook in alternative product information sources that may not be Umbraco node-based. You may hold your product information in a third-party database table. A custom Product Adapter would then allow Umbraco Commerce to interface with that custom data in the same way it would the default Umbraco node data. + +## Example Product Adapter + +An example of a Product Adapter would look something like this: + +```csharp +public class MyCustomProductAdapter : IProductAdapter +{ + public IProductSnapshot GetProductSnapshot(string productReference, string languageIsoCode) + { + // Lookup a product by productReference and convert to IProductSnapshot + } + + public IProductSnapshot GetProductSnapshot(string productReference, string productVariantReference, string languageIsoCode) + { + // Lookup a product by productVariantReference and convert to IProductSnapshot + } + + public bool TryGetProductReference(Guid storeId, string sku, out string productReference, out string productVariantReference) + { + // Try lookup a product / variant reference by store + sku + } +} + +``` + +All Product Adapters implement the `IProductAdapter` interface which requires three method implementations: + +* Two `GetProductSnapshot` methods that retrieve a Product Snapshot for either a product or product variant by reference parameters. +* A `TryGetProductReference` method which retrieves a product/variant reference for a product that belongs to a given `storeId` and has the given `sku`. + +A Product Snapshot consists of the following properties in order to present a Product to Umbraco Commerce in a standard way. + +```csharp +public interface IProductSnapshot +{ + // The unique reference for the product + string ProductReference { get; } + + // The unique reference for the variant (if this is a variant snapshot) + string ProductVariantReference { get; } + + // The unique SKU for this product/variant + string Sku { get; } + + // The name of this product/variant + string Name { get; } + + // The ID of the store this product/variant belongs to + Guid StoreId { get; } + + // An optional Tax Class ID for this product/variant + Guid? TaxClassId { get; } + + // Any properties exposed by this product/variant that should be copied to the orderline + IDictionary Properties { get; } + + // Any variant attributes for this product (if this is a variant snapshot) + IEnumerable Attributes { get; } + + // The available prices for this product/variant + IEnumerable Prices { get; } + + // Flag indicating whether this product is a gift card product + bool IsGiftCard { get; } +} + +``` + +## Support editable carts + +To allow Umbraco Commerce to search for products/variants to add to a cart via the backoffice, Product Adapters can implement 3 additional methods. This can also be done to support editable carts. + +```csharp +public class MyCustomProductAdapter : ProductAdapterBase +{ + ... + + public override PagedResult SearchProductSummaries(Guid storeId, string languageIsoCode, string searchTerm, long currentPage = 1, long itemsPerPage = 50) + { + // Search for products matching the given search term and convert to a IProductSummary + } + + public override IEnumerable GetProductVariantAttributes(Guid storeId, string productReference, string languageIsoCode) + { + // Lookup the in-use product attributes of a primary product + } + + public override PagedResult SearchProductVariantSummaries(Guid storeId, string productReference, string languageIsoCode, string searchTerm, IDictionary> attributes, long currentPage = 1, long itemsPerPage = 50) + { + // Search for product variants matching the given search term and/or the given attributes and convert to a IProductVariantSummary + } +} + +``` + +The `IProductSummary`, `Attribute` and `IProductVariantSummary` consists of the following properties in order to present a Product to Umbraco Commerce in a standard way. + +```csharp +public interface IProductSnapshot +{ + // The unique reference for the product + string Reference { get; } + + // The unique SKU for this product + string Sku { get; } + + // The name of this product + string Name { get; } + + // The available prices for this product + IEnumerable Prices { get; } + + // Flag indicating whether this product has variants + bool HasVariants { get; } +} + +public class Attribute +{ + // The alias of the attribute + public string Alias { get; } + + // The name of the attribute + public string Name { get; } + + // The attribute values + IEnumerable Values { get; } +} + +public class AttributeValue +{ + // The alias of the attribute value + public string Alias { get; } + + // The name of the attribute value + public string Name { get; } + +} + +public interface IProductVariantSnapshot +{ + // The unique reference for the product variant + string Reference { get; } + + // The unique SKU for this product variant + string Sku { get; } + + // The name of this product variant + string Name { get; } + + // The available prices for this product variant + IEnumerable Prices { get; } + + // The collection of attribute alias pairs of this product variant + IReadOnlyDictionary Attributes { get; } +} + +``` + +## Registering a Product Adapter + +typeProduct Adapters are [registered via the IUmbracoCommerceBuilder](umbraco-commerce-builder.md) interface using the `AddUnique()` method on the `Services` property. The `TReplacementAdapter` parameter is the type of our custom Product Adapter implementation. + +```csharp +public static class UmbracoCommerceUmbracoBuilderExtensions +{ + public static IUmbracoCommerceBuilder AddMyServices(IUmbracoCommerceBuilder builder) + { + // Replacing the default Product Adapter implementation + builder.Services.AddUnique(); + + // Return the builder to continue the chain + return builder; + } +} +``` diff --git a/14/umbraco-commerce/key-concepts/product-bundles.md b/14/umbraco-commerce/key-concepts/product-bundles.md new file mode 100644 index 00000000000..7e1b74db372 --- /dev/null +++ b/14/umbraco-commerce/key-concepts/product-bundles.md @@ -0,0 +1,45 @@ +--- +description: Creating bundles of products with Umbraco Commerce. +--- + +# Product Bundles + +Occasionally you may need to create a product with multiple sub-products. A good example of this is when buying a computer where you may pick the computer as the main product. You can then choose the different components to make up the computer, such as the hard disk options. The final order line then becomes the composite order line of the selected primary product and all its sub-product options. To achieve this kind of configurable product in Umbraco Commerce, we can use a feature called product bundling. + +## Creating a Bundle + +To create a bundle, we first add the primary product to an order as we normally would. In addition to the product/quantity information, we also provide a unique `bundleId` to identify that adding this product should create a bundle order line. + +```csharp +// Define a unique bundle id for the order line +var bundleId = "MyUniqueBundleId"; + +// Add the primary product to the order giving it a bundle ID +order.AddProduct(productReference, productQuantity, bundleId); +``` + +## Adding Sub Products to a Bundle + +With the primary product added as a bundle, we can then add sub-products to that bundle by calling one of the `AddProductToBundle` order methods. + +```csharp +// Define a unique bundle id for the order line +var bundleId = "MyUniqueBundleId"; + +// Add the primary product to the order giving it a bundle ID +order.AddProduct(productReference, productQuantity, bundleId); + +// Add a sub product to the bundle by calling a AddProductToBundle method +// passing in the same bundle ID as the primary order line +order.AddProductToBundle(bundleId, subProductReference, subProductQuantity); +``` + +## Order Line Price Calculation + +By adding sub-products to a bundle, Umbraco Commerce knows to automatically sum up all the sub-product prices together. It will then add them to the unit price of the primary order line for you. This means that there is nothing extra you need to do in the calculation process. + +## Displaying Bundles in the Back-Office + +As you can imagine, product bundles could get rather large making it a little difficult to display them in the backoffice. Umbraco Commerce bundles order lines together in a collapsible user interface. This gives you a clear view of your orders whilst still being able to drill into the detail of the items purchased. + +![Product bundles in the backoffice](../media/backback-office-bundles.png) diff --git a/14/umbraco-commerce/key-concepts/product-variants/README.md b/14/umbraco-commerce/key-concepts/product-variants/README.md new file mode 100644 index 00000000000..48380e74417 --- /dev/null +++ b/14/umbraco-commerce/key-concepts/product-variants/README.md @@ -0,0 +1,39 @@ +--- +description: Creating product variants with Umbraco Commerce. +--- + +# Product Variants + +Product variants are the ability to define variants of a given product. If a product was available in multiple color options, you would create a primary product with product variants for each of the color options. + +Out of the box, Umbraco Commerce supports two types of product variant setups. + +## Child Variants + +Child variants are where the product variants are set up as child nodes below the primary product. Generally speaking, this setup is only sustainable for single variant options, where there is only one differing option between the variants. + +By using child variants the only thing you need to create is your own variant nodes as you already do in Umbraco. + +When a child variant is added Umbraco Commerce checks the primary product node for any properties that can't be found on the variant child node. + +This approach is how most of [the official Demo store](https://github.com/umbraco/Umbraco.Commerce.DemoStore) is set up. + +## [Complex Variants](complex-variants.md) + +Complex variants are where products vary by multiple possible options, such as by size, color, and fit. Complex variants tend to create a lot of variant products which makes the child variants approach impractical. + +For complex variants, Umbraco Commerce comes with a variants property editor which will handle a lot of this complexity for you. You can set up a variant element type to use as your data blueprint for your variant products. This can then be linked to the property editor. The variants property editor will use this as the data structure for your variants. You will be presented with the relevant UI to input the product details. + +{% hint style="info" %} +For more information on how you can setup Complex Variants, head to the [Complex Variants](complex-variants.md) article. +{% endhint %} + +### [Product Attributes](complex-variants.md#product-attributes) + +To aid with the setup of the complex variants, Umbraco Commerce has the **Product Attributes** concept which defines the individual options that make up your product variants. This could be colors, sizes, and fits. Each product attribute is made up of a label and as many values as needed. + +Product attributes are used by the complex variants property editor allowing you to select the combinations of product variants you wish to create. It will automatically generate the product variant entries for you, ready for product information updating. + +{% hint style="info" %} +For more information on how you can setup Product attributes, head to the [Complex Variants](complex-variants.md#product-attributes) article. +{% endhint %} diff --git a/14/umbraco-commerce/key-concepts/product-variants/complex-variants.md b/14/umbraco-commerce/key-concepts/product-variants/complex-variants.md new file mode 100644 index 00000000000..946b8db06a7 --- /dev/null +++ b/14/umbraco-commerce/key-concepts/product-variants/complex-variants.md @@ -0,0 +1,139 @@ +--- +description: Creating complex variants with Umbraco Commerce. +--- + +# Complex Variants + +The Commerce Complex Variants feature is powered by a new Variants Editor property editor that you can attach to your product content nodes. The editor itself is based on the Umbraco Block List editor format so under the hood we make use of the new data structure. + +We also make use of Umbraco’s block editor APIs. You can add supporting data needed to record against your variants simply by defining a document type and linking it with the editor. By basing the editor on the block editor data structure, we can take advantage of improvements made in Umbraco Commerce. An example is optimized persistence/searching. + +The Variants Editor isn’t just a regular property editor. Managing variant data is a complex task and having variants mingled in with the product content fields would be distracting. So a bit of Umbraco magic is used to allow the editor to render itself as a content app. By doing this it gives a focused tab on which to manage complex-variants and allows to create a much richer content management experience. + +

Variants editor table view

+ +All you have to do is add the variants editor as a property on your product Document Type and Umbraco Commerce hooks up the rest. + +## Product Attributes + +Before you can go creating variants, there is another concept that you need to understand and that is product attributes. + +Product attributes are essentially lists of options that can be used to create your variant combinations. For example, things like color, size, or fit if you were selling clothing. + +Each product attribute consists of a name and a series of attribute values for the given options. So for example, color attribute might have a series of values like red, and blue, and size might have values of large, medium, and small. + +In order to manage these product attributes, we’ve created a new Options node inside the **Commerce** section, beneath each store. From this section, you can define as many product attributes + values as you need. If you're working with a multi-lingual setup, you can provide label translations. + +

Product attributes

+ +

Product attributes values

+ +## Product Attribute Presets + +Linked with product attributes, there is also the concept of product attribute presets. + +What product attribute presets do is allow to define groups of product attributes/values based on a specific **theme**. Then they are displayed at the point of product variant creation. This is where you can choose from a smaller, focused list of product attributes than if you were just presented with every possible option. + +

Product attribute presets

+ +

Product attribute preset values

+ +## Creating Variants + +With the product attributes defined (and optional product attribute presets), and the variants editor defined (on product Document Type), you can start creating product variants. + +With the product node open, you’ll now see the new Variants content app in the top right corner. From there you can click the **Create Product Variants** button to launch the **create** dialog. + +From the create dialog, you’ll be presented with a list of product attributes so that you can select all the combinations you want to create variants. If you have setup any product attribute presets, these will be presented first. + +Selecting a preset will show a smaller list of product attributes/values to choose from. To create the variants, check the checkbox against the attribute values and click Select. Then rows will be automatically created in the variants table for every combination of the selected attributes. + +

Create variants presets

+ +

Create variants attributes

+ +## Managing Variants + +With variants defined in the variants table, you can manage the content for each variant by clicking the **SKU** of the row. Then it will launch the content editor for that variant. From here you’ll be presented with all the fields defined on your variants Document Type and can add and save the information required. + +

Edit variant

+ +In the variants table view, we've also added filtering features so you can filter by attribute values. You can also search for specific variant **SKUs** to easily locate items. Additionally, the table also supports sorting on the table columns, so you can also order the results as you need. + +

Variant filtering

+ +You can change a variant attribute combination at any time by clicking the cog icon on the row. Then you can select a new combination. Lastly, you can remove a variant by clicking the trash can icon against the row. + +## Variant Fields + +Whilst you are free to add any fields you like to your variant, there are a few fields that you might want/need to add. + +The only required field is an **SKU** field with the alias `sku`. All the following fields are optional, with Umbraco Commerce falling back to the parent node if one isn’t found. + +* **Price** `[price]` - The fixed price of the product variant. Should use a **Commerce Price** input field. +* **Price Adjustment** `[priceAdjustment]` - Used instead of a price field to create a dynamic price by adding the adjustment amount to the parent product price. Should use a **Commerce Price** input field and can contain negative values. +* **Stock** `[stock]`- Allows for individual variant stock management. + +## Value Converter + +Once the variants are defined, you’ll then want to be able to access that data on the frontend. To do this the variants editor comes with a built-in value converter. This allows you to access a strongly typed collection of all the defined variants from the parent product node. + +The property value will be of type `ProductVariantCollection` that contains a series of `ProductVariantItem` entities. Each of these entities has a Config property which contains details of the product attribute combination for the variant. It also contains a content property of type IPublishedElement from which you can access the variant's data. The _Content_ property can also be cast to a models builder model type for strongly typed access to the variant content too. + +```csharp +public class ProductVariantItem +{ + public Udi ContentUdi { get; } + public IPublishedElement Content { get; } + public ProductVariantConfig Config { get; } +} +``` + +```csharp +public class ProductVariantConfig +{ + public IDictionary Attributes { get; set; } +} +``` + +Umbraco Commerce also ships with a helper extension method on the `ProductVariantCollection` class, `GetInUseProductAttributes(storeId).`This provides a convenient way to get a list of all attributes + values used by the variants collection. It comes in handy when rendering out the list of options on the front end, ensuring only attributes in use are displayed. + +```csharp +public class InUseProductAttribute +{ + public string Alias { get; } + public ReadOnlyTranslatedValue Name { get; } + public IReadOnlyCollection Values { get; } +} +``` + +```csharp +public class InUseProductAttributeValue +{ + public string Alias { get; } + public ReadOnlyTranslatedValue Name { get; } +} +``` + +```csharp +public class ReadOnlyTranslatedValue +{ + public T GetDefaultValue() + public bool HasValue(string languageIsoCode) + public T GetValue(string languageIsoCode, bool fallbackToDefault = true) + public bool TryGetValue(string languageIsoCode, out T value) + public T this[string languageIsoCode] +} +``` + +## API Updates + +The last piece of the complex variants puzzle is a few updates to Umbraco Commerce's API. + +This is largely around the `AddProduct` methods on the **Order** entity which now have additional signatures. These signatures take both a _productReference_ and a _productVariantReference_ which must both be supplied when adding a variant item to an order. + +Order lines have also been updated to expose a new Attribute property. This provides a collection of attribute combinations for the order lines product so that these can be rendered on carts and checkouts. The "uniqueness" logic for an order line has also been updated to take these attributes into account. + +With both of these changes, updates have also been made to the `IProductAdapter/IProductSnapshot` interfaces and built-in implementations. This is in order to support product variants and attributes, as it has the product and price freezer services. + +The built-in stock property editor has also had a slight overhaul in order to support both regular products and product variants. If anyone needs to provide an alternative implementation, a new `IStockService` interface has been created as well. diff --git a/14/umbraco-commerce/key-concepts/properties.md b/14/umbraco-commerce/key-concepts/properties.md new file mode 100644 index 00000000000..1df33ba08c7 --- /dev/null +++ b/14/umbraco-commerce/key-concepts/properties.md @@ -0,0 +1,86 @@ +--- +description: Order and Order Line metadata in Umbraco Commerce. +--- + +# Properties + +There is little information that Umbraco Commerce needs to know about a product in order for it to do its job. There are, however, times when developers require the ability to store additional information against an Order or Order Line. This could be the billing/shipping address of an Order, or any specific configuration details of a given Product on an Order Line. + +To help facilitate this Umbraco Commerce has the concept of a Properties collection on both the Order entity and the Order Line entity respectively. The Properties collection of these entities can be thought of as a general store for additional information required by an implementation, but not strictly required by Umbraco Commerce itself. + +Anything you need to remember about an Order / Order Line can be stored in its Properties collection. + +## Setting Properties + +To set a Property on an Order or Order Line, it needs to be [in its Writable state](readonly-and-writable-entities.md#converting-a-readonly-entity-into-a-writable-entity). Then it's a case of calling one of the related property setting methods: + +```csharp +// Set a single property +order.SetProperty("propertyAlias", "Property Value"); + +// Set multiple properties at once +order.SetProperties(new Dictionary{ + { "propertyAlias1", "Property Value 1" }, + { "propertyAlias2", "Property Value 2" }, + { "propertyAlias3", "Property Value 3" } +}) + +// Remove a property +order.RemoveProperty("propertyAlias"); + +``` + +Property values can either be a `string`, or a Umbraco Commerce `PropertyValue` which allows you to define a value as being Server Side Only. This means that it won't be returned via non-server APIs or Read Only meaning it can't be updated once set. + +```csharp +// Set a string property +order.SetProperty("propertyAlias", "Property Value"); + +// Set a PropertyValue property as Read Only +order.SetProperty("propertyAlias", new PropertyValue("Property Value", isReadOnly: true)); +``` + +## System Properties + +On occasions where Umbraco Commerce needs to capture some information about an Order or Order Line, it uses the Properties collection to store this information. It's useful to know what these properties are as you should avoid using these system-related property keys. + +### Order System Properties + +| Alias | Description | +| ----------- | -------------------------------------------------------------------------------------------------------------- | +| `email` | The email address of the person placing the order. Is where `order.CustomerInfo.Email` reads it's value from. | +| `firstName` | The first name of the person placing the order. Is where `order.CustomerInfo.FirstName` reads it's value from. | +| `lastName` | The last name of the person placing the order. Is where `order.CustomerInfo.LastName` reads it's value from. | + +### Order Line System Properties + +| Alias | Description | +| ----- | --------------------------------------------------------------------------------------------------------- | +| `sku` | The `SKU` of the product, extracted from the product node via the [Product Adapter](product-adapters.md). | + +## Automatic Properties + +Umbraco Commerce has a built-in mechanism that can be configured to automatically copy properties from a Product information source to the Order Line automatically. This is done by using the **Product Property Aliases** field on the Store settings screen. + +![Product Property Aliases Configuration](../media/product\_property\_aliases.png) + +When a Product is added to the Order containing a comma-separated list of property aliases, the property values are automatically copied to the Order Lines Properties collection. + +This is useful for occasions such as rendering out the Order Lines on a Cart page and you have Product information you want to display. By copying it to the Order Lines Properties collection, you have instant access to those properties without the need to re-fetch the original Product entity. + +## Product Uniqueness Properties + +Another use of the Properties collection for an Order Line is that of identifying product "Uniqueness". + +Umbraco Commerce uses Product Uniqueness to identify either of the two: + +* Whether a Product is added to a Cart should be considered as a Quantity increase on an existing Order Line +* Whether it should be considered as a unique product combination and so should be given an Order Line of its own. + +A good example of this is when you have configurable products, such as customizable T-Shirt designs. In this case, each unique configuration should be considered as its own Order Line so that you can manage the specific configurations. + +Product uniqueness is configured via the **Product Uniqueness Property Aliases** field on the Store setting screen. + +![Product Uniqueness Property Aliases Configuration](../media/product\_uniqueness\_property\_aliases.png) + +When set to a comma-separated list of property aliases and a Product is added to an Order, the properties are compared against all pre-existing Order Lines for that Product. Should their values be different, then a unique Order Line will be created for that Product. diff --git a/14/umbraco-commerce/key-concepts/readonly-and-writable-entities.md b/14/umbraco-commerce/key-concepts/readonly-and-writable-entities.md new file mode 100644 index 00000000000..0e83991743d --- /dev/null +++ b/14/umbraco-commerce/key-concepts/readonly-and-writable-entities.md @@ -0,0 +1,45 @@ +--- +description: >- + Great performance and simplified change tracking using ReadOnly and Writable + entities in Umbraco Commerce. +--- + +# ReadOnly and Writable Entities + +When working with the Umbraco Commerce entities, it's important to know that all entities come in two states, ReadOnly and Writable. By default, all Umbraco Commerce API methods will return entities in their ReadOnly state. This means that when you are accessing Umbraco Commerce entities directly from an API endpoint you are able to read and iterate over its properties. You won't, however, be able to make changes to that entity without first converting it into its Writable state. + +## Why have ReadOnly and Writable entities? + +The reason why we have split entities in this way for a number of reasons, however, the two primary factors are: + +* **Making APIs fast by default** - By returning ReadOnly entities by default we can ensure all API methods are as fast as possible by feeding values directly out of our caching layer. Because the entities can't change it means we don't have to laden the entities with extra change tracking logic, we can feed out the cached values directly and only worry about that logic when the entities become Writable. +* **Simplified change tracking** - When we convert a ReadOnly entity to its writable state, internally we take a deep clone of that state so that changes can occur within a scoped "sandbox". At the same time, we retain a copy of the original state meaning when it comes time to persist those changes we have two copies of the state we can perform a comparison on, simplifying the whole change tracking process. + +## Converting a ReadOnly entity into a Writable entity + +To convert a ReadOnly entity into its Writable form, we achieve this by calling the entities `AsWritable(uow)` method, passing in a valid Unit of Work instance to perform the write operations on. Once we have a Writable entity, we can then perform the write operations we desire and persist those changes back to the database. + +```csharp +_uowProvider.Execute(uow => +{ + // Fetch the currency + var currency = _currencyService.GetCurrency(currencyId); + + // Convert the currency into it's Writable form + var writableCurrency = currency.AsWritable(uow); + + // Peform our write operation + writableCurrency.SetName("New Name"); + + // Persist the changes to the database + _currencyService.SaveCurrency(currency); + + // Close our transaction + uow.Complete(); +}); + +``` + +{% hint style="info" %} +All write operations must occur within a Unit of Work so by passing in a Unit of Work instance into the entities `AsWritable` method, we are ensuring that you are in fact within an active Unit of Work. +{% endhint %} diff --git a/14/umbraco-commerce/key-concepts/search-specifications.md b/14/umbraco-commerce/key-concepts/search-specifications.md new file mode 100644 index 00000000000..34327612443 --- /dev/null +++ b/14/umbraco-commerce/key-concepts/search-specifications.md @@ -0,0 +1,46 @@ +--- +description: Learn more about the flexible search functionaities in Umbraco Commerce. +--- + +# Search Specifications + +Providing a search API for developers to be able to search for entities that match given criteria is a bit of a balancing act. You want to provide a flexible API to allow for meaningful results to be returned but at the same time, you don't want to allow every possible search combination as this can lead to performance problems. + +The way we have addressed this is by using the Specification pattern. + +## Specifications + +Specifications are a programming design pattern that allows you to encapsulate business rules in blocks that can be chained together to define boolean logic. + +What this means is that we can provide a series of specifications for the types of queries we are able to support in a performant way and allow developers to chain these together in whatever combination they require in order to create dynamic filters for entity searches. + +## Searching + +To perform a search using specifications you'll need to use one of the search methods on the given entity service that accepts a `Func>` parameter. This parameter type might look complex, but its use should be pretty straightforward thanks to the use of delegates. + +To use one of the search methods, the implementation will look something like the following: + +```csharp +var results = _orderService.SearchOrders( + (where) => where + .FromStore(storeId) + .And(where.HasOrderNumber(orderNumber).Or(where.ByCustomer(customerEmail)))) +``` + +The above is an example, but it demonstrates the use of a delegate method that then uses a fluent specifications API to build up a query filter. The query filter itself can be made up of many different individual queries which themselves can be grouped using `AND` and `OR` query logic. + +Because the API is fluent it is also self-documenting, with Visual Studio intellisense able to guide developers through all the available specifications. + +## Ordering Results + +Alongside the query specifications documented above, we also have to sort specifications that allow a similar fluent API for defining the order in which results are returned. These are passed in a similar way to the search methods as demonstrated below. + +```csharp +var results = _orderService.SearchOrders( + (where) => where + .FromStore(storeId) + .And(where.HasOrderNumber(orderNumber).Or(where.ByCustomer(customerEmail))), + (orderBy) => orderBy + .FinalizedDate(Sort.Descending) + .Then(orderBy.CreateDate(Sort.Descending))) +``` diff --git a/14/umbraco-commerce/key-concepts/settings-objects.md b/14/umbraco-commerce/key-concepts/settings-objects.md new file mode 100644 index 00000000000..550ecf6b7c3 --- /dev/null +++ b/14/umbraco-commerce/key-concepts/settings-objects.md @@ -0,0 +1,53 @@ +--- +description: Strongly typed Settings objects in Umbraco Commerce. +--- + +# Settings Objects + +There are places in Umbraco Commerce where you can use Settings Objects to pass configuration to a Provider, such as Discount Rule Providers, Reward Providers, and Payment Providers. + +The settings objects have a number of responsibilities. + +* **Typed Settings Model** - The type represents a strongly typed settings model the given Provider accepts. Any stored settings in the database will be deserialized to this type before being passed to the Provider for processing. This provides strongly typed access to the relevant configuration settings. +* **UI Scaffold** - The settings object defines metadata on its properties via an Attribute implementing `UmbracoCommerceSettingAttribute`, each Provider type has its own attribute type in case they require additional config, for example `DiscountRewardProviderSettingAttribute`, `DiscountRuleProviderSettingAttribute` or `PaymentProviderSettingAttribute`. The attributes are used to dynamically build the AngularJS-based UI for the given Provider configuration. See the [UI Scaffolding](settings-objects.md#ui-scaffolding) section below for more information on UI Scaffolding. +* **JavaScript Settings Model** - The settings object also defines the JavaScript settings model passed to the Provider editor UI, using either the settings Property name as the object property key, or using the `key` property of the Setting Attribute declared on the given Property. + +## UI Scaffolding + +An important element of the Settings object is UI Scaffolding. UI Scaffolding is where Umbraco Commerce reads a series of Settings Attributes defined on your Settings object properties in order to dynamically build a User Interface for that Providers settings. + +An example of a Discount Reward Settings Object might look something like this: + +```csharp +public class MyDiscountRewardProviderSettings +{ + [DiscountRewardProviderSetting(Key = "nodeId", + Name = "Product Node", + Description = "The product to discount the price of", + View = "contentpicker", + Config = "{ startNodeId: -1, multiPicker: false, idType: 'udi' }")] + public Udi NodeId { get; set; } + + ... +} +``` + +Attributes define a property `key`, `name`, `description` to display in the UI as well as an optional `view` and `config` option to define the Umbraco property editor to use to edit the given property. If no view is defined, one will attempt to automatically be chosen based on the properties value type. + +An example of a generated UI built from these properties would look something like this: + +![Discount Rule UI](../media/discount\_rule\_ui.png) + +### Default Values + +To define default values for a settings object, you can assign a value to a property in your model and Umbraco Commerce will automatically fall back to that value if no explicit value is defined. + +```csharp +public class MyDiscountRewardProviderSettings +{ + [DiscountRewardProviderSetting(Key = "title", Name = "Title", Description = "A friendly title for this item"] + public string Title { get; set; } = "Untitled"; + + ... +} +``` diff --git a/14/umbraco-commerce/key-concepts/shipping-package-factories.md b/14/umbraco-commerce/key-concepts/shipping-package-factories.md new file mode 100644 index 00000000000..bb33d1f212c --- /dev/null +++ b/14/umbraco-commerce/key-concepts/shipping-package-factories.md @@ -0,0 +1,58 @@ +--- +description: Creating Order Packages in Umbraco Commerce. +--- + +# Shipping Package Factories + +When calculating shipping rates, defining how an order is packaged is necessary. This includes the dimensions/weight of that package as well as the location from which and to which the package will be sent. All of this is the responsibility of the Shipping Package Factory to calculate. + + +## Stacked Shortest Dimension Package Factory + +The out-of-the-box Package Factory that ships with Umbraco Commerce is the Stacked Shortest Dimension Package Factory. This factory works by aggregating the physical dimensions of each item in an order by stacking them on their shortest dimension. From there, we get the overall height of the package, with the length and width calculated as the maximum dimension of any order item. + + +The receiver address of the package is calculated from the order, with the sender address being the address of the default location for a store. + +The Stacked Shortest Dimension Package Factory currently only supports returning a single package containing the entire contents of the order. + +{% hint style="info" %} +Umbraco Commerce currently supports only package factories returning a single package. Supporting multiple packages will come as a future feature. + +{% endhint %} + +### Limitations + +There are some limitations of the Stacked Shortest Dimension Package Factory that you may need to take into account: + +* Assumes items can be stacked in any orientation +* Doesn't optimize for spreading items out in a box, only stacking into a single stack. + +## Custom Package Factory + +Given the limitations of the Stacked Shortest Dimension Package Factory, it may become necessary to implement your own packaging algorithm. This can be achieved by implementing your package factory class and swapping out the default one in the DI container. + +To implement your own package factory you need to implement the `ShippingPackageFactoryBase` class and implement the `CreatePackages` method. + +```csharp +public class MyPackageFactory : ShippingPackageFactoryBase +{ + public MyPackageFactory(UmbracoCommerceContext umbracoCommerce) + : base(umbracoCommerce) + { } + + public override IEnumerable CreatePackages(ShippingMethodReadOnly shippingMethod, OrderReadOnly order) + { + // Calculate and return packages + } +} +``` + +From within this method you can use whatever logic you need to create packages and calculate their dimensions. + +To replace the default factory, register your factory implementation with the DI container in its place. See the [Replacing Dependencies documentation](../key-concepts/dependency-injection.md#replacing-dependencies) for more details. + + +```csharp +builder.Services.AddUnique(); +``` \ No newline at end of file diff --git a/14/umbraco-commerce/key-concepts/shipping-providers.md b/14/umbraco-commerce/key-concepts/shipping-providers.md new file mode 100644 index 00000000000..710955ca734 --- /dev/null +++ b/14/umbraco-commerce/key-concepts/shipping-providers.md @@ -0,0 +1,65 @@ +--- +description: Realtime shipping features via Shipping Providers in Umbraco Commerce. +--- + +# Shipping Providers + +Shipping Providers are how Umbraco Commerce can perform real-time shipping operations. Their job is to provide a standard interface between third-party shipping operators and Umbraco Commerce. This is done to allow the passing of information between the two platforms. + +How the integrations work is often different for each shipping operator. The Umbraco Commerce Shipping Providers add a flexible interface that should work with most shipping operators. + +## Example Shipping Provider + +An example of a bare-bones Shipping Provider would look something like this: + +```csharp +[ShippingProvider("my-shipping-provider-alias", "My Shipping Provider Name", "My Shipping Provider Description")] +public class MyShippingProvider : ShippingProviderBase +{ + public MyShippingProvider(UmbracoCommerceContext umbracoCommerce) + : base(umbracoCommerce) + { } + + ... +} + +public class MyShippingProviderSettings +{ + [ShippingProviderSetting(Name = "API Key", + Description = "The API key to the shipping opperators API", + SortOrder = 100)] + public string ApieKey { get; set; } + + ... +} + +``` + +All Shipping Providers inherit from a base class `ShippingProviderBase`. `TSettings` is the type of a Plain Old Class Object (POCO) model class representing the Shipping Providers settings. The class must be decorated with `ShippingProviderAttribute` which defines the Shipping Providers `alias`, `name` and `description`, and can also specify an `icon` to be displayed in the Umbraco Commerce backoffice. + +The settings class consists of a series of properties, each decorated with a `ShippingProviderSettingAttribute` defining a name, description, and possible angular editor view file. These will all be used to dynamically build an editor interface for the given settings in the backoffice. + +## Shipping Provider Responsibilities + +The responsibilities of a Shipping Provider are: + + +* **Realtime Rates** - Calculating shipping rate options for a given Order. + +### Realtime Rates + +Real-time rates are returned by implementing the `GetShippingRatesAsync` method. To facilitate rate calculation, a `ShippingProviderContext` object is passed to this method providing useful, contextual information, including: + +* **Order** - The Order and its items to be shipped. +* **MeasurementSystem** - The measurement system of the Store associated with the given Order. +* **Packages** - A list of packages that make up this shipment. Each package contains a reference of the order lines it contains, its overall dimensions and weight, and both sender and receiver address details. See the [Shipping Package Factories documentation](./shipping-package-factories.md) for more details on how these are created. +* **Settings** - The shipping provider settings are captured via the backoffice UI. +* **AdditionalData** - A general dictionary store for any data that may need passing between methods. +* **HttpContext** - A reference to the current HTTP context. + +Implementors should use these details to pass to the 3rd party shipping operators API and retrieve the estimated shipping costs. These should then be returned to Umbraco Commerce as a `ShippingRatesResult` which contains a `IEnumerable Rates` property. A `ShippingRate` value for each carrier/service returned by the operator should be supplied. A `ShippingRate` consists of the following properties: + +* **Option** - A `ShippingOption` instance, which consists of an `Id` and `Name` property for the given shipping service. +* **PackageId** - The ID of the package from the `ShippingProviderContext` that this rate is associated with. +* **Value** - A `Price` value for this rate. + diff --git a/14/umbraco-commerce/key-concepts/shipping-range-and-rate-providers.md b/14/umbraco-commerce/key-concepts/shipping-range-and-rate-providers.md new file mode 100644 index 00000000000..0330752beef --- /dev/null +++ b/14/umbraco-commerce/key-concepts/shipping-range-and-rate-providers.md @@ -0,0 +1,95 @@ +--- +description: Dynamic shipping rate providers in Umbraco Commerce. +--- + +# Shipping Rate Range / Rate Providers + +With Umbraco Commerce's dynamic shipping rates feature it is possible to configure different rules for calculating an order's shipping rate. With the Shipping Rate Range Provider and Shipping Rate Provider feature, it is possible to extend these rules with your own logic. + +## Shipping Rate Range Provider + +The role of a Shipping Rate Range Provider is to define a unit from which to calculate shipping rates (ie, weight, subtotal, etc). With this unit it is then able to determine within what range of values a given order falls within. It is also responsible for defining what editor view to use when entering range values in the UI. + +### System Shipping Rate Ranger Providers + +Out of the box Umbraco Commerce ships with the following Shipping Rate Range Providers: + +* **Subtotal** - Determines whether an orders subtotal falls within a given range. +* **Weight** - Determines whether an orders overall weight falls within a given range. + +### Custom Shipping Rate Range Providers + +Should you wish to define some other unit on which to calculate rates, you can create your own providers by implementing the `ShippingRateRangeProvider` base class. + +```csharp +[ShippingRateRangeProvider("myunit", "My Unit", + editorView: "/App_Plugins/UmbracoCommerceExt/backoffice/views/myunit.html", + sortOrder: 30)] +public class MyShippingRateRangeProvider : ShippingRateRangeProvider +{ + public override Attempt TryFindRangeIndex(ShippingRateRangeCalculationContext ctx) + { + // Use the ctx.Ranges property to find the index that that ctx.Order falls within + // return Attempt.Succeed(index); + } +} +``` + +The class should be decorated with the `ShippingRateRangeProviderAttribute` which defines an alias, name, description, editor view and label view for the provider. It implements a single method `TryFindRangeIndex` which, given a `ShippingRateRangeCalculationContext`, should find the index the current order falls within a series of preconfigured ranges. The `ShippingRateRangeCalculationContext` contains a series of useful properties that you can use to form your calculation. + +* **Ranges** - A list of configured ranges from the UI from which to find the index of the given order. +* **Order** - The order to use when finding the current range. +* **Store** - The store the order belongs to. +* **Currency** - The given currency of the order. +* **TaxRate** - The tax rate for the shipping method. +* **Packages** - A list of packages created for this shipment. +* **OrderCalculation** - The current in progress order calculation, should there be one. + +#### Registering your custom Shipping Rate Range Provider + +Shipping Rate Range Providers are automatically added by type so there is no specific registration code you need to implement. By inheriting from the `ShippingRateRangeProvider` base class, Umbraco Commerce will automatically load your implementation and add it to the Shipping Rate Range Providers collection. + +## Shipping Rate Provider + +The role of a Shipping Rate Provider is to provide a specific rate calculation. Each range defined in a dynamic shipping method configuration can contain multiple Shipping Rate Provider configurations. By combining multiple rate provider this allows you to build up more advanced calculation logic. The set of rate providers to use in a given calculation is determined by the index returned from the Shipping Rate Range Provider. + +### System Shipping Rate Providers + +Out of the box Umbraco Commerce ships with the following Shipping Rate Providers: + +* **PricePerOrder** - Defines a fixed price to apply per order. +* **PricePerOrderItem** - Defines a fixed price multiplied by the total number of items in the order. +* **PricePerOrderWeightUnit** - Defines a fixed price multiplied by the total order weight. +* **OrderSubtotalPercentage** - Define a percentage of the order subtotal to apply. + +### Custom Shipping Rate Providers + +Should you wish to define some other rate calculation logic, you can create your own providers by implementing the `ShippingRateProvider` base class. + +```csharp +[ShippingRateProvider("myrate", "My Rate", + editorView: "/App_Plugins/UmbracoCommerceExt/backoffice/views/myrate.html", + sortOrder: 30)] +public class MyShippingRateProvider : ShippingRateProvider +{ + public override Attempt TryGetRate(ShippingRateCalculationContext ctx) + { + // Use the context parameter to calculate a rate ammount + // return Attempt.Succeed(Price.Calculate(amount, ctx.TaxRate, ctx.Currency.Id, ctx.Store.PricesIncludeTax)); + } +} +``` + +The class should be decorated with the `ShippingRateProviderAttribute` which defines an alias, name, description, editor view, and label view for the provider. It implements a single method `TryGetRate` which, given a `ShippingRateCalculationContext`, should calculate the relevant rate. The `ShippingRateCalculationContext` contains a series of useful properties that you can use to form your calculation. + +* **Model** - The value for this rate provider captured from the UI. +* **Order** - The order associated with this calculation. +* **Store** - The store the order belongs to. +* **Currency** - The given currency of the order. +* **TaxRate** - The tax rate for the shipping method. +* **Packages** - A list of packages created for this shipment. +* **OrderCalculation** - The current in progress order calculation, should there be one. + +#### Registering your custom Shipping Rate Provider + +Shipping Rate Providers are automatically added by type so there is no specific registration code you need to implement. By inheriting from the `ShippingRateProvider` base class, Umbraco Commerce will automatically load your implementation and add it to the Shipping Rate Providers collection. diff --git a/14/umbraco-commerce/key-concepts/tax-sources.md b/14/umbraco-commerce/key-concepts/tax-sources.md new file mode 100644 index 00000000000..62eb76fd1f2 --- /dev/null +++ b/14/umbraco-commerce/key-concepts/tax-sources.md @@ -0,0 +1,32 @@ +--- +description: Identifying the source of taxation of an Order within Umbraco Commerce. +--- + +# Tax Sources + +A Tax Source identifies which geographic location an Order should use in order to calculate its tax liability. Depending on the country that the web store is operating in and the country, an order is being purchased from/shipping to, this can dictate how your taxes should be calculated. + +To aid with this Umbraco Commerce allows the Tax Source of a Store to be configured via the implementation of a Tax Source Factory. The Tax Source Factory is responsible for determining the source of Tax given the billing and shipping country of an Order. + +Out of the box, Umbraco Commerce comes with two Tax Source Factory implementations: + +* **DestinationTaxSourceFactory** - (Default) Sets the Tax Source as being the destination country where an Order will be shipped to. +* **OriginTaxSourceFactory** - Sets the Tax Source as being the origin country where an Order was billed to. + +## Changing the Tax Source Factory + +Tax Source Factories are [registered via the IUmbracoCommerceBuilder](umbraco-commerce-builder.md) interface using the `AddUnique()` method on the `Services` property where the `TReplacementTaxSourceFactory` parameter is the type of your replacement Tax Source Factory implementation. + +```csharp +public static class UmbracoCommerceUmbracoBuilderExtensions +{ + public static IUmbracoCommerceBuilder AddMyServices(IUmbracoCommerceBuilder builder) + { + // Replacing the default Tax Source Factory implementation + builder.Services.AddUnique(); + + // Return the builder to continue the chain + return builder; + } +} +``` diff --git a/14/umbraco-commerce/key-concepts/ui-config-files.md b/14/umbraco-commerce/key-concepts/ui-config-files.md new file mode 100644 index 00000000000..ffd15aa2f43 --- /dev/null +++ b/14/umbraco-commerce/key-concepts/ui-config-files.md @@ -0,0 +1,309 @@ +--- +description: Customizing the UI in Umbraco Commerce. +--- + +# UI Config Files + +With Umbraco Commerce, there are minimal rules about what information you are required to record about an Order, however, this does pose a problem for how we provide a User Interface for managing carts and orders when we don't know exactly what properties you are going to be recording. + +In order to allow this flexibility whilst still providing the ability to view and manage carts and orders in the backoffice, Umbraco Commerce supports a number of UI config files to map [Order/Order Line Properties](properties.md) to its UI elements. + +## Supported UI Config Files + +The configuration files supported by Umbraco Commerce are. + +* **cart.list.config.json** - Cart list view configuration. +* **cart.editor.config.json** - Cart editor view configuration. +* **order.list.config.json** - Order list view configuration. +* **order.editor.config.json** - Order editor view configuration. + +{% hint style="info" %} +If there are no cart config files defined, then Umbraco Commerce will fall back to the order config files. +{% endhint %} + +## Assigning a UI Config File to a Store + +To assign a UI config file to a Store, this is done by file name convention. This is where configs are looked for in `App_Plugins/UmbracoCommerce/config` with the following file name format `{storeAlias}.{entityType}.{viewType}.config.json`. If no store-specific file is found, it will fallback into the default `{entityType}.{viewType}.config.json`. + +## Cart/Order List Config Files + +With these configuration files, you can customize the columns displayed in the Cart/Order list view. + +### Example Cart/Order List Config File + +```javascript +{ + properties: [ + { alias: "color", header: "Color", placeholder: "Undefined" }, + { alias: "size", header: "Size", placeholder: "Undefined", align: "right" } + ] +} +``` + +The following properties are supported: + +| Name | Description | +| ------------- | ------------------------------------------------------------------------------------------------------------ | +| `alias` | The alias of the Order property to use | +| `label` | A label to display as the table column header | +| `align` | Sets the alignment of the column. Can be `left` (default), `center` or `right` | +| `placeholder` | The placeholder value to display if there is now Order property value | +| `template` | An angular template to use for rendering the property value. Defaults to `{{ properties['alias'].value }}` | + +Properties configured to display in the list view will appear in order, after the cart name column. + +![Order List Properties](../media/cart\_list\_properties.png) + +## Cart/Order Editor Config Files + +With these configuration files, you can customize the Cart/Order Editor interface to suit your particular needs. + +### Example Cart/Order Editor Config File + +An example of an Order Editor config file would look something like this: + +```javascript +{ + orderLine: { + properties: [ + { alias: "color", label: "Color", isReadOnly: true, showInOrderLineSummary: true }, + { alias: "size", label: "Size", isReadOnly: true } + ] + }, + customer: { + // Firstname, Lastname and Email are already known + company: { alias: "company", label: "Company Name" }, + taxCode: { alias: "taxCode", label: "Tax Code" }, + telephone: { alias: "telephone", label: "Telephone" }, + }, + billing: { + addressLine1: { alias: "billingAddressLine1", label: "Street Address Line 1" }, + addressLine2: { alias: "billingAddressLine2", label: "Street Address Line 2" }, + city: { alias: "billingCity", label: "City" }, + zipCode: { alias: "billingZipCode", label: "Zip Code" }, + telephone: { alias: "billingTelephone", label: "Telephone" }, + // Country and Region are already known + }, + shipping: { + enabled: true, + sameAsBilling: { alias: "shippingSameAsBilling", label: "Same as billing", trueValue: "1", falseValue: "0" }, + firstName: { alias: "shippingFirstName", label: "First Name" }, + lastName: { alias: "shippingLastName", label: "Last Name" }, + addressLine1: { alias: "shippingAddressLine1", label: "Street Address Line 1" }, + addressLine2: { alias: "shippingAddressLine2", label: "Street Address Line 2" }, + city: { alias: "shippingCity", label: "City" }, + zipCode: { alias: "shippingZipCode", label: "Zip Code" }, + telephone: { alias: "shippingTelephone", label: "Telephone" }, + // Country and Region are already known + }, + notes: { + customerNotes: { alias: "comments", label: "Customer Comments" }, + internalNotes: { alias: "notes", label: "Internal Notes" } + }, + additionalInfo: [ + { alias: "ipAddress", label: "IP Address", isReadOnly: true } + ] +} +``` + +The Cart/Order Editor config file is broken up into a series of sections, each of which relates to a particular section of the Cart/Order Editor User Interface. + +### Order Line Config Options + +The Order Line config block configures which Order Line properties should be viewable and/or manageable within the Cart/Order Editor UI. For each Order Line Property, you can provide the following options: + +| Name | Description | +| ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------- | +| `alias` | The alias of the Order Line property | +| `label` | A friendly label to display for this property in the editor interface | +| `description` | A friendly description to display for this property in the editor interface | +| `template` | An angular template to use for rendering the property value. Defaults to `{{ properties['alias'].value }}` | | +| `isReadOnly` | Sets the property as read only and so doesn't provide a means of editing the value in the editor interface (Default: `false`) | +| `showInOrderLineSummary` | Sets whether to display this property in the Order Lines summary next to the `SKU` in the Order editor interface (Default: `true`) | +| `view` | Sets the name or path of a Property Editor to use when editing this property | +| `config` | Defines a JSON config for the Property Editor if required | + +Properties configured to display in the Order Line Summary will be displayed inline next to the "Order Lines `SKU`" as follows: + +![Order Line Summary](../media/order\_line\_summary.png) + +Where there are editable Order Line Properties for an Order Line, a pencil icon is displayed next to the Order Lines Product name which when clicked will open out the Order Line Property editor interface for that Order Line. + +![Order Line Property Editing](../media/order\_line\_property\_editing.png) + +### Customer Config Options + +The Customer config block configures which Cart/Order properties relate to a Cart/Orders customer information. The following properties are supported. + +| Key | Description | +| ----------- | --------------------------------------------------------------------------------- | +| `firstName` | The customers first name. Uses the `order.CustomerInfo.FirstName` system property | +| `lastName` | The customers last name. Uses the `order.CustomerInfo.LastName` system property | +| `email` | The customers email address. Uses the `order.CustomerInfo.Email` system property | +| `company` | The company the customer works for | +| `taxCode` | The tax code of the company the customer works for | +| `telephone` | The contact telephone number of the customer | + +Any missing property definition in this config block will disable that property from displaying/being editable. + +For each property, the following config options are available: + +| Name | Description | +| ------------- | ---------------------------------------------------------------------------- | +| `alias` | The alias of the Order property to use | +| `label` | A friendly label to display for this property in the editor interface | +| `description` | A friendly description to display for this property in the editor interface | +| `view` | Sets the name or path of a Property Editor to use when editing this property | +| `config` | Defines a JSON config for the Property Editor if required | + +A fully configured Customer config block will produce a Customer summary like so: + +![Order Line Property Editing](../media/order\_customer\_info.png) + +Clicking the Customer Details `Edit` button will display an editing interface like so: + +![Order Line Property Editing](../media/order\_customer\_info\_editor.png) + +### Billing Config Options + +The Billing config block configures which Cart/Order properties relate to a Cart/Orders billing information. The following properties are supported. + +| Key | Description | +| -------------- | ------------------------------------------- | +| `addressLine1` | Line 1 of the billing address | +| `addressLine2` | Line 2 of the billing address | +| `city` | The City of the billing address | +| `zipCode` | The Zip/Postal Code of the billing address | +| `telephone` | The telephone number of the billing address | + +In addition to these properties, the `order.PaymentInfo` Country/Region will be associated with the billing address. + +Any missing property definition in this config block will disable that property from displaying/being editable. + +For each property, the following config options are available: + +| Name | Description | +| ------------- | ---------------------------------------------------------------------------- | +| `alias` | The alias of the Order property to use | +| `label` | A friendly label to display for this property in the editor interface | +| `description` | A friendly description to display for this property in the editor interface | +| `view` | Sets the name or path of a Property Editor to use when editing this property | +| `config` | Defines a JSON config for the Property Editor if required | + +A fully configured Billing config block will produce a Billing Address summary like so: + +![Order Billing Address Summary](../media/order\_billing\_address\_summary.png) + +Clicking the Customer Details `Edit` button will display an editing interface like so: + +![Order Billing Address Editor](../media/order\_billing\_address\_editor.png) + +### Shipping Config Options + +The Shipping config block configures which Cart/Order properties relate to a Cart/Orders shipping information. The following properties are supported. + +| Key | Description | +| --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | +| `enabled` | Sets whether the collection of shipping information is enabled or not. If set to `false` not shipping info will be displayed (Default: `true`) | +| `sameAsBilling` | Determines the Order property to use as a flag to indicate the shipping address is the same as the billing address | +| `firstName` | The first name of the shipping contact | +| `lastName` | The last name of the shipping contact | +| `addressLine1` | Line 1 of the shipping address | +| `addressLine2` | Line 2 of the shipping address | +| `city` | The City of the shipping address | +| `zipCode` | The Zip/Postal Code of the shipping address | +| `telephone` | The telephone number of the shipping address | + +In addition to these properties, the `order.ShippingInfo` Country/Region will be associated with the shipping address. + +Any missing property definition in this config block will disable that property from displaying/being editable. + +For each property, except `enabled` or `sameAsBilling`, the following config options are available: + +| Name | Description | +| ------------- | ---------------------------------------------------------------------------- | +| `alias` | The alias of the Order property to use | +| `label` | A friendly label to display for this property in the editor interface | +| `description` | A friendly description to display for this property in the editor interface | +| `view` | Sets the name or path of a Property Editor to use when editing this property | +| `config` | Defines a JSON config for the Property Editor if required | + +For the `sameAsBilling` property, the following config options are available: + +| Name | Description | +| ------------ | --------------------------------------------------------------------------------------------- | +| `alias` | The alias of the Order property to use | +| `label` | A friendly label to display next to a toggle switch for this property in the editor interface | +| `trueValue` | The value to expect for a `true` value | +| `falseValue` | The value to expect for a `false` value | + +A fully configured Shipping config block, where the `sameAsBilling` property is `false`, will produce a Shipping Address summary like so: + +![Order Shipping Address Summary](../media/order\_shipping\_address\_summary.png) + +Where as, a fully configured Shipping config block, where the `sameAsBilling` property is `true`, will produce a Shipping Address summary like so: + +![Order Shipping Address Summary - Same as Billing](../media/order\_shipping\_address\_summary\_same\_as\_billing.png) + +Clicking the Customer Details `Edit` button will display an editing interface like so: + +![Order Shipping Address Editor](../media/order\_shipping\_address\_editor.png) + +If the `sameAsBilling` toggle switch is toggled, the appropriate Cart/Order property will be toggled between the configured Properties true/false values, and the editor interface will be collapsed like so: + +![Order Shipping Address Editor - Same as Billing](../media/order\_shipping\_address\_editor\_same\_as\_billing.png) + +### Notes Config Options + +The Notes config block configures which Cart/Order properties relate to a Cart/Orders note information. The following properties are supported. + +| Key | Description | +| --------------- | ---------------------------------------------------------------------------------- | +| `customerNotes` | The property to use for customer provided notes | +| `internalNotes` | The property to use to store internal notes that shouldn't be sent to the customer | + +Any missing property definition in this config block will disable that property from displaying/being editable. + +For each property the following config options are available: + +| Name | Description | +| ------------- | --------------------------------------------------------------------------- | +| `alias` | The alias of the Order property to use | +| `label` | A friendly label to display for this property in the editor interface | +| `description` | A friendly description to display for this property in the editor interface | + +A fully configured Notes config block will produce an editor interface like so: + +![Order Notes Editor](../media/order\_notes\_editor.png) + +### Additional Info Config Options + +The Additional Info config block configures any other Cart/Order properties you wish to display in the Cart/Order editor interface in the **Additional Info** section. For each Order Property to display you can provide the following options: + +| Name | Description | +| ------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `alias` | The alias of the Order property | +| `label` | A friendly label to display for this property in the editor interface | +| `description` | A friendly description to display for this property in the editor interface | +| `template` | An angular template to use for rendering the property value. Defaults to `{{ properties['alias'].value }}` | +| `isReadOnly` | Sets the property as read only and so doesn't provide a means of editing the value in the editor interface (Default: `false`) | +| `view` | Sets the name or path of a Property Editor to use when editing this property | +| `config` | Defines a JSON config for the Property Editor if required | + +A fully configured Additional Info config block will produce an Additional Info summary interface like so: + +![Additional Info Summary](../media/order\_additional\_info\_summary.png) + +Clicking the Additional Info `Edit` button will display an editing interface like so: + +![Additional Info Editor](../media/order\_additional\_info\_editor.png) + +### Custom Cart/Order Editor View + +If you wish to entirely replace the Cart/Order Editor view with a custom implementation you can create a Cart/Order Editor Config file with a single `view` config option which points to the path of an alternative AngularJS view file to use for editing the Order. + +```javascript +{ + view: '/app_plugins/myplugin/views/ordereditor/ordereditor.html' +} +``` diff --git a/14/umbraco-commerce/key-concepts/umbraco-commerce-builder.md b/14/umbraco-commerce/key-concepts/umbraco-commerce-builder.md new file mode 100644 index 00000000000..0cd8b8dbf0f --- /dev/null +++ b/14/umbraco-commerce/key-concepts/umbraco-commerce-builder.md @@ -0,0 +1,92 @@ +--- +description: Learn more about the different options for configured Umbraco Commerce. +--- + +# Umbraco Commerce Builder + +When it comes to configuring and extending Umbraco Commerce, such as by registering your own event handlers, we achieve this with the `IUmbracoCommerceBuilder` interface that can be accessed via a delegate function passed into the `AddUmbracoCommerce()` extension method called on the `IUmbracoBuilder` interface when explicitly registering Umbraco Commerce. + +```csharp +builder.CreateUmbracoBuilder() + .AddBackOffice() + .AddWebsite() + .AddUmbracoCommerce(umbracoCommerceBuilder => { + // Configure Umbraco Commerce here + }) + .AddDeliveryApi() + .AddComposers() + .Build(); + +``` + +## Registering Dependencies + +The `IUmbracoCommerceBuilder` interface gives you access to the current `IServiceCollection` and `IConfiguration` to allow you to register dependencies like you would with the [`IUmbracoBuilder` interface](dependency-injection.md#registering-dependencies) but its primary use case would be to access Umbraco Commerce's own collection builders, such as for registering validation or notification events, and any other Umbraco Commerce-specific configuration APIs. + +```csharp +... +.AddUmbracoCommerce(umbracoCommerceBuilder => { + + // Register validation events + umbracoCommerceBuilder.WithValidationEvent() + .RegisterHandler(); + +}) +... +``` + +As per the [Dependency Injection docs](dependency-injection.md), whilst you can register your dependencies directly within this configuration delegate, you may prefer to group your dependencies registration code into an extension method. + +```csharp +public static class UmbracoCommerceUmbracoBuilderExtensions +{ + public static IUmbracoCommerceBuilder AddMyDependencies(this IUmbracoCommerceBuilder builder) + { + // Register my dependencies here via the builder parameter + ... + + // Return the builder to continue the chain + return builder; + } +} +``` + +```csharp +... +.AddUmbracoCommerce(umbracoCommerceBuilder => { + + umbracoCommerceBuilder.AddMyDependencies(); + +}) +... +``` + +{% hint style="info" %} +If using a composer to register `IUmbracoCommerceBuilder` extensions and their dependencies, the composer needs to run before `UmbracoCommerceComposer` otherwise it will use the default configuration. +{% endhint %} + +```csharp +public static class StoreBuilderExtensions +{ + public static IUmbracoBuilder AddMyStore(this IUmbracoBuilder umbracoBuilder) + { + umbracoBuilder.AddUmbracoCommerce(v => + { + ... + }); + + return umbracoBuilder; + } +} +``` + +```csharp +[ComposeBefore(typeof(UmbracoCommerceComposer))] +public class StoreComposer : IComposer +{ + public void Compose(IUmbracoBuilder builder) + { + builder.AddMyStore(); + } +} +``` diff --git a/14/umbraco-commerce/key-concepts/umbraco-properties.md b/14/umbraco-commerce/key-concepts/umbraco-properties.md new file mode 100644 index 00000000000..f46b4936cbd --- /dev/null +++ b/14/umbraco-commerce/key-concepts/umbraco-properties.md @@ -0,0 +1,95 @@ +--- +description: Key Umbraco node properties used by Umbraco Commerce. +--- + +# Umbraco Properties + +Umbraco Commerce uses Umbraco nodes as its source of information. In order for Umbraco Commerce to gather the information it needs, however, it requires that a number of properties are defined at different locations with specific property aliases. + +## Properties + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AliasTypeDescription
storeUmbraco.Commerce.StorePicker + Often placed on the site root node, but can be placed on any node higher + than the product nodes themselves, this property links the website to a + specific Umbraco Commerce store configuration. +
productNameTextstring + Optional product node property that allows you to define an explicit + product name other than the product nodes .Name property, + which will be used as fallback. +
skuTextstring + Product node property defining the unique SKU of the + product. +
priceUmbraco.Commerce.PriceProduct node property defining the prices for the product.
stockUmbraco.Commerce.StockProduct node property defining the stock level of the product.
imageUmbraco.MediaPicker3Optional product node property defining an image for the given product.
measurementsUmbraco.Commerce.MeasurementsOptional (depending on the shipping configuration) node property defining physical dimensions and weight of the product.
taxClassUmbraco.Commerce.StoreEntityPicker + Optional product node property that allows you to define an explicit + Tax Class for the product, should it differ from the stores + default. +
isGiftCardTrue/False + Optional product node property that defined whether the product node + should be considered a Gift Card product, in which case it triggers the + automatic generation of a Gift Card in the backoffice and emails it + directly to the customer on checkout. +
productSourceContentPicker + Optional product node property allowing you to link a product to another + product outside of it's hierarchy to be used as it's source of product + information. +
diff --git a/14/umbraco-commerce/key-concepts/unit-of-work.md b/14/umbraco-commerce/key-concepts/unit-of-work.md new file mode 100644 index 00000000000..eabac773e45 --- /dev/null +++ b/14/umbraco-commerce/key-concepts/unit-of-work.md @@ -0,0 +1,78 @@ +--- +description: Transactional updates using the Unit of Work pattern in Umbraco Commerce. +--- + +# Unit of Work + +## Unit of Work + +When working with Umbraco Commerce's API it is important that data integrity is maintained should any errors occur. In order to achieve this Umbraco Commerce uses the [Unit of Work pattern](https://www.martinfowler.com/eaaCatalog/unitOfWork.html) to effectively create a transaction that wraps around sections of your code ensuring that all Umbraco Commerce write operations that occur within that code block must succeed and be persisted in their entirety, otherwise, none of them should, and the database should rollback to its state prior to when those changes were made. + +### Creating a Unit of Work + +Creating a unit of work will require access to Umbraco Commerce's `IUnitOfWorkProvider` which can be [injected into your Controller directly](dependency-injection.md), or can also be accessed via the `UoW` property on the `IUmbraco CommerceApi` helper. + +Once you have access to either of these entry points, you can define a Unit of Work as follows + +```csharp +_uowProvider.Execute(uow => +{ + // Perform your write operations here + + uow.Complete(); +}); + +``` + +The anatomy of a Unit of Work is an `Execute` method call on the `IUnitOfWorkProvider` instance which accepts a delegate function with a `uow` argument. Inside the delegate, we perform our tasks and confirm the Unit of Work as complete by calling `uow.Complete()`. If we fail to call `uow.Complete()` either due to forgetting to add the `uow.Complete()` call or due to an exception in our code, then any write operations that occur within that code block will **not** be persisted in the database. + +### Unit of Work Best Practice + +When using a Unit of Work it is best practice that you should perform **all** write operations inside a single Unit of Work and **not** create individual Units of Work per write operation. + +{% hint style="info" %} +Perform all write operations in a single Unit of Work +{% endhint %} + +```csharp +_uowProvider.Execute(uow => +{ + // Create a Country + var country = Country.Create(uow, storeId, "DK", "Denmark"); + + _countryService.Save(country); + + // Create a Currency + var currency = Currency.Create(uow, storeId, "DKK", "Danish Kroner", "da-DK"); + + _currencyService.Save(currency); + + uow.Complete(); +}); +``` + +{% hint style="info" %} +It is not recommended to create a Unit of Work per write operation. +{% endhint %} + +```csharp +_uowProvider.Execute(uow => +{ + // Create a Country + var country = Country.Create(uow, storeId, "DK", "Denmark"); + + _countryService.Save(country); + + uow.Complete(); +}); + +_uowProvider.Execute(uow => +{ + // Create a Currency + var currency = Currency.Create(uow, storeId, "DKK", "Danish Kroner", "da-DK"); + + _currencyService.Save(currency); + + uow.Complete(); +}); +``` diff --git a/14/umbraco-commerce/key-concepts/webhooks.md b/14/umbraco-commerce/key-concepts/webhooks.md new file mode 100644 index 00000000000..2961df4937a --- /dev/null +++ b/14/umbraco-commerce/key-concepts/webhooks.md @@ -0,0 +1,14 @@ +--- +description: Webhook configuration in Umbraco Commerce. +--- + +# Webhooks + +Umbraco Commerce makes use of the webhooks feature added in Umbraco v13. See the [Webooks documentation](/umbraco-cms/reference/webhooks) for general webooks configuration. + +# Events + +Umbraco Commerce triggers webhooks for the following events: + +* **Order Finalized** - Triggered when an order is converted from a cart to an actual finalized order. This event is useful for notifying external systems of new orders. +* **Order Status Changed** - Triggered when the status of an order changes. This event is useful for notifying external systems when an order is ready to ship, or has been canceled. diff --git a/14/umbraco-commerce/media/back-office-bundles.png b/14/umbraco-commerce/media/back-office-bundles.png new file mode 100644 index 00000000000..154c8d21510 Binary files /dev/null and b/14/umbraco-commerce/media/back-office-bundles.png differ diff --git a/14/umbraco-commerce/media/cart_list_properties.png b/14/umbraco-commerce/media/cart_list_properties.png new file mode 100644 index 00000000000..952793eff17 Binary files /dev/null and b/14/umbraco-commerce/media/cart_list_properties.png differ diff --git a/14/umbraco-commerce/media/commerce_order_details.png b/14/umbraco-commerce/media/commerce_order_details.png new file mode 100644 index 00000000000..920ba93a382 Binary files /dev/null and b/14/umbraco-commerce/media/commerce_order_details.png differ diff --git a/14/umbraco-commerce/media/commerce_orders_view.png b/14/umbraco-commerce/media/commerce_orders_view.png new file mode 100644 index 00000000000..322945f12db Binary files /dev/null and b/14/umbraco-commerce/media/commerce_orders_view.png differ diff --git a/14/umbraco-commerce/media/commerce_section.png b/14/umbraco-commerce/media/commerce_section.png new file mode 100644 index 00000000000..87af16e4731 Binary files /dev/null and b/14/umbraco-commerce/media/commerce_section.png differ diff --git a/14/umbraco-commerce/media/content_store_picker.png b/14/umbraco-commerce/media/content_store_picker.png new file mode 100644 index 00000000000..541c90e12ab Binary files /dev/null and b/14/umbraco-commerce/media/content_store_picker.png differ diff --git a/14/umbraco-commerce/media/create_commerce_user_group.png b/14/umbraco-commerce/media/create_commerce_user_group.png new file mode 100644 index 00000000000..10212d25e3a Binary files /dev/null and b/14/umbraco-commerce/media/create_commerce_user_group.png differ diff --git a/14/umbraco-commerce/media/create_shipping_method.png b/14/umbraco-commerce/media/create_shipping_method.png new file mode 100644 index 00000000000..5d258b52457 Binary files /dev/null and b/14/umbraco-commerce/media/create_shipping_method.png differ diff --git a/14/umbraco-commerce/media/create_shipping_method2.png b/14/umbraco-commerce/media/create_shipping_method2.png new file mode 100644 index 00000000000..48805966668 Binary files /dev/null and b/14/umbraco-commerce/media/create_shipping_method2.png differ diff --git a/14/umbraco-commerce/media/custom_bulk_action.png b/14/umbraco-commerce/media/custom_bulk_action.png new file mode 100644 index 00000000000..50444a1bc40 Binary files /dev/null and b/14/umbraco-commerce/media/custom_bulk_action.png differ diff --git a/14/umbraco-commerce/media/discount_rule_builder_label_views.png b/14/umbraco-commerce/media/discount_rule_builder_label_views.png new file mode 100644 index 00000000000..1a24c1d0d8b Binary files /dev/null and b/14/umbraco-commerce/media/discount_rule_builder_label_views.png differ diff --git a/14/umbraco-commerce/media/discount_rule_ui.png b/14/umbraco-commerce/media/discount_rule_ui.png new file mode 100644 index 00000000000..b2f963b3d79 Binary files /dev/null and b/14/umbraco-commerce/media/discount_rule_ui.png differ diff --git a/14/umbraco-commerce/media/dynamic_rate_shipping_details.png b/14/umbraco-commerce/media/dynamic_rate_shipping_details.png new file mode 100644 index 00000000000..2d32d5ffcd7 Binary files /dev/null and b/14/umbraco-commerce/media/dynamic_rate_shipping_details.png differ diff --git a/14/umbraco-commerce/media/dynamic_rate_shipping_rates.png b/14/umbraco-commerce/media/dynamic_rate_shipping_rates.png new file mode 100644 index 00000000000..6eb4b553880 Binary files /dev/null and b/14/umbraco-commerce/media/dynamic_rate_shipping_rates.png differ diff --git a/14/umbraco-commerce/media/dynamic_rate_shipping_rates_dialog.png b/14/umbraco-commerce/media/dynamic_rate_shipping_rates_dialog.png new file mode 100644 index 00000000000..1be95713bf5 Binary files /dev/null and b/14/umbraco-commerce/media/dynamic_rate_shipping_rates_dialog.png differ diff --git a/14/umbraco-commerce/media/fixed_rate_country_shipping_rates.png b/14/umbraco-commerce/media/fixed_rate_country_shipping_rates.png new file mode 100644 index 00000000000..94d6ed363e5 Binary files /dev/null and b/14/umbraco-commerce/media/fixed_rate_country_shipping_rates.png differ diff --git a/14/umbraco-commerce/media/fixed_rate_shipping_countries.png b/14/umbraco-commerce/media/fixed_rate_shipping_countries.png new file mode 100644 index 00000000000..ba3eaa08abe Binary files /dev/null and b/14/umbraco-commerce/media/fixed_rate_shipping_countries.png differ diff --git a/14/umbraco-commerce/media/fixed_rate_shipping_details.png b/14/umbraco-commerce/media/fixed_rate_shipping_details.png new file mode 100644 index 00000000000..225a2427104 Binary files /dev/null and b/14/umbraco-commerce/media/fixed_rate_shipping_details.png differ diff --git a/14/umbraco-commerce/media/license-dashboard.png b/14/umbraco-commerce/media/license-dashboard.png new file mode 100644 index 00000000000..73a75fd640f Binary files /dev/null and b/14/umbraco-commerce/media/license-dashboard.png differ diff --git a/14/umbraco-commerce/media/location_edit.png b/14/umbraco-commerce/media/location_edit.png new file mode 100644 index 00000000000..32885de3208 Binary files /dev/null and b/14/umbraco-commerce/media/location_edit.png differ diff --git a/14/umbraco-commerce/media/measurements.png b/14/umbraco-commerce/media/measurements.png new file mode 100644 index 00000000000..5e1a68c9d45 Binary files /dev/null and b/14/umbraco-commerce/media/measurements.png differ diff --git a/14/umbraco-commerce/media/ngrok.png b/14/umbraco-commerce/media/ngrok.png new file mode 100644 index 00000000000..5b471cfbf04 Binary files /dev/null and b/14/umbraco-commerce/media/ngrok.png differ diff --git a/14/umbraco-commerce/media/nuget-packages-overview.png b/14/umbraco-commerce/media/nuget-packages-overview.png new file mode 100644 index 00000000000..2e33be59953 Binary files /dev/null and b/14/umbraco-commerce/media/nuget-packages-overview.png differ diff --git a/14/umbraco-commerce/media/order_additional_info_editor.png b/14/umbraco-commerce/media/order_additional_info_editor.png new file mode 100644 index 00000000000..aea2fe1dda7 Binary files /dev/null and b/14/umbraco-commerce/media/order_additional_info_editor.png differ diff --git a/14/umbraco-commerce/media/order_additional_info_summary.png b/14/umbraco-commerce/media/order_additional_info_summary.png new file mode 100644 index 00000000000..eb0d12cb731 Binary files /dev/null and b/14/umbraco-commerce/media/order_additional_info_summary.png differ diff --git a/14/umbraco-commerce/media/order_billing_address_editor.png b/14/umbraco-commerce/media/order_billing_address_editor.png new file mode 100644 index 00000000000..d9017391913 Binary files /dev/null and b/14/umbraco-commerce/media/order_billing_address_editor.png differ diff --git a/14/umbraco-commerce/media/order_billing_address_summary.png b/14/umbraco-commerce/media/order_billing_address_summary.png new file mode 100644 index 00000000000..f83ce56884f Binary files /dev/null and b/14/umbraco-commerce/media/order_billing_address_summary.png differ diff --git a/14/umbraco-commerce/media/order_customer_info.png b/14/umbraco-commerce/media/order_customer_info.png new file mode 100644 index 00000000000..39c8be42bbc Binary files /dev/null and b/14/umbraco-commerce/media/order_customer_info.png differ diff --git a/14/umbraco-commerce/media/order_customer_info_editor.png b/14/umbraco-commerce/media/order_customer_info_editor.png new file mode 100644 index 00000000000..2708a23e76b Binary files /dev/null and b/14/umbraco-commerce/media/order_customer_info_editor.png differ diff --git a/14/umbraco-commerce/media/order_editor_config_store_setting.png b/14/umbraco-commerce/media/order_editor_config_store_setting.png new file mode 100644 index 00000000000..f188da068f1 Binary files /dev/null and b/14/umbraco-commerce/media/order_editor_config_store_setting.png differ diff --git a/14/umbraco-commerce/media/order_line_property_editing.png b/14/umbraco-commerce/media/order_line_property_editing.png new file mode 100644 index 00000000000..3e3bda18f61 Binary files /dev/null and b/14/umbraco-commerce/media/order_line_property_editing.png differ diff --git a/14/umbraco-commerce/media/order_line_summary.png b/14/umbraco-commerce/media/order_line_summary.png new file mode 100644 index 00000000000..e49726ac0e1 Binary files /dev/null and b/14/umbraco-commerce/media/order_line_summary.png differ diff --git a/14/umbraco-commerce/media/order_notes_editor.png b/14/umbraco-commerce/media/order_notes_editor.png new file mode 100644 index 00000000000..4f2ccde87b3 Binary files /dev/null and b/14/umbraco-commerce/media/order_notes_editor.png differ diff --git a/14/umbraco-commerce/media/order_shipping_address_editor.png b/14/umbraco-commerce/media/order_shipping_address_editor.png new file mode 100644 index 00000000000..a20110745d2 Binary files /dev/null and b/14/umbraco-commerce/media/order_shipping_address_editor.png differ diff --git a/14/umbraco-commerce/media/order_shipping_address_editor_same_as_billing.png b/14/umbraco-commerce/media/order_shipping_address_editor_same_as_billing.png new file mode 100644 index 00000000000..f9b5713e807 Binary files /dev/null and b/14/umbraco-commerce/media/order_shipping_address_editor_same_as_billing.png differ diff --git a/14/umbraco-commerce/media/order_shipping_address_summary.png b/14/umbraco-commerce/media/order_shipping_address_summary.png new file mode 100644 index 00000000000..6c3761d0c3a Binary files /dev/null and b/14/umbraco-commerce/media/order_shipping_address_summary.png differ diff --git a/14/umbraco-commerce/media/order_shipping_address_summary_same_as_billing.png b/14/umbraco-commerce/media/order_shipping_address_summary_same_as_billing.png new file mode 100644 index 00000000000..e376b36cc89 Binary files /dev/null and b/14/umbraco-commerce/media/order_shipping_address_summary_same_as_billing.png differ diff --git a/14/umbraco-commerce/media/package-files-list.png b/14/umbraco-commerce/media/package-files-list.png new file mode 100644 index 00000000000..5e2ccc38e70 Binary files /dev/null and b/14/umbraco-commerce/media/package-files-list.png differ diff --git a/14/umbraco-commerce/media/payment_provider_capture_flow.png b/14/umbraco-commerce/media/payment_provider_capture_flow.png new file mode 100644 index 00000000000..15c5c049b91 Binary files /dev/null and b/14/umbraco-commerce/media/payment_provider_capture_flow.png differ diff --git a/14/umbraco-commerce/media/product_property_aliases.png b/14/umbraco-commerce/media/product_property_aliases.png new file mode 100644 index 00000000000..d0b82446273 Binary files /dev/null and b/14/umbraco-commerce/media/product_property_aliases.png differ diff --git a/14/umbraco-commerce/media/product_uniqueness_property_aliases.png b/14/umbraco-commerce/media/product_uniqueness_property_aliases.png new file mode 100644 index 00000000000..22801c0221e Binary files /dev/null and b/14/umbraco-commerce/media/product_uniqueness_property_aliases.png differ diff --git a/14/umbraco-commerce/media/realtime_rates.png b/14/umbraco-commerce/media/realtime_rates.png new file mode 100644 index 00000000000..cfdbeb78eb6 Binary files /dev/null and b/14/umbraco-commerce/media/realtime_rates.png differ diff --git a/14/umbraco-commerce/media/realtime_shipping_details.png b/14/umbraco-commerce/media/realtime_shipping_details.png new file mode 100644 index 00000000000..2a3be185be5 Binary files /dev/null and b/14/umbraco-commerce/media/realtime_shipping_details.png differ diff --git a/14/umbraco-commerce/media/shipping_method_allowed_countries.png b/14/umbraco-commerce/media/shipping_method_allowed_countries.png new file mode 100644 index 00000000000..69a1dd49f9d Binary files /dev/null and b/14/umbraco-commerce/media/shipping_method_allowed_countries.png differ diff --git a/14/umbraco-commerce/media/shipping_methods.png b/14/umbraco-commerce/media/shipping_methods.png new file mode 100644 index 00000000000..764fc90c6ed Binary files /dev/null and b/14/umbraco-commerce/media/shipping_methods.png differ diff --git a/14/umbraco-commerce/media/transaction_meta_data_dialog.png b/14/umbraco-commerce/media/transaction_meta_data_dialog.png new file mode 100644 index 00000000000..3714fa8b778 Binary files /dev/null and b/14/umbraco-commerce/media/transaction_meta_data_dialog.png differ diff --git a/14/umbraco-commerce/media/uc_storefront_api_swagger.png b/14/umbraco-commerce/media/uc_storefront_api_swagger.png new file mode 100644 index 00000000000..f5e4538e0ad Binary files /dev/null and b/14/umbraco-commerce/media/uc_storefront_api_swagger.png differ diff --git a/14/umbraco-commerce/media/umbraco-commerce_settings_section_editor_view.png b/14/umbraco-commerce/media/umbraco-commerce_settings_section_editor_view.png new file mode 100644 index 00000000000..2c4cdcf53af Binary files /dev/null and b/14/umbraco-commerce/media/umbraco-commerce_settings_section_editor_view.png differ diff --git a/14/umbraco-commerce/media/umbraco-commerce_settings_section_list_view.png b/14/umbraco-commerce/media/umbraco-commerce_settings_section_list_view.png new file mode 100644 index 00000000000..adcbc717d78 Binary files /dev/null and b/14/umbraco-commerce/media/umbraco-commerce_settings_section_list_view.png differ diff --git a/14/umbraco-commerce/media/umbraco_local_package_install.png b/14/umbraco-commerce/media/umbraco_local_package_install.png new file mode 100644 index 00000000000..0ff2b0d4e07 Binary files /dev/null and b/14/umbraco-commerce/media/umbraco_local_package_install.png differ diff --git a/14/umbraco-commerce/media/umbraco_packages_install.png b/14/umbraco-commerce/media/umbraco_packages_install.png new file mode 100644 index 00000000000..b7955c6cc51 Binary files /dev/null and b/14/umbraco-commerce/media/umbraco_packages_install.png differ diff --git a/14/umbraco-commerce/media/v14/management-api.png b/14/umbraco-commerce/media/v14/management-api.png new file mode 100644 index 00000000000..68eb3fd24f0 Binary files /dev/null and b/14/umbraco-commerce/media/v14/management-api.png differ diff --git a/14/umbraco-commerce/media/v14/order-editor.png b/14/umbraco-commerce/media/v14/order-editor.png new file mode 100644 index 00000000000..34cd177306a Binary files /dev/null and b/14/umbraco-commerce/media/v14/order-editor.png differ diff --git a/14/umbraco-commerce/media/v14/store-settings.png b/14/umbraco-commerce/media/v14/store-settings.png new file mode 100644 index 00000000000..f8551211062 Binary files /dev/null and b/14/umbraco-commerce/media/v14/store-settings.png differ diff --git a/14/umbraco-commerce/reference/README.md b/14/umbraco-commerce/reference/README.md new file mode 100644 index 00000000000..ccdea977083 --- /dev/null +++ b/14/umbraco-commerce/reference/README.md @@ -0,0 +1,12 @@ +# Umbraco Commerce Reference Docs + +| Namespace | +| --- | +| [Umbraco.Commerce.Cms](umbraco-commerce-cms/README.md) | +| [Umbraco.Commerce.Cms.Startup](umbraco-commerce-cms-startup/README.md) | +| [Umbraco.Commerce.Cms.Web](umbraco-commerce-cms-web/README.md) | +| [Umbraco.Commerce.Common](umbraco-commerce-common/README.md) | +| [Umbraco.Commerce.Core](umbraco-commerce-core/README.md) | +| [Umbraco.Commerce.Infrastructure](umbraco-commerce-infrastructure/README.md) | +| [Umbraco.Commerce.Persistence-sqlite](umbraco-commerce-persistence-sqlite/README.md) | +| [Umbraco.Commerce.Persistence-sqlserver](umbraco-commerce-persistence-sqlserver/README.md) | diff --git a/14/umbraco-commerce/reference/go-behind-the-scenes.md b/14/umbraco-commerce/reference/go-behind-the-scenes.md new file mode 100644 index 00000000000..1022a0d0874 --- /dev/null +++ b/14/umbraco-commerce/reference/go-behind-the-scenes.md @@ -0,0 +1,13 @@ +--- +description: >- + Explore the core services and methods in Umbraco Commerce, used for extending + the product. +--- + +# Go behind the scenes + +{% hint style="info" %} +You can find all the reference documentation for Umbraco Commerce on GitHub. We might eventually move this to this or another site. + +[**Umbraco Commerce Reference Documentation**](https://github.com/umbraco/UmbracoDocs/tree/main/13/umbraco-commerce/reference) +{% endhint %} diff --git a/14/umbraco-commerce/reference/locations/README.md b/14/umbraco-commerce/reference/locations/README.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/14/umbraco-commerce/reference/shipping/README.md b/14/umbraco-commerce/reference/shipping/README.md new file mode 100644 index 00000000000..9e05603c5a7 --- /dev/null +++ b/14/umbraco-commerce/reference/shipping/README.md @@ -0,0 +1,23 @@ +--- +description: Shipping options in Umbraco Commerce. +--- + +# Shipping + +Umbraco Commerce offers three different shipping method configurations for calculating shipping rates, which are: + +### [Fixed Rate Shipping](./fixed-rate-shipping.md) + +The fixed rate shipping option allows you to configure a single fixed rate for the whole of an order. + +### [Dynamic Rate Shipping](./dynamic-rate-shipping.md) + +The dynamic rate shipping option allows you to configure a series of ranges from which an order will be checked against. These checks identify a which range the order falls within. For each range a series of rate options can be configured. Options include fixed rate per order, a fixed rate per order item, percentage based rates amongst others. + +### [Realtime Rate Shipping](./realtime-rate-shipping.md) + +The realtime rate shipping option allows you to configure a connection to a shipping operator to fetch realtime shipping rate estimates for an order. + +## Shipping Calculators + +Should you wish to take more control over the shipping calculation process you can swap out the whole shipping calculator implementation. See the [Calculator documentation](../../key-concepts/calculators.md) for more details. \ No newline at end of file diff --git a/14/umbraco-commerce/reference/shipping/dynamic-rate-shipping.md b/14/umbraco-commerce/reference/shipping/dynamic-rate-shipping.md new file mode 100644 index 00000000000..cdb136d04ca --- /dev/null +++ b/14/umbraco-commerce/reference/shipping/dynamic-rate-shipping.md @@ -0,0 +1,42 @@ +--- +description: Dynamic Rate Shipping in Umbraco Commerce. +--- + +# Dynamic Rate Shipping + +Dynamic rate shipping in Umbraco Commerce allows you to define a series of ranges from which an order will be checked against. These checks find which range a given order falls within which in turn identifies the rates that apply. For each range, a series of rate options can be configured. Examples include a fixed rate per order, a fixed rate per order item, or percentage-based rates. By combining these configurable ranges, and different rating options it allows you to create a more dynamic algorithm than the basic fixed-rate shipping option. + +## Configuration + +* Go to `Settings > Commerce > Stores > {Your Store} > Shipping Methods` + +![Shipping Methods](../../media/shipping_methods.png) + +* Click `Create Shipping Method` +* Choose the `Basic` shipping provider + +![Choose Shipping Provider](../../media/create_shipping_method.png) + +* Chose the `Dynamic` calculation mode option + +![Choose Shipping Calculation Mode](../../media/create_shipping_method2.png) + +* Populate the shipping method name, alias, sku and optional image and tax rate + +![Shipping Method Details](../../media/dynamic_rate_shipping_details.png) + +* Choose the range unit to base the rates upon +* Click `Add Range` to define each range + + +![Shipping Method Rates](../../media/dynamic_rate_shipping_rates.png) + +* Populate the from and to value of the range +* Populate the rate details from the available rate options, leaving blank any option you don't wish to apply + +![Shipping Method Rate](../../media/dynamic_rate_shipping_rates_dialog.png) + +* Configure the countries in this shipping method should be allowed in + + +![Shipping Method Allowed Countries](../../media/shipping_method_allowed_countries.png) \ No newline at end of file diff --git a/14/umbraco-commerce/reference/shipping/fixed-rate-shipping.md b/14/umbraco-commerce/reference/shipping/fixed-rate-shipping.md new file mode 100644 index 00000000000..9d0d90098f5 --- /dev/null +++ b/14/umbraco-commerce/reference/shipping/fixed-rate-shipping.md @@ -0,0 +1,35 @@ +--- +description: Fixed Rate Shipping in Umbraco Commerce. +--- + +# Fixed Rate Shipping + +Fixed rate shipping in Umbraco Commerce allows you to define a single, fixed shipping rate to apply to an order. This is the simplest of all the shipping calculation options, but is also the least flexible. + +## Configuration + +* Go to `Settings > Commerce > Stores > {Your Store} > Shipping Methods` + +![Shipping Methods](../../media/shipping_methods.png) + +* Click `Create Shipping Method` +* Choose the `Basic` shipping provider + +![Choose Shipping Provider](../../media/create_shipping_method.png) + +* Chose the `Fixed` calculation mode option + +![Choose Shipping Calculation Mode](../../media/create_shipping_method2.png) + +* Populate the shipping method name, alias, sku and optional image and tax rate +* Enter a fixed rate for the shipping method + +![Shipping Method Details](../../media/fixed_rate_shipping_details.png) + +* Configure the countries this shipping method should be allowed in + +![Shipping Method Allowed Countries](../../media/fixed_rate_shipping_countries.png) + +* Optionally define a country specific fixed rate should you wish to have different rates per country + +![Shipping Method Country Specific Rates](../../media/fixed_rate_country_shipping_rates.png) \ No newline at end of file diff --git a/14/umbraco-commerce/reference/shipping/realtime-rate-shipping.md b/14/umbraco-commerce/reference/shipping/realtime-rate-shipping.md new file mode 100644 index 00000000000..7356b3fcd8b --- /dev/null +++ b/14/umbraco-commerce/reference/shipping/realtime-rate-shipping.md @@ -0,0 +1,40 @@ +--- +description: Realtime Rate Shipping in Umbraco Commerce. +--- + +# Realtime Rate Shipping + +Realtime rate shipping in Umbraco Commerce allows you to define real-time, up-to-the-minute shipping estimates directly from the shipping operators. + +## Configuring Realtime Rate Shipping + +To configure Realtime Rate Shipping, follow these steps: + +1. Go to **Settings**. +2. Open the **Commerce** folder in the **Commerce** section. +3. Select your store from the **Stores** dropdown. +4. Go to **Shipping Methods**. + +![Shipping Methods](../../media/shipping_methods.png) + +5. Click **Create Shipping Method**. +6. Choose the shipping provider for the shipping operator you wish to use. + +![Choose Shipping Provider](../../media/create_shipping_method.png) + +7. Choose **Realtime** in the calculation mode option. + +![Choose Shipping Calculation Mode](../../media/create_shipping_method2.png) + +8. Enter the **Shipping Method Name**, **Alias**, and **SKU**. +9. Select the tax class from the **Tax Class** dropdown list. +10. _[Optional]_ Upload an image. +11. Enter the shipping provider's API credentials required to connect to the shipping operator's API. + +![Shipping Method Details](../../media/realtime_shipping_details.png) + +12. Select the countries this shipping method should be allowed in. + +![Shipping Method Allowed Countries](../../media/shipping_method_allowed_countries.png) + +13. Click **Save**. diff --git a/14/umbraco-commerce/reference/storefront-api/README.md b/14/umbraco-commerce/reference/storefront-api/README.md new file mode 100644 index 00000000000..f8ff08d1b7e --- /dev/null +++ b/14/umbraco-commerce/reference/storefront-api/README.md @@ -0,0 +1,611 @@ +--- +description: Get started with the Storefront API. +--- + +# Storefront API + +The Storefront API delivers headless capabilities built directly into Umbraco Commerce. It allows you to retrieve and manage orders and other store-related entities in a JSON format. It lets you connect with them in different channels, using your preferred technology stack. This feature preserves the friendly editing experience of Umbraco, while also ensuring performant cart management facilities in a headless fashion. With its different extension points, you can tailor this API to fit a broad range of requirements. + +## Getting Started + +As the Storefront API works alongside the Content Delivery API you must first have the [Content Delivery API setup and enabled](https://docs.umbraco.com/umbraco-cms/reference/content-delivery-api#register-the-content-delivery-api-dependencies). + +When the Content Delivery API is enabled, you will need to explicitly opt-in to the Storefront API. Below you will find the steps you need to take in order to configure it for your Umbraco project. + +### Register the Storefront API dependencies + +1. Open your project's `Program.cs` file. +2. Register the API dependencies by adding `.AddStorefrontApi()` inside a `.AddUmbracoCommerce()` call: + +{% code title="Program.cs" %} +```csharp +builder.CreateUmbracoBuilder() + .AddBackOffice() + .AddWebsite() + .AddDeliveryApi() + .AddUmbracoCommerce(builder => { + builder.AddStorefrontApi(); + }) + .AddComposers() + .Build(); +``` +{% endcode %} + +### Enable the Storefront API + +1. Open your project's `appsettings.json`. +2. Insert the `StorefrontApi` configuration section under `Umbraco:Commerce`. +3. Add the `Enabled` key and set its value to `true`: + +{% code title="appsettings.json" %} +```json +{ + "Umbraco": { + "Commerce": { + "StorefrontApi": { + "Enabled": true + } + } + } +} +``` +{% endcode %} + +### Securing the Storefront API + +In order to work with the Storefront API many of the endpoints require authorization. The authorization is implemented by means of an API Key that must be passed in the header of these requests. The API Key is defined as an additional app setting and can be any value you decide: + +{% code title="appsettings.json" %} +```json +{ + "Umbraco": { + "Commerce": { + "StorefrontApi": { + "Enabled": true, + "ApiKey": "ZUynC149dD2N5efs6HN6dCdXlgOVASs6" + } + } + } +} +``` +{% endcode %} + +## Concepts + +Before exploring the API endpoints detailed below, there are a few concepts to keep in mind. + +
+ +Session + +When working with Umbraco Commerce's C# Api, Umbraco Commerce will normally keep track of a series of items for you. This could be the current Order ID or the current Language, which it tracks in a cookie. When working in a headless manner however we can no longer rely on cookies for this behavior. It becomes the implementor's responsibility to remember these items and pass them as Headers to the endpoints that need to use them for context. + +The following is a list of supported headers used for session management: + +* `Store` - The ID or Alias of the store the given operation is being performed against. +* `Current-Order` - The ID of any current "in-progress" order. +* `Customer-Reference` - A unique reference for the current customer. +* `Accept-Language` - The ISO Culture Code of the current front-end language. +* `Currency` - The ID or ISO Code of the current currency. If not supplied, will fall back to the default currency of the default country defined on the store. +* `Tax-Class` - The ID or Alias of the default tax class. If not supplied, will fall back to the default defined on the store. +* `Billing-Country` - The ID or ISO Code of the default billing country. If not supplied, falls back to the default country defined on the store. +* `Billing-Region` - The ID or ISO Code of the default billing region. +* `Shipping-Country` - The ID or ISO Code of the default shipping country. If not supplied, falls back to either the supplied billing country or the default country defined on the store. +* `Shipping-Region` - The ID or ISO Code of the default billing region. + +
+ +
+ +Expansion + +**Expansion** allows you to retrive additional data about related entities in the API output for a given resource. + +By default, where a resource is connected with another resource, such as an Order holding a reference to it's Currency, the Storefront API will return those connected resources as "Reference" objects which usually only contain the resources ID and Alias/Code. + +```json +{ + "cartNumber": "CART-01280-054677-RP4L9", + "createDate": "2023-07-03T15:11:17.9220005", + "currency": { + "$type": "CurrencyRef", + "code": "GBP", + "id": "30b62176-6a9e-4a51-b2f0-7ce6c80a461a" + }, + "customerInfo": { ... }, + "discountCodes": [], + ... +} +``` + +Should you wish to retrieve the connected resource, you could perform an additional get operation against that resources own endpoint, however this could result in multiple wasteful network requests. To help with this, you can pass an `expand` query parameter with a path to properties you wish to expand, which for those targeted properties will return the full resource object instead of the reference entity. + +**Request** + +```http +GET /umbraco/commerce/storefront/api/v1/order/af697207-d370-4aee-824c-15711d43a9f2?expand=currency +``` + +**Response** + +```json +{ + "cartNumber": "CART-01280-054677-RP4L9", + "createDate": "2023-07-03T15:11:17.9220005", + "currency": { + "$type": "Currency", + "allowedCountries": [ + { + "country": { + "$type": "CountryRef", + "code": "GB", + "id": "af697207-d370-4aee-824c-15711d43a9f2" + } + } + ], + "code": "GBP", + "culture": "en-GB", + "id": "30b62176-6a9e-4a51-b2f0-7ce6c80a461a", + "name": "GBP" + }, + "customerInfo": { ... }, + "discountCodes": [], + ... +} +``` + +The `expand` query parameter can accept a comma seperated list of property keys to expand for properties at the same level, and can also expand nested objects using a `[...]` syntax. In the following example we retrieve a Country entity, expanding it's `defaultCurrency` and `defaultPaymentMethod` whilst at the same time expanding the `allowedCountries.country` properties within the `defaultCurrency`. + +```http +GET /umbraco/commerce/storefront/api/v1.0/country/GB?expand=defaultCurrency[allowedCountries[country]],defaultPaymentMethod +``` + +**Response** + +```json +{ + "code": "GB", + "defaultCurrency": { + "$type": "Currency", + "allowedCountries": [ + { + "country": { + "$type": "Country", + "code": "GB", + "defaultCurrency": { + "$type": "CurrencyRef", + "code": "GBP", + "id": "30b62176-6a9e-4a51-b2f0-7ce6c80a461a" + }, + "defaultPaymentMethod": { + "$type": "PaymentMethodRef", + "alias": "invoicing", + "id": "e35677ac-a544-45a0-ba4a-a78dd43dbaf2" + }, + "defaultShippingMethod": { + "$type": "ShippingMethodRef", + "alias": "pickup", + "id": "2ecb73ed-1b13-4ca4-8502-c1c4a8df533d" + }, + "id": "af697207-d370-4aee-824c-15711d43a9f2", + "name": "United Kingdom" + } + } + ], + "code": "GBP", + "culture": "en-GB", + "id": "30b62176-6a9e-4a51-b2f0-7ce6c80a461a", + "name": "GBP" + }, + "defaultPaymentMethod": { + "$type": "PaymentMethod", + "alias": "invoicing", + "id": "e35677ac-a544-45a0-ba4a-a78dd43dbaf2", + "imageUrl": "https://localhost:44313/media/k4apjvbo/logo.png", + "name": "Invoicing", + "sku": "4815" + }, + "defaultShippingMethod": { + "$type": "ShippingMethodRef", + "alias": "pickup", + "id": "2ecb73ed-1b13-4ca4-8502-c1c4a8df533d" + }, + "id": "af697207-d370-4aee-824c-15711d43a9f2", + "name": "United Kingdom" +} +``` + +#### Shortcuts + +As well as expanding explicit properties, the Storefront API supports shortcut expansion keys that when passed will expand all entities of a given type. Shortcut keys are idenfitied by a `$` prefix. There is currently only one supported shortcut key which is `$prices`. + +**$prices** + +Prices in Umbraco Commerce can contain a lot of meta data, such as listing applied discounts/adjustments and all values including or excluding those discounts. These are useful when displaying a full order breakdown, but when only needing to present an orders total value, are not necesarry. By default, the Storefront API will only return the final `value` property of a price object, but should you wish to receive this full pricing breakdown you can pass the `$prices` shortcut key to expand all price values to include this extra meta data. + +**Request** + +```http +GET /umbraco/commerce/storefront/api/v1/order/af697207-d370-4aee-824c-15711d43a9f2?expand=$prices +``` + +**Response** + +```json +{ + ... + "totalPrice": { + "previousAdjustments": { + "currency": { + "$type": "CurrencyRef", + "code": "GBP", + "id": "30b62176-6a9e-4a51-b2f0-7ce6c80a461a" + }, + "formatted": { + "tax": "-£0.45", + "withTax": "-£2.60", + "withoutTax": "-£2.15" + }, + "tax": -0.45, + "withTax": -2.60, + "withoutTax": -2.15 + }, + "totalAdjustment": { + "currency": { + "$type": "CurrencyRef", + "code": "GBP", + "id": "30b62176-6a9e-4a51-b2f0-7ce6c80a461a" + }, + "formatted": { + "tax": "-£0.45", + "withTax": "-£2.60", + "withoutTax": "-£2.15" + }, + "tax": -0.45, + "withTax": -2.60, + "withoutTax": -2.15 + }, + "value": { + "currency": { + "$type": "CurrencyRef", + "code": "GBP", + "id": "30b62176-6a9e-4a51-b2f0-7ce6c80a461a" + }, + "formatted": { + "tax": "£5.80", + "withTax": "£33.40", + "withoutTax": "£27.60" + }, + "tax": 5.80, + "withTax": 33.40, + "withoutTax": 27.60 + }, + "withPreviousAdjustments": { + "currency": { + "$type": "CurrencyRef", + "code": "GBP", + "id": "30b62176-6a9e-4a51-b2f0-7ce6c80a461a" + }, + "formatted": { + "tax": "£5.80", + "withTax": "£33.40", + "withoutTax": "£27.60" + }, + "tax": 5.80, + "withTax": 33.40, + "withoutTax": 27.60 + } + }, + ... +} +``` + +
+ +
+ +Fields + +A common pitfall of REST APIs is the problem of over-fetching, which is where an endpoint returns more information than you need. The Storefront API supports the passing of `fields` which allows you to define exactly which properties of an object you wish to return. This will reduce the payload size. + +For example, when implementing a cart count feature to show the total number of items in a shopping cart, rather than fetching an entire order for a single `totalQuantity` field, we can return only that field: + +**Request** + +```http +GET /umbraco/commerce/storefront/api/v1/order/af697207-d370-4aee-824c-15711d43a9f2 +``` + +**Response** + +```json +{ + "cartNumber": "CART-01280-054677-RP4L9", + "createDate": "2023-07-03T15:11:17.9220005", + "currency": { + "$type": "CurrencyRef", + "code": "GBP", + "id": "30b62176-6a9e-4a51-b2f0-7ce6c80a461a" + }, + "finalizedDate": "2023-07-04T10:25:37.1471415", + "id": "832b2f79-915c-49dd-a20a-01891c4edd7c", + "isFinalized": true, + "languageIsoCode": "en-GB", + "orderLines": [ + { + "basePrice": { + "value": { + "currency": { + "$type": "CurrencyRef", + "code": "GBP", + "id": "30b62176-6a9e-4a51-b2f0-7ce6c80a461a" + }, + "formatted": { + "tax": "£4.51", + "withTax": "£26.00", + "withoutTax": "£21.49" + }, + "tax": 4.51, + "withTax": 26.00, + "withoutTax": 21.49 + } + }, + "id": "e9ec1305-1844-4a72-a343-01891c4f09d8", + "name": "Good and Proper - Breakfast Tea Set", + "properties": { + "giftMessage": "Hey Tom, found this and thought you'd love it." + }, + "quantity": 1, + "sku": "GP002", + "taxRate": 0.21, + "totalPrice": { + "value": { + "currency": { + "$type": "CurrencyRef", + "code": "GBP", + "id": "30b62176-6a9e-4a51-b2f0-7ce6c80a461a" + }, + "formatted": { + "tax": "£4.51", + "withTax": "£26.00", + "withoutTax": "£21.49" + }, + "tax": 4.51, + "withTax": 26.00, + "withoutTax": 21.49 + } + }, + "unitPrice": { + "value": { + "currency": { + "$type": "CurrencyRef", + "code": "GBP", + "id": "30b62176-6a9e-4a51-b2f0-7ce6c80a461a" + }, + "formatted": { + "tax": "£4.51", + "withTax": "£26.00", + "withoutTax": "£21.49" + }, + "tax": 4.51, + "withTax": 26.00, + "withoutTax": 21.49 + } + } + } + ], + "orderStatus": { + "$type": "OrderStatusRef", + "alias": "new", + "id": "37cd2c8f-48d8-4416-bb37-b2c7d7bb992f" + }, + "subtotalPrice": { + "value": { + "currency": { + "$type": "CurrencyRef", + "code": "GBP", + "id": "30b62176-6a9e-4a51-b2f0-7ce6c80a461a" + }, + "formatted": { + "tax": "£4.06", + "withTax": "£23.40", + "withoutTax": "£19.34" + }, + "tax": 4.06, + "withTax": 23.40, + "withoutTax": 19.34 + } + }, + "taxClass": { + "$type": "TaxClassRef", + "alias": "standard", + "id": "17a2eca0-d21f-462a-8915-8b2606661efd" + }, + "totalPrice": { + "value": { + "currency": { + "$type": "CurrencyRef", + "code": "GBP", + "id": "30b62176-6a9e-4a51-b2f0-7ce6c80a461a" + }, + "formatted": { + "tax": "£5.80", + "withTax": "£33.40", + "withoutTax": "£27.60" + }, + "tax": 5.80, + "withTax": 33.40, + "withoutTax": 27.60 + } + }, + "totalQuantity": 1, + "updateDate": "2023-07-06T14:20:26.1939545" +} +``` + +We can pass a `fields` query parameter to limit the response to only return that field we are interested in: + +**Request** + +```http +GET /umbraco/commerce/storefront/api/v1/order/af697207-d370-4aee-824c-15711d43a9f2?fields=totalQuantity +``` + +**Response** + +```json +{ + "id": "832b2f79-915c-49dd-a20a-01891c4edd7c", + "totalQuantity": 1 +} +``` + +When using the `fields` query parameter to limit fields returned, `id` properties will always be included. + +Inline with the expansion feature, the `fields` paramter can also retrieve multiple fields, and nested fields using comma seperate values and the `[...]` syntax. + +**Request** + +```http +GET /umbraco/commerce/storefront/api/v1/order/af697207-d370-4aee-824c-15711d43a9f2?fields=totalQuantity,orderLines[sku,quantity] +``` + +**Response** + +```json +{ + "id": "832b2f79-915c-49dd-a20a-01891c4edd7c", + "orderLines": [ + { + "id": "e9ec1305-1844-4a72-a343-01891c4f09d8", + "quantity": 1, + "sku": "GP002" + } + ], + "totalQuantity": 1 +} +``` + +
+ +## Endpoints + +The Storefront API is broken down into a number of endpoints grouped by resource type. Select a resource type below to review the available endpoints. + +{% content-ref url="endpoints/order.md" %} +[order.md](endpoints/order.md) +{% endcontent-ref %} + +{% content-ref url="endpoints/checkout.md" %} +[checkout.md](endpoints/checkout.md) +{% endcontent-ref %} + +{% content-ref url="endpoints/product.md" %} +[product.md](endpoints/product.md) +{% endcontent-ref %} + +{% content-ref url="endpoints/customer.md" %} +[customer.md](endpoints/customer.md) +{% endcontent-ref %} + +{% content-ref url="endpoints/store.md" %} +[store.md](endpoints/store.md) +{% endcontent-ref %} + +{% content-ref url="endpoints/currency.md" %} +[currency.md](endpoints/currency.md) +{% endcontent-ref %} + +{% content-ref url="endpoints/country.md" %} +[country.md](endpoints/country.md) +{% endcontent-ref %} + +{% content-ref url="endpoints/payment-method.md" %} +[payment-method.md](endpoints/payment-method.md) +{% endcontent-ref %} + +{% content-ref url="endpoints/shipping-method.md" %} +[shipping-method.md](endpoints/shipping-method.md) +{% endcontent-ref %} + +{% content-ref url="endpoints/content.md" %} +[content.md](endpoints/content.md) +{% endcontent-ref %} + +## Swagger UI + +You can access a Swagger document for the Storefront API at `{yourdomain}/umbraco/swagger`, selecting `Umbraco Commerce Storefront API` from the definitions dropdown in the top right. From here you can see a full list of supported APIs, the parameters they accept and the expected payloads and responses. + +![Storefront API Swagger](../../media/uc\_storefront\_api\_swagger.png) + +## Value Converters + +As Umbraco Commerce uses content nodes as products, the Storefront API comes with some replacement value converters that automatically extend the default value converter functionality to return Storefront entities when accessed through the Content Delivery API. You don't need to do anything to enable these. + +* **Store Picker** - Returns a Store "Reference" by default, or a complete Store response object if the store picker property is being expanded. +* **Store Entity Picker** - Returns an entity "Reference" by default, or a complete entity response object if the store entity picker property is being expanded. +* **Price** - Returns a price for the product based on session information passed through in headers. See the ["Session" concept detailed above](./#concepts). +* **Stock** - Returns the stock level of the given product. +* **Variants** - See notes on the [variants value converter](./#variants-value-converter) below. + +### Variants Value Converter + +To help with common scenarios when working with variants, the Variants value converter will return a series of data items used when building a relevant UI. + +```json +{ + attributes: [ + { + alias: "color", + name: "Color", + values: [ + { + alias: "red", + name: "Red" + }, + { + alias: "blue", + name: "Blue" + } + ] + }, + { + alias: "size", + name: "Size", + values: [ + { + alias: "md", + name: "Medium" + }, + { + alias: "lg", + name: "Large" + } + ] + } + ], + items: [ + { + attributes: { + color: red, + size: md + }, + isDefault: true, + content: { } + }, + { + attributes: { + color: blue, + size: lg + }, + isDefault: false, + content: { } + } + ], + variantContentUrl: "https://{your_domain}/umbraco/delivery/api/v1/content/item/8df5c8bd-b524-4513-805a-c119fc8090e3/variant" +} +``` + +* `attributes` will contain a list of "in use" attributes which means there is at least one variant content item that makes use of that attribute. These should be used to build the attribute options UI. +* `items` returns a list of variant items. By default, this will return the attribute combinations, and whether it is the default combination but its content value will be empty. The content value can be populated by expanding the variants property through the Delivery API, however, it's important to know this could return a lot of data and be intensive. Instead, it is preferred to return the non-expanded value and use the `variantContentUrl` to fetch individual content items as they are requested. The `items` collection should also be used to check if a combination exists as whilst the root level `attributes` collection contains all in-use attributes, it doesn't mean every possible combination of those attributes exists so you can use the `items` collection to validate a combination. +* `variantContentUrl` as the URL to a specialized Delivery API route that can return a single variant item content based on a passed-in attribute combination. diff --git a/14/umbraco-commerce/reference/storefront-api/endpoints/README.md b/14/umbraco-commerce/reference/storefront-api/endpoints/README.md new file mode 100644 index 00000000000..97a1a9a3114 --- /dev/null +++ b/14/umbraco-commerce/reference/storefront-api/endpoints/README.md @@ -0,0 +1,43 @@ +# Storefront API Endpoints + +The Storefront API is broken down into a number endpoints of grouped by resource type. Select a resource type below to review the available endpoints. + +{% content-ref url="order.md" %} +[Order](order.md) +{% endcontent-ref %} + +{% content-ref url="checkout.md" %} +[Checkout](checkout.md) +{% endcontent-ref %} + +{% content-ref url="product.md" %} +[Product](product.md) +{% endcontent-ref %} + +{% content-ref url="customer.md" %} +[Customer](customer.md) +{% endcontent-ref %} + +{% content-ref url="store.md" %} +[Store](store.md) +{% endcontent-ref %} + +{% content-ref url="currency.md" %} +[Currency](currency.md) +{% endcontent-ref %} + +{% content-ref url="country.md" %} +[Country](country.md) +{% endcontent-ref %} + +{% content-ref url="payment-method.md" %} +[Payment Method](payment-method.md) +{% endcontent-ref %} + +{% content-ref url="shipping-method.md" %} +[Shipping Method](shipping-method.md) +{% endcontent-ref %} + +{% content-ref url="content.md" %} +[Content](content.md) +{% endcontent-ref %} \ No newline at end of file diff --git a/14/umbraco-commerce/reference/storefront-api/endpoints/checkout.md b/14/umbraco-commerce/reference/storefront-api/endpoints/checkout.md new file mode 100644 index 00000000000..69320d69687 --- /dev/null +++ b/14/umbraco-commerce/reference/storefront-api/endpoints/checkout.md @@ -0,0 +1,27 @@ +# Checkout Endpoints + +The checkout endpoints provide ways of performing a checkout process against an Order. The Storefront API supports two ways of checking out an order, one using hosted checkout pages, and a more advanced option for inline payment processing. + +## Hosted + +With the hosted checkout flow it is required that before redirecting to the payment gateway a checkout token should be generated. This token is passed to the pay endpoint to ensure that only the given order can be processed in response to the checkout request. The pay endpoint should be launched in a WebView/iframe with this token which will redirect to the given Orders payment gateway for payment capture. To determine the outcome of the payment developers should monitor the WebView/iframes URL. They will be redirected to the same pay endpoint URL with either a `/completed`, `/canceled` or `/errored` suffix. + +{% swagger src="../../../.gitbook/assets/storefront_swagger.json" path="/umbraco/commerce/storefront/api/v1/checkout/{orderId}/token" method="get" %} +[storefront_swagger.json](../../../.gitbook/assets/storefront_swagger.json) +{% endswagger %} + +{% swagger src="../../../.gitbook/assets/storefront_swagger.json" path="/umbraco/commerce/storefront/api/v1/checkout/{orderId}/pay/{token}" method="get" %} +[storefront_swagger.json](../../../.gitbook/assets/storefront_swagger.json) +{% endswagger %} + +## Inline + +With the inline checkout flow, it is left to the implementing developer to perform payment capture. Before a capture can begin, the order should be initialized using the `initialize` endpoint which prepares the Order for capture. The `initialize` endpoint will return the settings of the Orders selected payment method, along with details of expected metadata needed by the payment provider. Developers can use this data to perform an inline capture and call the `confirm` endpoint when the capture is successful, passing back any metadata captured. + +{% swagger src="../../../.gitbook/assets/storefront_swagger.json" path="/umbraco/commerce/storefront/api/v1/checkout/{orderId}/initialize" method="get" %} +[storefront_swagger.json](../../../.gitbook/assets/storefront_swagger.json) +{% endswagger %} + +{% swagger src="../../../.gitbook/assets/storefront_swagger.json" path="/umbraco/commerce/storefront/api/v1/checkout/{orderId}/confirm" method="post" %} +[storefront_swagger.json](../../../.gitbook/assets/storefront_swagger.json) +{% endswagger %} \ No newline at end of file diff --git a/14/umbraco-commerce/reference/storefront-api/endpoints/content.md b/14/umbraco-commerce/reference/storefront-api/endpoints/content.md new file mode 100644 index 00000000000..378f116863d --- /dev/null +++ b/14/umbraco-commerce/reference/storefront-api/endpoints/content.md @@ -0,0 +1,7 @@ +# Content Endpoints + +The content endpoints provide additional endpoints to the Umbraco Content Delivery API to help with fetching product related content. + +{% swagger src="../../../.gitbook/assets/storefront_swagger.json" path="/umbraco/delivery/api/v1/content/item/{id}/variant" method="get" %} +[storefront_swagger.json](../../../.gitbook/assets/storefront_swagger.json) +{% endswagger %} \ No newline at end of file diff --git a/14/umbraco-commerce/reference/storefront-api/endpoints/country.md b/14/umbraco-commerce/reference/storefront-api/endpoints/country.md new file mode 100644 index 00000000000..a808cd95bb7 --- /dev/null +++ b/14/umbraco-commerce/reference/storefront-api/endpoints/country.md @@ -0,0 +1,31 @@ +# Country Endpoints + +The Country API endpoints allow fetching supported countries and their allowed currencies, payment methods and shipping methods from a store. + +{% swagger src="../../../.gitbook/assets/storefront_swagger.json" path="/umbraco/commerce/storefront/api/v1/countries" method="get" %} +[storefront_swagger.json](../../../.gitbook/assets/storefront_swagger.json) +{% endswagger %} + +{% swagger src="../../../.gitbook/assets/storefront_swagger.json" path="/umbraco/commerce/storefront/api/v1/country/{idOrAlias}" method="get" %} +[storefront_swagger.json](../../../.gitbook/assets/storefront_swagger.json) +{% endswagger %} + +{% swagger src="../../../.gitbook/assets/storefront_swagger.json" path="/umbraco/commerce/storefront/api/v1/country/{idOrAlias}/currencies" method="get" %} +[storefront_swagger.json](../../../.gitbook/assets/storefront_swagger.json) +{% endswagger %} + +{% swagger src="../../../.gitbook/assets/storefront_swagger.json" path="/umbraco/commerce/storefront/api/v1/country/{idOrAlias}/paymentmethods" method="get" %} +[storefront_swagger.json](../../../.gitbook/assets/storefront_swagger.json) +{% endswagger %} + +{% swagger src="../../../.gitbook/assets/storefront_swagger.json" path="/umbraco/commerce/storefront/api/v1/country/{idOrAlias}/shippingmethods" method="get" %} +[storefront_swagger.json](../../../.gitbook/assets/storefront_swagger.json) +{% endswagger %} + +{% swagger src="../../../.gitbook/assets/storefront_swagger.json" path="/umbraco/commerce/storefront/api/v1/country/{countryIdOrAlias}/region/{regionIdOrAlias}/paymentmethods" method="get" %} +[storefront_swagger.json](../../../.gitbook/assets/storefront_swagger.json) +{% endswagger %} + +{% swagger src="../../../.gitbook/assets/storefront_swagger.json" path="/umbraco/commerce/storefront/api/v1/country/{countryIdOrAlias}/region/{regionIdOrAlias}/paymentmethods" method="get" %} +[storefront_swagger.json](../../../.gitbook/assets/storefront_swagger.json) +{% endswagger %} \ No newline at end of file diff --git a/14/umbraco-commerce/reference/storefront-api/endpoints/currency.md b/14/umbraco-commerce/reference/storefront-api/endpoints/currency.md new file mode 100644 index 00000000000..81476377282 --- /dev/null +++ b/14/umbraco-commerce/reference/storefront-api/endpoints/currency.md @@ -0,0 +1,11 @@ +# Currency Endpoints + +The Currency API endpoints allow fetching supported currencies from a store. + +{% swagger src="../../../.gitbook/assets/storefront_swagger.json" path="/umbraco/commerce/storefront/api/v1/currencies" method="get" %} +[storefront_swagger.json](../../../.gitbook/assets/storefront_swagger.json) +{% endswagger %} + +{% swagger src="../../../.gitbook/assets/storefront_swagger.json" path="/umbraco/commerce/storefront/api/v1/currency/{idOrAlias}" method="get" %} +[storefront_swagger.json](../../../.gitbook/assets/storefront_swagger.json) +{% endswagger %} \ No newline at end of file diff --git a/14/umbraco-commerce/reference/storefront-api/endpoints/customer.md b/14/umbraco-commerce/reference/storefront-api/endpoints/customer.md new file mode 100644 index 00000000000..f62eb46d2b9 --- /dev/null +++ b/14/umbraco-commerce/reference/storefront-api/endpoints/customer.md @@ -0,0 +1,7 @@ +# Customer Endpoints + +The Customer API endpoints allow fetching all orders associated with a customer. + +{% swagger src="../../../.gitbook/assets/storefront_swagger.json" path="/umbraco/commerce/storefront/api/v1/customer/{customerReferenceOrEmail}/orders" method="get" %} +[storefront_swagger.json](../../../.gitbook/assets/storefront_swagger.json) +{% endswagger %} \ No newline at end of file diff --git a/14/umbraco-commerce/reference/storefront-api/endpoints/order.md b/14/umbraco-commerce/reference/storefront-api/endpoints/order.md new file mode 100644 index 00000000000..0ede104e2c8 --- /dev/null +++ b/14/umbraco-commerce/reference/storefront-api/endpoints/order.md @@ -0,0 +1,59 @@ +# Order Endpoints + +The Order endpoints are where you will manage your carts/orders and perform cart management functionality. Some examples are adding items to the cart, or setting up billing and shipping details. + +{% swagger src="../../../.gitbook/assets/storefront_swagger.json" path="/umbraco/commerce/storefront/api/v1/orders" method="post" %} +[storefront_swagger.json](../../../.gitbook/assets/storefront_swagger.json) +{% endswagger %} + +{% swagger src="../../../.gitbook/assets/storefront_swagger.json" path="/umbraco/commerce/storefront/api/v1/order/{orderId}" method="get" %} +[storefront_swagger.json](../../../.gitbook/assets/storefront_swagger.json) +{% endswagger %} + +{% swagger src="../../../.gitbook/assets/storefront_swagger.json" path="/umbraco/commerce/storefront/api/v1/order/{orderId}" method="patch" %} +[storefront_swagger.json](../../../.gitbook/assets/storefront_swagger.json) +{% endswagger %} + +{% swagger src="../../../.gitbook/assets/storefront_swagger.json" path="/umbraco/commerce/storefront/api/v1/order/{orderId}" method="delete" %} +[storefront_swagger.json](../../../.gitbook/assets/storefront_swagger.json) +{% endswagger %} + +{% swagger src="../../../.gitbook/assets/storefront_swagger.json" path="/umbraco/commerce/storefront/api/v1/order/{orderId}" method="post" %} +[storefront_swagger.json](../../../.gitbook/assets/storefront_swagger.json) +{% endswagger %} + +{% swagger src="../../../.gitbook/assets/storefront_swagger.json" path="/umbraco/commerce/storefront/api/v1/order/{orderId}/items" method="patch" %} +[storefront_swagger.json](../../../.gitbook/assets/storefront_swagger.json) +{% endswagger %} + +{% swagger src="../../../.gitbook/assets/storefront_swagger.json" path="/umbraco/commerce/storefront/api/v1/order/{orderId}/items" method="delete" %} +[storefront_swagger.json](../../../.gitbook/assets/storefront_swagger.json) +{% endswagger %} + +{% swagger src="../../../.gitbook/assets/storefront_swagger.json" path="/umbraco/commerce/storefront/api/v1/order/{orderId}/item/{orderLineId}" method="patch" %} +[storefront_swagger.json](../../../.gitbook/assets/storefront_swagger.json) +{% endswagger %} + +{% swagger src="../../../.gitbook/assets/storefront_swagger.json" path="/umbraco/commerce/storefront/api/v1/order/{orderId}/item/{orderLineId}" method="delete"%} +[storefront_swagger.json](../../../.gitbook/assets/storefront_swagger.json) +{% endswagger %} + +{% swagger src="../../../.gitbook/assets/storefront_swagger.json" path="/umbraco/commerce/storefront/api/v1/order/{orderId}/bundle/{bundleId}" method="post" %} +[storefront_swagger.json](../../../.gitbook/assets/storefront_swagger.json) +{% endswagger %} + +{% swagger src="../../../.gitbook/assets/storefront_swagger.json" path="/umbraco/commerce/storefront/api/v1/order/{orderId}/bundle/{bundleId}/items" method="patch" %} +[storefront_swagger.json](../../../.gitbook/assets/storefront_swagger.json) +{% endswagger %} + +{% swagger src="../../../.gitbook/assets/storefront_swagger.json" path="/umbraco/commerce/storefront/api/v1/order/{orderId}/bundle/{bundleId}/items" method="delete" %} +[storefront_swagger.json](../../../.gitbook/assets/storefront_swagger.json) +{% endswagger %} + +{% swagger src="../../../.gitbook/assets/storefront_swagger.json" path="/umbraco/commerce/storefront/api/v1/order/{orderId}/bundle/{bundleId}/item/{orderLineId}" method="patch" %} +[storefront_swagger.json](../../../.gitbook/assets/storefront_swagger.json) +{% endswagger %} + +{% swagger src="../../../.gitbook/assets/storefront_swagger.json" path="/umbraco/commerce/storefront/api/v1/order/{orderId}/bundle/{bundleId}/item/{orderLineId}" method="delete" %} +[storefront_swagger.json](../../../.gitbook/assets/storefront_swagger.json) +{% endswagger %} \ No newline at end of file diff --git a/14/umbraco-commerce/reference/storefront-api/endpoints/payment-method.md b/14/umbraco-commerce/reference/storefront-api/endpoints/payment-method.md new file mode 100644 index 00000000000..3b35fff07c1 --- /dev/null +++ b/14/umbraco-commerce/reference/storefront-api/endpoints/payment-method.md @@ -0,0 +1,11 @@ +# Payment Method Endpoints + +The Payment Method API endpoints allow fetching supported payment methods from a store. + +{% swagger src="../../../.gitbook/assets/storefront_swagger.json" path="/umbraco/commerce/storefront/api/v1/paymentmethods" method="get" %} +[storefront_swagger.json](../../../.gitbook/assets/storefront_swagger.json) +{% endswagger %} + +{% swagger src="../../../.gitbook/assets/storefront_swagger.json" path="/umbraco/commerce/storefront/api/v1/paymentmethod/{idOrAlias}" method="get" %} +[storefront_swagger.json](../../../.gitbook/assets/storefront_swagger.json) +{% endswagger %} \ No newline at end of file diff --git a/14/umbraco-commerce/reference/storefront-api/endpoints/product.md b/14/umbraco-commerce/reference/storefront-api/endpoints/product.md new file mode 100644 index 00000000000..4505b5edac3 --- /dev/null +++ b/14/umbraco-commerce/reference/storefront-api/endpoints/product.md @@ -0,0 +1,7 @@ +# Product Endpoints + +The Product API endpoints allow fetching essential product related data such as pricing and stock levels. + +{% swagger src="../../../.gitbook/assets/storefront_swagger.json" path="/umbraco/commerce/storefront/api/v1/products" method="get" %} +[storefront_swagger.json](../../../.gitbook/assets/storefront_swagger.json) +{% endswagger %} \ No newline at end of file diff --git a/14/umbraco-commerce/reference/storefront-api/endpoints/shipping-method.md b/14/umbraco-commerce/reference/storefront-api/endpoints/shipping-method.md new file mode 100644 index 00000000000..b5375e9cc39 --- /dev/null +++ b/14/umbraco-commerce/reference/storefront-api/endpoints/shipping-method.md @@ -0,0 +1,11 @@ +# Shipping Method Endpoints + +The Shipping Method API endpoints allow fetching supported shipping methods from a store. + +{% swagger src="../../../.gitbook/assets/storefront_swagger.json" path="/umbraco/commerce/storefront/api/v1/shippingmethods" method="get" %} +[storefront_swagger.json](../../../.gitbook/assets/storefront_swagger.json) +{% endswagger %} + +{% swagger src="../../../.gitbook/assets/storefront_swagger.json" path="/umbraco/commerce/storefront/api/v1/shippingmethod/{idOrAlias}" method="get" %} +[storefront_swagger.json](../../../.gitbook/assets/storefront_swagger.json) +{% endswagger %} \ No newline at end of file diff --git a/14/umbraco-commerce/reference/storefront-api/endpoints/store.md b/14/umbraco-commerce/reference/storefront-api/endpoints/store.md new file mode 100644 index 00000000000..a1c2aa879f3 --- /dev/null +++ b/14/umbraco-commerce/reference/storefront-api/endpoints/store.md @@ -0,0 +1,7 @@ +# Store Endpoints + +The Store API endpoints allow fetching supported store details. + +{% swagger src="../../../.gitbook/assets/storefront_swagger.json" path="/umbraco/commerce/storefront/api/v1/store/{idOrAlias}" method="get" %} +[storefront_swagger.json](../../../.gitbook/assets/storefront_swagger.json) +{% endswagger %} \ No newline at end of file diff --git a/14/umbraco-commerce/reference/stores/README.md b/14/umbraco-commerce/reference/stores/README.md new file mode 100644 index 00000000000..50c8a0025eb --- /dev/null +++ b/14/umbraco-commerce/reference/stores/README.md @@ -0,0 +1,197 @@ +--- +description: Information on Umbraco Commerce Stores +--- + +# Stores + +Stores represent a single shop / commercial entity and contain all the settings a configuration specific to that particular store. They are the root entity from which all other Umbraco Commerce entities are connected. They are also able to be linked to content nodes to connect a store to a site. + +## Store Settings + +General settings for a store can be accessed via the UI by clicking on a store node in the `Settings > Commerce` section. + +### General + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameDescription
Base CurrencyDefines the base currency a store operates in and for which all order values will be converted for the basis of reporting and analytics.
Default LocationDefines the main location of the store and is used by shipping calculators to work out shipping rates.
Default CountryDefines the default country of the store and is used to set the default payment/shipping country of newly created orders.
Default Order StatusDefines the order status to assign newly created orders to.
Error Order StatusDefines the order status to assign orders to when an error occurs during order processing.
Measurement SystemDefines whether to use a Metric or Imperial measurement system when capturing product measurement.
Prices Include TaxDefines whether all prices entered into the system are inclusive or exclusive of tax.
Use CookiesDefines whether cookies should be used for tracking a customers current order, allowing them to last between browser sessions.
Cookie TimeoutIf using cookies, defines the length of time in minutes the cookie should be persisted for.
+ +### Notification Settings + + + + + + + + + + + + + + + + + + +
NameDescription
Confirmation EmailDefines the email to send to customers when an order is successfully completed.
Error EmailDefines the email to send to customers when an error occurs completing their order.
+ +### Order Settings + + + + + + + + + + + + + + + + + + + + + + +
NameDescription
Cart Number TemplateDefines a string formatting template to use when generating a Cart Number, eg: 'CART-{0}'.
Order Number TemplateDefines a string formatting template to use when generating an Order Number, eg: 'ORDER-{0}'.
Order Rounding MethodDefines At what level in the order calculation process prices should be rounded. Can be either `Unit` where prices are rounded at the item level, `Line` where prices are rounded at the order line level after quantity multiplication or `Total` where prices are rounded at the order total level.
+ +### Product Settings + + + + + + + + + + + + + + + + + + + +
NameDescription
Product Property AliasesDefines a comma-separated list of property aliases to be copied to the order line when added to the cart. See the [Properties concept documentation](../../key-concepts/properties.md#automatic-properties) for more details.
Product Uniqueness Property AliasesDefines a comma-separated list of property aliases to be used to define product uniqueness. See the [Properties concept documentation](../../key-concepts/properties.md#product-uniqueness-properties) for more details.
+ +### Gift Card Settings + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameDescription
Code LengthDefines the length of a gift card code when auto-generated.
Code TemplateDefines a string formatting template to use when auto-generating a gift card code, eg: 'GIFTCARD-{0}'.
Valid ForDefines the number of days gift cards should be valid for by default.
Gift Card Property AliasesDefines a comma-separated list of property aliases to be copied to the gift card from the order line.
Activation MethodDefines the method by which gift cards become active. Can be `Manual` where the store owner must manually active the gift card, `Automatic` where the gift card automatically becomes active after purchase or `Order Status` where the gift card becomes active when the purchase order moves into a specific order status.
Activation Order StatusWhen the activation method is `Order Status`, it defines the order status that activates the gift card.
Default Gift Card EmailDefines the email to be sent to customers if an order contains a gift card item.
+ +## Store Configuration + +Further store configuration can be achieved by setting up different categories of configuration that can be accessed as child nodes to the store node. + +The available configuration options are: + +* **Locations** - Defines different locations for a store. See [Locations reference documentation](../locations/README.md) for more details. +* **Order Statuses** - Defines the order statuses to be used by a store. +* **Shipping Methods** - Defines the different shipping options available in the store. See [Shipping reference documentation](../shipping/README.md) for more details. +* **Payment Methods** - Defines the different payment options available in the store. +* **Countries** - Defines the different shipping countries supported by the store. +* **Currencies** - Defines the different currencies accepted by the store. +* **Taxes** - Defines the different rates supported by the store. +* **Templating** - Defines the different email, print, and export templates available to the store. + +## Store Permissions + +When editing a store, the permissions app allows you to control who can access the store management interface. The options are: + +* **User Groups** - A set of toggles to allow/deny access to members of a particular user group. +* **Users** - A set of toggles to allow/deny access to explicit individuals. + +In both cases, a positive access control will always override a deny control setting. \ No newline at end of file diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/README.md new file mode 100644 index 00000000000..02c142d2964 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/README.md @@ -0,0 +1,14 @@ +--- +title: Umbraco.Commerce.Cms.Startup +description: API reference for Umbraco.Commerce.Cms.Startup in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Startup assembly + +| Namespace | +| --- | +| [Umbraco.Commerce.Cms](umbraco-commerce-cms/README.md) | +| [Umbraco.Commerce.Cms.Composing](umbraco-commerce-cms-composing/README.md) | +| [Umbraco.Commerce.Cms.Events.Notification.Handlers](umbraco-commerce-cms-events-notification-handlers/README.md) | +| [Umbraco.Commerce.Extensions](umbraco-commerce-extensions/README.md) | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-composing/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-composing/README.md new file mode 100644 index 00000000000..1d121f2d57a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-composing/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Cms.Composing +description: API reference for Umbraco.Commerce.Cms.Composing in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Composing namespace + +| Public Type | Description | +| --- | --- | +| class [UmbracoCommerceAssemblyProvider](umbracocommerceassemblyprovider.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-composing/umbracocommerceassemblyprovider.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-composing/umbracocommerceassemblyprovider.md new file mode 100644 index 00000000000..d1af065a390 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-composing/umbracocommerceassemblyprovider.md @@ -0,0 +1,32 @@ +--- +title: UmbracoCommerceAssemblyProvider +description: API reference for UmbracoCommerceAssemblyProvider in Umbraco Commerce +--- +## UmbracoCommerceAssemblyProvider + +```csharp +public class UmbracoCommerceAssemblyProvider +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Composing](README.md) + +### Constructors + +#### UmbracoCommerceAssemblyProvider + +```csharp +public UmbracoCommerceAssemblyProvider(ILoggerFactory loggerFactory) +``` + + +### Properties + +#### Assemblies + +```csharp +public IEnumerable Assemblies { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-events-notification-handlers/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-events-notification-handlers/README.md new file mode 100644 index 00000000000..6ec54afe721 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-events-notification-handlers/README.md @@ -0,0 +1,20 @@ +--- +title: Umbraco.Commerce.Cms.Events.Notification.Handlers +description: API reference for Umbraco.Commerce.Cms.Events.Notification.Handlers in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Events.Notification.Handlers namespace + +| Public Type | Description | +| --- | --- | +| class [ConvertUmbracoCommerceVariantsEditorToContentApp](convertumbracocommercevariantseditortocontentapp.md) | | +| class [InjectUmbracoCommerceServerVariables](injectumbracocommerceservervariables.md) | | +| class [OptimizeUmbracoCommerceVariantsEditorExamineValues](optimizeumbracocommercevariantseditorexaminevalues.md) | | +| class [RegisterUmbracoCommerceCacheRefreshers](registerumbracocommercecacherefreshers.md) | | +| class [RunUmbracoCommerceMigrations](runumbracocommercemigrations.md) | | +| class [SynchronizeUmbracoCommerceVarientsEditorOnCopy](synchronizeumbracocommercevarientseditoroncopy.md) | | +| class [SynchronizeUmbracoCommerceVarientsEditorOnMove](synchronizeumbracocommercevarientseditoronmove.md) | | +| class [SynchronizeUmbracoCommerceVarientsEditorOnSave](synchronizeumbracocommercevarientseditoronsave.md) | | +| class [SynchronizeUmbracoStockOnSaved](synchronizeumbracostockonsaved.md) | | +| class [SynchronizeUmbracoStockOnSaving](synchronizeumbracostockonsaving.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-events-notification-handlers/convertumbracocommercevariantseditortocontentapp.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-events-notification-handlers/convertumbracocommercevariantseditortocontentapp.md new file mode 100644 index 00000000000..a58c5e8cf1e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-events-notification-handlers/convertumbracocommercevariantseditortocontentapp.md @@ -0,0 +1,34 @@ +--- +title: ConvertUmbracoCommerceVariantsEditorToContentApp +description: API reference for ConvertUmbracoCommerceVariantsEditorToContentApp in Umbraco Commerce +--- +## ConvertUmbracoCommerceVariantsEditorToContentApp + +```csharp +public class ConvertUmbracoCommerceVariantsEditorToContentApp : + INotificationHandler +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Events.Notification.Handlers](README.md) + +### Constructors + +#### ConvertUmbracoCommerceVariantsEditorToContentApp + +```csharp +public ConvertUmbracoCommerceVariantsEditorToContentApp( + UmbracoCommerceVariantsPropertyEditorToContentAppConverter converter) +``` + + +### Methods + +#### Handle + +```csharp +public void Handle(SendingContentNotification notification) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-events-notification-handlers/injectumbracocommerceservervariables.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-events-notification-handlers/injectumbracocommerceservervariables.md new file mode 100644 index 00000000000..315218e96f9 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-events-notification-handlers/injectumbracocommerceservervariables.md @@ -0,0 +1,34 @@ +--- +title: InjectUmbracoCommerceServerVariables +description: API reference for InjectUmbracoCommerceServerVariables in Umbraco Commerce +--- +## InjectUmbracoCommerceServerVariables + +```csharp +public class InjectUmbracoCommerceServerVariables : + INotificationHandler +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Events.Notification.Handlers](README.md) + +### Constructors + +#### InjectUmbracoCommerceServerVariables + +```csharp +public InjectUmbracoCommerceServerVariables( + UmbracoCommerceServerVariablesInjector serverVariablesInjector) +``` + + +### Methods + +#### Handle + +```csharp +public void Handle(ServerVariablesParsingNotification notification) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-events-notification-handlers/optimizeumbracocommercevariantseditorexaminevalues.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-events-notification-handlers/optimizeumbracocommercevariantseditorexaminevalues.md new file mode 100644 index 00000000000..f52eec927a7 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-events-notification-handlers/optimizeumbracocommercevariantseditorexaminevalues.md @@ -0,0 +1,34 @@ +--- +title: OptimizeUmbracoCommerceVariantsEditorExamineValues +description: API reference for OptimizeUmbracoCommerceVariantsEditorExamineValues in Umbraco Commerce +--- +## OptimizeUmbracoCommerceVariantsEditorExamineValues + +```csharp +public class OptimizeUmbracoCommerceVariantsEditorExamineValues : + INotificationHandler +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Events.Notification.Handlers](README.md) + +### Constructors + +#### OptimizeUmbracoCommerceVariantsEditorExamineValues + +```csharp +public OptimizeUmbracoCommerceVariantsEditorExamineValues(IExamineManager examineManager, + UmbracoCommerceVariantsEditorExamineValueOptimizer optimizer) +``` + + +### Methods + +#### Handle + +```csharp +public void Handle(UmbracoApplicationStartingNotification notification) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-events-notification-handlers/registerumbracocommercecacherefreshers.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-events-notification-handlers/registerumbracocommercecacherefreshers.md new file mode 100644 index 00000000000..c4de80261cf --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-events-notification-handlers/registerumbracocommercecacherefreshers.md @@ -0,0 +1,33 @@ +--- +title: RegisterUmbracoCommerceCacheRefreshers +description: API reference for RegisterUmbracoCommerceCacheRefreshers in Umbraco Commerce +--- +## RegisterUmbracoCommerceCacheRefreshers + +```csharp +public class RegisterUmbracoCommerceCacheRefreshers : + INotificationHandler +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Events.Notification.Handlers](README.md) + +### Constructors + +#### RegisterUmbracoCommerceCacheRefreshers + +```csharp +public RegisterUmbracoCommerceCacheRefreshers(UmbracoCommerceCacheRefresherRegistrar registrar) +``` + + +### Methods + +#### Handle + +```csharp +public void Handle(UmbracoApplicationStartingNotification notification) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-events-notification-handlers/runumbracocommercemigrations.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-events-notification-handlers/runumbracocommercemigrations.md new file mode 100644 index 00000000000..8201cb8978d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-events-notification-handlers/runumbracocommercemigrations.md @@ -0,0 +1,34 @@ +--- +title: RunUmbracoCommerceMigrations +description: API reference for RunUmbracoCommerceMigrations in Umbraco Commerce +--- +## RunUmbracoCommerceMigrations + +```csharp +public class RunUmbracoCommerceMigrations : + INotificationHandler +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Events.Notification.Handlers](README.md) + +### Constructors + +#### RunUmbracoCommerceMigrations + +```csharp +public RunUmbracoCommerceMigrations(IRuntimeState runtimeState, + IUmbracoCommerceMigrationsRunner migrationRunner) +``` + + +### Methods + +#### Handle + +```csharp +public void Handle(UmbracoApplicationStartingNotification notification) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-events-notification-handlers/synchronizeumbracocommercevarientseditoroncopy.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-events-notification-handlers/synchronizeumbracocommercevarientseditoroncopy.md new file mode 100644 index 00000000000..357c85123e2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-events-notification-handlers/synchronizeumbracocommercevarientseditoroncopy.md @@ -0,0 +1,33 @@ +--- +title: SynchronizeUmbracoCommerceVarientsEditorOnCopy +description: API reference for SynchronizeUmbracoCommerceVarientsEditorOnCopy in Umbraco Commerce +--- +## SynchronizeUmbracoCommerceVarientsEditorOnCopy + +```csharp +public class SynchronizeUmbracoCommerceVarientsEditorOnCopy : + INotificationHandler +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Events.Notification.Handlers](README.md) + +### Constructors + +#### SynchronizeUmbracoCommerceVarientsEditorOnCopy + +```csharp +public SynchronizeUmbracoCommerceVarientsEditorOnCopy(VariantsEditorSynchronizer sync) +``` + + +### Methods + +#### Handle + +```csharp +public void Handle(ContentCopyingNotification notification) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-events-notification-handlers/synchronizeumbracocommercevarientseditoronmove.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-events-notification-handlers/synchronizeumbracocommercevarientseditoronmove.md new file mode 100644 index 00000000000..78cc4b1d643 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-events-notification-handlers/synchronizeumbracocommercevarientseditoronmove.md @@ -0,0 +1,33 @@ +--- +title: SynchronizeUmbracoCommerceVarientsEditorOnMove +description: API reference for SynchronizeUmbracoCommerceVarientsEditorOnMove in Umbraco Commerce +--- +## SynchronizeUmbracoCommerceVarientsEditorOnMove + +```csharp +public class SynchronizeUmbracoCommerceVarientsEditorOnMove : + INotificationHandler +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Events.Notification.Handlers](README.md) + +### Constructors + +#### SynchronizeUmbracoCommerceVarientsEditorOnMove + +```csharp +public SynchronizeUmbracoCommerceVarientsEditorOnMove(VariantsEditorSynchronizer sync) +``` + + +### Methods + +#### Handle + +```csharp +public void Handle(ContentMovingNotification notification) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-events-notification-handlers/synchronizeumbracocommercevarientseditoronsave.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-events-notification-handlers/synchronizeumbracocommercevarientseditoronsave.md new file mode 100644 index 00000000000..e6cd3bcc537 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-events-notification-handlers/synchronizeumbracocommercevarientseditoronsave.md @@ -0,0 +1,33 @@ +--- +title: SynchronizeUmbracoCommerceVarientsEditorOnSave +description: API reference for SynchronizeUmbracoCommerceVarientsEditorOnSave in Umbraco Commerce +--- +## SynchronizeUmbracoCommerceVarientsEditorOnSave + +```csharp +public class SynchronizeUmbracoCommerceVarientsEditorOnSave : + INotificationHandler +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Events.Notification.Handlers](README.md) + +### Constructors + +#### SynchronizeUmbracoCommerceVarientsEditorOnSave + +```csharp +public SynchronizeUmbracoCommerceVarientsEditorOnSave(VariantsEditorSynchronizer sync) +``` + + +### Methods + +#### Handle + +```csharp +public void Handle(ContentSavingNotification notification) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-events-notification-handlers/synchronizeumbracostockonsaved.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-events-notification-handlers/synchronizeumbracostockonsaved.md new file mode 100644 index 00000000000..8fa5bcdf5ee --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-events-notification-handlers/synchronizeumbracostockonsaved.md @@ -0,0 +1,32 @@ +--- +title: SynchronizeUmbracoStockOnSaved +description: API reference for SynchronizeUmbracoStockOnSaved in Umbraco Commerce +--- +## SynchronizeUmbracoStockOnSaved + +```csharp +public class SynchronizeUmbracoStockOnSaved : INotificationHandler +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Events.Notification.Handlers](README.md) + +### Constructors + +#### SynchronizeUmbracoStockOnSaved + +```csharp +public SynchronizeUmbracoStockOnSaved(IContentService contentService, UmbracoStockSynchronizer sync) +``` + + +### Methods + +#### Handle + +```csharp +public void Handle(ContentSavedNotification notification) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-events-notification-handlers/synchronizeumbracostockonsaving.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-events-notification-handlers/synchronizeumbracostockonsaving.md new file mode 100644 index 00000000000..5c84183836a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms-events-notification-handlers/synchronizeumbracostockonsaving.md @@ -0,0 +1,32 @@ +--- +title: SynchronizeUmbracoStockOnSaving +description: API reference for SynchronizeUmbracoStockOnSaving in Umbraco Commerce +--- +## SynchronizeUmbracoStockOnSaving + +```csharp +public class SynchronizeUmbracoStockOnSaving : INotificationHandler +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Events.Notification.Handlers](README.md) + +### Constructors + +#### SynchronizeUmbracoStockOnSaving + +```csharp +public SynchronizeUmbracoStockOnSaving(UmbracoStockSynchronizer sync) +``` + + +### Methods + +#### Handle + +```csharp +public void Handle(ContentSavingNotification notification) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms/README.md new file mode 100644 index 00000000000..137d6984c98 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms/README.md @@ -0,0 +1,12 @@ +--- +title: Umbraco.Commerce.Cms +description: API reference for Umbraco.Commerce.Cms in Umbraco Commerce +--- +## Umbraco.Commerce.Cms namespace + +| Public Type | Description | +| --- | --- | +| class [UmbracoCommerceComponent](umbracocommercecomponent.md) | | +| class [UmbracoCommerceComposer](umbracocommercecomposer.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms/umbracocommercecomponent.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms/umbracocommercecomponent.md new file mode 100644 index 00000000000..404d2f69c48 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms/umbracocommercecomponent.md @@ -0,0 +1,41 @@ +--- +title: UmbracoCommerceComponent +description: API reference for UmbracoCommerceComponent in Umbraco Commerce +--- +## UmbracoCommerceComponent + +```csharp +public class UmbracoCommerceComponent : IComponent +``` + +**Namespace** +* [Umbraco.Commerce.Cms](README.md) + +### Constructors + +#### UmbracoCommerceComponent + +```csharp +public UmbracoCommerceComponent(IFactory factory) +``` + + +### Methods + +#### Initialize + +```csharp +public void Initialize() +``` + + +--- + +#### Terminate + +```csharp +public void Terminate() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms/umbracocommercecomposer.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms/umbracocommercecomposer.md new file mode 100644 index 00000000000..7ddf63a01cb --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-cms/umbracocommercecomposer.md @@ -0,0 +1,34 @@ +--- +title: UmbracoCommerceComposer +description: API reference for UmbracoCommerceComposer in Umbraco Commerce +--- +## UmbracoCommerceComposer + +```csharp +public class UmbracoCommerceComposer : IComposer +``` + +**Namespace** +* [Umbraco.Commerce.Cms](README.md) + +### Constructors + +#### UmbracoCommerceComposer + +The default constructor. + +```csharp +public UmbracoCommerceComposer() +``` + + +### Methods + +#### Compose + +```csharp +public void Compose(IUmbracoBuilder builder) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-extensions/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-extensions/README.md new file mode 100644 index 00000000000..06e537381af --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-extensions/README.md @@ -0,0 +1,12 @@ +--- +title: Umbraco.Commerce.Extensions +description: API reference for Umbraco.Commerce.Extensions in Umbraco Commerce +--- +## Umbraco.Commerce.Extensions namespace + +| Public Type | Description | +| --- | --- | +| static class [CompositionExtensions](compositionextensions.md) | | +| static class [UmbracoCommerceUmbracoBuilderExtensions](umbracocommerceumbracobuilderextensions.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-extensions/compositionextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-extensions/compositionextensions.md new file mode 100644 index 00000000000..beb138dbb77 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-extensions/compositionextensions.md @@ -0,0 +1,14 @@ +--- +title: CompositionExtensions +description: API reference for CompositionExtensions in Umbraco Commerce +--- +## CompositionExtensions + +```csharp +public static class CompositionExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-extensions/umbracocommerceumbracobuilderextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-extensions/umbracocommerceumbracobuilderextensions.md new file mode 100644 index 00000000000..6afc3edd828 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-startup/umbraco-commerce-extensions/umbracocommerceumbracobuilderextensions.md @@ -0,0 +1,25 @@ +--- +title: UmbracoCommerceUmbracoBuilderExtensions +description: API reference for UmbracoCommerceUmbracoBuilderExtensions in Umbraco Commerce +--- +## UmbracoCommerceUmbracoBuilderExtensions + +```csharp +public static class UmbracoCommerceUmbracoBuilderExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + +### Methods + +#### AddUmbracoCommerce + +```csharp +public static IUmbracoBuilder AddUmbracoCommerce(this IUmbracoBuilder builder, + Action config = null, + Action defaultOptions = null) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/README.md new file mode 100644 index 00000000000..1c5c1e8c4bc --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/README.md @@ -0,0 +1,24 @@ +--- +title: Umbraco.Commerce.Cms.Web +description: API reference for Umbraco.Commerce.Cms.Web in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Web assembly + +| Namespace | +| --- | +| [Umbraco.Commerce.Cms.Web](umbraco-commerce-cms-web/README.md) | +| [Umbraco.Commerce.Cms.Web.ActionResults](umbraco-commerce-cms-web-actionresults/README.md) | +| [Umbraco.Commerce.Cms.Web.ContentEditing](umbraco-commerce-cms-web-contentediting/README.md) | +| [Umbraco.Commerce.Cms.Web.Controllers](umbraco-commerce-cms-web-controllers/README.md) | +| [Umbraco.Commerce.Cms.Web.Events.Notification](umbraco-commerce-cms-web-events-notification/README.md) | +| [Umbraco.Commerce.Cms.Web.Filters](umbraco-commerce-cms-web-filters/README.md) | +| [Umbraco.Commerce.Cms.Web.IO](umbraco-commerce-cms-web-io/README.md) | +| [Umbraco.Commerce.Cms.Web.Models](umbraco-commerce-cms-web-models/README.md) | +| [Umbraco.Commerce.Cms.Web.Models.Mappers](umbraco-commerce-cms-web-models-mappers/README.md) | +| [Umbraco.Commerce.Cms.Web.Models.Reporting](umbraco-commerce-cms-web-models-reporting/README.md) | +| [Umbraco.Commerce.Cms.Web.Mvc](umbraco-commerce-cms-web-mvc/README.md) | +| [Umbraco.Commerce.Cms.Web.Routing](umbraco-commerce-cms-web-routing/README.md) | +| [Umbraco.Commerce.Cms.Web.Sections](umbraco-commerce-cms-web-sections/README.md) | +| [Umbraco.Commerce.Cms.Web.Trees](umbraco-commerce-cms-web-trees/README.md) | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-actionresults/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-actionresults/README.md new file mode 100644 index 00000000000..f2f2ea8b43e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-actionresults/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Cms.Web.ActionResults +description: API reference for Umbraco.Commerce.Cms.Web.ActionResults in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Web.ActionResults namespace + +| Public Type | Description | +| --- | --- | +| class [ValidationErrorResult](validationerrorresult.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-actionresults/validationerrorresult.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-actionresults/validationerrorresult.md new file mode 100644 index 00000000000..a7823a73551 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-actionresults/validationerrorresult.md @@ -0,0 +1,40 @@ +--- +title: ValidationErrorResult +description: API reference for ValidationErrorResult in Umbraco Commerce +--- +## ValidationErrorResult + +```csharp +public class ValidationErrorResult : ObjectResult +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.ActionResults](README.md) + +### Constructors + +#### ValidationErrorResult (1 of 2) + +```csharp +public ValidationErrorResult(HttpRequest request, object value) +``` + +--- + +#### ValidationErrorResult (2 of 2) + +```csharp +public ValidationErrorResult(HttpRequest request, string errorMessage) +``` + + +### Methods + +#### OnFormatting + +```csharp +public override void OnFormatting(ActionContext context) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-contentediting/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-contentediting/README.md new file mode 100644 index 00000000000..4d41b34a41d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-contentediting/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Cms.Web.ContentEditing +description: API reference for Umbraco.Commerce.Cms.Web.ContentEditing in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Web.ContentEditing namespace + +| Public Type | Description | +| --- | --- | +| class [UmbracoCommerceVariantsPropertyEditorToContentAppConverter](umbracocommercevariantspropertyeditortocontentappconverter.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-contentediting/umbracocommercevariantspropertyeditortocontentappconverter.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-contentediting/umbracocommercevariantspropertyeditortocontentappconverter.md new file mode 100644 index 00000000000..b5b9586e881 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-contentediting/umbracocommercevariantspropertyeditortocontentappconverter.md @@ -0,0 +1,34 @@ +--- +title: UmbracoCommerceVariantsPropertyEditorToContentAppConverter +description: API reference for UmbracoCommerceVariantsPropertyEditorToContentAppConverter in Umbraco Commerce +--- +## UmbracoCommerceVariantsPropertyEditorToContentAppConverter + +```csharp +public class UmbracoCommerceVariantsPropertyEditorToContentAppConverter +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.ContentEditing](README.md) + +### Constructors + +#### UmbracoCommerceVariantsPropertyEditorToContentAppConverter + +The default constructor. + +```csharp +public UmbracoCommerceVariantsPropertyEditorToContentAppConverter() +``` + + +### Methods + +#### Convert + +```csharp +public void Convert(ContentItemDisplay model) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/README.md new file mode 100644 index 00000000000..3e072eeba82 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/README.md @@ -0,0 +1,40 @@ +--- +title: Umbraco.Commerce.Cms.Web.Controllers +description: API reference for Umbraco.Commerce.Cms.Web.Controllers in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Web.Controllers namespace + +| Public Type | Description | +| --- | --- | +| class [DictionarySearchDto](dictionarysearchdto.md) | | +| class [UmbracoCommerceActivityLogController](umbracocommerceactivitylogcontroller.md) | | +| class [UmbracoCommerceAnalyticsController](umbracocommerceanalyticscontroller.md) | | +| abstract class [UmbracoCommerceAuthorizedJsonControllerBase](umbracocommerceauthorizedjsoncontrollerbase.md) | | +| class [UmbracoCommerceCartController](umbracocommercecartcontroller.md) | | +| class [UmbracoCommerceCountryController](umbracocommercecountrycontroller.md) | | +| class [UmbracoCommerceCultureController](umbracocommerceculturecontroller.md) | | +| class [UmbracoCommerceCurrencyController](umbracocommercecurrencycontroller.md) | | +| class [UmbracoCommerceDictionaryController](umbracocommercedictionarycontroller.md) | | +| class [UmbracoCommerceDiscountController](umbracocommercediscountcontroller.md) | | +| class [UmbracoCommerceEmailController](umbracocommerceemailcontroller.md) | | +| class [UmbracoCommerceEmailTemplateController](umbracocommerceemailtemplatecontroller.md) | | +| class [UmbracoCommerceEntityController](umbracocommerceentitycontroller.md) | | +| class [UmbracoCommerceExportController](umbracocommerceexportcontroller.md) | | +| class [UmbracoCommerceExportTemplateController](umbracocommerceexporttemplatecontroller.md) | | +| class [UmbracoCommerceGiftCardController](umbracocommercegiftcardcontroller.md) | | +| class [UmbracoCommerceOrderController](umbracocommerceordercontroller.md) | | +| abstract class [UmbracoCommerceOrderControllerBase](umbracocommerceordercontrollerbase.md) | | +| class [UmbracoCommerceOrderStatusController](umbracocommerceorderstatuscontroller.md) | | +| class [UmbracoCommercePaymentController](umbracocommercepaymentcontroller.md) | | +| class [UmbracoCommercePaymentMethodController](umbracocommercepaymentmethodcontroller.md) | | +| class [UmbracoCommercePrintController](umbracocommerceprintcontroller.md) | | +| class [UmbracoCommercePrintTemplateController](umbracocommerceprinttemplatecontroller.md) | | +| class [UmbracoCommerceProductAttributeController](umbracocommerceproductattributecontroller.md) | | +| class [UmbracoCommerceProductController](umbracocommerceproductcontroller.md) | | +| class [UmbracoCommerceShippingMethodController](umbracocommerceshippingmethodcontroller.md) | | +| class [UmbracoCommerceStoreController](umbracocommercestorecontroller.md) | | +| class [UmbracoCommerceTagController](umbracocommercetagcontroller.md) | | +| class [UmbracoCommerceTaxController](umbracocommercetaxcontroller.md) | | +| class [UmbracoCommerceUtilsController](umbracocommerceutilscontroller.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/dictionarysearchdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/dictionarysearchdto.md new file mode 100644 index 00000000000..5579b6fb216 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/dictionarysearchdto.md @@ -0,0 +1,52 @@ +--- +title: DictionarySearchDto +description: API reference for DictionarySearchDto in Umbraco Commerce +--- +## DictionarySearchDto + +```csharp +public class DictionarySearchDto +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Controllers](README.md) + +### Constructors + +#### DictionarySearchDto + +The default constructor. + +```csharp +public DictionarySearchDto() +``` + + +### Properties + +#### MaxItems + +```csharp +public int MaxItems { get; set; } +``` + + +--- + +#### ParentKey + +```csharp +public string ParentKey { get; set; } +``` + + +--- + +#### SearchKey + +```csharp +public string SearchKey { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceactivitylogcontroller.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceactivitylogcontroller.md new file mode 100644 index 00000000000..e90f983f16a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceactivitylogcontroller.md @@ -0,0 +1,47 @@ +--- +title: UmbracoCommerceActivityLogController +description: API reference for UmbracoCommerceActivityLogController in Umbraco Commerce +--- +## UmbracoCommerceActivityLogController + +```csharp +public class UmbracoCommerceActivityLogController : UmbracoCommerceAuthorizedJsonControllerBase +``` + +**Inheritance** + +* Class [UmbracoCommerceAuthorizedJsonControllerBase](umbracocommerceauthorizedjsoncontrollerbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Controllers](README.md) + +### Constructors + +#### UmbracoCommerceActivityLogController + +```csharp +public UmbracoCommerceActivityLogController(IBackOfficeSecurityAccessor backOfficeSecurityAccesor, + UmbracoCommerceContext ctx, IUserHelper userHelper) +``` + + +### Methods + +#### GetActivityLogs + +```csharp +public IActionResult GetActivityLogs(Guid storeId, long currentPage = 1, long itemsPerPage = 10) +``` + + +--- + +#### GetActivityLogsByEntity + +```csharp +public IActionResult GetActivityLogsByEntity(Guid entityId, string entityType, + long currentPage = 1, long itemsPerPage = 10) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceanalyticscontroller.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceanalyticscontroller.md new file mode 100644 index 00000000000..eed1f9d0877 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceanalyticscontroller.md @@ -0,0 +1,104 @@ +--- +title: UmbracoCommerceAnalyticsController +description: API reference for UmbracoCommerceAnalyticsController in Umbraco Commerce +--- +## UmbracoCommerceAnalyticsController + +```csharp +public class UmbracoCommerceAnalyticsController : UmbracoCommerceAuthorizedJsonControllerBase +``` + +**Inheritance** + +* Class [UmbracoCommerceAuthorizedJsonControllerBase](umbracocommerceauthorizedjsoncontrollerbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Controllers](README.md) + +### Constructors + +#### UmbracoCommerceAnalyticsController + +```csharp +public UmbracoCommerceAnalyticsController( + IUmbracoCommerceConfigFileProviderFactory umbracoCommerceConfigFileProviderFactory, + IBackOfficeSecurityAccessor backOfficeSecurityAccesor, UmbracoCommerceContext ctx) +``` + + +### Methods + +#### GetAnalyticsDashboardConfig + +```csharp +public IActionResult GetAnalyticsDashboardConfig(Guid storeId) +``` + + +--- + +#### GetAverageOrderValueReport + +```csharp +public IActionResult GetAverageOrderValueReport(Guid storeId, DateTime from, DateTime to, + DateTime? compareFrom = default(DateTime?), DateTime? compareTo = default(DateTime?), + int localTimezoneOffset = 0) +``` + + +--- + +#### GetCartConversionRatesReport + +```csharp +public IActionResult GetCartConversionRatesReport(Guid storeId, DateTime from, DateTime to, + DateTime? compareFrom = default(DateTime?), DateTime? compareTo = default(DateTime?), + int localTimezoneOffset = 0) +``` + + +--- + +#### GetRepeatCustomerRatesReport + +```csharp +public IActionResult GetRepeatCustomerRatesReport(Guid storeId, DateTime from, DateTime to, + DateTime? compareFrom = default(DateTime?), DateTime? compareTo = default(DateTime?), + int localTimezoneOffset = 0) +``` + + +--- + +#### GetTopSellingProductsReport + +```csharp +public IActionResult GetTopSellingProductsReport(Guid storeId, DateTime from, DateTime to, + DateTime? compareFrom = default(DateTime?), DateTime? compareTo = default(DateTime?), + int localTimezoneOffset = 0) +``` + + +--- + +#### GetTotalOrdersReport + +```csharp +public IActionResult GetTotalOrdersReport(Guid storeId, DateTime from, DateTime to, + DateTime? compareFrom = default(DateTime?), DateTime? compareTo = default(DateTime?), + int localTimezoneOffset = 0) +``` + + +--- + +#### GetTotalRevenueReport + +```csharp +public IActionResult GetTotalRevenueReport(Guid storeId, DateTime from, DateTime to, + DateTime? compareFrom = default(DateTime?), DateTime? compareTo = default(DateTime?), + int localTimezoneOffset = 0) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceauthorizedjsoncontrollerbase.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceauthorizedjsoncontrollerbase.md new file mode 100644 index 00000000000..ef7f3fafca2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceauthorizedjsoncontrollerbase.md @@ -0,0 +1,23 @@ +--- +title: UmbracoCommerceAuthorizedJsonControllerBase +description: API reference for UmbracoCommerceAuthorizedJsonControllerBase in Umbraco Commerce +--- +## UmbracoCommerceAuthorizedJsonControllerBase + +```csharp +public abstract class UmbracoCommerceAuthorizedJsonControllerBase : UmbracoAuthorizedJsonController +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Controllers](README.md) + +### Methods + +#### Dummy + +```csharp +public bool Dummy() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommercecartcontroller.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommercecartcontroller.md new file mode 100644 index 00000000000..5e0b47ae256 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommercecartcontroller.md @@ -0,0 +1,120 @@ +--- +title: UmbracoCommerceCartController +description: API reference for UmbracoCommerceCartController in Umbraco Commerce +--- +## UmbracoCommerceCartController + +```csharp +public class UmbracoCommerceCartController : UmbracoCommerceOrderControllerBase +``` + +**Inheritance** + +* Class [UmbracoCommerceOrderControllerBase](umbracocommerceordercontrollerbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Controllers](README.md) + +### Constructors + +#### UmbracoCommerceCartController + +```csharp +public UmbracoCommerceCartController( + IUmbracoCommerceConfigFileProviderFactory commerceConfigFileProviderFactory, + IBackOfficeSecurityAccessor backOfficeSecurityAccesor, UmbracoCommerceContext ctx, + CartAdvancedFilterCollection advancedFilters) +``` + + +### Methods + +#### CalculateCart + +```csharp +public IActionResult CalculateCart(CartSaveDto cart) +``` + + +--- + +#### CreateCart + +```csharp +public IActionResult CreateCart(Guid storeId, string languageIsoCode, Guid currencyId) +``` + + +--- + +#### DeleteCart + +```csharp +public IActionResult DeleteCart(Guid cartId) +``` + + +--- + +#### GetCart + +```csharp +public IActionResult GetCart(Guid cartId) +``` + + +--- + +#### GetCartAdvancedFilters + +```csharp +public IActionResult GetCartAdvancedFilters() +``` + + +--- + +#### GetCartEditorConfig + +```csharp +public IActionResult GetCartEditorConfig(Guid storeId) +``` + + +--- + +#### GetCartEmailConfig + +```csharp +public IActionResult GetCartEmailConfig(Guid cartId) +``` + + +--- + +#### GetCartListConfig + +```csharp +public IActionResult GetCartListConfig(Guid storeId) +``` + + +--- + +#### SaveCart + +```csharp +public IActionResult SaveCart(CartSaveDto cart) +``` + + +--- + +#### SearchCarts + +```csharp +public IActionResult SearchCarts(CartSearchDto model) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommercecountrycontroller.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommercecountrycontroller.md new file mode 100644 index 00000000000..613e935cf65 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommercecountrycontroller.md @@ -0,0 +1,145 @@ +--- +title: UmbracoCommerceCountryController +description: API reference for UmbracoCommerceCountryController in Umbraco Commerce +--- +## UmbracoCommerceCountryController + +```csharp +public class UmbracoCommerceCountryController : UmbracoCommerceAuthorizedJsonControllerBase +``` + +**Inheritance** + +* Class [UmbracoCommerceAuthorizedJsonControllerBase](umbracocommerceauthorizedjsoncontrollerbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Controllers](README.md) + +### Constructors + +#### UmbracoCommerceCountryController + +```csharp +public UmbracoCommerceCountryController(IBackOfficeSecurityAccessor backOfficeSecurityAccesor, + UmbracoCommerceContext ctx) +``` + + +### Methods + +#### CreateAllCountryRegions + +```csharp +public IActionResult CreateAllCountryRegions(Guid storeId, Guid defaultCurrencyId) +``` + + +--- + +#### CreateCountry + +```csharp +public IActionResult CreateCountry(Guid storeId) +``` + + +--- + +#### CreateRegion + +```csharp +public IActionResult CreateRegion(Guid storeId, Guid countryId) +``` + + +--- + +#### DeleteCountry + +```csharp +public IActionResult DeleteCountry(Guid countryId) +``` + + +--- + +#### DeleteRegion + +```csharp +public IActionResult DeleteRegion(Guid regionId) +``` + + +--- + +#### GetCountries + +```csharp +public IActionResult GetCountries(Guid storeId) +``` + + +--- + +#### GetCountriesWithRegions + +```csharp +public IActionResult GetCountriesWithRegions(Guid storeId) +``` + + +--- + +#### GetCountry + +```csharp +public IActionResult GetCountry(Guid countryId) +``` + + +--- + +#### GetIso3166CountryRegions + +```csharp +public IActionResult GetIso3166CountryRegions() +``` + + +--- + +#### GetRegion + +```csharp +public IActionResult GetRegion(Guid regionId) +``` + + +--- + +#### GetRegions + +```csharp +public IActionResult GetRegions(Guid storeId, Guid? countryId) +``` + + +--- + +#### SaveCountry + +```csharp +public IActionResult SaveCountry(CountrySaveDto country) +``` + + +--- + +#### SaveRegion + +```csharp +public IActionResult SaveRegion(RegionSaveDto region) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceculturecontroller.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceculturecontroller.md new file mode 100644 index 00000000000..721df47f373 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceculturecontroller.md @@ -0,0 +1,37 @@ +--- +title: UmbracoCommerceCultureController +description: API reference for UmbracoCommerceCultureController in Umbraco Commerce +--- +## UmbracoCommerceCultureController + +```csharp +public class UmbracoCommerceCultureController : UmbracoCommerceAuthorizedJsonControllerBase +``` + +**Inheritance** + +* Class [UmbracoCommerceAuthorizedJsonControllerBase](umbracocommerceauthorizedjsoncontrollerbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Controllers](README.md) + +### Constructors + +#### UmbracoCommerceCultureController + +```csharp +public UmbracoCommerceCultureController(IBackOfficeSecurityAccessor backOfficeSecurityAccesor, + UmbracoCommerceContext ctx) +``` + + +### Methods + +#### GetCultures + +```csharp +public IActionResult GetCultures() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommercecurrencycontroller.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommercecurrencycontroller.md new file mode 100644 index 00000000000..8725d6542d9 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommercecurrencycontroller.md @@ -0,0 +1,73 @@ +--- +title: UmbracoCommerceCurrencyController +description: API reference for UmbracoCommerceCurrencyController in Umbraco Commerce +--- +## UmbracoCommerceCurrencyController + +```csharp +public class UmbracoCommerceCurrencyController : UmbracoCommerceAuthorizedJsonControllerBase +``` + +**Inheritance** + +* Class [UmbracoCommerceAuthorizedJsonControllerBase](umbracocommerceauthorizedjsoncontrollerbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Controllers](README.md) + +### Constructors + +#### UmbracoCommerceCurrencyController + +```csharp +public UmbracoCommerceCurrencyController(IBackOfficeSecurityAccessor backOfficeSecurityAccesor, + UmbracoCommerceContext ctx) +``` + + +### Methods + +#### CreateCurrency + +```csharp +public IActionResult CreateCurrency(Guid storeId) +``` + + +--- + +#### DeleteCurrency + +```csharp +public IActionResult DeleteCurrency(Guid currencyId) +``` + + +--- + +#### GetCurrencies + +```csharp +public IActionResult GetCurrencies(Guid storeId) +``` + + +--- + +#### GetCurrency + +```csharp +public IActionResult GetCurrency(Guid currencyId) +``` + + +--- + +#### SaveCurrency + +```csharp +public IActionResult SaveCurrency(CurrencySaveDto currency) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommercedictionarycontroller.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommercedictionarycontroller.md new file mode 100644 index 00000000000..53fee66e13f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommercedictionarycontroller.md @@ -0,0 +1,91 @@ +--- +title: UmbracoCommerceDictionaryController +description: API reference for UmbracoCommerceDictionaryController in Umbraco Commerce +--- +## UmbracoCommerceDictionaryController + +```csharp +public class UmbracoCommerceDictionaryController : UmbracoCommerceAuthorizedJsonControllerBase +``` + +**Inheritance** + +* Class [UmbracoCommerceAuthorizedJsonControllerBase](umbracocommerceauthorizedjsoncontrollerbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Controllers](README.md) + +### Constructors + +#### UmbracoCommerceDictionaryController + +```csharp +public UmbracoCommerceDictionaryController(IBackOfficeSecurityAccessor backOfficeSecurityAccesor, + ILocalizationService localizationService, UmbracoCommerceContext ctx) +``` + + +### Methods + +#### CreateDictionaryItem + +```csharp +public IActionResult CreateDictionaryItem(int parentId, string key) +``` + + +--- + +#### EnsureRootDictionaryItem + +```csharp +public IActionResult EnsureRootDictionaryItem(string key) +``` + + +--- + +#### GetDictionaryItemById + +```csharp +public IActionResult GetDictionaryItemById(int id) +``` + + +--- + +#### GetDictionaryItemByKey + +```csharp +public IActionResult GetDictionaryItemByKey(string key) +``` + + +--- + +#### SaveDictionaryItem + +```csharp +public IActionResult SaveDictionaryItem(DictionarySave dictionary) +``` + + +--- + +#### SearchKeys + +```csharp +public IActionResult SearchKeys(DictionarySearchDto model) +``` + + +--- + +#### TryGetDictionaryItemIdByKey + +```csharp +public IActionResult TryGetDictionaryItemIdByKey(string key) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommercediscountcontroller.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommercediscountcontroller.md new file mode 100644 index 00000000000..3b1bccb6edb --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommercediscountcontroller.md @@ -0,0 +1,109 @@ +--- +title: UmbracoCommerceDiscountController +description: API reference for UmbracoCommerceDiscountController in Umbraco Commerce +--- +## UmbracoCommerceDiscountController + +```csharp +public class UmbracoCommerceDiscountController : UmbracoCommerceAuthorizedJsonControllerBase +``` + +**Inheritance** + +* Class [UmbracoCommerceAuthorizedJsonControllerBase](umbracocommerceauthorizedjsoncontrollerbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Controllers](README.md) + +### Constructors + +#### UmbracoCommerceDiscountController + +```csharp +public UmbracoCommerceDiscountController(IBackOfficeSecurityAccessor backOfficeSecurityAccesor, + UmbracoCommerceContext ctx) +``` + + +### Methods + +#### CreateDiscount + +```csharp +public IActionResult CreateDiscount(Guid storeId) +``` + + +--- + +#### DeleteDiscount + +```csharp +public IActionResult DeleteDiscount(Guid discountId) +``` + + +--- + +#### GetDiscount + +```csharp +public IActionResult GetDiscount(Guid discountId) +``` + + +--- + +#### GetDiscountRewardProviderDefinitions + +```csharp +public IActionResult GetDiscountRewardProviderDefinitions() +``` + + +--- + +#### GetDiscountRewardProviderScaffold + +```csharp +public IActionResult GetDiscountRewardProviderScaffold(string discountRewardProviderAlias) +``` + + +--- + +#### GetDiscountRuleProviderDefinitions + +```csharp +public IActionResult GetDiscountRuleProviderDefinitions() +``` + + +--- + +#### GetDiscountRuleProviderScaffold + +```csharp +public IActionResult GetDiscountRuleProviderScaffold(string discountRuleProviderAlias) +``` + + +--- + +#### GetDiscounts + +```csharp +public IActionResult GetDiscounts(Guid storeId) +``` + + +--- + +#### SaveDiscount + +```csharp +public IActionResult SaveDiscount(DiscountSaveDto discount) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceemailcontroller.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceemailcontroller.md new file mode 100644 index 00000000000..b85100e6c14 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceemailcontroller.md @@ -0,0 +1,55 @@ +--- +title: UmbracoCommerceEmailController +description: API reference for UmbracoCommerceEmailController in Umbraco Commerce +--- +## UmbracoCommerceEmailController + +```csharp +public class UmbracoCommerceEmailController : UmbracoCommerceAuthorizedJsonControllerBase +``` + +**Inheritance** + +* Class [UmbracoCommerceAuthorizedJsonControllerBase](umbracocommerceauthorizedjsoncontrollerbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Controllers](README.md) + +### Constructors + +#### UmbracoCommerceEmailController + +```csharp +public UmbracoCommerceEmailController(IBackOfficeSecurityAccessor backOfficeSecurityAccesor, + UmbracoCommerceContext ctx) +``` + + +### Methods + +#### SendDiscountEmail + +```csharp +public IActionResult SendDiscountEmail(SendDiscountEmailDto dto) +``` + + +--- + +#### SendGiftCardEmail + +```csharp +public IActionResult SendGiftCardEmail(SendGiftCardEmailDto dto) +``` + + +--- + +#### SendOrderEmail + +```csharp +public IActionResult SendOrderEmail(SendOrderEmailDto dto) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceemailtemplatecontroller.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceemailtemplatecontroller.md new file mode 100644 index 00000000000..0441cdb26f7 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceemailtemplatecontroller.md @@ -0,0 +1,82 @@ +--- +title: UmbracoCommerceEmailTemplateController +description: API reference for UmbracoCommerceEmailTemplateController in Umbraco Commerce +--- +## UmbracoCommerceEmailTemplateController + +```csharp +public class UmbracoCommerceEmailTemplateController : UmbracoCommerceAuthorizedJsonControllerBase +``` + +**Inheritance** + +* Class [UmbracoCommerceAuthorizedJsonControllerBase](umbracocommerceauthorizedjsoncontrollerbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Controllers](README.md) + +### Constructors + +#### UmbracoCommerceEmailTemplateController + +```csharp +public UmbracoCommerceEmailTemplateController( + IBackOfficeSecurityAccessor backOfficeSecurityAccesor, UmbracoCommerceContext ctx) +``` + + +### Methods + +#### CreateEmailTemplate + +```csharp +public IActionResult CreateEmailTemplate(Guid storeId) +``` + + +--- + +#### DeleteEmailTemplate + +```csharp +public IActionResult DeleteEmailTemplate(Guid emailTemplateId) +``` + + +--- + +#### GetEmailTemplate + +```csharp +public IActionResult GetEmailTemplate(Guid emailTemplateId) +``` + + +--- + +#### GetEmailTemplateCount + +```csharp +public IActionResult GetEmailTemplateCount(Guid storeId, TemplateCategory? category = null) +``` + + +--- + +#### GetEmailTemplates + +```csharp +public IActionResult GetEmailTemplates(Guid storeId, TemplateCategory? category = null) +``` + + +--- + +#### SaveEmailTemplate + +```csharp +public IActionResult SaveEmailTemplate(EmailTemplateSaveDto emailTemplate) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceentitycontroller.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceentitycontroller.md new file mode 100644 index 00000000000..1a413e8f226 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceentitycontroller.md @@ -0,0 +1,74 @@ +--- +title: UmbracoCommerceEntityController +description: API reference for UmbracoCommerceEntityController in Umbraco Commerce +--- +## UmbracoCommerceEntityController + +```csharp +public class UmbracoCommerceEntityController : UmbracoCommerceAuthorizedJsonControllerBase +``` + +**Inheritance** + +* Class [UmbracoCommerceAuthorizedJsonControllerBase](umbracocommerceauthorizedjsoncontrollerbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Controllers](README.md) + +### Constructors + +#### UmbracoCommerceEntityController + +```csharp +public UmbracoCommerceEntityController(IBackOfficeSecurityAccessor backOfficeSecurityAccesor, + UmbracoCommerceContext ctx) +``` + + +### Methods + +#### DeleteEntity + +```csharp +public IActionResult DeleteEntity(string entityType, Guid entityId) +``` + + +--- + +#### GetEntities + +```csharp +public IActionResult GetEntities(string entityType, Guid? storeId = default(Guid?), + Guid? parentId = default(Guid?)) +``` + + +--- + +#### GetEntity + +```csharp +public IActionResult GetEntity(string entityType, Guid entityId) +``` + + +--- + +#### GetStoreByEntityId + +```csharp +public IActionResult GetStoreByEntityId(string entityType, Guid entityId) +``` + + +--- + +#### SortEntities + +```csharp +public IActionResult SortEntities(SortEntitiesPostDto model) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceexportcontroller.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceexportcontroller.md new file mode 100644 index 00000000000..83966f129f1 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceexportcontroller.md @@ -0,0 +1,88 @@ +--- +title: UmbracoCommerceExportController +description: API reference for UmbracoCommerceExportController in Umbraco Commerce +--- +## UmbracoCommerceExportController + +```csharp +public class UmbracoCommerceExportController : UmbracoController +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Controllers](README.md) + +### Constructors + +#### UmbracoCommerceExportController + +```csharp +public UmbracoCommerceExportController(UmbracoCommerceContext ctx, ITemplateEngine templateEngine) +``` + + +### Methods + +#### Export + +```csharp +public ActionResult Export(ExportPostModel model) +``` + + +### Classes + +#### UmbracoCommerceExportController.ExportPostModel + +```csharp +public class ExportPostModel +``` + +##### Constructors + +#### UmbracoCommerceExportController.ExportPostModel + +The default constructor. + +```csharp +public ExportPostModel() +``` + + +##### Properties + +#### EntityIds + +```csharp +public Guid[] EntityIds { get; set; } +``` + + +--- + +#### EntityType + +```csharp +public string EntityType { get; set; } +``` + + +--- + +#### LanguageIsoCode + +```csharp +public string LanguageIsoCode { get; set; } +``` + + +--- + +#### TemplateIds + +```csharp +public Guid[] TemplateIds { get; set; } +``` + + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceexporttemplatecontroller.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceexporttemplatecontroller.md new file mode 100644 index 00000000000..52dc0b912ea --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceexporttemplatecontroller.md @@ -0,0 +1,82 @@ +--- +title: UmbracoCommerceExportTemplateController +description: API reference for UmbracoCommerceExportTemplateController in Umbraco Commerce +--- +## UmbracoCommerceExportTemplateController + +```csharp +public class UmbracoCommerceExportTemplateController : UmbracoCommerceAuthorizedJsonControllerBase +``` + +**Inheritance** + +* Class [UmbracoCommerceAuthorizedJsonControllerBase](umbracocommerceauthorizedjsoncontrollerbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Controllers](README.md) + +### Constructors + +#### UmbracoCommerceExportTemplateController + +```csharp +public UmbracoCommerceExportTemplateController( + IBackOfficeSecurityAccessor backOfficeSecurityAccesor, UmbracoCommerceContext ctx) +``` + + +### Methods + +#### CreateExportTemplate + +```csharp +public IActionResult CreateExportTemplate(Guid storeId) +``` + + +--- + +#### DeleteExportTemplate + +```csharp +public IActionResult DeleteExportTemplate(Guid exportTemplateId) +``` + + +--- + +#### GetExportTemplate + +```csharp +public IActionResult GetExportTemplate(Guid exportTemplateId) +``` + + +--- + +#### GetExportTemplateCount + +```csharp +public IActionResult GetExportTemplateCount(Guid storeId, TemplateCategory? category = null) +``` + + +--- + +#### GetExportTemplates + +```csharp +public IActionResult GetExportTemplates(Guid storeId, TemplateCategory? category = null) +``` + + +--- + +#### SaveExportTemplate + +```csharp +public IActionResult SaveExportTemplate(ExportTemplateSaveDto exportTemplate) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommercegiftcardcontroller.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommercegiftcardcontroller.md new file mode 100644 index 00000000000..cf917feed53 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommercegiftcardcontroller.md @@ -0,0 +1,91 @@ +--- +title: UmbracoCommerceGiftCardController +description: API reference for UmbracoCommerceGiftCardController in Umbraco Commerce +--- +## UmbracoCommerceGiftCardController + +```csharp +public class UmbracoCommerceGiftCardController : UmbracoCommerceAuthorizedJsonControllerBase +``` + +**Inheritance** + +* Class [UmbracoCommerceAuthorizedJsonControllerBase](umbracocommerceauthorizedjsoncontrollerbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Controllers](README.md) + +### Constructors + +#### UmbracoCommerceGiftCardController + +```csharp +public UmbracoCommerceGiftCardController(IBackOfficeSecurityAccessor backOfficeSecurityAccesor, + UmbracoCommerceContext ctx) +``` + + +### Methods + +#### CreateGiftCard + +```csharp +public IActionResult CreateGiftCard(Guid storeId) +``` + + +--- + +#### DeleteGiftCard + +```csharp +public IActionResult DeleteGiftCard(Guid giftCardId) +``` + + +--- + +#### GenerateGiftCardCode + +```csharp +public IActionResult GenerateGiftCardCode(Guid storeId) +``` + + +--- + +#### GetGiftCard + +```csharp +public IActionResult GetGiftCard(Guid giftCardId) +``` + + +--- + +#### GetGiftCards + +```csharp +public IActionResult GetGiftCards(Guid storeId) +``` + + +--- + +#### SaveGiftCard + +```csharp +public IActionResult SaveGiftCard(GiftCardSaveDto giftCard) +``` + + +--- + +#### SearchGiftCards + +```csharp +public IActionResult SearchGiftCards(GiftCardSearchDto model) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceordercontroller.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceordercontroller.md new file mode 100644 index 00000000000..3aa0aef8d3e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceordercontroller.md @@ -0,0 +1,174 @@ +--- +title: UmbracoCommerceOrderController +description: API reference for UmbracoCommerceOrderController in Umbraco Commerce +--- +## UmbracoCommerceOrderController + +```csharp +public class UmbracoCommerceOrderController : UmbracoCommerceOrderControllerBase +``` + +**Inheritance** + +* Class [UmbracoCommerceOrderControllerBase](umbracocommerceordercontrollerbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Controllers](README.md) + +### Constructors + +#### UmbracoCommerceOrderController + +```csharp +public UmbracoCommerceOrderController( + IUmbracoCommerceConfigFileProviderFactory commerceConfigFileProviderFactory, + IBackOfficeSecurityAccessor backOfficeSecurityAccesor, UmbracoCommerceContext ctx, + OrderAdvancedFilterCollection advancedFilters) +``` + + +### Methods + +#### CancelPayment + +```csharp +public Task CancelPayment(Guid orderId, CancellationToken cancellationToken) +``` + + +--- + +#### CapturePayment + +```csharp +public Task CapturePayment(Guid orderId, CancellationToken cancellationToken) +``` + + +--- + +#### ChangeOrderStatus + +```csharp +public IActionResult ChangeOrderStatus(Guid orderId, Guid orderStatusId) +``` + + +--- + +#### DeleteOrder + +```csharp +public IActionResult DeleteOrder(Guid orderId) +``` + + +--- + +#### GetOrder + +```csharp +public IActionResult GetOrder(Guid orderId) +``` + + +--- + +#### GetOrderAdvancedFilters + +```csharp +public IActionResult GetOrderAdvancedFilters() +``` + + +--- + +#### GetOrderEditorConfig + +```csharp +public IActionResult GetOrderEditorConfig(Guid storeId) +``` + + +--- + +#### GetOrderEmailConfig + +```csharp +public IActionResult GetOrderEmailConfig(Guid orderId) +``` + + +--- + +#### GetOrderHistoryByOrder + +```csharp +public IActionResult GetOrderHistoryByOrder(Guid orderId) +``` + + +--- + +#### GetOrderListConfig + +```csharp +public IActionResult GetOrderListConfig(Guid storeId) +``` + + +--- + +#### GetOrderRegisteredCustomerInfo + +```csharp +public IActionResult GetOrderRegisteredCustomerInfo(Guid orderId) +``` + + +--- + +#### GetOrderTransactionInfo + +```csharp +public IActionResult GetOrderTransactionInfo(Guid orderId) +``` + + +--- + +#### RefundPayment + +```csharp +public Task RefundPayment(Guid orderId, CancellationToken cancellationToken) +``` + + +--- + +#### SaveOrder + +```csharp +public IActionResult SaveOrder(OrderSaveDto order) +``` + + +--- + +#### SearchOrders + +```csharp +public IActionResult SearchOrders(OrderSearchDto model) +``` + + +--- + +#### SyncPaymentStatus + +```csharp +public Task SyncPaymentStatus(Guid orderId, CancellationToken cancellationToken) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceordercontrollerbase.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceordercontrollerbase.md new file mode 100644 index 00000000000..c4ad8bc46e3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceordercontrollerbase.md @@ -0,0 +1,30 @@ +--- +title: UmbracoCommerceOrderControllerBase +description: API reference for UmbracoCommerceOrderControllerBase in Umbraco Commerce +--- +## UmbracoCommerceOrderControllerBase + +```csharp +public abstract class UmbracoCommerceOrderControllerBase : + UmbracoCommerceAuthorizedJsonControllerBase +``` + +**Inheritance** + +* Class [UmbracoCommerceAuthorizedJsonControllerBase](umbracocommerceauthorizedjsoncontrollerbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Controllers](README.md) + +### Constructors + +#### UmbracoCommerceOrderControllerBase + +```csharp +public UmbracoCommerceOrderControllerBase( + IUmbracoCommerceConfigFileProviderFactory commerceConfigFileProviderFactory, + IBackOfficeSecurityAccessor backOfficeSecurityAccesor, UmbracoCommerceContext ctx) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceorderstatuscontroller.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceorderstatuscontroller.md new file mode 100644 index 00000000000..4f318a4886d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceorderstatuscontroller.md @@ -0,0 +1,73 @@ +--- +title: UmbracoCommerceOrderStatusController +description: API reference for UmbracoCommerceOrderStatusController in Umbraco Commerce +--- +## UmbracoCommerceOrderStatusController + +```csharp +public class UmbracoCommerceOrderStatusController : UmbracoCommerceAuthorizedJsonControllerBase +``` + +**Inheritance** + +* Class [UmbracoCommerceAuthorizedJsonControllerBase](umbracocommerceauthorizedjsoncontrollerbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Controllers](README.md) + +### Constructors + +#### UmbracoCommerceOrderStatusController + +```csharp +public UmbracoCommerceOrderStatusController(IBackOfficeSecurityAccessor backOfficeSecurityAccesor, + UmbracoCommerceContext ctx) +``` + + +### Methods + +#### CreateOrderStatus + +```csharp +public IActionResult CreateOrderStatus(Guid storeId) +``` + + +--- + +#### DeleteOrderStatus + +```csharp +public IActionResult DeleteOrderStatus(Guid orderStatusId) +``` + + +--- + +#### GetOrderStatus + +```csharp +public IActionResult GetOrderStatus(Guid orderStatusId) +``` + + +--- + +#### GetOrderStatuses + +```csharp +public IActionResult GetOrderStatuses(Guid storeId) +``` + + +--- + +#### SaveOrderStatus + +```csharp +public IActionResult SaveOrderStatus(OrderStatusSaveDto orderStatus) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommercepaymentcontroller.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommercepaymentcontroller.md new file mode 100644 index 00000000000..7298cadd991 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommercepaymentcontroller.md @@ -0,0 +1,65 @@ +--- +title: UmbracoCommercePaymentController +description: API reference for UmbracoCommercePaymentController in Umbraco Commerce +--- +## UmbracoCommercePaymentController + +```csharp +public class UmbracoCommercePaymentController : ApiController +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Controllers](README.md) + +### Constructors + +#### UmbracoCommercePaymentController + +```csharp +public UmbracoCommercePaymentController(UmbracoCommerceContext ctx, + PaymentProviderContextFactory paymentProviderContextFactory, + IPaymentProviderUriResolver uriResolver, ILogger logger) +``` + + +### Methods + +#### Callback + +```csharp +public Task Callback(string paymentProviderAlias, Guid orderOrPaymentMethodId, + string orderNumber, string hash) +``` + + +--- + +#### Cancel + +```csharp +public Task Cancel(string paymentProviderAlias, Guid orderOrPaymentMethodId, + string orderNumber, string hash) +``` + + +--- + +#### Continue + +```csharp +public Task Continue(string paymentProviderAlias, Guid orderOrPaymentMethodId, + string orderNumber, string hash) +``` + + +--- + +#### Error + +```csharp +public Task Error(string paymentProviderAlias, Guid orderOrPaymentMethodId, + string orderNumber, string hash) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommercepaymentmethodcontroller.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommercepaymentmethodcontroller.md new file mode 100644 index 00000000000..761adc1eec3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommercepaymentmethodcontroller.md @@ -0,0 +1,91 @@ +--- +title: UmbracoCommercePaymentMethodController +description: API reference for UmbracoCommercePaymentMethodController in Umbraco Commerce +--- +## UmbracoCommercePaymentMethodController + +```csharp +public class UmbracoCommercePaymentMethodController : UmbracoCommerceAuthorizedJsonControllerBase +``` + +**Inheritance** + +* Class [UmbracoCommerceAuthorizedJsonControllerBase](umbracocommerceauthorizedjsoncontrollerbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Controllers](README.md) + +### Constructors + +#### UmbracoCommercePaymentMethodController + +```csharp +public UmbracoCommercePaymentMethodController( + IBackOfficeSecurityAccessor backOfficeSecurityAccesor, UmbracoCommerceContext ctx) +``` + + +### Methods + +#### CreatePaymentMethod + +```csharp +public IActionResult CreatePaymentMethod(Guid storeId, string paymentProviderAlias) +``` + + +--- + +#### DeletePaymentMethod + +```csharp +public IActionResult DeletePaymentMethod(Guid paymentMethodId) +``` + + +--- + +#### GetPaymentMethod + +```csharp +public IActionResult GetPaymentMethod(Guid paymentMethodId) +``` + + +--- + +#### GetPaymentMethods + +```csharp +public IActionResult GetPaymentMethods(Guid storeId) +``` + + +--- + +#### GetPaymentProviderDefinitions + +```csharp +public IActionResult GetPaymentProviderDefinitions() +``` + + +--- + +#### GetPaymentProviderScaffold + +```csharp +public IActionResult GetPaymentProviderScaffold(string paymentProviderAlias) +``` + + +--- + +#### SavePaymentMethod + +```csharp +public IActionResult SavePaymentMethod(PaymentMethodSaveDto paymentMethod) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceprintcontroller.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceprintcontroller.md new file mode 100644 index 00000000000..c5e76cf93ad --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceprintcontroller.md @@ -0,0 +1,98 @@ +--- +title: UmbracoCommercePrintController +description: API reference for UmbracoCommercePrintController in Umbraco Commerce +--- +## UmbracoCommercePrintController + +```csharp +public class UmbracoCommercePrintController : UmbracoController +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Controllers](README.md) + +### Constructors + +#### UmbracoCommercePrintController + +```csharp +public UmbracoCommercePrintController(UmbracoCommerceContext ctx, ITemplateEngine templateEngine) +``` + + +### Methods + +#### Preview + +```csharp +public ActionResult Preview(Guid templateId, Guid entityId, string entityType, + string languageIsoCode = null) +``` + + +--- + +#### Print + +```csharp +public ActionResult Print(PrintPostModel model) +``` + + +### Classes + +#### UmbracoCommercePrintController.PrintPostModel + +```csharp +public class PrintPostModel +``` + +##### Constructors + +#### UmbracoCommercePrintController.PrintPostModel + +The default constructor. + +```csharp +public PrintPostModel() +``` + + +##### Properties + +#### EntityIds + +```csharp +public Guid[] EntityIds { get; set; } +``` + + +--- + +#### EntityType + +```csharp +public string EntityType { get; set; } +``` + + +--- + +#### LanguageIsoCode + +```csharp +public string LanguageIsoCode { get; set; } +``` + + +--- + +#### TemplateIds + +```csharp +public Guid[] TemplateIds { get; set; } +``` + + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceprinttemplatecontroller.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceprinttemplatecontroller.md new file mode 100644 index 00000000000..a3c29c6e90a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceprinttemplatecontroller.md @@ -0,0 +1,82 @@ +--- +title: UmbracoCommercePrintTemplateController +description: API reference for UmbracoCommercePrintTemplateController in Umbraco Commerce +--- +## UmbracoCommercePrintTemplateController + +```csharp +public class UmbracoCommercePrintTemplateController : UmbracoCommerceAuthorizedJsonControllerBase +``` + +**Inheritance** + +* Class [UmbracoCommerceAuthorizedJsonControllerBase](umbracocommerceauthorizedjsoncontrollerbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Controllers](README.md) + +### Constructors + +#### UmbracoCommercePrintTemplateController + +```csharp +public UmbracoCommercePrintTemplateController( + IBackOfficeSecurityAccessor backOfficeSecurityAccesor, UmbracoCommerceContext ctx) +``` + + +### Methods + +#### CreatePrintTemplate + +```csharp +public IActionResult CreatePrintTemplate(Guid storeId) +``` + + +--- + +#### DeletePrintTemplate + +```csharp +public IActionResult DeletePrintTemplate(Guid printTemplateId) +``` + + +--- + +#### GetPrintTemplate + +```csharp +public IActionResult GetPrintTemplate(Guid printTemplateId) +``` + + +--- + +#### GetPrintTemplateCount + +```csharp +public IActionResult GetPrintTemplateCount(Guid storeId, TemplateCategory? category = null) +``` + + +--- + +#### GetPrintTemplates + +```csharp +public IActionResult GetPrintTemplates(Guid storeId, TemplateCategory? category = null) +``` + + +--- + +#### SavePrintTemplate + +```csharp +public IActionResult SavePrintTemplate(PrintTemplateSaveDto printTemplate) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceproductattributecontroller.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceproductattributecontroller.md new file mode 100644 index 00000000000..eab9d46827e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceproductattributecontroller.md @@ -0,0 +1,137 @@ +--- +title: UmbracoCommerceProductAttributeController +description: API reference for UmbracoCommerceProductAttributeController in Umbraco Commerce +--- +## UmbracoCommerceProductAttributeController + +```csharp +public class UmbracoCommerceProductAttributeController : UmbracoCommerceAuthorizedJsonControllerBase +``` + +**Inheritance** + +* Class [UmbracoCommerceAuthorizedJsonControllerBase](umbracocommerceauthorizedjsoncontrollerbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Controllers](README.md) + +### Constructors + +#### UmbracoCommerceProductAttributeController + +```csharp +public UmbracoCommerceProductAttributeController( + IBackOfficeSecurityAccessor backOfficeSecurityAccesor, UmbracoCommerceContext ctx) +``` + + +### Methods + +#### CreateProductAttribute + +```csharp +public IActionResult CreateProductAttribute(Guid storeId) +``` + + +--- + +#### CreateProductAttributePreset + +```csharp +public IActionResult CreateProductAttributePreset(Guid storeId) +``` + + +--- + +#### DeleteProductAttribute + +```csharp +public IActionResult DeleteProductAttribute(Guid productAttributeId) +``` + + +--- + +#### DeleteProductAttributePreset + +```csharp +public IActionResult DeleteProductAttributePreset(Guid productAttributePresetId) +``` + + +--- + +#### GetProductAttribute + +```csharp +public IActionResult GetProductAttribute(Guid productAttributeId) +``` + + +--- + +#### GetProductAttributePreset + +```csharp +public IActionResult GetProductAttributePreset(Guid productAttributePresetId) +``` + + +--- + +#### GetProductAttributePresets + +```csharp +public IActionResult GetProductAttributePresets(Guid storeId) +``` + + +--- + +#### GetProductAttributePresetsWithAllowedAttributes + +```csharp +public IActionResult GetProductAttributePresetsWithAllowedAttributes(Guid storeId) +``` + + +--- + +#### GetProductAttributes + +```csharp +public IActionResult GetProductAttributes(Guid storeId) +``` + + +--- + +#### GetProductAttributesWithValues + +```csharp +public IActionResult GetProductAttributesWithValues(Guid storeId) +``` + + +--- + +#### SaveProductAttribute + +```csharp +public IActionResult SaveProductAttribute(ProductAttributeSaveDto productAttribute) +``` + + +--- + +#### SaveProductAttributePreset + +```csharp +public IActionResult SaveProductAttributePreset( + ProductAttributePresetSaveDto productAttributePreset) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceproductcontroller.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceproductcontroller.md new file mode 100644 index 00000000000..8d0ff269c2c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceproductcontroller.md @@ -0,0 +1,75 @@ +--- +title: UmbracoCommerceProductController +description: API reference for UmbracoCommerceProductController in Umbraco Commerce +--- +## UmbracoCommerceProductController + +```csharp +public class UmbracoCommerceProductController : UmbracoCommerceAuthorizedJsonControllerBase +``` + +**Inheritance** + +* Class [UmbracoCommerceAuthorizedJsonControllerBase](umbracocommerceauthorizedjsoncontrollerbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Controllers](README.md) + +### Constructors + +#### UmbracoCommerceProductController + +```csharp +public UmbracoCommerceProductController(IBackOfficeSecurityAccessor backOfficeSecurityAccesor, + UmbracoCommerceContext ctx) +``` + + +### Methods + +#### GetAllStock + +```csharp +public IActionResult GetAllStock(GetAllStockDto model) +``` + + +--- + +#### GetProductVariantAttributes + +```csharp +public IActionResult GetProductVariantAttributes(Guid storeId, string productReference, + string languageIsoCode) +``` + + +--- + +#### GetStock + +```csharp +public IActionResult GetStock(Guid storeId, string productReference, + string productVariantReference = null) +``` + + +--- + +#### SearchProductSummaries + +```csharp +public IActionResult SearchProductSummaries(ProductSearchDto model) +``` + + +--- + +#### SearchProductVariantSummaries + +```csharp +public IActionResult SearchProductVariantSummaries(ProductVariantSearchDto model) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceshippingmethodcontroller.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceshippingmethodcontroller.md new file mode 100644 index 00000000000..12931cc5bd3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceshippingmethodcontroller.md @@ -0,0 +1,73 @@ +--- +title: UmbracoCommerceShippingMethodController +description: API reference for UmbracoCommerceShippingMethodController in Umbraco Commerce +--- +## UmbracoCommerceShippingMethodController + +```csharp +public class UmbracoCommerceShippingMethodController : UmbracoCommerceAuthorizedJsonControllerBase +``` + +**Inheritance** + +* Class [UmbracoCommerceAuthorizedJsonControllerBase](umbracocommerceauthorizedjsoncontrollerbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Controllers](README.md) + +### Constructors + +#### UmbracoCommerceShippingMethodController + +```csharp +public UmbracoCommerceShippingMethodController( + IBackOfficeSecurityAccessor backOfficeSecurityAccesor, UmbracoCommerceContext ctx) +``` + + +### Methods + +#### CreateShippingMethod + +```csharp +public IActionResult CreateShippingMethod(Guid storeId) +``` + + +--- + +#### DeleteShippingMethod + +```csharp +public IActionResult DeleteShippingMethod(Guid shippingMethodId) +``` + + +--- + +#### GetShippingMethod + +```csharp +public IActionResult GetShippingMethod(Guid shippingMethodId) +``` + + +--- + +#### GetShippingMethods + +```csharp +public IActionResult GetShippingMethods(Guid storeId) +``` + + +--- + +#### SaveShippingMethod + +```csharp +public IActionResult SaveShippingMethod(ShippingMethodSaveDto shippingMethod) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommercestorecontroller.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommercestorecontroller.md new file mode 100644 index 00000000000..bfbb121fc11 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommercestorecontroller.md @@ -0,0 +1,127 @@ +--- +title: UmbracoCommerceStoreController +description: API reference for UmbracoCommerceStoreController in Umbraco Commerce +--- +## UmbracoCommerceStoreController + +```csharp +public class UmbracoCommerceStoreController : UmbracoCommerceAuthorizedJsonControllerBase +``` + +**Inheritance** + +* Class [UmbracoCommerceAuthorizedJsonControllerBase](umbracocommerceauthorizedjsoncontrollerbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Controllers](README.md) + +### Constructors + +#### UmbracoCommerceStoreController + +```csharp +public UmbracoCommerceStoreController(IBackOfficeSecurityAccessor backOfficeSecurityAccesor, + UmbracoCommerceContext ctx, IUmbracoStoreService storeService) +``` + + +### Methods + +#### CreateStore + +```csharp +public IActionResult CreateStore() +``` + + +--- + +#### DeleteStore + +```csharp +public IActionResult DeleteStore(Guid storeId) +``` + + +--- + +#### GetBasicStore + +```csharp +public IActionResult GetBasicStore(Guid storeId) +``` + + +--- + +#### GetBasicStoreByNodeId + +```csharp +public IActionResult GetBasicStoreByNodeId(int nodeId) +``` + + +--- + +#### GetStore + +```csharp +public IActionResult GetStore(Guid storeId) +``` + + +--- + +#### GetStoreActionsForDay + +```csharp +public IActionResult GetStoreActionsForDay(Guid storeId, DateTime date, int localTimezoneOffset) +``` + + +--- + +#### GetStoreAlias + +```csharp +public IActionResult GetStoreAlias(Guid storeId) +``` + + +--- + +#### GetStores + +```csharp +public IActionResult GetStores() +``` + + +--- + +#### GetStoreStatsForDay + +```csharp +public IActionResult GetStoreStatsForDay(Guid storeId, DateTime date, int localTimezoneOffset) +``` + + +--- + +#### GetStoreSummariesForCurrentUser + +```csharp +public IActionResult GetStoreSummariesForCurrentUser() +``` + + +--- + +#### SaveStore + +```csharp +public IActionResult SaveStore(StoreSaveDto store) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommercetagcontroller.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommercetagcontroller.md new file mode 100644 index 00000000000..68c1a40181f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommercetagcontroller.md @@ -0,0 +1,59 @@ +--- +title: UmbracoCommerceTagController +description: API reference for UmbracoCommerceTagController in Umbraco Commerce +--- +## UmbracoCommerceTagController + +```csharp +public class UmbracoCommerceTagController : UmbracoAuthorizedApiController +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Controllers](README.md) + +### Constructors + +#### UmbracoCommerceTagController + +```csharp +public UmbracoCommerceTagController(UmbracoCommerceContext ctx) +``` + + +### Methods + +#### Dummy + +```csharp +public bool Dummy() +``` + + +--- + +#### GetEntityTags + +```csharp +public IActionResult GetEntityTags(Guid storeId, Guid entityId, string query = null) +``` + + +--- + +#### GetTags + +```csharp +public IActionResult GetTags(Guid storeId, string query = null) +``` + + +--- + +#### GetTagsByEntityType + +```csharp +public IActionResult GetTagsByEntityType(Guid storeId, string entityType, string query = null) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommercetaxcontroller.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommercetaxcontroller.md new file mode 100644 index 00000000000..ba32b00b0e8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommercetaxcontroller.md @@ -0,0 +1,73 @@ +--- +title: UmbracoCommerceTaxController +description: API reference for UmbracoCommerceTaxController in Umbraco Commerce +--- +## UmbracoCommerceTaxController + +```csharp +public class UmbracoCommerceTaxController : UmbracoCommerceAuthorizedJsonControllerBase +``` + +**Inheritance** + +* Class [UmbracoCommerceAuthorizedJsonControllerBase](umbracocommerceauthorizedjsoncontrollerbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Controllers](README.md) + +### Constructors + +#### UmbracoCommerceTaxController + +```csharp +public UmbracoCommerceTaxController(IBackOfficeSecurityAccessor backOfficeSecurityAccesor, + UmbracoCommerceContext ctx) +``` + + +### Methods + +#### CreateTaxClass + +```csharp +public IActionResult CreateTaxClass(Guid storeId) +``` + + +--- + +#### DeleteTaxClass + +```csharp +public IActionResult DeleteTaxClass(Guid taxClassId) +``` + + +--- + +#### GetTaxClass + +```csharp +public IActionResult GetTaxClass(Guid taxClassId) +``` + + +--- + +#### GetTaxClasses + +```csharp +public IActionResult GetTaxClasses(Guid storeId) +``` + + +--- + +#### SaveTaxClass + +```csharp +public IActionResult SaveTaxClass(TaxClassSaveDto taxClass) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceutilscontroller.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceutilscontroller.md new file mode 100644 index 00000000000..2560fefdb61 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-controllers/umbracocommerceutilscontroller.md @@ -0,0 +1,37 @@ +--- +title: UmbracoCommerceUtilsController +description: API reference for UmbracoCommerceUtilsController in Umbraco Commerce +--- +## UmbracoCommerceUtilsController + +```csharp +public class UmbracoCommerceUtilsController : UmbracoCommerceAuthorizedJsonControllerBase +``` + +**Inheritance** + +* Class [UmbracoCommerceAuthorizedJsonControllerBase](umbracocommerceauthorizedjsoncontrollerbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Controllers](README.md) + +### Constructors + +#### UmbracoCommerceUtilsController + +```csharp +public UmbracoCommerceUtilsController(IBackOfficeSecurityAccessor backOfficeSecurityAccesor, + UmbracoCommerceContext ctx) +``` + + +### Methods + +#### GetEnumOptions + +```csharp +public IActionResult GetEnumOptions(string type) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-events-notification/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-events-notification/README.md new file mode 100644 index 00000000000..240bb0437bd --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-events-notification/README.md @@ -0,0 +1,21 @@ +--- +title: Umbraco.Commerce.Cms.Web.Events.Notification +description: API reference for Umbraco.Commerce.Cms.Web.Events.Notification in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Web.Events.Notification namespace + +| Public Type | Description | +| --- | --- | +| class [ActivityLogEntriesRenderingNotification](activitylogentriesrenderingnotification.md) | | +| class [AnalyticsDashboardConfigParsingNotification](analyticsdashboardconfigparsingnotification.md) | | +| class [CartEditorConfigParsingNotification](carteditorconfigparsingnotification.md) | | +| class [CartListConfigParsingNotification](cartlistconfigparsingnotification.md) | | +| class [CartSearchingNotification](cartsearchingnotification.md) | | +| abstract class [ConfigParsingNotificationBase](configparsingnotificationbase.md) | | +| class [GiftCardSearchingNotification](giftcardsearchingnotification.md) | | +| class [OrderEditorConfigParsingNotification](ordereditorconfigparsingnotification.md) | | +| class [OrderListConfigParsingNotification](orderlistconfigparsingnotification.md) | | +| class [OrderSearchingNotification](ordersearchingnotification.md) | | +| class [StoreActionsRenderingNotification](storeactionsrenderingnotification.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-events-notification/activitylogentriesrenderingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-events-notification/activitylogentriesrenderingnotification.md new file mode 100644 index 00000000000..26d3f434750 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-events-notification/activitylogentriesrenderingnotification.md @@ -0,0 +1,46 @@ +--- +title: ActivityLogEntriesRenderingNotification +description: API reference for ActivityLogEntriesRenderingNotification in Umbraco Commerce +--- +## ActivityLogEntriesRenderingNotification + +```csharp +public class ActivityLogEntriesRenderingNotification : NotificationEventBase +``` + +**Inheritance** + +* Class [NotificationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/notificationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Events.Notification](README.md) + +### Constructors + +#### ActivityLogEntriesRenderingNotification + +```csharp +public ActivityLogEntriesRenderingNotification(Guid storeId, + IReadOnlyCollection logEntries) +``` + + +### Properties + +#### LogEntries + +```csharp +public IReadOnlyCollection LogEntries { get; set; } +``` + + +--- + +#### StoreId + +```csharp +public Guid StoreId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-events-notification/analyticsdashboardconfigparsingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-events-notification/analyticsdashboardconfigparsingnotification.md new file mode 100644 index 00000000000..5555d273fb5 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-events-notification/analyticsdashboardconfigparsingnotification.md @@ -0,0 +1,45 @@ +--- +title: AnalyticsDashboardConfigParsingNotification +description: API reference for AnalyticsDashboardConfigParsingNotification in Umbraco Commerce +--- +## AnalyticsDashboardConfigParsingNotification + +```csharp +public class AnalyticsDashboardConfigParsingNotification : NotificationEventBase +``` + +**Inheritance** + +* Class [NotificationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/notificationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Events.Notification](README.md) + +### Constructors + +#### AnalyticsDashboardConfigParsingNotification + +```csharp +public AnalyticsDashboardConfigParsingNotification(Guid storeId, JObject config) +``` + + +### Properties + +#### Config + +```csharp +public JObject Config { get; set; } +``` + + +--- + +#### StoreId + +```csharp +public Guid StoreId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-events-notification/carteditorconfigparsingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-events-notification/carteditorconfigparsingnotification.md new file mode 100644 index 00000000000..fb2cac007a6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-events-notification/carteditorconfigparsingnotification.md @@ -0,0 +1,27 @@ +--- +title: CartEditorConfigParsingNotification +description: API reference for CartEditorConfigParsingNotification in Umbraco Commerce +--- +## CartEditorConfigParsingNotification + +```csharp +public class CartEditorConfigParsingNotification : ConfigParsingNotificationBase +``` + +**Inheritance** + +* Class [ConfigParsingNotificationBase](configparsingnotificationbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Events.Notification](README.md) + +### Constructors + +#### CartEditorConfigParsingNotification + +```csharp +public CartEditorConfigParsingNotification(Guid storeId, JObject config) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-events-notification/cartlistconfigparsingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-events-notification/cartlistconfigparsingnotification.md new file mode 100644 index 00000000000..6ca7bdd3964 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-events-notification/cartlistconfigparsingnotification.md @@ -0,0 +1,27 @@ +--- +title: CartListConfigParsingNotification +description: API reference for CartListConfigParsingNotification in Umbraco Commerce +--- +## CartListConfigParsingNotification + +```csharp +public class CartListConfigParsingNotification : ConfigParsingNotificationBase +``` + +**Inheritance** + +* Class [ConfigParsingNotificationBase](configparsingnotificationbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Events.Notification](README.md) + +### Constructors + +#### CartListConfigParsingNotification + +```csharp +public CartListConfigParsingNotification(Guid storeId, JObject config) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-events-notification/cartsearchingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-events-notification/cartsearchingnotification.md new file mode 100644 index 00000000000..0306bcfb3e7 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-events-notification/cartsearchingnotification.md @@ -0,0 +1,49 @@ +--- +title: CartSearchingNotification +description: API reference for CartSearchingNotification in Umbraco Commerce +--- +## CartSearchingNotification + +```csharp +public class CartSearchingNotification : NotificationEventBase +``` + +**Inheritance** + +* Class [NotificationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/notificationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Events.Notification](README.md) + +### Constructors + +#### CartSearchingNotification + +The default constructor. + +```csharp +public CartSearchingNotification() +``` + + +### Properties + +#### Filter + +```csharp +public Func> + Filter { get; set; } +``` + + +--- + +#### SearchTermFilter + +```csharp +public Func> + SearchTermFilter { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-events-notification/configparsingnotificationbase.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-events-notification/configparsingnotificationbase.md new file mode 100644 index 00000000000..c5af71ebb27 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-events-notification/configparsingnotificationbase.md @@ -0,0 +1,45 @@ +--- +title: ConfigParsingNotificationBase +description: API reference for ConfigParsingNotificationBase in Umbraco Commerce +--- +## ConfigParsingNotificationBase + +```csharp +public abstract class ConfigParsingNotificationBase : NotificationEventBase +``` + +**Inheritance** + +* Class [NotificationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/notificationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Events.Notification](README.md) + +### Constructors + +#### ConfigParsingNotificationBase + +```csharp +public ConfigParsingNotificationBase(Guid storeId, JObject config) +``` + + +### Properties + +#### Config + +```csharp +public JObject Config { get; set; } +``` + + +--- + +#### StoreId + +```csharp +public Guid StoreId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-events-notification/giftcardsearchingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-events-notification/giftcardsearchingnotification.md new file mode 100644 index 00000000000..10aeeb383b2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-events-notification/giftcardsearchingnotification.md @@ -0,0 +1,49 @@ +--- +title: GiftCardSearchingNotification +description: API reference for GiftCardSearchingNotification in Umbraco Commerce +--- +## GiftCardSearchingNotification + +```csharp +public class GiftCardSearchingNotification : NotificationEventBase +``` + +**Inheritance** + +* Class [NotificationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/notificationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Events.Notification](README.md) + +### Constructors + +#### GiftCardSearchingNotification + +The default constructor. + +```csharp +public GiftCardSearchingNotification() +``` + + +### Properties + +#### Filter + +```csharp +public Func> + Filter { get; set; } +``` + + +--- + +#### SearchTermFilter + +```csharp +public Func> + SearchTermFilter { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-events-notification/ordereditorconfigparsingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-events-notification/ordereditorconfigparsingnotification.md new file mode 100644 index 00000000000..843da22279e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-events-notification/ordereditorconfigparsingnotification.md @@ -0,0 +1,27 @@ +--- +title: OrderEditorConfigParsingNotification +description: API reference for OrderEditorConfigParsingNotification in Umbraco Commerce +--- +## OrderEditorConfigParsingNotification + +```csharp +public class OrderEditorConfigParsingNotification : ConfigParsingNotificationBase +``` + +**Inheritance** + +* Class [ConfigParsingNotificationBase](configparsingnotificationbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Events.Notification](README.md) + +### Constructors + +#### OrderEditorConfigParsingNotification + +```csharp +public OrderEditorConfigParsingNotification(Guid storeId, JObject config) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-events-notification/orderlistconfigparsingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-events-notification/orderlistconfigparsingnotification.md new file mode 100644 index 00000000000..1fa9ee42b19 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-events-notification/orderlistconfigparsingnotification.md @@ -0,0 +1,27 @@ +--- +title: OrderListConfigParsingNotification +description: API reference for OrderListConfigParsingNotification in Umbraco Commerce +--- +## OrderListConfigParsingNotification + +```csharp +public class OrderListConfigParsingNotification : ConfigParsingNotificationBase +``` + +**Inheritance** + +* Class [ConfigParsingNotificationBase](configparsingnotificationbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Events.Notification](README.md) + +### Constructors + +#### OrderListConfigParsingNotification + +```csharp +public OrderListConfigParsingNotification(Guid storeId, JObject config) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-events-notification/ordersearchingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-events-notification/ordersearchingnotification.md new file mode 100644 index 00000000000..7d14f6e16e6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-events-notification/ordersearchingnotification.md @@ -0,0 +1,49 @@ +--- +title: OrderSearchingNotification +description: API reference for OrderSearchingNotification in Umbraco Commerce +--- +## OrderSearchingNotification + +```csharp +public class OrderSearchingNotification : NotificationEventBase +``` + +**Inheritance** + +* Class [NotificationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/notificationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Events.Notification](README.md) + +### Constructors + +#### OrderSearchingNotification + +The default constructor. + +```csharp +public OrderSearchingNotification() +``` + + +### Properties + +#### Filter + +```csharp +public Func> + Filter { get; set; } +``` + + +--- + +#### SearchTermFilter + +```csharp +public Func> + SearchTermFilter { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-events-notification/storeactionsrenderingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-events-notification/storeactionsrenderingnotification.md new file mode 100644 index 00000000000..973c59fbc77 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-events-notification/storeactionsrenderingnotification.md @@ -0,0 +1,45 @@ +--- +title: StoreActionsRenderingNotification +description: API reference for StoreActionsRenderingNotification in Umbraco Commerce +--- +## StoreActionsRenderingNotification + +```csharp +public class StoreActionsRenderingNotification : NotificationEventBase +``` + +**Inheritance** + +* Class [NotificationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/notificationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Events.Notification](README.md) + +### Constructors + +#### StoreActionsRenderingNotification + +```csharp +public StoreActionsRenderingNotification(Guid storeId, StoreActionsDto actions) +``` + + +### Properties + +#### Actions + +```csharp +public StoreActionsDto Actions { get; set; } +``` + + +--- + +#### StoreId + +```csharp +public Guid StoreId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-filters/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-filters/README.md new file mode 100644 index 00000000000..7ef76d18505 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-filters/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Cms.Web.Filters +description: API reference for Umbraco.Commerce.Cms.Web.Filters in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Web.Filters namespace + +| Public Type | Description | +| --- | --- | +| class [AllowJsonXHRRequestsFilter](allowjsonxhrrequestsfilter.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-filters/allowjsonxhrrequestsfilter.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-filters/allowjsonxhrrequestsfilter.md new file mode 100644 index 00000000000..27e8f8a6fc3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-filters/allowjsonxhrrequestsfilter.md @@ -0,0 +1,25 @@ +--- +title: AllowJsonXHRRequestsFilter +description: API reference for AllowJsonXHRRequestsFilter in Umbraco Commerce +--- +## AllowJsonXHRRequestsFilter + +```csharp +public class AllowJsonXHRRequestsFilter : TypeFilterAttribute +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Filters](README.md) + +### Constructors + +#### AllowJsonXHRRequestsFilter + +The default constructor. + +```csharp +public AllowJsonXHRRequestsFilter() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-io/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-io/README.md new file mode 100644 index 00000000000..abe7882bc9b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-io/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Cms.Web.IO +description: API reference for Umbraco.Commerce.Cms.Web.IO in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Web.IO namespace + +| Public Type | Description | +| --- | --- | +| interface [IUmbracoCommerceConfigFileProviderFactory](iumbracocommerceconfigfileproviderfactory.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-io/iumbracocommerceconfigfileproviderfactory.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-io/iumbracocommerceconfigfileproviderfactory.md new file mode 100644 index 00000000000..94c69a43e3d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-io/iumbracocommerceconfigfileproviderfactory.md @@ -0,0 +1,14 @@ +--- +title: IUmbracoCommerceConfigFileProviderFactory +description: API reference for IUmbracoCommerceConfigFileProviderFactory in Umbraco Commerce +--- +## IUmbracoCommerceConfigFileProviderFactory + +```csharp +public interface IUmbracoCommerceConfigFileProviderFactory : IFileProviderFactory +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.IO](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/README.md new file mode 100644 index 00000000000..c49d6ae1dea --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/README.md @@ -0,0 +1,35 @@ +--- +title: Umbraco.Commerce.Cms.Web.Models.Mappers +description: API reference for Umbraco.Commerce.Cms.Web.Models.Mappers in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Web.Models.Mappers namespace + +| Public Type | Description | +| --- | --- | +| static class [ActivityLogEntryMapper](activitylogentrymapper.md) | | +| static class [AllowedCountryRegionMapper](allowedcountryregionmapper.md) | | +| static class [AttributeMapper](attributemapper.md) | | +| static class [CartMapper](cartmapper.md) | | +| static class [CountryMapper](countrymapper.md) | | +| static class [CurrencyMapper](currencymapper.md) | | +| static class [DiscountMapper](discountmapper.md) | | +| static class [EmailTemplateMapper](emailtemplatemapper.md) | | +| class [EntityMapperAdapter](entitymapperadapter.md) | | +| static class [EntityMapperFactory](entitymapperfactory.md) | | +| static class [ExportTemplateMapper](exporttemplatemapper.md) | | +| static class [GiftCardMapper](giftcardmapper.md) | | +| static class [OrderMapper](ordermapper.md) | | +| static class [OrderStatusMapper](orderstatusmapper.md) | | +| static class [PaymentMethodMapper](paymentmethodmapper.md) | | +| static class [PrintTemplateMapper](printtemplatemapper.md) | | +| static class [ProductAttributeMapper](productattributemapper.md) | | +| static class [ProductAttributePresetMapper](productattributepresetmapper.md) | | +| static class [ProductMapper](productmapper.md) | | +| static class [RegionMapper](regionmapper.md) | | +| static class [ServicePriceMapper](servicepricemapper.md) | | +| static class [ShippingMethodMapper](shippingmethodmapper.md) | | +| static class [StoreMapper](storemapper.md) | | +| static class [TaxClassMapper](taxclassmapper.md) | | +| static class [TaxRateMapper](taxratemapper.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/activitylogentrymapper.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/activitylogentrymapper.md new file mode 100644 index 00000000000..25d62d5d8aa --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/activitylogentrymapper.md @@ -0,0 +1,34 @@ +--- +title: ActivityLogEntryMapper +description: API reference for ActivityLogEntryMapper in Umbraco Commerce +--- +## ActivityLogEntryMapper + +```csharp +public static class ActivityLogEntryMapper +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models.Mappers](README.md) + +### Methods + +#### ActivityLogEntryToDto + +```csharp +public static ActivityLogEntryDto ActivityLogEntryToDto(ActivityLogEntry entity, + Func userNameResolver) +``` + + +--- + +#### ActivityLogEntryToDtos + +```csharp +public static IEnumerable ActivityLogEntryToDtos( + IEnumerable entity, Func userNameResolver) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/allowedcountryregionmapper.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/allowedcountryregionmapper.md new file mode 100644 index 00000000000..6ea47e109bc --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/allowedcountryregionmapper.md @@ -0,0 +1,90 @@ +--- +title: AllowedCountryRegionMapper +description: API reference for AllowedCountryRegionMapper in Umbraco Commerce +--- +## AllowedCountryRegionMapper + +```csharp +public static class AllowedCountryRegionMapper +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models.Mappers](README.md) + +### Methods + +#### AllowedCountryCollectionToDtos + +```csharp +public static List AllowedCountryCollectionToDtos( + IEnumerable collection) +``` + + +--- + +#### AllowedCountryDtosToCollection + +```csharp +public static IEnumerable AllowedCountryDtosToCollection( + IEnumerable dtos) +``` + + +--- + +#### AllowedCountryDtoToEntity + +```csharp +public static AllowedCountry AllowedCountryDtoToEntity(AllowedCountryDto dto) +``` + + +--- + +#### AllowedCountryEntityToDto + +```csharp +public static AllowedCountryDto AllowedCountryEntityToDto(AllowedCountry entity) +``` + + +--- + +#### AllowedCountryRegionCollectionToDtos + +```csharp +public static List AllowedCountryRegionCollectionToDtos( + IEnumerable collection) +``` + + +--- + +#### AllowedCountryRegionDtosToCollection + +```csharp +public static IEnumerable AllowedCountryRegionDtosToCollection( + IEnumerable dtos) +``` + + +--- + +#### AllowedCountryRegionDtoToEntity + +```csharp +public static AllowedCountryRegion AllowedCountryRegionDtoToEntity(AllowedCountryRegionDto dto) +``` + + +--- + +#### AllowedCountryRegionEntityToDto + +```csharp +public static AllowedCountryRegionDto AllowedCountryRegionEntityToDto(AllowedCountryRegion entity) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/attributemapper.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/attributemapper.md new file mode 100644 index 00000000000..a235fe23eb8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/attributemapper.md @@ -0,0 +1,52 @@ +--- +title: AttributeMapper +description: API reference for AttributeMapper in Umbraco Commerce +--- +## AttributeMapper + +```csharp +public static class AttributeMapper +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models.Mappers](README.md) + +### Methods + +#### AttributesToDtos + +```csharp +public static IEnumerable AttributesToDtos(IEnumerable entities) +``` + + +--- + +#### AttributeToDto + +```csharp +public static AttributeDto AttributeToDto(Attribute entity, AttributeDto dto = null) +``` + + +--- + +#### AttributeValuesToDtos + +```csharp +public static IEnumerable AttributeValuesToDtos( + IEnumerable entities) +``` + + +--- + +#### AttributeValueToDto + +```csharp +public static AliasNamePairDto AttributeValueToDto(AttributeValue entity, + AliasNamePairDto dto = null) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/cartmapper.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/cartmapper.md new file mode 100644 index 00000000000..442efec8b76 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/cartmapper.md @@ -0,0 +1,53 @@ +--- +title: CartMapper +description: API reference for CartMapper in Umbraco Commerce +--- +## CartMapper + +```csharp +public static class CartMapper +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models.Mappers](README.md) + +### Methods + +#### CartEntitiesToBasicDtos + +```csharp +public static IEnumerable CartEntitiesToBasicDtos(IEnumerable entities) +``` + + +--- + +#### CartEntityToBasicDto + +```csharp +public static CartBasicDto CartEntityToBasicDto(OrderReadOnly entity, CartBasicDto dto = null) +``` + + +--- + +#### CartEntityToEditDto + +```csharp +public static CartEditDto CartEntityToEditDto(OrderReadOnly entity, CurrencyBasicDto currency, + PaymentMethodBasicDto paymentMethod, CountryBasicDto paymentCountry, + RegionBasicDto paymentRegion, ShippingMethodBasicDto shippingMethod, + CountryBasicDto shippingCountry, RegionBasicDto shippingRegion, CartEditDto dto = null) +``` + + +--- + +#### CartSaveDtoToEntity + +```csharp +public static Order CartSaveDtoToEntity(CartSaveDto dto, Order entity) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/countrymapper.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/countrymapper.md new file mode 100644 index 00000000000..33eb4e120b3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/countrymapper.md @@ -0,0 +1,64 @@ +--- +title: CountryMapper +description: API reference for CountryMapper in Umbraco Commerce +--- +## CountryMapper + +```csharp +public static class CountryMapper +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models.Mappers](README.md) + +### Methods + +#### CountryEntitiesToBasicDtos + +```csharp +public static IEnumerable CountryEntitiesToBasicDtos( + IEnumerable entities) +``` + + +--- + +#### CountryEntitiesToBasicDtos<TDto> + +```csharp +public static IEnumerable CountryEntitiesToBasicDtos( + IEnumerable entities) + where TDto : CountryBasicDto, new() +``` + + +--- + +#### CountryEntityToBasicDto<TDto> + +```csharp +public static TDto CountryEntityToBasicDto(CountryReadOnly entity, TDto dto = default(TDto)) + where TDto : CountryBasicDto, new() +``` + + +--- + +#### CountryEntityToEditDto + +```csharp +public static CountryEditDto CountryEntityToEditDto(CountryReadOnly entity, + CountryEditDto dto = null) +``` + + +--- + +#### CountrySaveDtoToEntity + +```csharp +public static Country CountrySaveDtoToEntity(CountrySaveDto dto, Country entity) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/currencymapper.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/currencymapper.md new file mode 100644 index 00000000000..fd0ebad18d0 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/currencymapper.md @@ -0,0 +1,53 @@ +--- +title: CurrencyMapper +description: API reference for CurrencyMapper in Umbraco Commerce +--- +## CurrencyMapper + +```csharp +public static class CurrencyMapper +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models.Mappers](README.md) + +### Methods + +#### CurrencyEntitiesToBasicDtos + +```csharp +public static IEnumerable CurrencyEntitiesToBasicDtos( + IEnumerable entities) +``` + + +--- + +#### CurrencyEntityToBasicDto + +```csharp +public static CurrencyBasicDto CurrencyEntityToBasicDto(CurrencyReadOnly entity, + CurrencyBasicDto dto = null) +``` + + +--- + +#### CurrencyEntityToEditDto + +```csharp +public static CurrencyEditDto CurrencyEntityToEditDto(CurrencyReadOnly entity, + CurrencyEditDto dto = null) +``` + + +--- + +#### CurrencySaveDtoToEntity + +```csharp +public static Currency CurrencySaveDtoToEntity(CurrencySaveDto dto, Currency entity) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/discountmapper.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/discountmapper.md new file mode 100644 index 00000000000..833248d7746 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/discountmapper.md @@ -0,0 +1,53 @@ +--- +title: DiscountMapper +description: API reference for DiscountMapper in Umbraco Commerce +--- +## DiscountMapper + +```csharp +public static class DiscountMapper +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models.Mappers](README.md) + +### Methods + +#### DiscountEntitiesToBasicDtos + +```csharp +public static IEnumerable DiscountEntitiesToBasicDtos( + IEnumerable entities) +``` + + +--- + +#### DiscountEntityToBasicDto + +```csharp +public static DiscountBasicDto DiscountEntityToBasicDto(DiscountReadOnly entity, + DiscountBasicDto dto = null) +``` + + +--- + +#### DiscountEntityToEditDto + +```csharp +public static DiscountEditDto DiscountEntityToEditDto(DiscountReadOnly entity, + DiscountEditDto dto = null) +``` + + +--- + +#### DiscountSaveDtoToEntity + +```csharp +public static Discount DiscountSaveDtoToEntity(DiscountSaveDto dto, Discount entity) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/emailtemplatemapper.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/emailtemplatemapper.md new file mode 100644 index 00000000000..ac2a9373689 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/emailtemplatemapper.md @@ -0,0 +1,54 @@ +--- +title: EmailTemplateMapper +description: API reference for EmailTemplateMapper in Umbraco Commerce +--- +## EmailTemplateMapper + +```csharp +public static class EmailTemplateMapper +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models.Mappers](README.md) + +### Methods + +#### EmailTemplateEntitiesToBasicDtos + +```csharp +public static IEnumerable EmailTemplateEntitiesToBasicDtos( + IEnumerable entities) +``` + + +--- + +#### EmailTemplateEntityToBasicDto + +```csharp +public static EmailTemplateBasicDto EmailTemplateEntityToBasicDto(EmailTemplateReadOnly entity, + EmailTemplateBasicDto dto = null) +``` + + +--- + +#### EmailTemplateEntityToEditDto + +```csharp +public static EmailTemplateEditDto EmailTemplateEntityToEditDto(EmailTemplateReadOnly entity, + EmailTemplateEditDto dto = null) +``` + + +--- + +#### EmailTemplateSaveDtoToEntity + +```csharp +public static EmailTemplate EmailTemplateSaveDtoToEntity(EmailTemplateSaveDto dto, + EmailTemplate entity) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/entitymapperadapter.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/entitymapperadapter.md new file mode 100644 index 00000000000..9bcac08ff20 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/entitymapperadapter.md @@ -0,0 +1,50 @@ +--- +title: EntityMapperAdapter +description: API reference for EntityMapperAdapter in Umbraco Commerce +--- +## EntityMapperAdapter + +```csharp +public class EntityMapperAdapter +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models.Mappers](README.md) + +### Constructors + +#### EntityMapperAdapter + +```csharp +public EntityMapperAdapter(Func entityMapper) +``` + + +### Methods + +#### EntitiesToBasicDtos + +```csharp +public IEnumerable EntitiesToBasicDtos(IEnumerable entities) +``` + + +--- + +#### EntityToBasicDto + +```csharp +public EntityBasicDto EntityToBasicDto(EntityBase entity) +``` + + +### Operators + +#### EntityMapperAdapter Implicit + +```csharp +public static implicit operator EntityMapperAdapter(Func fnc) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/entitymapperfactory.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/entitymapperfactory.md new file mode 100644 index 00000000000..281d209a57b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/entitymapperfactory.md @@ -0,0 +1,23 @@ +--- +title: EntityMapperFactory +description: API reference for EntityMapperFactory in Umbraco Commerce +--- +## EntityMapperFactory + +```csharp +public static class EntityMapperFactory +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models.Mappers](README.md) + +### Methods + +#### GetEntityMapper + +```csharp +public static EntityMapperAdapter GetEntityMapper(string entityType) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/exporttemplatemapper.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/exporttemplatemapper.md new file mode 100644 index 00000000000..6c2371034f8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/exporttemplatemapper.md @@ -0,0 +1,54 @@ +--- +title: ExportTemplateMapper +description: API reference for ExportTemplateMapper in Umbraco Commerce +--- +## ExportTemplateMapper + +```csharp +public static class ExportTemplateMapper +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models.Mappers](README.md) + +### Methods + +#### ExportTemplateEntitiesToBasicDtos + +```csharp +public static IEnumerable ExportTemplateEntitiesToBasicDtos( + IEnumerable entities) +``` + + +--- + +#### ExportTemplateEntityToBasicDto + +```csharp +public static ExportTemplateBasicDto ExportTemplateEntityToBasicDto(ExportTemplateReadOnly entity, + ExportTemplateBasicDto dto = null) +``` + + +--- + +#### ExportTemplateEntityToEditDto + +```csharp +public static ExportTemplateEditDto ExportTemplateEntityToEditDto(ExportTemplateReadOnly entity, + ExportTemplateEditDto dto = null) +``` + + +--- + +#### ExportTemplateSaveDtoToEntity + +```csharp +public static ExportTemplate ExportTemplateSaveDtoToEntity(ExportTemplateSaveDto dto, + ExportTemplate entity) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/giftcardmapper.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/giftcardmapper.md new file mode 100644 index 00000000000..47bacf46118 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/giftcardmapper.md @@ -0,0 +1,53 @@ +--- +title: GiftCardMapper +description: API reference for GiftCardMapper in Umbraco Commerce +--- +## GiftCardMapper + +```csharp +public static class GiftCardMapper +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models.Mappers](README.md) + +### Methods + +#### GiftCardEntitiesToBasicDtos + +```csharp +public static IEnumerable GiftCardEntitiesToBasicDtos( + IEnumerable entities) +``` + + +--- + +#### GiftCardEntityToBasicDto + +```csharp +public static GiftCardBasicDto GiftCardEntityToBasicDto(GiftCardReadOnly entity, + GiftCardBasicDto dto = null) +``` + + +--- + +#### GiftCardEntityToEditDto + +```csharp +public static GiftCardEditDto GiftCardEntityToEditDto(GiftCardReadOnly entity, + GiftCardEditDto dto = null) +``` + + +--- + +#### GiftCardSaveDtoToEntity + +```csharp +public static GiftCard GiftCardSaveDtoToEntity(GiftCardSaveDto dto, GiftCard entity) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/ordermapper.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/ordermapper.md new file mode 100644 index 00000000000..17726e02725 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/ordermapper.md @@ -0,0 +1,59 @@ +--- +title: OrderMapper +description: API reference for OrderMapper in Umbraco Commerce +--- +## OrderMapper + +```csharp +public static class OrderMapper +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models.Mappers](README.md) + +### Methods + +#### OrderEntitiesToBasicDtos + +```csharp +public static IEnumerable OrderEntitiesToBasicDtos( + IEnumerable entities, IEnumerable orderStatuses, + IEnumerable paymentMethods, + IEnumerable shippingMethods) +``` + + +--- + +#### OrderEntityToBasicDto + +```csharp +public static OrderBasicDto OrderEntityToBasicDto(OrderReadOnly entity, + OrderStatusBasicDto orderStatus, PaymentMethodBasicDto paymentMethod, + ShippingMethodBasicDto shippingMethod, OrderBasicDto dto = null) +``` + + +--- + +#### OrderEntityToEditDto + +```csharp +public static OrderEditDto OrderEntityToEditDto(OrderReadOnly entity, + OrderStatusBasicDto orderStatus, PaymentMethodBasicDto paymentMethod, + CountryBasicDto paymentCountry, RegionBasicDto paymentRegion, + ShippingMethodBasicDto shippingMethod, CountryBasicDto shippingCountry, + RegionBasicDto shippingRegion, OrderEditDto dto = null) +``` + + +--- + +#### OrderSaveDtoToEntity + +```csharp +public static Order OrderSaveDtoToEntity(OrderSaveDto dto, Order entity) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/orderstatusmapper.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/orderstatusmapper.md new file mode 100644 index 00000000000..b2500c15e66 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/orderstatusmapper.md @@ -0,0 +1,53 @@ +--- +title: OrderStatusMapper +description: API reference for OrderStatusMapper in Umbraco Commerce +--- +## OrderStatusMapper + +```csharp +public static class OrderStatusMapper +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models.Mappers](README.md) + +### Methods + +#### OrderStatusEntitiesToBasicDtos + +```csharp +public static IEnumerable OrderStatusEntitiesToBasicDtos( + IEnumerable entities) +``` + + +--- + +#### OrderStatusEntityToBasicDto + +```csharp +public static OrderStatusBasicDto OrderStatusEntityToBasicDto(OrderStatusReadOnly entity, + OrderStatusBasicDto dto = null) +``` + + +--- + +#### OrderStatusEntityToEditDto + +```csharp +public static OrderStatusEditDto OrderStatusEntityToEditDto(OrderStatusReadOnly entity, + OrderStatusEditDto dto = null) +``` + + +--- + +#### OrderStatusSaveDtoToEntity + +```csharp +public static OrderStatus OrderStatusSaveDtoToEntity(OrderStatusSaveDto dto, OrderStatus entity) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/paymentmethodmapper.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/paymentmethodmapper.md new file mode 100644 index 00000000000..9506979cf35 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/paymentmethodmapper.md @@ -0,0 +1,54 @@ +--- +title: PaymentMethodMapper +description: API reference for PaymentMethodMapper in Umbraco Commerce +--- +## PaymentMethodMapper + +```csharp +public static class PaymentMethodMapper +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models.Mappers](README.md) + +### Methods + +#### PaymentMethodEntitiesToBasicDtos + +```csharp +public static IEnumerable PaymentMethodEntitiesToBasicDtos( + IEnumerable entities) +``` + + +--- + +#### PaymentMethodEntityToBasicDto + +```csharp +public static PaymentMethodBasicDto PaymentMethodEntityToBasicDto(PaymentMethodReadOnly entity, + PaymentMethodBasicDto dto = null) +``` + + +--- + +#### PaymentMethodEntityToEditDto + +```csharp +public static PaymentMethodEditDto PaymentMethodEntityToEditDto(PaymentMethodReadOnly entity, + IPaymentProvider paymentProvider, PaymentMethodEditDto dto = null) +``` + + +--- + +#### PaymentMethodSaveDtoToEntity + +```csharp +public static PaymentMethod PaymentMethodSaveDtoToEntity(PaymentMethodSaveDto dto, + PaymentMethod entity) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/printtemplatemapper.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/printtemplatemapper.md new file mode 100644 index 00000000000..f80f4e0011d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/printtemplatemapper.md @@ -0,0 +1,54 @@ +--- +title: PrintTemplateMapper +description: API reference for PrintTemplateMapper in Umbraco Commerce +--- +## PrintTemplateMapper + +```csharp +public static class PrintTemplateMapper +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models.Mappers](README.md) + +### Methods + +#### PrintTemplateEntitiesToBasicDtos + +```csharp +public static IEnumerable PrintTemplateEntitiesToBasicDtos( + IEnumerable entities) +``` + + +--- + +#### PrintTemplateEntityToBasicDto + +```csharp +public static PrintTemplateBasicDto PrintTemplateEntityToBasicDto(PrintTemplateReadOnly entity, + PrintTemplateBasicDto dto = null) +``` + + +--- + +#### PrintTemplateEntityToEditDto + +```csharp +public static PrintTemplateEditDto PrintTemplateEntityToEditDto(PrintTemplateReadOnly entity, + PrintTemplateEditDto dto = null) +``` + + +--- + +#### PrintTemplateSaveDtoToEntity + +```csharp +public static PrintTemplate PrintTemplateSaveDtoToEntity(PrintTemplateSaveDto dto, + PrintTemplate entity) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/productattributemapper.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/productattributemapper.md new file mode 100644 index 00000000000..e341dfd3c17 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/productattributemapper.md @@ -0,0 +1,64 @@ +--- +title: ProductAttributeMapper +description: API reference for ProductAttributeMapper in Umbraco Commerce +--- +## ProductAttributeMapper + +```csharp +public static class ProductAttributeMapper +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models.Mappers](README.md) + +### Methods + +#### ProductAttributeEntitiesToBasicDtos + +```csharp +public static IEnumerable ProductAttributeEntitiesToBasicDtos( + IEnumerable entities) +``` + + +--- + +#### ProductAttributeEntitiesToDtos + +```csharp +public static IEnumerable ProductAttributeEntitiesToDtos( + IEnumerable entities) +``` + + +--- + +#### ProductAttributeEntityToBasicDto + +```csharp +public static ProductAttributeBasicDto ProductAttributeEntityToBasicDto( + ProductAttributeReadOnly entity, ProductAttributeBasicDto dto = null) +``` + + +--- + +#### ProductAttributeEntityToEditDto + +```csharp +public static ProductAttributeEditDto ProductAttributeEntityToEditDto( + ProductAttributeReadOnly entity, ProductAttributeEditDto dto = null) +``` + + +--- + +#### ProductAttributeSaveDtoToEntity + +```csharp +public static ProductAttribute ProductAttributeSaveDtoToEntity(ProductAttributeSaveDto dto, + ProductAttribute entity) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/productattributepresetmapper.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/productattributepresetmapper.md new file mode 100644 index 00000000000..22c76fe1869 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/productattributepresetmapper.md @@ -0,0 +1,64 @@ +--- +title: ProductAttributePresetMapper +description: API reference for ProductAttributePresetMapper in Umbraco Commerce +--- +## ProductAttributePresetMapper + +```csharp +public static class ProductAttributePresetMapper +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models.Mappers](README.md) + +### Methods + +#### ProductAttributePresetEntitiesToBasicDtos + +```csharp +public static IEnumerable ProductAttributePresetEntitiesToBasicDtos( + IEnumerable entities) +``` + + +--- + +#### ProductAttributePresetEntitiesToDtos + +```csharp +public static IEnumerable ProductAttributePresetEntitiesToDtos( + IEnumerable entities) +``` + + +--- + +#### ProductAttributePresetEntityToBasicDto + +```csharp +public static ProductAttributePresetBasicDto ProductAttributePresetEntityToBasicDto( + ProductAttributePresetReadOnly entity, ProductAttributePresetBasicDto dto = null) +``` + + +--- + +#### ProductAttributePresetEntityToEditDto + +```csharp +public static ProductAttributePresetEditDto ProductAttributePresetEntityToEditDto( + ProductAttributePresetReadOnly entity, ProductAttributePresetEditDto dto = null) +``` + + +--- + +#### ProductAttributePresetSaveDtoToEntity + +```csharp +public static ProductAttributePreset ProductAttributePresetSaveDtoToEntity( + ProductAttributePresetSaveDto dto, ProductAttributePreset entity) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/productmapper.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/productmapper.md new file mode 100644 index 00000000000..61150957dba --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/productmapper.md @@ -0,0 +1,82 @@ +--- +title: ProductMapper +description: API reference for ProductMapper in Umbraco Commerce +--- +## ProductMapper + +```csharp +public static class ProductMapper +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models.Mappers](README.md) + +### Methods + +#### ProductPricesToDtos + +```csharp +public static IEnumerable ProductPricesToDtos(IEnumerable entities) +``` + + +--- + +#### ProductPriceToDto + +```csharp +public static ProductPriceDto ProductPriceToDto(ProductPrice entity, ProductPriceDto dto = null) +``` + + +--- + +#### ProductSummariesToDtos + +```csharp +public static IEnumerable ProductSummariesToDtos( + IEnumerable entities) +``` + + +--- + +#### ProductSummaryCommonToDto + +```csharp +public static ProductSummaryCommonDto ProductSummaryCommonToDto(IProductSummaryCommon entity, + ProductSummaryCommonDto dto) +``` + + +--- + +#### ProductSummaryToDto + +```csharp +public static ProductSummaryDto ProductSummaryToDto(IProductSummary entity, + ProductSummaryDto dto = null) +``` + + +--- + +#### ProductVariantSummariesToDtos + +```csharp +public static IEnumerable ProductVariantSummariesToDtos( + IEnumerable entities) +``` + + +--- + +#### ProductVariantSummaryToDto + +```csharp +public static ProductVariantSummaryDto ProductVariantSummaryToDto(IProductVariantSummary entity, + ProductVariantSummaryDto dto = null) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/regionmapper.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/regionmapper.md new file mode 100644 index 00000000000..2e382de7d18 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/regionmapper.md @@ -0,0 +1,52 @@ +--- +title: RegionMapper +description: API reference for RegionMapper in Umbraco Commerce +--- +## RegionMapper + +```csharp +public static class RegionMapper +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models.Mappers](README.md) + +### Methods + +#### RegionEntitiesToBasicDtos + +```csharp +public static IEnumerable RegionEntitiesToBasicDtos( + IEnumerable entities) +``` + + +--- + +#### RegionEntityToBasicDto + +```csharp +public static RegionBasicDto RegionEntityToBasicDto(RegionReadOnly entity, + RegionBasicDto dto = null) +``` + + +--- + +#### RegionEntityToEditDto + +```csharp +public static RegionEditDto RegionEntityToEditDto(RegionReadOnly entity, RegionEditDto dto = null) +``` + + +--- + +#### RegionSaveDtoToEntity + +```csharp +public static Region RegionSaveDtoToEntity(RegionSaveDto dto, Region entity) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/servicepricemapper.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/servicepricemapper.md new file mode 100644 index 00000000000..393b8de367a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/servicepricemapper.md @@ -0,0 +1,62 @@ +--- +title: ServicePriceMapper +description: API reference for ServicePriceMapper in Umbraco Commerce +--- +## ServicePriceMapper + +```csharp +public static class ServicePriceMapper +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models.Mappers](README.md) + +### Methods + +#### AllowedCountryRegionServicePrices + +```csharp +public static IEnumerable AllowedCountryRegionServicePrices( + IEnumerable prices, IEnumerable allowedCountryRegions) +``` + + +--- + +#### ServicePriceCollectionToDtos + +```csharp +public static List ServicePriceCollectionToDtos( + IEnumerable collection) +``` + + +--- + +#### ServicePriceDtosToCollection + +```csharp +public static IEnumerable ServicePriceDtosToCollection( + IEnumerable dtos) +``` + + +--- + +#### ServicePriceDtoToEntity + +```csharp +public static ServicePrice ServicePriceDtoToEntity(ServicePriceDto dto) +``` + + +--- + +#### ServicePriceEntityToDto + +```csharp +public static ServicePriceDto ServicePriceEntityToDto(ServicePrice entity) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/shippingmethodmapper.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/shippingmethodmapper.md new file mode 100644 index 00000000000..b4239414c05 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/shippingmethodmapper.md @@ -0,0 +1,54 @@ +--- +title: ShippingMethodMapper +description: API reference for ShippingMethodMapper in Umbraco Commerce +--- +## ShippingMethodMapper + +```csharp +public static class ShippingMethodMapper +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models.Mappers](README.md) + +### Methods + +#### ShippingMethodEntitiesToBasicDtos + +```csharp +public static IEnumerable ShippingMethodEntitiesToBasicDtos( + IEnumerable entities) +``` + + +--- + +#### ShippingMethodEntityToBasicDto + +```csharp +public static ShippingMethodBasicDto ShippingMethodEntityToBasicDto(ShippingMethodReadOnly entity, + ShippingMethodBasicDto dto = null) +``` + + +--- + +#### ShippingMethodEntityToEditDto + +```csharp +public static ShippingMethodEditDto ShippingMethodEntityToEditDto(ShippingMethodReadOnly entity, + ShippingMethodEditDto dto = null) +``` + + +--- + +#### ShippingMethodSaveDtoToEntity + +```csharp +public static ShippingMethod ShippingMethodSaveDtoToEntity(ShippingMethodSaveDto dto, + ShippingMethod entity) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/storemapper.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/storemapper.md new file mode 100644 index 00000000000..3d2b56cf5de --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/storemapper.md @@ -0,0 +1,51 @@ +--- +title: StoreMapper +description: API reference for StoreMapper in Umbraco Commerce +--- +## StoreMapper + +```csharp +public static class StoreMapper +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models.Mappers](README.md) + +### Methods + +#### StoreEntitiesToBasicDtos + +```csharp +public static IEnumerable StoreEntitiesToBasicDtos( + IEnumerable entities) +``` + + +--- + +#### StoreEntityToBasicDto + +```csharp +public static StoreBasicDto StoreEntityToBasicDto(StoreReadOnly entity, StoreBasicDto dto = null) +``` + + +--- + +#### StoreEntityToEditDto + +```csharp +public static StoreEditDto StoreEntityToEditDto(StoreReadOnly entity, StoreEditDto dto = null) +``` + + +--- + +#### StoreSaveDtoToEntity + +```csharp +public static Store StoreSaveDtoToEntity(StoreSaveDto dto, Store entity) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/taxclassmapper.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/taxclassmapper.md new file mode 100644 index 00000000000..d4f9140d1df --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/taxclassmapper.md @@ -0,0 +1,53 @@ +--- +title: TaxClassMapper +description: API reference for TaxClassMapper in Umbraco Commerce +--- +## TaxClassMapper + +```csharp +public static class TaxClassMapper +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models.Mappers](README.md) + +### Methods + +#### TaxClassEntitiesToBasicDtos + +```csharp +public static IEnumerable TaxClassEntitiesToBasicDtos( + IEnumerable entities) +``` + + +--- + +#### TaxClassEntityToBasicDto + +```csharp +public static TaxClassBasicDto TaxClassEntityToBasicDto(TaxClassReadOnly entity, + TaxClassBasicDto dto = null) +``` + + +--- + +#### TaxClassEntityToEditDto + +```csharp +public static TaxClassEditDto TaxClassEntityToEditDto(TaxClassReadOnly entity, + TaxClassEditDto dto = null) +``` + + +--- + +#### TaxClassSaveDtoToEntity + +```csharp +public static TaxClass TaxClassSaveDtoToEntity(TaxClassSaveDto dto, TaxClass entity) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/taxratemapper.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/taxratemapper.md new file mode 100644 index 00000000000..f904cf3c817 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-mappers/taxratemapper.md @@ -0,0 +1,70 @@ +--- +title: TaxRateMapper +description: API reference for TaxRateMapper in Umbraco Commerce +--- +## TaxRateMapper + +```csharp +public static class TaxRateMapper +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models.Mappers](README.md) + +### Methods + +#### CountryRegionTaxRateCollectionToDtos + +```csharp +public static List CountryRegionTaxRateCollectionToDtos( + IEnumerable collection) +``` + + +--- + +#### CountryRegionTaxRateDtosToCollection + +```csharp +public static IEnumerable CountryRegionTaxRateDtosToCollection( + IEnumerable dtos) +``` + + +--- + +#### CountryRegionTaxRateDtoToEntity + +```csharp +public static CountryRegionTaxRate CountryRegionTaxRateDtoToEntity(CountryRegionTaxRateDto dto) +``` + + +--- + +#### CountryRegionTaxRateEntityToDto + +```csharp +public static CountryRegionTaxRateDto CountryRegionTaxRateEntityToDto(CountryRegionTaxRate entity) +``` + + +--- + +#### DecimalToTaxRate + +```csharp +public static TaxRate DecimalToTaxRate(decimal value) +``` + + +--- + +#### TaxRateToDecimal + +```csharp +public static decimal TaxRateToDecimal(TaxRate value) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-reporting/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-reporting/README.md new file mode 100644 index 00000000000..76304a3e3de --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-reporting/README.md @@ -0,0 +1,18 @@ +--- +title: Umbraco.Commerce.Cms.Web.Models.Reporting +description: API reference for Umbraco.Commerce.Cms.Web.Models.Reporting in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Web.Models.Reporting namespace + +| Public Type | Description | +| --- | --- | +| class [CartConversionRateDataDto](cartconversionratedatadto.md) | | +| class [CartConversionRatesReportDataDto](cartconversionratesreportdatadto.md) | | +| class [ChartDataDto<TValue>](chartdatadto-1.md) | | +| class [ChartDatasetDto<TValue>](chartdatasetdto-1.md) | | +| class [ChartReportDataDto<TValue>](chartreportdatadto-1.md) | | +| class [ChartReportDataDto<TValue,TChartDataValue>](chartreportdatadto-2.md) | | +| class [ProductSalesDataDto](productsalesdatadto.md) | | +| class [ProductSalesReportDataDto](productsalesreportdatadto.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-reporting/cartconversionratedatadto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-reporting/cartconversionratedatadto.md new file mode 100644 index 00000000000..c2dae3313f1 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-reporting/cartconversionratedatadto.md @@ -0,0 +1,79 @@ +--- +title: CartConversionRateDataDto +description: API reference for CartConversionRateDataDto in Umbraco Commerce +--- +## CartConversionRateDataDto + +```csharp +public class CartConversionRateDataDto +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models.Reporting](README.md) + +### Constructors + +#### CartConversionRateDataDto + +The default constructor. + +```csharp +public CartConversionRateDataDto() +``` + + +### Properties + +#### CurrentCarts + +```csharp +public long CurrentCarts { get; set; } +``` + + +--- + +#### CurrentPercentageOfTotalCarts + +```csharp +public FormattedValueDto CurrentPercentageOfTotalCarts { get; set; } +``` + + +--- + +#### PercentageChange + +```csharp +public FormattedValueDto PercentageChange { get; set; } +``` + + +--- + +#### PercentagePointChange + +```csharp +public FormattedValueDto PercentagePointChange { get; set; } +``` + + +--- + +#### PreviousCarts + +```csharp +public long? PreviousCarts { get; set; } +``` + + +--- + +#### PreviousPercentageOfTotalCarts + +```csharp +public FormattedValueDto PreviousPercentageOfTotalCarts { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-reporting/cartconversionratesreportdatadto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-reporting/cartconversionratesreportdatadto.md new file mode 100644 index 00000000000..5a204c5fc4b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-reporting/cartconversionratesreportdatadto.md @@ -0,0 +1,65 @@ +--- +title: CartConversionRatesReportDataDto +description: API reference for CartConversionRatesReportDataDto in Umbraco Commerce +--- +## CartConversionRatesReportDataDto + +```csharp +public class CartConversionRatesReportDataDto : ChartReportDataDto +``` + +**Inheritance** + +* Class [ChartReportDataDto<TValue,TChartDataValue>](chartreportdatadto-2.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models.Reporting](README.md) + +### Constructors + +#### CartConversionRatesReportDataDto + +The default constructor. + +```csharp +public CartConversionRatesReportDataDto() +``` + + +### Properties + +#### CurrentTotalCarts + +```csharp +public long CurrentTotalCarts { get; set; } +``` + + +--- + +#### PreviousTotalCarts + +```csharp +public long? PreviousTotalCarts { get; set; } +``` + + +--- + +#### TotalCartsFinalized + +```csharp +public CartConversionRateDataDto TotalCartsFinalized { get; set; } +``` + + +--- + +#### TotalCartsReachedCheckout + +```csharp +public CartConversionRateDataDto TotalCartsReachedCheckout { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-reporting/chartdatadto-1.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-reporting/chartdatadto-1.md new file mode 100644 index 00000000000..0a0e639f259 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-reporting/chartdatadto-1.md @@ -0,0 +1,34 @@ +--- +title: ChartDataDto +description: API reference for ChartDataDto in Umbraco Commerce +--- +## ChartDataDto<TValue> + +```csharp +public class ChartDataDto +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models.Reporting](README.md) + +### Constructors + +#### ChartDataDto<TValue> + +The default constructor. + +```csharp +public ChartDataDto() +``` + + +### Properties + +#### Datasets + +```csharp +public virtual IEnumerable> Datasets { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-reporting/chartdatasetdto-1.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-reporting/chartdatasetdto-1.md new file mode 100644 index 00000000000..accb8762cd2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-reporting/chartdatasetdto-1.md @@ -0,0 +1,52 @@ +--- +title: ChartDatasetDto +description: API reference for ChartDatasetDto in Umbraco Commerce +--- +## ChartDatasetDto<TValue> + +```csharp +public class ChartDatasetDto +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models.Reporting](README.md) + +### Constructors + +#### ChartDatasetDto<TValue> + +The default constructor. + +```csharp +public ChartDatasetDto() +``` + + +### Properties + +#### Data + +```csharp +public IEnumerable Data { get; set; } +``` + + +--- + +#### Labels + +```csharp +public IEnumerable Labels { get; set; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-reporting/chartreportdatadto-1.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-reporting/chartreportdatadto-1.md new file mode 100644 index 00000000000..dc8a719f356 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-reporting/chartreportdatadto-1.md @@ -0,0 +1,29 @@ +--- +title: ChartReportDataDto +description: API reference for ChartReportDataDto in Umbraco Commerce +--- +## ChartReportDataDto<TValue> + +```csharp +public class ChartReportDataDto : ChartReportDataDto +``` + +**Inheritance** + +* Class [ChartReportDataDto<TValue,TChartDataValue>](chartreportdatadto-2.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models.Reporting](README.md) + +### Constructors + +#### ChartReportDataDto<TValue> + +The default constructor. + +```csharp +public ChartReportDataDto() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-reporting/chartreportdatadto-2.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-reporting/chartreportdatadto-2.md new file mode 100644 index 00000000000..19e253aed87 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-reporting/chartreportdatadto-2.md @@ -0,0 +1,56 @@ +--- +title: ChartReportDataDto +description: API reference for ChartReportDataDto in Umbraco Commerce +--- +## ChartReportDataDto<TValue,TChartDataValue> + +```csharp +public class ChartReportDataDto : ChartDataDto +``` + +**Inheritance** + +* Class [ChartDataDto<TValue>](chartdatadto-1.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models.Reporting](README.md) + +### Constructors + +#### ChartReportDataDto<TValue,TChartDataValue> + +The default constructor. + +```csharp +public ChartReportDataDto() +``` + + +### Properties + +#### PercentageChange + +```csharp +public virtual FormattedValueDto PercentageChange { get; set; } +``` + + +--- + +#### PercentagePointChange + +```csharp +public virtual FormattedValueDto PercentagePointChange { get; set; } +``` + + +--- + +#### Value + +```csharp +public virtual FormattedValueDto Value { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-reporting/productsalesdatadto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-reporting/productsalesdatadto.md new file mode 100644 index 00000000000..b1553af0ca3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-reporting/productsalesdatadto.md @@ -0,0 +1,79 @@ +--- +title: ProductSalesDataDto +description: API reference for ProductSalesDataDto in Umbraco Commerce +--- +## ProductSalesDataDto + +```csharp +public class ProductSalesDataDto +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models.Reporting](README.md) + +### Constructors + +#### ProductSalesDataDto + +The default constructor. + +```csharp +public ProductSalesDataDto() +``` + + +### Properties + +#### Name + +```csharp +public string Name { get; set; } +``` + + +--- + +#### PercentageChange + +```csharp +public FormattedValueDto PercentageChange { get; set; } +``` + + +--- + +#### ProductReference + +```csharp +public string ProductReference { get; set; } +``` + + +--- + +#### ProductVariantReference + +```csharp +public string ProductVariantReference { get; set; } +``` + + +--- + +#### Sku + +```csharp +public string Sku { get; set; } +``` + + +--- + +#### TotalQuantity + +```csharp +public decimal TotalQuantity { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-reporting/productsalesreportdatadto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-reporting/productsalesreportdatadto.md new file mode 100644 index 00000000000..08bbfa5d4f0 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models-reporting/productsalesreportdatadto.md @@ -0,0 +1,34 @@ +--- +title: ProductSalesReportDataDto +description: API reference for ProductSalesReportDataDto in Umbraco Commerce +--- +## ProductSalesReportDataDto + +```csharp +public class ProductSalesReportDataDto +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models.Reporting](README.md) + +### Constructors + +#### ProductSalesReportDataDto + +The default constructor. + +```csharp +public ProductSalesReportDataDto() +``` + + +### Properties + +#### Products + +```csharp +public IEnumerable Products { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/README.md new file mode 100644 index 00000000000..36e0f429752 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/README.md @@ -0,0 +1,124 @@ +--- +title: Umbraco.Commerce.Cms.Web.Models +description: API reference for Umbraco.Commerce.Cms.Web.Models in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Web.Models namespace + +| Public Type | Description | +| --- | --- | +| class [ActivityLogEntryDto](activitylogentrydto.md) | | +| class [AliasNamePairDto](aliasnamepairdto.md) | | +| class [AllowedCountryDto](allowedcountrydto.md) | | +| class [AllowedCountryRegionDto](allowedcountryregiondto.md) | | +| class [AllowedProductAttributeDto](allowedproductattributedto.md) | | +| class [AttributeCombinationDto](attributecombinationdto.md) | | +| class [AttributeDto](attributedto.md) | | +| class [CartBasicDto](cartbasicdto.md) | | +| class [CartDto](cartdto.md) | | +| class [CartEditDto](carteditdto.md) | | +| class [CartLineDto](cartlinedto.md) | | +| class [CartSaveDto](cartsavedto.md) | | +| class [CartSearchDto](cartsearchdto.md) | | +| class [CountryBasicDto](countrybasicdto.md) | | +| class [CountryDto](countrydto.md) | | +| class [CountryEditDto](countryeditdto.md) | | +| class [CountryRegionTaxRateDto](countryregiontaxratedto.md) | | +| class [CountrySaveDto](countrysavedto.md) | | +| class [CountryWithRegionsBasicDto](countrywithregionsbasicdto.md) | | +| class [CurrencyBasicDto](currencybasicdto.md) | | +| class [CurrencyDto](currencydto.md) | | +| class [CurrencyEditDto](currencyeditdto.md) | | +| class [CurrencySaveDto](currencysavedto.md) | | +| class [DiscountBasicDto](discountbasicdto.md) | | +| class [DiscountCodeDto](discountcodedto.md) | | +| class [DiscountDto](discountdto.md) | | +| class [DiscountEditDto](discounteditdto.md) | | +| class [DiscountRewardConfigDto](discountrewardconfigdto.md) | | +| class [DiscountRuleConfigDto](discountruleconfigdto.md) | | +| class [DiscountSaveDto](discountsavedto.md) | | +| class [EmailTemplateBasicDto](emailtemplatebasicdto.md) | | +| class [EmailTemplateDto](emailtemplatedto.md) | | +| class [EmailTemplateEditDto](emailtemplateeditdto.md) | | +| class [EmailTemplateSaveDto](emailtemplatesavedto.md) | | +| class [EntityBasicDto](entitybasicdto.md) | | +| class [ExportTemplateBasicDto](exporttemplatebasicdto.md) | | +| class [ExportTemplateDto](exporttemplatedto.md) | | +| class [ExportTemplateEditDto](exporttemplateeditdto.md) | | +| class [ExportTemplateSaveDto](exporttemplatesavedto.md) | | +| class [FormattedValueDto<TValue>](formattedvaluedto-1.md) | | +| class [GetAllStockDto](getallstockdto.md) | | +| class [GiftCardBasicDto](giftcardbasicdto.md) | | +| class [GiftCardDto](giftcarddto.md) | | +| class [GiftCardEditDto](giftcardeditdto.md) | | +| class [GiftCardSaveDto](giftcardsavedto.md) | | +| class [GiftCardSearchDto](giftcardsearchdto.md) | | +| interface [IHasPath](ihaspath.md) | | +| class [NamedEntityBasicDto](namedentitybasicdto.md) | | +| class [OrderBasicDto](orderbasicdto.md) | | +| class [OrderDto](orderdto.md) | | +| class [OrderEditDto](ordereditdto.md) | | +| class [OrderLineDto](orderlinedto.md) | | +| class [OrderSaveDto](ordersavedto.md) | | +| class [OrderSearchDto](ordersearchdto.md) | | +| class [OrderStatusBasicDto](orderstatusbasicdto.md) | | +| class [OrderStatusDto](orderstatusdto.md) | | +| class [OrderStatusEditDto](orderstatuseditdto.md) | | +| class [OrderStatusSaveDto](orderstatussavedto.md) | | +| class [PaymentMethodBasicDto](paymentmethodbasicdto.md) | | +| class [PaymentMethodDto](paymentmethoddto.md) | | +| class [PaymentMethodEditDto](paymentmethodeditdto.md) | | +| class [PaymentMethodSaveDto](paymentmethodsavedto.md) | | +| class [PrintTemplateBasicDto](printtemplatebasicdto.md) | | +| class [PrintTemplateDto](printtemplatedto.md) | | +| class [PrintTemplateEditDto](printtemplateeditdto.md) | | +| class [PrintTemplateSaveDto](printtemplatesavedto.md) | | +| class [ProductAttributeBasicDto](productattributebasicdto.md) | | +| class [ProductAttributeDto](productattributedto.md) | | +| class [ProductAttributeEditDto](productattributeeditdto.md) | | +| class [ProductAttributePresetBasicDto](productattributepresetbasicdto.md) | | +| class [ProductAttributePresetDto](productattributepresetdto.md) | | +| class [ProductAttributePresetEditDto](productattributepreseteditdto.md) | | +| class [ProductAttributePresetSaveDto](productattributepresetsavedto.md) | | +| class [ProductAttributeSaveDto](productattributesavedto.md) | | +| class [ProductAttributeValueDto](productattributevaluedto.md) | | +| class [ProductPriceDto](productpricedto.md) | | +| class [ProductReferencePairDto](productreferencepairdto.md) | | +| class [ProductSearchDto](productsearchdto.md) | | +| class [ProductStockLevelDto](productstockleveldto.md) | | +| class [ProductSummaryCommonDto](productsummarycommondto.md) | | +| class [ProductSummaryDto](productsummarydto.md) | | +| class [ProductVariantSearchDto](productvariantsearchdto.md) | | +| class [ProductVariantSummaryDto](productvariantsummarydto.md) | | +| class [PropertyDto](propertydto.md) | | +| class [PropertyValueDto](propertyvaluedto.md) | | +| class [RegionBasicDto](regionbasicdto.md) | | +| class [RegionDto](regiondto.md) | | +| class [RegionEditDto](regioneditdto.md) | | +| class [RegionSaveDto](regionsavedto.md) | | +| class [RegisteredCustomerInfoDto](registeredcustomerinfodto.md) | | +| abstract class [SearchDtoBase](searchdtobase.md) | | +| class [SendDiscountEmailDto](senddiscountemaildto.md) | | +| class [SendEmailDto](sendemaildto.md) | | +| class [SendGiftCardEmailDto](sendgiftcardemaildto.md) | | +| class [SendOrderEmailDto](sendorderemaildto.md) | | +| class [ServicePriceDto](servicepricedto.md) | | +| class [ShippingMethodBasicDto](shippingmethodbasicdto.md) | | +| class [ShippingMethodDto](shippingmethoddto.md) | | +| class [ShippingMethodEditDto](shippingmethodeditdto.md) | | +| class [ShippingMethodSaveDto](shippingmethodsavedto.md) | | +| class [SortEntitiesPostDto](sortentitiespostdto.md) | | +| class [StockDto](stockdto.md) | | +| class [StoreActionDto](storeactiondto.md) | | +| class [StoreActionsDto](storeactionsdto.md) | | +| class [StoreBasicDto](storebasicdto.md) | | +| class [StoreDto](storedto.md) | | +| class [StoreEditDto](storeeditdto.md) | | +| class [StoreSaveDto](storesavedto.md) | | +| class [StoreStatsDto](storestatsdto.md) | | +| class [StoreSummaryDto](storesummarydto.md) | | +| class [TaxClassBasicDto](taxclassbasicdto.md) | | +| class [TaxClassDto](taxclassdto.md) | | +| class [TaxClassEditDto](taxclasseditdto.md) | | +| class [TaxClassSaveDto](taxclasssavedto.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/activitylogentrydto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/activitylogentrydto.md new file mode 100644 index 00000000000..cac235b1783 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/activitylogentrydto.md @@ -0,0 +1,133 @@ +--- +title: ActivityLogEntryDto +description: API reference for ActivityLogEntryDto in Umbraco Commerce +--- +## ActivityLogEntryDto + +```csharp +public class ActivityLogEntryDto +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### ActivityLogEntryDto + +The default constructor. + +```csharp +public ActivityLogEntryDto() +``` + + +### Properties + +#### BadgeColorClass + +```csharp +public string BadgeColorClass { get; set; } +``` + + +--- + +#### BadgeLabel + +```csharp +public string BadgeLabel { get; set; } +``` + + +--- + +#### EntityId + +```csharp +public Guid EntityId { get; set; } +``` + + +--- + +#### EntitySummary + +```csharp +public string EntitySummary { get; set; } +``` + + +--- + +#### EntityType + +```csharp +public string EntityType { get; set; } +``` + + +--- + +#### EventDateUtc + +```csharp +public DateTime EventDateUtc { get; set; } +``` + + +--- + +#### EventSummary + +```csharp +public string EventSummary { get; set; } +``` + + +--- + +#### EventType + +```csharp +public string EventType { get; set; } +``` + + +--- + +#### RoutePath + +```csharp +public string RoutePath { get; set; } +``` + + +--- + +#### StoreId + +```csharp +public Guid StoreId { get; set; } +``` + + +--- + +#### UserId + +```csharp +public int UserId { get; set; } +``` + + +--- + +#### UserName + +```csharp +public string UserName { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/aliasnamepairdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/aliasnamepairdto.md new file mode 100644 index 00000000000..2236e4756b7 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/aliasnamepairdto.md @@ -0,0 +1,43 @@ +--- +title: AliasNamePairDto +description: API reference for AliasNamePairDto in Umbraco Commerce +--- +## AliasNamePairDto + +```csharp +public class AliasNamePairDto +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### AliasNamePairDto + +The default constructor. + +```csharp +public AliasNamePairDto() +``` + + +### Properties + +#### Alias + +```csharp +public string Alias { get; set; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/allowedcountrydto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/allowedcountrydto.md new file mode 100644 index 00000000000..0aab595cc4b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/allowedcountrydto.md @@ -0,0 +1,34 @@ +--- +title: AllowedCountryDto +description: API reference for AllowedCountryDto in Umbraco Commerce +--- +## AllowedCountryDto + +```csharp +public class AllowedCountryDto +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### AllowedCountryDto + +The default constructor. + +```csharp +public AllowedCountryDto() +``` + + +### Properties + +#### CountryId + +```csharp +public Guid CountryId { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/allowedcountryregiondto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/allowedcountryregiondto.md new file mode 100644 index 00000000000..2014535609f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/allowedcountryregiondto.md @@ -0,0 +1,38 @@ +--- +title: AllowedCountryRegionDto +description: API reference for AllowedCountryRegionDto in Umbraco Commerce +--- +## AllowedCountryRegionDto + +```csharp +public class AllowedCountryRegionDto : AllowedCountryDto +``` + +**Inheritance** + +* Class [AllowedCountryDto](allowedcountrydto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### AllowedCountryRegionDto + +The default constructor. + +```csharp +public AllowedCountryRegionDto() +``` + + +### Properties + +#### RegionId + +```csharp +public Guid? RegionId { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/allowedproductattributedto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/allowedproductattributedto.md new file mode 100644 index 00000000000..7ff1e5a23d4 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/allowedproductattributedto.md @@ -0,0 +1,43 @@ +--- +title: AllowedProductAttributeDto +description: API reference for AllowedProductAttributeDto in Umbraco Commerce +--- +## AllowedProductAttributeDto + +```csharp +public class AllowedProductAttributeDto +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### AllowedProductAttributeDto + +The default constructor. + +```csharp +public AllowedProductAttributeDto() +``` + + +### Properties + +#### AllowedValueAliases + +```csharp +public List AllowedValueAliases { get; set; } +``` + + +--- + +#### ProductAttributeAlias + +```csharp +public string ProductAttributeAlias { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/attributecombinationdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/attributecombinationdto.md new file mode 100644 index 00000000000..aeb630d4474 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/attributecombinationdto.md @@ -0,0 +1,43 @@ +--- +title: AttributeCombinationDto +description: API reference for AttributeCombinationDto in Umbraco Commerce +--- +## AttributeCombinationDto + +```csharp +public class AttributeCombinationDto +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### AttributeCombinationDto + +The default constructor. + +```csharp +public AttributeCombinationDto() +``` + + +### Properties + +#### Name + +```csharp +public AliasNamePairDto Name { get; set; } +``` + + +--- + +#### Value + +```csharp +public AliasNamePairDto Value { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/attributedto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/attributedto.md new file mode 100644 index 00000000000..1ba6a2ec4cd --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/attributedto.md @@ -0,0 +1,38 @@ +--- +title: AttributeDto +description: API reference for AttributeDto in Umbraco Commerce +--- +## AttributeDto + +```csharp +public class AttributeDto : AliasNamePairDto +``` + +**Inheritance** + +* Class [AliasNamePairDto](aliasnamepairdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### AttributeDto + +The default constructor. + +```csharp +public AttributeDto() +``` + + +### Properties + +#### Values + +```csharp +public IEnumerable Values { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/cartbasicdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/cartbasicdto.md new file mode 100644 index 00000000000..ba2a0974ab5 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/cartbasicdto.md @@ -0,0 +1,128 @@ +--- +title: CartBasicDto +description: API reference for CartBasicDto in Umbraco Commerce +--- +## CartBasicDto + +```csharp +public class CartBasicDto : EntityBasicDto +``` + +**Inheritance** + +* Class [EntityBasicDto](entitybasicdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### CartBasicDto + +The default constructor. + +```csharp +public CartBasicDto() +``` + + +### Properties + +#### CartNumber + +```csharp +public string CartNumber { get; set; } +``` + + +--- + +#### CreateDate + +```csharp +public DateTime CreateDate { get; set; } +``` + + +--- + +#### CustomerEmail + +```csharp +public string CustomerEmail { get; set; } +``` + + +--- + +#### CustomerFirstName + +```csharp +public string CustomerFirstName { get; set; } +``` + + +--- + +#### CustomerFullName + +```csharp +public string CustomerFullName { get; } +``` + + +--- + +#### CustomerLastName + +```csharp +public string CustomerLastName { get; set; } +``` + + +--- + +#### Properties + +```csharp +public Dictionary Properties { get; set; } +``` + + +--- + +#### StoreId + +```csharp +public Guid StoreId { get; set; } +``` + + +--- + +#### TotalPrice + +```csharp +public string TotalPrice { get; set; } +``` + + +--- + +#### TransactionAmount + +```csharp +public string TransactionAmount { get; set; } +``` + + +--- + +#### UpdateDate + +```csharp +public DateTime UpdateDate { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/cartdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/cartdto.md new file mode 100644 index 00000000000..34789f18a4e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/cartdto.md @@ -0,0 +1,371 @@ +--- +title: CartDto +description: API reference for CartDto in Umbraco Commerce +--- +## CartDto + +```csharp +public class CartDto : CartBasicDto +``` + +**Inheritance** + +* Class [CartBasicDto](cartbasicdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### CartDto + +The default constructor. + +```csharp +public CartDto() +``` + + +### Properties + +#### AppliedDiscountCodes + +```csharp +public List AppliedDiscountCodes { get; set; } +``` + + +--- + +#### AppliedGiftCardCodes + +```csharp +public List AppliedGiftCardCodes { get; set; } +``` + + +--- + +#### CurrencyCode + +```csharp +public string CurrencyCode { get; set; } +``` + + +--- + +#### CurrencyId + +```csharp +public Guid CurrencyId { get; set; } +``` + + +--- + +#### CustomerReference + +```csharp +public string CustomerReference { get; set; } +``` + + +--- + +#### LanguageIsoCode + +```csharp +public string LanguageIsoCode { get; set; } +``` + + +--- + +#### OrderLines + +```csharp +public List OrderLines { get; set; } +``` + + +--- + +#### OrderStatusCode + +```csharp +public int OrderStatusCode { get; set; } +``` + + +--- + +#### PaymentCountry + +```csharp +public CountryBasicDto PaymentCountry { get; set; } +``` + + +--- + +#### PaymentCountryId + +```csharp +public Guid? PaymentCountryId { get; set; } +``` + + +--- + +#### PaymentMethod + +```csharp +public PaymentMethodBasicDto PaymentMethod { get; set; } +``` + + +--- + +#### PaymentMethodId + +```csharp +public Guid? PaymentMethodId { get; set; } +``` + + +--- + +#### PaymentMethodPrice + +```csharp +public string PaymentMethodPrice { get; set; } +``` + + +--- + +#### PaymentMethodPriceWithoutAdjustments + +```csharp +public string PaymentMethodPriceWithoutAdjustments { get; set; } +``` + + +--- + +#### PaymentRegion + +```csharp +public RegionBasicDto PaymentRegion { get; set; } +``` + + +--- + +#### PaymentRegionId + +```csharp +public Guid? PaymentRegionId { get; set; } +``` + + +--- + +#### ShippingCountry + +```csharp +public CountryBasicDto ShippingCountry { get; set; } +``` + + +--- + +#### ShippingCountryId + +```csharp +public Guid? ShippingCountryId { get; set; } +``` + + +--- + +#### ShippingMethod + +```csharp +public ShippingMethodBasicDto ShippingMethod { get; set; } +``` + + +--- + +#### ShippingMethodId + +```csharp +public Guid? ShippingMethodId { get; set; } +``` + + +--- + +#### ShippingMethodPrice + +```csharp +public string ShippingMethodPrice { get; set; } +``` + + +--- + +#### ShippingMethodPriceWithoutAdjustments + +```csharp +public string ShippingMethodPriceWithoutAdjustments { get; set; } +``` + + +--- + +#### ShippingRegion + +```csharp +public RegionBasicDto ShippingRegion { get; set; } +``` + + +--- + +#### ShippingRegionId + +```csharp +public Guid? ShippingRegionId { get; set; } +``` + + +--- + +#### SubtotalPrice + +```csharp +public string SubtotalPrice { get; set; } +``` + + +--- + +#### SubtotalPriceDiscountAdjustment + +```csharp +public string SubtotalPriceDiscountAdjustment { get; set; } +``` + + +--- + +#### SubtotalPriceFeesAdjustment + +```csharp +public string SubtotalPriceFeesAdjustment { get; set; } +``` + + +--- + +#### SubtotalPriceWithPreviousAdjustments + +```csharp +public string SubtotalPriceWithPreviousAdjustments { get; set; } +``` + + +--- + +#### Tags + +```csharp +public List Tags { get; set; } +``` + + +--- + +#### TotalGiftCardAdjustment + +```csharp +public string TotalGiftCardAdjustment { get; set; } +``` + + +--- + +#### TotalPriceDiscountAdjustment + +```csharp +public string TotalPriceDiscountAdjustment { get; set; } +``` + + +--- + +#### TotalPriceFeesAdjustment + +```csharp +public string TotalPriceFeesAdjustment { get; set; } +``` + + +--- + +#### TotalPriceTax + +```csharp +public string TotalPriceTax { get; set; } +``` + + +--- + +#### TotalPriceWithPreviousAdjustments + +```csharp +public string TotalPriceWithPreviousAdjustments { get; set; } +``` + + +--- + +#### TotalReceived + +```csharp +public string TotalReceived { get; set; } +``` + + +--- + +#### TransactionAmountAuthorized + +```csharp +public string TransactionAmountAuthorized { get; set; } +``` + + +--- + +#### TransactionFee + +```csharp +public string TransactionFee { get; set; } +``` + + +--- + +#### ZeroAmount + +```csharp +public string ZeroAmount { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/carteditdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/carteditdto.md new file mode 100644 index 00000000000..c2b3d36d472 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/carteditdto.md @@ -0,0 +1,48 @@ +--- +title: CartEditDto +description: API reference for CartEditDto in Umbraco Commerce +--- +## CartEditDto + +```csharp +public class CartEditDto : CartDto, IHasPath, INotificationModel +``` + +**Inheritance** + +* Class [CartDto](cartdto.md) +* interface [IHasPath](ihaspath.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### CartEditDto + +The default constructor. + +```csharp +public CartEditDto() +``` + + +### Properties + +#### Notifications + +```csharp +public List Notifications { get; set; } +``` + + +--- + +#### Path + +```csharp +public List Path { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/cartlinedto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/cartlinedto.md new file mode 100644 index 00000000000..b37e9d9a727 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/cartlinedto.md @@ -0,0 +1,178 @@ +--- +title: CartLineDto +description: API reference for CartLineDto in Umbraco Commerce +--- +## CartLineDto + +```csharp +public class CartLineDto +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### CartLineDto + +The default constructor. + +```csharp +public CartLineDto() +``` + + +### Properties + +#### Attributes + +```csharp +public List Attributes { get; set; } +``` + + +--- + +#### BasePrice + +```csharp +public string BasePrice { get; set; } +``` + + +--- + +#### BasePriceWithoutAdjustments + +```csharp +public string BasePriceWithoutAdjustments { get; set; } +``` + + +--- + +#### BundleId + +```csharp +public string BundleId { get; set; } +``` + + +--- + +#### Id + +```csharp +public Guid Id { get; set; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; set; } +``` + + +--- + +#### OrderLines + +```csharp +public List OrderLines { get; set; } +``` + + +--- + +#### ParentBundleId + +```csharp +public string ParentBundleId { get; set; } +``` + + +--- + +#### ProductReference + +```csharp +public string ProductReference { get; set; } +``` + + +--- + +#### ProductVariantReference + +```csharp +public string ProductVariantReference { get; set; } +``` + + +--- + +#### Properties + +```csharp +public Dictionary Properties { get; set; } +``` + + +--- + +#### Quantity + +```csharp +public decimal Quantity { get; set; } +``` + + +--- + +#### Sku + +```csharp +public string Sku { get; set; } +``` + + +--- + +#### TotalPrice + +```csharp +public string TotalPrice { get; set; } +``` + + +--- + +#### TotalPriceWithoutAdjustments + +```csharp +public string TotalPriceWithoutAdjustments { get; set; } +``` + + +--- + +#### UnitPrice + +```csharp +public string UnitPrice { get; set; } +``` + + +--- + +#### UnitPriceWithoutAdjustments + +```csharp +public string UnitPriceWithoutAdjustments { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/cartsavedto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/cartsavedto.md new file mode 100644 index 00000000000..2ae5829ab5f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/cartsavedto.md @@ -0,0 +1,47 @@ +--- +title: CartSaveDto +description: API reference for CartSaveDto in Umbraco Commerce +--- +## CartSaveDto + +```csharp +public class CartSaveDto : CartDto, IValidatableObject +``` + +**Inheritance** + +* Class [CartDto](cartdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### CartSaveDto + +The default constructor. + +```csharp +public CartSaveDto() +``` + + +### Properties + +#### DiscountOrGiftCardCode + +```csharp +public string DiscountOrGiftCardCode { get; set; } +``` + + +### Methods + +#### Validate + +```csharp +public IEnumerable Validate(ValidationContext validationContext) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/cartsearchdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/cartsearchdto.md new file mode 100644 index 00000000000..ce97ea9d632 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/cartsearchdto.md @@ -0,0 +1,56 @@ +--- +title: CartSearchDto +description: API reference for CartSearchDto in Umbraco Commerce +--- +## CartSearchDto + +```csharp +public class CartSearchDto : SearchDtoBase +``` + +**Inheritance** + +* Class [SearchDtoBase](searchdtobase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### CartSearchDto + +The default constructor. + +```csharp +public CartSearchDto() +``` + + +### Properties + +#### CartStatuses + +```csharp +public string[] CartStatuses { get; set; } +``` + + +--- + +#### SearchTerm + +```csharp +public string SearchTerm { get; set; } +``` + + +--- + +#### StoreId + +```csharp +public Guid StoreId { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/countrybasicdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/countrybasicdto.md new file mode 100644 index 00000000000..4717f779bd0 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/countrybasicdto.md @@ -0,0 +1,56 @@ +--- +title: CountryBasicDto +description: API reference for CountryBasicDto in Umbraco Commerce +--- +## CountryBasicDto + +```csharp +public class CountryBasicDto : NamedEntityBasicDto +``` + +**Inheritance** + +* Class [NamedEntityBasicDto](namedentitybasicdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### CountryBasicDto + +The default constructor. + +```csharp +public CountryBasicDto() +``` + + +### Properties + +#### Code + +```csharp +public string Code { get; set; } +``` + + +--- + +#### SortOrder + +```csharp +public int SortOrder { get; set; } +``` + + +--- + +#### StoreId + +```csharp +public Guid StoreId { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/countrydto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/countrydto.md new file mode 100644 index 00000000000..c336fe94c4d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/countrydto.md @@ -0,0 +1,56 @@ +--- +title: CountryDto +description: API reference for CountryDto in Umbraco Commerce +--- +## CountryDto + +```csharp +public class CountryDto : CountryBasicDto +``` + +**Inheritance** + +* Class [CountryBasicDto](countrybasicdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### CountryDto + +The default constructor. + +```csharp +public CountryDto() +``` + + +### Properties + +#### DefaultCurrencyId + +```csharp +public Guid? DefaultCurrencyId { get; set; } +``` + + +--- + +#### DefaultPaymentMethodId + +```csharp +public Guid? DefaultPaymentMethodId { get; set; } +``` + + +--- + +#### DefaultShippingMethodId + +```csharp +public Guid? DefaultShippingMethodId { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/countryeditdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/countryeditdto.md new file mode 100644 index 00000000000..695b8c23a95 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/countryeditdto.md @@ -0,0 +1,48 @@ +--- +title: CountryEditDto +description: API reference for CountryEditDto in Umbraco Commerce +--- +## CountryEditDto + +```csharp +public class CountryEditDto : CountryDto, IHasPath, INotificationModel +``` + +**Inheritance** + +* Class [CountryDto](countrydto.md) +* interface [IHasPath](ihaspath.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### CountryEditDto + +The default constructor. + +```csharp +public CountryEditDto() +``` + + +### Properties + +#### Notifications + +```csharp +public List Notifications { get; set; } +``` + + +--- + +#### Path + +```csharp +public List Path { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/countryregiontaxratedto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/countryregiontaxratedto.md new file mode 100644 index 00000000000..bb1ab565695 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/countryregiontaxratedto.md @@ -0,0 +1,52 @@ +--- +title: CountryRegionTaxRateDto +description: API reference for CountryRegionTaxRateDto in Umbraco Commerce +--- +## CountryRegionTaxRateDto + +```csharp +public class CountryRegionTaxRateDto +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### CountryRegionTaxRateDto + +The default constructor. + +```csharp +public CountryRegionTaxRateDto() +``` + + +### Properties + +#### CountryId + +```csharp +public Guid CountryId { get; set; } +``` + + +--- + +#### RegionId + +```csharp +public Guid? RegionId { get; set; } +``` + + +--- + +#### TaxRate + +```csharp +public decimal TaxRate { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/countrysavedto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/countrysavedto.md new file mode 100644 index 00000000000..c92620369b3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/countrysavedto.md @@ -0,0 +1,47 @@ +--- +title: CountrySaveDto +description: API reference for CountrySaveDto in Umbraco Commerce +--- +## CountrySaveDto + +```csharp +public class CountrySaveDto : CountryDto, IValidatableObject +``` + +**Inheritance** + +* Class [CountryDto](countrydto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### CountrySaveDto + +The default constructor. + +```csharp +public CountrySaveDto() +``` + + +### Properties + +#### PresetIsoCode + +```csharp +public string PresetIsoCode { get; set; } +``` + + +### Methods + +#### Validate + +```csharp +public IEnumerable Validate(ValidationContext validationContext) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/countrywithregionsbasicdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/countrywithregionsbasicdto.md new file mode 100644 index 00000000000..91a794d1bd8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/countrywithregionsbasicdto.md @@ -0,0 +1,38 @@ +--- +title: CountryWithRegionsBasicDto +description: API reference for CountryWithRegionsBasicDto in Umbraco Commerce +--- +## CountryWithRegionsBasicDto + +```csharp +public class CountryWithRegionsBasicDto : CountryBasicDto +``` + +**Inheritance** + +* Class [CountryBasicDto](countrybasicdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### CountryWithRegionsBasicDto + +The default constructor. + +```csharp +public CountryWithRegionsBasicDto() +``` + + +### Properties + +#### Regions + +```csharp +public List Regions { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/currencybasicdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/currencybasicdto.md new file mode 100644 index 00000000000..bb7debc6a35 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/currencybasicdto.md @@ -0,0 +1,56 @@ +--- +title: CurrencyBasicDto +description: API reference for CurrencyBasicDto in Umbraco Commerce +--- +## CurrencyBasicDto + +```csharp +public class CurrencyBasicDto : NamedEntityBasicDto +``` + +**Inheritance** + +* Class [NamedEntityBasicDto](namedentitybasicdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### CurrencyBasicDto + +The default constructor. + +```csharp +public CurrencyBasicDto() +``` + + +### Properties + +#### Code + +```csharp +public string Code { get; set; } +``` + + +--- + +#### SortOrder + +```csharp +public int SortOrder { get; set; } +``` + + +--- + +#### StoreId + +```csharp +public Guid StoreId { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/currencydto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/currencydto.md new file mode 100644 index 00000000000..eff1e511a93 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/currencydto.md @@ -0,0 +1,56 @@ +--- +title: CurrencyDto +description: API reference for CurrencyDto in Umbraco Commerce +--- +## CurrencyDto + +```csharp +public class CurrencyDto : CurrencyBasicDto +``` + +**Inheritance** + +* Class [CurrencyBasicDto](currencybasicdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### CurrencyDto + +The default constructor. + +```csharp +public CurrencyDto() +``` + + +### Properties + +#### AllowedCountries + +```csharp +public List AllowedCountries { get; set; } +``` + + +--- + +#### CultureName + +```csharp +public string CultureName { get; set; } +``` + + +--- + +#### FormatTemplate + +```csharp +public string FormatTemplate { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/currencyeditdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/currencyeditdto.md new file mode 100644 index 00000000000..16abec0893e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/currencyeditdto.md @@ -0,0 +1,48 @@ +--- +title: CurrencyEditDto +description: API reference for CurrencyEditDto in Umbraco Commerce +--- +## CurrencyEditDto + +```csharp +public class CurrencyEditDto : CurrencyDto, IHasPath, INotificationModel +``` + +**Inheritance** + +* Class [CurrencyDto](currencydto.md) +* interface [IHasPath](ihaspath.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### CurrencyEditDto + +The default constructor. + +```csharp +public CurrencyEditDto() +``` + + +### Properties + +#### Notifications + +```csharp +public List Notifications { get; set; } +``` + + +--- + +#### Path + +```csharp +public List Path { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/currencysavedto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/currencysavedto.md new file mode 100644 index 00000000000..4bd265d9687 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/currencysavedto.md @@ -0,0 +1,38 @@ +--- +title: CurrencySaveDto +description: API reference for CurrencySaveDto in Umbraco Commerce +--- +## CurrencySaveDto + +```csharp +public class CurrencySaveDto : CurrencyDto, IValidatableObject +``` + +**Inheritance** + +* Class [CurrencyDto](currencydto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### CurrencySaveDto + +The default constructor. + +```csharp +public CurrencySaveDto() +``` + + +### Methods + +#### Validate + +```csharp +public IEnumerable Validate(ValidationContext validationContext) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/discountbasicdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/discountbasicdto.md new file mode 100644 index 00000000000..79137c9d429 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/discountbasicdto.md @@ -0,0 +1,110 @@ +--- +title: DiscountBasicDto +description: API reference for DiscountBasicDto in Umbraco Commerce +--- +## DiscountBasicDto + +```csharp +public class DiscountBasicDto : NamedEntityBasicDto +``` + +**Inheritance** + +* Class [NamedEntityBasicDto](namedentitybasicdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### DiscountBasicDto + +The default constructor. + +```csharp +public DiscountBasicDto() +``` + + +### Properties + +#### Alias + +```csharp +public string Alias { get; set; } +``` + + +--- + +#### BlockFurtherDiscounts + +```csharp +public bool BlockFurtherDiscounts { get; set; } +``` + + +--- + +#### BlockIfPreviousDiscounts + +```csharp +public bool BlockIfPreviousDiscounts { get; set; } +``` + + +--- + +#### SortOrder + +```csharp +public int SortOrder { get; set; } +``` + + +--- + +#### Status + +```csharp +public string Status { get; set; } +``` + + +--- + +#### StatusColor + +```csharp +public string StatusColor { get; set; } +``` + + +--- + +#### StoreId + +```csharp +public Guid StoreId { get; set; } +``` + + +--- + +#### Type + +```csharp +public string Type { get; set; } +``` + + +--- + +#### TypeColor + +```csharp +public string TypeColor { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/discountcodedto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/discountcodedto.md new file mode 100644 index 00000000000..15ce847ae22 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/discountcodedto.md @@ -0,0 +1,61 @@ +--- +title: DiscountCodeDto +description: API reference for DiscountCodeDto in Umbraco Commerce +--- +## DiscountCodeDto + +```csharp +public class DiscountCodeDto +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### DiscountCodeDto + +The default constructor. + +```csharp +public DiscountCodeDto() +``` + + +### Properties + +#### Code + +```csharp +public string Code { get; set; } +``` + + +--- + +#### Id + +```csharp +public Guid Id { get; set; } +``` + + +--- + +#### IsUnlimited + +```csharp +public bool IsUnlimited { get; set; } +``` + + +--- + +#### UsageLimit + +```csharp +public int? UsageLimit { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/discountdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/discountdto.md new file mode 100644 index 00000000000..cbda0538759 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/discountdto.md @@ -0,0 +1,83 @@ +--- +title: DiscountDto +description: API reference for DiscountDto in Umbraco Commerce +--- +## DiscountDto + +```csharp +public class DiscountDto : DiscountBasicDto +``` + +**Inheritance** + +* Class [DiscountBasicDto](discountbasicdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### DiscountDto + +The default constructor. + +```csharp +public DiscountDto() +``` + + +### Properties + +#### Codes + +```csharp +public List Codes { get; set; } +``` + + +--- + +#### ExpiryDate + +```csharp +public DateTime? ExpiryDate { get; set; } +``` + + +--- + +#### IsActive + +```csharp +public bool IsActive { get; set; } +``` + + +--- + +#### Rewards + +```csharp +public List Rewards { get; set; } +``` + + +--- + +#### Rules + +```csharp +public DiscountRuleConfigDto Rules { get; set; } +``` + + +--- + +#### StartDate + +```csharp +public DateTime? StartDate { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/discounteditdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/discounteditdto.md new file mode 100644 index 00000000000..035a769ca19 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/discounteditdto.md @@ -0,0 +1,48 @@ +--- +title: DiscountEditDto +description: API reference for DiscountEditDto in Umbraco Commerce +--- +## DiscountEditDto + +```csharp +public class DiscountEditDto : DiscountDto, IHasPath, INotificationModel +``` + +**Inheritance** + +* Class [DiscountDto](discountdto.md) +* interface [IHasPath](ihaspath.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### DiscountEditDto + +The default constructor. + +```csharp +public DiscountEditDto() +``` + + +### Properties + +#### Notifications + +```csharp +public List Notifications { get; set; } +``` + + +--- + +#### Path + +```csharp +public List Path { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/discountrewardconfigdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/discountrewardconfigdto.md new file mode 100644 index 00000000000..81514918342 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/discountrewardconfigdto.md @@ -0,0 +1,52 @@ +--- +title: DiscountRewardConfigDto +description: API reference for DiscountRewardConfigDto in Umbraco Commerce +--- +## DiscountRewardConfigDto + +```csharp +public class DiscountRewardConfigDto +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### DiscountRewardConfigDto + +The default constructor. + +```csharp +public DiscountRewardConfigDto() +``` + + +### Properties + +#### Id + +```csharp +public Guid Id { get; set; } +``` + + +--- + +#### RewardProviderAlias + +```csharp +public string RewardProviderAlias { get; set; } +``` + + +--- + +#### Settings + +```csharp +public IDictionary Settings { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/discountruleconfigdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/discountruleconfigdto.md new file mode 100644 index 00000000000..a60343a77ea --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/discountruleconfigdto.md @@ -0,0 +1,61 @@ +--- +title: DiscountRuleConfigDto +description: API reference for DiscountRuleConfigDto in Umbraco Commerce +--- +## DiscountRuleConfigDto + +```csharp +public class DiscountRuleConfigDto +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### DiscountRuleConfigDto + +The default constructor. + +```csharp +public DiscountRuleConfigDto() +``` + + +### Properties + +#### Children + +```csharp +public IList Children { get; set; } +``` + + +--- + +#### Id + +```csharp +public Guid Id { get; set; } +``` + + +--- + +#### RuleProviderAlias + +```csharp +public string RuleProviderAlias { get; set; } +``` + + +--- + +#### Settings + +```csharp +public IDictionary Settings { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/discountsavedto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/discountsavedto.md new file mode 100644 index 00000000000..14166499d17 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/discountsavedto.md @@ -0,0 +1,38 @@ +--- +title: DiscountSaveDto +description: API reference for DiscountSaveDto in Umbraco Commerce +--- +## DiscountSaveDto + +```csharp +public class DiscountSaveDto : DiscountDto, IValidatableObject +``` + +**Inheritance** + +* Class [DiscountDto](discountdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### DiscountSaveDto + +The default constructor. + +```csharp +public DiscountSaveDto() +``` + + +### Methods + +#### Validate + +```csharp +public IEnumerable Validate(ValidationContext validationContext) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/emailtemplatebasicdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/emailtemplatebasicdto.md new file mode 100644 index 00000000000..35ef63c4f41 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/emailtemplatebasicdto.md @@ -0,0 +1,65 @@ +--- +title: EmailTemplateBasicDto +description: API reference for EmailTemplateBasicDto in Umbraco Commerce +--- +## EmailTemplateBasicDto + +```csharp +public class EmailTemplateBasicDto : NamedEntityBasicDto +``` + +**Inheritance** + +* Class [NamedEntityBasicDto](namedentitybasicdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### EmailTemplateBasicDto + +The default constructor. + +```csharp +public EmailTemplateBasicDto() +``` + + +### Properties + +#### Alias + +```csharp +public string Alias { get; set; } +``` + + +--- + +#### Category + +```csharp +public string Category { get; set; } +``` + + +--- + +#### SortOrder + +```csharp +public int SortOrder { get; set; } +``` + + +--- + +#### StoreId + +```csharp +public Guid StoreId { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/emailtemplatedto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/emailtemplatedto.md new file mode 100644 index 00000000000..a841ff72fc5 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/emailtemplatedto.md @@ -0,0 +1,110 @@ +--- +title: EmailTemplateDto +description: API reference for EmailTemplateDto in Umbraco Commerce +--- +## EmailTemplateDto + +```csharp +public class EmailTemplateDto : EmailTemplateBasicDto +``` + +**Inheritance** + +* Class [EmailTemplateBasicDto](emailtemplatebasicdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### EmailTemplateDto + +The default constructor. + +```csharp +public EmailTemplateDto() +``` + + +### Properties + +#### BccAddresses + +```csharp +public string BccAddresses { get; set; } +``` + + +--- + +#### CcAddresses + +```csharp +public string CcAddresses { get; set; } +``` + + +--- + +#### ReplyToAddresses + +```csharp +public string ReplyToAddresses { get; set; } +``` + + +--- + +#### SenderAddress + +```csharp +public string SenderAddress { get; set; } +``` + + +--- + +#### SenderName + +```csharp +public string SenderName { get; set; } +``` + + +--- + +#### SendToCustomer + +```csharp +public bool SendToCustomer { get; set; } +``` + + +--- + +#### Subject + +```csharp +public string Subject { get; set; } +``` + + +--- + +#### TemplateView + +```csharp +public string TemplateView { get; set; } +``` + + +--- + +#### ToAddresses + +```csharp +public string ToAddresses { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/emailtemplateeditdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/emailtemplateeditdto.md new file mode 100644 index 00000000000..fc4ce8f8790 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/emailtemplateeditdto.md @@ -0,0 +1,48 @@ +--- +title: EmailTemplateEditDto +description: API reference for EmailTemplateEditDto in Umbraco Commerce +--- +## EmailTemplateEditDto + +```csharp +public class EmailTemplateEditDto : EmailTemplateDto, IHasPath, INotificationModel +``` + +**Inheritance** + +* Class [EmailTemplateDto](emailtemplatedto.md) +* interface [IHasPath](ihaspath.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### EmailTemplateEditDto + +The default constructor. + +```csharp +public EmailTemplateEditDto() +``` + + +### Properties + +#### Notifications + +```csharp +public List Notifications { get; set; } +``` + + +--- + +#### Path + +```csharp +public List Path { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/emailtemplatesavedto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/emailtemplatesavedto.md new file mode 100644 index 00000000000..6bbd9dad322 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/emailtemplatesavedto.md @@ -0,0 +1,38 @@ +--- +title: EmailTemplateSaveDto +description: API reference for EmailTemplateSaveDto in Umbraco Commerce +--- +## EmailTemplateSaveDto + +```csharp +public class EmailTemplateSaveDto : EmailTemplateDto, IValidatableObject +``` + +**Inheritance** + +* Class [EmailTemplateDto](emailtemplatedto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### EmailTemplateSaveDto + +The default constructor. + +```csharp +public EmailTemplateSaveDto() +``` + + +### Methods + +#### Validate + +```csharp +public IEnumerable Validate(ValidationContext validationContext) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/entitybasicdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/entitybasicdto.md new file mode 100644 index 00000000000..8351ba3e26e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/entitybasicdto.md @@ -0,0 +1,52 @@ +--- +title: EntityBasicDto +description: API reference for EntityBasicDto in Umbraco Commerce +--- +## EntityBasicDto + +```csharp +public class EntityBasicDto +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### EntityBasicDto + +The default constructor. + +```csharp +public EntityBasicDto() +``` + + +### Properties + +#### EntityType + +```csharp +public string EntityType { get; set; } +``` + + +--- + +#### Icon + +```csharp +public string Icon { get; set; } +``` + + +--- + +#### Id + +```csharp +public Guid Id { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/exporttemplatebasicdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/exporttemplatebasicdto.md new file mode 100644 index 00000000000..6d939867adb --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/exporttemplatebasicdto.md @@ -0,0 +1,65 @@ +--- +title: ExportTemplateBasicDto +description: API reference for ExportTemplateBasicDto in Umbraco Commerce +--- +## ExportTemplateBasicDto + +```csharp +public class ExportTemplateBasicDto : NamedEntityBasicDto +``` + +**Inheritance** + +* Class [NamedEntityBasicDto](namedentitybasicdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### ExportTemplateBasicDto + +The default constructor. + +```csharp +public ExportTemplateBasicDto() +``` + + +### Properties + +#### Alias + +```csharp +public string Alias { get; set; } +``` + + +--- + +#### Category + +```csharp +public string Category { get; set; } +``` + + +--- + +#### SortOrder + +```csharp +public int SortOrder { get; set; } +``` + + +--- + +#### StoreId + +```csharp +public Guid StoreId { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/exporttemplatedto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/exporttemplatedto.md new file mode 100644 index 00000000000..0af55506be9 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/exporttemplatedto.md @@ -0,0 +1,65 @@ +--- +title: ExportTemplateDto +description: API reference for ExportTemplateDto in Umbraco Commerce +--- +## ExportTemplateDto + +```csharp +public class ExportTemplateDto : ExportTemplateBasicDto +``` + +**Inheritance** + +* Class [ExportTemplateBasicDto](exporttemplatebasicdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### ExportTemplateDto + +The default constructor. + +```csharp +public ExportTemplateDto() +``` + + +### Properties + +#### ExportStrategy + +```csharp +public string ExportStrategy { get; set; } +``` + + +--- + +#### FileExtension + +```csharp +public string FileExtension { get; set; } +``` + + +--- + +#### FileMimeType + +```csharp +public string FileMimeType { get; set; } +``` + + +--- + +#### TemplateView + +```csharp +public string TemplateView { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/exporttemplateeditdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/exporttemplateeditdto.md new file mode 100644 index 00000000000..755319fd925 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/exporttemplateeditdto.md @@ -0,0 +1,48 @@ +--- +title: ExportTemplateEditDto +description: API reference for ExportTemplateEditDto in Umbraco Commerce +--- +## ExportTemplateEditDto + +```csharp +public class ExportTemplateEditDto : ExportTemplateDto, IHasPath, INotificationModel +``` + +**Inheritance** + +* Class [ExportTemplateDto](exporttemplatedto.md) +* interface [IHasPath](ihaspath.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### ExportTemplateEditDto + +The default constructor. + +```csharp +public ExportTemplateEditDto() +``` + + +### Properties + +#### Notifications + +```csharp +public List Notifications { get; set; } +``` + + +--- + +#### Path + +```csharp +public List Path { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/exporttemplatesavedto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/exporttemplatesavedto.md new file mode 100644 index 00000000000..ecc2c5a8182 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/exporttemplatesavedto.md @@ -0,0 +1,38 @@ +--- +title: ExportTemplateSaveDto +description: API reference for ExportTemplateSaveDto in Umbraco Commerce +--- +## ExportTemplateSaveDto + +```csharp +public class ExportTemplateSaveDto : ExportTemplateDto, IValidatableObject +``` + +**Inheritance** + +* Class [ExportTemplateDto](exporttemplatedto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### ExportTemplateSaveDto + +The default constructor. + +```csharp +public ExportTemplateSaveDto() +``` + + +### Methods + +#### Validate + +```csharp +public IEnumerable Validate(ValidationContext validationContext) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/formattedvaluedto-1.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/formattedvaluedto-1.md new file mode 100644 index 00000000000..02466b21f81 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/formattedvaluedto-1.md @@ -0,0 +1,43 @@ +--- +title: FormattedValueDto +description: API reference for FormattedValueDto in Umbraco Commerce +--- +## FormattedValueDto<TValue> + +```csharp +public class FormattedValueDto +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### FormattedValueDto<TValue> + +The default constructor. + +```csharp +public FormattedValueDto() +``` + + +### Properties + +#### Value + +```csharp +public TValue Value { get; set; } +``` + + +--- + +#### ValueFormatted + +```csharp +public string ValueFormatted { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/getallstockdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/getallstockdto.md new file mode 100644 index 00000000000..a546707c414 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/getallstockdto.md @@ -0,0 +1,43 @@ +--- +title: GetAllStockDto +description: API reference for GetAllStockDto in Umbraco Commerce +--- +## GetAllStockDto + +```csharp +public class GetAllStockDto +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### GetAllStockDto + +The default constructor. + +```csharp +public GetAllStockDto() +``` + + +### Properties + +#### ProductReferences + +```csharp +public ProductReferencePairDto[] ProductReferences { get; set; } +``` + + +--- + +#### StoreId + +```csharp +public Guid StoreId { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/giftcardbasicdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/giftcardbasicdto.md new file mode 100644 index 00000000000..160063f2496 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/giftcardbasicdto.md @@ -0,0 +1,137 @@ +--- +title: GiftCardBasicDto +description: API reference for GiftCardBasicDto in Umbraco Commerce +--- +## GiftCardBasicDto + +```csharp +public class GiftCardBasicDto : EntityBasicDto +``` + +**Inheritance** + +* Class [EntityBasicDto](entitybasicdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### GiftCardBasicDto + +The default constructor. + +```csharp +public GiftCardBasicDto() +``` + + +### Properties + +#### Code + +```csharp +public string Code { get; set; } +``` + + +--- + +#### CreateDate + +```csharp +public DateTime CreateDate { get; set; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; set; } +``` + + +--- + +#### OrderId + +```csharp +public Guid? OrderId { get; set; } +``` + + +--- + +#### OrderNumber + +```csharp +public string OrderNumber { get; set; } +``` + + +--- + +#### OriginalAmount + +```csharp +public decimal OriginalAmount { get; set; } +``` + + +--- + +#### OriginalAmountFormatted + +```csharp +public string OriginalAmountFormatted { get; set; } +``` + + +--- + +#### RemainingAmount + +```csharp +public decimal RemainingAmount { get; set; } +``` + + +--- + +#### RemainingAmountFormatted + +```csharp +public string RemainingAmountFormatted { get; set; } +``` + + +--- + +#### Status + +```csharp +public string Status { get; set; } +``` + + +--- + +#### StatusColor + +```csharp +public string StatusColor { get; set; } +``` + + +--- + +#### StoreId + +```csharp +public Guid StoreId { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/giftcarddto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/giftcarddto.md new file mode 100644 index 00000000000..ab9122fcecc --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/giftcarddto.md @@ -0,0 +1,65 @@ +--- +title: GiftCardDto +description: API reference for GiftCardDto in Umbraco Commerce +--- +## GiftCardDto + +```csharp +public class GiftCardDto : GiftCardBasicDto +``` + +**Inheritance** + +* Class [GiftCardBasicDto](giftcardbasicdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### GiftCardDto + +The default constructor. + +```csharp +public GiftCardDto() +``` + + +### Properties + +#### CurrencyId + +```csharp +public Guid? CurrencyId { get; set; } +``` + + +--- + +#### ExpiryDate + +```csharp +public DateTime? ExpiryDate { get; set; } +``` + + +--- + +#### IsActive + +```csharp +public bool IsActive { get; set; } +``` + + +--- + +#### Properties + +```csharp +public Dictionary Properties { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/giftcardeditdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/giftcardeditdto.md new file mode 100644 index 00000000000..0427a8fcdba --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/giftcardeditdto.md @@ -0,0 +1,48 @@ +--- +title: GiftCardEditDto +description: API reference for GiftCardEditDto in Umbraco Commerce +--- +## GiftCardEditDto + +```csharp +public class GiftCardEditDto : GiftCardDto, IHasPath, INotificationModel +``` + +**Inheritance** + +* Class [GiftCardDto](giftcarddto.md) +* interface [IHasPath](ihaspath.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### GiftCardEditDto + +The default constructor. + +```csharp +public GiftCardEditDto() +``` + + +### Properties + +#### Notifications + +```csharp +public List Notifications { get; set; } +``` + + +--- + +#### Path + +```csharp +public List Path { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/giftcardsavedto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/giftcardsavedto.md new file mode 100644 index 00000000000..fa6903d9acb --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/giftcardsavedto.md @@ -0,0 +1,38 @@ +--- +title: GiftCardSaveDto +description: API reference for GiftCardSaveDto in Umbraco Commerce +--- +## GiftCardSaveDto + +```csharp +public class GiftCardSaveDto : GiftCardDto, IValidatableObject +``` + +**Inheritance** + +* Class [GiftCardDto](giftcarddto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### GiftCardSaveDto + +The default constructor. + +```csharp +public GiftCardSaveDto() +``` + + +### Methods + +#### Validate + +```csharp +public IEnumerable Validate(ValidationContext validationContext) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/giftcardsearchdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/giftcardsearchdto.md new file mode 100644 index 00000000000..2ffc6ffafe1 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/giftcardsearchdto.md @@ -0,0 +1,47 @@ +--- +title: GiftCardSearchDto +description: API reference for GiftCardSearchDto in Umbraco Commerce +--- +## GiftCardSearchDto + +```csharp +public class GiftCardSearchDto : SearchDtoBase +``` + +**Inheritance** + +* Class [SearchDtoBase](searchdtobase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### GiftCardSearchDto + +The default constructor. + +```csharp +public GiftCardSearchDto() +``` + + +### Properties + +#### SearchTerm + +```csharp +public string SearchTerm { get; set; } +``` + + +--- + +#### StoreId + +```csharp +public Guid StoreId { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/ihaspath.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/ihaspath.md new file mode 100644 index 00000000000..5671b6732e3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/ihaspath.md @@ -0,0 +1,23 @@ +--- +title: IHasPath +description: API reference for IHasPath in Umbraco Commerce +--- +## IHasPath + +```csharp +public interface IHasPath +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Properties + +#### Path + +```csharp +public List Path { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/namedentitybasicdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/namedentitybasicdto.md new file mode 100644 index 00000000000..ac2fba2f813 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/namedentitybasicdto.md @@ -0,0 +1,38 @@ +--- +title: NamedEntityBasicDto +description: API reference for NamedEntityBasicDto in Umbraco Commerce +--- +## NamedEntityBasicDto + +```csharp +public class NamedEntityBasicDto : EntityBasicDto +``` + +**Inheritance** + +* Class [EntityBasicDto](entitybasicdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### NamedEntityBasicDto + +The default constructor. + +```csharp +public NamedEntityBasicDto() +``` + + +### Properties + +#### Name + +```csharp +public string Name { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/orderbasicdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/orderbasicdto.md new file mode 100644 index 00000000000..1e3441ec808 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/orderbasicdto.md @@ -0,0 +1,200 @@ +--- +title: OrderBasicDto +description: API reference for OrderBasicDto in Umbraco Commerce +--- +## OrderBasicDto + +```csharp +public class OrderBasicDto : EntityBasicDto +``` + +**Inheritance** + +* Class [EntityBasicDto](entitybasicdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### OrderBasicDto + +The default constructor. + +```csharp +public OrderBasicDto() +``` + + +### Properties + +#### CartNumber + +```csharp +public string CartNumber { get; set; } +``` + + +--- + +#### CreateDate + +```csharp +public DateTime CreateDate { get; set; } +``` + + +--- + +#### CustomerFirstName + +```csharp +public string CustomerFirstName { get; set; } +``` + + +--- + +#### CustomerFullName + +```csharp +public string CustomerFullName { get; } +``` + + +--- + +#### CustomerLastName + +```csharp +public string CustomerLastName { get; set; } +``` + + +--- + +#### FinalizedDate + +```csharp +public DateTime? FinalizedDate { get; set; } +``` + + +--- + +#### OrderNumber + +```csharp +public string OrderNumber { get; set; } +``` + + +--- + +#### OrderStatus + +```csharp +public OrderStatusBasicDto OrderStatus { get; set; } +``` + + +--- + +#### OrderStatusId + +```csharp +public Guid OrderStatusId { get; set; } +``` + + +--- + +#### PaymentMethod + +```csharp +public PaymentMethodBasicDto PaymentMethod { get; set; } +``` + + +--- + +#### PaymentMethodId + +```csharp +public Guid? PaymentMethodId { get; set; } +``` + + +--- + +#### PaymentStatus + +```csharp +public string PaymentStatus { get; set; } +``` + + +--- + +#### PaymentStatusName + +```csharp +public string PaymentStatusName { get; set; } +``` + + +--- + +#### Properties + +```csharp +public Dictionary Properties { get; set; } +``` + + +--- + +#### ShippingMethod + +```csharp +public ShippingMethodBasicDto ShippingMethod { get; set; } +``` + + +--- + +#### ShippingMethodId + +```csharp +public Guid? ShippingMethodId { get; set; } +``` + + +--- + +#### StoreId + +```csharp +public Guid StoreId { get; set; } +``` + + +--- + +#### TotalPrice + +```csharp +public string TotalPrice { get; set; } +``` + + +--- + +#### TransactionAmount + +```csharp +public string TransactionAmount { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/orderdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/orderdto.md new file mode 100644 index 00000000000..16a9b38141d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/orderdto.md @@ -0,0 +1,317 @@ +--- +title: OrderDto +description: API reference for OrderDto in Umbraco Commerce +--- +## OrderDto + +```csharp +public class OrderDto : OrderBasicDto +``` + +**Inheritance** + +* Class [OrderBasicDto](orderbasicdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### OrderDto + +The default constructor. + +```csharp +public OrderDto() +``` + + +### Properties + +#### AppliedDiscountCodes + +```csharp +public List AppliedDiscountCodes { get; set; } +``` + + +--- + +#### AppliedGiftCardCodes + +```csharp +public List AppliedGiftCardCodes { get; set; } +``` + + +--- + +#### CustomerEmail + +```csharp +public string CustomerEmail { get; set; } +``` + + +--- + +#### CustomerReference + +```csharp +public string CustomerReference { get; set; } +``` + + +--- + +#### OrderLines + +```csharp +public List OrderLines { get; set; } +``` + + +--- + +#### OrderStatusCode + +```csharp +public int OrderStatusCode { get; set; } +``` + + +--- + +#### PaymentCountry + +```csharp +public CountryBasicDto PaymentCountry { get; set; } +``` + + +--- + +#### PaymentCountryId + +```csharp +public Guid? PaymentCountryId { get; set; } +``` + + +--- + +#### PaymentMethodPrice + +```csharp +public string PaymentMethodPrice { get; set; } +``` + + +--- + +#### PaymentMethodPriceWithoutAdjustments + +```csharp +public string PaymentMethodPriceWithoutAdjustments { get; set; } +``` + + +--- + +#### PaymentRegion + +```csharp +public RegionBasicDto PaymentRegion { get; set; } +``` + + +--- + +#### PaymentRegionId + +```csharp +public Guid? PaymentRegionId { get; set; } +``` + + +--- + +#### ShippingCountry + +```csharp +public CountryBasicDto ShippingCountry { get; set; } +``` + + +--- + +#### ShippingCountryId + +```csharp +public Guid? ShippingCountryId { get; set; } +``` + + +--- + +#### ShippingMethodPrice + +```csharp +public string ShippingMethodPrice { get; set; } +``` + + +--- + +#### ShippingMethodPriceWithoutAdjustments + +```csharp +public string ShippingMethodPriceWithoutAdjustments { get; set; } +``` + + +--- + +#### ShippingRegion + +```csharp +public RegionBasicDto ShippingRegion { get; set; } +``` + + +--- + +#### ShippingRegionId + +```csharp +public Guid? ShippingRegionId { get; set; } +``` + + +--- + +#### SubtotalPrice + +```csharp +public string SubtotalPrice { get; set; } +``` + + +--- + +#### SubtotalPriceDiscountAdjustment + +```csharp +public string SubtotalPriceDiscountAdjustment { get; set; } +``` + + +--- + +#### SubtotalPriceFeesAdjustment + +```csharp +public string SubtotalPriceFeesAdjustment { get; set; } +``` + + +--- + +#### SubtotalPriceWithPreviousAdjustments + +```csharp +public string SubtotalPriceWithPreviousAdjustments { get; set; } +``` + + +--- + +#### Tags + +```csharp +public List Tags { get; set; } +``` + + +--- + +#### TotalGiftCardAdjustment + +```csharp +public string TotalGiftCardAdjustment { get; set; } +``` + + +--- + +#### TotalPriceDiscountAdjustment + +```csharp +public string TotalPriceDiscountAdjustment { get; set; } +``` + + +--- + +#### TotalPriceFeesAdjustment + +```csharp +public string TotalPriceFeesAdjustment { get; set; } +``` + + +--- + +#### TotalPriceTax + +```csharp +public string TotalPriceTax { get; set; } +``` + + +--- + +#### TotalPriceWithPreviousAdjustments + +```csharp +public string TotalPriceWithPreviousAdjustments { get; set; } +``` + + +--- + +#### TotalReceived + +```csharp +public string TotalReceived { get; set; } +``` + + +--- + +#### TransactionAmountAuthorized + +```csharp +public string TransactionAmountAuthorized { get; set; } +``` + + +--- + +#### TransactionFee + +```csharp +public string TransactionFee { get; set; } +``` + + +--- + +#### ZeroAmount + +```csharp +public string ZeroAmount { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/ordereditdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/ordereditdto.md new file mode 100644 index 00000000000..573785d901f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/ordereditdto.md @@ -0,0 +1,48 @@ +--- +title: OrderEditDto +description: API reference for OrderEditDto in Umbraco Commerce +--- +## OrderEditDto + +```csharp +public class OrderEditDto : OrderDto, IHasPath, INotificationModel +``` + +**Inheritance** + +* Class [OrderDto](orderdto.md) +* interface [IHasPath](ihaspath.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### OrderEditDto + +The default constructor. + +```csharp +public OrderEditDto() +``` + + +### Properties + +#### Notifications + +```csharp +public List Notifications { get; set; } +``` + + +--- + +#### Path + +```csharp +public List Path { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/orderlinedto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/orderlinedto.md new file mode 100644 index 00000000000..eef2be43b04 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/orderlinedto.md @@ -0,0 +1,151 @@ +--- +title: OrderLineDto +description: API reference for OrderLineDto in Umbraco Commerce +--- +## OrderLineDto + +```csharp +public class OrderLineDto +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### OrderLineDto + +The default constructor. + +```csharp +public OrderLineDto() +``` + + +### Properties + +#### Attributes + +```csharp +public List Attributes { get; set; } +``` + + +--- + +#### BasePrice + +```csharp +public string BasePrice { get; set; } +``` + + +--- + +#### BasePriceWithoutAdjustments + +```csharp +public string BasePriceWithoutAdjustments { get; set; } +``` + + +--- + +#### BundleId + +```csharp +public string BundleId { get; set; } +``` + + +--- + +#### Id + +```csharp +public Guid Id { get; set; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; set; } +``` + + +--- + +#### OrderLines + +```csharp +public List OrderLines { get; set; } +``` + + +--- + +#### Properties + +```csharp +public Dictionary Properties { get; set; } +``` + + +--- + +#### Quantity + +```csharp +public decimal Quantity { get; set; } +``` + + +--- + +#### Sku + +```csharp +public string Sku { get; set; } +``` + + +--- + +#### TotalPrice + +```csharp +public string TotalPrice { get; set; } +``` + + +--- + +#### TotalPriceWithoutAdjustments + +```csharp +public string TotalPriceWithoutAdjustments { get; set; } +``` + + +--- + +#### UnitPrice + +```csharp +public string UnitPrice { get; set; } +``` + + +--- + +#### UnitPriceWithoutAdjustments + +```csharp +public string UnitPriceWithoutAdjustments { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/ordersavedto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/ordersavedto.md new file mode 100644 index 00000000000..3b03ef2f6de --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/ordersavedto.md @@ -0,0 +1,38 @@ +--- +title: OrderSaveDto +description: API reference for OrderSaveDto in Umbraco Commerce +--- +## OrderSaveDto + +```csharp +public class OrderSaveDto : OrderDto, IValidatableObject +``` + +**Inheritance** + +* Class [OrderDto](orderdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### OrderSaveDto + +The default constructor. + +```csharp +public OrderSaveDto() +``` + + +### Methods + +#### Validate + +```csharp +public IEnumerable Validate(ValidationContext validationContext) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/ordersearchdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/ordersearchdto.md new file mode 100644 index 00000000000..f062064ba95 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/ordersearchdto.md @@ -0,0 +1,74 @@ +--- +title: OrderSearchDto +description: API reference for OrderSearchDto in Umbraco Commerce +--- +## OrderSearchDto + +```csharp +public class OrderSearchDto : SearchDtoBase +``` + +**Inheritance** + +* Class [SearchDtoBase](searchdtobase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### OrderSearchDto + +The default constructor. + +```csharp +public OrderSearchDto() +``` + + +### Properties + +#### IsFinalized + +```csharp +public bool IsFinalized { get; set; } +``` + + +--- + +#### OrderStatusIds + +```csharp +public Guid[] OrderStatusIds { get; set; } +``` + + +--- + +#### PaymentStatuses + +```csharp +public PaymentStatus[] PaymentStatuses { get; set; } +``` + + +--- + +#### SearchTerm + +```csharp +public string SearchTerm { get; set; } +``` + + +--- + +#### StoreId + +```csharp +public Guid StoreId { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/orderstatusbasicdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/orderstatusbasicdto.md new file mode 100644 index 00000000000..e9f19b90330 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/orderstatusbasicdto.md @@ -0,0 +1,65 @@ +--- +title: OrderStatusBasicDto +description: API reference for OrderStatusBasicDto in Umbraco Commerce +--- +## OrderStatusBasicDto + +```csharp +public class OrderStatusBasicDto : NamedEntityBasicDto +``` + +**Inheritance** + +* Class [NamedEntityBasicDto](namedentitybasicdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### OrderStatusBasicDto + +The default constructor. + +```csharp +public OrderStatusBasicDto() +``` + + +### Properties + +#### Alias + +```csharp +public string Alias { get; set; } +``` + + +--- + +#### Color + +```csharp +public string Color { get; set; } +``` + + +--- + +#### SortOrder + +```csharp +public int SortOrder { get; set; } +``` + + +--- + +#### StoreId + +```csharp +public Guid StoreId { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/orderstatusdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/orderstatusdto.md new file mode 100644 index 00000000000..6d4d2fe5682 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/orderstatusdto.md @@ -0,0 +1,29 @@ +--- +title: OrderStatusDto +description: API reference for OrderStatusDto in Umbraco Commerce +--- +## OrderStatusDto + +```csharp +public class OrderStatusDto : OrderStatusBasicDto +``` + +**Inheritance** + +* Class [OrderStatusBasicDto](orderstatusbasicdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### OrderStatusDto + +The default constructor. + +```csharp +public OrderStatusDto() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/orderstatuseditdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/orderstatuseditdto.md new file mode 100644 index 00000000000..6bff752e63b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/orderstatuseditdto.md @@ -0,0 +1,48 @@ +--- +title: OrderStatusEditDto +description: API reference for OrderStatusEditDto in Umbraco Commerce +--- +## OrderStatusEditDto + +```csharp +public class OrderStatusEditDto : OrderStatusDto, IHasPath, INotificationModel +``` + +**Inheritance** + +* Class [OrderStatusDto](orderstatusdto.md) +* interface [IHasPath](ihaspath.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### OrderStatusEditDto + +The default constructor. + +```csharp +public OrderStatusEditDto() +``` + + +### Properties + +#### Notifications + +```csharp +public List Notifications { get; set; } +``` + + +--- + +#### Path + +```csharp +public List Path { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/orderstatussavedto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/orderstatussavedto.md new file mode 100644 index 00000000000..9d6a43b949d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/orderstatussavedto.md @@ -0,0 +1,38 @@ +--- +title: OrderStatusSaveDto +description: API reference for OrderStatusSaveDto in Umbraco Commerce +--- +## OrderStatusSaveDto + +```csharp +public class OrderStatusSaveDto : OrderStatusDto, IValidatableObject +``` + +**Inheritance** + +* Class [OrderStatusDto](orderstatusdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### OrderStatusSaveDto + +The default constructor. + +```csharp +public OrderStatusSaveDto() +``` + + +### Methods + +#### Validate + +```csharp +public IEnumerable Validate(ValidationContext validationContext) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/paymentmethodbasicdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/paymentmethodbasicdto.md new file mode 100644 index 00000000000..6cccfd0e60b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/paymentmethodbasicdto.md @@ -0,0 +1,101 @@ +--- +title: PaymentMethodBasicDto +description: API reference for PaymentMethodBasicDto in Umbraco Commerce +--- +## PaymentMethodBasicDto + +```csharp +public class PaymentMethodBasicDto : NamedEntityBasicDto +``` + +**Inheritance** + +* Class [NamedEntityBasicDto](namedentitybasicdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### PaymentMethodBasicDto + +The default constructor. + +```csharp +public PaymentMethodBasicDto() +``` + + +### Properties + +#### Alias + +```csharp +public string Alias { get; set; } +``` + + +--- + +#### CanCancelPayments + +```csharp +public bool CanCancelPayments { get; set; } +``` + + +--- + +#### CanCapturePayments + +```csharp +public bool CanCapturePayments { get; set; } +``` + + +--- + +#### CanFetchPaymentStatuses + +```csharp +public bool CanFetchPaymentStatuses { get; set; } +``` + + +--- + +#### CanRefundPayments + +```csharp +public bool CanRefundPayments { get; set; } +``` + + +--- + +#### Sku + +```csharp +public string Sku { get; set; } +``` + + +--- + +#### SortOrder + +```csharp +public int SortOrder { get; set; } +``` + + +--- + +#### StoreId + +```csharp +public Guid StoreId { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/paymentmethoddto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/paymentmethoddto.md new file mode 100644 index 00000000000..894c3cc22f4 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/paymentmethoddto.md @@ -0,0 +1,119 @@ +--- +title: PaymentMethodDto +description: API reference for PaymentMethodDto in Umbraco Commerce +--- +## PaymentMethodDto + +```csharp +public class PaymentMethodDto : PaymentMethodBasicDto +``` + +**Inheritance** + +* Class [PaymentMethodBasicDto](paymentmethodbasicdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### PaymentMethodDto + +The default constructor. + +```csharp +public PaymentMethodDto() +``` + + +### Properties + +#### AllowedCountryRegions + +```csharp +public List AllowedCountryRegions { get; set; } +``` + + +--- + +#### ImageId + +```csharp +public string ImageId { get; set; } +``` + + +--- + +#### PaymentProviderAlias + +```csharp +public string PaymentProviderAlias { get; set; } +``` + + +--- + +#### PaymentProviderSettings + +```csharp +public Dictionary PaymentProviderSettings { get; set; } +``` + + +--- + +#### PaymentProviderSupportsCancellingPayments + +```csharp +public bool PaymentProviderSupportsCancellingPayments { get; set; } +``` + + +--- + +#### PaymentProviderSupportsCapturingPayments + +```csharp +public bool PaymentProviderSupportsCapturingPayments { get; set; } +``` + + +--- + +#### PaymentProviderSupportsFetchingPaymentStatus + +```csharp +public bool PaymentProviderSupportsFetchingPaymentStatus { get; set; } +``` + + +--- + +#### PaymentProviderSupportsRefundingPayments + +```csharp +public bool PaymentProviderSupportsRefundingPayments { get; set; } +``` + + +--- + +#### Prices + +```csharp +public List Prices { get; set; } +``` + + +--- + +#### TaxClassId + +```csharp +public Guid? TaxClassId { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/paymentmethodeditdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/paymentmethodeditdto.md new file mode 100644 index 00000000000..84565f8597f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/paymentmethodeditdto.md @@ -0,0 +1,48 @@ +--- +title: PaymentMethodEditDto +description: API reference for PaymentMethodEditDto in Umbraco Commerce +--- +## PaymentMethodEditDto + +```csharp +public class PaymentMethodEditDto : PaymentMethodDto, IHasPath, INotificationModel +``` + +**Inheritance** + +* Class [PaymentMethodDto](paymentmethoddto.md) +* interface [IHasPath](ihaspath.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### PaymentMethodEditDto + +The default constructor. + +```csharp +public PaymentMethodEditDto() +``` + + +### Properties + +#### Notifications + +```csharp +public List Notifications { get; set; } +``` + + +--- + +#### Path + +```csharp +public List Path { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/paymentmethodsavedto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/paymentmethodsavedto.md new file mode 100644 index 00000000000..11fff413c49 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/paymentmethodsavedto.md @@ -0,0 +1,38 @@ +--- +title: PaymentMethodSaveDto +description: API reference for PaymentMethodSaveDto in Umbraco Commerce +--- +## PaymentMethodSaveDto + +```csharp +public class PaymentMethodSaveDto : PaymentMethodDto, IValidatableObject +``` + +**Inheritance** + +* Class [PaymentMethodDto](paymentmethoddto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### PaymentMethodSaveDto + +The default constructor. + +```csharp +public PaymentMethodSaveDto() +``` + + +### Methods + +#### Validate + +```csharp +public IEnumerable Validate(ValidationContext validationContext) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/printtemplatebasicdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/printtemplatebasicdto.md new file mode 100644 index 00000000000..7b2488d03ed --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/printtemplatebasicdto.md @@ -0,0 +1,65 @@ +--- +title: PrintTemplateBasicDto +description: API reference for PrintTemplateBasicDto in Umbraco Commerce +--- +## PrintTemplateBasicDto + +```csharp +public class PrintTemplateBasicDto : NamedEntityBasicDto +``` + +**Inheritance** + +* Class [NamedEntityBasicDto](namedentitybasicdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### PrintTemplateBasicDto + +The default constructor. + +```csharp +public PrintTemplateBasicDto() +``` + + +### Properties + +#### Alias + +```csharp +public string Alias { get; set; } +``` + + +--- + +#### Category + +```csharp +public string Category { get; set; } +``` + + +--- + +#### SortOrder + +```csharp +public int SortOrder { get; set; } +``` + + +--- + +#### StoreId + +```csharp +public Guid StoreId { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/printtemplatedto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/printtemplatedto.md new file mode 100644 index 00000000000..6e7af9b3779 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/printtemplatedto.md @@ -0,0 +1,38 @@ +--- +title: PrintTemplateDto +description: API reference for PrintTemplateDto in Umbraco Commerce +--- +## PrintTemplateDto + +```csharp +public class PrintTemplateDto : PrintTemplateBasicDto +``` + +**Inheritance** + +* Class [PrintTemplateBasicDto](printtemplatebasicdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### PrintTemplateDto + +The default constructor. + +```csharp +public PrintTemplateDto() +``` + + +### Properties + +#### TemplateView + +```csharp +public string TemplateView { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/printtemplateeditdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/printtemplateeditdto.md new file mode 100644 index 00000000000..62a1686568a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/printtemplateeditdto.md @@ -0,0 +1,48 @@ +--- +title: PrintTemplateEditDto +description: API reference for PrintTemplateEditDto in Umbraco Commerce +--- +## PrintTemplateEditDto + +```csharp +public class PrintTemplateEditDto : PrintTemplateDto, IHasPath, INotificationModel +``` + +**Inheritance** + +* Class [PrintTemplateDto](printtemplatedto.md) +* interface [IHasPath](ihaspath.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### PrintTemplateEditDto + +The default constructor. + +```csharp +public PrintTemplateEditDto() +``` + + +### Properties + +#### Notifications + +```csharp +public List Notifications { get; set; } +``` + + +--- + +#### Path + +```csharp +public List Path { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/printtemplatesavedto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/printtemplatesavedto.md new file mode 100644 index 00000000000..41ed264200b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/printtemplatesavedto.md @@ -0,0 +1,38 @@ +--- +title: PrintTemplateSaveDto +description: API reference for PrintTemplateSaveDto in Umbraco Commerce +--- +## PrintTemplateSaveDto + +```csharp +public class PrintTemplateSaveDto : PrintTemplateDto, IValidatableObject +``` + +**Inheritance** + +* Class [PrintTemplateDto](printtemplatedto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### PrintTemplateSaveDto + +The default constructor. + +```csharp +public PrintTemplateSaveDto() +``` + + +### Methods + +#### Validate + +```csharp +public IEnumerable Validate(ValidationContext validationContext) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productattributebasicdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productattributebasicdto.md new file mode 100644 index 00000000000..6acbff6b7a1 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productattributebasicdto.md @@ -0,0 +1,56 @@ +--- +title: ProductAttributeBasicDto +description: API reference for ProductAttributeBasicDto in Umbraco Commerce +--- +## ProductAttributeBasicDto + +```csharp +public class ProductAttributeBasicDto : NamedEntityBasicDto +``` + +**Inheritance** + +* Class [NamedEntityBasicDto](namedentitybasicdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### ProductAttributeBasicDto + +The default constructor. + +```csharp +public ProductAttributeBasicDto() +``` + + +### Properties + +#### Alias + +```csharp +public string Alias { get; set; } +``` + + +--- + +#### SortOrder + +```csharp +public int SortOrder { get; set; } +``` + + +--- + +#### StoreId + +```csharp +public Guid StoreId { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productattributedto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productattributedto.md new file mode 100644 index 00000000000..fd38b6152dd --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productattributedto.md @@ -0,0 +1,47 @@ +--- +title: ProductAttributeDto +description: API reference for ProductAttributeDto in Umbraco Commerce +--- +## ProductAttributeDto + +```csharp +public class ProductAttributeDto : ProductAttributeBasicDto +``` + +**Inheritance** + +* Class [ProductAttributeBasicDto](productattributebasicdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### ProductAttributeDto + +The default constructor. + +```csharp +public ProductAttributeDto() +``` + + +### Properties + +#### NameTranslations + +```csharp +public IDictionary NameTranslations { get; set; } +``` + + +--- + +#### Values + +```csharp +public List Values { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productattributeeditdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productattributeeditdto.md new file mode 100644 index 00000000000..7f4ca7f3737 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productattributeeditdto.md @@ -0,0 +1,48 @@ +--- +title: ProductAttributeEditDto +description: API reference for ProductAttributeEditDto in Umbraco Commerce +--- +## ProductAttributeEditDto + +```csharp +public class ProductAttributeEditDto : ProductAttributeDto, IHasPath, INotificationModel +``` + +**Inheritance** + +* Class [ProductAttributeDto](productattributedto.md) +* interface [IHasPath](ihaspath.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### ProductAttributeEditDto + +The default constructor. + +```csharp +public ProductAttributeEditDto() +``` + + +### Properties + +#### Notifications + +```csharp +public List Notifications { get; set; } +``` + + +--- + +#### Path + +```csharp +public List Path { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productattributepresetbasicdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productattributepresetbasicdto.md new file mode 100644 index 00000000000..9f896aa4219 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productattributepresetbasicdto.md @@ -0,0 +1,74 @@ +--- +title: ProductAttributePresetBasicDto +description: API reference for ProductAttributePresetBasicDto in Umbraco Commerce +--- +## ProductAttributePresetBasicDto + +```csharp +public class ProductAttributePresetBasicDto : NamedEntityBasicDto +``` + +**Inheritance** + +* Class [NamedEntityBasicDto](namedentitybasicdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### ProductAttributePresetBasicDto + +The default constructor. + +```csharp +public ProductAttributePresetBasicDto() +``` + + +### Properties + +#### Alias + +```csharp +public string Alias { get; set; } +``` + + +--- + +#### Description + +```csharp +public string Description { get; set; } +``` + + +--- + +#### Icon + +```csharp +public string Icon { get; set; } +``` + + +--- + +#### SortOrder + +```csharp +public int SortOrder { get; set; } +``` + + +--- + +#### StoreId + +```csharp +public Guid StoreId { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productattributepresetdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productattributepresetdto.md new file mode 100644 index 00000000000..a1ea2f68e8d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productattributepresetdto.md @@ -0,0 +1,38 @@ +--- +title: ProductAttributePresetDto +description: API reference for ProductAttributePresetDto in Umbraco Commerce +--- +## ProductAttributePresetDto + +```csharp +public class ProductAttributePresetDto : ProductAttributePresetBasicDto +``` + +**Inheritance** + +* Class [ProductAttributePresetBasicDto](productattributepresetbasicdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### ProductAttributePresetDto + +The default constructor. + +```csharp +public ProductAttributePresetDto() +``` + + +### Properties + +#### AllowedAttributes + +```csharp +public List AllowedAttributes { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productattributepreseteditdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productattributepreseteditdto.md new file mode 100644 index 00000000000..6606154f2d7 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productattributepreseteditdto.md @@ -0,0 +1,48 @@ +--- +title: ProductAttributePresetEditDto +description: API reference for ProductAttributePresetEditDto in Umbraco Commerce +--- +## ProductAttributePresetEditDto + +```csharp +public class ProductAttributePresetEditDto : ProductAttributePresetDto, IHasPath, INotificationModel +``` + +**Inheritance** + +* Class [ProductAttributePresetDto](productattributepresetdto.md) +* interface [IHasPath](ihaspath.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### ProductAttributePresetEditDto + +The default constructor. + +```csharp +public ProductAttributePresetEditDto() +``` + + +### Properties + +#### Notifications + +```csharp +public List Notifications { get; set; } +``` + + +--- + +#### Path + +```csharp +public List Path { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productattributepresetsavedto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productattributepresetsavedto.md new file mode 100644 index 00000000000..efdce410c5c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productattributepresetsavedto.md @@ -0,0 +1,38 @@ +--- +title: ProductAttributePresetSaveDto +description: API reference for ProductAttributePresetSaveDto in Umbraco Commerce +--- +## ProductAttributePresetSaveDto + +```csharp +public class ProductAttributePresetSaveDto : ProductAttributePresetDto, IValidatableObject +``` + +**Inheritance** + +* Class [ProductAttributePresetDto](productattributepresetdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### ProductAttributePresetSaveDto + +The default constructor. + +```csharp +public ProductAttributePresetSaveDto() +``` + + +### Methods + +#### Validate + +```csharp +public IEnumerable Validate(ValidationContext validationContext) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productattributesavedto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productattributesavedto.md new file mode 100644 index 00000000000..1ace6c97015 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productattributesavedto.md @@ -0,0 +1,38 @@ +--- +title: ProductAttributeSaveDto +description: API reference for ProductAttributeSaveDto in Umbraco Commerce +--- +## ProductAttributeSaveDto + +```csharp +public class ProductAttributeSaveDto : ProductAttributeDto, IValidatableObject +``` + +**Inheritance** + +* Class [ProductAttributeDto](productattributedto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### ProductAttributeSaveDto + +The default constructor. + +```csharp +public ProductAttributeSaveDto() +``` + + +### Methods + +#### Validate + +```csharp +public IEnumerable Validate(ValidationContext validationContext) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productattributevaluedto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productattributevaluedto.md new file mode 100644 index 00000000000..d7a1194c4a6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productattributevaluedto.md @@ -0,0 +1,56 @@ +--- +title: ProductAttributeValueDto +description: API reference for ProductAttributeValueDto in Umbraco Commerce +--- +## ProductAttributeValueDto + +```csharp +public class ProductAttributeValueDto : NamedEntityBasicDto +``` + +**Inheritance** + +* Class [NamedEntityBasicDto](namedentitybasicdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### ProductAttributeValueDto + +The default constructor. + +```csharp +public ProductAttributeValueDto() +``` + + +### Properties + +#### Alias + +```csharp +public string Alias { get; set; } +``` + + +--- + +#### NameTranslations + +```csharp +public IDictionary NameTranslations { get; set; } +``` + + +--- + +#### SortOrder + +```csharp +public int SortOrder { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productpricedto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productpricedto.md new file mode 100644 index 00000000000..cb506e0d319 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productpricedto.md @@ -0,0 +1,52 @@ +--- +title: ProductPriceDto +description: API reference for ProductPriceDto in Umbraco Commerce +--- +## ProductPriceDto + +```csharp +public class ProductPriceDto +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### ProductPriceDto + +The default constructor. + +```csharp +public ProductPriceDto() +``` + + +### Properties + +#### CurrencyId + +```csharp +public Guid CurrencyId { get; set; } +``` + + +--- + +#### Value + +```csharp +public decimal Value { get; set; } +``` + + +--- + +#### ValueFormatted + +```csharp +public string ValueFormatted { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productreferencepairdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productreferencepairdto.md new file mode 100644 index 00000000000..8555525bfbb --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productreferencepairdto.md @@ -0,0 +1,43 @@ +--- +title: ProductReferencePairDto +description: API reference for ProductReferencePairDto in Umbraco Commerce +--- +## ProductReferencePairDto + +```csharp +public class ProductReferencePairDto +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### ProductReferencePairDto + +The default constructor. + +```csharp +public ProductReferencePairDto() +``` + + +### Properties + +#### ProductReference + +```csharp +public string ProductReference { get; set; } +``` + + +--- + +#### ProductVariantReference + +```csharp +public string ProductVariantReference { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productsearchdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productsearchdto.md new file mode 100644 index 00000000000..10784e95c0c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productsearchdto.md @@ -0,0 +1,56 @@ +--- +title: ProductSearchDto +description: API reference for ProductSearchDto in Umbraco Commerce +--- +## ProductSearchDto + +```csharp +public class ProductSearchDto : SearchDtoBase +``` + +**Inheritance** + +* Class [SearchDtoBase](searchdtobase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### ProductSearchDto + +The default constructor. + +```csharp +public ProductSearchDto() +``` + + +### Properties + +#### LanguageIsoCode + +```csharp +public string LanguageIsoCode { get; set; } +``` + + +--- + +#### SearchTerm + +```csharp +public string SearchTerm { get; set; } +``` + + +--- + +#### StoreId + +```csharp +public Guid StoreId { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productstockleveldto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productstockleveldto.md new file mode 100644 index 00000000000..ff4dd999601 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productstockleveldto.md @@ -0,0 +1,38 @@ +--- +title: ProductStockLevelDto +description: API reference for ProductStockLevelDto in Umbraco Commerce +--- +## ProductStockLevelDto + +```csharp +public class ProductStockLevelDto : ProductReferencePairDto +``` + +**Inheritance** + +* Class [ProductReferencePairDto](productreferencepairdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### ProductStockLevelDto + +The default constructor. + +```csharp +public ProductStockLevelDto() +``` + + +### Properties + +#### Stock + +```csharp +public decimal Stock { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productsummarycommondto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productsummarycommondto.md new file mode 100644 index 00000000000..ffef4c785d1 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productsummarycommondto.md @@ -0,0 +1,61 @@ +--- +title: ProductSummaryCommonDto +description: API reference for ProductSummaryCommonDto in Umbraco Commerce +--- +## ProductSummaryCommonDto + +```csharp +public class ProductSummaryCommonDto +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### ProductSummaryCommonDto + +The default constructor. + +```csharp +public ProductSummaryCommonDto() +``` + + +### Properties + +#### Name + +```csharp +public string Name { get; set; } +``` + + +--- + +#### Prices + +```csharp +public IEnumerable Prices { get; set; } +``` + + +--- + +#### Reference + +```csharp +public string Reference { get; set; } +``` + + +--- + +#### Sku + +```csharp +public string Sku { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productsummarydto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productsummarydto.md new file mode 100644 index 00000000000..d2df29b11df --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productsummarydto.md @@ -0,0 +1,38 @@ +--- +title: ProductSummaryDto +description: API reference for ProductSummaryDto in Umbraco Commerce +--- +## ProductSummaryDto + +```csharp +public class ProductSummaryDto : ProductSummaryCommonDto +``` + +**Inheritance** + +* Class [ProductSummaryCommonDto](productsummarycommondto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### ProductSummaryDto + +The default constructor. + +```csharp +public ProductSummaryDto() +``` + + +### Properties + +#### HasVariants + +```csharp +public bool HasVariants { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productvariantsearchdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productvariantsearchdto.md new file mode 100644 index 00000000000..702352c66d6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productvariantsearchdto.md @@ -0,0 +1,47 @@ +--- +title: ProductVariantSearchDto +description: API reference for ProductVariantSearchDto in Umbraco Commerce +--- +## ProductVariantSearchDto + +```csharp +public class ProductVariantSearchDto : ProductSearchDto +``` + +**Inheritance** + +* Class [ProductSearchDto](productsearchdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### ProductVariantSearchDto + +The default constructor. + +```csharp +public ProductVariantSearchDto() +``` + + +### Properties + +#### Attributes + +```csharp +public string[] Attributes { get; set; } +``` + + +--- + +#### ProductReference + +```csharp +public string ProductReference { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productvariantsummarydto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productvariantsummarydto.md new file mode 100644 index 00000000000..d2c3cbe0ffe --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/productvariantsummarydto.md @@ -0,0 +1,38 @@ +--- +title: ProductVariantSummaryDto +description: API reference for ProductVariantSummaryDto in Umbraco Commerce +--- +## ProductVariantSummaryDto + +```csharp +public class ProductVariantSummaryDto : ProductSummaryCommonDto +``` + +**Inheritance** + +* Class [ProductSummaryCommonDto](productsummarycommondto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### ProductVariantSummaryDto + +The default constructor. + +```csharp +public ProductVariantSummaryDto() +``` + + +### Properties + +#### Attributes + +```csharp +public IReadOnlyDictionary Attributes { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/propertydto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/propertydto.md new file mode 100644 index 00000000000..053b2a2f89a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/propertydto.md @@ -0,0 +1,61 @@ +--- +title: PropertyDto +description: API reference for PropertyDto in Umbraco Commerce +--- +## PropertyDto + +```csharp +public class PropertyDto +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### PropertyDto + +The default constructor. + +```csharp +public PropertyDto() +``` + + +### Properties + +#### Alias + +```csharp +public string Alias { get; set; } +``` + + +--- + +#### Description + +```csharp +public string Description { get; set; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; set; } +``` + + +--- + +#### Value + +```csharp +public object Value { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/propertyvaluedto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/propertyvaluedto.md new file mode 100644 index 00000000000..77cbf7fe7d3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/propertyvaluedto.md @@ -0,0 +1,52 @@ +--- +title: PropertyValueDto +description: API reference for PropertyValueDto in Umbraco Commerce +--- +## PropertyValueDto + +```csharp +public class PropertyValueDto +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### PropertyValueDto + +The default constructor. + +```csharp +public PropertyValueDto() +``` + + +### Properties + +#### IsReadOnly + +```csharp +public bool IsReadOnly { get; set; } +``` + + +--- + +#### IsServerSideOnly + +```csharp +public bool IsServerSideOnly { get; set; } +``` + + +--- + +#### Value + +```csharp +public string Value { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/regionbasicdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/regionbasicdto.md new file mode 100644 index 00000000000..33f6f9a2ee1 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/regionbasicdto.md @@ -0,0 +1,65 @@ +--- +title: RegionBasicDto +description: API reference for RegionBasicDto in Umbraco Commerce +--- +## RegionBasicDto + +```csharp +public class RegionBasicDto : NamedEntityBasicDto +``` + +**Inheritance** + +* Class [NamedEntityBasicDto](namedentitybasicdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### RegionBasicDto + +The default constructor. + +```csharp +public RegionBasicDto() +``` + + +### Properties + +#### Code + +```csharp +public string Code { get; set; } +``` + + +--- + +#### CountryId + +```csharp +public Guid CountryId { get; set; } +``` + + +--- + +#### SortOrder + +```csharp +public int SortOrder { get; set; } +``` + + +--- + +#### StoreId + +```csharp +public Guid StoreId { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/regiondto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/regiondto.md new file mode 100644 index 00000000000..ef4b9f8a23d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/regiondto.md @@ -0,0 +1,47 @@ +--- +title: RegionDto +description: API reference for RegionDto in Umbraco Commerce +--- +## RegionDto + +```csharp +public class RegionDto : RegionBasicDto +``` + +**Inheritance** + +* Class [RegionBasicDto](regionbasicdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### RegionDto + +The default constructor. + +```csharp +public RegionDto() +``` + + +### Properties + +#### DefaultPaymentMethodId + +```csharp +public Guid? DefaultPaymentMethodId { get; set; } +``` + + +--- + +#### DefaultShippingMethodId + +```csharp +public Guid? DefaultShippingMethodId { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/regioneditdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/regioneditdto.md new file mode 100644 index 00000000000..d9a22ff84b4 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/regioneditdto.md @@ -0,0 +1,48 @@ +--- +title: RegionEditDto +description: API reference for RegionEditDto in Umbraco Commerce +--- +## RegionEditDto + +```csharp +public class RegionEditDto : RegionDto, IHasPath, INotificationModel +``` + +**Inheritance** + +* Class [RegionDto](regiondto.md) +* interface [IHasPath](ihaspath.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### RegionEditDto + +The default constructor. + +```csharp +public RegionEditDto() +``` + + +### Properties + +#### Notifications + +```csharp +public List Notifications { get; set; } +``` + + +--- + +#### Path + +```csharp +public List Path { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/regionsavedto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/regionsavedto.md new file mode 100644 index 00000000000..de0bec76946 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/regionsavedto.md @@ -0,0 +1,38 @@ +--- +title: RegionSaveDto +description: API reference for RegionSaveDto in Umbraco Commerce +--- +## RegionSaveDto + +```csharp +public class RegionSaveDto : RegionDto, IValidatableObject +``` + +**Inheritance** + +* Class [RegionDto](regiondto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### RegionSaveDto + +The default constructor. + +```csharp +public RegionSaveDto() +``` + + +### Methods + +#### Validate + +```csharp +public IEnumerable Validate(ValidationContext validationContext) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/registeredcustomerinfodto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/registeredcustomerinfodto.md new file mode 100644 index 00000000000..89afc252ab0 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/registeredcustomerinfodto.md @@ -0,0 +1,43 @@ +--- +title: RegisteredCustomerInfoDto +description: API reference for RegisteredCustomerInfoDto in Umbraco Commerce +--- +## RegisteredCustomerInfoDto + +```csharp +public class RegisteredCustomerInfoDto +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### RegisteredCustomerInfoDto + +The default constructor. + +```csharp +public RegisteredCustomerInfoDto() +``` + + +### Properties + +#### IsUmbracoMember + +```csharp +public bool IsUmbracoMember { get; set; } +``` + + +--- + +#### Properties + +```csharp +public IEnumerable Properties { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/searchdtobase.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/searchdtobase.md new file mode 100644 index 00000000000..a252f8dc61d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/searchdtobase.md @@ -0,0 +1,43 @@ +--- +title: SearchDtoBase +description: API reference for SearchDtoBase in Umbraco Commerce +--- +## SearchDtoBase + +```csharp +public abstract class SearchDtoBase +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### SearchDtoBase + +The default constructor. + +```csharp +public SearchDtoBase() +``` + + +### Properties + +#### ItemsPerPage + +```csharp +public long ItemsPerPage { get; set; } +``` + + +--- + +#### PageNumber + +```csharp +public long PageNumber { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/senddiscountemaildto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/senddiscountemaildto.md new file mode 100644 index 00000000000..33c1779c5bf --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/senddiscountemaildto.md @@ -0,0 +1,38 @@ +--- +title: SendDiscountEmailDto +description: API reference for SendDiscountEmailDto in Umbraco Commerce +--- +## SendDiscountEmailDto + +```csharp +public class SendDiscountEmailDto : SendEmailDto +``` + +**Inheritance** + +* Class [SendEmailDto](sendemaildto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### SendDiscountEmailDto + +The default constructor. + +```csharp +public SendDiscountEmailDto() +``` + + +### Properties + +#### discountId + +```csharp +public Guid discountId { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/sendemaildto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/sendemaildto.md new file mode 100644 index 00000000000..0aa93ed39c5 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/sendemaildto.md @@ -0,0 +1,52 @@ +--- +title: SendEmailDto +description: API reference for SendEmailDto in Umbraco Commerce +--- +## SendEmailDto + +```csharp +public class SendEmailDto +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### SendEmailDto + +The default constructor. + +```csharp +public SendEmailDto() +``` + + +### Properties + +#### emailTemlateId + +```csharp +public Guid emailTemlateId { get; set; } +``` + + +--- + +#### languageIsoCode + +```csharp +public string languageIsoCode { get; set; } +``` + + +--- + +#### to + +```csharp +public string to { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/sendgiftcardemaildto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/sendgiftcardemaildto.md new file mode 100644 index 00000000000..016d9b8fa6b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/sendgiftcardemaildto.md @@ -0,0 +1,38 @@ +--- +title: SendGiftCardEmailDto +description: API reference for SendGiftCardEmailDto in Umbraco Commerce +--- +## SendGiftCardEmailDto + +```csharp +public class SendGiftCardEmailDto : SendEmailDto +``` + +**Inheritance** + +* Class [SendEmailDto](sendemaildto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### SendGiftCardEmailDto + +The default constructor. + +```csharp +public SendGiftCardEmailDto() +``` + + +### Properties + +#### giftCardId + +```csharp +public Guid giftCardId { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/sendorderemaildto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/sendorderemaildto.md new file mode 100644 index 00000000000..aa46b57138d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/sendorderemaildto.md @@ -0,0 +1,38 @@ +--- +title: SendOrderEmailDto +description: API reference for SendOrderEmailDto in Umbraco Commerce +--- +## SendOrderEmailDto + +```csharp +public class SendOrderEmailDto : SendEmailDto +``` + +**Inheritance** + +* Class [SendEmailDto](sendemaildto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### SendOrderEmailDto + +The default constructor. + +```csharp +public SendOrderEmailDto() +``` + + +### Properties + +#### orderId + +```csharp +public Guid orderId { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/servicepricedto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/servicepricedto.md new file mode 100644 index 00000000000..4dc30670d9e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/servicepricedto.md @@ -0,0 +1,61 @@ +--- +title: ServicePriceDto +description: API reference for ServicePriceDto in Umbraco Commerce +--- +## ServicePriceDto + +```csharp +public class ServicePriceDto +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### ServicePriceDto + +The default constructor. + +```csharp +public ServicePriceDto() +``` + + +### Properties + +#### CountryId + +```csharp +public Guid? CountryId { get; set; } +``` + + +--- + +#### CurrencyId + +```csharp +public Guid CurrencyId { get; set; } +``` + + +--- + +#### RegionId + +```csharp +public Guid? RegionId { get; set; } +``` + + +--- + +#### Value + +```csharp +public decimal Value { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/shippingmethodbasicdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/shippingmethodbasicdto.md new file mode 100644 index 00000000000..25e125f19f5 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/shippingmethodbasicdto.md @@ -0,0 +1,65 @@ +--- +title: ShippingMethodBasicDto +description: API reference for ShippingMethodBasicDto in Umbraco Commerce +--- +## ShippingMethodBasicDto + +```csharp +public class ShippingMethodBasicDto : NamedEntityBasicDto +``` + +**Inheritance** + +* Class [NamedEntityBasicDto](namedentitybasicdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### ShippingMethodBasicDto + +The default constructor. + +```csharp +public ShippingMethodBasicDto() +``` + + +### Properties + +#### Alias + +```csharp +public string Alias { get; set; } +``` + + +--- + +#### Sku + +```csharp +public string Sku { get; set; } +``` + + +--- + +#### SortOrder + +```csharp +public int SortOrder { get; set; } +``` + + +--- + +#### StoreId + +```csharp +public Guid StoreId { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/shippingmethoddto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/shippingmethoddto.md new file mode 100644 index 00000000000..c732aacb89e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/shippingmethoddto.md @@ -0,0 +1,65 @@ +--- +title: ShippingMethodDto +description: API reference for ShippingMethodDto in Umbraco Commerce +--- +## ShippingMethodDto + +```csharp +public class ShippingMethodDto : ShippingMethodBasicDto +``` + +**Inheritance** + +* Class [ShippingMethodBasicDto](shippingmethodbasicdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### ShippingMethodDto + +The default constructor. + +```csharp +public ShippingMethodDto() +``` + + +### Properties + +#### AllowedCountryRegions + +```csharp +public List AllowedCountryRegions { get; set; } +``` + + +--- + +#### ImageId + +```csharp +public string ImageId { get; set; } +``` + + +--- + +#### Prices + +```csharp +public List Prices { get; set; } +``` + + +--- + +#### TaxClassId + +```csharp +public Guid? TaxClassId { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/shippingmethodeditdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/shippingmethodeditdto.md new file mode 100644 index 00000000000..9ee2705d4ae --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/shippingmethodeditdto.md @@ -0,0 +1,48 @@ +--- +title: ShippingMethodEditDto +description: API reference for ShippingMethodEditDto in Umbraco Commerce +--- +## ShippingMethodEditDto + +```csharp +public class ShippingMethodEditDto : ShippingMethodDto, IHasPath, INotificationModel +``` + +**Inheritance** + +* Class [ShippingMethodDto](shippingmethoddto.md) +* interface [IHasPath](ihaspath.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### ShippingMethodEditDto + +The default constructor. + +```csharp +public ShippingMethodEditDto() +``` + + +### Properties + +#### Notifications + +```csharp +public List Notifications { get; set; } +``` + + +--- + +#### Path + +```csharp +public List Path { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/shippingmethodsavedto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/shippingmethodsavedto.md new file mode 100644 index 00000000000..4d3b65a2796 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/shippingmethodsavedto.md @@ -0,0 +1,38 @@ +--- +title: ShippingMethodSaveDto +description: API reference for ShippingMethodSaveDto in Umbraco Commerce +--- +## ShippingMethodSaveDto + +```csharp +public class ShippingMethodSaveDto : ShippingMethodDto, IValidatableObject +``` + +**Inheritance** + +* Class [ShippingMethodDto](shippingmethoddto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### ShippingMethodSaveDto + +The default constructor. + +```csharp +public ShippingMethodSaveDto() +``` + + +### Methods + +#### Validate + +```csharp +public IEnumerable Validate(ValidationContext validationContext) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/sortentitiespostdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/sortentitiespostdto.md new file mode 100644 index 00000000000..9edcb8e63ac --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/sortentitiespostdto.md @@ -0,0 +1,61 @@ +--- +title: SortEntitiesPostDto +description: API reference for SortEntitiesPostDto in Umbraco Commerce +--- +## SortEntitiesPostDto + +```csharp +public class SortEntitiesPostDto +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### SortEntitiesPostDto + +The default constructor. + +```csharp +public SortEntitiesPostDto() +``` + + +### Properties + +#### EntityType + +```csharp +public string EntityType { get; set; } +``` + + +--- + +#### ParentId + +```csharp +public Guid? ParentId { get; set; } +``` + + +--- + +#### SortedEntityIds + +```csharp +public Guid[] SortedEntityIds { get; set; } +``` + + +--- + +#### StoreId + +```csharp +public Guid? StoreId { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/stockdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/stockdto.md new file mode 100644 index 00000000000..5eb7f362e46 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/stockdto.md @@ -0,0 +1,43 @@ +--- +title: StockDto +description: API reference for StockDto in Umbraco Commerce +--- +## StockDto + +```csharp +public class StockDto +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### StockDto + +The default constructor. + +```csharp +public StockDto() +``` + + +### Properties + +#### Sku + +```csharp +public string Sku { get; set; } +``` + + +--- + +#### Value + +```csharp +public decimal? Value { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/storeactiondto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/storeactiondto.md new file mode 100644 index 00000000000..7648da2e972 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/storeactiondto.md @@ -0,0 +1,52 @@ +--- +title: StoreActionDto +description: API reference for StoreActionDto in Umbraco Commerce +--- +## StoreActionDto + +```csharp +public class StoreActionDto +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### StoreActionDto + +The default constructor. + +```csharp +public StoreActionDto() +``` + + +### Properties + +#### Description + +```csharp +public string Description { get; set; } +``` + + +--- + +#### Icon + +```csharp +public string Icon { get; set; } +``` + + +--- + +#### RoutePath + +```csharp +public string RoutePath { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/storeactionsdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/storeactionsdto.md new file mode 100644 index 00000000000..9ee374675ff --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/storeactionsdto.md @@ -0,0 +1,34 @@ +--- +title: StoreActionsDto +description: API reference for StoreActionsDto in Umbraco Commerce +--- +## StoreActionsDto + +```csharp +public class StoreActionsDto : List +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### StoreActionsDto + +The default constructor. + +```csharp +public StoreActionsDto() +``` + + +--- + +#### StoreActionsDto + +```csharp +public StoreActionsDto(IEnumerable actions) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/storebasicdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/storebasicdto.md new file mode 100644 index 00000000000..41d36eebb4a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/storebasicdto.md @@ -0,0 +1,56 @@ +--- +title: StoreBasicDto +description: API reference for StoreBasicDto in Umbraco Commerce +--- +## StoreBasicDto + +```csharp +public class StoreBasicDto : NamedEntityBasicDto +``` + +**Inheritance** + +* Class [NamedEntityBasicDto](namedentitybasicdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### StoreBasicDto + +The default constructor. + +```csharp +public StoreBasicDto() +``` + + +### Properties + +#### Alias + +```csharp +public string Alias { get; set; } +``` + + +--- + +#### PricesIncludeTax + +```csharp +public bool PricesIncludeTax { get; set; } +``` + + +--- + +#### SortOrder + +```csharp +public int SortOrder { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/storedto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/storedto.md new file mode 100644 index 00000000000..99933eecb20 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/storedto.md @@ -0,0 +1,236 @@ +--- +title: StoreDto +description: API reference for StoreDto in Umbraco Commerce +--- +## StoreDto + +```csharp +public class StoreDto : StoreBasicDto +``` + +**Inheritance** + +* Class [StoreBasicDto](storebasicdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### StoreDto + +The default constructor. + +```csharp +public StoreDto() +``` + + +### Properties + +#### AllowedUserRoles + +```csharp +public List AllowedUserRoles { get; set; } +``` + + +--- + +#### AllowedUsers + +```csharp +public List AllowedUsers { get; set; } +``` + + +--- + +#### BaseCurrencyId + +```csharp +public Guid? BaseCurrencyId { get; set; } +``` + + +--- + +#### CartNumberTemplate + +```csharp +public string CartNumberTemplate { get; set; } +``` + + +--- + +#### ConfirmationEmailTemplateId + +```csharp +public Guid? ConfirmationEmailTemplateId { get; set; } +``` + + +--- + +#### CookieTimeout + +```csharp +public int? CookieTimeout { get; set; } +``` + + +--- + +#### DefaultCountryId + +```csharp +public Guid? DefaultCountryId { get; set; } +``` + + +--- + +#### DefaultGiftCardEmailTemplateId + +```csharp +public Guid? DefaultGiftCardEmailTemplateId { get; } +``` + + +--- + +#### DefaultOrderStatusId + +```csharp +public Guid? DefaultOrderStatusId { get; set; } +``` + + +--- + +#### DefaultTaxClassId + +```csharp +public Guid? DefaultTaxClassId { get; set; } +``` + + +--- + +#### ErrorEmailTemplateId + +```csharp +public Guid? ErrorEmailTemplateId { get; set; } +``` + + +--- + +#### ErrorOrderStatusId + +```csharp +public Guid? ErrorOrderStatusId { get; set; } +``` + + +--- + +#### GiftCardActivationMethod + +```csharp +public string GiftCardActivationMethod { get; } +``` + + +--- + +#### GiftCardActivationOrderStatusId + +```csharp +public Guid? GiftCardActivationOrderStatusId { get; } +``` + + +--- + +#### GiftCardCodeLength + +```csharp +public int GiftCardCodeLength { get; set; } +``` + + +--- + +#### GiftCardCodeTemplate + +```csharp +public string GiftCardCodeTemplate { get; set; } +``` + + +--- + +#### GiftCardDaysValid + +```csharp +public int GiftCardDaysValid { get; set; } +``` + + +--- + +#### GiftCardPropertyAliases + +```csharp +public string GiftCardPropertyAliases { get; set; } +``` + + +--- + +#### OrderNumberTemplate + +```csharp +public string OrderNumberTemplate { get; set; } +``` + + +--- + +#### OrderRoundingMethod + +```csharp +public string OrderRoundingMethod { get; set; } +``` + + +--- + +#### ProductPropertyAliases + +```csharp +public string ProductPropertyAliases { get; set; } +``` + + +--- + +#### ProductUniquenessPropertyAliases + +```csharp +public string ProductUniquenessPropertyAliases { get; set; } +``` + + +--- + +#### UseCookies + +```csharp +public bool UseCookies { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/storeeditdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/storeeditdto.md new file mode 100644 index 00000000000..a05ae203e1e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/storeeditdto.md @@ -0,0 +1,48 @@ +--- +title: StoreEditDto +description: API reference for StoreEditDto in Umbraco Commerce +--- +## StoreEditDto + +```csharp +public class StoreEditDto : StoreDto, IHasPath, INotificationModel +``` + +**Inheritance** + +* Class [StoreDto](storedto.md) +* interface [IHasPath](ihaspath.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### StoreEditDto + +The default constructor. + +```csharp +public StoreEditDto() +``` + + +### Properties + +#### Notifications + +```csharp +public List Notifications { get; set; } +``` + + +--- + +#### Path + +```csharp +public List Path { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/storesavedto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/storesavedto.md new file mode 100644 index 00000000000..1cc7229d0d6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/storesavedto.md @@ -0,0 +1,38 @@ +--- +title: StoreSaveDto +description: API reference for StoreSaveDto in Umbraco Commerce +--- +## StoreSaveDto + +```csharp +public class StoreSaveDto : StoreDto, IValidatableObject +``` + +**Inheritance** + +* Class [StoreDto](storedto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### StoreSaveDto + +The default constructor. + +```csharp +public StoreSaveDto() +``` + + +### Methods + +#### Validate + +```csharp +public IEnumerable Validate(ValidationContext validationContext) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/storestatsdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/storestatsdto.md new file mode 100644 index 00000000000..828c4fd37ec --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/storestatsdto.md @@ -0,0 +1,88 @@ +--- +title: StoreStatsDto +description: API reference for StoreStatsDto in Umbraco Commerce +--- +## StoreStatsDto + +```csharp +public class StoreStatsDto +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### StoreStatsDto + +The default constructor. + +```csharp +public StoreStatsDto() +``` + + +### Properties + +#### TotalAuthorizedOrders + +```csharp +public long TotalAuthorizedOrders { get; set; } +``` + + +--- + +#### TotalCapturedOrders + +```csharp +public long TotalCapturedOrders { get; set; } +``` + + +--- + +#### TotalErroredOrders + +```csharp +public long TotalErroredOrders { get; set; } +``` + + +--- + +#### TotalNewOrders + +```csharp +public long TotalNewOrders { get; set; } +``` + + +--- + +#### TotalOrders + +```csharp +public long TotalOrders { get; set; } +``` + + +--- + +#### TotalRefundedOrders + +```csharp +public long TotalRefundedOrders { get; set; } +``` + + +--- + +#### TotalRevenue + +```csharp +public string TotalRevenue { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/storesummarydto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/storesummarydto.md new file mode 100644 index 00000000000..32934e3dc40 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/storesummarydto.md @@ -0,0 +1,106 @@ +--- +title: StoreSummaryDto +description: API reference for StoreSummaryDto in Umbraco Commerce +--- +## StoreSummaryDto + +```csharp +public class StoreSummaryDto +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### StoreSummaryDto + +The default constructor. + +```csharp +public StoreSummaryDto() +``` + + +### Properties + +#### BaseCurrencyCode + +```csharp +public string BaseCurrencyCode { get; set; } +``` + + +--- + +#### BaseCurrencyId + +```csharp +public Guid? BaseCurrencyId { get; set; } +``` + + +--- + +#### BaseCurrencyName + +```csharp +public string BaseCurrencyName { get; set; } +``` + + +--- + +#### DefaultCountryId + +```csharp +public Guid? DefaultCountryId { get; set; } +``` + + +--- + +#### DefaultCountryName + +```csharp +public string DefaultCountryName { get; set; } +``` + + +--- + +#### Id + +```csharp +public Guid Id { get; set; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; set; } +``` + + +--- + +#### TotalOrdersToDate + +```csharp +public long TotalOrdersToDate { get; set; } +``` + + +--- + +#### TotalRevenueToDate + +```csharp +public string TotalRevenueToDate { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/taxclassbasicdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/taxclassbasicdto.md new file mode 100644 index 00000000000..8293f67ed14 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/taxclassbasicdto.md @@ -0,0 +1,65 @@ +--- +title: TaxClassBasicDto +description: API reference for TaxClassBasicDto in Umbraco Commerce +--- +## TaxClassBasicDto + +```csharp +public class TaxClassBasicDto : NamedEntityBasicDto +``` + +**Inheritance** + +* Class [NamedEntityBasicDto](namedentitybasicdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### TaxClassBasicDto + +The default constructor. + +```csharp +public TaxClassBasicDto() +``` + + +### Properties + +#### Alias + +```csharp +public string Alias { get; set; } +``` + + +--- + +#### DefaultTaxRate + +```csharp +public decimal DefaultTaxRate { get; set; } +``` + + +--- + +#### SortOrder + +```csharp +public int SortOrder { get; set; } +``` + + +--- + +#### StoreId + +```csharp +public Guid StoreId { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/taxclassdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/taxclassdto.md new file mode 100644 index 00000000000..758b4c55aed --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/taxclassdto.md @@ -0,0 +1,38 @@ +--- +title: TaxClassDto +description: API reference for TaxClassDto in Umbraco Commerce +--- +## TaxClassDto + +```csharp +public class TaxClassDto : TaxClassBasicDto +``` + +**Inheritance** + +* Class [TaxClassBasicDto](taxclassbasicdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### TaxClassDto + +The default constructor. + +```csharp +public TaxClassDto() +``` + + +### Properties + +#### CountryRegionTaxRates + +```csharp +public List CountryRegionTaxRates { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/taxclasseditdto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/taxclasseditdto.md new file mode 100644 index 00000000000..2ffe9997784 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/taxclasseditdto.md @@ -0,0 +1,48 @@ +--- +title: TaxClassEditDto +description: API reference for TaxClassEditDto in Umbraco Commerce +--- +## TaxClassEditDto + +```csharp +public class TaxClassEditDto : TaxClassDto, IHasPath, INotificationModel +``` + +**Inheritance** + +* Class [TaxClassDto](taxclassdto.md) +* interface [IHasPath](ihaspath.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### TaxClassEditDto + +The default constructor. + +```csharp +public TaxClassEditDto() +``` + + +### Properties + +#### Notifications + +```csharp +public List Notifications { get; set; } +``` + + +--- + +#### Path + +```csharp +public List Path { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/taxclasssavedto.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/taxclasssavedto.md new file mode 100644 index 00000000000..4ece55862eb --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-models/taxclasssavedto.md @@ -0,0 +1,38 @@ +--- +title: TaxClassSaveDto +description: API reference for TaxClassSaveDto in Umbraco Commerce +--- +## TaxClassSaveDto + +```csharp +public class TaxClassSaveDto : TaxClassDto, IValidatableObject +``` + +**Inheritance** + +* Class [TaxClassDto](taxclassdto.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Models](README.md) + +### Constructors + +#### TaxClassSaveDto + +The default constructor. + +```csharp +public TaxClassSaveDto() +``` + + +### Methods + +#### Validate + +```csharp +public IEnumerable Validate(ValidationContext validationContext) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-mvc/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-mvc/README.md new file mode 100644 index 00000000000..25bea731792 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-mvc/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Cms.Web.Mvc +description: API reference for Umbraco.Commerce.Cms.Web.Mvc in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Web.Mvc namespace + +| Public Type | Description | +| --- | --- | +| class [UmbracoCommerceRequestBufferingMiddleware](umbracocommercerequestbufferingmiddleware.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-mvc/umbracocommercerequestbufferingmiddleware.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-mvc/umbracocommercerequestbufferingmiddleware.md new file mode 100644 index 00000000000..2aedf0d6d66 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-mvc/umbracocommercerequestbufferingmiddleware.md @@ -0,0 +1,34 @@ +--- +title: UmbracoCommerceRequestBufferingMiddleware +description: API reference for UmbracoCommerceRequestBufferingMiddleware in Umbraco Commerce +--- +## UmbracoCommerceRequestBufferingMiddleware + +```csharp +public class UmbracoCommerceRequestBufferingMiddleware : IMiddleware +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Mvc](README.md) + +### Constructors + +#### UmbracoCommerceRequestBufferingMiddleware + +The default constructor. + +```csharp +public UmbracoCommerceRequestBufferingMiddleware() +``` + + +### Methods + +#### InvokeAsync + +```csharp +public Task InvokeAsync(HttpContext context, RequestDelegate next) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-routing/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-routing/README.md new file mode 100644 index 00000000000..3cebfacf9ee --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-routing/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Cms.Web.Routing +description: API reference for Umbraco.Commerce.Cms.Web.Routing in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Web.Routing namespace + +| Public Type | Description | +| --- | --- | +| class [UmbracoCommerceAreaRoutes](umbracocommercearearoutes.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-routing/umbracocommercearearoutes.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-routing/umbracocommercearearoutes.md new file mode 100644 index 00000000000..819404e5a3c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-routing/umbracocommercearearoutes.md @@ -0,0 +1,32 @@ +--- +title: UmbracoCommerceAreaRoutes +description: API reference for UmbracoCommerceAreaRoutes in Umbraco Commerce +--- +## UmbracoCommerceAreaRoutes + +```csharp +public class UmbracoCommerceAreaRoutes : IAreaRoutes +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Routing](README.md) + +### Constructors + +#### UmbracoCommerceAreaRoutes + +```csharp +public UmbracoCommerceAreaRoutes(IUmbracoCommerceSettings settings) +``` + + +### Methods + +#### CreateRoutes + +```csharp +public void CreateRoutes(IEndpointRouteBuilder endpoints) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-sections/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-sections/README.md new file mode 100644 index 00000000000..854defaad4d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-sections/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Cms.Web.Sections +description: API reference for Umbraco.Commerce.Cms.Web.Sections in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Web.Sections namespace + +| Public Type | Description | +| --- | --- | +| class [CommerceSection](commercesection.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-sections/commercesection.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-sections/commercesection.md new file mode 100644 index 00000000000..f46f222c591 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-sections/commercesection.md @@ -0,0 +1,43 @@ +--- +title: CommerceSection +description: API reference for CommerceSection in Umbraco Commerce +--- +## CommerceSection + +```csharp +public class CommerceSection : ISection +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Sections](README.md) + +### Constructors + +#### CommerceSection + +The default constructor. + +```csharp +public CommerceSection() +``` + + +### Properties + +#### Alias + +```csharp +public string Alias { get; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-trees/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-trees/README.md new file mode 100644 index 00000000000..18bf945e4d4 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-trees/README.md @@ -0,0 +1,13 @@ +--- +title: Umbraco.Commerce.Cms.Web.Trees +description: API reference for Umbraco.Commerce.Cms.Web.Trees in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Web.Trees namespace + +| Public Type | Description | +| --- | --- | +| class [UmbracoCommerceSettingsTreeController](umbracocommercesettingstreecontroller.md) | | +| class [UmbracoCommerceStoresTreeController](umbracocommercestorestreecontroller.md) | | +| abstract class [UmbracoCommerceTreeControllerBase<TEnum>](umbracocommercetreecontrollerbase-1.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-trees/umbracocommercesettingstreecontroller.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-trees/umbracocommercesettingstreecontroller.md new file mode 100644 index 00000000000..8342b2eb18b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-trees/umbracocommercesettingstreecontroller.md @@ -0,0 +1,31 @@ +--- +title: UmbracoCommerceSettingsTreeController +description: API reference for UmbracoCommerceSettingsTreeController in Umbraco Commerce +--- +## UmbracoCommerceSettingsTreeController + +```csharp +public class UmbracoCommerceSettingsTreeController : UmbracoCommerceTreeControllerBase +``` + +**Inheritance** + +* Class [UmbracoCommerceTreeControllerBase<TEnum>](umbracocommercetreecontrollerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Trees](README.md) + +### Constructors + +#### UmbracoCommerceSettingsTreeController + +```csharp +public UmbracoCommerceSettingsTreeController(ILocalizedTextService localizedTextService, + IMenuItemCollectionFactory menuItemCollectionFactory, + UmbracoApiControllerTypeCollection umbracoApiControllerTypeCollection, + IEventAggregator eventAggregator, IBackOfficeSecurityAccessor backOfficeSecurityAccesor, + IUmbracoCommerceApi api) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-trees/umbracocommercestorestreecontroller.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-trees/umbracocommercestorestreecontroller.md new file mode 100644 index 00000000000..d4d6cf1ed67 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-trees/umbracocommercestorestreecontroller.md @@ -0,0 +1,31 @@ +--- +title: UmbracoCommerceStoresTreeController +description: API reference for UmbracoCommerceStoresTreeController in Umbraco Commerce +--- +## UmbracoCommerceStoresTreeController + +```csharp +public class UmbracoCommerceStoresTreeController : UmbracoCommerceTreeControllerBase +``` + +**Inheritance** + +* Class [UmbracoCommerceTreeControllerBase<TEnum>](umbracocommercetreecontrollerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Trees](README.md) + +### Constructors + +#### UmbracoCommerceStoresTreeController + +```csharp +public UmbracoCommerceStoresTreeController(ILocalizedTextService localizedTextService, + IMenuItemCollectionFactory menuItemCollectionFactory, + UmbracoApiControllerTypeCollection umbracoApiControllerTypeCollection, + IEventAggregator eventAggregator, IBackOfficeSecurityAccessor backOfficeSecurityAccesor, + IUmbracoCommerceApi api) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-trees/umbracocommercetreecontrollerbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-trees/umbracocommercetreecontrollerbase-1.md new file mode 100644 index 00000000000..316d2109922 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web-trees/umbracocommercetreecontrollerbase-1.md @@ -0,0 +1,27 @@ +--- +title: UmbracoCommerceTreeControllerBase +description: API reference for UmbracoCommerceTreeControllerBase in Umbraco Commerce +--- +## UmbracoCommerceTreeControllerBase<TEnum> + +```csharp +public abstract class UmbracoCommerceTreeControllerBase : TreeController + where TEnum : struct, IConvertible +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web.Trees](README.md) + +### Constructors + +#### UmbracoCommerceTreeControllerBase<TEnum> + +```csharp +public UmbracoCommerceTreeControllerBase(ILocalizedTextService localizedTextService, + IMenuItemCollectionFactory menuItemCollectionFactory, + UmbracoApiControllerTypeCollection umbracoApiControllerTypeCollection, + IEventAggregator eventAggregator, IBackOfficeSecurityAccessor backOfficeSecurityAccesor) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web/README.md new file mode 100644 index 00000000000..3bf1c40bc67 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Cms.Web +description: API reference for Umbraco.Commerce.Cms.Web in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Web namespace + +| Public Type | Description | +| --- | --- | +| class [UmbracoCommerceServerVariablesInjector](umbracocommerceservervariablesinjector.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web/umbracocommerceservervariablesinjector.md b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web/umbracocommerceservervariablesinjector.md new file mode 100644 index 00000000000..b2ba10f02af --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms-web/umbraco-commerce-cms-web/umbracocommerceservervariablesinjector.md @@ -0,0 +1,33 @@ +--- +title: UmbracoCommerceServerVariablesInjector +description: API reference for UmbracoCommerceServerVariablesInjector in Umbraco Commerce +--- +## UmbracoCommerceServerVariablesInjector + +```csharp +public class UmbracoCommerceServerVariablesInjector +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Web](README.md) + +### Constructors + +#### UmbracoCommerceServerVariablesInjector + +```csharp +public UmbracoCommerceServerVariablesInjector(Lazy paymentProviders, + LinkGenerator linkGenerator) +``` + + +### Methods + +#### Inject + +```csharp +public void Inject(IDictionary dict) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/README.md new file mode 100644 index 00000000000..366c3e0eb6c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/README.md @@ -0,0 +1,39 @@ +--- +title: Umbraco.Commerce.Cms +description: API reference for Umbraco.Commerce.Cms in Umbraco Commerce +--- +## Umbraco.Commerce.Cms assembly + +| Namespace | +| --- | +| [Umbraco.Commerce.Cms](umbraco-commerce-cms/README.md) | +| [Umbraco.Commerce.Cms.Adapters](umbraco-commerce-cms-adapters/README.md) | +| [Umbraco.Commerce.Cms.Authorization](umbraco-commerce-cms-authorization/README.md) | +| [Umbraco.Commerce.Cms.Cache](umbraco-commerce-cms-cache/README.md) | +| [Umbraco.Commerce.Cms.Cache.Refreshers](umbraco-commerce-cms-cache-refreshers/README.md) | +| [Umbraco.Commerce.Cms.Composing](umbraco-commerce-cms-composing/README.md) | +| [Umbraco.Commerce.Cms.Configuration](umbraco-commerce-cms-configuration/README.md) | +| [Umbraco.Commerce.Cms.Content](umbraco-commerce-cms-content/README.md) | +| [Umbraco.Commerce.Cms.Data](umbraco-commerce-cms-data/README.md) | +| [Umbraco.Commerce.Cms.Discounts.Rewards](umbraco-commerce-cms-discounts-rewards/README.md) | +| [Umbraco.Commerce.Cms.Discounts.Rules](umbraco-commerce-cms-discounts-rules/README.md) | +| [Umbraco.Commerce.Cms.Events.Notification](umbraco-commerce-cms-events-notification/README.md) | +| [Umbraco.Commerce.Cms.Examine](umbraco-commerce-cms-examine/README.md) | +| [Umbraco.Commerce.Cms.Extractors](umbraco-commerce-cms-extractors/README.md) | +| [Umbraco.Commerce.Cms.Filters](umbraco-commerce-cms-filters/README.md) | +| [Umbraco.Commerce.Cms.Filters.Implement](umbraco-commerce-cms-filters-implement/README.md) | +| [Umbraco.Commerce.Cms.Finders](umbraco-commerce-cms-finders/README.md) | +| [Umbraco.Commerce.Cms.HealthChecks](umbraco-commerce-cms-healthchecks/README.md) | +| [Umbraco.Commerce.Cms.Helpers](umbraco-commerce-cms-helpers/README.md) | +| [Umbraco.Commerce.Cms.Mail](umbraco-commerce-cms-mail/README.md) | +| [Umbraco.Commerce.Cms.Models](umbraco-commerce-cms-models/README.md) | +| [Umbraco.Commerce.Cms.PropertyEditors.Stock](umbraco-commerce-cms-propertyeditors-stock/README.md) | +| [Umbraco.Commerce.Cms.PropertyEditors.VariantsEditor](umbraco-commerce-cms-propertyeditors-variantseditor/README.md) | +| [Umbraco.Commerce.Cms.Providers](umbraco-commerce-cms-providers/README.md) | +| [Umbraco.Commerce.Cms.Resolvers](umbraco-commerce-cms-resolvers/README.md) | +| [Umbraco.Commerce.Cms.Security](umbraco-commerce-cms-security/README.md) | +| [Umbraco.Commerce.Cms.Services](umbraco-commerce-cms-services/README.md) | +| [Umbraco.Commerce.Cms.ValueConverters](umbraco-commerce-cms-valueconverters/README.md) | +| [Umbraco.Commerce.Extensions](umbraco-commerce-extensions/README.md) | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-adapters/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-adapters/README.md new file mode 100644 index 00000000000..7862e5bb04f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-adapters/README.md @@ -0,0 +1,16 @@ +--- +title: Umbraco.Commerce.Cms.Adapters +description: API reference for Umbraco.Commerce.Cms.Adapters in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Adapters namespace + +| Public Type | Description | +| --- | --- | +| interface [IUmbracoProductSnapshot](iumbracoproductsnapshot.md) | | +| class [UmbracoProductAdapter](umbracoproductadapter.md) | | +| class [UmbracoProductSnapshot](umbracoproductsnapshot.md) | | +| class [UmbracoProductSummary](umbracoproductsummary.md) | | +| class [UmbracoProductVariantSummary](umbracoproductvariantsummary.md) | | +| class [UmbracoProductVariantSummaryCollection](umbracoproductvariantsummarycollection.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-adapters/iumbracoproductsnapshot.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-adapters/iumbracoproductsnapshot.md new file mode 100644 index 00000000000..f1c5ac3f04b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-adapters/iumbracoproductsnapshot.md @@ -0,0 +1,32 @@ +--- +title: IUmbracoProductSnapshot +description: API reference for IUmbracoProductSnapshot in Umbraco Commerce +--- +## IUmbracoProductSnapshot + +```csharp +public interface IUmbracoProductSnapshot +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Adapters](README.md) + +### Properties + +#### Content + +```csharp +public IPublishedContent Content { get; } +``` + + +--- + +#### VariantContent + +```csharp +public IPublishedElement VariantContent { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-adapters/umbracoproductadapter.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-adapters/umbracoproductadapter.md new file mode 100644 index 00000000000..93f682953be --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-adapters/umbracoproductadapter.md @@ -0,0 +1,81 @@ +--- +title: UmbracoProductAdapter +description: API reference for UmbracoProductAdapter in Umbraco Commerce +--- +## UmbracoProductAdapter + +```csharp +public class UmbracoProductAdapter : ProductAdapterBase +``` + +**Inheritance** + +* Class [ProductAdapterBase](../../umbraco-commerce-core/umbraco-commerce-core-adapters/productadapterbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Adapters](README.md) + +### Constructors + +#### UmbracoProductAdapter + +```csharp +public UmbracoProductAdapter(IUmbracoContextFactory umbracoContextFactory, + IContentService contentService, PublishedContentWrapperFactory publishedContentWrapperFactory, + IExamineManager examineManager) +``` + + +### Methods + +#### GetProductSnapshot + +```csharp +public override IProductSnapshot GetProductSnapshot(Guid storeId, string productReference, + string productVariantReference, string languageIsoCode) +``` + + +--- + +#### GetProductVariantAttributes + +```csharp +public override IEnumerable GetProductVariantAttributes(Guid storeId, + string productReference, string languageIsoCode) +``` + + +--- + +#### SearchProductSummaries + +```csharp +public override PagedResult SearchProductSummaries(Guid storeId, + string languageIsoCode, string searchTerm, long currentPage = 1, long itemsPerPage = 50) +``` + + +--- + +#### SearchProductVariantSummaries + +```csharp +public override PagedResult SearchProductVariantSummaries(Guid storeId, + string productReference, string languageIsoCode, string searchTerm, + IDictionary> attributes, long currentPage = 1, + long itemsPerPage = 50) +``` + + +--- + +#### TryGetProductReference + +```csharp +public override bool TryGetProductReference(Guid storeId, string sku, out string productReference, + out string productVariantReference) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-adapters/umbracoproductsnapshot.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-adapters/umbracoproductsnapshot.md new file mode 100644 index 00000000000..2bf37b7c9f8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-adapters/umbracoproductsnapshot.md @@ -0,0 +1,170 @@ +--- +title: UmbracoProductSnapshot +description: API reference for UmbracoProductSnapshot in Umbraco Commerce +--- +## UmbracoProductSnapshot + +```csharp +public class UmbracoProductSnapshot : ProductSnapshotBase, IUmbracoProductSnapshot +``` + +**Inheritance** + +* Class [ProductSnapshotBase](../../umbraco-commerce-core/umbraco-commerce-core-models/productsnapshotbase.md) +* interface [IUmbracoProductSnapshot](iumbracoproductsnapshot.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Adapters](README.md) + +### Constructors + +#### UmbracoProductSnapshot (1 of 4) + +```csharp +public UmbracoProductSnapshot(IPublishedContent content, string languageIsoCode, + string productReference, Guid storeId) +``` + +--- + +#### UmbracoProductSnapshot (2 of 4) + +```csharp +public UmbracoProductSnapshot(IPublishedContent content, IPublishedElement variantContent, + string languageIsoCode, string productReference, string productVariantReference, Guid storeId) +``` + +--- + +#### UmbracoProductSnapshot (3 of 4) + +```csharp +public UmbracoProductSnapshot(IPublishedContent content, string languageIsoCode, + string productReference, Guid storeId, + IUmbracoProductNameExtractor umbracoProductNameExtractor, + UmbracoCommerceServiceContext services, + PublishedContentHelperAccessor publishedContentHelperAccessor) +``` + +--- + +#### UmbracoProductSnapshot (4 of 4) + +```csharp +public UmbracoProductSnapshot(IPublishedContent content, IPublishedElement variantContent, + string languageIsoCode, string productReference, string productVariantReference, Guid storeId, + IUmbracoProductNameExtractor umbracoProductNameExtractor, + UmbracoCommerceServiceContext services, + PublishedContentHelperAccessor publishedContentHelperAccessor) +``` + + +### Properties + +#### Attributes + +```csharp +public override IEnumerable Attributes { get; } +``` + + +--- + +#### Content + +```csharp +public IPublishedContent Content { get; } +``` + + +--- + +#### IsGiftCard + +```csharp +public override bool IsGiftCard { get; } +``` + + +--- + +#### Name + +```csharp +public override string Name { get; } +``` + + +--- + +#### Prices + +```csharp +public override IEnumerable Prices { get; } +``` + + +--- + +#### ProductReference + +```csharp +public override string ProductReference { get; } +``` + + +--- + +#### ProductVariantReference + +```csharp +public override string ProductVariantReference { get; } +``` + + +--- + +#### Properties + +```csharp +public override IDictionary Properties { get; } +``` + + +--- + +#### Sku + +```csharp +public override string Sku { get; } +``` + + +--- + +#### StoreId + +```csharp +public override Guid StoreId { get; } +``` + + +--- + +#### TaxClassId + +```csharp +public override Guid? TaxClassId { get; } +``` + + +--- + +#### VariantContent + +```csharp +public IPublishedElement VariantContent { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-adapters/umbracoproductsummary.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-adapters/umbracoproductsummary.md new file mode 100644 index 00000000000..2a273d9fec6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-adapters/umbracoproductsummary.md @@ -0,0 +1,94 @@ +--- +title: UmbracoProductSummary +description: API reference for UmbracoProductSummary in Umbraco Commerce +--- +## UmbracoProductSummary + +```csharp +public class UmbracoProductSummary : ProductSummaryBase +``` + +**Inheritance** + +* Class [ProductSummaryBase](../../umbraco-commerce-core/umbraco-commerce-core-models/productsummarybase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Adapters](README.md) + +### Constructors + +#### UmbracoProductSummary (1 of 2) + +```csharp +public UmbracoProductSummary(IPublishedContent productNode, string languageIsoCode, + string productReference, Guid storeId) +``` + +--- + +#### UmbracoProductSummary (2 of 2) + +```csharp +public UmbracoProductSummary(IPublishedContent productNode, string languageIsoCode, + string productReference, Guid storeId, + IUmbracoProductNameExtractor umbracoProductNameExtractor, + UmbracoCommerceServiceContext services, + PublishedContentHelperAccessor publishedContentHelperAccessor) +``` + + +### Properties + +#### Content + +```csharp +public IPublishedContent Content { get; } +``` + + +--- + +#### HasVariants + +```csharp +public override bool HasVariants { get; } +``` + + +--- + +#### Name + +```csharp +public override string Name { get; } +``` + + +--- + +#### Prices + +```csharp +public override IEnumerable Prices { get; } +``` + + +--- + +#### Reference + +```csharp +public override string Reference { get; } +``` + + +--- + +#### Sku + +```csharp +public override string Sku { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-adapters/umbracoproductvariantsummary.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-adapters/umbracoproductvariantsummary.md new file mode 100644 index 00000000000..fe6cd211f6e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-adapters/umbracoproductvariantsummary.md @@ -0,0 +1,85 @@ +--- +title: UmbracoProductVariantSummary +description: API reference for UmbracoProductVariantSummary in Umbraco Commerce +--- +## UmbracoProductVariantSummary + +```csharp +public class UmbracoProductVariantSummary : ProductVariantSummaryBase +``` + +**Inheritance** + +* Class [ProductVariantSummaryBase](../../umbraco-commerce-core/umbraco-commerce-core-models/productvariantsummarybase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Adapters](README.md) + +### Constructors + +#### UmbracoProductVariantSummary (1 of 2) + +```csharp +public UmbracoProductVariantSummary(IPublishedContent product, + IReadOnlyCollection attributes, ProductVariantItem variant, + string languageIsoCode) +``` + +--- + +#### UmbracoProductVariantSummary (2 of 2) + +```csharp +public UmbracoProductVariantSummary(IPublishedContent product, + IReadOnlyCollection attributes, ProductVariantItem variant, + string languageIsoCode, UmbracoCommerceServiceContext services, + PublishedContentHelperAccessor publishedContentHelperAccessor) +``` + + +### Properties + +#### Attributes + +```csharp +public override IReadOnlyDictionary Attributes { get; } +``` + + +--- + +#### Name + +```csharp +public override string Name { get; } +``` + + +--- + +#### Prices + +```csharp +public override IEnumerable Prices { get; } +``` + + +--- + +#### Reference + +```csharp +public override string Reference { get; } +``` + + +--- + +#### Sku + +```csharp +public override string Sku { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-adapters/umbracoproductvariantsummarycollection.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-adapters/umbracoproductvariantsummarycollection.md new file mode 100644 index 00000000000..e0548df0419 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-adapters/umbracoproductvariantsummarycollection.md @@ -0,0 +1,52 @@ +--- +title: UmbracoProductVariantSummaryCollection +description: API reference for UmbracoProductVariantSummaryCollection in Umbraco Commerce +--- +## UmbracoProductVariantSummaryCollection + +```csharp +public class UmbracoProductVariantSummaryCollection : IEnumerable, + IReadOnlyCollection +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Adapters](README.md) + +### Constructors + +#### UmbracoProductVariantSummaryCollection (1 of 2) + +```csharp +public UmbracoProductVariantSummaryCollection(IPublishedContent productNode, string languageIsoCode) +``` + +--- + +#### UmbracoProductVariantSummaryCollection (2 of 2) + +```csharp +public UmbracoProductVariantSummaryCollection(IPublishedContent productNode, + string languageIsoCode, UmbracoCommerceServiceContext services, + PublishedContentHelperAccessor publishedContentHelperAccessor) +``` + + +### Properties + +#### Count + +```csharp +public int Count { get; } +``` + + +### Methods + +#### GetEnumerator + +```csharp +public IEnumerator GetEnumerator() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-authorization/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-authorization/README.md new file mode 100644 index 00000000000..b27182018ab --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-authorization/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Cms.Authorization +description: API reference for Umbraco.Commerce.Cms.Authorization in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Authorization namespace + +| Public Type | Description | +| --- | --- | +| static class [UmbracoCommerceAuthorizationPolicies](umbracocommerceauthorizationpolicies.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-authorization/umbracocommerceauthorizationpolicies.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-authorization/umbracocommerceauthorizationpolicies.md new file mode 100644 index 00000000000..d52b65c5647 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-authorization/umbracocommerceauthorizationpolicies.md @@ -0,0 +1,50 @@ +--- +title: UmbracoCommerceAuthorizationPolicies +description: API reference for UmbracoCommerceAuthorizationPolicies in Umbraco Commerce +--- +## UmbracoCommerceAuthorizationPolicies + +```csharp +public static class UmbracoCommerceAuthorizationPolicies +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Authorization](README.md) + +### Fields + +#### SectionAccessCommerce + +```csharp +public const string SectionAccessCommerce; +``` + + +--- + +#### SectionAccessSettingsOrCommerce + +```csharp +public const string SectionAccessSettingsOrCommerce; +``` + + +--- + +#### TreeAccessSettings + +```csharp +public const string TreeAccessSettings; +``` + + +--- + +#### TreeAccessStores + +```csharp +public const string TreeAccessStores; +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/README.md new file mode 100644 index 00000000000..e4aac62864a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/README.md @@ -0,0 +1,34 @@ +--- +title: Umbraco.Commerce.Cms.Cache.Refreshers +description: API reference for Umbraco.Commerce.Cms.Cache.Refreshers in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Cache.Refreshers namespace + +| Public Type | Description | +| --- | --- | +| enum [CacheRefresherAction](cacherefresheraction.md) | | +| class [CountryCacheRefresher](countrycacherefresher.md) | | +| class [CurrencyCacheRefresher](currencycacherefresher.md) | | +| class [DiscountCacheRefresher](discountcacherefresher.md) | | +| class [EmailTemplateCacheRefresher](emailtemplatecacherefresher.md) | | +| class [ExportTemplateCacheRefresher](exporttemplatecacherefresher.md) | | +| class [GiftCardCacheRefresher](giftcardcacherefresher.md) | | +| class [OrderCacheRefresher](ordercacherefresher.md) | | +| class [OrderStatusCacheRefresher](orderstatuscacherefresher.md) | | +| class [PaymentMethodCacheRefresher](paymentmethodcacherefresher.md) | | +| class [PrintTemplateCacheRefresher](printtemplatecacherefresher.md) | | +| class [ProductAttributeCacheRefresher](productattributecacherefresher.md) | | +| class [ProductAttributePresetCacheRefresher](productattributepresetcacherefresher.md) | | +| class [RegionCacheRefresher](regioncacherefresher.md) | | +| class [ShippingMethodCacheRefresher](shippingmethodcacherefresher.md) | | +| class [StockCacheRefresher](stockcacherefresher.md) | | +| class [StoreCacheRefresher](storecacherefresher.md) | | +| class [TaxClassCacheRefresher](taxclasscacherefresher.md) | | +| class [UmbracoCommerceCacheRefresherNotification](umbracocommercecacherefreshernotification.md) | | +| class [UmbracoCommerceCacheRefresherRegistrar](umbracocommercecacherefresherregistrar.md) | | +| class [UmbracoCommerceEntityCacheRefresherPayload](umbracocommerceentitycacherefresherpayload.md) | | +| abstract class [UmbracoCommerceEntityStateCacheRefresherBase<TInstanceType,TService,TEntity>](umbracocommerceentitystatecacherefresherbase-3.md) | | +| abstract class [UmbracoCommerceKeyedCacheRefresherBase<TInstanceType,TService>](umbracocommercekeyedcacherefresherbase-2.md) | | +| class [UmbracoCommerceKeyedCacheRefresherPayload](umbracocommercekeyedcacherefresherpayload.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/cacherefresheraction.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/cacherefresheraction.md new file mode 100644 index 00000000000..07c8da34ff0 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/cacherefresheraction.md @@ -0,0 +1,22 @@ +--- +title: CacheRefresherAction +description: API reference for CacheRefresherAction in Umbraco Commerce +--- +## CacheRefresherAction + +```csharp +public enum CacheRefresherAction +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Cache.Refreshers](README.md) + +**Values** + +| Name | Value | Description | +| --- | --- | --- | +| Created | `0` | | +| Updated | `1` | | +| Deleted | `2` | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/countrycacherefresher.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/countrycacherefresher.md new file mode 100644 index 00000000000..c63d7fdff38 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/countrycacherefresher.md @@ -0,0 +1,48 @@ +--- +title: CountryCacheRefresher +description: API reference for CountryCacheRefresher in Umbraco Commerce +--- +## CountryCacheRefresher + +```csharp +public class CountryCacheRefresher : + UmbracoCommerceEntityStateCacheRefresherBase +``` + +**Inheritance** + +* Class [UmbracoCommerceEntityStateCacheRefresherBase<TInstanceType,TService,TEntity>](umbracocommerceentitystatecacherefresherbase-3.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Cache.Refreshers](README.md) + +### Constructors + +#### CountryCacheRefresher + +```csharp +public CountryCacheRefresher(AppCaches appCaches, IJsonSerializer serializer, + IEventAggregator eventAggregator, ICacheRefresherNotificationFactory factory, + Lazy entityService, Lazy> logger) +``` + + +### Properties + +#### Name + +```csharp +public override string Name { get; } +``` + + +--- + +#### RefresherUniqueId + +```csharp +public override Guid RefresherUniqueId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/currencycacherefresher.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/currencycacherefresher.md new file mode 100644 index 00000000000..5940de724e2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/currencycacherefresher.md @@ -0,0 +1,48 @@ +--- +title: CurrencyCacheRefresher +description: API reference for CurrencyCacheRefresher in Umbraco Commerce +--- +## CurrencyCacheRefresher + +```csharp +public class CurrencyCacheRefresher : + UmbracoCommerceEntityStateCacheRefresherBase +``` + +**Inheritance** + +* Class [UmbracoCommerceEntityStateCacheRefresherBase<TInstanceType,TService,TEntity>](umbracocommerceentitystatecacherefresherbase-3.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Cache.Refreshers](README.md) + +### Constructors + +#### CurrencyCacheRefresher + +```csharp +public CurrencyCacheRefresher(AppCaches appCaches, IJsonSerializer serializer, + IEventAggregator eventAggregator, ICacheRefresherNotificationFactory factory, + Lazy entityService, Lazy> logger) +``` + + +### Properties + +#### Name + +```csharp +public override string Name { get; } +``` + + +--- + +#### RefresherUniqueId + +```csharp +public override Guid RefresherUniqueId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/discountcacherefresher.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/discountcacherefresher.md new file mode 100644 index 00000000000..4dc0c6cbfd8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/discountcacherefresher.md @@ -0,0 +1,48 @@ +--- +title: DiscountCacheRefresher +description: API reference for DiscountCacheRefresher in Umbraco Commerce +--- +## DiscountCacheRefresher + +```csharp +public class DiscountCacheRefresher : + UmbracoCommerceEntityStateCacheRefresherBase +``` + +**Inheritance** + +* Class [UmbracoCommerceEntityStateCacheRefresherBase<TInstanceType,TService,TEntity>](umbracocommerceentitystatecacherefresherbase-3.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Cache.Refreshers](README.md) + +### Constructors + +#### DiscountCacheRefresher + +```csharp +public DiscountCacheRefresher(AppCaches appCaches, IJsonSerializer serializer, + IEventAggregator eventAggregator, ICacheRefresherNotificationFactory factory, + Lazy entityService, Lazy> logger) +``` + + +### Properties + +#### Name + +```csharp +public override string Name { get; } +``` + + +--- + +#### RefresherUniqueId + +```csharp +public override Guid RefresherUniqueId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/emailtemplatecacherefresher.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/emailtemplatecacherefresher.md new file mode 100644 index 00000000000..99f8b9df406 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/emailtemplatecacherefresher.md @@ -0,0 +1,48 @@ +--- +title: EmailTemplateCacheRefresher +description: API reference for EmailTemplateCacheRefresher in Umbraco Commerce +--- +## EmailTemplateCacheRefresher + +```csharp +public class EmailTemplateCacheRefresher : + UmbracoCommerceEntityStateCacheRefresherBase +``` + +**Inheritance** + +* Class [UmbracoCommerceEntityStateCacheRefresherBase<TInstanceType,TService,TEntity>](umbracocommerceentitystatecacherefresherbase-3.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Cache.Refreshers](README.md) + +### Constructors + +#### EmailTemplateCacheRefresher + +```csharp +public EmailTemplateCacheRefresher(AppCaches appCaches, IJsonSerializer serializer, + IEventAggregator eventAggregator, ICacheRefresherNotificationFactory factory, + Lazy entityService, Lazy> logger) +``` + + +### Properties + +#### Name + +```csharp +public override string Name { get; } +``` + + +--- + +#### RefresherUniqueId + +```csharp +public override Guid RefresherUniqueId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/exporttemplatecacherefresher.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/exporttemplatecacherefresher.md new file mode 100644 index 00000000000..1b82706c899 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/exporttemplatecacherefresher.md @@ -0,0 +1,48 @@ +--- +title: ExportTemplateCacheRefresher +description: API reference for ExportTemplateCacheRefresher in Umbraco Commerce +--- +## ExportTemplateCacheRefresher + +```csharp +public class ExportTemplateCacheRefresher : + UmbracoCommerceEntityStateCacheRefresherBase +``` + +**Inheritance** + +* Class [UmbracoCommerceEntityStateCacheRefresherBase<TInstanceType,TService,TEntity>](umbracocommerceentitystatecacherefresherbase-3.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Cache.Refreshers](README.md) + +### Constructors + +#### ExportTemplateCacheRefresher + +```csharp +public ExportTemplateCacheRefresher(AppCaches appCaches, IJsonSerializer serializer, + IEventAggregator eventAggregator, ICacheRefresherNotificationFactory factory, + Lazy entityService, Lazy> logger) +``` + + +### Properties + +#### Name + +```csharp +public override string Name { get; } +``` + + +--- + +#### RefresherUniqueId + +```csharp +public override Guid RefresherUniqueId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/giftcardcacherefresher.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/giftcardcacherefresher.md new file mode 100644 index 00000000000..9d1ca5e1c5e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/giftcardcacherefresher.md @@ -0,0 +1,48 @@ +--- +title: GiftCardCacheRefresher +description: API reference for GiftCardCacheRefresher in Umbraco Commerce +--- +## GiftCardCacheRefresher + +```csharp +public class GiftCardCacheRefresher : + UmbracoCommerceEntityStateCacheRefresherBase +``` + +**Inheritance** + +* Class [UmbracoCommerceEntityStateCacheRefresherBase<TInstanceType,TService,TEntity>](umbracocommerceentitystatecacherefresherbase-3.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Cache.Refreshers](README.md) + +### Constructors + +#### GiftCardCacheRefresher + +```csharp +public GiftCardCacheRefresher(AppCaches appCaches, IJsonSerializer serializer, + IEventAggregator eventAggregator, ICacheRefresherNotificationFactory factory, + Lazy entityService, Lazy> logger) +``` + + +### Properties + +#### Name + +```csharp +public override string Name { get; } +``` + + +--- + +#### RefresherUniqueId + +```csharp +public override Guid RefresherUniqueId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/ordercacherefresher.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/ordercacherefresher.md new file mode 100644 index 00000000000..e9126262347 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/ordercacherefresher.md @@ -0,0 +1,57 @@ +--- +title: OrderCacheRefresher +description: API reference for OrderCacheRefresher in Umbraco Commerce +--- +## OrderCacheRefresher + +```csharp +public class OrderCacheRefresher : + UmbracoCommerceEntityStateCacheRefresherBase +``` + +**Inheritance** + +* Class [UmbracoCommerceEntityStateCacheRefresherBase<TInstanceType,TService,TEntity>](umbracocommerceentitystatecacherefresherbase-3.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Cache.Refreshers](README.md) + +### Constructors + +#### OrderCacheRefresher + +```csharp +public OrderCacheRefresher(AppCaches appCaches, IJsonSerializer serializer, + IEventAggregator eventAggregator, ICacheRefresherNotificationFactory factory, + Lazy entityService, Lazy> logger) +``` + + +### Properties + +#### Name + +```csharp +public override string Name { get; } +``` + + +--- + +#### RefresherUniqueId + +```csharp +public override Guid RefresherUniqueId { get; } +``` + + +### Methods + +#### Refresh + +```csharp +public override void Refresh(UmbracoCommerceEntityCacheRefresherPayload[] payload) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/orderstatuscacherefresher.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/orderstatuscacherefresher.md new file mode 100644 index 00000000000..562ee6ccb13 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/orderstatuscacherefresher.md @@ -0,0 +1,48 @@ +--- +title: OrderStatusCacheRefresher +description: API reference for OrderStatusCacheRefresher in Umbraco Commerce +--- +## OrderStatusCacheRefresher + +```csharp +public class OrderStatusCacheRefresher : + UmbracoCommerceEntityStateCacheRefresherBase +``` + +**Inheritance** + +* Class [UmbracoCommerceEntityStateCacheRefresherBase<TInstanceType,TService,TEntity>](umbracocommerceentitystatecacherefresherbase-3.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Cache.Refreshers](README.md) + +### Constructors + +#### OrderStatusCacheRefresher + +```csharp +public OrderStatusCacheRefresher(AppCaches appCaches, IJsonSerializer serializer, + IEventAggregator eventAggregator, ICacheRefresherNotificationFactory factory, + Lazy entityService, Lazy> logger) +``` + + +### Properties + +#### Name + +```csharp +public override string Name { get; } +``` + + +--- + +#### RefresherUniqueId + +```csharp +public override Guid RefresherUniqueId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/paymentmethodcacherefresher.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/paymentmethodcacherefresher.md new file mode 100644 index 00000000000..6d99b95d4c6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/paymentmethodcacherefresher.md @@ -0,0 +1,48 @@ +--- +title: PaymentMethodCacheRefresher +description: API reference for PaymentMethodCacheRefresher in Umbraco Commerce +--- +## PaymentMethodCacheRefresher + +```csharp +public class PaymentMethodCacheRefresher : + UmbracoCommerceEntityStateCacheRefresherBase +``` + +**Inheritance** + +* Class [UmbracoCommerceEntityStateCacheRefresherBase<TInstanceType,TService,TEntity>](umbracocommerceentitystatecacherefresherbase-3.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Cache.Refreshers](README.md) + +### Constructors + +#### PaymentMethodCacheRefresher + +```csharp +public PaymentMethodCacheRefresher(AppCaches appCaches, IJsonSerializer serializer, + IEventAggregator eventAggregator, ICacheRefresherNotificationFactory factory, + Lazy entityService, Lazy> logger) +``` + + +### Properties + +#### Name + +```csharp +public override string Name { get; } +``` + + +--- + +#### RefresherUniqueId + +```csharp +public override Guid RefresherUniqueId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/printtemplatecacherefresher.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/printtemplatecacherefresher.md new file mode 100644 index 00000000000..4f4794e970f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/printtemplatecacherefresher.md @@ -0,0 +1,48 @@ +--- +title: PrintTemplateCacheRefresher +description: API reference for PrintTemplateCacheRefresher in Umbraco Commerce +--- +## PrintTemplateCacheRefresher + +```csharp +public class PrintTemplateCacheRefresher : + UmbracoCommerceEntityStateCacheRefresherBase +``` + +**Inheritance** + +* Class [UmbracoCommerceEntityStateCacheRefresherBase<TInstanceType,TService,TEntity>](umbracocommerceentitystatecacherefresherbase-3.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Cache.Refreshers](README.md) + +### Constructors + +#### PrintTemplateCacheRefresher + +```csharp +public PrintTemplateCacheRefresher(AppCaches appCaches, IJsonSerializer serializer, + IEventAggregator eventAggregator, ICacheRefresherNotificationFactory factory, + Lazy entityService, Lazy> logger) +``` + + +### Properties + +#### Name + +```csharp +public override string Name { get; } +``` + + +--- + +#### RefresherUniqueId + +```csharp +public override Guid RefresherUniqueId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/productattributecacherefresher.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/productattributecacherefresher.md new file mode 100644 index 00000000000..6edb148d90c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/productattributecacherefresher.md @@ -0,0 +1,49 @@ +--- +title: ProductAttributeCacheRefresher +description: API reference for ProductAttributeCacheRefresher in Umbraco Commerce +--- +## ProductAttributeCacheRefresher + +```csharp +public class ProductAttributeCacheRefresher : + UmbracoCommerceEntityStateCacheRefresherBase +``` + +**Inheritance** + +* Class [UmbracoCommerceEntityStateCacheRefresherBase<TInstanceType,TService,TEntity>](umbracocommerceentitystatecacherefresherbase-3.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Cache.Refreshers](README.md) + +### Constructors + +#### ProductAttributeCacheRefresher + +```csharp +public ProductAttributeCacheRefresher(AppCaches appCaches, IJsonSerializer serializer, + IEventAggregator eventAggregator, ICacheRefresherNotificationFactory factory, + Lazy entityService, + Lazy> logger) +``` + + +### Properties + +#### Name + +```csharp +public override string Name { get; } +``` + + +--- + +#### RefresherUniqueId + +```csharp +public override Guid RefresherUniqueId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/productattributepresetcacherefresher.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/productattributepresetcacherefresher.md new file mode 100644 index 00000000000..6274c61f6d2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/productattributepresetcacherefresher.md @@ -0,0 +1,49 @@ +--- +title: ProductAttributePresetCacheRefresher +description: API reference for ProductAttributePresetCacheRefresher in Umbraco Commerce +--- +## ProductAttributePresetCacheRefresher + +```csharp +public class ProductAttributePresetCacheRefresher : + UmbracoCommerceEntityStateCacheRefresherBase +``` + +**Inheritance** + +* Class [UmbracoCommerceEntityStateCacheRefresherBase<TInstanceType,TService,TEntity>](umbracocommerceentitystatecacherefresherbase-3.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Cache.Refreshers](README.md) + +### Constructors + +#### ProductAttributePresetCacheRefresher + +```csharp +public ProductAttributePresetCacheRefresher(AppCaches appCaches, IJsonSerializer serializer, + IEventAggregator eventAggregator, ICacheRefresherNotificationFactory factory, + Lazy entityService, + Lazy> logger) +``` + + +### Properties + +#### Name + +```csharp +public override string Name { get; } +``` + + +--- + +#### RefresherUniqueId + +```csharp +public override Guid RefresherUniqueId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/regioncacherefresher.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/regioncacherefresher.md new file mode 100644 index 00000000000..73ba4a275c9 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/regioncacherefresher.md @@ -0,0 +1,48 @@ +--- +title: RegionCacheRefresher +description: API reference for RegionCacheRefresher in Umbraco Commerce +--- +## RegionCacheRefresher + +```csharp +public class RegionCacheRefresher : + UmbracoCommerceEntityStateCacheRefresherBase +``` + +**Inheritance** + +* Class [UmbracoCommerceEntityStateCacheRefresherBase<TInstanceType,TService,TEntity>](umbracocommerceentitystatecacherefresherbase-3.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Cache.Refreshers](README.md) + +### Constructors + +#### RegionCacheRefresher + +```csharp +public RegionCacheRefresher(AppCaches appCaches, IJsonSerializer serializer, + IEventAggregator eventAggregator, ICacheRefresherNotificationFactory factory, + Lazy entityService, Lazy> logger) +``` + + +### Properties + +#### Name + +```csharp +public override string Name { get; } +``` + + +--- + +#### RefresherUniqueId + +```csharp +public override Guid RefresherUniqueId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/shippingmethodcacherefresher.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/shippingmethodcacherefresher.md new file mode 100644 index 00000000000..97f43eb7fb3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/shippingmethodcacherefresher.md @@ -0,0 +1,48 @@ +--- +title: ShippingMethodCacheRefresher +description: API reference for ShippingMethodCacheRefresher in Umbraco Commerce +--- +## ShippingMethodCacheRefresher + +```csharp +public class ShippingMethodCacheRefresher : + UmbracoCommerceEntityStateCacheRefresherBase +``` + +**Inheritance** + +* Class [UmbracoCommerceEntityStateCacheRefresherBase<TInstanceType,TService,TEntity>](umbracocommerceentitystatecacherefresherbase-3.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Cache.Refreshers](README.md) + +### Constructors + +#### ShippingMethodCacheRefresher + +```csharp +public ShippingMethodCacheRefresher(AppCaches appCaches, IJsonSerializer serializer, + IEventAggregator eventAggregator, ICacheRefresherNotificationFactory factory, + Lazy entityService, Lazy> logger) +``` + + +### Properties + +#### Name + +```csharp +public override string Name { get; } +``` + + +--- + +#### RefresherUniqueId + +```csharp +public override Guid RefresherUniqueId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/stockcacherefresher.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/stockcacherefresher.md new file mode 100644 index 00000000000..52a75431d3b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/stockcacherefresher.md @@ -0,0 +1,48 @@ +--- +title: StockCacheRefresher +description: API reference for StockCacheRefresher in Umbraco Commerce +--- +## StockCacheRefresher + +```csharp +public class StockCacheRefresher : + UmbracoCommerceKeyedCacheRefresherBase +``` + +**Inheritance** + +* Class [UmbracoCommerceKeyedCacheRefresherBase<TInstanceType,TService>](umbracocommercekeyedcacherefresherbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Cache.Refreshers](README.md) + +### Constructors + +#### StockCacheRefresher + +```csharp +public StockCacheRefresher(AppCaches appCaches, IJsonSerializer serializer, + IEventAggregator eventAggregator, ICacheRefresherNotificationFactory factory, + Lazy entityService, Lazy> logger) +``` + + +### Properties + +#### Name + +```csharp +public override string Name { get; } +``` + + +--- + +#### RefresherUniqueId + +```csharp +public override Guid RefresherUniqueId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/storecacherefresher.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/storecacherefresher.md new file mode 100644 index 00000000000..c8daff5786c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/storecacherefresher.md @@ -0,0 +1,48 @@ +--- +title: StoreCacheRefresher +description: API reference for StoreCacheRefresher in Umbraco Commerce +--- +## StoreCacheRefresher + +```csharp +public class StoreCacheRefresher : + UmbracoCommerceEntityStateCacheRefresherBase +``` + +**Inheritance** + +* Class [UmbracoCommerceEntityStateCacheRefresherBase<TInstanceType,TService,TEntity>](umbracocommerceentitystatecacherefresherbase-3.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Cache.Refreshers](README.md) + +### Constructors + +#### StoreCacheRefresher + +```csharp +public StoreCacheRefresher(AppCaches appCaches, IJsonSerializer serializer, + IEventAggregator eventAggregator, ICacheRefresherNotificationFactory factory, + Lazy entityService, Lazy> logger) +``` + + +### Properties + +#### Name + +```csharp +public override string Name { get; } +``` + + +--- + +#### RefresherUniqueId + +```csharp +public override Guid RefresherUniqueId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/taxclasscacherefresher.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/taxclasscacherefresher.md new file mode 100644 index 00000000000..3694707208a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/taxclasscacherefresher.md @@ -0,0 +1,48 @@ +--- +title: TaxClassCacheRefresher +description: API reference for TaxClassCacheRefresher in Umbraco Commerce +--- +## TaxClassCacheRefresher + +```csharp +public class TaxClassCacheRefresher : + UmbracoCommerceEntityStateCacheRefresherBase +``` + +**Inheritance** + +* Class [UmbracoCommerceEntityStateCacheRefresherBase<TInstanceType,TService,TEntity>](umbracocommerceentitystatecacherefresherbase-3.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Cache.Refreshers](README.md) + +### Constructors + +#### TaxClassCacheRefresher + +```csharp +public TaxClassCacheRefresher(AppCaches appCaches, IJsonSerializer serializer, + IEventAggregator eventAggregator, ICacheRefresherNotificationFactory factory, + Lazy entityService, Lazy> logger) +``` + + +### Properties + +#### Name + +```csharp +public override string Name { get; } +``` + + +--- + +#### RefresherUniqueId + +```csharp +public override Guid RefresherUniqueId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/umbracocommercecacherefreshernotification.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/umbracocommercecacherefreshernotification.md new file mode 100644 index 00000000000..6289f8083fc --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/umbracocommercecacherefreshernotification.md @@ -0,0 +1,23 @@ +--- +title: UmbracoCommerceCacheRefresherNotification +description: API reference for UmbracoCommerceCacheRefresherNotification in Umbraco Commerce +--- +## UmbracoCommerceCacheRefresherNotification + +```csharp +public class UmbracoCommerceCacheRefresherNotification : CacheRefresherNotification +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Cache.Refreshers](README.md) + +### Constructors + +#### UmbracoCommerceCacheRefresherNotification + +```csharp +public UmbracoCommerceCacheRefresherNotification(object messageObject, MessageType messageType) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/umbracocommercecacherefresherregistrar.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/umbracocommercecacherefresherregistrar.md new file mode 100644 index 00000000000..cbb95026b62 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/umbracocommercecacherefresherregistrar.md @@ -0,0 +1,32 @@ +--- +title: UmbracoCommerceCacheRefresherRegistrar +description: API reference for UmbracoCommerceCacheRefresherRegistrar in Umbraco Commerce +--- +## UmbracoCommerceCacheRefresherRegistrar + +```csharp +public class UmbracoCommerceCacheRefresherRegistrar +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Cache.Refreshers](README.md) + +### Constructors + +#### UmbracoCommerceCacheRefresherRegistrar + +```csharp +public UmbracoCommerceCacheRefresherRegistrar(DistributedCache distributedCache) +``` + + +### Methods + +#### Register + +```csharp +public void Register() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/umbracocommerceentitycacherefresherpayload.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/umbracocommerceentitycacherefresherpayload.md new file mode 100644 index 00000000000..10f1333d109 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/umbracocommerceentitycacherefresherpayload.md @@ -0,0 +1,52 @@ +--- +title: UmbracoCommerceEntityCacheRefresherPayload +description: API reference for UmbracoCommerceEntityCacheRefresherPayload in Umbraco Commerce +--- +## UmbracoCommerceEntityCacheRefresherPayload + +```csharp +public class UmbracoCommerceEntityCacheRefresherPayload +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Cache.Refreshers](README.md) + +### Constructors + +#### UmbracoCommerceEntityCacheRefresherPayload + +The default constructor. + +```csharp +public UmbracoCommerceEntityCacheRefresherPayload() +``` + + +### Properties + +#### Action + +```csharp +public CacheRefresherAction Action { get; set; } +``` + + +--- + +#### EntityId + +```csharp +public Guid EntityId { get; set; } +``` + + +--- + +#### InstanceId + +```csharp +public string InstanceId { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/umbracocommerceentitystatecacherefresherbase-3.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/umbracocommerceentitystatecacherefresherbase-3.md new file mode 100644 index 00000000000..3a920023c7a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/umbracocommerceentitystatecacherefresherbase-3.md @@ -0,0 +1,36 @@ +--- +title: UmbracoCommerceEntityStateCacheRefresherBase +description: API reference for UmbracoCommerceEntityStateCacheRefresherBase in Umbraco Commerce +--- +## UmbracoCommerceEntityStateCacheRefresherBase<TInstanceType,TService,TEntity> + +```csharp +public abstract class + UmbracoCommerceEntityStateCacheRefresherBase : + PayloadCacheRefresherBase + where TInstanceType : class, ICacheRefresher + where TService : ICachedEntityService + where TEntity : EntityBase +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Cache.Refreshers](README.md) + +### Methods + +#### Refresh (1 of 2) + +```csharp +public override void Refresh(string json) +``` + +--- + +#### Refresh (2 of 2) + +```csharp +public override void Refresh(UmbracoCommerceEntityCacheRefresherPayload[] payload) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/umbracocommercekeyedcacherefresherbase-2.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/umbracocommercekeyedcacherefresherbase-2.md new file mode 100644 index 00000000000..ca41a68f975 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/umbracocommercekeyedcacherefresherbase-2.md @@ -0,0 +1,33 @@ +--- +title: UmbracoCommerceKeyedCacheRefresherBase +description: API reference for UmbracoCommerceKeyedCacheRefresherBase in Umbraco Commerce +--- +## UmbracoCommerceKeyedCacheRefresherBase<TInstanceType,TService> + +```csharp +public abstract class UmbracoCommerceKeyedCacheRefresherBase : + PayloadCacheRefresherBase + where TInstanceType : class, ICacheRefresher +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Cache.Refreshers](README.md) + +### Methods + +#### Refresh (1 of 2) + +```csharp +public override void Refresh(string jsonPayload) +``` + +--- + +#### Refresh (2 of 2) + +```csharp +public override void Refresh(UmbracoCommerceKeyedCacheRefresherPayload[] payload) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/umbracocommercekeyedcacherefresherpayload.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/umbracocommercekeyedcacherefresherpayload.md new file mode 100644 index 00000000000..2e4381cfd1f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache-refreshers/umbracocommercekeyedcacherefresherpayload.md @@ -0,0 +1,52 @@ +--- +title: UmbracoCommerceKeyedCacheRefresherPayload +description: API reference for UmbracoCommerceKeyedCacheRefresherPayload in Umbraco Commerce +--- +## UmbracoCommerceKeyedCacheRefresherPayload + +```csharp +public class UmbracoCommerceKeyedCacheRefresherPayload +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Cache.Refreshers](README.md) + +### Constructors + +#### UmbracoCommerceKeyedCacheRefresherPayload + +The default constructor. + +```csharp +public UmbracoCommerceKeyedCacheRefresherPayload() +``` + + +### Properties + +#### Action + +```csharp +public CacheRefresherAction Action { get; set; } +``` + + +--- + +#### InstanceId + +```csharp +public string InstanceId { get; set; } +``` + + +--- + +#### Key + +```csharp +public string Key { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache/README.md new file mode 100644 index 00000000000..78fe237c68f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache/README.md @@ -0,0 +1,12 @@ +--- +title: Umbraco.Commerce.Cms.Cache +description: API reference for Umbraco.Commerce.Cms.Cache in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Cache namespace + +| Public Type | Description | +| --- | --- | +| class [UmbracoAppCache](umbracoappcache.md) | | +| class [UmbracoAppPolicyCache](umbracoapppolicycache.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache/umbracoappcache.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache/umbracoappcache.md new file mode 100644 index 00000000000..57081e7d3ce --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache/umbracoappcache.md @@ -0,0 +1,123 @@ +--- +title: UmbracoAppCache +description: API reference for UmbracoAppCache in Umbraco Commerce +--- +## UmbracoAppCache + +```csharp +public class UmbracoAppCache : ICache +``` + +**Inheritance** + +* interface [ICache](../../umbraco-commerce-core/umbraco-commerce-core-cache/icache.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Cache](README.md) + +### Constructors + +#### UmbracoAppCache + +```csharp +public UmbracoAppCache(IAppCache appCache) +``` + + +### Methods + +#### Clear + +```csharp +public virtual void Clear(string cacheKey) +``` + + +--- + +#### ClearAll + +```csharp +public virtual void ClearAll() +``` + + +--- + +#### ClearByKey + +```csharp +public virtual void ClearByKey(string cacheKeyStartsWith) +``` + + +--- + +#### FindByKey + +```csharp +public virtual IEnumerable FindByKey(string keyStartsWith) +``` + + +--- + +#### FindByKeyTyped<T> + +```csharp +public virtual IEnumerable FindByKeyTyped(string keyStartsWith) +``` + + +--- + +#### Get (1 of 2) + +```csharp +public virtual object Get(string cacheKey) +``` + +--- + +#### Get (2 of 2) + +```csharp +public virtual object Get(string cacheKey, Func factory) +``` + + +--- + +#### GetTyped<T> (1 of 2) + +```csharp +public virtual T GetTyped(string cacheKey) +``` + +--- + +#### GetTyped<T> (2 of 2) + +```csharp +public virtual T GetTyped(string cacheKey, Func factory) +``` + + +--- + +#### Set (1 of 2) + +```csharp +public virtual void Set(string cacheKey, object cacheValue) +``` + +--- + +#### Set (2 of 2) + +```csharp +public virtual void Set(string cacheKey, object cacheValue, TimeSpan cacheDuration) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache/umbracoapppolicycache.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache/umbracoapppolicycache.md new file mode 100644 index 00000000000..70beb282760 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-cache/umbracoapppolicycache.md @@ -0,0 +1,47 @@ +--- +title: UmbracoAppPolicyCache +description: API reference for UmbracoAppPolicyCache in Umbraco Commerce +--- +## UmbracoAppPolicyCache + +```csharp +public class UmbracoAppPolicyCache : UmbracoAppCache, IPolicyCache +``` + +**Inheritance** + +* Class [UmbracoAppCache](umbracoappcache.md) +* interface [IPolicyCache](../../umbraco-commerce-core/umbraco-commerce-core-cache/ipolicycache.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Cache](README.md) + +### Constructors + +#### UmbracoAppPolicyCache + +```csharp +public UmbracoAppPolicyCache(IAppPolicyCache appCache) +``` + + +### Methods + +#### Get + +```csharp +public object Get(string cacheKey, Func factory, TimeSpan? timeout, bool isSliding = false) +``` + + +--- + +#### Set + +```csharp +public void Set(string cacheKey, Func factory, TimeSpan? timeout = default(TimeSpan?), + bool isSliding = false) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-composing/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-composing/README.md new file mode 100644 index 00000000000..72eb18c7444 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-composing/README.md @@ -0,0 +1,13 @@ +--- +title: Umbraco.Commerce.Cms.Composing +description: API reference for Umbraco.Commerce.Cms.Composing in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Composing namespace + +| Public Type | Description | +| --- | --- | +| class [CartAdvancedFilterCollectionBuilder](cartadvancedfiltercollectionbuilder.md) | | +| class [OrderAdvancedFilterCollectionBuilder](orderadvancedfiltercollectionbuilder.md) | | +| class [UmbracoNodeStoreFinderCollectionBuilder](umbraconodestorefindercollectionbuilder.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-composing/cartadvancedfiltercollectionbuilder.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-composing/cartadvancedfiltercollectionbuilder.md new file mode 100644 index 00000000000..10f05f74e59 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-composing/cartadvancedfiltercollectionbuilder.md @@ -0,0 +1,30 @@ +--- +title: CartAdvancedFilterCollectionBuilder +description: API reference for CartAdvancedFilterCollectionBuilder in Umbraco Commerce +--- +## CartAdvancedFilterCollectionBuilder + +```csharp +public class CartAdvancedFilterCollectionBuilder : + OrderedComposedCollectionBuilderBase +``` + +**Inheritance** + +* Class [OrderedComposedCollectionBuilderBase<!0,!1,!2>](../../umbraco-commerce-common/umbraco-commerce-common-composing/orderedcomposedcollectionbuilderbase-3.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Composing](README.md) + +### Constructors + +#### CartAdvancedFilterCollectionBuilder + +The default constructor. + +```csharp +public CartAdvancedFilterCollectionBuilder() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-composing/orderadvancedfiltercollectionbuilder.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-composing/orderadvancedfiltercollectionbuilder.md new file mode 100644 index 00000000000..d44937946af --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-composing/orderadvancedfiltercollectionbuilder.md @@ -0,0 +1,30 @@ +--- +title: OrderAdvancedFilterCollectionBuilder +description: API reference for OrderAdvancedFilterCollectionBuilder in Umbraco Commerce +--- +## OrderAdvancedFilterCollectionBuilder + +```csharp +public class OrderAdvancedFilterCollectionBuilder : + OrderedComposedCollectionBuilderBase +``` + +**Inheritance** + +* Class [OrderedComposedCollectionBuilderBase<!0,!1,!2>](../../umbraco-commerce-common/umbraco-commerce-common-composing/orderedcomposedcollectionbuilderbase-3.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Composing](README.md) + +### Constructors + +#### OrderAdvancedFilterCollectionBuilder + +The default constructor. + +```csharp +public OrderAdvancedFilterCollectionBuilder() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-composing/umbraconodestorefindercollectionbuilder.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-composing/umbraconodestorefindercollectionbuilder.md new file mode 100644 index 00000000000..7cbc86eadea --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-composing/umbraconodestorefindercollectionbuilder.md @@ -0,0 +1,30 @@ +--- +title: UmbracoNodeStoreFinderCollectionBuilder +description: API reference for UmbracoNodeStoreFinderCollectionBuilder in Umbraco Commerce +--- +## UmbracoNodeStoreFinderCollectionBuilder + +```csharp +public class UmbracoNodeStoreFinderCollectionBuilder : + OrderedComposedCollectionBuilderBase +``` + +**Inheritance** + +* Class [OrderedComposedCollectionBuilderBase<!0,!1,!2>](../../umbraco-commerce-common/umbraco-commerce-common-composing/orderedcomposedcollectionbuilderbase-3.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Composing](README.md) + +### Constructors + +#### UmbracoNodeStoreFinderCollectionBuilder + +The default constructor. + +```csharp +public UmbracoNodeStoreFinderCollectionBuilder() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-configuration/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-configuration/README.md new file mode 100644 index 00000000000..2e5201af8f5 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-configuration/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Cms.Configuration +description: API reference for Umbraco.Commerce.Cms.Configuration in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Configuration namespace + +| Public Type | Description | +| --- | --- | +| class [CmsUmbracoCommerceSettings](cmsumbracocommercesettings.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-configuration/cmsumbracocommercesettings.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-configuration/cmsumbracocommercesettings.md new file mode 100644 index 00000000000..bcd19d93f11 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-configuration/cmsumbracocommercesettings.md @@ -0,0 +1,65 @@ +--- +title: CmsUmbracoCommerceSettings +description: API reference for CmsUmbracoCommerceSettings in Umbraco Commerce +--- +## CmsUmbracoCommerceSettings + +```csharp +public class CmsUmbracoCommerceSettings : IUmbracoCommerceSettings +``` + +**Inheritance** + +* interface [IUmbracoCommerceSettings](../../umbraco-commerce-core/umbraco-commerce-core-configuration/iumbracocommercesettings.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Configuration](README.md) + +### Constructors + +#### CmsUmbracoCommerceSettings + +```csharp +public CmsUmbracoCommerceSettings(IOptionsMonitor umbracoSettings, + IOptionsMonitor commerceSettings, + IHostingEnvironment hostingEnvironment) +``` + + +### Properties + +#### BackOfficeMvcArea + +```csharp +public string BackOfficeMvcArea { get; } +``` + + +--- + +#### BackOfficePath + +```csharp +public string BackOfficePath { get; } +``` + + +--- + +#### CookiesHttpOnly + +```csharp +public bool CookiesHttpOnly { get; } +``` + + +--- + +#### TelemetryEnabled + +```csharp +public bool TelemetryEnabled { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-content/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-content/README.md new file mode 100644 index 00000000000..9d244168ea9 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-content/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Cms.Content +description: API reference for Umbraco.Commerce.Cms.Content in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Content namespace + +| Public Type | Description | +| --- | --- | +| class [PublishedContentWrapperFactory](publishedcontentwrapperfactory.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-content/publishedcontentwrapperfactory.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-content/publishedcontentwrapperfactory.md new file mode 100644 index 00000000000..b7a345c3fbe --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-content/publishedcontentwrapperfactory.md @@ -0,0 +1,23 @@ +--- +title: PublishedContentWrapperFactory +description: API reference for PublishedContentWrapperFactory in Umbraco Commerce +--- +## PublishedContentWrapperFactory + +```csharp +public class PublishedContentWrapperFactory +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Content](README.md) + +### Constructors + +#### PublishedContentWrapperFactory + +```csharp +public PublishedContentWrapperFactory(IFactory factory) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-data/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-data/README.md new file mode 100644 index 00000000000..3d795854428 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-data/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Cms.Data +description: API reference for Umbraco.Commerce.Cms.Data in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Data namespace + +| Public Type | Description | +| --- | --- | +| class [UmbracoConnectionStringConfigurator](umbracoconnectionstringconfigurator.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-data/umbracoconnectionstringconfigurator.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-data/umbracoconnectionstringconfigurator.md new file mode 100644 index 00000000000..3ddd4aa5fd6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-data/umbracoconnectionstringconfigurator.md @@ -0,0 +1,36 @@ +--- +title: UmbracoConnectionStringConfigurator +description: API reference for UmbracoConnectionStringConfigurator in Umbraco Commerce +--- +## UmbracoConnectionStringConfigurator + +```csharp +public class UmbracoConnectionStringConfigurator : UmbracoCommerceConnectionStringConfigurator +``` + +**Inheritance** + +* Class [UmbracoCommerceConnectionStringConfigurator](../../umbraco-commerce-core/umbraco-commerce-core-data/umbracocommerceconnectionstringconfigurator.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Data](README.md) + +### Constructors + +#### UmbracoConnectionStringConfigurator + +```csharp +public UmbracoConnectionStringConfigurator(IConfiguration configuration) +``` + + +### Methods + +#### Configure + +```csharp +public override void Configure(string name, ConnectionStringConfig options) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-discounts-rewards/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-discounts-rewards/README.md new file mode 100644 index 00000000000..819acfe72f1 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-discounts-rewards/README.md @@ -0,0 +1,12 @@ +--- +title: Umbraco.Commerce.Cms.Discounts.Rewards +description: API reference for Umbraco.Commerce.Cms.Discounts.Rewards in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Discounts.Rewards namespace + +| Public Type | Description | +| --- | --- | +| class [ProductOrderLineAmountDiscountRewardProvider](productorderlineamountdiscountrewardprovider.md) | | +| class [ProductOrderLineAmountDiscountRewardProviderSettings](productorderlineamountdiscountrewardprovidersettings.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-discounts-rewards/productorderlineamountdiscountrewardprovider.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-discounts-rewards/productorderlineamountdiscountrewardprovider.md new file mode 100644 index 00000000000..e0c231cf45d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-discounts-rewards/productorderlineamountdiscountrewardprovider.md @@ -0,0 +1,39 @@ +--- +title: ProductOrderLineAmountDiscountRewardProvider +description: API reference for ProductOrderLineAmountDiscountRewardProvider in Umbraco Commerce +--- +## ProductOrderLineAmountDiscountRewardProvider + +```csharp +public class ProductOrderLineAmountDiscountRewardProvider : + OrderLineAmountDiscountRewardProviderBase +``` + +**Inheritance** + +* Class [OrderLineAmountDiscountRewardProviderBase<!0>](../../umbraco-commerce-core/umbraco-commerce-core-discounts/orderlineamountdiscountrewardproviderbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Discounts.Rewards](README.md) + +### Constructors + +#### ProductOrderLineAmountDiscountRewardProvider + +```csharp +public ProductOrderLineAmountDiscountRewardProvider( + UmbracoProductHelperAccessor umbracoProductHelperAccessor) +``` + + +### Methods + +#### FilterOrderLines + +```csharp +public override IEnumerable FilterOrderLines(DiscountRewardContext ctx, + ProductOrderLineAmountDiscountRewardProviderSettings settings) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-discounts-rewards/productorderlineamountdiscountrewardprovidersettings.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-discounts-rewards/productorderlineamountdiscountrewardprovidersettings.md new file mode 100644 index 00000000000..04823f108e5 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-discounts-rewards/productorderlineamountdiscountrewardprovidersettings.md @@ -0,0 +1,48 @@ +--- +title: ProductOrderLineAmountDiscountRewardProviderSettings +description: API reference for ProductOrderLineAmountDiscountRewardProviderSettings in Umbraco Commerce +--- +## ProductOrderLineAmountDiscountRewardProviderSettings + +```csharp +public class ProductOrderLineAmountDiscountRewardProviderSettings : + OrderLineAmountDiscountRewardProviderSettingsBase +``` + +**Inheritance** + +* Class [OrderLineAmountDiscountRewardProviderSettingsBase](../../umbraco-commerce-core/umbraco-commerce-core-discounts/orderlineamountdiscountrewardprovidersettingsbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Discounts.Rewards](README.md) + +### Constructors + +#### ProductOrderLineAmountDiscountRewardProviderSettings + +The default constructor. + +```csharp +public ProductOrderLineAmountDiscountRewardProviderSettings() +``` + + +### Properties + +#### NodeId + +```csharp +public Udi NodeId { get; set; } +``` + + +--- + +#### OrderLineSource + +```csharp +public OrderLineSource OrderLineSource { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-discounts-rules/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-discounts-rules/README.md new file mode 100644 index 00000000000..ede98f469bf --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-discounts-rules/README.md @@ -0,0 +1,14 @@ +--- +title: Umbraco.Commerce.Cms.Discounts.Rules +description: API reference for Umbraco.Commerce.Cms.Discounts.Rules in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Discounts.Rules namespace + +| Public Type | Description | +| --- | --- | +| class [MemberGroupDiscountRuleProvider](membergroupdiscountruleprovider.md) | | +| class [MemberGroupDiscountRuleProviderSettings](membergroupdiscountruleprovidersettings.md) | | +| class [OrderLineProductDiscountRuleProvider](orderlineproductdiscountruleprovider.md) | | +| class [OrderLineProductDiscountRuleProviderSettings](orderlineproductdiscountruleprovidersettings.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-discounts-rules/membergroupdiscountruleprovider.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-discounts-rules/membergroupdiscountruleprovider.md new file mode 100644 index 00000000000..375440d6350 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-discounts-rules/membergroupdiscountruleprovider.md @@ -0,0 +1,38 @@ +--- +title: MemberGroupDiscountRuleProvider +description: API reference for MemberGroupDiscountRuleProvider in Umbraco Commerce +--- +## MemberGroupDiscountRuleProvider + +```csharp +public class MemberGroupDiscountRuleProvider : + OrderDiscountRuleProviderBase +``` + +**Inheritance** + +* Class [OrderDiscountRuleProviderBase<!0>](../../umbraco-commerce-core/umbraco-commerce-core-discounts/orderdiscountruleproviderbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Discounts.Rules](README.md) + +### Constructors + +#### MemberGroupDiscountRuleProvider + +```csharp +public MemberGroupDiscountRuleProvider(Lazy memberService) +``` + + +### Methods + +#### ValidateRule + +```csharp +public override DiscountRuleResult ValidateRule(DiscountRuleContext ctx, + MemberGroupDiscountRuleProviderSettings settings) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-discounts-rules/membergroupdiscountruleprovidersettings.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-discounts-rules/membergroupdiscountruleprovidersettings.md new file mode 100644 index 00000000000..ba098d4df15 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-discounts-rules/membergroupdiscountruleprovidersettings.md @@ -0,0 +1,43 @@ +--- +title: MemberGroupDiscountRuleProviderSettings +description: API reference for MemberGroupDiscountRuleProviderSettings in Umbraco Commerce +--- +## MemberGroupDiscountRuleProviderSettings + +```csharp +public class MemberGroupDiscountRuleProviderSettings +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Discounts.Rules](README.md) + +### Constructors + +#### MemberGroupDiscountRuleProviderSettings + +The default constructor. + +```csharp +public MemberGroupDiscountRuleProviderSettings() +``` + + +### Properties + +#### MatchType + +```csharp +public MatchType MatchType { get; set; } +``` + + +--- + +#### MemberGroups + +```csharp +public IList MemberGroups { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-discounts-rules/orderlineproductdiscountruleprovider.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-discounts-rules/orderlineproductdiscountruleprovider.md new file mode 100644 index 00000000000..cc8acea5db4 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-discounts-rules/orderlineproductdiscountruleprovider.md @@ -0,0 +1,39 @@ +--- +title: OrderLineProductDiscountRuleProvider +description: API reference for OrderLineProductDiscountRuleProvider in Umbraco Commerce +--- +## OrderLineProductDiscountRuleProvider + +```csharp +public class OrderLineProductDiscountRuleProvider : + OrderLineDiscountRuleProviderBase +``` + +**Inheritance** + +* Class [OrderLineDiscountRuleProviderBase<!0>](../../umbraco-commerce-core/umbraco-commerce-core-discounts/orderlinediscountruleproviderbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Discounts.Rules](README.md) + +### Constructors + +#### OrderLineProductDiscountRuleProvider + +```csharp +public OrderLineProductDiscountRuleProvider( + UmbracoProductHelperAccessor umbracoProductHelperAccessor) +``` + + +### Methods + +#### ValidateRule + +```csharp +public override DiscountRuleResult ValidateRule(DiscountRuleContext ctx, + OrderLineProductDiscountRuleProviderSettings settings) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-discounts-rules/orderlineproductdiscountruleprovidersettings.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-discounts-rules/orderlineproductdiscountruleprovidersettings.md new file mode 100644 index 00000000000..72669e4339e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-discounts-rules/orderlineproductdiscountruleprovidersettings.md @@ -0,0 +1,34 @@ +--- +title: OrderLineProductDiscountRuleProviderSettings +description: API reference for OrderLineProductDiscountRuleProviderSettings in Umbraco Commerce +--- +## OrderLineProductDiscountRuleProviderSettings + +```csharp +public class OrderLineProductDiscountRuleProviderSettings +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Discounts.Rules](README.md) + +### Constructors + +#### OrderLineProductDiscountRuleProviderSettings + +The default constructor. + +```csharp +public OrderLineProductDiscountRuleProviderSettings() +``` + + +### Properties + +#### NodeId + +```csharp +public Udi NodeId { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-events-notification/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-events-notification/README.md new file mode 100644 index 00000000000..fa0fb947837 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-events-notification/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Cms.Events.Notification +description: API reference for Umbraco.Commerce.Cms.Events.Notification in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Events.Notification namespace + +| Public Type | Description | +| --- | --- | +| class [CacheRefreshNotification](cacherefreshnotification.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-events-notification/cacherefreshnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-events-notification/cacherefreshnotification.md new file mode 100644 index 00000000000..8ab6e8126f2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-events-notification/cacherefreshnotification.md @@ -0,0 +1,46 @@ +--- +title: CacheRefreshNotification +description: API reference for CacheRefreshNotification in Umbraco Commerce +--- +## CacheRefreshNotification + +```csharp +public class CacheRefreshNotification : NotificationEventBase +``` + +**Inheritance** + +* Class [NotificationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/notificationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Events.Notification](README.md) + +### Constructors + +#### CacheRefreshNotification + +```csharp +public CacheRefreshNotification(Type entityType, + UmbracoCommerceEntityCacheRefresherPayload[] payload) +``` + + +### Properties + +#### EntityType + +```csharp +public Type EntityType { get; set; } +``` + + +--- + +#### Payload + +```csharp +public UmbracoCommerceEntityCacheRefresherPayload[] Payload { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-examine/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-examine/README.md new file mode 100644 index 00000000000..36e4feb16a8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-examine/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Cms.Examine +description: API reference for Umbraco.Commerce.Cms.Examine in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Examine namespace + +| Public Type | Description | +| --- | --- | +| class [UmbracoCommerceVariantsEditorExamineValueOptimizer](umbracocommercevariantseditorexaminevalueoptimizer.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-examine/umbracocommercevariantseditorexaminevalueoptimizer.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-examine/umbracocommercevariantseditorexaminevalueoptimizer.md new file mode 100644 index 00000000000..84896b7b373 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-examine/umbracocommercevariantseditorexaminevalueoptimizer.md @@ -0,0 +1,32 @@ +--- +title: UmbracoCommerceVariantsEditorExamineValueOptimizer +description: API reference for UmbracoCommerceVariantsEditorExamineValueOptimizer in Umbraco Commerce +--- +## UmbracoCommerceVariantsEditorExamineValueOptimizer + +```csharp +public class UmbracoCommerceVariantsEditorExamineValueOptimizer +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Examine](README.md) + +### Constructors + +#### UmbracoCommerceVariantsEditorExamineValueOptimizer + +```csharp +public UmbracoCommerceVariantsEditorExamineValueOptimizer(IContentTypeService contentTypeService) +``` + + +### Methods + +#### Optimize + +```csharp +public void Optimize(IDictionary> values, string itemType) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-extractors/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-extractors/README.md new file mode 100644 index 00000000000..f54c6fa7c45 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-extractors/README.md @@ -0,0 +1,12 @@ +--- +title: Umbraco.Commerce.Cms.Extractors +description: API reference for Umbraco.Commerce.Cms.Extractors in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Extractors namespace + +| Public Type | Description | +| --- | --- | +| interface [IUmbracoProductNameExtractor](iumbracoproductnameextractor.md) | | +| class [UmbracoProductNameExtractor](umbracoproductnameextractor.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-extractors/iumbracoproductnameextractor.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-extractors/iumbracoproductnameextractor.md new file mode 100644 index 00000000000..2c59e0628b9 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-extractors/iumbracoproductnameextractor.md @@ -0,0 +1,32 @@ +--- +title: IUmbracoProductNameExtractor +description: API reference for IUmbracoProductNameExtractor in Umbraco Commerce +--- +## IUmbracoProductNameExtractor + +```csharp +public interface IUmbracoProductNameExtractor +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Extractors](README.md) + +### Methods + +#### ExtractProductName (1 of 2) + +```csharp +public string ExtractProductName(IPublishedContent content, string languageIsoCode) +``` + +--- + +#### ExtractProductName (2 of 2) + +```csharp +public string ExtractProductName(IPublishedContent content, IPublishedElement variantContent, + string languageIsoCode) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-extractors/umbracoproductnameextractor.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-extractors/umbracoproductnameextractor.md new file mode 100644 index 00000000000..ec0f17a0f13 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-extractors/umbracoproductnameextractor.md @@ -0,0 +1,45 @@ +--- +title: UmbracoProductNameExtractor +description: API reference for UmbracoProductNameExtractor in Umbraco Commerce +--- +## UmbracoProductNameExtractor + +```csharp +public class UmbracoProductNameExtractor : IUmbracoProductNameExtractor +``` + +**Inheritance** + +* interface [IUmbracoProductNameExtractor](iumbracoproductnameextractor.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Extractors](README.md) + +### Constructors + +#### UmbracoProductNameExtractor + +```csharp +public UmbracoProductNameExtractor(PublishedContentHelperAccessor publishedContentHelperAccessor) +``` + + +### Methods + +#### ExtractProductName (1 of 2) + +```csharp +public virtual string ExtractProductName(IPublishedContent content, string languageIsoCode) +``` + +--- + +#### ExtractProductName (2 of 2) + +```csharp +public virtual string ExtractProductName(IPublishedContent content, + IPublishedElement variantContent, string languageIsoCode) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/README.md new file mode 100644 index 00000000000..ca1e337ae8c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/README.md @@ -0,0 +1,26 @@ +--- +title: Umbraco.Commerce.Cms.Filters.Implement +description: API reference for Umbraco.Commerce.Cms.Filters.Implement in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Filters.Implement namespace + +| Public Type | Description | +| --- | --- | +| class [OrderCartNumberAdvancedFilter](ordercartnumberadvancedfilter.md) | | +| class [OrderCreatedAfterAdvancedFilter](ordercreatedafteradvancedfilter.md) | | +| class [OrderCreatedBeforeAdvancedFilter](ordercreatedbeforeadvancedfilter.md) | | +| class [OrderCustomerEmailAddressAdvancedFilter](ordercustomeremailaddressadvancedfilter.md) | | +| class [OrderCustomerFirstNameAdvancedFilter](ordercustomerfirstnameadvancedfilter.md) | | +| class [OrderCustomerLastNameAdvancedFilter](ordercustomerlastnameadvancedfilter.md) | | +| class [OrderHasCustomerEmailAddressAdvancedFilter](orderhascustomeremailaddressadvancedfilter.md) | | +| class [OrderLastUpdatedAfterAdvancedFilter](orderlastupdatedafteradvancedfilter.md) | | +| class [OrderLastUpdatedBeforeAdvancedFilter](orderlastupdatedbeforeadvancedfilter.md) | | +| class [OrderOrderLinePropertiesAdvancedFilter](orderorderlinepropertiesadvancedfilter.md) | | +| class [OrderOrderLineSkusAdvancedFilter](orderorderlineskusadvancedfilter.md) | | +| class [OrderOrderNumberAdvancedFilter](orderordernumberadvancedfilter.md) | | +| class [OrderPlacedAfterAdvancedFilter](orderplacedafteradvancedfilter.md) | | +| class [OrderPlacedBeforeAdvancedFilter](orderplacedbeforeadvancedfilter.md) | | +| class [OrderPropertiesAdvancedFilter](orderpropertiesadvancedfilter.md) | | +| class [OrderTagsAdvancedFilter](ordertagsadvancedfilter.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/ordercartnumberadvancedfilter.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/ordercartnumberadvancedfilter.md new file mode 100644 index 00000000000..7649b720721 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/ordercartnumberadvancedfilter.md @@ -0,0 +1,48 @@ +--- +title: OrderCartNumberAdvancedFilter +description: API reference for OrderCartNumberAdvancedFilter in Umbraco Commerce +--- +## OrderCartNumberAdvancedFilter + +```csharp +public class OrderCartNumberAdvancedFilter : OrderAdvancedFilterBase +``` + +**Inheritance** + +* Class [OrderAdvancedFilterBase](../umbraco-commerce-cms-filters/orderadvancedfilterbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Filters.Implement](README.md) + +### Constructors + +#### OrderCartNumberAdvancedFilter + +The default constructor. + +```csharp +public OrderCartNumberAdvancedFilter() +``` + + +### Methods + +#### Apply + +```csharp +public override IQuerySpecification Apply(IQuerySpecification query, + IOrderQuerySpecificationFactory where, string value) +``` + + +--- + +#### CanApply + +```csharp +public override bool CanApply(string value) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/ordercreatedafteradvancedfilter.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/ordercreatedafteradvancedfilter.md new file mode 100644 index 00000000000..609939fb87a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/ordercreatedafteradvancedfilter.md @@ -0,0 +1,48 @@ +--- +title: OrderCreatedAfterAdvancedFilter +description: API reference for OrderCreatedAfterAdvancedFilter in Umbraco Commerce +--- +## OrderCreatedAfterAdvancedFilter + +```csharp +public class OrderCreatedAfterAdvancedFilter : OrderAdvancedFilterBase +``` + +**Inheritance** + +* Class [OrderAdvancedFilterBase](../umbraco-commerce-cms-filters/orderadvancedfilterbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Filters.Implement](README.md) + +### Constructors + +#### OrderCreatedAfterAdvancedFilter + +The default constructor. + +```csharp +public OrderCreatedAfterAdvancedFilter() +``` + + +### Methods + +#### Apply + +```csharp +public override IQuerySpecification Apply(IQuerySpecification query, + IOrderQuerySpecificationFactory where, string value) +``` + + +--- + +#### CanApply + +```csharp +public override bool CanApply(string value) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/ordercreatedbeforeadvancedfilter.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/ordercreatedbeforeadvancedfilter.md new file mode 100644 index 00000000000..7c67f379ac0 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/ordercreatedbeforeadvancedfilter.md @@ -0,0 +1,48 @@ +--- +title: OrderCreatedBeforeAdvancedFilter +description: API reference for OrderCreatedBeforeAdvancedFilter in Umbraco Commerce +--- +## OrderCreatedBeforeAdvancedFilter + +```csharp +public class OrderCreatedBeforeAdvancedFilter : OrderAdvancedFilterBase +``` + +**Inheritance** + +* Class [OrderAdvancedFilterBase](../umbraco-commerce-cms-filters/orderadvancedfilterbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Filters.Implement](README.md) + +### Constructors + +#### OrderCreatedBeforeAdvancedFilter + +The default constructor. + +```csharp +public OrderCreatedBeforeAdvancedFilter() +``` + + +### Methods + +#### Apply + +```csharp +public override IQuerySpecification Apply(IQuerySpecification query, + IOrderQuerySpecificationFactory where, string value) +``` + + +--- + +#### CanApply + +```csharp +public override bool CanApply(string value) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/ordercustomeremailaddressadvancedfilter.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/ordercustomeremailaddressadvancedfilter.md new file mode 100644 index 00000000000..150793dbec9 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/ordercustomeremailaddressadvancedfilter.md @@ -0,0 +1,48 @@ +--- +title: OrderCustomerEmailAddressAdvancedFilter +description: API reference for OrderCustomerEmailAddressAdvancedFilter in Umbraco Commerce +--- +## OrderCustomerEmailAddressAdvancedFilter + +```csharp +public class OrderCustomerEmailAddressAdvancedFilter : OrderAdvancedFilterBase +``` + +**Inheritance** + +* Class [OrderAdvancedFilterBase](../umbraco-commerce-cms-filters/orderadvancedfilterbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Filters.Implement](README.md) + +### Constructors + +#### OrderCustomerEmailAddressAdvancedFilter + +The default constructor. + +```csharp +public OrderCustomerEmailAddressAdvancedFilter() +``` + + +### Methods + +#### Apply + +```csharp +public override IQuerySpecification Apply(IQuerySpecification query, + IOrderQuerySpecificationFactory where, string value) +``` + + +--- + +#### CanApply + +```csharp +public override bool CanApply(string value) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/ordercustomerfirstnameadvancedfilter.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/ordercustomerfirstnameadvancedfilter.md new file mode 100644 index 00000000000..6e2189344ee --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/ordercustomerfirstnameadvancedfilter.md @@ -0,0 +1,48 @@ +--- +title: OrderCustomerFirstNameAdvancedFilter +description: API reference for OrderCustomerFirstNameAdvancedFilter in Umbraco Commerce +--- +## OrderCustomerFirstNameAdvancedFilter + +```csharp +public class OrderCustomerFirstNameAdvancedFilter : OrderAdvancedFilterBase +``` + +**Inheritance** + +* Class [OrderAdvancedFilterBase](../umbraco-commerce-cms-filters/orderadvancedfilterbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Filters.Implement](README.md) + +### Constructors + +#### OrderCustomerFirstNameAdvancedFilter + +The default constructor. + +```csharp +public OrderCustomerFirstNameAdvancedFilter() +``` + + +### Methods + +#### Apply + +```csharp +public override IQuerySpecification Apply(IQuerySpecification query, + IOrderQuerySpecificationFactory where, string value) +``` + + +--- + +#### CanApply + +```csharp +public override bool CanApply(string value) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/ordercustomerlastnameadvancedfilter.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/ordercustomerlastnameadvancedfilter.md new file mode 100644 index 00000000000..98989fb0f2b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/ordercustomerlastnameadvancedfilter.md @@ -0,0 +1,48 @@ +--- +title: OrderCustomerLastNameAdvancedFilter +description: API reference for OrderCustomerLastNameAdvancedFilter in Umbraco Commerce +--- +## OrderCustomerLastNameAdvancedFilter + +```csharp +public class OrderCustomerLastNameAdvancedFilter : OrderAdvancedFilterBase +``` + +**Inheritance** + +* Class [OrderAdvancedFilterBase](../umbraco-commerce-cms-filters/orderadvancedfilterbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Filters.Implement](README.md) + +### Constructors + +#### OrderCustomerLastNameAdvancedFilter + +The default constructor. + +```csharp +public OrderCustomerLastNameAdvancedFilter() +``` + + +### Methods + +#### Apply + +```csharp +public override IQuerySpecification Apply(IQuerySpecification query, + IOrderQuerySpecificationFactory where, string value) +``` + + +--- + +#### CanApply + +```csharp +public override bool CanApply(string value) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/orderhascustomeremailaddressadvancedfilter.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/orderhascustomeremailaddressadvancedfilter.md new file mode 100644 index 00000000000..11e4b7d96e0 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/orderhascustomeremailaddressadvancedfilter.md @@ -0,0 +1,48 @@ +--- +title: OrderHasCustomerEmailAddressAdvancedFilter +description: API reference for OrderHasCustomerEmailAddressAdvancedFilter in Umbraco Commerce +--- +## OrderHasCustomerEmailAddressAdvancedFilter + +```csharp +public class OrderHasCustomerEmailAddressAdvancedFilter : OrderAdvancedFilterBase +``` + +**Inheritance** + +* Class [OrderAdvancedFilterBase](../umbraco-commerce-cms-filters/orderadvancedfilterbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Filters.Implement](README.md) + +### Constructors + +#### OrderHasCustomerEmailAddressAdvancedFilter + +The default constructor. + +```csharp +public OrderHasCustomerEmailAddressAdvancedFilter() +``` + + +### Methods + +#### Apply + +```csharp +public override IQuerySpecification Apply(IQuerySpecification query, + IOrderQuerySpecificationFactory where, string value) +``` + + +--- + +#### CanApply + +```csharp +public override bool CanApply(string value) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/orderlastupdatedafteradvancedfilter.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/orderlastupdatedafteradvancedfilter.md new file mode 100644 index 00000000000..297a93aa81e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/orderlastupdatedafteradvancedfilter.md @@ -0,0 +1,48 @@ +--- +title: OrderLastUpdatedAfterAdvancedFilter +description: API reference for OrderLastUpdatedAfterAdvancedFilter in Umbraco Commerce +--- +## OrderLastUpdatedAfterAdvancedFilter + +```csharp +public class OrderLastUpdatedAfterAdvancedFilter : OrderAdvancedFilterBase +``` + +**Inheritance** + +* Class [OrderAdvancedFilterBase](../umbraco-commerce-cms-filters/orderadvancedfilterbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Filters.Implement](README.md) + +### Constructors + +#### OrderLastUpdatedAfterAdvancedFilter + +The default constructor. + +```csharp +public OrderLastUpdatedAfterAdvancedFilter() +``` + + +### Methods + +#### Apply + +```csharp +public override IQuerySpecification Apply(IQuerySpecification query, + IOrderQuerySpecificationFactory where, string value) +``` + + +--- + +#### CanApply + +```csharp +public override bool CanApply(string value) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/orderlastupdatedbeforeadvancedfilter.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/orderlastupdatedbeforeadvancedfilter.md new file mode 100644 index 00000000000..7ae33b96142 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/orderlastupdatedbeforeadvancedfilter.md @@ -0,0 +1,48 @@ +--- +title: OrderLastUpdatedBeforeAdvancedFilter +description: API reference for OrderLastUpdatedBeforeAdvancedFilter in Umbraco Commerce +--- +## OrderLastUpdatedBeforeAdvancedFilter + +```csharp +public class OrderLastUpdatedBeforeAdvancedFilter : OrderAdvancedFilterBase +``` + +**Inheritance** + +* Class [OrderAdvancedFilterBase](../umbraco-commerce-cms-filters/orderadvancedfilterbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Filters.Implement](README.md) + +### Constructors + +#### OrderLastUpdatedBeforeAdvancedFilter + +The default constructor. + +```csharp +public OrderLastUpdatedBeforeAdvancedFilter() +``` + + +### Methods + +#### Apply + +```csharp +public override IQuerySpecification Apply(IQuerySpecification query, + IOrderQuerySpecificationFactory where, string value) +``` + + +--- + +#### CanApply + +```csharp +public override bool CanApply(string value) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/orderorderlinepropertiesadvancedfilter.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/orderorderlinepropertiesadvancedfilter.md new file mode 100644 index 00000000000..bbfc0ec28ae --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/orderorderlinepropertiesadvancedfilter.md @@ -0,0 +1,48 @@ +--- +title: OrderOrderLinePropertiesAdvancedFilter +description: API reference for OrderOrderLinePropertiesAdvancedFilter in Umbraco Commerce +--- +## OrderOrderLinePropertiesAdvancedFilter + +```csharp +public class OrderOrderLinePropertiesAdvancedFilter : OrderAdvancedFilterBase +``` + +**Inheritance** + +* Class [OrderAdvancedFilterBase](../umbraco-commerce-cms-filters/orderadvancedfilterbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Filters.Implement](README.md) + +### Constructors + +#### OrderOrderLinePropertiesAdvancedFilter + +The default constructor. + +```csharp +public OrderOrderLinePropertiesAdvancedFilter() +``` + + +### Methods + +#### Apply + +```csharp +public override IQuerySpecification Apply(IQuerySpecification query, + IOrderQuerySpecificationFactory where, string value) +``` + + +--- + +#### CanApply + +```csharp +public override bool CanApply(string value) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/orderorderlineskusadvancedfilter.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/orderorderlineskusadvancedfilter.md new file mode 100644 index 00000000000..bf9e46306eb --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/orderorderlineskusadvancedfilter.md @@ -0,0 +1,48 @@ +--- +title: OrderOrderLineSkusAdvancedFilter +description: API reference for OrderOrderLineSkusAdvancedFilter in Umbraco Commerce +--- +## OrderOrderLineSkusAdvancedFilter + +```csharp +public class OrderOrderLineSkusAdvancedFilter : OrderAdvancedFilterBase +``` + +**Inheritance** + +* Class [OrderAdvancedFilterBase](../umbraco-commerce-cms-filters/orderadvancedfilterbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Filters.Implement](README.md) + +### Constructors + +#### OrderOrderLineSkusAdvancedFilter + +The default constructor. + +```csharp +public OrderOrderLineSkusAdvancedFilter() +``` + + +### Methods + +#### Apply + +```csharp +public override IQuerySpecification Apply(IQuerySpecification query, + IOrderQuerySpecificationFactory where, string value) +``` + + +--- + +#### CanApply + +```csharp +public override bool CanApply(string value) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/orderordernumberadvancedfilter.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/orderordernumberadvancedfilter.md new file mode 100644 index 00000000000..eff4489dfd7 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/orderordernumberadvancedfilter.md @@ -0,0 +1,48 @@ +--- +title: OrderOrderNumberAdvancedFilter +description: API reference for OrderOrderNumberAdvancedFilter in Umbraco Commerce +--- +## OrderOrderNumberAdvancedFilter + +```csharp +public class OrderOrderNumberAdvancedFilter : OrderAdvancedFilterBase +``` + +**Inheritance** + +* Class [OrderAdvancedFilterBase](../umbraco-commerce-cms-filters/orderadvancedfilterbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Filters.Implement](README.md) + +### Constructors + +#### OrderOrderNumberAdvancedFilter + +The default constructor. + +```csharp +public OrderOrderNumberAdvancedFilter() +``` + + +### Methods + +#### Apply + +```csharp +public override IQuerySpecification Apply(IQuerySpecification query, + IOrderQuerySpecificationFactory where, string value) +``` + + +--- + +#### CanApply + +```csharp +public override bool CanApply(string value) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/orderplacedafteradvancedfilter.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/orderplacedafteradvancedfilter.md new file mode 100644 index 00000000000..7c70ae41681 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/orderplacedafteradvancedfilter.md @@ -0,0 +1,48 @@ +--- +title: OrderPlacedAfterAdvancedFilter +description: API reference for OrderPlacedAfterAdvancedFilter in Umbraco Commerce +--- +## OrderPlacedAfterAdvancedFilter + +```csharp +public class OrderPlacedAfterAdvancedFilter : OrderAdvancedFilterBase +``` + +**Inheritance** + +* Class [OrderAdvancedFilterBase](../umbraco-commerce-cms-filters/orderadvancedfilterbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Filters.Implement](README.md) + +### Constructors + +#### OrderPlacedAfterAdvancedFilter + +The default constructor. + +```csharp +public OrderPlacedAfterAdvancedFilter() +``` + + +### Methods + +#### Apply + +```csharp +public override IQuerySpecification Apply(IQuerySpecification query, + IOrderQuerySpecificationFactory where, string value) +``` + + +--- + +#### CanApply + +```csharp +public override bool CanApply(string value) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/orderplacedbeforeadvancedfilter.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/orderplacedbeforeadvancedfilter.md new file mode 100644 index 00000000000..6c9170c1aea --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/orderplacedbeforeadvancedfilter.md @@ -0,0 +1,48 @@ +--- +title: OrderPlacedBeforeAdvancedFilter +description: API reference for OrderPlacedBeforeAdvancedFilter in Umbraco Commerce +--- +## OrderPlacedBeforeAdvancedFilter + +```csharp +public class OrderPlacedBeforeAdvancedFilter : OrderAdvancedFilterBase +``` + +**Inheritance** + +* Class [OrderAdvancedFilterBase](../umbraco-commerce-cms-filters/orderadvancedfilterbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Filters.Implement](README.md) + +### Constructors + +#### OrderPlacedBeforeAdvancedFilter + +The default constructor. + +```csharp +public OrderPlacedBeforeAdvancedFilter() +``` + + +### Methods + +#### Apply + +```csharp +public override IQuerySpecification Apply(IQuerySpecification query, + IOrderQuerySpecificationFactory where, string value) +``` + + +--- + +#### CanApply + +```csharp +public override bool CanApply(string value) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/orderpropertiesadvancedfilter.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/orderpropertiesadvancedfilter.md new file mode 100644 index 00000000000..d0014e7599a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/orderpropertiesadvancedfilter.md @@ -0,0 +1,48 @@ +--- +title: OrderPropertiesAdvancedFilter +description: API reference for OrderPropertiesAdvancedFilter in Umbraco Commerce +--- +## OrderPropertiesAdvancedFilter + +```csharp +public class OrderPropertiesAdvancedFilter : OrderAdvancedFilterBase +``` + +**Inheritance** + +* Class [OrderAdvancedFilterBase](../umbraco-commerce-cms-filters/orderadvancedfilterbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Filters.Implement](README.md) + +### Constructors + +#### OrderPropertiesAdvancedFilter + +The default constructor. + +```csharp +public OrderPropertiesAdvancedFilter() +``` + + +### Methods + +#### Apply + +```csharp +public override IQuerySpecification Apply(IQuerySpecification query, + IOrderQuerySpecificationFactory where, string value) +``` + + +--- + +#### CanApply + +```csharp +public override bool CanApply(string value) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/ordertagsadvancedfilter.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/ordertagsadvancedfilter.md new file mode 100644 index 00000000000..f24c6519f01 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters-implement/ordertagsadvancedfilter.md @@ -0,0 +1,48 @@ +--- +title: OrderTagsAdvancedFilter +description: API reference for OrderTagsAdvancedFilter in Umbraco Commerce +--- +## OrderTagsAdvancedFilter + +```csharp +public class OrderTagsAdvancedFilter : OrderAdvancedFilterBase +``` + +**Inheritance** + +* Class [OrderAdvancedFilterBase](../umbraco-commerce-cms-filters/orderadvancedfilterbase.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Filters.Implement](README.md) + +### Constructors + +#### OrderTagsAdvancedFilter + +The default constructor. + +```csharp +public OrderTagsAdvancedFilter() +``` + + +### Methods + +#### Apply + +```csharp +public override IQuerySpecification Apply(IQuerySpecification query, + IOrderQuerySpecificationFactory where, string value) +``` + + +--- + +#### CanApply + +```csharp +public override bool CanApply(string value) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters/README.md new file mode 100644 index 00000000000..a3f4855cde8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters/README.md @@ -0,0 +1,16 @@ +--- +title: Umbraco.Commerce.Cms.Filters +description: API reference for Umbraco.Commerce.Cms.Filters in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Filters namespace + +| Public Type | Description | +| --- | --- | +| class [AdvancedFilterAttribute](advancedfilterattribute.md) | | +| abstract class [AdvancedFilterBase<TSpecFactory,TEntity>](advancedfilterbase-2.md) | | +| class [CartAdvancedFilterCollection](cartadvancedfiltercollection.md) | | +| interface [IAdvancedFilter<TSpecFactory,TEntity>](iadvancedfilter-2.md) | | +| abstract class [OrderAdvancedFilterBase](orderadvancedfilterbase.md) | | +| class [OrderAdvancedFilterCollection](orderadvancedfiltercollection.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters/advancedfilterattribute.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters/advancedfilterattribute.md new file mode 100644 index 00000000000..2b1ca5afd96 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters/advancedfilterattribute.md @@ -0,0 +1,86 @@ +--- +title: AdvancedFilterAttribute +description: API reference for AdvancedFilterAttribute in Umbraco Commerce +--- +## AdvancedFilterAttribute + +```csharp +[AttributeUsage(AttributeTargets.Class, Inherited = False, AllowMultiple = False)] +public class AdvancedFilterAttribute : Attribute +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Filters](README.md) + +### Constructors + +#### AdvancedFilterAttribute (1 of 2) + +```csharp +public AdvancedFilterAttribute(string alias, string name) +``` + +--- + +#### AdvancedFilterAttribute (2 of 2) + +```csharp +public AdvancedFilterAttribute(string alias, string name, string description) +``` + + +### Properties + +#### Alias + +```csharp +public string Alias { get; set; } +``` + + +--- + +#### Description + +```csharp +public string Description { get; set; } +``` + + +--- + +#### EditorConfig + +```csharp +public string EditorConfig { get; set; } +``` + + +--- + +#### EditorView + +```csharp +public string EditorView { get; set; } +``` + + +--- + +#### Group + +```csharp +public string Group { get; set; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters/advancedfilterbase-2.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters/advancedfilterbase-2.md new file mode 100644 index 00000000000..58804949b9e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters/advancedfilterbase-2.md @@ -0,0 +1,103 @@ +--- +title: AdvancedFilterBase +description: API reference for AdvancedFilterBase in Umbraco Commerce +--- +## AdvancedFilterBase<TSpecFactory,TEntity> + +```csharp +public abstract class AdvancedFilterBase : + IAdvancedFilter +``` + +**Inheritance** + +* interface [IAdvancedFilter<TSpecFactory,TEntity>](iadvancedfilter-2.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Filters](README.md) + +### Constructors + +#### AdvancedFilterBase<TSpecFactory,TEntity> + +The default constructor. + +```csharp +public AdvancedFilterBase() +``` + + +### Properties + +#### Alias + +```csharp +public string Alias { get; } +``` + + +--- + +#### Description + +```csharp +public string Description { get; } +``` + + +--- + +#### EditorConfig + +```csharp +public string EditorConfig { get; } +``` + + +--- + +#### EditorView + +```csharp +public string EditorView { get; } +``` + + +--- + +#### Group + +```csharp +public string Group { get; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; } +``` + + +### Methods + +#### Apply + +```csharp +public abstract IQuerySpecification Apply(IQuerySpecification query, + TSpecFactory where, string value) +``` + + +--- + +#### CanApply + +```csharp +public abstract bool CanApply(string value) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters/cartadvancedfiltercollection.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters/cartadvancedfiltercollection.md new file mode 100644 index 00000000000..975f7887f3a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters/cartadvancedfiltercollection.md @@ -0,0 +1,27 @@ +--- +title: CartAdvancedFilterCollection +description: API reference for CartAdvancedFilterCollection in Umbraco Commerce +--- +## CartAdvancedFilterCollection + +```csharp +public class CartAdvancedFilterCollection : ComposedCollection +``` + +**Inheritance** + +* Class [ComposedCollection<!0>](../../umbraco-commerce-common/umbraco-commerce-common-composing/composedcollection-1.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Filters](README.md) + +### Constructors + +#### CartAdvancedFilterCollection + +```csharp +public CartAdvancedFilterCollection(Func> items) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters/iadvancedfilter-2.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters/iadvancedfilter-2.md new file mode 100644 index 00000000000..d5fd0c6d4e3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters/iadvancedfilter-2.md @@ -0,0 +1,87 @@ +--- +title: IAdvancedFilter +description: API reference for IAdvancedFilter in Umbraco Commerce +--- +## IAdvancedFilter<TSpecFactory,TEntity> + +```csharp +public interface IAdvancedFilter +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Filters](README.md) + +### Properties + +#### Alias + +```csharp +public string Alias { get; } +``` + + +--- + +#### Description + +```csharp +public string Description { get; } +``` + + +--- + +#### EditorConfig + +```csharp +public string EditorConfig { get; } +``` + + +--- + +#### EditorView + +```csharp +public string EditorView { get; } +``` + + +--- + +#### Group + +```csharp +public string Group { get; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; } +``` + + +### Methods + +#### Apply + +```csharp +public IQuerySpecification Apply(IQuerySpecification query, TSpecFactory where, + string value) +``` + + +--- + +#### CanApply + +```csharp +public bool CanApply(string value) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters/orderadvancedfilterbase.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters/orderadvancedfilterbase.md new file mode 100644 index 00000000000..96044b43cbd --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters/orderadvancedfilterbase.md @@ -0,0 +1,19 @@ +--- +title: OrderAdvancedFilterBase +description: API reference for OrderAdvancedFilterBase in Umbraco Commerce +--- +## OrderAdvancedFilterBase + +```csharp +public abstract class OrderAdvancedFilterBase : + AdvancedFilterBase +``` + +**Inheritance** + +* Class [AdvancedFilterBase<TSpecFactory,TEntity>](advancedfilterbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Filters](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters/orderadvancedfiltercollection.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters/orderadvancedfiltercollection.md new file mode 100644 index 00000000000..dd781481224 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-filters/orderadvancedfiltercollection.md @@ -0,0 +1,27 @@ +--- +title: OrderAdvancedFilterCollection +description: API reference for OrderAdvancedFilterCollection in Umbraco Commerce +--- +## OrderAdvancedFilterCollection + +```csharp +public class OrderAdvancedFilterCollection : ComposedCollection +``` + +**Inheritance** + +* Class [ComposedCollection<!0>](../../umbraco-commerce-common/umbraco-commerce-common-composing/composedcollection-1.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Filters](README.md) + +### Constructors + +#### OrderAdvancedFilterCollection + +```csharp +public OrderAdvancedFilterCollection(Func> items) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-finders/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-finders/README.md new file mode 100644 index 00000000000..901c3048c7b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-finders/README.md @@ -0,0 +1,15 @@ +--- +title: Umbraco.Commerce.Cms.Finders +description: API reference for Umbraco.Commerce.Cms.Finders in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Finders namespace + +| Public Type | Description | +| --- | --- | +| interface [IUmbracoNodeStoreFinder](iumbraconodestorefinder.md) | | +| class [UmbracoContentStoreFinder](umbracocontentstorefinder.md) | | +| class [UmbracoLuceneStoreFinder](umbracolucenestorefinder.md) | | +| class [UmbracoNodeStoreFinderCollection](umbraconodestorefindercollection.md) | | +| class [UmbracoPublishedContentStoreFinder](umbracopublishedcontentstorefinder.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-finders/iumbraconodestorefinder.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-finders/iumbraconodestorefinder.md new file mode 100644 index 00000000000..a0aeac8df0b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-finders/iumbraconodestorefinder.md @@ -0,0 +1,23 @@ +--- +title: IUmbracoNodeStoreFinder +description: API reference for IUmbracoNodeStoreFinder in Umbraco Commerce +--- +## IUmbracoNodeStoreFinder + +```csharp +public interface IUmbracoNodeStoreFinder +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Finders](README.md) + +### Methods + +#### FindStore + +```csharp +public StoreFinderResult FindStore(int nodeId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-finders/umbracocontentstorefinder.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-finders/umbracocontentstorefinder.md new file mode 100644 index 00000000000..d6386225aff --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-finders/umbracocontentstorefinder.md @@ -0,0 +1,39 @@ +--- +title: UmbracoContentStoreFinder +description: API reference for UmbracoContentStoreFinder in Umbraco Commerce +--- +## UmbracoContentStoreFinder + +```csharp +public class UmbracoContentStoreFinder : UmbracoPublishedContentStoreFinder +``` + +**Inheritance** + +* Class [UmbracoPublishedContentStoreFinder](umbracopublishedcontentstorefinder.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Finders](README.md) + +### Constructors + +#### UmbracoContentStoreFinder + +```csharp +public UmbracoContentStoreFinder(Lazy umbracoContextFactory, + Lazy publishedContentHelperAccessor, + Lazy contentService, + Lazy publishedContentWrapperFactory) +``` + + +### Methods + +#### FindStore + +```csharp +public override StoreFinderResult FindStore(int nodeId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-finders/umbracolucenestorefinder.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-finders/umbracolucenestorefinder.md new file mode 100644 index 00000000000..a5380e4e101 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-finders/umbracolucenestorefinder.md @@ -0,0 +1,37 @@ +--- +title: UmbracoLuceneStoreFinder +description: API reference for UmbracoLuceneStoreFinder in Umbraco Commerce +--- +## UmbracoLuceneStoreFinder + +```csharp +public class UmbracoLuceneStoreFinder : IUmbracoNodeStoreFinder +``` + +**Inheritance** + +* interface [IUmbracoNodeStoreFinder](iumbraconodestorefinder.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Finders](README.md) + +### Constructors + +#### UmbracoLuceneStoreFinder + +```csharp +public UmbracoLuceneStoreFinder(Lazy examineHelper, + Lazy storeService) +``` + + +### Methods + +#### FindStore + +```csharp +public StoreFinderResult FindStore(int nodeId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-finders/umbraconodestorefindercollection.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-finders/umbraconodestorefindercollection.md new file mode 100644 index 00000000000..d91c2717de2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-finders/umbraconodestorefindercollection.md @@ -0,0 +1,27 @@ +--- +title: UmbracoNodeStoreFinderCollection +description: API reference for UmbracoNodeStoreFinderCollection in Umbraco Commerce +--- +## UmbracoNodeStoreFinderCollection + +```csharp +public class UmbracoNodeStoreFinderCollection : ComposedCollection +``` + +**Inheritance** + +* Class [ComposedCollection<!0>](../../umbraco-commerce-common/umbraco-commerce-common-composing/composedcollection-1.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Finders](README.md) + +### Constructors + +#### UmbracoNodeStoreFinderCollection + +```csharp +public UmbracoNodeStoreFinderCollection(Func> itemsFactory) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-finders/umbracopublishedcontentstorefinder.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-finders/umbracopublishedcontentstorefinder.md new file mode 100644 index 00000000000..43d65aa19f3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-finders/umbracopublishedcontentstorefinder.md @@ -0,0 +1,37 @@ +--- +title: UmbracoPublishedContentStoreFinder +description: API reference for UmbracoPublishedContentStoreFinder in Umbraco Commerce +--- +## UmbracoPublishedContentStoreFinder + +```csharp +public class UmbracoPublishedContentStoreFinder : IUmbracoNodeStoreFinder +``` + +**Inheritance** + +* interface [IUmbracoNodeStoreFinder](iumbraconodestorefinder.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Finders](README.md) + +### Constructors + +#### UmbracoPublishedContentStoreFinder + +```csharp +public UmbracoPublishedContentStoreFinder(Lazy umbracoContextFactory, + Lazy publishedContentHelperAccessor) +``` + + +### Methods + +#### FindStore + +```csharp +public virtual StoreFinderResult FindStore(int nodeId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-healthchecks/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-healthchecks/README.md new file mode 100644 index 00000000000..a224a364e87 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-healthchecks/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Cms.HealthChecks +description: API reference for Umbraco.Commerce.Cms.HealthChecks in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.HealthChecks namespace + +| Public Type | Description | +| --- | --- | +| class [EntityCacheIntegrityCheck](entitycacheintegritycheck.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-healthchecks/entitycacheintegritycheck.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-healthchecks/entitycacheintegritycheck.md new file mode 100644 index 00000000000..286bd24533d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-healthchecks/entitycacheintegritycheck.md @@ -0,0 +1,41 @@ +--- +title: EntityCacheIntegrityCheck +description: API reference for EntityCacheIntegrityCheck in Umbraco Commerce +--- +## EntityCacheIntegrityCheck + +```csharp +public class EntityCacheIntegrityCheck : HealthCheck +``` + +**Namespace** +* [Umbraco.Commerce.Cms.HealthChecks](README.md) + +### Constructors + +#### EntityCacheIntegrityCheck + +```csharp +public EntityCacheIntegrityCheck(UmbracoCommerceServiceContext services) +``` + + +### Methods + +#### ExecuteAction + +```csharp +public override HealthCheckStatus ExecuteAction(HealthCheckAction action) +``` + + +--- + +#### GetStatus + +```csharp +public override Task> GetStatus() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-helpers/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-helpers/README.md new file mode 100644 index 00000000000..822779cee44 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-helpers/README.md @@ -0,0 +1,13 @@ +--- +title: Umbraco.Commerce.Cms.Helpers +description: API reference for Umbraco.Commerce.Cms.Helpers in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Helpers namespace + +| Public Type | Description | +| --- | --- | +| class [PublishedContentHelper](publishedcontenthelper.md) | | +| class [UmbracoCommerceExamineHelper](umbracocommerceexaminehelper.md) | | +| class [UmbracoProductHelper](umbracoproducthelper.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-helpers/publishedcontenthelper.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-helpers/publishedcontenthelper.md new file mode 100644 index 00000000000..08797284e0d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-helpers/publishedcontenthelper.md @@ -0,0 +1,24 @@ +--- +title: PublishedContentHelper +description: API reference for PublishedContentHelper in Umbraco Commerce +--- +## PublishedContentHelper + +```csharp +public class PublishedContentHelper +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Helpers](README.md) + +### Constructors + +#### PublishedContentHelper + +```csharp +public PublishedContentHelper(IPublishedValueFallback publishedValueFallback, + IUmbracoContextFactory umbracoContextFactory) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-helpers/umbracocommerceexaminehelper.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-helpers/umbracocommerceexaminehelper.md new file mode 100644 index 00000000000..2879f39dcd0 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-helpers/umbracocommerceexaminehelper.md @@ -0,0 +1,23 @@ +--- +title: UmbracoCommerceExamineHelper +description: API reference for UmbracoCommerceExamineHelper in Umbraco Commerce +--- +## UmbracoCommerceExamineHelper + +```csharp +public class UmbracoCommerceExamineHelper +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Helpers](README.md) + +### Constructors + +#### UmbracoCommerceExamineHelper + +```csharp +public UmbracoCommerceExamineHelper(IExamineManager examineManager) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-helpers/umbracoproducthelper.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-helpers/umbracoproducthelper.md new file mode 100644 index 00000000000..f6527902a8d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-helpers/umbracoproducthelper.md @@ -0,0 +1,24 @@ +--- +title: UmbracoProductHelper +description: API reference for UmbracoProductHelper in Umbraco Commerce +--- +## UmbracoProductHelper + +```csharp +public class UmbracoProductHelper +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Helpers](README.md) + +### Constructors + +#### UmbracoProductHelper + +```csharp +public UmbracoProductHelper(IProductService productService, IUmbracoStoreService storeService, + IUmbracoContextFactory umbracoContextFactory) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-mail/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-mail/README.md new file mode 100644 index 00000000000..ebf134f645a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-mail/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Cms.Mail +description: API reference for Umbraco.Commerce.Cms.Mail in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Mail namespace + +| Public Type | Description | +| --- | --- | +| class [UmbracoEmailSender](umbracoemailsender.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-mail/umbracoemailsender.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-mail/umbracoemailsender.md new file mode 100644 index 00000000000..a38ba2edcf7 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-mail/umbracoemailsender.md @@ -0,0 +1,36 @@ +--- +title: UmbracoEmailSender +description: API reference for UmbracoEmailSender in Umbraco Commerce +--- +## UmbracoEmailSender + +```csharp +public class UmbracoEmailSender : IEmailSender +``` + +**Inheritance** + +* interface [IEmailSender](../../umbraco-commerce-core/umbraco-commerce-core-mail/iemailsender.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Mail](README.md) + +### Constructors + +#### UmbracoEmailSender + +```csharp +public UmbracoEmailSender(IEmailSender umbracoEmailSender) +``` + + +### Methods + +#### SendAsync + +```csharp +public Task SendAsync(MailMessage message) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-models/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-models/README.md new file mode 100644 index 00000000000..3085e7a428e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-models/README.md @@ -0,0 +1,18 @@ +--- +title: Umbraco.Commerce.Cms.Models +description: API reference for Umbraco.Commerce.Cms.Models in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Models namespace + +| Public Type | Description | +| --- | --- | +| class [PricePropertyValue](pricepropertyvalue.md) | | +| class [ProductVariantCollection](productvariantcollection.md) | | +| class [ProductVariantConfig](productvariantconfig.md) | | +| class [ProductVariantItem](productvariantitem.md) | | +| class [ProductVariantPublishedElement](productvariantpublishedelement.md) | | +| abstract class [PublishedElementWithParent<T>](publishedelementwithparent-1.md) | | +| abstract class [PublishedElementWrapped<T>](publishedelementwrapped-1.md) | | +| class [VariantEditorLayoutItem](varianteditorlayoutitem.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-models/pricepropertyvalue.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-models/pricepropertyvalue.md new file mode 100644 index 00000000000..c7db94efd77 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-models/pricepropertyvalue.md @@ -0,0 +1,59 @@ +--- +title: PricePropertyValue +description: API reference for PricePropertyValue in Umbraco Commerce +--- +## PricePropertyValue + +```csharp +public class PricePropertyValue : IEnumerable +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Models](README.md) + +### Indexers + +#### PricePropertyValue + +```csharp +public ProductPrice this[Guid currencyId] { get; } +``` + + +### Methods + +#### GetEnumerator + +```csharp +public IEnumerator GetEnumerator() +``` + + +--- + +#### GetPriceFor + +```csharp +public ProductPrice GetPriceFor(Guid currencyId) +``` + + +--- + +#### HasPriceFor + +```csharp +public bool HasPriceFor(Guid currencyId) +``` + + +--- + +#### TryGetPriceFor + +```csharp +public bool TryGetPriceFor(Guid currencyId, out ProductPrice value) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-models/productvariantcollection.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-models/productvariantcollection.md new file mode 100644 index 00000000000..64aff00c8fe --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-models/productvariantcollection.md @@ -0,0 +1,107 @@ +--- +title: ProductVariantCollection +description: API reference for ProductVariantCollection in Umbraco Commerce +--- +## ProductVariantCollection + +```csharp +public class ProductVariantCollection : ReadOnlyCollection +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Models](README.md) + +### Constructors + +#### ProductVariantCollection + +Initializes a new instance of the [`ProductVariantCollection`](productvariantcollection.md) class. + +```csharp +public ProductVariantCollection(Guid storeId, IList list) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The StoreId the product variants belogn to | +| list | The list to wrap. | + + +### Properties + +#### StoreId + +Gets the StoreId the product variants belong to + +```csharp +public Guid StoreId { get; } +``` + + +### Indexers + +#### ProductVariantCollection (1 of 2) + +Gets the [`ProductVariantItem`](productvariantitem.md) with the specified content key. + +```csharp +public ProductVariantItem this[Guid contentKey] { get; } +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| contentKey | The content key. | + +**Returns** + +The [`ProductVariantItem`](productvariantitem.md) with the specified content key. + +**Value** + +The [`ProductVariantItem`](productvariantitem.md). + +--- + +#### ProductVariantCollection (2 of 2) + +Gets the [`ProductVariantItem`](productvariantitem.md) with the specified content UDI. + +```csharp +public ProductVariantItem this[Udi contentUdi] { get; } +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| contentUdi | The content UDI. | + +**Returns** + +The [`ProductVariantItem`](productvariantitem.md) with the specified content UDI. + +**Value** + +The [`ProductVariantItem`](productvariantitem.md). + + +### Methods + +#### Empty + +Gets an empty [`ProductVariantCollection`](productvariantcollection.md). + +```csharp +public static ProductVariantCollection Empty(Guid storeId) +``` + +**Value** + +The empty [`ProductVariantCollection`](productvariantcollection.md). + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-models/productvariantconfig.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-models/productvariantconfig.md new file mode 100644 index 00000000000..b62e22bbe7c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-models/productvariantconfig.md @@ -0,0 +1,55 @@ +--- +title: ProductVariantConfig +description: API reference for ProductVariantConfig in Umbraco Commerce +--- +## ProductVariantConfig + +```csharp +public class ProductVariantConfig +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Models](README.md) + +### Constructors + +#### ProductVariantConfig + +The default constructor. + +```csharp +public ProductVariantConfig() +``` + + +### Properties + +#### Attributes + +Gets the attributes. + +```csharp +public IDictionary Attributes { get; set; } +``` + +**Value** + +The attributes. + + +--- + +#### IsDefault + +Gets a flag indicating whether the given variant is the default. + +```csharp +public bool IsDefault { get; set; } +``` + +**Value** + +True if the variant is the default variant, otherwise false. + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-models/productvariantitem.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-models/productvariantitem.md new file mode 100644 index 00000000000..64b04bd7014 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-models/productvariantitem.md @@ -0,0 +1,84 @@ +--- +title: ProductVariantItem +description: API reference for ProductVariantItem in Umbraco Commerce +--- +## ProductVariantItem + +```csharp +public class ProductVariantItem : IBlockReference +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Models](README.md) + +### Constructors + +#### ProductVariantItem + +Initializes a new instance of the [`ProductVariantItem`](productvariantitem.md) class. + +```csharp +public ProductVariantItem(Udi contentUdi, IPublishedElement content, ProductVariantConfig config) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| contentUdi | The content UDI. | +| content | The content. | +| config | The config. | + +**Exceptions** + +| Exception | Condition | +| --- | --- | +| ArgumentNullException | contentUdi or content | + + +### Properties + +#### Config + +Gets the config. + +```csharp +public ProductVariantConfig Config { get; } +``` + +**Value** + +The config. + + +--- + +#### Content + +Gets the content. + +```csharp +public IPublishedElement Content { get; } +``` + +**Value** + +The content. + + +--- + +#### ContentUdi + +Gets the content UDI. + +```csharp +public Udi ContentUdi { get; } +``` + +**Value** + +The content UDI. + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-models/productvariantpublishedelement.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-models/productvariantpublishedelement.md new file mode 100644 index 00000000000..9c5169fdaf1 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-models/productvariantpublishedelement.md @@ -0,0 +1,19 @@ +--- +title: ProductVariantPublishedElement +description: API reference for ProductVariantPublishedElement in Umbraco Commerce +--- +## ProductVariantPublishedElement + +```csharp +public class ProductVariantPublishedElement : + PublishedElementWithParent +``` + +**Inheritance** + +* Class [PublishedElementWithParent<T>](publishedelementwithparent-1.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Models](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-models/publishedelementwithparent-1.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-models/publishedelementwithparent-1.md new file mode 100644 index 00000000000..3bff03cd75d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-models/publishedelementwithparent-1.md @@ -0,0 +1,28 @@ +--- +title: PublishedElementWithParent +description: API reference for PublishedElementWithParent in Umbraco Commerce +--- +## PublishedElementWithParent<T> + +```csharp +public abstract class PublishedElementWithParent : PublishedElementWrapped + where T : PublishedElementWithParent +``` + +**Inheritance** + +* Class [PublishedElementWrapped<T>](publishedelementwrapped-1.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Models](README.md) + +### Properties + +#### ParentKey + +```csharp +public Guid ParentKey { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-models/publishedelementwrapped-1.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-models/publishedelementwrapped-1.md new file mode 100644 index 00000000000..dd3870ac094 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-models/publishedelementwrapped-1.md @@ -0,0 +1,15 @@ +--- +title: PublishedElementWrapped +description: API reference for PublishedElementWrapped in Umbraco Commerce +--- +## PublishedElementWrapped<T> + +```csharp +public abstract class PublishedElementWrapped : PublishedElementWrapped + where T : PublishedElementWrapped +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Models](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-models/varianteditorlayoutitem.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-models/varianteditorlayoutitem.md new file mode 100644 index 00000000000..25f7bb42fe6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-models/varianteditorlayoutitem.md @@ -0,0 +1,43 @@ +--- +title: VariantEditorLayoutItem +description: API reference for VariantEditorLayoutItem in Umbraco Commerce +--- +## VariantEditorLayoutItem + +```csharp +public class VariantEditorLayoutItem +``` + +**Namespace** +* [Umbraco.Commerce.Cms.Models](README.md) + +### Constructors + +#### VariantEditorLayoutItem + +The default constructor. + +```csharp +public VariantEditorLayoutItem() +``` + + +### Properties + +#### Config + +```csharp +public ProductVariantConfig Config { get; set; } +``` + + +--- + +#### ContentUdi + +```csharp +public Udi ContentUdi { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-propertyeditors-stock/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-propertyeditors-stock/README.md new file mode 100644 index 00000000000..81722860d36 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-propertyeditors-stock/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Cms.PropertyEditors.Stock +description: API reference for Umbraco.Commerce.Cms.PropertyEditors.Stock in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.PropertyEditors.Stock namespace + +| Public Type | Description | +| --- | --- | +| class [UmbracoStockSynchronizer](umbracostocksynchronizer.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-propertyeditors-stock/umbracostocksynchronizer.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-propertyeditors-stock/umbracostocksynchronizer.md new file mode 100644 index 00000000000..35677810c9e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-propertyeditors-stock/umbracostocksynchronizer.md @@ -0,0 +1,40 @@ +--- +title: UmbracoStockSynchronizer +description: API reference for UmbracoStockSynchronizer in Umbraco Commerce +--- +## UmbracoStockSynchronizer + +```csharp +public class UmbracoStockSynchronizer +``` + +**Namespace** +* [Umbraco.Commerce.Cms.PropertyEditors.Stock](README.md) + +### Constructors + +#### UmbracoStockSynchronizer + +```csharp +public UmbracoStockSynchronizer(IProductService productService, IUmbracoStoreService storeService, + IDataTypeService dataTypeService, IContentTypeService contentTypeService) +``` + + +### Enumerations + +#### UmbracoStockSynchronizer.SynchronizeAttempt + +```csharp +public enum SynchronizeAttempt +``` + +**Values** + +| Name | Value | Description | +| --- | --- | --- | +| Attempt1 | `0` | | +| Attempt2 | `1` | | + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-propertyeditors-variantseditor/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-propertyeditors-variantseditor/README.md new file mode 100644 index 00000000000..a405d301913 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-propertyeditors-variantseditor/README.md @@ -0,0 +1,14 @@ +--- +title: Umbraco.Commerce.Cms.PropertyEditors.VariantsEditor +description: API reference for Umbraco.Commerce.Cms.PropertyEditors.VariantsEditor in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.PropertyEditors.VariantsEditor namespace + +| Public Type | Description | +| --- | --- | +| class [VariantsEditorConfiguration](variantseditorconfiguration.md) | | +| class [VariantsEditorDataConverter](variantseditordataconverter.md) | | +| class [VariantsEditorPropertyEditor](variantseditorpropertyeditor.md) | | +| class [VariantsEditorSynchronizer](variantseditorsynchronizer.md) | Component to watch for content changes to nodes with a variants editor on them and stash a storeId property in the data structure. This is predominantly for Umbraco Commerce Deploy which needs to lookup Product Attribute dependencies but needs as storeId to do it however the Umbraco Deploy value connectors don't have any other context other than the property value and it's property type. This may also be true for uSycn too. We could also look to potetially use this in the value converter for the variants editor as we now have this also being store aware. | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-propertyeditors-variantseditor/variantseditorconfiguration.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-propertyeditors-variantseditor/variantseditorconfiguration.md new file mode 100644 index 00000000000..a62ca1d0a92 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-propertyeditors-variantseditor/variantseditorconfiguration.md @@ -0,0 +1,34 @@ +--- +title: VariantsEditorConfiguration +description: API reference for VariantsEditorConfiguration in Umbraco Commerce +--- +## VariantsEditorConfiguration + +```csharp +public class VariantsEditorConfiguration +``` + +**Namespace** +* [Umbraco.Commerce.Cms.PropertyEditors.VariantsEditor](README.md) + +### Constructors + +#### VariantsEditorConfiguration + +The default constructor. + +```csharp +public VariantsEditorConfiguration() +``` + + +### Properties + +#### VariantElementTypeKey + +```csharp +public Guid? VariantElementTypeKey { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-propertyeditors-variantseditor/variantseditordataconverter.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-propertyeditors-variantseditor/variantseditordataconverter.md new file mode 100644 index 00000000000..72d8f1a0db5 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-propertyeditors-variantseditor/variantseditordataconverter.md @@ -0,0 +1,25 @@ +--- +title: VariantsEditorDataConverter +description: API reference for VariantsEditorDataConverter in Umbraco Commerce +--- +## VariantsEditorDataConverter + +```csharp +public class VariantsEditorDataConverter : BlockEditorDataConverter +``` + +**Namespace** +* [Umbraco.Commerce.Cms.PropertyEditors.VariantsEditor](README.md) + +### Constructors + +#### VariantsEditorDataConverter + +The default constructor. + +```csharp +public VariantsEditorDataConverter() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-propertyeditors-variantseditor/variantseditorpropertyeditor.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-propertyeditors-variantseditor/variantseditorpropertyeditor.md new file mode 100644 index 00000000000..ed6ce9e9b91 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-propertyeditors-variantseditor/variantseditorpropertyeditor.md @@ -0,0 +1,25 @@ +--- +title: VariantsEditorPropertyEditor +description: API reference for VariantsEditorPropertyEditor in Umbraco Commerce +--- +## VariantsEditorPropertyEditor + +```csharp +public class VariantsEditorPropertyEditor : BlockEditorPropertyEditor +``` + +**Namespace** +* [Umbraco.Commerce.Cms.PropertyEditors.VariantsEditor](README.md) + +### Constructors + +#### VariantsEditorPropertyEditor + +```csharp +public VariantsEditorPropertyEditor(IDataValueEditorFactory dataValueEditorFactory, + PropertyEditorCollection propertyEditors, IIOHelper ioHelper, + IEditorConfigurationParser configParser) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-propertyeditors-variantseditor/variantseditorsynchronizer.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-propertyeditors-variantseditor/variantseditorsynchronizer.md new file mode 100644 index 00000000000..293e1ae5596 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-propertyeditors-variantseditor/variantseditorsynchronizer.md @@ -0,0 +1,25 @@ +--- +title: VariantsEditorSynchronizer +description: API reference for VariantsEditorSynchronizer in Umbraco Commerce +--- +## VariantsEditorSynchronizer + +Component to watch for content changes to nodes with a variants editor on them and stash a storeId property in the data structure. This is predominantly for Umbraco Commerce Deploy which needs to lookup Product Attribute dependencies but needs as storeId to do it however the Umbraco Deploy value connectors don't have any other context other than the property value and it's property type. This may also be true for uSycn too. We could also look to potetially use this in the value converter for the variants editor as we now have this also being store aware. + +```csharp +public class VariantsEditorSynchronizer +``` + +**Namespace** +* [Umbraco.Commerce.Cms.PropertyEditors.VariantsEditor](README.md) + +### Constructors + +#### VariantsEditorSynchronizer + +```csharp +public VariantsEditorSynchronizer(IUmbracoStoreService storeService) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-providers/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-providers/README.md new file mode 100644 index 00000000000..fe5cf6f50ad --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-providers/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Cms.Providers +description: API reference for Umbraco.Commerce.Cms.Providers in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Providers namespace + +| Public Type | Description | +| --- | --- | +| class [UmbracoMemberCustomerInfoProvider](umbracomembercustomerinfoprovider.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-providers/umbracomembercustomerinfoprovider.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-providers/umbracomembercustomerinfoprovider.md new file mode 100644 index 00000000000..a0e6d81ddbb --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-providers/umbracomembercustomerinfoprovider.md @@ -0,0 +1,45 @@ +--- +title: UmbracoMemberCustomerInfoProvider +description: API reference for UmbracoMemberCustomerInfoProvider in Umbraco Commerce +--- +## UmbracoMemberCustomerInfoProvider + +```csharp +public class UmbracoMemberCustomerInfoProvider : IRegisteredCustomerInfoProvider +``` + +**Inheritance** + +* interface [IRegisteredCustomerInfoProvider](../../umbraco-commerce-core/umbraco-commerce-core-providers/iregisteredcustomerinfoprovider.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Providers](README.md) + +### Constructors + +#### UmbracoMemberCustomerInfoProvider + +```csharp +public UmbracoMemberCustomerInfoProvider(IMemberService memberService) +``` + + +### Methods + +#### GetRegisteredCustomerInfo + +```csharp +public RegisteredCustomerInfo GetRegisteredCustomerInfo(string customerReference) +``` + + +--- + +#### HasRegisteredCustomerInfo + +```csharp +public bool HasRegisteredCustomerInfo(string customerReference) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-resolvers/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-resolvers/README.md new file mode 100644 index 00000000000..baad425b253 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-resolvers/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Cms.Resolvers +description: API reference for Umbraco.Commerce.Cms.Resolvers in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Resolvers namespace + +| Public Type | Description | +| --- | --- | +| class [UmbracoApiControllerPaymentProviderUriResolver](umbracoapicontrollerpaymentprovideruriresolver.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-resolvers/umbracoapicontrollerpaymentprovideruriresolver.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-resolvers/umbracoapicontrollerpaymentprovideruriresolver.md new file mode 100644 index 00000000000..9801e3b9c5c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-resolvers/umbracoapicontrollerpaymentprovideruriresolver.md @@ -0,0 +1,104 @@ +--- +title: UmbracoApiControllerPaymentProviderUriResolver +description: API reference for UmbracoApiControllerPaymentProviderUriResolver in Umbraco Commerce +--- +## UmbracoApiControllerPaymentProviderUriResolver + +```csharp +public class UmbracoApiControllerPaymentProviderUriResolver : IPaymentProviderUriResolver +``` + +**Inheritance** + +* interface [IPaymentProviderUriResolver](../../umbraco-commerce-core/umbraco-commerce-core-paymentproviders/ipaymentprovideruriresolver.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Resolvers](README.md) + +### Constructors + +#### UmbracoApiControllerPaymentProviderUriResolver + +```csharp +public UmbracoApiControllerPaymentProviderUriResolver(IUmbracoCommerceSettings settings, + IHttpContextAccessor httpContextAccessor) +``` + + +### Methods + +#### GetCallbackUrl (1 of 2) + +```csharp +public string GetCallbackUrl(string paymentProviderAlias, OrderReference orderReference, + IHashProvider hashProvider) +``` + +--- + +#### GetCallbackUrl (2 of 2) + +```csharp +public string GetCallbackUrl(string paymentProviderAlias, OrderReference orderReference, + IHashProvider hashProvider, out string hash) +``` + + +--- + +#### GetCancelUrl (1 of 2) + +```csharp +public string GetCancelUrl(string paymentProviderAlias, OrderReference orderReference, + IHashProvider hashProvider) +``` + +--- + +#### GetCancelUrl (2 of 2) + +```csharp +public string GetCancelUrl(string paymentProviderAlias, OrderReference orderReference, + IHashProvider hashProvider, out string hash) +``` + + +--- + +#### GetContinueUrl (1 of 2) + +```csharp +public string GetContinueUrl(string paymentProviderAlias, OrderReference orderReference, + IHashProvider hashProvider) +``` + +--- + +#### GetContinueUrl (2 of 2) + +```csharp +public string GetContinueUrl(string paymentProviderAlias, OrderReference orderReference, + IHashProvider hashProvider, out string hash) +``` + + +--- + +#### GetErrorUrl (1 of 2) + +```csharp +public string GetErrorUrl(string paymentProviderAlias, OrderReference orderReference, + IHashProvider hashProvider) +``` + +--- + +#### GetErrorUrl (2 of 2) + +```csharp +public string GetErrorUrl(string paymentProviderAlias, OrderReference orderReference, + IHashProvider hashProvider, out string hash) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-security/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-security/README.md new file mode 100644 index 00000000000..35d22008574 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-security/README.md @@ -0,0 +1,12 @@ +--- +title: Umbraco.Commerce.Cms.Security +description: API reference for Umbraco.Commerce.Cms.Security in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Security namespace + +| Public Type | Description | +| --- | --- | +| class [UmbracoMembershipHelper](umbracomembershiphelper.md) | | +| class [UmbracoUserHelper](umbracouserhelper.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-security/umbracomembershiphelper.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-security/umbracomembershiphelper.md new file mode 100644 index 00000000000..4509c163daa --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-security/umbracomembershiphelper.md @@ -0,0 +1,38 @@ +--- +title: UmbracoMembershipHelper +description: API reference for UmbracoMembershipHelper in Umbraco Commerce +--- +## UmbracoMembershipHelper + +```csharp +public class UmbracoMembershipHelper : IMembershipHelper +``` + +**Inheritance** + +* interface [IMembershipHelper](../../umbraco-commerce-core/umbraco-commerce-core-security/imembershiphelper.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Security](README.md) + +### Constructors + +#### UmbracoMembershipHelper + +The default constructor. + +```csharp +public UmbracoMembershipHelper() +``` + + +### Methods + +#### GetCurrentMemberId + +```csharp +public string GetCurrentMemberId() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-security/umbracouserhelper.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-security/umbracouserhelper.md new file mode 100644 index 00000000000..9721bbaecba --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-security/umbracouserhelper.md @@ -0,0 +1,46 @@ +--- +title: UmbracoUserHelper +description: API reference for UmbracoUserHelper in Umbraco Commerce +--- +## UmbracoUserHelper + +```csharp +public class UmbracoUserHelper : IUserHelper +``` + +**Inheritance** + +* interface [IUserHelper](../../umbraco-commerce-core/umbraco-commerce-core-security/iuserhelper.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Security](README.md) + +### Constructors + +#### UmbracoUserHelper + +```csharp +public UmbracoUserHelper(IBackOfficeSecurityAccessor backOfficeSecurityAccessor, + IUserService userService) +``` + + +### Methods + +#### GetCurrentUserId + +```csharp +public virtual int GetCurrentUserId() +``` + + +--- + +#### GetUserName + +```csharp +public virtual string GetUserName(int id) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-services/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-services/README.md new file mode 100644 index 00000000000..a85661dc3a7 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-services/README.md @@ -0,0 +1,14 @@ +--- +title: Umbraco.Commerce.Cms.Services +description: API reference for Umbraco.Commerce.Cms.Services in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.Services namespace + +| Public Type | Description | +| --- | --- | +| interface [IUmbracoStoreService](iumbracostoreservice.md) | | +| class [UmbracoDictionaryTranslationService](umbracodictionarytranslationservice.md) | | +| class [UmbracoStockService](umbracostockservice.md) | | +| class [UmbracoStoreService](umbracostoreservice.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-services/iumbracostoreservice.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-services/iumbracostoreservice.md new file mode 100644 index 00000000000..46c4c20505c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-services/iumbracostoreservice.md @@ -0,0 +1,28 @@ +--- +title: IUmbracoStoreService +description: API reference for IUmbracoStoreService in Umbraco Commerce +--- +## IUmbracoStoreService + +```csharp +public interface IUmbracoStoreService : ICachedEntityService, IStoreService +``` + +**Inheritance** + +* interface [ICachedEntityService<!0>](../../umbraco-commerce-core/umbraco-commerce-core-services/icachedentityservice-1.md) +* interface [IStoreService](../../umbraco-commerce-core/umbraco-commerce-core-services/istoreservice.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Services](README.md) + +### Methods + +#### FindStoreByNodeId + +```csharp +public StoreReadOnly FindStoreByNodeId(int nodeId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-services/umbracodictionarytranslationservice.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-services/umbracodictionarytranslationservice.md new file mode 100644 index 00000000000..702f361c8b2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-services/umbracodictionarytranslationservice.md @@ -0,0 +1,62 @@ +--- +title: UmbracoDictionaryTranslationService +description: API reference for UmbracoDictionaryTranslationService in Umbraco Commerce +--- +## UmbracoDictionaryTranslationService + +```csharp +public class UmbracoDictionaryTranslationService : ITranslationService +``` + +**Inheritance** + +* interface [ITranslationService](../../umbraco-commerce-core/umbraco-commerce-core-services/itranslationservice.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Services](README.md) + +### Constructors + +#### UmbracoDictionaryTranslationService + +```csharp +public UmbracoDictionaryTranslationService(ILocalizationService localizationService) +``` + + +### Methods + +#### TranslateValue (1 of 2) + +```csharp +public object TranslateValue(object value, string languageIsoCode) +``` + +--- + +#### TranslateValue (2 of 2) + +```csharp +public object TranslateValue(object value, string languageIsoCode, out string usedLanguageIsoCode) +``` + + +--- + +#### TranslateValues (1 of 2) + +```csharp +public IEnumerable TranslateValues(IEnumerable values, string languageIsoCode) +``` + +--- + +#### TranslateValues (2 of 2) + +```csharp +public IDictionary TranslateValues( + IEnumerable> values, string languageIsoCode) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-services/umbracostockservice.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-services/umbracostockservice.md new file mode 100644 index 00000000000..7d2fc16cab8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-services/umbracostockservice.md @@ -0,0 +1,70 @@ +--- +title: UmbracoStockService +description: API reference for UmbracoStockService in Umbraco Commerce +--- +## UmbracoStockService + +```csharp +public class UmbracoStockService : UmbracoCommerceStockServiceBase +``` + +**Inheritance** + +* Class [UmbracoCommerceStockServiceBase<!0>](../../umbraco-commerce-core/umbraco-commerce-core-services/umbracocommercestockservicebase-1.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Services](README.md) + +### Constructors + +#### UmbracoStockService + +```csharp +public UmbracoStockService(IRepositoryFactory repositoryFactory, IUnitOfWorkProvider uowProvider, + ILogger logger, ICacheAccessor cacheAccessor, + IProductAdapter productAdapter, IUmbracoStoreService storeService, + Lazy dataTypeService, Lazy contentTypeService) +``` + + +### Methods + +#### GetStock + +```csharp +public override decimal? GetStock(Guid storeId, string productReference, + string productVariantReference) +``` + + +--- + +#### IncreaseStock + +```csharp +public override void IncreaseStock(Guid storeId, string productReference, + string productVariantReference, decimal increaseBy) +``` + + +--- + +#### ReduceStock + +```csharp +public override void ReduceStock(Guid storeId, string productReference, + string productVariantReference, decimal reduceBy) +``` + + +--- + +#### SetStock + +```csharp +public override void SetStock(Guid storeId, string productReference, + string productVariantReference, decimal value) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-services/umbracostoreservice.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-services/umbracostoreservice.md new file mode 100644 index 00000000000..1f3b3cf1675 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-services/umbracostoreservice.md @@ -0,0 +1,39 @@ +--- +title: UmbracoStoreService +description: API reference for UmbracoStoreService in Umbraco Commerce +--- +## UmbracoStoreService + +```csharp +public class UmbracoStoreService : StoreService, IUmbracoStoreService +``` + +**Inheritance** + +* Class [StoreService](../../umbraco-commerce-core/umbraco-commerce-core-services/storeservice.md) +* interface [IUmbracoStoreService](iumbracostoreservice.md) + +**Namespace** +* [Umbraco.Commerce.Cms.Services](README.md) + +### Constructors + +#### UmbracoStoreService + +```csharp +public UmbracoStoreService(IRepositoryFactory repositoryFactory, IUnitOfWorkProvider uowProvider, + ILogger logger, ICacheAccessor cacheAccessor, + UmbracoNodeStoreFinderCollection storeFinderCollection) +``` + + +### Methods + +#### FindStoreByNodeId + +```csharp +public StoreReadOnly FindStoreByNodeId(int nodeId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-valueconverters/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-valueconverters/README.md new file mode 100644 index 00000000000..8a05845ab15 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-valueconverters/README.md @@ -0,0 +1,15 @@ +--- +title: Umbraco.Commerce.Cms.ValueConverters +description: API reference for Umbraco.Commerce.Cms.ValueConverters in Umbraco Commerce +--- +## Umbraco.Commerce.Cms.ValueConverters namespace + +| Public Type | Description | +| --- | --- | +| class [PricePropertyValueConverter](pricepropertyvalueconverter.md) | | +| class [StockPropertyValueConverter](stockpropertyvalueconverter.md) | | +| class [StoreEntityPickerValueConverter](storeentitypickervalueconverter.md) | | +| class [StorePickerValueConverter](storepickervalueconverter.md) | | +| class [VariantsEditorValueConverter](variantseditorvalueconverter.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-valueconverters/pricepropertyvalueconverter.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-valueconverters/pricepropertyvalueconverter.md new file mode 100644 index 00000000000..9c354b195f5 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-valueconverters/pricepropertyvalueconverter.md @@ -0,0 +1,72 @@ +--- +title: PricePropertyValueConverter +description: API reference for PricePropertyValueConverter in Umbraco Commerce +--- +## PricePropertyValueConverter + +```csharp +public class PricePropertyValueConverter : PropertyValueConverterBase +``` + +**Namespace** +* [Umbraco.Commerce.Cms.ValueConverters](README.md) + +### Constructors + +#### PricePropertyValueConverter + +The default constructor. + +```csharp +public PricePropertyValueConverter() +``` + + +### Methods + +#### ConvertIntermediateToObject + +```csharp +public override object ConvertIntermediateToObject(IPublishedElement owner, + IPublishedPropertyType propertyType, PropertyCacheLevel cacheLevel, object source, bool preview) +``` + + +--- + +#### ConvertSourceToIntermediate + +```csharp +public override object ConvertSourceToIntermediate(IPublishedElement owner, + IPublishedPropertyType propertyType, object source, bool preview) +``` + + +--- + +#### GetPropertyCacheLevel + +```csharp +public override PropertyCacheLevel GetPropertyCacheLevel(IPublishedPropertyType propertyType) +``` + + +--- + +#### GetPropertyValueType + +```csharp +public override Type GetPropertyValueType(IPublishedPropertyType propertyType) +``` + + +--- + +#### IsConverter + +```csharp +public override bool IsConverter(IPublishedPropertyType propertyType) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-valueconverters/stockpropertyvalueconverter.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-valueconverters/stockpropertyvalueconverter.md new file mode 100644 index 00000000000..c77b00fde29 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-valueconverters/stockpropertyvalueconverter.md @@ -0,0 +1,71 @@ +--- +title: StockPropertyValueConverter +description: API reference for StockPropertyValueConverter in Umbraco Commerce +--- +## StockPropertyValueConverter + +```csharp +public class StockPropertyValueConverter : PropertyValueConverterBase +``` + +**Namespace** +* [Umbraco.Commerce.Cms.ValueConverters](README.md) + +### Constructors + +#### StockPropertyValueConverter + +```csharp +public StockPropertyValueConverter(Lazy productService, + Lazy storeService, Lazy umbracoContextFactory) +``` + + +### Methods + +#### ConvertIntermediateToObject + +```csharp +public override object ConvertIntermediateToObject(IPublishedElement owner, + IPublishedPropertyType propertyType, PropertyCacheLevel cacheLevel, object source, bool preview) +``` + + +--- + +#### ConvertSourceToIntermediate + +```csharp +public override object ConvertSourceToIntermediate(IPublishedElement owner, + IPublishedPropertyType propertyType, object source, bool preview) +``` + + +--- + +#### GetPropertyCacheLevel + +```csharp +public override PropertyCacheLevel GetPropertyCacheLevel(IPublishedPropertyType propertyType) +``` + + +--- + +#### GetPropertyValueType + +```csharp +public override Type GetPropertyValueType(IPublishedPropertyType propertyType) +``` + + +--- + +#### IsConverter + +```csharp +public override bool IsConverter(IPublishedPropertyType propertyType) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-valueconverters/storeentitypickervalueconverter.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-valueconverters/storeentitypickervalueconverter.md new file mode 100644 index 00000000000..e9bf92febad --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-valueconverters/storeentitypickervalueconverter.md @@ -0,0 +1,70 @@ +--- +title: StoreEntityPickerValueConverter +description: API reference for StoreEntityPickerValueConverter in Umbraco Commerce +--- +## StoreEntityPickerValueConverter + +```csharp +public class StoreEntityPickerValueConverter : PropertyValueConverterBase +``` + +**Namespace** +* [Umbraco.Commerce.Cms.ValueConverters](README.md) + +### Constructors + +#### StoreEntityPickerValueConverter + +```csharp +public StoreEntityPickerValueConverter(Lazy api) +``` + + +### Methods + +#### ConvertIntermediateToObject + +```csharp +public override object ConvertIntermediateToObject(IPublishedElement owner, + IPublishedPropertyType propertyType, PropertyCacheLevel cacheLevel, object source, bool preview) +``` + + +--- + +#### ConvertSourceToIntermediate + +```csharp +public override object ConvertSourceToIntermediate(IPublishedElement owner, + IPublishedPropertyType propertyType, object source, bool preview) +``` + + +--- + +#### GetPropertyCacheLevel + +```csharp +public override PropertyCacheLevel GetPropertyCacheLevel(IPublishedPropertyType propertyType) +``` + + +--- + +#### GetPropertyValueType + +```csharp +public override Type GetPropertyValueType(IPublishedPropertyType propertyType) +``` + + +--- + +#### IsConverter + +```csharp +public override bool IsConverter(IPublishedPropertyType propertyType) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-valueconverters/storepickervalueconverter.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-valueconverters/storepickervalueconverter.md new file mode 100644 index 00000000000..ff38b35552e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-valueconverters/storepickervalueconverter.md @@ -0,0 +1,70 @@ +--- +title: StorePickerValueConverter +description: API reference for StorePickerValueConverter in Umbraco Commerce +--- +## StorePickerValueConverter + +```csharp +public class StorePickerValueConverter : PropertyValueConverterBase +``` + +**Namespace** +* [Umbraco.Commerce.Cms.ValueConverters](README.md) + +### Constructors + +#### StorePickerValueConverter + +```csharp +public StorePickerValueConverter(Lazy storeService) +``` + + +### Methods + +#### ConvertIntermediateToObject + +```csharp +public override object ConvertIntermediateToObject(IPublishedElement owner, + IPublishedPropertyType propertyType, PropertyCacheLevel cacheLevel, object source, bool preview) +``` + + +--- + +#### ConvertSourceToIntermediate + +```csharp +public override object ConvertSourceToIntermediate(IPublishedElement owner, + IPublishedPropertyType propertyType, object source, bool preview) +``` + + +--- + +#### GetPropertyCacheLevel + +```csharp +public override PropertyCacheLevel GetPropertyCacheLevel(IPublishedPropertyType propertyType) +``` + + +--- + +#### GetPropertyValueType + +```csharp +public override Type GetPropertyValueType(IPublishedPropertyType propertyType) +``` + + +--- + +#### IsConverter + +```csharp +public override bool IsConverter(IPublishedPropertyType propertyType) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-valueconverters/variantseditorvalueconverter.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-valueconverters/variantseditorvalueconverter.md new file mode 100644 index 00000000000..c1135d32943 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms-valueconverters/variantseditorvalueconverter.md @@ -0,0 +1,74 @@ +--- +title: VariantsEditorValueConverter +description: API reference for VariantsEditorValueConverter in Umbraco Commerce +--- +## VariantsEditorValueConverter + +```csharp +public class VariantsEditorValueConverter : PropertyValueConverterBase +``` + +**Namespace** +* [Umbraco.Commerce.Cms.ValueConverters](README.md) + +### Constructors + +#### VariantsEditorValueConverter + +```csharp +public VariantsEditorValueConverter(IVariationContextAccessor variationContextAccessor, + IProfilingLogger proflog, BlockEditorConverter blockConverter, + Lazy publishedContentHelperAccessor, + IPublishedValueFallback publishedValueFallback) +``` + + +### Methods + +#### ConvertIntermediateToObject + +```csharp +public override object ConvertIntermediateToObject(IPublishedElement owner, + IPublishedPropertyType propertyType, PropertyCacheLevel referenceCacheLevel, object source, + bool preview) +``` + + +--- + +#### ConvertSourceToIntermediate + +```csharp +public override object ConvertSourceToIntermediate(IPublishedElement owner, + IPublishedPropertyType propertyType, object source, bool preview) +``` + + +--- + +#### GetPropertyCacheLevel + +```csharp +public override PropertyCacheLevel GetPropertyCacheLevel(IPublishedPropertyType propertyType) +``` + + +--- + +#### GetPropertyValueType + +```csharp +public override Type GetPropertyValueType(IPublishedPropertyType propertyType) +``` + + +--- + +#### IsConverter + +```csharp +public override bool IsConverter(IPublishedPropertyType propertyType) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms/README.md new file mode 100644 index 00000000000..83be94169cd --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Cms +description: API reference for Umbraco.Commerce.Cms in Umbraco Commerce +--- +## Umbraco.Commerce.Cms namespace + +| Public Type | Description | +| --- | --- | +| static class [Constants](constants.md) | Umbraco Commerce constant variables | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms/constants.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms/constants.md new file mode 100644 index 00000000000..6a96c76b45a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-cms/constants.md @@ -0,0 +1,800 @@ +--- +title: Constants +description: API reference for Constants in Umbraco Commerce +--- +## Constants + +Umbraco Commerce constant variables + +```csharp +public static class Constants +``` + +**Namespace** +* [Umbraco.Commerce.Cms](README.md) + +### Classes + +#### Constants.DistributedCache + +Defines the alias identifiers for Umbraco Commerce's distributed cache control. + +```csharp +public static class DistributedCache +``` + +##### Fields + +#### CampaignCacheRefresherGuid + +```csharp +public static readonly Guid CampaignCacheRefresherGuid; +``` + + +--- + +#### CampaignCacheRefresherId + +```csharp +public const string CampaignCacheRefresherId; +``` + + +--- + +#### CountryCacheRefresherGuid + +```csharp +public static readonly Guid CountryCacheRefresherGuid; +``` + + +--- + +#### CountryCacheRefresherId + +```csharp +public const string CountryCacheRefresherId; +``` + + +--- + +#### CurrencyCacheRefresherGuid + +```csharp +public static readonly Guid CurrencyCacheRefresherGuid; +``` + + +--- + +#### CurrencyCacheRefresherId + +```csharp +public const string CurrencyCacheRefresherId; +``` + + +--- + +#### DiscountCacheRefresherGuid + +```csharp +public static readonly Guid DiscountCacheRefresherGuid; +``` + + +--- + +#### DiscountCacheRefresherId + +```csharp +public const string DiscountCacheRefresherId; +``` + + +--- + +#### EmailTemplateCacheRefresherGuid + +```csharp +public static readonly Guid EmailTemplateCacheRefresherGuid; +``` + + +--- + +#### EmailTemplateCacheRefresherId + +```csharp +public const string EmailTemplateCacheRefresherId; +``` + + +--- + +#### ExportTemplateCacheRefresherGuid + +```csharp +public static readonly Guid ExportTemplateCacheRefresherGuid; +``` + + +--- + +#### ExportTemplateCacheRefresherId + +```csharp +public const string ExportTemplateCacheRefresherId; +``` + + +--- + +#### GiftCardCacheRefresherGuid + +```csharp +public static readonly Guid GiftCardCacheRefresherGuid; +``` + + +--- + +#### GiftCardCacheRefresherId + +```csharp +public const string GiftCardCacheRefresherId; +``` + + +--- + +#### OrderCacheRefresherGuid + +```csharp +public static readonly Guid OrderCacheRefresherGuid; +``` + + +--- + +#### OrderCacheRefresherId + +```csharp +public const string OrderCacheRefresherId; +``` + + +--- + +#### OrderStatusCacheRefresherGuid + +```csharp +public static readonly Guid OrderStatusCacheRefresherGuid; +``` + + +--- + +#### OrderStatusCacheRefresherId + +```csharp +public const string OrderStatusCacheRefresherId; +``` + + +--- + +#### PaymentMethodCacheRefresherGuid + +```csharp +public static readonly Guid PaymentMethodCacheRefresherGuid; +``` + + +--- + +#### PaymentMethodCacheRefresherId + +```csharp +public const string PaymentMethodCacheRefresherId; +``` + + +--- + +#### PrintTemplateCacheRefresherGuid + +```csharp +public static readonly Guid PrintTemplateCacheRefresherGuid; +``` + + +--- + +#### PrintTemplateCacheRefresherId + +```csharp +public const string PrintTemplateCacheRefresherId; +``` + + +--- + +#### ProductAttributeCacheRefresherGuid + +```csharp +public static readonly Guid ProductAttributeCacheRefresherGuid; +``` + + +--- + +#### ProductAttributeCacheRefresherId + +```csharp +public const string ProductAttributeCacheRefresherId; +``` + + +--- + +#### ProductAttributePresetCacheRefresherGuid + +```csharp +public static readonly Guid ProductAttributePresetCacheRefresherGuid; +``` + + +--- + +#### ProductAttributePresetCacheRefresherId + +```csharp +public const string ProductAttributePresetCacheRefresherId; +``` + + +--- + +#### RegionCacheRefresherGuid + +```csharp +public static readonly Guid RegionCacheRefresherGuid; +``` + + +--- + +#### RegionCacheRefresherId + +```csharp +public const string RegionCacheRefresherId; +``` + + +--- + +#### ShippingMethodCacheRefresherGuid + +```csharp +public static readonly Guid ShippingMethodCacheRefresherGuid; +``` + + +--- + +#### ShippingMethodCacheRefresherId + +```csharp +public const string ShippingMethodCacheRefresherId; +``` + + +--- + +#### StockCacheRefresherGuid + +```csharp +public static readonly Guid StockCacheRefresherGuid; +``` + + +--- + +#### StockCacheRefresherId + +```csharp +public const string StockCacheRefresherId; +``` + + +--- + +#### StoreCacheRefresherGuid + +```csharp +public static readonly Guid StoreCacheRefresherGuid; +``` + + +--- + +#### StoreCacheRefresherId + +```csharp +public const string StoreCacheRefresherId; +``` + + +--- + +#### TaxClassCacheRefresherGuid + +```csharp +public static readonly Guid TaxClassCacheRefresherGuid; +``` + + +--- + +#### TaxClassCacheRefresherId + +```csharp +public const string TaxClassCacheRefresherId; +``` + + + +--- + +#### Constants.Properties + +Property constants + +```csharp +public static class Properties +``` + +##### Fields + +#### StorePropertyAlias + +The property alias of the Store property + +```csharp +public const string StorePropertyAlias; +``` + + +##### Classes + +#### Constants.Properties.Product + +Product property constants + +```csharp +public static class Product +``` + +##### Fields + +#### IsGiftCardPropertyAlias + +The property alias of the product Is Gift Card property + +```csharp +public const string IsGiftCardPropertyAlias; +``` + + +--- + +#### IsRecurringPropertyAlias + +The property alias of the product Is Recurring property + +```csharp +public const string IsRecurringPropertyAlias; +``` + + +--- + +#### NamePropertyAlias + +The property alias of the product Product Name property + +```csharp +public const string NamePropertyAlias; +``` + +**Remarks** + +If a productName property isn't present, the nodes Name will be used + + +--- + +#### PricePropertyAlias + +The property alias of the product Price property + +```csharp +public const string PricePropertyAlias; +``` + + +--- + +#### ProductSourcePropertyAlias + +The property alias of the linked product source node property + +```csharp +public const string ProductSourcePropertyAlias; +``` + + +--- + +#### SkuPropertyAlias + +The property alias of the product SKU property + +```csharp +public const string SkuPropertyAlias; +``` + + +--- + +#### StockPropertyAlias + +The property alias of the product Stock property + +```csharp +public const string StockPropertyAlias; +``` + + +--- + +#### TaxClassPropertyAlias + +The property alias of the product Tax Class property + +```csharp +public const string TaxClassPropertyAlias; +``` + + +--- + +#### VariantsPropertyAlias + +The property alias of the product Variants property + +```csharp +public const string VariantsPropertyAlias; +``` + + + +--- + +#### Constants.Properties.ProductVariant + +Product Variant property constants + +```csharp +public static class ProductVariant +``` + +##### Fields + +#### PriceAdjustmentPropertyAlias + +The property alias of the product variant Price Adjustment property + +```csharp +public const string PriceAdjustmentPropertyAlias; +``` + + + + +--- + +#### Constants.PropertyEditors + +Property Editor constants + +```csharp +public static class PropertyEditors +``` + +##### Classes + +#### Constants.PropertyEditors.Aliases + +Defines Umbraco Commerce built-in property editor aliases. + +```csharp +public static class Aliases +``` + +##### Fields + +#### Price + +Price. + +```csharp +public const string Price; +``` + + +--- + +#### Stock + +Stock. + +```csharp +public const string Stock; +``` + + +--- + +#### StoreEntityPicker + +Store Entity Picker. + +```csharp +public const string StoreEntityPicker; +``` + + +--- + +#### StorePicker + +Store Picker. + +```csharp +public const string StorePicker; +``` + + +--- + +#### VariantsEditor + +Variants Editor. + +```csharp +public const string VariantsEditor; +``` + + + + +--- + +#### Constants.Sections + +Defines the alias identifiers for Umbraco Commerce's core sections. + +```csharp +public static class Sections +``` + +##### Fields + +#### Commerce + +Application alias for the commerce section. + +```csharp +public const string Commerce; +``` + + + +--- + +#### Constants.Trees + +Defines the alias identifiers for Umbraco Commerce's core trees. + +```csharp +public static class Trees +``` + +##### Classes + +#### Constants.Trees.Settings + +Defines the alias identifiers for Umbraco Commerce's core settings trees. + +```csharp +public static class Settings +``` + +##### Fields + +#### Alias + +Tree alias for the store settings tree. + +```csharp +public const string Alias; +``` + + +--- + +#### Icons + +Defines the maps of icons for Umbraco Commerce's core settings tree node types. + +```csharp +public static readonly IReadOnlyDictionary Icons; +``` + + +--- + +#### Ids + +Defines the maps of fixed IDs for Umbraco Commerce's core settings tree node types. + +```csharp +public static readonly IReadOnlyDictionary Ids; +``` + + +##### Enumerations + +#### Constants.Trees.Settings.NodeType + +Defines the aliases for Umbraco Commerce's core settings tree node types. + +```csharp +public enum NodeType +``` + +**Values** + +| Name | Value | Description | +| --- | --- | --- | +| Settings | `0` | Alias for the settings node. | +| Stores | `1` | Alias for the stores node. | +| Store | `2` | Alias for a single store node. | +| OrderStatuses | `3` | Alias for the order statuses node. | +| OrderStatus | `4` | Alias for a single order status node. | +| ShippingMethods | `5` | Alias for the shipping methods node. | +| ShippingMethod | `6` | Alias for a single shipping method node. | +| PaymentMethods | `7` | Alias for the payment methods node. | +| PaymentMethod | `8` | Alias for a single payment method node. | +| Countries | `9` | Alias for the countries node. | +| Country | `10` | Alias for a single country node. | +| Region | `11` | Alias for a single region node. | +| Currencies | `12` | Alias for the currencies node. | +| Currency | `13` | Alias for a single currency node. | +| TaxClasses | `14` | Alias for the tax classes node. | +| TaxClass | `15` | Alias for a single tax class node. | +| Templating | `16` | Alias for the templating node. | +| EmailTemplates | `17` | Alias for the email templates node. | +| EmailTemplate | `18` | Alias for a single email template node. | +| PrintTemplates | `19` | Alias for the print templates node. | +| PrintTemplate | `20` | Alias for a single print template node. | +| ExportTemplates | `21` | Alias for the export templates node. | +| ExportTemplate | `22` | Alias for a single export template node. | + + +##### Classes + +#### Constants.Trees.Settings.Groups + +Defines the tree group alias identifiers for Umbraco Commerce's core settings trees. + +```csharp +public static class Groups +``` + +##### Fields + +#### Commerce + +Alias for the commerce tree settings group. + +```csharp +public const string Commerce; +``` + + + + +--- + +#### Constants.Trees.Stores + +Defines the alias identifiers for Umbraco Commerce's stores trees. + +```csharp +public static class Stores +``` + +##### Fields + +#### Alias + +Tree alias for the commerce section. + +```csharp +public const string Alias; +``` + + +--- + +#### Icons + +Defines the maps of icons for Umbraco Commerce's core tree node types. + +```csharp +public static readonly IReadOnlyDictionary Icons; +``` + + +--- + +#### Ids + +Defines the maps of fixed IDs for Umbraco Commerce's core settings tree node types. + +```csharp +public static readonly IReadOnlyDictionary Ids; +``` + + +##### Enumerations + +#### Constants.Trees.Stores.NodeType + +Defines the aliases for Umbraco Commerce's core tree node types. + +```csharp +public enum NodeType +``` + +**Values** + +| Name | Value | Description | +| --- | --- | --- | +| Stores | `0` | Alias for the stores node. | +| Store | `1` | Alias for a single store node. | +| Orders | `2` | Alias for the orders node. | +| Order | `3` | Alias for a single order node. | +| Carts | `4` | Alias for the carts node. | +| Cart | `5` | Alias for a single cart node. | +| Discounts | `6` | Alias for the discounts node. | +| Discount | `7` | Alias for a single discount node. | +| GiftCards | `8` | Alias for the gift cards node. | +| GiftCard | `9` | Alias for a single gift card node. | +| Analytics | `10` | Alias for a analytics node. | +| Options | `11` | Alias for a options node. | +| ProductAttributes | `12` | Alias for a product attributes node. | +| ProductAttribute | `13` | Alias for a product attribute node. | +| ProductAttributePresets | `14` | Alias for a product attribute presets node. | +| ProductAttributePreset | `15` | Alias for a product attribute preset node. | + + + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-extensions/README.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-extensions/README.md new file mode 100644 index 00000000000..20bb94fd79b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-extensions/README.md @@ -0,0 +1,18 @@ +--- +title: Umbraco.Commerce.Extensions +description: API reference for Umbraco.Commerce.Extensions in Umbraco Commerce +--- +## Umbraco.Commerce.Extensions namespace + +| Public Type | Description | +| --- | --- | +| static class [ProductVariantCollectionExtensions](productvariantcollectionextensions.md) | | +| static class [PublishedContentExtensions](publishedcontentextensions.md) | | +| static class [PublishedContentTypeExtensions](publishedcontenttypeextensions.md) | | +| static class [PublishedElementExtensions](publishedelementextensions.md) | | +| static class [SessionManagerExtensions](sessionmanagerextensions.md) | | +| static class [StoreAnalyticsServiceExtensions](storeanalyticsserviceextensions.md) | | +| static class [StoreExtensions](storeextensions.md) | | +| static class [UmbracoCommerceBuilderExtensions](umbracocommercebuilderextensions.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-extensions/productvariantcollectionextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-extensions/productvariantcollectionextensions.md new file mode 100644 index 00000000000..fff8c4d9877 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-extensions/productvariantcollectionextensions.md @@ -0,0 +1,52 @@ +--- +title: ProductVariantCollectionExtensions +description: API reference for ProductVariantCollectionExtensions in Umbraco Commerce +--- +## ProductVariantCollectionExtensions + +```csharp +public static class ProductVariantCollectionExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + +### Methods + +#### FindByAttributes + +```csharp +public static ProductVariantItem FindByAttributes(this ProductVariantCollection collection, + IDictionary attributes) +``` + + +--- + +#### GetDefaultProductVariant + +```csharp +public static ProductVariantItem GetDefaultProductVariant(this ProductVariantCollection collection) +``` + + +--- + +#### GetInUseProductAttributes (1 of 2) + +```csharp +public static IReadOnlyCollection GetInUseProductAttributes( + this ProductVariantCollection collection) +``` + +--- + +#### GetInUseProductAttributes (2 of 2) + +```csharp +public static IReadOnlyCollection GetInUseProductAttributes( + this ProductVariantCollection collection, IProductAttributeService productAttributeService) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-extensions/publishedcontentextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-extensions/publishedcontentextensions.md new file mode 100644 index 00000000000..66c6c91a57d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-extensions/publishedcontentextensions.md @@ -0,0 +1,34 @@ +--- +title: PublishedContentExtensions +description: API reference for PublishedContentExtensions in Umbraco Commerce +--- +## PublishedContentExtensions + +```csharp +public static class PublishedContentExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + +### Methods + +#### GetProductSourceNode + +Gets a product nodes source if one exists. Only to be used if using Umbraco nodes as product information data source. + +```csharp +public static IPublishedContent GetProductSourceNode(this IPublishedContent productNode, + IPublishedContentCache publishedContentCache, bool recursive = true) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| productNode | The product node that is linked to the product source node. | +| publishedContentCache | The published content cache to lookup nodes from | +| recursive | Whether to search recursively for the source relation. | + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-extensions/publishedcontenttypeextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-extensions/publishedcontenttypeextensions.md new file mode 100644 index 00000000000..8f8e716acd1 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-extensions/publishedcontenttypeextensions.md @@ -0,0 +1,14 @@ +--- +title: PublishedContentTypeExtensions +description: API reference for PublishedContentTypeExtensions in Umbraco Commerce +--- +## PublishedContentTypeExtensions + +```csharp +public static class PublishedContentTypeExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-extensions/publishedelementextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-extensions/publishedelementextensions.md new file mode 100644 index 00000000000..ef70183db05 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-extensions/publishedelementextensions.md @@ -0,0 +1,14 @@ +--- +title: PublishedElementExtensions +description: API reference for PublishedElementExtensions in Umbraco Commerce +--- +## PublishedElementExtensions + +```csharp +public static class PublishedElementExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-extensions/sessionmanagerextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-extensions/sessionmanagerextensions.md new file mode 100644 index 00000000000..fa86594f99d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-extensions/sessionmanagerextensions.md @@ -0,0 +1,14 @@ +--- +title: SessionManagerExtensions +description: API reference for SessionManagerExtensions in Umbraco Commerce +--- +## SessionManagerExtensions + +```csharp +public static class SessionManagerExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-extensions/storeanalyticsserviceextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-extensions/storeanalyticsserviceextensions.md new file mode 100644 index 00000000000..9727d94e892 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-extensions/storeanalyticsserviceextensions.md @@ -0,0 +1,24 @@ +--- +title: StoreAnalyticsServiceExtensions +description: API reference for StoreAnalyticsServiceExtensions in Umbraco Commerce +--- +## StoreAnalyticsServiceExtensions + +```csharp +public static class StoreAnalyticsServiceExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + +### Methods + +#### GetStoreSummariesFor + +```csharp +public static IEnumerable GetStoreSummariesFor(this IStoreAnalyticsService service, + IUser user) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-extensions/storeextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-extensions/storeextensions.md new file mode 100644 index 00000000000..2dea06887c6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-extensions/storeextensions.md @@ -0,0 +1,69 @@ +--- +title: StoreExtensions +description: API reference for StoreExtensions in Umbraco Commerce +--- +## StoreExtensions + +```csharp +public static class StoreExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + +### Methods + +#### AllowUser + +```csharp +public static Store AllowUser(this Store store, IUser user) +``` + + +--- + +#### AllowUsers + +```csharp +public static Store AllowUsers(this Store store, IEnumerable users) +``` + + +--- + +#### DisallowUser + +```csharp +public static Store DisallowUser(this Store store, IUser user) +``` + + +--- + +#### DisallowUsers + +```csharp +public static Store DisallowUsers(this Store store, IEnumerable users) +``` + + +--- + +#### IsAllowed + +```csharp +public static bool IsAllowed(this StoreReadOnly store, IUser user) +``` + + +--- + +#### SetAllowedUsers + +```csharp +public static Store SetAllowedUsers(this Store store, IEnumerable users, + SetBehavior setBehavior = SetBehavior.Merge) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-extensions/umbracocommercebuilderextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-extensions/umbracocommercebuilderextensions.md new file mode 100644 index 00000000000..1665bf828e1 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-cms/umbraco-commerce-extensions/umbracocommercebuilderextensions.md @@ -0,0 +1,44 @@ +--- +title: UmbracoCommerceBuilderExtensions +description: API reference for UmbracoCommerceBuilderExtensions in Umbraco Commerce +--- +## UmbracoCommerceBuilderExtensions + +```csharp +public static class UmbracoCommerceBuilderExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + +### Methods + +#### WithCartAdvancedFilters + +```csharp +public static CartAdvancedFilterCollectionBuilder WithCartAdvancedFilters( + this IUmbracoCommerceBuilder builder) +``` + + +--- + +#### WithOrderAdvancedFilters + +```csharp +public static OrderAdvancedFilterCollectionBuilder WithOrderAdvancedFilters( + this IUmbracoCommerceBuilder builder) +``` + + +--- + +#### WithUmbracoNodeStoreFinders + +```csharp +public static UmbracoNodeStoreFinderCollectionBuilder WithUmbracoNodeStoreFinders( + this IUmbracoCommerceBuilder builder) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/README.md b/14/umbraco-commerce/reference/umbraco-commerce-common/README.md new file mode 100644 index 00000000000..6cad2b19c5b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/README.md @@ -0,0 +1,28 @@ +--- +title: Umbraco.Commerce.Common +description: API reference for Umbraco.Commerce.Common in Umbraco Commerce +--- +## Umbraco.Commerce.Common assembly + +| Namespace | +| --- | +| [Umbraco.Commerce.Common](umbraco-commerce-common/README.md) | +| [Umbraco.Commerce.Common.Attributes](umbraco-commerce-common-attributes/README.md) | +| [Umbraco.Commerce.Common.Collections](umbraco-commerce-common-collections/README.md) | +| [Umbraco.Commerce.Common.Composing](umbraco-commerce-common-composing/README.md) | +| [Umbraco.Commerce.Common.Events](umbraco-commerce-common-events/README.md) | +| [Umbraco.Commerce.Common.Helpers](umbraco-commerce-common-helpers/README.md) | +| [Umbraco.Commerce.Common.IO](umbraco-commerce-common-io/README.md) | +| [Umbraco.Commerce.Common.Logging](umbraco-commerce-common-logging/README.md) | +| [Umbraco.Commerce.Common.Models](umbraco-commerce-common-models/README.md) | +| [Umbraco.Commerce.Common.Pipelines](umbraco-commerce-common-pipelines/README.md) | +| [Umbraco.Commerce.Common.Pipelines.Events](umbraco-commerce-common-pipelines-events/README.md) | +| [Umbraco.Commerce.Common.Pipelines.Tasks](umbraco-commerce-common-pipelines-tasks/README.md) | +| [Umbraco.Commerce.Common.Resiliency](umbraco-commerce-common-resiliency/README.md) | +| [Umbraco.Commerce.Common.Security](umbraco-commerce-common-security/README.md) | +| [Umbraco.Commerce.Common.Specifications](umbraco-commerce-common-specifications/README.md) | +| [Umbraco.Commerce.Common.Validation](umbraco-commerce-common-validation/README.md) | +| [Umbraco.Commerce.Common.Visitors](umbraco-commerce-common-visitors/README.md) | +| [Umbraco.Commerce.Extensions](umbraco-commerce-extensions/README.md) | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-attributes/README.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-attributes/README.md new file mode 100644 index 00000000000..ab1c66e8e60 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-attributes/README.md @@ -0,0 +1,12 @@ +--- +title: Umbraco.Commerce.Common.Attributes +description: API reference for Umbraco.Commerce.Common.Attributes in Umbraco Commerce +--- +## Umbraco.Commerce.Common.Attributes namespace + +| Public Type | Description | +| --- | --- | +| class [DeepEqualIgnoreAttribute](deepequalignoreattribute.md) | | +| class [OrderAttribute](orderattribute.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-attributes/deepequalignoreattribute.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-attributes/deepequalignoreattribute.md new file mode 100644 index 00000000000..ae601b02bf8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-attributes/deepequalignoreattribute.md @@ -0,0 +1,26 @@ +--- +title: DeepEqualIgnoreAttribute +description: API reference for DeepEqualIgnoreAttribute in Umbraco Commerce +--- +## DeepEqualIgnoreAttribute + +```csharp +[AttributeUsage(AttributeTargets.Property)] +public class DeepEqualIgnoreAttribute : Attribute +``` + +**Namespace** +* [Umbraco.Commerce.Common.Attributes](README.md) + +### Constructors + +#### DeepEqualIgnoreAttribute + +The default constructor. + +```csharp +public DeepEqualIgnoreAttribute() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-attributes/orderattribute.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-attributes/orderattribute.md new file mode 100644 index 00000000000..9fe6407c26b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-attributes/orderattribute.md @@ -0,0 +1,34 @@ +--- +title: OrderAttribute +description: API reference for OrderAttribute in Umbraco Commerce +--- +## OrderAttribute + +```csharp +[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Parameter | AttributeTargets.Delegate | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter | AttributeTargets.All, + Inherited = False, AllowMultiple = False)] +public sealed class OrderAttribute : Attribute +``` + +**Namespace** +* [Umbraco.Commerce.Common.Attributes](README.md) + +### Constructors + +#### OrderAttribute + +```csharp +public OrderAttribute([CallerLineNumber] int order = 0) +``` + + +### Properties + +#### Order + +```csharp +public int Order { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-collections/README.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-collections/README.md new file mode 100644 index 00000000000..f6e1566b41f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-collections/README.md @@ -0,0 +1,14 @@ +--- +title: Umbraco.Commerce.Common.Collections +description: API reference for Umbraco.Commerce.Common.Collections in Umbraco Commerce +--- +## Umbraco.Commerce.Common.Collections namespace + +| Public Type | Description | +| --- | --- | +| class [DictionaryAccessor<TKey,TValue>](dictionaryaccessor-2.md) | | +| class [KeyedCollection<TValue>](keyedcollection-1.md) | | +| class [NullSafeDictionary<TKey,TValue>](nullsafedictionary-2.md) | | +| class [NullSafeReadOnlyDictionary<TKey,TValue>](nullsafereadonlydictionary-2.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-collections/dictionaryaccessor-2.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-collections/dictionaryaccessor-2.md new file mode 100644 index 00000000000..cc86d975ca8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-collections/dictionaryaccessor-2.md @@ -0,0 +1,23 @@ +--- +title: DictionaryAccessor +description: API reference for DictionaryAccessor in Umbraco Commerce +--- +## DictionaryAccessor<TKey,TValue> + +```csharp +public class DictionaryAccessor +``` + +**Namespace** +* [Umbraco.Commerce.Common.Collections](README.md) + +### Indexers + +#### DictionaryAccessor<TKey,TValue> + +```csharp +public TValue this[TKey key] { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-collections/keyedcollection-1.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-collections/keyedcollection-1.md new file mode 100644 index 00000000000..06de2066bde --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-collections/keyedcollection-1.md @@ -0,0 +1,184 @@ +--- +title: KeyedCollection +description: API reference for KeyedCollection in Umbraco Commerce +--- +## KeyedCollection<TValue> + +```csharp +public class KeyedCollection : ICollection>, + IEnumerable> + where TValue : class +``` + +**Namespace** +* [Umbraco.Commerce.Common.Collections](README.md) + +### Constructors + +#### KeyedCollection<TValue> + +The default constructor. + +```csharp +public KeyedCollection() +``` + + +--- + +#### KeyedCollection<TValue> (1 of 2) + +```csharp +public KeyedCollection(IEnumerable> items) +``` + +--- + +#### KeyedCollection<TValue> (2 of 2) + +```csharp +public KeyedCollection(IEnumerable> items) +``` + + +### Properties + +#### Count + +```csharp +public int Count { get; } +``` + + +--- + +#### IsReadOnly + +```csharp +public bool IsReadOnly { get; } +``` + + +### Indexers + +#### KeyedCollection<TValue> + +```csharp +public TValue this[string key] { get; set; } +``` + + +### Methods + +#### Add (1 of 3) + +```csharp +public void Add(string key, TValue value) +``` + +--- + +#### Add (2 of 3) + +```csharp +public void Add(KeyValuePair item) +``` + +--- + +#### Add (3 of 3) + +```csharp +public void Add(Kvp item) +``` + + +--- + +#### Clear + +```csharp +public void Clear() +``` + + +--- + +#### Contains + +```csharp +public bool Contains(Kvp item) +``` + + +--- + +#### ContainsKey + +```csharp +public bool ContainsKey(string key) +``` + + +--- + +#### CopyTo + +```csharp +public void CopyTo(Kvp[] array, int arrayIndex) +``` + + +--- + +#### GetEnumerator + +```csharp +public IEnumerator> GetEnumerator() +``` + + +--- + +#### Remove (1 of 3) + +```csharp +public void Remove(string key) +``` + +--- + +#### Remove (2 of 3) + +```csharp +public bool Remove(KeyValuePair item) +``` + +--- + +#### Remove (3 of 3) + +```csharp +public bool Remove(Kvp item) +``` + + +--- + +#### ToDictionary + +```csharp +public IDictionary ToDictionary() +``` + + +--- + +#### TryGetValue + +```csharp +public bool TryGetValue(string key, out TValue value) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-collections/nullsafedictionary-2.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-collections/nullsafedictionary-2.md new file mode 100644 index 00000000000..5b499e5eb6c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-collections/nullsafedictionary-2.md @@ -0,0 +1,60 @@ +--- +title: NullSafeDictionary +description: API reference for NullSafeDictionary in Umbraco Commerce +--- +## NullSafeDictionary<TKey,TValue> + +```csharp +public class NullSafeDictionary : Dictionary + where TValue : class +``` + +**Namespace** +* [Umbraco.Commerce.Common.Collections](README.md) + +### Constructors + +#### NullSafeDictionary<TKey,TValue> + +The default constructor. + +```csharp +public NullSafeDictionary() +``` + + +--- + +#### NullSafeDictionary<TKey,TValue> (1 of 3) + +```csharp +public NullSafeDictionary(IEqualityComparer keyComparer) +``` + +--- + +#### NullSafeDictionary<TKey,TValue> (2 of 3) + +```csharp +public NullSafeDictionary(IDictionary dictionary) +``` + +--- + +#### NullSafeDictionary<TKey,TValue> (3 of 3) + +```csharp +public NullSafeDictionary(IDictionary dictionary, IEqualityComparer keyComparer) +``` + + +### Indexers + +#### NullSafeDictionary<TKey,TValue> + +```csharp +public TValue this[TKey key] { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-collections/nullsafereadonlydictionary-2.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-collections/nullsafereadonlydictionary-2.md new file mode 100644 index 00000000000..6d682450216 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-collections/nullsafereadonlydictionary-2.md @@ -0,0 +1,34 @@ +--- +title: NullSafeReadOnlyDictionary +description: API reference for NullSafeReadOnlyDictionary in Umbraco Commerce +--- +## NullSafeReadOnlyDictionary<TKey,TValue> + +```csharp +public class NullSafeReadOnlyDictionary : ReadOnlyDictionary, + IEnumerable>, IReadOnlyCollection>, + IReadOnlyDictionary +``` + +**Namespace** +* [Umbraco.Commerce.Common.Collections](README.md) + +### Constructors + +#### NullSafeReadOnlyDictionary<TKey,TValue> + +```csharp +public NullSafeReadOnlyDictionary(IDictionary dictionary) +``` + + +### Indexers + +#### NullSafeReadOnlyDictionary<TKey,TValue> + +```csharp +public TValue this[TKey key] { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-composing/README.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-composing/README.md new file mode 100644 index 00000000000..1539e9fb294 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-composing/README.md @@ -0,0 +1,18 @@ +--- +title: Umbraco.Commerce.Common.Composing +description: API reference for Umbraco.Commerce.Common.Composing in Umbraco Commerce +--- +## Umbraco.Commerce.Common.Composing namespace + +| Public Type | Description | +| --- | --- | +| class [ComposedCollection<T>](composedcollection-1.md) | Represents the base class of a collection composed by the DI container | +| abstract class [ComposedCollectionBuilderBase<TBuilder,TCollection,TItem>](composedcollectionbuilderbase-3.md) | | +| interface [IComposedCollection<T>](icomposedcollection-1.md) | | +| interface [IComposedCollectionBuilder<TCollection,TItem>](icomposedcollectionbuilder-2.md) | | +| interface [IComposedCollectionBuilder<TBuilder,TCollection,TItem>](icomposedcollectionbuilder-3.md) | | +| interface [IComposedCollectionBuilder](icomposedcollectionbuilder.md) | | +| interface [IOrderedComposedCollectionBuilder<TBuilder,TCollection,TItem>](iorderedcomposedcollectionbuilder-3.md) | | +| abstract class [OrderedComposedCollectionBuilderBase<TBuilder,TCollection,TItem>](orderedcomposedcollectionbuilderbase-3.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-composing/composedcollection-1.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-composing/composedcollection-1.md new file mode 100644 index 00000000000..0f215abc507 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-composing/composedcollection-1.md @@ -0,0 +1,63 @@ +--- +title: ComposedCollection +description: API reference for ComposedCollection in Umbraco Commerce +--- +## ComposedCollection<T> + +Represents the base class of a collection composed by the DI container + +```csharp +public class ComposedCollection : IComposedCollection, IEnumerable, IReadOnlyCollection +``` + +**Inheritance** + +* interface [IComposedCollection<T>](icomposedcollection-1.md) + +**Namespace** +* [Umbraco.Commerce.Common.Composing](README.md) + +**Parameters** + +| Parameter | Description | +| --- | --- | +| T | The type of the items in the collection | + +### Constructors + +#### ComposedCollection<T> + +Constructs an instance of a composed collection + +```csharp +public ComposedCollection(Func> itemsFactory) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| itemsFactory | A factory method to populate the items of the collection | + + +### Properties + +#### Count + +```csharp +public int Count { get; } +``` + + +### Methods + +#### GetEnumerator + +Gets an enumerator. + +```csharp +public IEnumerator GetEnumerator() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-composing/composedcollectionbuilderbase-3.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-composing/composedcollectionbuilderbase-3.md new file mode 100644 index 00000000000..d5fa2b01353 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-composing/composedcollectionbuilderbase-3.md @@ -0,0 +1,105 @@ +--- +title: ComposedCollectionBuilderBase +description: API reference for ComposedCollectionBuilderBase in Umbraco Commerce +--- +## ComposedCollectionBuilderBase<TBuilder,TCollection,TItem> + +```csharp +public abstract class ComposedCollectionBuilderBase : + IComposedCollectionBuilder, + IComposedCollectionBuilder + where TBuilder : ComposedCollectionBuilderBase + where TCollection : class, IComposedCollection +``` + +**Inheritance** + +* interface [IComposedCollectionBuilder<TCollection,TItem>](icomposedcollectionbuilder-2.md) +* interface [IComposedCollectionBuilder<TBuilder,TCollection,TItem>](icomposedcollectionbuilder-3.md) + +**Namespace** +* [Umbraco.Commerce.Common.Composing](README.md) + +### Methods + +#### Add (1 of 2) + +```csharp +public virtual TBuilder Add(Type type) +``` + +--- + +#### Add (2 of 2) + +```csharp +public virtual TBuilder Add(IEnumerable types) +``` + + +--- + +#### Add<T> + +```csharp +public virtual TBuilder Add() + where T : TItem +``` + + +--- + +#### Clear + +```csharp +public virtual TBuilder Clear() +``` + + +--- + +#### CreateCollection + +```csharp +public virtual TCollection CreateCollection(IServiceProvider factory) +``` + + +--- + +#### GetTypes + +```csharp +public IEnumerable GetTypes() +``` + + +--- + +#### RegisterWith + +```csharp +public virtual void RegisterWith(IServiceCollection services) +``` + + +--- + +#### Remove + +```csharp +public virtual TBuilder Remove(Type type) +``` + + +--- + +#### Remove<T> + +```csharp +public virtual TBuilder Remove() + where T : TItem +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-composing/icomposedcollection-1.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-composing/icomposedcollection-1.md new file mode 100644 index 00000000000..e3fff5dba0e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-composing/icomposedcollection-1.md @@ -0,0 +1,14 @@ +--- +title: IComposedCollection +description: API reference for IComposedCollection in Umbraco Commerce +--- +## IComposedCollection<T> + +```csharp +public interface IComposedCollection : IEnumerable, IReadOnlyCollection +``` + +**Namespace** +* [Umbraco.Commerce.Common.Composing](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-composing/icomposedcollectionbuilder-2.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-composing/icomposedcollectionbuilder-2.md new file mode 100644 index 00000000000..3d353e0bb5d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-composing/icomposedcollectionbuilder-2.md @@ -0,0 +1,28 @@ +--- +title: IComposedCollectionBuilder +description: API reference for IComposedCollectionBuilder in Umbraco Commerce +--- +## IComposedCollectionBuilder<TCollection,TItem> + +```csharp +public interface IComposedCollectionBuilder : IComposedCollectionBuilder + where TCollection : IComposedCollection +``` + +**Inheritance** + +* interface [IComposedCollectionBuilder](icomposedcollectionbuilder.md) + +**Namespace** +* [Umbraco.Commerce.Common.Composing](README.md) + +### Methods + +#### CreateCollection + +```csharp +public TCollection CreateCollection(IServiceProvider factory) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-composing/icomposedcollectionbuilder-3.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-composing/icomposedcollectionbuilder-3.md new file mode 100644 index 00000000000..228a07e6bc0 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-composing/icomposedcollectionbuilder-3.md @@ -0,0 +1,76 @@ +--- +title: IComposedCollectionBuilder +description: API reference for IComposedCollectionBuilder in Umbraco Commerce +--- +## IComposedCollectionBuilder<TBuilder,TCollection,TItem> + +```csharp +public interface IComposedCollectionBuilder : + IComposedCollectionBuilder + where TBuilder : IComposedCollectionBuilder + where TCollection : class, IComposedCollection +``` + +**Inheritance** + +* interface [IComposedCollectionBuilder<TCollection,TItem>](icomposedcollectionbuilder-2.md) + +**Namespace** +* [Umbraco.Commerce.Common.Composing](README.md) + +### Methods + +#### Add (1 of 2) + +```csharp +public TBuilder Add(Type type) +``` + +--- + +#### Add (2 of 2) + +```csharp +public TBuilder Add(IEnumerable types) +``` + + +--- + +#### Add<T> + +```csharp +public TBuilder Add() + where T : TItem +``` + + +--- + +#### Clear + +```csharp +public TBuilder Clear() +``` + + +--- + +#### Remove + +```csharp +public TBuilder Remove(Type type) +``` + + +--- + +#### Remove<T> + +```csharp +public TBuilder Remove() + where T : TItem +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-composing/icomposedcollectionbuilder.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-composing/icomposedcollectionbuilder.md new file mode 100644 index 00000000000..7c724d1e649 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-composing/icomposedcollectionbuilder.md @@ -0,0 +1,23 @@ +--- +title: IComposedCollectionBuilder +description: API reference for IComposedCollectionBuilder in Umbraco Commerce +--- +## IComposedCollectionBuilder + +```csharp +public interface IComposedCollectionBuilder +``` + +**Namespace** +* [Umbraco.Commerce.Common.Composing](README.md) + +### Methods + +#### RegisterWith + +```csharp +public void RegisterWith(IServiceCollection services) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-composing/iorderedcomposedcollectionbuilder-3.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-composing/iorderedcomposedcollectionbuilder-3.md new file mode 100644 index 00000000000..db664df9a8f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-composing/iorderedcomposedcollectionbuilder-3.md @@ -0,0 +1,110 @@ +--- +title: IOrderedComposedCollectionBuilder +description: API reference for IOrderedComposedCollectionBuilder in Umbraco Commerce +--- +## IOrderedComposedCollectionBuilder<TBuilder,TCollection,TItem> + +```csharp +public interface IOrderedComposedCollectionBuilder : + IComposedCollectionBuilder, + IComposedCollectionBuilder + where TBuilder : IOrderedComposedCollectionBuilder + where TCollection : class, IComposedCollection +``` + +**Inheritance** + +* interface [IComposedCollectionBuilder<TCollection,TItem>](icomposedcollectionbuilder-2.md) +* interface [IComposedCollectionBuilder<TBuilder,TCollection,TItem>](icomposedcollectionbuilder-3.md) + +**Namespace** +* [Umbraco.Commerce.Common.Composing](README.md) + +### Methods + +#### Insert (1 of 2) + +```csharp +public TBuilder Insert(Type type) +``` + +--- + +#### Insert (2 of 2) + +```csharp +public TBuilder Insert(int index, Type type) +``` + + +--- + +#### Insert<T> + +```csharp +public TBuilder Insert(int index = 0) + where T : TItem +``` + + +--- + +#### InsertAfter + +```csharp +public TBuilder InsertAfter(Type typeAfter, Type type) +``` + + +--- + +#### InsertAfter<TAfter,T> + +```csharp +public TBuilder InsertAfter() + where TAfter : TItem + where T : TItem +``` + + +--- + +#### InsertBefore + +```csharp +public TBuilder InsertBefore(Type typeBefore, Type type) +``` + + +--- + +#### InsertBefore<TBefore,T> + +```csharp +public TBuilder InsertBefore() + where TBefore : TItem + where T : TItem +``` + + +--- + +#### Replace + +```csharp +public TBuilder Replace(Type typeReplaced, Type type) +``` + + +--- + +#### Replace<TReplaced,T> + +```csharp +public TBuilder Replace() + where TReplaced : TItem + where T : TItem +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-composing/orderedcomposedcollectionbuilderbase-3.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-composing/orderedcomposedcollectionbuilderbase-3.md new file mode 100644 index 00000000000..1322475ff27 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-composing/orderedcomposedcollectionbuilderbase-3.md @@ -0,0 +1,110 @@ +--- +title: OrderedComposedCollectionBuilderBase +description: API reference for OrderedComposedCollectionBuilderBase in Umbraco Commerce +--- +## OrderedComposedCollectionBuilderBase<TBuilder,TCollection,TItem> + +```csharp +public abstract class OrderedComposedCollectionBuilderBase : + ComposedCollectionBuilderBase, + IOrderedComposedCollectionBuilder + where TBuilder : OrderedComposedCollectionBuilderBase + where TCollection : class, IComposedCollection +``` + +**Inheritance** + +* Class [ComposedCollectionBuilderBase<TBuilder,TCollection,TItem>](composedcollectionbuilderbase-3.md) +* interface [IOrderedComposedCollectionBuilder<TBuilder,TCollection,TItem>](iorderedcomposedcollectionbuilder-3.md) + +**Namespace** +* [Umbraco.Commerce.Common.Composing](README.md) + +### Methods + +#### Insert (1 of 2) + +```csharp +public TBuilder Insert(Type type) +``` + +--- + +#### Insert (2 of 2) + +```csharp +public TBuilder Insert(int index, Type type) +``` + + +--- + +#### Insert<T> + +```csharp +public TBuilder Insert(int index = 0) + where T : TItem +``` + + +--- + +#### InsertAfter + +```csharp +public TBuilder InsertAfter(Type typeAfter, Type type) +``` + + +--- + +#### InsertAfter<TAfter,T> + +```csharp +public TBuilder InsertAfter() + where TAfter : TItem + where T : TItem +``` + + +--- + +#### InsertBefore + +```csharp +public TBuilder InsertBefore(Type typeBefore, Type type) +``` + + +--- + +#### InsertBefore<TBefore,T> + +```csharp +public TBuilder InsertBefore() + where TBefore : TItem + where T : TItem +``` + + +--- + +#### Replace + +```csharp +public TBuilder Replace(Type typeReplaced, Type type) +``` + + +--- + +#### Replace<TReplaced,T> + +```csharp +public TBuilder Replace() + where TReplaced : TItem + where T : TItem +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/README.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/README.md new file mode 100644 index 00000000000..69cbcd632fc --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/README.md @@ -0,0 +1,29 @@ +--- +title: Umbraco.Commerce.Common.Events +description: API reference for Umbraco.Commerce.Common.Events in Umbraco Commerce +--- +## Umbraco.Commerce.Common.Events namespace + +| Public Type | Description | +| --- | --- | +| abstract class [DomainEventBase](domaineventbase.md) | | +| abstract class [DomainEventHandlerBase<TDomainEvent>](domaineventhandlerbase-1.md) | | +| static class [EventBus](eventbus.md) | | +| class [EventHandlerCollection<TEvent>](eventhandlercollection-1.md) | | +| class [EventHandlerFactory](eventhandlerfactory.md) | | +| interface [IDomainEvent](idomainevent.md) | | +| interface [IEvent](ievent.md) | | +| interface [IEventDispatcher](ieventdispatcher.md) | | +| interface [IEventHandler](ieventhandler.md) | | +| interface [IEventHandlerFactory](ieventhandlerfactory.md) | | +| interface [IEventHandlerFor<T>](ieventhandlerfor-1.md) | | +| interface [IHasEventKey](ihaseventkey.md) | | +| interface [INotificationEvent](inotificationevent.md) | | +| class [InProcEventDispatcher](inproceventdispatcher.md) | | +| interface [IValidationEvent](ivalidationevent.md) | | +| abstract class [NotificationEventBase](notificationeventbase.md) | | +| abstract class [NotificationEventHandlerBase<TNotificationEvent>](notificationeventhandlerbase-1.md) | | +| abstract class [ValidationEventBase](validationeventbase.md) | | +| abstract class [ValidationEventHandlerBase<TValidationEvent>](validationeventhandlerbase-1.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/domaineventbase.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/domaineventbase.md new file mode 100644 index 00000000000..979c0f46ce6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/domaineventbase.md @@ -0,0 +1,18 @@ +--- +title: DomainEventBase +description: API reference for DomainEventBase in Umbraco Commerce +--- +## DomainEventBase + +```csharp +public abstract class DomainEventBase : IDomainEvent +``` + +**Inheritance** + +* interface [IDomainEvent](idomainevent.md) + +**Namespace** +* [Umbraco.Commerce.Common.Events](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/domaineventhandlerbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/domaineventhandlerbase-1.md new file mode 100644 index 00000000000..2d8678b6577 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/domaineventhandlerbase-1.md @@ -0,0 +1,28 @@ +--- +title: DomainEventHandlerBase +description: API reference for DomainEventHandlerBase in Umbraco Commerce +--- +## DomainEventHandlerBase<TDomainEvent> + +```csharp +public abstract class DomainEventHandlerBase : IEventHandlerFor + where TDomainEvent : IDomainEvent +``` + +**Inheritance** + +* interface [IEventHandlerFor<T>](ieventhandlerfor-1.md) + +**Namespace** +* [Umbraco.Commerce.Common.Events](README.md) + +### Methods + +#### Handle + +```csharp +public abstract void Handle(TDomainEvent evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/eventbus.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/eventbus.md new file mode 100644 index 00000000000..7d9f3fd61e4 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/eventbus.md @@ -0,0 +1,43 @@ +--- +title: EventBus +description: API reference for EventBus in Umbraco Commerce +--- +## EventBus + +```csharp +public static class EventBus +``` + +**Namespace** +* [Umbraco.Commerce.Common.Events](README.md) + +### Methods + +#### ClearCallbacks + +```csharp +public static void ClearCallbacks() +``` + + +--- + +#### Dispatch<T> + +```csharp +public static void Dispatch(T evt) + where T : IEvent +``` + + +--- + +#### RegisterCallbackFor<T> + +```csharp +public static void RegisterCallbackFor(Action callback) + where T : IEvent +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/eventhandlercollection-1.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/eventhandlercollection-1.md new file mode 100644 index 00000000000..b36683e93f1 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/eventhandlercollection-1.md @@ -0,0 +1,28 @@ +--- +title: EventHandlerCollection +description: API reference for EventHandlerCollection in Umbraco Commerce +--- +## EventHandlerCollection<TEvent> + +```csharp +public class EventHandlerCollection : ComposedCollection> + where TEvent : IEvent +``` + +**Inheritance** + +* Class [ComposedCollection<T>](../umbraco-commerce-common-composing/composedcollection-1.md) + +**Namespace** +* [Umbraco.Commerce.Common.Events](README.md) + +### Constructors + +#### EventHandlerCollection<TEvent> + +```csharp +public EventHandlerCollection(Func>> itemsFactory) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/eventhandlerfactory.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/eventhandlerfactory.md new file mode 100644 index 00000000000..5540737adf8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/eventhandlerfactory.md @@ -0,0 +1,36 @@ +--- +title: EventHandlerFactory +description: API reference for EventHandlerFactory in Umbraco Commerce +--- +## EventHandlerFactory + +```csharp +public class EventHandlerFactory : IEventHandlerFactory +``` + +**Inheritance** + +* interface [IEventHandlerFactory](ieventhandlerfactory.md) + +**Namespace** +* [Umbraco.Commerce.Common.Events](README.md) + +### Constructors + +#### EventHandlerFactory + +```csharp +public EventHandlerFactory(IFactory factory) +``` + + +### Methods + +#### CreateFor + +```csharp +public IEnumerable CreateFor(IEvent evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/idomainevent.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/idomainevent.md new file mode 100644 index 00000000000..0eedcf4c9d6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/idomainevent.md @@ -0,0 +1,18 @@ +--- +title: IDomainEvent +description: API reference for IDomainEvent in Umbraco Commerce +--- +## IDomainEvent + +```csharp +public interface IDomainEvent : IEvent +``` + +**Inheritance** + +* interface [IEvent](ievent.md) + +**Namespace** +* [Umbraco.Commerce.Common.Events](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/ievent.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/ievent.md new file mode 100644 index 00000000000..383aec7728b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/ievent.md @@ -0,0 +1,14 @@ +--- +title: IEvent +description: API reference for IEvent in Umbraco Commerce +--- +## IEvent + +```csharp +public interface IEvent +``` + +**Namespace** +* [Umbraco.Commerce.Common.Events](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/ieventdispatcher.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/ieventdispatcher.md new file mode 100644 index 00000000000..2adc9650988 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/ieventdispatcher.md @@ -0,0 +1,24 @@ +--- +title: IEventDispatcher +description: API reference for IEventDispatcher in Umbraco Commerce +--- +## IEventDispatcher + +```csharp +public interface IEventDispatcher +``` + +**Namespace** +* [Umbraco.Commerce.Common.Events](README.md) + +### Methods + +#### Dispatch<T> + +```csharp +public void Dispatch(IEnumerable handlers, T evt) + where T : IEvent +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/ieventhandler.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/ieventhandler.md new file mode 100644 index 00000000000..815ddad71f9 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/ieventhandler.md @@ -0,0 +1,23 @@ +--- +title: IEventHandler +description: API reference for IEventHandler in Umbraco Commerce +--- +## IEventHandler + +```csharp +public interface IEventHandler +``` + +**Namespace** +* [Umbraco.Commerce.Common.Events](README.md) + +### Methods + +#### Handle + +```csharp +public void Handle(IEvent evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/ieventhandlerfactory.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/ieventhandlerfactory.md new file mode 100644 index 00000000000..2f4ad6b4311 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/ieventhandlerfactory.md @@ -0,0 +1,23 @@ +--- +title: IEventHandlerFactory +description: API reference for IEventHandlerFactory in Umbraco Commerce +--- +## IEventHandlerFactory + +```csharp +public interface IEventHandlerFactory +``` + +**Namespace** +* [Umbraco.Commerce.Common.Events](README.md) + +### Methods + +#### CreateFor + +```csharp +public IEnumerable CreateFor(IEvent evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/ieventhandlerfor-1.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/ieventhandlerfor-1.md new file mode 100644 index 00000000000..e12874ea4d4 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/ieventhandlerfor-1.md @@ -0,0 +1,19 @@ +--- +title: IEventHandlerFor +description: API reference for IEventHandlerFor in Umbraco Commerce +--- +## IEventHandlerFor<T> + +```csharp +public interface IEventHandlerFor : IEventHandler + where T : IEvent +``` + +**Inheritance** + +* interface [IEventHandler](ieventhandler.md) + +**Namespace** +* [Umbraco.Commerce.Common.Events](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/ihaseventkey.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/ihaseventkey.md new file mode 100644 index 00000000000..153690f59e7 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/ihaseventkey.md @@ -0,0 +1,23 @@ +--- +title: IHasEventKey +description: API reference for IHasEventKey in Umbraco Commerce +--- +## IHasEventKey + +```csharp +public interface IHasEventKey +``` + +**Namespace** +* [Umbraco.Commerce.Common.Events](README.md) + +### Properties + +#### Key + +```csharp +public string Key { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/inotificationevent.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/inotificationevent.md new file mode 100644 index 00000000000..77b3046629f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/inotificationevent.md @@ -0,0 +1,18 @@ +--- +title: INotificationEvent +description: API reference for INotificationEvent in Umbraco Commerce +--- +## INotificationEvent + +```csharp +public interface INotificationEvent : IEvent +``` + +**Inheritance** + +* interface [IEvent](ievent.md) + +**Namespace** +* [Umbraco.Commerce.Common.Events](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/inproceventdispatcher.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/inproceventdispatcher.md new file mode 100644 index 00000000000..6e6bf6dd2ea --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/inproceventdispatcher.md @@ -0,0 +1,39 @@ +--- +title: InProcEventDispatcher +description: API reference for InProcEventDispatcher in Umbraco Commerce +--- +## InProcEventDispatcher + +```csharp +public class InProcEventDispatcher : IEventDispatcher +``` + +**Inheritance** + +* interface [IEventDispatcher](ieventdispatcher.md) + +**Namespace** +* [Umbraco.Commerce.Common.Events](README.md) + +### Constructors + +#### InProcEventDispatcher + +The default constructor. + +```csharp +public InProcEventDispatcher() +``` + + +### Methods + +#### Dispatch<T> + +```csharp +public void Dispatch(IEnumerable handlers, T evt) + where T : IEvent +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/ivalidationevent.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/ivalidationevent.md new file mode 100644 index 00000000000..773d4dd0a01 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/ivalidationevent.md @@ -0,0 +1,45 @@ +--- +title: IValidationEvent +description: API reference for IValidationEvent in Umbraco Commerce +--- +## IValidationEvent + +```csharp +public interface IValidationEvent : IEvent +``` + +**Inheritance** + +* interface [IEvent](ievent.md) + +**Namespace** +* [Umbraco.Commerce.Common.Events](README.md) + +### Properties + +#### Errors + +```csharp +public IEnumerable Errors { get; } +``` + + +--- + +#### HasValidationErrors + +```csharp +public bool HasValidationErrors { get; } +``` + + +### Methods + +#### Fail + +```csharp +public void Fail(string msg) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/notificationeventbase.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/notificationeventbase.md new file mode 100644 index 00000000000..a1f10b88efc --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/notificationeventbase.md @@ -0,0 +1,18 @@ +--- +title: NotificationEventBase +description: API reference for NotificationEventBase in Umbraco Commerce +--- +## NotificationEventBase + +```csharp +public abstract class NotificationEventBase : INotificationEvent +``` + +**Inheritance** + +* interface [INotificationEvent](inotificationevent.md) + +**Namespace** +* [Umbraco.Commerce.Common.Events](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/notificationeventhandlerbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/notificationeventhandlerbase-1.md new file mode 100644 index 00000000000..3764269393d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/notificationeventhandlerbase-1.md @@ -0,0 +1,29 @@ +--- +title: NotificationEventHandlerBase +description: API reference for NotificationEventHandlerBase in Umbraco Commerce +--- +## NotificationEventHandlerBase<TNotificationEvent> + +```csharp +public abstract class NotificationEventHandlerBase : + IEventHandlerFor + where TNotificationEvent : INotificationEvent +``` + +**Inheritance** + +* interface [IEventHandlerFor<T>](ieventhandlerfor-1.md) + +**Namespace** +* [Umbraco.Commerce.Common.Events](README.md) + +### Methods + +#### Handle + +```csharp +public abstract void Handle(TNotificationEvent evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md new file mode 100644 index 00000000000..5458cc97510 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md @@ -0,0 +1,45 @@ +--- +title: ValidationEventBase +description: API reference for ValidationEventBase in Umbraco Commerce +--- +## ValidationEventBase + +```csharp +public abstract class ValidationEventBase : IValidationEvent +``` + +**Inheritance** + +* interface [IValidationEvent](ivalidationevent.md) + +**Namespace** +* [Umbraco.Commerce.Common.Events](README.md) + +### Properties + +#### Errors + +```csharp +public IEnumerable Errors { get; } +``` + + +--- + +#### HasValidationErrors + +```csharp +public bool HasValidationErrors { get; } +``` + + +### Methods + +#### Fail + +```csharp +public void Fail(string msg) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md new file mode 100644 index 00000000000..a3f7f603797 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md @@ -0,0 +1,38 @@ +--- +title: ValidationEventHandlerBase +description: API reference for ValidationEventHandlerBase in Umbraco Commerce +--- +## ValidationEventHandlerBase<TValidationEvent> + +```csharp +public abstract class ValidationEventHandlerBase : + IEventHandlerFor + where TValidationEvent : IValidationEvent +``` + +**Inheritance** + +* interface [IEventHandlerFor<T>](ieventhandlerfor-1.md) + +**Namespace** +* [Umbraco.Commerce.Common.Events](README.md) + +### Methods + +#### Handle + +```csharp +public void Handle(IEvent evt) +``` + + +--- + +#### Validate + +```csharp +public abstract void Validate(TValidationEvent evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-helpers/README.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-helpers/README.md new file mode 100644 index 00000000000..1d9699e6ab6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-helpers/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Common.Helpers +description: API reference for Umbraco.Commerce.Common.Helpers in Umbraco Commerce +--- +## Umbraco.Commerce.Common.Helpers namespace + +| Public Type | Description | +| --- | --- | +| static class [EnumHelper](enumhelper.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-helpers/enumhelper.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-helpers/enumhelper.md new file mode 100644 index 00000000000..a5de2911efa --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-helpers/enumhelper.md @@ -0,0 +1,23 @@ +--- +title: EnumHelper +description: API reference for EnumHelper in Umbraco Commerce +--- +## EnumHelper + +```csharp +public static class EnumHelper +``` + +**Namespace** +* [Umbraco.Commerce.Common.Helpers](README.md) + +### Methods + +#### EnumAsDictionary + +```csharp +public static IDictionary EnumAsDictionary(Type enumType) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-io/README.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-io/README.md new file mode 100644 index 00000000000..2bb14755ca9 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-io/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Common.IO +description: API reference for Umbraco.Commerce.Common.IO in Umbraco Commerce +--- +## Umbraco.Commerce.Common.IO namespace + +| Public Type | Description | +| --- | --- | +| interface [IIOHelper](iiohelper.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-io/iiohelper.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-io/iiohelper.md new file mode 100644 index 00000000000..b19a4cd1820 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-io/iiohelper.md @@ -0,0 +1,23 @@ +--- +title: IIOHelper +description: API reference for IIOHelper in Umbraco Commerce +--- +## IIOHelper + +```csharp +public interface IIOHelper +``` + +**Namespace** +* [Umbraco.Commerce.Common.IO](README.md) + +### Methods + +#### MapPath + +```csharp +public string MapPath(string path) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-logging/README.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-logging/README.md new file mode 100644 index 00000000000..cb5122da5ba --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-logging/README.md @@ -0,0 +1,12 @@ +--- +title: Umbraco.Commerce.Common.Logging +description: API reference for Umbraco.Commerce.Common.Logging in Umbraco Commerce +--- +## Umbraco.Commerce.Common.Logging namespace + +| Public Type | Description | +| --- | --- | +| interface [ILogger<T>](ilogger-1.md) | Defines the logging service. | +| enum [LogLevel](loglevel.md) | Specifies the level of a log event. | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-logging/ilogger-1.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-logging/ilogger-1.md new file mode 100644 index 00000000000..19d2bd99190 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-logging/ilogger-1.md @@ -0,0 +1,390 @@ +--- +title: ILogger +description: API reference for ILogger in Umbraco Commerce +--- +## ILogger<T> + +Defines the logging service. + +```csharp +public interface ILogger +``` + +**Namespace** +* [Umbraco.Commerce.Common.Logging](README.md) + +### Methods + +#### Debug (1 of 2) + +Logs a debugging message. + +```csharp +public void Debug(string message) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| message | A message. | + +--- + +#### Debug (2 of 2) + +Logs a debug message. + +```csharp +public void Debug(string messageTemplate, params object[] propertyValues) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| messageTemplate | A message template. | +| propertyValues | Property values. | + + +--- + +#### Error (1 of 5) + +Logs an error message with an exception. + +```csharp +public void Error(Exception exception, string message) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| exception | An exception. | +| message | A message. | + +--- + +#### Error (2 of 5) + +Logs an error exception. + +```csharp +public void Error(Exception exception) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| exception | An exception. | + +**Remarks** + +The message string is unspecified and is implementation-specific. + +--- + +#### Error (3 of 5) + +Logs an error message. + +```csharp +public void Error(string message) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| message | A message. | + +--- + +#### Error (4 of 5) + +Logs an error message with an exception. + +```csharp +public void Error(Exception exception, string messageTemplate, params object[] propertyValues) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| exception | An exception. | +| messageTemplate | A message template. | +| propertyValues | Property values. | + +--- + +#### Error (5 of 5) + +Logs an error message. + +```csharp +public void Error(string messageTemplate, params object[] propertyValues) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| messageTemplate | A message template. | +| propertyValues | Property values. | + + +--- + +#### Fatal (1 of 5) + +Logs a fatal message with an exception. + +```csharp +public void Fatal(Exception exception, string message) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| exception | An exception. | +| message | A message. | + +--- + +#### Fatal (2 of 5) + +Logs a fatal exception. + +```csharp +public void Fatal(Exception exception) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| exception | An exception. | + +**Remarks** + +The message string is unspecified and is implementation-specific. + +--- + +#### Fatal (3 of 5) + +Logs a fatal message. + +```csharp +public void Fatal(string message) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| message | A message. | + +--- + +#### Fatal (4 of 5) + +Logs a fatal message with an exception. + +```csharp +public void Fatal(Exception exception, string messageTemplate, params object[] propertyValues) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| exception | An exception. | +| messageTemplate | A message template. | +| propertyValues | Property values. | + +--- + +#### Fatal (5 of 5) + +Logs a fatal message. + +```csharp +public void Fatal(string messageTemplate, params object[] propertyValues) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| messageTemplate | A message template. | +| propertyValues | Property values. | + + +--- + +#### Info (1 of 2) + +Logs an information message. + +```csharp +public void Info(string message) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| message | A message. | + +--- + +#### Info (2 of 2) + +Logs a info message. + +```csharp +public void Info(string messageTemplate, params object[] propertyValues) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| messageTemplate | A message template. | +| propertyValues | Property values. | + + +--- + +#### IsEnabled + +Determines if logging is enabled at a specified level, for a reporting type. + +```csharp +public bool IsEnabled(LogLevel level) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| level | The level. | + + +--- + +#### Verbose (1 of 2) + +Logs a verbose message. + +```csharp +public void Verbose(string message) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| message | A message. | + +--- + +#### Verbose (2 of 2) + +Logs a verbose message. + +```csharp +public void Verbose(string messageTemplate, params object[] propertyValues) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| messageTemplate | A message template. | +| propertyValues | Property values. | + + +--- + +#### Warn (1 of 4) + +Logs a warning message. + +```csharp +public void Warn(string message) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| message | A message. | + +--- + +#### Warn (2 of 4) + +Logs a warning message. + +```csharp +public void Warn(string messageTemplate, params object[] propertyValues) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| messageTemplate | A message template. | +| propertyValues | Property values. | + +--- + +#### Warn (3 of 4) + +Logs a warning message with an exception. + +```csharp +public void Warn(Exception exception, string message) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| exception | An exception. | +| message | A message. | + +--- + +#### Warn (4 of 4) + +Logs a warning message with an exception. + +```csharp +public void Warn(Exception exception, string messageTemplate, params object[] propertyValues) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| exception | An exception. | +| messageTemplate | A message template. | +| propertyValues | Property values. | + + +**Remarks** + +Message templates in logging methods follow the Message Templates specification available at https://messagetemplates.org/ in order to support structured logging. + +Implementations must ensure that they support these templates. Note that the specification includes support for traditional C# numeric placeholders. + +For instance, "Processed {Input} in {Time}ms." + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-logging/loglevel.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-logging/loglevel.md new file mode 100644 index 00000000000..1b55075706e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-logging/loglevel.md @@ -0,0 +1,28 @@ +--- +title: LogLevel +description: API reference for LogLevel in Umbraco Commerce +--- +## LogLevel + +Specifies the level of a log event. + +```csharp +public enum LogLevel +``` + +**Namespace** +* [Umbraco.Commerce.Common.Logging](README.md) + +**Values** + +| Name | Value | Description | +| --- | --- | --- | +| Verbose | `0` | | +| Debug | `1` | | +| Information | `2` | | +| Warning | `3` | | +| Error | `4` | | +| Fatal | `5` | | +| None | `6` | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/README.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/README.md new file mode 100644 index 00000000000..ad9109fa275 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/README.md @@ -0,0 +1,22 @@ +--- +title: Umbraco.Commerce.Common.Models +description: API reference for Umbraco.Commerce.Common.Models in Umbraco Commerce +--- +## Umbraco.Commerce.Common.Models namespace + +| Public Type | Description | +| --- | --- | +| class [ChangingValue<T>](changingvalue-1.md) | | +| enum [ComparisonOperator](comparisonoperator.md) | | +| class [DictionaryDiff<TKey,TValue>](dictionarydiff-2.md) | | +| class [EnumerableDiff<T>](enumerablediff-1.md) | | +| interface [IChangingValue](ichangingvalue.md) | | +| interface [IKvp<TKey,TValue>](ikvp-2.md) | | +| class [Kvp<TKey,TValue>](kvp-2.md) | | +| class [PagedResult<T>](pagedresult-1.md) | Represents a paged result for a model collection | +| abstract class [PagedResultBase](pagedresultbase.md) | Represents a paged result for a model collection | +| enum [StringComparisonType](stringcomparisontype.md) | | +| class [ValidationError](validationerror.md) | | +| abstract class [ValueObjectBase](valueobjectbase.md) | Base class for an immutable value object | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/changingvalue-1.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/changingvalue-1.md new file mode 100644 index 00000000000..cdc1c9ebdf4 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/changingvalue-1.md @@ -0,0 +1,54 @@ +--- +title: ChangingValue +description: API reference for ChangingValue in Umbraco Commerce +--- +## ChangingValue<T> + +```csharp +public class ChangingValue : IChangingValue +``` + +**Inheritance** + +* interface [IChangingValue](ichangingvalue.md) + +**Namespace** +* [Umbraco.Commerce.Common.Models](README.md) + +### Constructors + +#### ChangingValue<T> + +```csharp +public ChangingValue(T from, T to) +``` + + +### Properties + +#### From + +```csharp +public T From { get; set; } +``` + + +--- + +#### HasChanged + +```csharp +public bool HasChanged { get; } +``` + + +--- + +#### To + +```csharp +public T To { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/comparisonoperator.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/comparisonoperator.md new file mode 100644 index 00000000000..69b35e3597d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/comparisonoperator.md @@ -0,0 +1,25 @@ +--- +title: ComparisonOperator +description: API reference for ComparisonOperator in Umbraco Commerce +--- +## ComparisonOperator + +```csharp +public enum ComparisonOperator +``` + +**Namespace** +* [Umbraco.Commerce.Common.Models](README.md) + +**Values** + +| Name | Value | Description | +| --- | --- | --- | +| Equal | `0` | | +| GreaterThan | `1` | | +| GreaterThanOrEqual | `2` | | +| LessThan | `3` | | +| LessThanOrEqual | `4` | | +| NotEqual | `5` | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/dictionarydiff-2.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/dictionarydiff-2.md new file mode 100644 index 00000000000..ebae6de66e5 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/dictionarydiff-2.md @@ -0,0 +1,61 @@ +--- +title: DictionaryDiff +description: API reference for DictionaryDiff in Umbraco Commerce +--- +## DictionaryDiff<TKey,TValue> + +```csharp +public class DictionaryDiff +``` + +**Namespace** +* [Umbraco.Commerce.Common.Models](README.md) + +### Constructors + +#### DictionaryDiff<TKey,TValue> + +The default constructor. + +```csharp +public DictionaryDiff() +``` + + +### Properties + +#### Added + +```csharp +public Dictionary Added { get; set; } +``` + + +--- + +#### Removed + +```csharp +public Dictionary Removed { get; set; } +``` + + +--- + +#### Unchanged + +```csharp +public Dictionary Unchanged { get; set; } +``` + + +--- + +#### Updated + +```csharp +public Dictionary Updated { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/enumerablediff-1.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/enumerablediff-1.md new file mode 100644 index 00000000000..aa95527b8dc --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/enumerablediff-1.md @@ -0,0 +1,61 @@ +--- +title: EnumerableDiff +description: API reference for EnumerableDiff in Umbraco Commerce +--- +## EnumerableDiff<T> + +```csharp +public class EnumerableDiff +``` + +**Namespace** +* [Umbraco.Commerce.Common.Models](README.md) + +### Constructors + +#### EnumerableDiff<T> + +The default constructor. + +```csharp +public EnumerableDiff() +``` + + +### Properties + +#### Added + +```csharp +public List Added { get; set; } +``` + + +--- + +#### Removed + +```csharp +public List Removed { get; set; } +``` + + +--- + +#### Unchanged + +```csharp +public List Unchanged { get; set; } +``` + + +--- + +#### Updated + +```csharp +public List Updated { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/ichangingvalue.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/ichangingvalue.md new file mode 100644 index 00000000000..9f14609ed76 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/ichangingvalue.md @@ -0,0 +1,41 @@ +--- +title: IChangingValue +description: API reference for IChangingValue in Umbraco Commerce +--- +## IChangingValue + +```csharp +public interface IChangingValue +``` + +**Namespace** +* [Umbraco.Commerce.Common.Models](README.md) + +### Properties + +#### From + +```csharp +public object From { get; set; } +``` + + +--- + +#### HasChanged + +```csharp +public bool HasChanged { get; } +``` + + +--- + +#### To + +```csharp +public object To { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/ikvp-2.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/ikvp-2.md new file mode 100644 index 00000000000..ffa1c88071b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/ikvp-2.md @@ -0,0 +1,32 @@ +--- +title: IKvp +description: API reference for IKvp in Umbraco Commerce +--- +## IKvp<TKey,TValue> + +```csharp +public interface IKvp +``` + +**Namespace** +* [Umbraco.Commerce.Common.Models](README.md) + +### Properties + +#### Key + +```csharp +public TKey Key { get; set; } +``` + + +--- + +#### Value + +```csharp +public TValue Value { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/kvp-2.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/kvp-2.md new file mode 100644 index 00000000000..227c9bc91c4 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/kvp-2.md @@ -0,0 +1,84 @@ +--- +title: Kvp +description: API reference for Kvp in Umbraco Commerce +--- +## Kvp<TKey,TValue> + +```csharp +public class Kvp : IDeepCloneable, IKvp +``` + +**Inheritance** + +* interface [IDeepCloneable](../umbraco-commerce-common/ideepcloneable.md) +* interface [IKvp<TKey,TValue>](ikvp-2.md) + +**Namespace** +* [Umbraco.Commerce.Common.Models](README.md) + +### Constructors + +#### Kvp<TKey,TValue> + +The default constructor. + +```csharp +public Kvp() +``` + + +--- + +#### Kvp<TKey,TValue> + +```csharp +public Kvp(TKey key, TValue value) +``` + + +### Properties + +#### Key + +```csharp +public TKey Key { get; set; } +``` + + +--- + +#### Value + +```csharp +public TValue Value { get; set; } +``` + + +### Methods + +#### DeepClone + +```csharp +public object DeepClone() +``` + + +--- + +#### Equals + +```csharp +public override bool Equals(object obj) +``` + + +--- + +#### GetHashCode + +```csharp +public override int GetHashCode() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/pagedresult-1.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/pagedresult-1.md new file mode 100644 index 00000000000..7cb7e673a44 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/pagedresult-1.md @@ -0,0 +1,44 @@ +--- +title: PagedResult +description: API reference for PagedResult in Umbraco Commerce +--- +## PagedResult<T> + +Represents a paged result for a model collection + +```csharp +public class PagedResult : PagedResultBase +``` + +**Inheritance** + +* Class [PagedResultBase](pagedresultbase.md) + +**Namespace** +* [Umbraco.Commerce.Common.Models](README.md) + +**Parameters** + +| Parameter | Description | +| --- | --- | +| T | | + +### Constructors + +#### PagedResult<T> + +```csharp +public PagedResult(long totalItems, long pageNumber, long pageSize) +``` + + +### Properties + +#### Items + +```csharp +public IEnumerable Items { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/pagedresultbase.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/pagedresultbase.md new file mode 100644 index 00000000000..2c357e4e0cd --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/pagedresultbase.md @@ -0,0 +1,76 @@ +--- +title: PagedResultBase +description: API reference for PagedResultBase in Umbraco Commerce +--- +## PagedResultBase + +Represents a paged result for a model collection + +```csharp +public abstract class PagedResultBase +``` + +**Namespace** +* [Umbraco.Commerce.Common.Models](README.md) + +### Constructors + +#### PagedResultBase + +```csharp +public PagedResultBase(long totalItems, long pageNumber, long pageSize) +``` + + +### Properties + +#### PageNumber + +```csharp +public long PageNumber { get; } +``` + + +--- + +#### PageSize + +```csharp +public long PageSize { get; } +``` + + +--- + +#### TotalItems + +```csharp +public long TotalItems { get; } +``` + + +--- + +#### TotalPages + +```csharp +public long TotalPages { get; } +``` + + +### Methods + +#### GetSkipSize + +Calculates the skip size based on the paged parameters specified + +```csharp +public int GetSkipSize() +``` + +**Remarks** + +Returns 0 if the page number or page size is zero + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/stringcomparisontype.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/stringcomparisontype.md new file mode 100644 index 00000000000..872b3834075 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/stringcomparisontype.md @@ -0,0 +1,23 @@ +--- +title: StringComparisonType +description: API reference for StringComparisonType in Umbraco Commerce +--- +## StringComparisonType + +```csharp +public enum StringComparisonType +``` + +**Namespace** +* [Umbraco.Commerce.Common.Models](README.md) + +**Values** + +| Name | Value | Description | +| --- | --- | --- | +| Equals | `0` | | +| Contains | `1` | | +| StartsWith | `2` | | +| EndsWith | `3` | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/validationerror.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/validationerror.md new file mode 100644 index 00000000000..b45e837f1cf --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/validationerror.md @@ -0,0 +1,32 @@ +--- +title: ValidationError +description: API reference for ValidationError in Umbraco Commerce +--- +## ValidationError + +```csharp +public class ValidationError +``` + +**Namespace** +* [Umbraco.Commerce.Common.Models](README.md) + +### Constructors + +#### ValidationError + +```csharp +public ValidationError(string msg) +``` + + +### Properties + +#### Message + +```csharp +public string Message { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/valueobjectbase.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/valueobjectbase.md new file mode 100644 index 00000000000..f263f35f8ef --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-models/valueobjectbase.md @@ -0,0 +1,83 @@ +--- +title: ValueObjectBase +description: API reference for ValueObjectBase in Umbraco Commerce +--- +## ValueObjectBase + +Base class for an immutable value object + +```csharp +public abstract class ValueObjectBase : IDeepCloneable +``` + +**Inheritance** + +* interface [IDeepCloneable](../umbraco-commerce-common/ideepcloneable.md) + +**Namespace** +* [Umbraco.Commerce.Common.Models](README.md) + +### Methods + +#### DeepClone + +Deep clones the entity and all of it's child entities + +```csharp +public abstract object DeepClone() +``` + +**Returns** + +A deep clones entity instance + + +--- + +#### Equals + +Compares the entity against another entity for equality + +```csharp +public override bool Equals(object obj) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| obj | The entity to compare against | + +**Returns** + +Returns `true` if the two entities are equal, otherwise returns `false`. + + +--- + +#### GetHashCode + +```csharp +public override int GetHashCode() +``` + + +### Operators + +#### ValueObjectBase Equality + +```csharp +public static bool operator ==(ValueObjectBase a, ValueObjectBase b) +``` + + +--- + +#### ValueObjectBase Inequality + +```csharp +public static bool operator !=(ValueObjectBase a, ValueObjectBase b) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-events/README.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-events/README.md new file mode 100644 index 00000000000..58db9904f03 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-events/README.md @@ -0,0 +1,13 @@ +--- +title: Umbraco.Commerce.Common.Pipelines.Events +description: API reference for Umbraco.Commerce.Common.Pipelines.Events in Umbraco Commerce +--- +## Umbraco.Commerce.Common.Pipelines.Events namespace + +| Public Type | Description | +| --- | --- | +| class [PipelineFailNotification](pipelinefailnotification.md) | | +| abstract class [PipelineNotificationEventBase](pipelinenotificationeventbase.md) | | +| class [PipelineSuccessNotification](pipelinesuccessnotification.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-events/pipelinefailnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-events/pipelinefailnotification.md new file mode 100644 index 00000000000..260de841174 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-events/pipelinefailnotification.md @@ -0,0 +1,28 @@ +--- +title: PipelineFailNotification +description: API reference for PipelineFailNotification in Umbraco Commerce +--- +## PipelineFailNotification + +```csharp +public class PipelineFailNotification : PipelineNotificationEventBase, INotificationEvent +``` + +**Inheritance** + +* Class [PipelineNotificationEventBase](pipelinenotificationeventbase.md) +* interface [INotificationEvent](../umbraco-commerce-common-events/inotificationevent.md) + +**Namespace** +* [Umbraco.Commerce.Common.Pipelines.Events](README.md) + +### Constructors + +#### PipelineFailNotification + +```csharp +public PipelineFailNotification(IEnumerable pipeline, PipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-events/pipelinenotificationeventbase.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-events/pipelinenotificationeventbase.md new file mode 100644 index 00000000000..bcd11226047 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-events/pipelinenotificationeventbase.md @@ -0,0 +1,45 @@ +--- +title: PipelineNotificationEventBase +description: API reference for PipelineNotificationEventBase in Umbraco Commerce +--- +## PipelineNotificationEventBase + +```csharp +public abstract class PipelineNotificationEventBase : NotificationEventBase +``` + +**Inheritance** + +* Class [NotificationEventBase](../umbraco-commerce-common-events/notificationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Common.Pipelines.Events](README.md) + +### Constructors + +#### PipelineNotificationEventBase + +```csharp +public PipelineNotificationEventBase(IEnumerable pipeline, PipelineArgs args) +``` + + +### Properties + +#### Pipeline + +```csharp +public IEnumerable Pipeline { get; set; } +``` + + +--- + +#### PipelineArgs + +```csharp +public PipelineArgs PipelineArgs { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-events/pipelinesuccessnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-events/pipelinesuccessnotification.md new file mode 100644 index 00000000000..4572fd71415 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-events/pipelinesuccessnotification.md @@ -0,0 +1,28 @@ +--- +title: PipelineSuccessNotification +description: API reference for PipelineSuccessNotification in Umbraco Commerce +--- +## PipelineSuccessNotification + +```csharp +public class PipelineSuccessNotification : PipelineNotificationEventBase, INotificationEvent +``` + +**Inheritance** + +* Class [PipelineNotificationEventBase](pipelinenotificationeventbase.md) +* interface [INotificationEvent](../umbraco-commerce-common-events/inotificationevent.md) + +**Namespace** +* [Umbraco.Commerce.Common.Pipelines.Events](README.md) + +### Constructors + +#### PipelineSuccessNotification + +```csharp +public PipelineSuccessNotification(IEnumerable pipeline, PipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-tasks/README.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-tasks/README.md new file mode 100644 index 00000000000..f654657dd79 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-tasks/README.md @@ -0,0 +1,18 @@ +--- +title: Umbraco.Commerce.Common.Pipelines.Tasks +description: API reference for Umbraco.Commerce.Common.Pipelines.Tasks in Umbraco Commerce +--- +## Umbraco.Commerce.Common.Pipelines.Tasks namespace + +| Public Type | Description | +| --- | --- | +| abstract class [NotificationEventTaskBase<TModel>](notificationeventtaskbase-1.md) | | +| abstract class [NotificationEventTaskBase<TEvent,TModel>](notificationeventtaskbase-2.md) | | +| abstract class [PipelineTaskBase<T>](pipelinetaskbase-1.md) | | +| abstract class [PipelineTaskBase<T,TResult>](pipelinetaskbase-2.md) | | +| abstract class [PipelineTaskBase](pipelinetaskbase.md) | | +| abstract class [PipelineTaskWithTypedArgsBase<TArgs,T>](pipelinetaskwithtypedargsbase-2.md) | | +| abstract class [PipelineTaskWithTypedArgsBase<TArgs,T,TResult>](pipelinetaskwithtypedargsbase-3.md) | | +| abstract class [SubPipelineTaskBase<TPipeline,TItem>](subpipelinetaskbase-2.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-tasks/notificationeventtaskbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-tasks/notificationeventtaskbase-1.md new file mode 100644 index 00000000000..59b00d424fc --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-tasks/notificationeventtaskbase-1.md @@ -0,0 +1,18 @@ +--- +title: NotificationEventTaskBase +description: API reference for NotificationEventTaskBase in Umbraco Commerce +--- +## NotificationEventTaskBase<TModel> + +```csharp +public abstract class NotificationEventTaskBase : PipelineTaskBase +``` + +**Inheritance** + +* Class [PipelineTaskBase<T>](pipelinetaskbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Common.Pipelines.Tasks](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-tasks/notificationeventtaskbase-2.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-tasks/notificationeventtaskbase-2.md new file mode 100644 index 00000000000..cb46020b2a9 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-tasks/notificationeventtaskbase-2.md @@ -0,0 +1,28 @@ +--- +title: NotificationEventTaskBase +description: API reference for NotificationEventTaskBase in Umbraco Commerce +--- +## NotificationEventTaskBase<TEvent,TModel> + +```csharp +public abstract class NotificationEventTaskBase : NotificationEventTaskBase + where TEvent : INotificationEvent +``` + +**Inheritance** + +* Class [NotificationEventTaskBase<TModel>](notificationeventtaskbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Common.Pipelines.Tasks](README.md) + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(PipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-tasks/pipelinetaskbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-tasks/pipelinetaskbase-1.md new file mode 100644 index 00000000000..a266e34c358 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-tasks/pipelinetaskbase-1.md @@ -0,0 +1,21 @@ +--- +title: PipelineTaskBase +description: API reference for PipelineTaskBase in Umbraco Commerce +--- +## PipelineTaskBase<T> + +```csharp +public abstract class PipelineTaskBase : PipelineTaskBase, IPipelineTask, + IPipelineTask +``` + +**Inheritance** + +* Class [PipelineTaskBase<T,TResult>](pipelinetaskbase-2.md) +* interface [IPipelineTask<T>](../umbraco-commerce-common-pipelines/ipipelinetask-1.md) +* interface [IPipelineTask<T,TResult>](../umbraco-commerce-common-pipelines/ipipelinetask-2.md) + +**Namespace** +* [Umbraco.Commerce.Common.Pipelines.Tasks](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-tasks/pipelinetaskbase-2.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-tasks/pipelinetaskbase-2.md new file mode 100644 index 00000000000..119af864af7 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-tasks/pipelinetaskbase-2.md @@ -0,0 +1,239 @@ +--- +title: PipelineTaskBase +description: API reference for PipelineTaskBase in Umbraco Commerce +--- +## PipelineTaskBase<T,TResult> + +```csharp +public abstract class PipelineTaskBase : PipelineTaskBase, IPipelineAction, + IPipelineTask +``` + +**Inheritance** + +* Class [PipelineTaskBase](pipelinetaskbase.md) +* interface [IPipelineAction<T>](../umbraco-commerce-common-pipelines/ipipelineaction-1.md) +* interface [IPipelineTask<T,TResult>](../umbraco-commerce-common-pipelines/ipipelinetask-2.md) + +**Namespace** +* [Umbraco.Commerce.Common.Pipelines.Tasks](README.md) + +### Methods + +#### Execute + +Executes the pipeline task. + +```csharp +public override PipelineResult Execute(PipelineArgs input) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| input | The pipeline args. | + +**Returns** + +A pipeline result. + + +--- + +#### Execute + +Executes the pipeline task. + +```csharp +public abstract PipelineResult Execute(PipelineArgs args) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| input | The pipeline args. | + +**Returns** + +A pipeline result. + + +--- + +#### Fail + +Creates a fail pipeline result. + +```csharp +public virtual PipelineResult Fail() +``` + +**Returns** + +A fail pipeline result. + + +--- + +#### Fail (1 of 2) + +Creates a fail pipeline result. + +```csharp +public override PipelineResult Fail(object result) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| result | The result data. | + +**Returns** + +A fail pipeline result. + +--- + +#### Fail (2 of 2) + +Creates a fail pipeline result. + +```csharp +public override PipelineResult Fail(object result, Exception exception) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| result | The result data. | +| exception | An exception message. | + +**Returns** + +A fail pipeline result. + + +--- + +#### Fail (1 of 3) + +Creates a fail pipeline result. + +```csharp +public virtual PipelineResult Fail(TResult result) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| result | The result data. | + +**Returns** + +A fail pipeline result. + +--- + +#### Fail (2 of 3) + +Creates a fail pipeline result. + +```csharp +public virtual PipelineResult Fail(Exception exception) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| exception | An exception message. | + +**Returns** + +A fail pipeline result. + +--- + +#### Fail (3 of 3) + +Creates a fail pipeline result. + +```csharp +public virtual PipelineResult Fail(TResult result, Exception exception) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| result | The result data. | +| exception | An exception message. | + +**Returns** + +A fail pipeline result. + + +--- + +#### Ok + +Creates a success pipeline result. + +```csharp +public virtual PipelineResult Ok() +``` + +**Returns** + +A success pipeline result. + + +--- + +#### Ok + +Creates a success pipeline result. + +```csharp +public override PipelineResult Ok(object result) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| result | The result data. | + +**Returns** + +A success pipeline result. + + +--- + +#### Ok + +Creates a success pipeline result. + +```csharp +public virtual PipelineResult Ok(TResult result) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| result | The result data. | + +**Returns** + +A success pipeline result. + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-tasks/pipelinetaskbase.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-tasks/pipelinetaskbase.md new file mode 100644 index 00000000000..d57c90861a3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-tasks/pipelinetaskbase.md @@ -0,0 +1,153 @@ +--- +title: PipelineTaskBase +description: API reference for PipelineTaskBase in Umbraco Commerce +--- +## PipelineTaskBase + +```csharp +public abstract class PipelineTaskBase : IPipelineAction, IPipelineTask +``` + +**Inheritance** + +* interface [IPipelineAction](../umbraco-commerce-common-pipelines/ipipelineaction.md) +* interface [IPipelineTask](../umbraco-commerce-common-pipelines/ipipelinetask.md) + +**Namespace** +* [Umbraco.Commerce.Common.Pipelines.Tasks](README.md) + +### Methods + +#### Execute + +Executes the pipeline task. + +```csharp +public abstract PipelineResult Execute(PipelineArgs args) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| args | The pipeline args. | + +**Returns** + +A pipeline result. + + +--- + +#### Fail + +Creates a fail pipeline result. + +```csharp +public virtual PipelineResult Fail() +``` + +**Returns** + +A fail pipeline result. + + +--- + +#### Fail (1 of 3) + +Creates a fail pipeline result. + +```csharp +public virtual PipelineResult Fail(object result) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| result | The result data. | + +**Returns** + +A fail pipeline result. + +--- + +#### Fail (2 of 3) + +Creates a fail pipeline result. + +```csharp +public virtual PipelineResult Fail(Exception exception) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| exception | An exception message. | + +**Returns** + +A fail pipeline result. + +--- + +#### Fail (3 of 3) + +Creates a fail pipeline result. + +```csharp +public virtual PipelineResult Fail(object result, Exception exception) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| result | The result data. | +| exception | An exception message. | + +**Returns** + +A fail pipeline result. + + +--- + +#### Ok + +Creates a success pipeline result. + +```csharp +public virtual PipelineResult Ok() +``` + +**Returns** + +A success pipeline result. + + +--- + +#### Ok + +Creates a success pipeline result. + +```csharp +public virtual PipelineResult Ok(object result) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| result | The result data. | + +**Returns** + +A success pipeline result. + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-tasks/pipelinetaskwithtypedargsbase-2.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-tasks/pipelinetaskwithtypedargsbase-2.md new file mode 100644 index 00000000000..49c2f09e22c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-tasks/pipelinetaskwithtypedargsbase-2.md @@ -0,0 +1,49 @@ +--- +title: PipelineTaskWithTypedArgsBase +description: API reference for PipelineTaskWithTypedArgsBase in Umbraco Commerce +--- +## PipelineTaskWithTypedArgsBase<TArgs,T> + +```csharp +public abstract class PipelineTaskWithTypedArgsBase : PipelineTaskBase + where TArgs : PipelineArgs +``` + +**Inheritance** + +* Class [PipelineTaskBase<T>](pipelinetaskbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Common.Pipelines.Tasks](README.md) + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(PipelineArgs args) +``` + + +--- + +#### Execute + +Executes the pipeline task. + +```csharp +public abstract PipelineResult Execute(TArgs args) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| input | The pipeline args. | + +**Returns** + +A pipeline result. + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-tasks/pipelinetaskwithtypedargsbase-3.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-tasks/pipelinetaskwithtypedargsbase-3.md new file mode 100644 index 00000000000..0c4315d7d73 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-tasks/pipelinetaskwithtypedargsbase-3.md @@ -0,0 +1,50 @@ +--- +title: PipelineTaskWithTypedArgsBase +description: API reference for PipelineTaskWithTypedArgsBase in Umbraco Commerce +--- +## PipelineTaskWithTypedArgsBase<TArgs,T,TResult> + +```csharp +public abstract class PipelineTaskWithTypedArgsBase : + PipelineTaskBase + where TArgs : PipelineArgs +``` + +**Inheritance** + +* Class [PipelineTaskBase<T,TResult>](pipelinetaskbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Common.Pipelines.Tasks](README.md) + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(PipelineArgs args) +``` + + +--- + +#### Execute + +Executes the pipeline task. + +```csharp +public abstract PipelineResult Execute(TArgs args) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| input | The pipeline args. | + +**Returns** + +A pipeline result. + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-tasks/subpipelinetaskbase-2.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-tasks/subpipelinetaskbase-2.md new file mode 100644 index 00000000000..e49e4431002 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines-tasks/subpipelinetaskbase-2.md @@ -0,0 +1,37 @@ +--- +title: SubPipelineTaskBase +description: API reference for SubPipelineTaskBase in Umbraco Commerce +--- +## SubPipelineTaskBase<TPipeline,TItem> + +```csharp +public abstract class SubPipelineTaskBase : PipelineTaskBase + where TPipeline : IPipelineTaskCollection +``` + +**Inheritance** + +* Class [PipelineTaskBase<T>](pipelinetaskbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Common.Pipelines.Tasks](README.md) + +### Properties + +#### Condition + +```csharp +public virtual Func Condition { get; } +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(PipelineArgs input) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/README.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/README.md new file mode 100644 index 00000000000..3beee265dc0 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/README.md @@ -0,0 +1,33 @@ +--- +title: Umbraco.Commerce.Common.Pipelines +description: API reference for Umbraco.Commerce.Common.Pipelines in Umbraco Commerce +--- +## Umbraco.Commerce.Common.Pipelines namespace + +| Public Type | Description | +| --- | --- | +| class [CancelledPipelineException](cancelledpipelineexception.md) | | +| class [InProcPipelineInvoker](inprocpipelineinvoker.md) | | +| interface [IPipelineAction<T>](ipipelineaction-1.md) | | +| interface [IPipelineAction](ipipelineaction.md) | | +| interface [IPipelineFactory](ipipelinefactory.md) | | +| interface [IPipelineInvoker](ipipelineinvoker.md) | | +| interface [IPipelineTask<T>](ipipelinetask-1.md) | | +| interface [IPipelineTask<T,TResult>](ipipelinetask-2.md) | | +| interface [IPipelineTask](ipipelinetask.md) | | +| interface [IPipelineTaskCollection<T>](ipipelinetaskcollection-1.md) | | +| interface [IPipelineTaskCollection<T,TResult>](ipipelinetaskcollection-2.md) | | +| interface [IPipelineTaskCollection](ipipelinetaskcollection.md) | | +| interface [IPiplineTask](ipiplinetask.md) | | +| class [Pipeline](pipeline.md) | | +| class [PipelineArgs<T>](pipelineargs-1.md) | | +| class [PipelineArgs](pipelineargs.md) | | +| class [PipelineException](pipelineexception.md) | | +| class [PipelineFactory](pipelinefactory.md) | | +| class [PipelineResult<TResult>](pipelineresult-1.md) | | +| class [PipelineResult](pipelineresult.md) | | +| class [PipelineTaskCollection<T>](pipelinetaskcollection-1.md) | | +| class [PipelineTaskCollection<T,TResult>](pipelinetaskcollection-2.md) | | +| class [ValidationPipelineException](validationpipelineexception.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/cancelledpipelineexception.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/cancelledpipelineexception.md new file mode 100644 index 00000000000..59fe72bff83 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/cancelledpipelineexception.md @@ -0,0 +1,38 @@ +--- +title: CancelledPipelineException +description: API reference for CancelledPipelineException in Umbraco Commerce +--- +## CancelledPipelineException + +```csharp +public class CancelledPipelineException : PipelineException +``` + +**Inheritance** + +* Class [PipelineException](pipelineexception.md) + +**Namespace** +* [Umbraco.Commerce.Common.Pipelines](README.md) + +### Constructors + +#### CancelledPipelineException + +The default constructor. + +```csharp +public CancelledPipelineException() +``` + + +--- + +#### CancelledPipelineException + +```csharp +public CancelledPipelineException(string msg) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/inprocpipelineinvoker.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/inprocpipelineinvoker.md new file mode 100644 index 00000000000..fef85dfa2e5 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/inprocpipelineinvoker.md @@ -0,0 +1,75 @@ +--- +title: InProcPipelineInvoker +description: API reference for InProcPipelineInvoker in Umbraco Commerce +--- +## InProcPipelineInvoker + +```csharp +public class InProcPipelineInvoker : IPipelineInvoker +``` + +**Inheritance** + +* interface [IPipelineInvoker](ipipelineinvoker.md) + +**Namespace** +* [Umbraco.Commerce.Common.Pipelines](README.md) + +### Constructors + +#### InProcPipelineInvoker + +The default constructor. + +```csharp +public InProcPipelineInvoker() +``` + + +### Methods + +#### Invoke<TContext> + +Invoked the pipeline, executing the pipeline tasks sequentially. + +```csharp +public PipelineResult Invoke(IEnumerable> pipelines, + PipelineArgs args) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| pipelineTasks | The list of pipeline tasks to execute. | +| args | The initial args to pass to the pipeline tasks. | + +**Returns** + +An attempt result. + + +--- + +#### Invoke<TContext,TResult> + +Invoked the pipeline, executing the pipeline tasks sequentially. + +```csharp +public PipelineResult Invoke( + IEnumerable> pipelines, PipelineArgs args) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| pipelineTasks | The list of pipeline tasks to execute. | +| args | The initial args to pass to the pipeline tasks. | + +**Returns** + +An attempt result. + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/ipipelineaction-1.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/ipipelineaction-1.md new file mode 100644 index 00000000000..2beb54e76b9 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/ipipelineaction-1.md @@ -0,0 +1,27 @@ +--- +title: IPipelineAction +description: API reference for IPipelineAction in Umbraco Commerce +--- +## IPipelineAction<T> + +```csharp +public interface IPipelineAction : IPipelineAction +``` + +**Inheritance** + +* interface [IPipelineAction](ipipelineaction.md) + +**Namespace** +* [Umbraco.Commerce.Common.Pipelines](README.md) + +### Methods + +#### Execute + +```csharp +public void Execute(PipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/ipipelineaction.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/ipipelineaction.md new file mode 100644 index 00000000000..97fed7b13e4 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/ipipelineaction.md @@ -0,0 +1,23 @@ +--- +title: IPipelineAction +description: API reference for IPipelineAction in Umbraco Commerce +--- +## IPipelineAction + +```csharp +public interface IPipelineAction +``` + +**Namespace** +* [Umbraco.Commerce.Common.Pipelines](README.md) + +### Methods + +#### Execute + +```csharp +public void Execute(PipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/ipipelinefactory.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/ipipelinefactory.md new file mode 100644 index 00000000000..a5fbc8ba0ea --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/ipipelinefactory.md @@ -0,0 +1,24 @@ +--- +title: IPipelineFactory +description: API reference for IPipelineFactory in Umbraco Commerce +--- +## IPipelineFactory + +```csharp +public interface IPipelineFactory +``` + +**Namespace** +* [Umbraco.Commerce.Common.Pipelines](README.md) + +### Methods + +#### Create<T> + +```csharp +public T Create() + where T : IPipelineTaskCollection +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/ipipelineinvoker.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/ipipelineinvoker.md new file mode 100644 index 00000000000..e555cdb85ff --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/ipipelineinvoker.md @@ -0,0 +1,23 @@ +--- +title: IPipelineInvoker +description: API reference for IPipelineInvoker in Umbraco Commerce +--- +## IPipelineInvoker + +```csharp +public interface IPipelineInvoker +``` + +**Namespace** +* [Umbraco.Commerce.Common.Pipelines](README.md) + +### Methods + +#### Invoke + +```csharp +public PipelineResult Invoke(IEnumerable pipelineTasks, PipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/ipipelinetask-1.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/ipipelinetask-1.md new file mode 100644 index 00000000000..d8378c4a6ef --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/ipipelinetask-1.md @@ -0,0 +1,18 @@ +--- +title: IPipelineTask +description: API reference for IPipelineTask in Umbraco Commerce +--- +## IPipelineTask<T> + +```csharp +public interface IPipelineTask : IPipelineTask +``` + +**Inheritance** + +* interface [IPipelineTask<T,TResult>](ipipelinetask-2.md) + +**Namespace** +* [Umbraco.Commerce.Common.Pipelines](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/ipipelinetask-2.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/ipipelinetask-2.md new file mode 100644 index 00000000000..e135dcfa189 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/ipipelinetask-2.md @@ -0,0 +1,27 @@ +--- +title: IPipelineTask +description: API reference for IPipelineTask in Umbraco Commerce +--- +## IPipelineTask<T,TResult> + +```csharp +public interface IPipelineTask : IPipelineTask +``` + +**Inheritance** + +* interface [IPipelineTask](ipipelinetask.md) + +**Namespace** +* [Umbraco.Commerce.Common.Pipelines](README.md) + +### Methods + +#### Execute + +```csharp +public PipelineResult Execute(PipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/ipipelinetask.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/ipipelinetask.md new file mode 100644 index 00000000000..8b9deb7b588 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/ipipelinetask.md @@ -0,0 +1,23 @@ +--- +title: IPipelineTask +description: API reference for IPipelineTask in Umbraco Commerce +--- +## IPipelineTask + +```csharp +public interface IPipelineTask +``` + +**Namespace** +* [Umbraco.Commerce.Common.Pipelines](README.md) + +### Methods + +#### Execute + +```csharp +public PipelineResult Execute(PipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/ipipelinetaskcollection-1.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/ipipelinetaskcollection-1.md new file mode 100644 index 00000000000..42fe282a959 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/ipipelinetaskcollection-1.md @@ -0,0 +1,23 @@ +--- +title: IPipelineTaskCollection +description: API reference for IPipelineTaskCollection in Umbraco Commerce +--- +## IPipelineTaskCollection<T> + +```csharp +public interface IPipelineTaskCollection : IComposedCollection>, + IComposedCollection>, IComposedCollection, + IEnumerable>, IEnumerable>, IEnumerable, + IPipelineTaskCollection, IReadOnlyCollection>, + IReadOnlyCollection>, IReadOnlyCollection +``` + +**Inheritance** + +* interface [IComposedCollection<T>](../umbraco-commerce-common-composing/icomposedcollection-1.md) +* interface [IPipelineTaskCollection<T,TResult>](ipipelinetaskcollection-2.md) + +**Namespace** +* [Umbraco.Commerce.Common.Pipelines](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/ipipelinetaskcollection-2.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/ipipelinetaskcollection-2.md new file mode 100644 index 00000000000..30b3f0ad98a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/ipipelinetaskcollection-2.md @@ -0,0 +1,31 @@ +--- +title: IPipelineTaskCollection +description: API reference for IPipelineTaskCollection in Umbraco Commerce +--- +## IPipelineTaskCollection<T,TResult> + +```csharp +public interface IPipelineTaskCollection : + IComposedCollection>, IComposedCollection, + IEnumerable>, IEnumerable, IPipelineTaskCollection, + IReadOnlyCollection>, IReadOnlyCollection +``` + +**Inheritance** + +* interface [IComposedCollection<T>](../umbraco-commerce-common-composing/icomposedcollection-1.md) +* interface [IPipelineTaskCollection](ipipelinetaskcollection.md) + +**Namespace** +* [Umbraco.Commerce.Common.Pipelines](README.md) + +### Properties + +#### OnFail + +```csharp +public IPipelineAction OnFail { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/ipipelinetaskcollection.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/ipipelinetaskcollection.md new file mode 100644 index 00000000000..b3f832e74eb --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/ipipelinetaskcollection.md @@ -0,0 +1,28 @@ +--- +title: IPipelineTaskCollection +description: API reference for IPipelineTaskCollection in Umbraco Commerce +--- +## IPipelineTaskCollection + +```csharp +public interface IPipelineTaskCollection : IComposedCollection, + IEnumerable, IReadOnlyCollection +``` + +**Inheritance** + +* interface [IComposedCollection<T>](../umbraco-commerce-common-composing/icomposedcollection-1.md) + +**Namespace** +* [Umbraco.Commerce.Common.Pipelines](README.md) + +### Properties + +#### OnFail + +```csharp +public IPipelineAction OnFail { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/ipiplinetask.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/ipiplinetask.md new file mode 100644 index 00000000000..577ae0e2077 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/ipiplinetask.md @@ -0,0 +1,14 @@ +--- +title: IPiplineTask +description: API reference for IPiplineTask in Umbraco Commerce +--- +## IPiplineTask + +```csharp +public interface IPiplineTask +``` + +**Namespace** +* [Umbraco.Commerce.Common.Pipelines](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/pipeline.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/pipeline.md new file mode 100644 index 00000000000..de5be89c689 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/pipeline.md @@ -0,0 +1,67 @@ +--- +title: Pipeline +description: API reference for Pipeline in Umbraco Commerce +--- +## Pipeline + +```csharp +public class Pipeline +``` + +**Namespace** +* [Umbraco.Commerce.Common.Pipelines](README.md) + +### Constructors + +#### Pipeline + +The default constructor. + +```csharp +public Pipeline() +``` + + +### Methods + +#### Invoke<TPipeline,TEntity> (1 of 3) + +```csharp +public static PipelineResult Invoke(TEntity entity) + where TPipeline : IEnumerable, IPipelineTaskCollection +``` + +--- + +#### Invoke<TPipeline,TEntity> (2 of 3) + +```csharp +public static PipelineResult Invoke(TEntity entity, + object additionalData) + where TPipeline : IEnumerable, IPipelineTaskCollection +``` + +--- + +#### Invoke<TPipeline,TEntity> (3 of 3) + +```csharp +public static PipelineResult Invoke(TEntity entity, + IDictionary additionalData = null) + where TPipeline : IEnumerable, IPipelineTaskCollection +``` + + +--- + +#### Invoke<TPipeline,TArgs,TEntity> + +```csharp +public static PipelineResult Invoke( + Func argsFactory) + where TPipeline : IEnumerable, IPipelineTaskCollection + where TArgs : PipelineArgs +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelineargs-1.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelineargs-1.md new file mode 100644 index 00000000000..cfa313a569f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelineargs-1.md @@ -0,0 +1,38 @@ +--- +title: PipelineArgs +description: API reference for PipelineArgs in Umbraco Commerce +--- +## PipelineArgs<T> + +```csharp +public class PipelineArgs : PipelineArgs +``` + +**Inheritance** + +* Class [PipelineArgs](pipelineargs.md) + +**Namespace** +* [Umbraco.Commerce.Common.Pipelines](README.md) + +### Constructors + +#### PipelineArgs<T> + +```csharp +public PipelineArgs(IUnitOfWork uow, T model) +``` + + +### Properties + +#### Model + +Gets the model of this [`PipelineArgs`](pipelineargs-1.md). + +```csharp +public T Model { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelineargs.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelineargs.md new file mode 100644 index 00000000000..1944e6c7a11 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelineargs.md @@ -0,0 +1,64 @@ +--- +title: PipelineArgs +description: API reference for PipelineArgs in Umbraco Commerce +--- +## PipelineArgs + +```csharp +public class PipelineArgs +``` + +**Namespace** +* [Umbraco.Commerce.Common.Pipelines](README.md) + +### Constructors + +#### PipelineArgs (1 of 2) + +```csharp +public PipelineArgs(IUnitOfWork uow, object model) +``` + +--- + +#### PipelineArgs (2 of 2) + +```csharp +public PipelineArgs(IUnitOfWork uow, object model, IDictionary additionalData) +``` + + +### Properties + +#### AdditionalData + +Gets the additional data of this [`PipelineArgs`](pipelineargs.md). + +```csharp +public IDictionary AdditionalData { get; } +``` + + +--- + +#### Model + +Gets the model of this [`PipelineArgs`](pipelineargs.md). + +```csharp +public object Model { get; } +``` + + +--- + +#### UnitOfWork + +Gets the pipelines [`IUnitOfWork`](../umbraco-commerce-common/iunitofwork.md). + +```csharp +public IUnitOfWork UnitOfWork { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelineexception.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelineexception.md new file mode 100644 index 00000000000..44b1c6e59ba --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelineexception.md @@ -0,0 +1,34 @@ +--- +title: PipelineException +description: API reference for PipelineException in Umbraco Commerce +--- +## PipelineException + +```csharp +public class PipelineException : Exception +``` + +**Namespace** +* [Umbraco.Commerce.Common.Pipelines](README.md) + +### Constructors + +#### PipelineException + +The default constructor. + +```csharp +public PipelineException() +``` + + +--- + +#### PipelineException + +```csharp +public PipelineException(string msg) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinefactory.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinefactory.md new file mode 100644 index 00000000000..333bb9ca674 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinefactory.md @@ -0,0 +1,37 @@ +--- +title: PipelineFactory +description: API reference for PipelineFactory in Umbraco Commerce +--- +## PipelineFactory + +```csharp +public class PipelineFactory : IPipelineFactory +``` + +**Inheritance** + +* interface [IPipelineFactory](ipipelinefactory.md) + +**Namespace** +* [Umbraco.Commerce.Common.Pipelines](README.md) + +### Constructors + +#### PipelineFactory + +```csharp +public PipelineFactory(IFactory factory) +``` + + +### Methods + +#### Create<T> + +```csharp +public T Create() + where T : IPipelineTaskCollection +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelineresult-1.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelineresult-1.md new file mode 100644 index 00000000000..35b49361bf5 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelineresult-1.md @@ -0,0 +1,29 @@ +--- +title: PipelineResult +description: API reference for PipelineResult in Umbraco Commerce +--- +## PipelineResult<TResult> + +```csharp +public class PipelineResult : PipelineResult +``` + +**Inheritance** + +* Class [PipelineResult](pipelineresult.md) + +**Namespace** +* [Umbraco.Commerce.Common.Pipelines](README.md) + +### Properties + +#### Data + +Gets the PipelineResult result. + +```csharp +public TResult Data { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelineresult.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelineresult.md new file mode 100644 index 00000000000..dedf97d8997 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelineresult.md @@ -0,0 +1,64 @@ +--- +title: PipelineResult +description: API reference for PipelineResult in Umbraco Commerce +--- +## PipelineResult + +```csharp +public class PipelineResult +``` + +**Namespace** +* [Umbraco.Commerce.Common.Pipelines](README.md) + +### Properties + +#### Data + +Gets the PipelineResult data. + +```csharp +public object Data { get; } +``` + + +--- + +#### Exception + +Gets the exception associated with an unsuccessful PipelineResult. + +```csharp +public Exception Exception { get; } +``` + + +--- + +#### Success + +Gets a value indicating whether this [`PipelineResult`](pipelineresult.md) was successful. + +```csharp +public bool Success { get; } +``` + + +### Operators + +#### PipelineResult Implicit + +Implicitly operator to check if the PipelineResult was successful without having to access the 'success' property + +```csharp +public static implicit operator bool(PipelineResult a) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| a | | + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskcollection-1.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskcollection-1.md new file mode 100644 index 00000000000..f0ae184bd6a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskcollection-1.md @@ -0,0 +1,44 @@ +--- +title: PipelineTaskCollection +description: API reference for PipelineTaskCollection in Umbraco Commerce +--- +## PipelineTaskCollection<T> + +```csharp +public class PipelineTaskCollection : ComposedCollection>, + IComposedCollection>, IComposedCollection>, + IComposedCollection, IEnumerable>, + IEnumerable>, IEnumerable, IPipelineTaskCollection, + IPipelineTaskCollection, IReadOnlyCollection>, + IReadOnlyCollection>, IReadOnlyCollection +``` + +**Inheritance** + +* Class [ComposedCollection<T>](../umbraco-commerce-common-composing/composedcollection-1.md) +* interface [IComposedCollection<T>](../umbraco-commerce-common-composing/icomposedcollection-1.md) +* interface [IPipelineTaskCollection<T>](ipipelinetaskcollection-1.md) +* interface [IPipelineTaskCollection<T,TResult>](ipipelinetaskcollection-2.md) + +**Namespace** +* [Umbraco.Commerce.Common.Pipelines](README.md) + +### Constructors + +#### PipelineTaskCollection<T> + +```csharp +public PipelineTaskCollection(Func>> itemsFactory) +``` + + +### Properties + +#### OnFail + +```csharp +public IPipelineAction OnFail { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskcollection-2.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskcollection-2.md new file mode 100644 index 00000000000..4c9f2b93e99 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskcollection-2.md @@ -0,0 +1,42 @@ +--- +title: PipelineTaskCollection +description: API reference for PipelineTaskCollection in Umbraco Commerce +--- +## PipelineTaskCollection<T,TResult> + +```csharp +public class PipelineTaskCollection : ComposedCollection>, + IComposedCollection>, IComposedCollection, + IEnumerable>, IEnumerable, + IPipelineTaskCollection, IReadOnlyCollection>, + IReadOnlyCollection +``` + +**Inheritance** + +* Class [ComposedCollection<T>](../umbraco-commerce-common-composing/composedcollection-1.md) +* interface [IComposedCollection<T>](../umbraco-commerce-common-composing/icomposedcollection-1.md) +* interface [IPipelineTaskCollection<T,TResult>](ipipelinetaskcollection-2.md) + +**Namespace** +* [Umbraco.Commerce.Common.Pipelines](README.md) + +### Constructors + +#### PipelineTaskCollection<T,TResult> + +```csharp +public PipelineTaskCollection(Func>> itemsFactory) +``` + + +### Properties + +#### OnFail + +```csharp +public IPipelineAction OnFail { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/validationpipelineexception.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/validationpipelineexception.md new file mode 100644 index 00000000000..862ff2be551 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-pipelines/validationpipelineexception.md @@ -0,0 +1,38 @@ +--- +title: ValidationPipelineException +description: API reference for ValidationPipelineException in Umbraco Commerce +--- +## ValidationPipelineException + +```csharp +public class ValidationPipelineException : PipelineException +``` + +**Inheritance** + +* Class [PipelineException](pipelineexception.md) + +**Namespace** +* [Umbraco.Commerce.Common.Pipelines](README.md) + +### Constructors + +#### ValidationPipelineException + +The default constructor. + +```csharp +public ValidationPipelineException() +``` + + +--- + +#### ValidationPipelineException + +```csharp +public ValidationPipelineException(string msg) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-resiliency/README.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-resiliency/README.md new file mode 100644 index 00000000000..e4b7164981c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-resiliency/README.md @@ -0,0 +1,13 @@ +--- +title: Umbraco.Commerce.Common.Resiliency +description: API reference for Umbraco.Commerce.Common.Resiliency in Umbraco Commerce +--- +## Umbraco.Commerce.Common.Resiliency namespace + +| Public Type | Description | +| --- | --- | +| class [ExecutionResult<TResult>](executionresult-1.md) | | +| interface [IExecutionStrategy](iexecutionstrategy.md) | | +| abstract class [NoRetryExecutionStrategy](noretryexecutionstrategy.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-resiliency/executionresult-1.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-resiliency/executionresult-1.md new file mode 100644 index 00000000000..ae7188f7e02 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-resiliency/executionresult-1.md @@ -0,0 +1,54 @@ +--- +title: ExecutionResult +description: API reference for ExecutionResult in Umbraco Commerce +--- +## ExecutionResult<TResult> + +```csharp +public class ExecutionResult +``` + +**Namespace** +* [Umbraco.Commerce.Common.Resiliency](README.md) + +### Constructors + +#### ExecutionResult<TResult> + +Creates a new instance of [`ExecutionResult`](executionresult-1.md). + +```csharp +public ExecutionResult(bool successful, TResult result) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| successful | `true` if the operation succeeded. | +| result | The result of the operation if successful. | + + +### Properties + +#### IsSuccessful + +Indicates whether the operation succeeded. + +```csharp +public virtual bool IsSuccessful { get; } +``` + + +--- + +#### Result + +The result of the operation if successful. + +```csharp +public virtual TResult Result { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-resiliency/iexecutionstrategy.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-resiliency/iexecutionstrategy.md new file mode 100644 index 00000000000..cb3b19a6693 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-resiliency/iexecutionstrategy.md @@ -0,0 +1,35 @@ +--- +title: IExecutionStrategy +description: API reference for IExecutionStrategy in Umbraco Commerce +--- +## IExecutionStrategy + +```csharp +public interface IExecutionStrategy +``` + +**Namespace** +* [Umbraco.Commerce.Common.Resiliency](README.md) + +### Methods + +#### Execute<TResult> + +```csharp +public TResult Execute(Func operation, + Func> verifySucceeded = null) +``` + + +--- + +#### ExecuteAsync<TResult> + +```csharp +public Task ExecuteAsync(Func> operation, + Func>> verifySucceeded = null, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-resiliency/noretryexecutionstrategy.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-resiliency/noretryexecutionstrategy.md new file mode 100644 index 00000000000..4edb5abf872 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-resiliency/noretryexecutionstrategy.md @@ -0,0 +1,40 @@ +--- +title: NoRetryExecutionStrategy +description: API reference for NoRetryExecutionStrategy in Umbraco Commerce +--- +## NoRetryExecutionStrategy + +```csharp +public abstract class NoRetryExecutionStrategy : IExecutionStrategy +``` + +**Inheritance** + +* interface [IExecutionStrategy](iexecutionstrategy.md) + +**Namespace** +* [Umbraco.Commerce.Common.Resiliency](README.md) + +### Methods + +#### Execute<TResult> + +```csharp +public virtual TResult Execute(Func operation, + Func> verifySucceeded = null) +``` + + +--- + +#### ExecuteAsync<TResult> + +```csharp +public virtual Task ExecuteAsync( + Func> operation, + Func>> verifySucceeded = null, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-security/README.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-security/README.md new file mode 100644 index 00000000000..cfa1c0d8b8c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-security/README.md @@ -0,0 +1,14 @@ +--- +title: Umbraco.Commerce.Common.Security +description: API reference for Umbraco.Commerce.Common.Security in Umbraco Commerce +--- +## Umbraco.Commerce.Common.Security namespace + +| Public Type | Description | +| --- | --- | +| interface [IHashProvider](ihashprovider.md) | | +| interface [IHashSecretProvider](ihashsecretprovider.md) | | +| class [SHA1HashProvider](sha1hashprovider.md) | | +| class [SHA256HashProvider](sha256hashprovider.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-security/ihashprovider.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-security/ihashprovider.md new file mode 100644 index 00000000000..79ee825a4ae --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-security/ihashprovider.md @@ -0,0 +1,23 @@ +--- +title: IHashProvider +description: API reference for IHashProvider in Umbraco Commerce +--- +## IHashProvider + +```csharp +public interface IHashProvider +``` + +**Namespace** +* [Umbraco.Commerce.Common.Security](README.md) + +### Methods + +#### ComputeHash + +```csharp +public string ComputeHash(object input) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-security/ihashsecretprovider.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-security/ihashsecretprovider.md new file mode 100644 index 00000000000..2e47a51e2e3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-security/ihashsecretprovider.md @@ -0,0 +1,23 @@ +--- +title: IHashSecretProvider +description: API reference for IHashSecretProvider in Umbraco Commerce +--- +## IHashSecretProvider + +```csharp +public interface IHashSecretProvider +``` + +**Namespace** +* [Umbraco.Commerce.Common.Security](README.md) + +### Methods + +#### GetSecret + +```csharp +public string GetSecret() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-security/sha1hashprovider.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-security/sha1hashprovider.md new file mode 100644 index 00000000000..826fe05430d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-security/sha1hashprovider.md @@ -0,0 +1,38 @@ +--- +title: SHA1HashProvider +description: API reference for SHA1HashProvider in Umbraco Commerce +--- +## SHA1HashProvider + +```csharp +public class SHA1HashProvider : IHashProvider +``` + +**Inheritance** + +* interface [IHashProvider](ihashprovider.md) + +**Namespace** +* [Umbraco.Commerce.Common.Security](README.md) + +### Constructors + +#### SHA1HashProvider + +The default constructor. + +```csharp +public SHA1HashProvider() +``` + + +### Methods + +#### ComputeHash + +```csharp +public string ComputeHash(object input) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-security/sha256hashprovider.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-security/sha256hashprovider.md new file mode 100644 index 00000000000..bdde66ab641 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-security/sha256hashprovider.md @@ -0,0 +1,36 @@ +--- +title: SHA256HashProvider +description: API reference for SHA256HashProvider in Umbraco Commerce +--- +## SHA256HashProvider + +```csharp +public class SHA256HashProvider : IHashProvider +``` + +**Inheritance** + +* interface [IHashProvider](ihashprovider.md) + +**Namespace** +* [Umbraco.Commerce.Common.Security](README.md) + +### Constructors + +#### SHA256HashProvider + +```csharp +public SHA256HashProvider(IHashSecretProvider secretProvider) +``` + + +### Methods + +#### ComputeHash + +```csharp +public string ComputeHash(object input) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-specifications/README.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-specifications/README.md new file mode 100644 index 00000000000..532e788150f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-specifications/README.md @@ -0,0 +1,21 @@ +--- +title: Umbraco.Commerce.Common.Specifications +description: API reference for Umbraco.Commerce.Common.Specifications in Umbraco Commerce +--- +## Umbraco.Commerce.Common.Specifications namespace + +| Public Type | Description | +| --- | --- | +| class [AndSpecification<T>](andspecification-1.md) | | +| interface [IQuerySpecification<T>](iqueryspecification-1.md) | | +| interface [IQuerySpecificationVisitor<T>](iqueryspecificationvisitor-1.md) | | +| interface [ISortSpecification<T>](isortspecification-1.md) | | +| interface [ISortSpecificationVisitor<T>](isortspecificationvisitor-1.md) | | +| interface [ISpecification<T>](ispecification-1.md) | | +| class [NotSpecification<T>](notspecification-1.md) | | +| class [OrSpecification<T>](orspecification-1.md) | | +| enum [Sort](sort.md) | | +| abstract class [SortSpecificationBase<T>](sortspecificationbase-1.md) | | +| class [ThenSpecification<T>](thenspecification-1.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-specifications/andspecification-1.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-specifications/andspecification-1.md new file mode 100644 index 00000000000..12b26fe19c1 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-specifications/andspecification-1.md @@ -0,0 +1,64 @@ +--- +title: AndSpecification +description: API reference for AndSpecification in Umbraco Commerce +--- +## AndSpecification<T> + +```csharp +public class AndSpecification : IQuerySpecification, ISpecification +``` + +**Inheritance** + +* interface [IQuerySpecification<T>](iqueryspecification-1.md) +* interface [ISpecification<T>](ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Common.Specifications](README.md) + +### Constructors + +#### AndSpecification<T> + +```csharp +public AndSpecification(IQuerySpecification left, IQuerySpecification right) +``` + + +### Properties + +#### Left + +```csharp +public IQuerySpecification Left { get; set; } +``` + + +--- + +#### Right + +```csharp +public IQuerySpecification Right { get; set; } +``` + + +### Methods + +#### Accept + +```csharp +public void Accept(IVisitor visitor) +``` + + +--- + +#### IsSatisfiedBy + +```csharp +public bool IsSatisfiedBy(T item) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecification-1.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecification-1.md new file mode 100644 index 00000000000..57d59d8b290 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecification-1.md @@ -0,0 +1,27 @@ +--- +title: IQuerySpecification +description: API reference for IQuerySpecification in Umbraco Commerce +--- +## IQuerySpecification<T> + +```csharp +public interface IQuerySpecification : ISpecification +``` + +**Inheritance** + +* interface [ISpecification<T>](ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Common.Specifications](README.md) + +### Methods + +#### IsSatisfiedBy + +```csharp +public bool IsSatisfiedBy(T item) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecificationvisitor-1.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecificationvisitor-1.md new file mode 100644 index 00000000000..40e316d47fd --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecificationvisitor-1.md @@ -0,0 +1,19 @@ +--- +title: IQuerySpecificationVisitor +description: API reference for IQuerySpecificationVisitor in Umbraco Commerce +--- +## IQuerySpecificationVisitor<T> + +```csharp +public interface IQuerySpecificationVisitor : IVisitor>, + IVisitor>, IVisitor> +``` + +**Inheritance** + +* interface [IVisitor<TElement>](../umbraco-commerce-common-visitors/ivisitor-1.md) + +**Namespace** +* [Umbraco.Commerce.Common.Specifications](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-specifications/isortspecification-1.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-specifications/isortspecification-1.md new file mode 100644 index 00000000000..207d68d35c4 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-specifications/isortspecification-1.md @@ -0,0 +1,35 @@ +--- +title: ISortSpecification +description: API reference for ISortSpecification in Umbraco Commerce +--- +## ISortSpecification<T> + +```csharp +public interface ISortSpecification : ISpecification +``` + +**Inheritance** + +* interface [ISpecification<T>](ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Common.Specifications](README.md) + +### Methods + +#### InvokeSort (1 of 2) + +```csharp +public IOrderedEnumerable InvokeSort(IEnumerable collection) +``` + +--- + +#### InvokeSort (2 of 2) + +```csharp +public IOrderedEnumerable InvokeSort(IOrderedEnumerable collection) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-specifications/isortspecificationvisitor-1.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-specifications/isortspecificationvisitor-1.md new file mode 100644 index 00000000000..576274c20cd --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-specifications/isortspecificationvisitor-1.md @@ -0,0 +1,18 @@ +--- +title: ISortSpecificationVisitor +description: API reference for ISortSpecificationVisitor in Umbraco Commerce +--- +## ISortSpecificationVisitor<T> + +```csharp +public interface ISortSpecificationVisitor : IVisitor> +``` + +**Inheritance** + +* interface [IVisitor<TElement>](../umbraco-commerce-common-visitors/ivisitor-1.md) + +**Namespace** +* [Umbraco.Commerce.Common.Specifications](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-specifications/ispecification-1.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-specifications/ispecification-1.md new file mode 100644 index 00000000000..a6ba17e6f33 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-specifications/ispecification-1.md @@ -0,0 +1,18 @@ +--- +title: ISpecification +description: API reference for ISpecification in Umbraco Commerce +--- +## ISpecification<T> + +```csharp +public interface ISpecification : IVisitable +``` + +**Inheritance** + +* interface [IVisitable](../umbraco-commerce-common-visitors/ivisitable.md) + +**Namespace** +* [Umbraco.Commerce.Common.Specifications](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-specifications/notspecification-1.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-specifications/notspecification-1.md new file mode 100644 index 00000000000..d6e4798fe8c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-specifications/notspecification-1.md @@ -0,0 +1,55 @@ +--- +title: NotSpecification +description: API reference for NotSpecification in Umbraco Commerce +--- +## NotSpecification<T> + +```csharp +public class NotSpecification : IQuerySpecification, ISpecification +``` + +**Inheritance** + +* interface [IQuerySpecification<T>](iqueryspecification-1.md) +* interface [ISpecification<T>](ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Common.Specifications](README.md) + +### Constructors + +#### NotSpecification<T> + +```csharp +public NotSpecification(IQuerySpecification specification) +``` + + +### Properties + +#### Specification + +```csharp +public IQuerySpecification Specification { get; set; } +``` + + +### Methods + +#### Accept + +```csharp +public void Accept(IVisitor visitor) +``` + + +--- + +#### IsSatisfiedBy + +```csharp +public bool IsSatisfiedBy(T item) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-specifications/orspecification-1.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-specifications/orspecification-1.md new file mode 100644 index 00000000000..17930685000 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-specifications/orspecification-1.md @@ -0,0 +1,64 @@ +--- +title: OrSpecification +description: API reference for OrSpecification in Umbraco Commerce +--- +## OrSpecification<T> + +```csharp +public class OrSpecification : IQuerySpecification, ISpecification +``` + +**Inheritance** + +* interface [IQuerySpecification<T>](iqueryspecification-1.md) +* interface [ISpecification<T>](ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Common.Specifications](README.md) + +### Constructors + +#### OrSpecification<T> + +```csharp +public OrSpecification(IQuerySpecification left, IQuerySpecification right) +``` + + +### Properties + +#### Left + +```csharp +public IQuerySpecification Left { get; set; } +``` + + +--- + +#### Right + +```csharp +public IQuerySpecification Right { get; set; } +``` + + +### Methods + +#### Accept + +```csharp +public void Accept(IVisitor visitor) +``` + + +--- + +#### IsSatisfiedBy + +```csharp +public bool IsSatisfiedBy(T item) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-specifications/sort.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-specifications/sort.md new file mode 100644 index 00000000000..52fc659c002 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-specifications/sort.md @@ -0,0 +1,21 @@ +--- +title: Sort +description: API reference for Sort in Umbraco Commerce +--- +## Sort + +```csharp +public enum Sort +``` + +**Namespace** +* [Umbraco.Commerce.Common.Specifications](README.md) + +**Values** + +| Name | Value | Description | +| --- | --- | --- | +| Ascending | `0` | | +| Descending | `1` | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-specifications/sortspecificationbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-specifications/sortspecificationbase-1.md new file mode 100644 index 00000000000..3a99ab76203 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-specifications/sortspecificationbase-1.md @@ -0,0 +1,54 @@ +--- +title: SortSpecificationBase +description: API reference for SortSpecificationBase in Umbraco Commerce +--- +## SortSpecificationBase<T> + +```csharp +public abstract class SortSpecificationBase : ISortSpecification, ISpecification +``` + +**Inheritance** + +* interface [ISortSpecification<T>](isortspecification-1.md) +* interface [ISpecification<T>](ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Common.Specifications](README.md) + +### Properties + +#### Sort + +```csharp +public Sort Sort { get; } +``` + + +### Methods + +#### Accept + +```csharp +public abstract void Accept(IVisitor visitor) +``` + + +--- + +#### InvokeSort (1 of 2) + +```csharp +public abstract IOrderedEnumerable InvokeSort(IEnumerable collection) +``` + +--- + +#### InvokeSort (2 of 2) + +```csharp +public abstract IOrderedEnumerable InvokeSort(IOrderedEnumerable collection) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-specifications/thenspecification-1.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-specifications/thenspecification-1.md new file mode 100644 index 00000000000..b10abf23b93 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-specifications/thenspecification-1.md @@ -0,0 +1,72 @@ +--- +title: ThenSpecification +description: API reference for ThenSpecification in Umbraco Commerce +--- +## ThenSpecification<T> + +```csharp +public class ThenSpecification : ISortSpecification, ISpecification +``` + +**Inheritance** + +* interface [ISortSpecification<T>](isortspecification-1.md) +* interface [ISpecification<T>](ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Common.Specifications](README.md) + +### Constructors + +#### ThenSpecification<T> + +```csharp +public ThenSpecification(ISortSpecification left, ISortSpecification right) +``` + + +### Properties + +#### Left + +```csharp +public ISortSpecification Left { get; set; } +``` + + +--- + +#### Right + +```csharp +public ISortSpecification Right { get; set; } +``` + + +### Methods + +#### Accept + +```csharp +public void Accept(IVisitor visitor) +``` + + +--- + +#### InvokeSort (1 of 2) + +```csharp +public IOrderedEnumerable InvokeSort(IEnumerable collection) +``` + +--- + +#### InvokeSort (2 of 2) + +```csharp +public IOrderedEnumerable InvokeSort(IOrderedEnumerable collection) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-validation/README.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-validation/README.md new file mode 100644 index 00000000000..9f3ca134b06 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-validation/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Common.Validation +description: API reference for Umbraco.Commerce.Common.Validation in Umbraco Commerce +--- +## Umbraco.Commerce.Common.Validation namespace + +| Public Type | Description | +| --- | --- | +| class [ValidationException](validationexception.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-validation/validationexception.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-validation/validationexception.md new file mode 100644 index 00000000000..5d5d9556af4 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-validation/validationexception.md @@ -0,0 +1,49 @@ +--- +title: ValidationException +description: API reference for ValidationException in Umbraco Commerce +--- +## ValidationException + +```csharp +public class ValidationException : Exception +``` + +**Namespace** +* [Umbraco.Commerce.Common.Validation](README.md) + +### Constructors + +#### ValidationException (1 of 2) + +```csharp +public ValidationException(IEnumerable validationErrors) +``` + +--- + +#### ValidationException (2 of 2) + +```csharp +public ValidationException(string message, IEnumerable validationErrors) +``` + + +### Properties + +#### Errors + +```csharp +public IEnumerable Errors { get; } +``` + + +--- + +#### Message + +```csharp +public override string Message { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-visitors/README.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-visitors/README.md new file mode 100644 index 00000000000..804e3c91fa7 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-visitors/README.md @@ -0,0 +1,16 @@ +--- +title: Umbraco.Commerce.Common.Visitors +description: API reference for Umbraco.Commerce.Common.Visitors in Umbraco Commerce +--- +## Umbraco.Commerce.Common.Visitors namespace + +| Public Type | Description | +| --- | --- | +| interface [IVisitable](ivisitable.md) | | +| interface [IVisitContext](ivisitcontext.md) | | +| interface [IVisitor<TElement>](ivisitor-1.md) | | +| interface [IVisitor](ivisitor.md) | | +| class [VisitContext<TValue>](visitcontext-1.md) | | +| class [Visitor](visitor.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-visitors/ivisitable.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-visitors/ivisitable.md new file mode 100644 index 00000000000..44a9f6dcf48 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-visitors/ivisitable.md @@ -0,0 +1,23 @@ +--- +title: IVisitable +description: API reference for IVisitable in Umbraco Commerce +--- +## IVisitable + +```csharp +public interface IVisitable +``` + +**Namespace** +* [Umbraco.Commerce.Common.Visitors](README.md) + +### Methods + +#### Accept + +```csharp +public void Accept(IVisitor visitor) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-visitors/ivisitcontext.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-visitors/ivisitcontext.md new file mode 100644 index 00000000000..40ce412087f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-visitors/ivisitcontext.md @@ -0,0 +1,41 @@ +--- +title: IVisitContext +description: API reference for IVisitContext in Umbraco Commerce +--- +## IVisitContext + +```csharp +public interface IVisitContext +``` + +**Namespace** +* [Umbraco.Commerce.Common.Visitors](README.md) + +### Methods + +#### Get<TState> + +```csharp +public TState Get() +``` + + +--- + +#### Set<TState> + +```csharp +public void Set(TState state) +``` + + +--- + +#### TryGet<TState> + +```csharp +public bool TryGet(out TState state) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-visitors/ivisitor-1.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-visitors/ivisitor-1.md new file mode 100644 index 00000000000..f32e54683e7 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-visitors/ivisitor-1.md @@ -0,0 +1,33 @@ +--- +title: IVisitor +description: API reference for IVisitor in Umbraco Commerce +--- +## IVisitor<TElement> + +```csharp +public interface IVisitor + where TElement : IVisitable +``` + +**Namespace** +* [Umbraco.Commerce.Common.Visitors](README.md) + +### Methods + +#### AsVisitor + +```csharp +public IVisitor AsVisitor() +``` + + +--- + +#### Visit + +```csharp +public void Visit(TElement element) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-visitors/ivisitor.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-visitors/ivisitor.md new file mode 100644 index 00000000000..cac703d27f0 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-visitors/ivisitor.md @@ -0,0 +1,24 @@ +--- +title: IVisitor +description: API reference for IVisitor in Umbraco Commerce +--- +## IVisitor + +```csharp +public interface IVisitor +``` + +**Namespace** +* [Umbraco.Commerce.Common.Visitors](README.md) + +### Methods + +#### Visit<TElement> + +```csharp +public void Visit(TElement element) + where TElement : IVisitable +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-visitors/visitcontext-1.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-visitors/visitcontext-1.md new file mode 100644 index 00000000000..67a7980bd8f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-visitors/visitcontext-1.md @@ -0,0 +1,63 @@ +--- +title: VisitContext +description: API reference for VisitContext in Umbraco Commerce +--- +## VisitContext<TValue> + +```csharp +public sealed class VisitContext : IVisitContext +``` + +**Inheritance** + +* interface [IVisitContext](ivisitcontext.md) + +**Namespace** +* [Umbraco.Commerce.Common.Visitors](README.md) + +### Methods + +#### Get<TState> + +```csharp +public TState Get() +``` + + +--- + +#### Set<TState> + +```csharp +public void Set(TState newState) +``` + + +--- + +#### TryGet<TState> + +```csharp +public bool TryGet(out TState state) +``` + + +--- + +#### TrySet<TState> + +```csharp +public bool TrySet(TState state) +``` + + +--- + +#### Create + +```csharp +public static IVisitContext Create(TValue value) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-visitors/visitor.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-visitors/visitor.md new file mode 100644 index 00000000000..a1d8c200c91 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common-visitors/visitor.md @@ -0,0 +1,37 @@ +--- +title: Visitor +description: API reference for Visitor in Umbraco Commerce +--- +## Visitor + +```csharp +public sealed class Visitor : IVisitor +``` + +**Inheritance** + +* interface [IVisitor](ivisitor.md) + +**Namespace** +* [Umbraco.Commerce.Common.Visitors](README.md) + +### Constructors + +#### Visitor + +```csharp +public Visitor(object wrapped) +``` + + +### Methods + +#### Visit<TElement> + +```csharp +public void Visit(TElement element) + where TElement : IVisitable +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/README.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/README.md new file mode 100644 index 00000000000..4ba4169bcf2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/README.md @@ -0,0 +1,37 @@ +--- +title: Umbraco.Commerce.Common +description: API reference for Umbraco.Commerce.Common in Umbraco Commerce +--- +## Umbraco.Commerce.Common namespace + +| Public Type | Description | +| --- | --- | +| abstract class [AccessorBase<T>](accessorbase-1.md) | | +| class [CombComparer](combcomparer.md) | | +| class [DefaultGuidProvider](defaultguidprovider.md) | | +| abstract class [DynamicFactoryBase](dynamicfactorybase.md) | | +| static class [GuidFactory](guidfactory.md) | | +| interface [IAmbientUnitOfWork](iambientunitofwork.md) | | +| interface [IDatabaseApi](idatabaseapi.md) | | +| interface [IDatabaseApiContainer](idatabaseapicontainer.md) | | +| interface [IDeepCloneable](ideepcloneable.md) | Defines an entity that supports deep cloning | +| interface [IFactory](ifactory.md) | | +| interface [IFactoryBase](ifactorybase.md) | | +| interface [IGuidProvider](iguidprovider.md) | | +| interface [IScopedFactory](iscopedfactory.md) | | +| interface [IScopedFactoryAccessor](iscopedfactoryaccessor.md) | | +| interface [ISupportCommitChanges](isupportcommitchanges.md) | | +| interface [ISupportRollbackChanges](isupportrollbackchanges.md) | | +| interface [ISupportSaveChanges](isupportsavechanges.md) | | +| interface [ITransactionApi](itransactionapi.md) | | +| interface [ITransactionApiContainer](itransactionapicontainer.md) | | +| interface [IUnitOfWork](iunitofwork.md) | Defines a Unit of Work | +| interface [IUnitOfWorkAccessor](iunitofworkaccessor.md) | | +| interface [IUnitOfWorkEnlistable](iunitofworkenlistable.md) | | +| interface [IUnitOfWorkExecutionStrategy](iunitofworkexecutionstrategy.md) | | +| interface [IUnitOfWorkOptions](iunitofworkoptions.md) | | +| interface [IUnitOfWorkProvider](iunitofworkprovider.md) | Defines a Provider that can create a [`IUnitOfWork`](umbraco-commerce-common/iunitofwork.md) | +| class [NoRetryUnitOfWorkExecutionStrategy](noretryunitofworkexecutionstrategy.md) | | +| enum [UnitOfWorkTransactionBehavior](unitofworktransactionbehavior.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/accessorbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/accessorbase-1.md new file mode 100644 index 00000000000..1af168ab69e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/accessorbase-1.md @@ -0,0 +1,33 @@ +--- +title: AccessorBase +description: API reference for AccessorBase in Umbraco Commerce +--- +## AccessorBase<T> + +```csharp +public abstract class AccessorBase + where T : class +``` + +**Namespace** +* [Umbraco.Commerce.Common](README.md) + +### Constructors + +#### AccessorBase<T> + +```csharp +public AccessorBase(IScopedFactoryAccessor scopedFactoryAccessor) +``` + + +### Properties + +#### Instance + +```csharp +public virtual T Instance { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/combcomparer.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/combcomparer.md new file mode 100644 index 00000000000..cad359f3e42 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/combcomparer.md @@ -0,0 +1,34 @@ +--- +title: CombComparer +description: API reference for CombComparer in Umbraco Commerce +--- +## CombComparer + +```csharp +public class CombComparer : IComparer +``` + +**Namespace** +* [Umbraco.Commerce.Common](README.md) + +### Constructors + +#### CombComparer + +The default constructor. + +```csharp +public CombComparer() +``` + + +### Methods + +#### Compare + +```csharp +public int Compare(Guid x, Guid y) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/defaultguidprovider.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/defaultguidprovider.md new file mode 100644 index 00000000000..7c1909c9466 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/defaultguidprovider.md @@ -0,0 +1,38 @@ +--- +title: DefaultGuidProvider +description: API reference for DefaultGuidProvider in Umbraco Commerce +--- +## DefaultGuidProvider + +```csharp +public class DefaultGuidProvider : IGuidProvider +``` + +**Inheritance** + +* interface [IGuidProvider](iguidprovider.md) + +**Namespace** +* [Umbraco.Commerce.Common](README.md) + +### Constructors + +#### DefaultGuidProvider + +The default constructor. + +```csharp +public DefaultGuidProvider() +``` + + +### Methods + +#### CreateGuid + +```csharp +public Guid CreateGuid() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/dynamicfactorybase.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/dynamicfactorybase.md new file mode 100644 index 00000000000..f987491100c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/dynamicfactorybase.md @@ -0,0 +1,14 @@ +--- +title: DynamicFactoryBase +description: API reference for DynamicFactoryBase in Umbraco Commerce +--- +## DynamicFactoryBase + +```csharp +public abstract class DynamicFactoryBase +``` + +**Namespace** +* [Umbraco.Commerce.Common](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/guidfactory.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/guidfactory.md new file mode 100644 index 00000000000..b82541b12fc --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/guidfactory.md @@ -0,0 +1,32 @@ +--- +title: GuidFactory +description: API reference for GuidFactory in Umbraco Commerce +--- +## GuidFactory + +```csharp +public static class GuidFactory +``` + +**Namespace** +* [Umbraco.Commerce.Common](README.md) + +### Properties + +#### GuidProvider + +```csharp +public static IGuidProvider GuidProvider { get; set; } +``` + + +### Methods + +#### Create + +```csharp +public static Guid Create() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/iambientunitofwork.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/iambientunitofwork.md new file mode 100644 index 00000000000..ef480f3bdfd --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/iambientunitofwork.md @@ -0,0 +1,36 @@ +--- +title: IAmbientUnitOfWork +description: API reference for IAmbientUnitOfWork in Umbraco Commerce +--- +## IAmbientUnitOfWork + +```csharp +public interface IAmbientUnitOfWork : IUnitOfWorkAccessor +``` + +**Inheritance** + +* interface [IUnitOfWorkAccessor](iunitofworkaccessor.md) + +**Namespace** +* [Umbraco.Commerce.Common](README.md) + +### Properties + +#### Current + +```csharp +public IUnitOfWork Current { get; } +``` + + +### Methods + +#### SetCurrent + +```csharp +public void SetCurrent(IUnitOfWork unitOfWork) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/idatabaseapi.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/idatabaseapi.md new file mode 100644 index 00000000000..270197b2d03 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/idatabaseapi.md @@ -0,0 +1,14 @@ +--- +title: IDatabaseApi +description: API reference for IDatabaseApi in Umbraco Commerce +--- +## IDatabaseApi + +```csharp +public interface IDatabaseApi : IDisposable +``` + +**Namespace** +* [Umbraco.Commerce.Common](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/idatabaseapicontainer.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/idatabaseapicontainer.md new file mode 100644 index 00000000000..fd396dc4e10 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/idatabaseapicontainer.md @@ -0,0 +1,41 @@ +--- +title: IDatabaseApiContainer +description: API reference for IDatabaseApiContainer in Umbraco Commerce +--- +## IDatabaseApiContainer + +```csharp +public interface IDatabaseApiContainer +``` + +**Namespace** +* [Umbraco.Commerce.Common](README.md) + +### Methods + +#### AddDatabaseApi + +```csharp +public void AddDatabaseApi(string key, IDatabaseApi api) +``` + + +--- + +#### FindDatabaseApi + +```csharp +public IDatabaseApi FindDatabaseApi(string key) +``` + + +--- + +#### GetOrAddDatabaseApi + +```csharp +public IDatabaseApi GetOrAddDatabaseApi(string key, Func factory) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/ideepcloneable.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/ideepcloneable.md new file mode 100644 index 00000000000..867a9c50b49 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/ideepcloneable.md @@ -0,0 +1,31 @@ +--- +title: IDeepCloneable +description: API reference for IDeepCloneable in Umbraco Commerce +--- +## IDeepCloneable + +Defines an entity that supports deep cloning + +```csharp +public interface IDeepCloneable +``` + +**Namespace** +* [Umbraco.Commerce.Common](README.md) + +### Methods + +#### DeepClone + +Deep clones an entity and all of it's child entities + +```csharp +public object DeepClone() +``` + +**Returns** + +The cloned entity as an object + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/ifactory.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/ifactory.md new file mode 100644 index 00000000000..ab7621a8f5e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/ifactory.md @@ -0,0 +1,27 @@ +--- +title: IFactory +description: API reference for IFactory in Umbraco Commerce +--- +## IFactory + +```csharp +public interface IFactory : IFactoryBase +``` + +**Inheritance** + +* interface [IFactoryBase](ifactorybase.md) + +**Namespace** +* [Umbraco.Commerce.Common](README.md) + +### Methods + +#### CreateScoped + +```csharp +public IScopedFactory CreateScoped() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/ifactorybase.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/ifactorybase.md new file mode 100644 index 00000000000..4cdf7d2421a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/ifactorybase.md @@ -0,0 +1,68 @@ +--- +title: IFactoryBase +description: API reference for IFactoryBase in Umbraco Commerce +--- +## IFactoryBase + +```csharp +public interface IFactoryBase +``` + +**Namespace** +* [Umbraco.Commerce.Common](README.md) + +### Methods + +#### GetAllInstances + +```csharp +public IEnumerable GetAllInstances(Type type) +``` + + +--- + +#### GetAllInstances<T> + +```csharp +public IEnumerable GetAllInstances() +``` + + +--- + +#### GetInstance + +```csharp +public object GetInstance(Type type) +``` + + +--- + +#### GetInstance<T> + +```csharp +public T GetInstance() +``` + + +--- + +#### TryGetInstance + +```csharp +public object TryGetInstance(Type type) +``` + + +--- + +#### TryGetInstance<T> + +```csharp +public T TryGetInstance() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/iguidprovider.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/iguidprovider.md new file mode 100644 index 00000000000..882fbd539be --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/iguidprovider.md @@ -0,0 +1,23 @@ +--- +title: IGuidProvider +description: API reference for IGuidProvider in Umbraco Commerce +--- +## IGuidProvider + +```csharp +public interface IGuidProvider +``` + +**Namespace** +* [Umbraco.Commerce.Common](README.md) + +### Methods + +#### CreateGuid + +```csharp +public Guid CreateGuid() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/iscopedfactory.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/iscopedfactory.md new file mode 100644 index 00000000000..f6c77f56c41 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/iscopedfactory.md @@ -0,0 +1,18 @@ +--- +title: IScopedFactory +description: API reference for IScopedFactory in Umbraco Commerce +--- +## IScopedFactory + +```csharp +public interface IScopedFactory : IDisposable, IFactoryBase +``` + +**Inheritance** + +* interface [IFactoryBase](ifactorybase.md) + +**Namespace** +* [Umbraco.Commerce.Common](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/iscopedfactoryaccessor.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/iscopedfactoryaccessor.md new file mode 100644 index 00000000000..2c99a11ae36 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/iscopedfactoryaccessor.md @@ -0,0 +1,23 @@ +--- +title: IScopedFactoryAccessor +description: API reference for IScopedFactoryAccessor in Umbraco Commerce +--- +## IScopedFactoryAccessor + +```csharp +public interface IScopedFactoryAccessor +``` + +**Namespace** +* [Umbraco.Commerce.Common](README.md) + +### Properties + +#### Factory + +```csharp +public IScopedFactory Factory { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/isupportcommitchanges.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/isupportcommitchanges.md new file mode 100644 index 00000000000..089b813f19a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/isupportcommitchanges.md @@ -0,0 +1,23 @@ +--- +title: ISupportCommitChanges +description: API reference for ISupportCommitChanges in Umbraco Commerce +--- +## ISupportCommitChanges + +```csharp +public interface ISupportCommitChanges +``` + +**Namespace** +* [Umbraco.Commerce.Common](README.md) + +### Methods + +#### CommitChanges + +```csharp +public void CommitChanges() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/isupportrollbackchanges.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/isupportrollbackchanges.md new file mode 100644 index 00000000000..a02db602d04 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/isupportrollbackchanges.md @@ -0,0 +1,23 @@ +--- +title: ISupportRollbackChanges +description: API reference for ISupportRollbackChanges in Umbraco Commerce +--- +## ISupportRollbackChanges + +```csharp +public interface ISupportRollbackChanges +``` + +**Namespace** +* [Umbraco.Commerce.Common](README.md) + +### Methods + +#### RollbackChanges + +```csharp +public void RollbackChanges() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/isupportsavechanges.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/isupportsavechanges.md new file mode 100644 index 00000000000..b21398a9fa2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/isupportsavechanges.md @@ -0,0 +1,23 @@ +--- +title: ISupportSaveChanges +description: API reference for ISupportSaveChanges in Umbraco Commerce +--- +## ISupportSaveChanges + +```csharp +public interface ISupportSaveChanges +``` + +**Namespace** +* [Umbraco.Commerce.Common](README.md) + +### Methods + +#### SaveChanges + +```csharp +public void SaveChanges() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/itransactionapi.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/itransactionapi.md new file mode 100644 index 00000000000..90386354f80 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/itransactionapi.md @@ -0,0 +1,18 @@ +--- +title: ITransactionApi +description: API reference for ITransactionApi in Umbraco Commerce +--- +## ITransactionApi + +```csharp +public interface ITransactionApi : IDisposable, ISupportCommitChanges +``` + +**Inheritance** + +* interface [ISupportCommitChanges](isupportcommitchanges.md) + +**Namespace** +* [Umbraco.Commerce.Common](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/itransactionapicontainer.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/itransactionapicontainer.md new file mode 100644 index 00000000000..d4f188585ce --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/itransactionapicontainer.md @@ -0,0 +1,41 @@ +--- +title: ITransactionApiContainer +description: API reference for ITransactionApiContainer in Umbraco Commerce +--- +## ITransactionApiContainer + +```csharp +public interface ITransactionApiContainer +``` + +**Namespace** +* [Umbraco.Commerce.Common](README.md) + +### Methods + +#### AddTransactionApi + +```csharp +public void AddTransactionApi(string key, ITransactionApi api) +``` + + +--- + +#### FindTransactionApi + +```csharp +public ITransactionApi FindTransactionApi(string key) +``` + + +--- + +#### GetOrAddTransactionApi + +```csharp +public ITransactionApi GetOrAddTransactionApi(string key, Func factory) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/iunitofwork.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/iunitofwork.md new file mode 100644 index 00000000000..4e2b58b9401 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/iunitofwork.md @@ -0,0 +1,251 @@ +--- +title: IUnitOfWork +description: API reference for IUnitOfWork in Umbraco Commerce +--- +## IUnitOfWork + +Defines a Unit of Work + +```csharp +public interface IUnitOfWork : IDatabaseApiContainer, IDisposable, IScopedFactoryAccessor, + ITransactionApiContainer +``` + +**Inheritance** + +* interface [IDatabaseApiContainer](idatabaseapicontainer.md) +* interface [IScopedFactoryAccessor](iscopedfactoryaccessor.md) +* interface [ITransactionApiContainer](itransactionapicontainer.md) + +**Namespace** +* [Umbraco.Commerce.Common](README.md) + +### Properties + +#### Id + +A unique ID for this Unit of Work + +```csharp +public Guid Id { get; } +``` + + +--- + +#### IsCompleted + +Flag indicating whether this Unit of Work has completed + +```csharp +public bool IsCompleted { get; } +``` + + +--- + +#### IsDisposed + +Flag indicating whether this Unit of Work has been disposed + +```csharp +public bool IsDisposed { get; } +``` + + +--- + +#### Items + +A generic collection of items associated with this Unit of Work + +```csharp +public Dictionary Items { get; } +``` + + +--- + +#### Options + +The options for the unit of work + +```csharp +public IUnitOfWorkOptions Options { get; } +``` + + +--- + +#### Outer + +A reference to an outer Unit of Work if this Unit of Work was created within an already open Unit of Work + +```csharp +public IUnitOfWork Outer { get; } +``` + + +### Methods + +#### Complete + +Marks the completion of a successful Unit of Work + +```csharp +public void Complete() +``` + + +--- + +#### Enlist + +Enlist an item into this Unit of Work which will be notified of it's success or failure + +```csharp +public void Enlist(string key, IUnitOfWorkEnlistable enlistable) +``` + + +--- + +#### Enlist<T> + +Enlist an item into this Unit of Work which will be notified of it's success or failure + +```csharp +public void Enlist(string key) + where T : class, IUnitOfWorkEnlistable +``` + + +--- + +#### GetEnlisted + +Gets an enlisted item from the Unit of Work + +```csharp +public object GetEnlisted(string key) +``` + + +--- + +#### GetEnlisted<T> + +Gets an enlisted item from the Unit of Work + +```csharp +public T GetEnlisted(string key) + where T : class, IUnitOfWorkEnlistable +``` + + +--- + +#### OnCompleted + +Assign a callback function to run on Unit of Work completion + +```csharp +public void OnCompleted(Func handler) +``` + + +--- + +#### OnDisposed + +Assign a callback functio to run on Unit of Work disposal + +```csharp +public void OnDisposed(Func handler) +``` + + +--- + +#### OnFailed + +Assign a callback function to run on Unit of Work failure + +```csharp +public void OnFailed(Func handler) +``` + + +--- + +#### RollbackChanges + +Rolls back any unpersisted changes + +```csharp +public void RollbackChanges() +``` + + +--- + +#### SaveChanges + +Saves any active changes waiting to be persisted + +```csharp +public void SaveChanges() +``` + + +--- + +#### ScheduleNotification + +Schedules a Notification Event to be raised once the Unit of Work is complete + +```csharp +public void ScheduleNotification(INotificationEvent notificationEvent) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| notificationEvent | The Notification Event to raise | + + +--- + +#### ScheduleNotifications (1 of 2) + +Schedules a series of Notification Events to be raised once the Unit of Work is complete + +```csharp +public void ScheduleNotifications(params INotificationEvent[] notificationEvents) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| notificationEvents | The list of Notification Events to raise | + +--- + +#### ScheduleNotifications (2 of 2) + +Schedules a series of Notification Events to be raised once the Unit of Work is complete + +```csharp +public void ScheduleNotifications(IEnumerable notificationEvents) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| notificationEvents | The list of Notification Events to raise | + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/iunitofworkaccessor.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/iunitofworkaccessor.md new file mode 100644 index 00000000000..08c5431e30a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/iunitofworkaccessor.md @@ -0,0 +1,23 @@ +--- +title: IUnitOfWorkAccessor +description: API reference for IUnitOfWorkAccessor in Umbraco Commerce +--- +## IUnitOfWorkAccessor + +```csharp +public interface IUnitOfWorkAccessor +``` + +**Namespace** +* [Umbraco.Commerce.Common](README.md) + +### Properties + +#### UnitOfWork + +```csharp +public IUnitOfWork UnitOfWork { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/iunitofworkenlistable.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/iunitofworkenlistable.md new file mode 100644 index 00000000000..d21daa18f08 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/iunitofworkenlistable.md @@ -0,0 +1,32 @@ +--- +title: IUnitOfWorkEnlistable +description: API reference for IUnitOfWorkEnlistable in Umbraco Commerce +--- +## IUnitOfWorkEnlistable + +```csharp +public interface IUnitOfWorkEnlistable : IDisposable +``` + +**Namespace** +* [Umbraco.Commerce.Common](README.md) + +### Methods + +#### OnComplete + +```csharp +public void OnComplete() +``` + + +--- + +#### OnFailed + +```csharp +public void OnFailed() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/iunitofworkexecutionstrategy.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/iunitofworkexecutionstrategy.md new file mode 100644 index 00000000000..c55c7dc4cd2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/iunitofworkexecutionstrategy.md @@ -0,0 +1,18 @@ +--- +title: IUnitOfWorkExecutionStrategy +description: API reference for IUnitOfWorkExecutionStrategy in Umbraco Commerce +--- +## IUnitOfWorkExecutionStrategy + +```csharp +public interface IUnitOfWorkExecutionStrategy : IExecutionStrategy +``` + +**Inheritance** + +* interface [IExecutionStrategy](../umbraco-commerce-common-resiliency/iexecutionstrategy.md) + +**Namespace** +* [Umbraco.Commerce.Common](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/iunitofworkoptions.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/iunitofworkoptions.md new file mode 100644 index 00000000000..ac69d29ad95 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/iunitofworkoptions.md @@ -0,0 +1,43 @@ +--- +title: IUnitOfWorkOptions +description: API reference for IUnitOfWorkOptions in Umbraco Commerce +--- +## IUnitOfWorkOptions + +```csharp +public interface IUnitOfWorkOptions +``` + +**Namespace** +* [Umbraco.Commerce.Common](README.md) + +### Properties + +#### AutoComplete + +```csharp +public bool? AutoComplete { get; } +``` + + +--- + +#### IsolationLevel + +```csharp +public IsolationLevel? IsolationLevel { get; } +``` + + +--- + +#### Timeout + +Milliseconds + +```csharp +public int? Timeout { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/iunitofworkprovider.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/iunitofworkprovider.md new file mode 100644 index 00000000000..f6f7497626a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/iunitofworkprovider.md @@ -0,0 +1,308 @@ +--- +title: IUnitOfWorkProvider +description: API reference for IUnitOfWorkProvider in Umbraco Commerce +--- +## IUnitOfWorkProvider + +Defines a Provider that can create a [`IUnitOfWork`](iunitofwork.md) + +```csharp +public interface IUnitOfWorkProvider +``` + +**Namespace** +* [Umbraco.Commerce.Common](README.md) + +### Properties + +#### Current + +Gets the current ambient Unit of Work + +```csharp +public IUnitOfWork Current { get; } +``` + + +### Methods + +#### Create + +Creates a new [`IUnitOfWork`](iunitofwork.md) instance + +```csharp +public IUnitOfWork Create() +``` + +**Returns** + +The newly created [`IUnitOfWork`](iunitofwork.md) instance + + +--- + +#### Create (1 of 2) + +Creates a new [`IUnitOfWork`](iunitofwork.md) instance + +```csharp +public IUnitOfWork Create(bool autoComplete) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| autoComplete | Boolean flag defining whether to auto complete the unit of work | + +**Returns** + +The newly created [`IUnitOfWork`](iunitofwork.md) instance + +--- + +#### Create (2 of 2) + +Creates a new [`IUnitOfWork`](iunitofwork.md) instance + +```csharp +public IUnitOfWork Create(IUnitOfWorkOptions options) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| options | Options for the Unit of Work | + +**Returns** + +The newly created [`IUnitOfWork`](iunitofwork.md) instance + + +--- + +#### Execute (1 of 3) + +Executes the given action within a [`IUnitOfWork`](iunitofwork.md) + +```csharp +public void Execute(Action action) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| action | The action to execute | + +--- + +#### Execute (2 of 3) + +Executes the given action within a [`IUnitOfWork`](iunitofwork.md) + +```csharp +public void Execute(bool autoComplete, Action action) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| autoComplete | Boolean flag defining whether to auto complete the unit of work | +| action | The action to execute | + +--- + +#### Execute (3 of 3) + +Executes the given action within a [`IUnitOfWork`](iunitofwork.md) + +```csharp +public void Execute(IUnitOfWorkOptions options, Action action) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| options | Options for the Unit of Work | +| action | The action to execute | + + +--- + +#### Execute<T> (1 of 3) + +Executes the given action within a [`IUnitOfWork`](iunitofwork.md) returning the given typed result + +```csharp +public T Execute(Func action) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| T | The result type | +| action | The action to execute | + +--- + +#### Execute<T> (2 of 3) + +Executes the given action within a [`IUnitOfWork`](iunitofwork.md) returning the given typed result + +```csharp +public T Execute(bool autoComplete, Func action) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| T | The result type | +| autoComplete | Boolean flag defining whether to auto complete the unit of work | +| action | The action to execute | + +--- + +#### Execute<T> (3 of 3) + +Executes the given action within a [`IUnitOfWork`](iunitofwork.md) returning the given typed result + +```csharp +public T Execute(IUnitOfWorkOptions options, Func action) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| T | The result type | +| options | Options for the Unit of Work | +| action | The action to execute | + + +--- + +#### ExecuteAsync (1 of 3) + +Executes the given action within a [`IUnitOfWork`](iunitofwork.md) + +```csharp +public Task ExecuteAsync(Func action, + CancellationToken cancellationToken = default(CancellationToken)) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| action | The action to execute | +| cancellationToken | Async task cancellation token | + +--- + +#### ExecuteAsync (2 of 3) + +Executes the given action within a [`IUnitOfWork`](iunitofwork.md) + +```csharp +public Task ExecuteAsync(bool autoComplete, Func action, + CancellationToken cancellationToken = default(CancellationToken)) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| autoComplete | Boolean flag defining whether to auto complete the unit of work | +| action | The action to execute | +| cancellationToken | Async task cancellation token | + +--- + +#### ExecuteAsync (3 of 3) + +Executes the given action within a [`IUnitOfWork`](iunitofwork.md) + +```csharp +public Task ExecuteAsync(IUnitOfWorkOptions options, + Func action, + CancellationToken cancellationToken = default(CancellationToken)) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| options | Options for the Unit of Work | +| action | The action to execute | +| cancellationToken | Async task cancellation token | + + +--- + +#### ExecuteAsync<T> (1 of 3) + +Executes the given action within a [`IUnitOfWork`](iunitofwork.md) returning the given typed result + +```csharp +public Task ExecuteAsync(Func> action, + CancellationToken cancellationToken = default(CancellationToken)) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| T | The result type | +| action | The action to execute | +| cancellationToken | Async task cancellation token | + +--- + +#### ExecuteAsync<T> (2 of 3) + +Executes the given action within a [`IUnitOfWork`](iunitofwork.md) returning the given typed result + +```csharp +public Task ExecuteAsync(bool autoComplete, + Func> action, + CancellationToken cancellationToken = default(CancellationToken)) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| T | The result type | +| autoComplete | Boolean flag defining whether to auto complete the unit of work | +| action | The action to execute | +| cancellationToken | Async task cancellation token | + +--- + +#### ExecuteAsync<T> (3 of 3) + +Executes the given action within a [`IUnitOfWork`](iunitofwork.md) returning the given typed result + +```csharp +public Task ExecuteAsync(IUnitOfWorkOptions options, + Func> action, + CancellationToken cancellationToken = default(CancellationToken)) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| T | The result type | +| options | Options for the Unit of Work | +| action | The action to execute | +| cancellationToken | Async task cancellation token | + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/noretryunitofworkexecutionstrategy.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/noretryunitofworkexecutionstrategy.md new file mode 100644 index 00000000000..685f1a1e5c2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/noretryunitofworkexecutionstrategy.md @@ -0,0 +1,31 @@ +--- +title: NoRetryUnitOfWorkExecutionStrategy +description: API reference for NoRetryUnitOfWorkExecutionStrategy in Umbraco Commerce +--- +## NoRetryUnitOfWorkExecutionStrategy + +```csharp +public class NoRetryUnitOfWorkExecutionStrategy : NoRetryExecutionStrategy, + IUnitOfWorkExecutionStrategy +``` + +**Inheritance** + +* Class [NoRetryExecutionStrategy](../umbraco-commerce-common-resiliency/noretryexecutionstrategy.md) +* interface [IUnitOfWorkExecutionStrategy](iunitofworkexecutionstrategy.md) + +**Namespace** +* [Umbraco.Commerce.Common](README.md) + +### Constructors + +#### NoRetryUnitOfWorkExecutionStrategy + +The default constructor. + +```csharp +public NoRetryUnitOfWorkExecutionStrategy() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/unitofworktransactionbehavior.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/unitofworktransactionbehavior.md new file mode 100644 index 00000000000..fbfb5fbb1aa --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-common/unitofworktransactionbehavior.md @@ -0,0 +1,22 @@ +--- +title: UnitOfWorkTransactionBehavior +description: API reference for UnitOfWorkTransactionBehavior in Umbraco Commerce +--- +## UnitOfWorkTransactionBehavior + +```csharp +public enum UnitOfWorkTransactionBehavior +``` + +**Namespace** +* [Umbraco.Commerce.Common](README.md) + +**Values** + +| Name | Value | Description | +| --- | --- | --- | +| Auto | `0` | | +| Enabled | `1` | | +| Disabled | `2` | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-extensions/README.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-extensions/README.md new file mode 100644 index 00000000000..8317d3df009 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-extensions/README.md @@ -0,0 +1,20 @@ +--- +title: Umbraco.Commerce.Extensions +description: API reference for Umbraco.Commerce.Extensions in Umbraco Commerce +--- +## Umbraco.Commerce.Extensions namespace + +| Public Type | Description | +| --- | --- | +| static class [AssertionExtensions](assertionextensions.md) | Extension methods for performing assertions | +| static class [DecimalExtensions](decimalextensions.md) | | +| static class [DictionaryExtensions](dictionaryextensions.md) | Dictionary extension methods | +| static class [EnumerableExtensions](enumerableextensions.md) | Extensions for enumerable sources | +| static class [EnumExtensions](enumextensions.md) | | +| static class [ObjectExtensions](objectextensions.md) | Object extension methods | +| static class [SpecificationExtensions](specificationextensions.md) | | +| static class [StringExtensions](stringextensions.md) | String extension methods | +| static class [TypeExtensions](typeextensions.md) | Type extension methods | +| static class [UnitOfWorkExtensions](unitofworkextensions.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-extensions/assertionextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-extensions/assertionextensions.md new file mode 100644 index 00000000000..95b0c87134c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-extensions/assertionextensions.md @@ -0,0 +1,142 @@ +--- +title: AssertionExtensions +description: API reference for AssertionExtensions in Umbraco Commerce +--- +## AssertionExtensions + +Extension methods for performing assertions + +```csharp +public static class AssertionExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + +### Methods + +#### MustContainKey + +Asserts that a key must be present in a dictionary, and that it's value must not be null or empty + +```csharp +public static void MustContainKey(this IDictionary dictionary, string key, + string paramName) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| dictionary | The dictionary to check | +| key | The key to look for | +| paramName | A friendly parameter name to display in the assertion exception if the assertion fails | + +**Exceptions** + +| Exception | Condition | +| --- | --- | +| ArgumentException | Thrown if the given key is not present in the dictionary, or if it's value is null or empty | + + +--- + +#### MustEqual<T> + +Asserts that a parameter is equal to another value + +```csharp +public static void MustEqual(this T param, T compareTo, string paramName) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| T | The Type of the parameter | +| param | The parameter to check | +| compareTo | The parameter to compare to | +| paramName | A friendly parameter name to display in the assertion exception if the assertion fails | + +**Exceptions** + +| Exception | Condition | +| --- | --- | +| ArgumentNullException | Thrown if the given parameter is null | + + +--- + +#### MustNotBeNull<T> + +Asserts that a parameter must not be null + +```csharp +public static void MustNotBeNull(this T param, string paramName) + where T : class +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| T | The Type of the parameter | +| param | The parameter to check | +| paramName | A friendly parameter name to display in the assertion exception if the assertion fails | + +**Exceptions** + +| Exception | Condition | +| --- | --- | +| ArgumentNullException | Thrown if the given parameter is null | + + +--- + +#### MustNotBeNullOrEmpty + +Asserts that a parameter must not be null or empty + +```csharp +public static void MustNotBeNullOrEmpty(this string param, string paramName) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| param | The parameter to check | +| paramName | A friendly parameter name to display in the assertion exception if the assertion fails | + +**Exceptions** + +| Exception | Condition | +| --- | --- | +| ArgumentException | Thrown if the given parameter is null or empty | + + +--- + +#### MustNotBeNullOrWhiteSpace + +Asserts that a parameter must not be null or white space + +```csharp +public static void MustNotBeNullOrWhiteSpace(this string param, string paramName) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| param | The parameter to check | +| paramName | A friendly parameter name to display in the assertion exception if the assertion fails | + +**Exceptions** + +| Exception | Condition | +| --- | --- | +| ArgumentException | Thrown if the given parameter is null or white space | + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-extensions/decimalextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-extensions/decimalextensions.md new file mode 100644 index 00000000000..aa6eeda3e26 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-extensions/decimalextensions.md @@ -0,0 +1,40 @@ +--- +title: DecimalExtensions +description: API reference for DecimalExtensions in Umbraco Commerce +--- +## DecimalExtensions + +```csharp +public static class DecimalExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + +### Methods + +#### ToMajorUnits (1 of 2) + +```csharp +public static decimal ToMajorUnits(this int minorUnits, int minorUnitsPerMajorUnit = 100) +``` + +--- + +#### ToMajorUnits (2 of 2) + +```csharp +public static decimal ToMajorUnits(this long minorUnits, int minorUnitsPerMajorUnit = 100) +``` + + +--- + +#### ToMinorUnits + +```csharp +public static long ToMinorUnits(this decimal amount, int minorUnitsPerMajorUnit = 100) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-extensions/dictionaryextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-extensions/dictionaryextensions.md new file mode 100644 index 00000000000..62d0500f948 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-extensions/dictionaryextensions.md @@ -0,0 +1,184 @@ +--- +title: DictionaryExtensions +description: API reference for DictionaryExtensions in Umbraco Commerce +--- +## DictionaryExtensions + +Dictionary extension methods + +```csharp +public static class DictionaryExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + +### Methods + +#### GetTypedValueAs<T> + +Get the value of dictionary cast to a given Type + +```csharp +public static T GetTypedValueAs(this IDictionary dict, string key) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| T | The Type to cast the Value to | +| dict | The dictionary to retrieve the Value from | +| key | The Key of the Value to retrieve | + +**Returns** + +The cast dictionary Value, or default(T) if the Value is not present or cannot be cast to the given type + + +--- + +#### ToKeyedCollection<TSource,TValue> + +```csharp +public static KeyedCollection ToKeyedCollection( + this IEnumerable source, Func keySelector, + Func elementSelector) + where TValue : class +``` + + +--- + +#### ToNullSafeDictionary<TKey,TValue> (1 of 2) + +Converts a dictionary into a null safe dictionary that won't error if attempting to access a key that isn't present + +```csharp +public static NullSafeDictionary ToNullSafeDictionary( + this IDictionary source) + where TValue : class +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| TKey | The Type of the dictionary key | +| TValue | The Type of the dictionary value | +| source | The source dictionary to convert | + +**Returns** + +A null safe version of the input dictionary + +--- + +#### ToNullSafeDictionary<TKey,TValue> (2 of 2) + +Converts a dictionary into a null safe dictionary that won't error if attempting to access a key that isn't present + +```csharp +public static NullSafeDictionary ToNullSafeDictionary( + this IDictionary source, IEqualityComparer keyComparer) + where TValue : class +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| TKey | The Type of the dictionary key | +| TValue | The Type of the dictionary value | +| source | The source dictionary to convert | +| keyComparer | The IEqualityComparer implementation to use when comparing keys | + +**Returns** + +A null safe version of the input dictionary + + +--- + +#### ToNullSafeDictionary<TSource,TKey,TValue> (1 of 2) + +Converts a list of items into a null safe dictionary that won't error if attempting to access a key that isn't present + +```csharp +public static NullSafeDictionary ToNullSafeDictionary( + this IEnumerable source, Func keySelector, + Func elementSelector) + where TValue : class +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| TSource | The Type of the source element | +| TKey | The Type of the dictionary key | +| TValue | The Type of the dictionary value | +| source | The source list of elements to convert | +| keySelector | A delegate function to access the Key from the source element | +| elementSelector | A delegate function to access the Value from the source element | + +**Returns** + +A null safe version of the input dictionary + +--- + +#### ToNullSafeDictionary<TSource,TKey,TValue> (2 of 2) + +Converts a list of items into a null safe dictionary that won't error if attempting to access a key that isn't present + +```csharp +public static NullSafeDictionary ToNullSafeDictionary( + this IEnumerable source, Func keySelector, + Func elementSelector, IEqualityComparer keyComparer) + where TValue : class +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| TSource | The Type of the source element | +| TKey | The Type of the dictionary key | +| TValue | The Type of the dictionary value | +| source | The source list of elements to convert | +| keySelector | A delegate function to access the Key from the source element | +| elementSelector | A delegate function to access the Value from the source element | +| keyComparer | The IEqualityComparer implementation to use when comparing keys | + +**Returns** + +A null safe version of the input dictionary + + +--- + +#### TryGetTypedValue<T> + +Try to get the value of dictionary cast to a given Type + +```csharp +public static bool TryGetTypedValue(this IDictionary dict, string key, + out T result) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| T | The Type to cast the Value to | +| dict | The dictionary to retrieve the Value from | +| key | The Key of the Value to retrieve | +| result | The cast dictionary Value, or default(T) if the Value is not present or cannot be cast to the given type | + +**Returns** + +Boolean indicating whether the operation was successful or not + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-extensions/enumerableextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-extensions/enumerableextensions.md new file mode 100644 index 00000000000..bbcd1f695a2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-extensions/enumerableextensions.md @@ -0,0 +1,63 @@ +--- +title: EnumerableExtensions +description: API reference for EnumerableExtensions in Umbraco Commerce +--- +## EnumerableExtensions + +Extensions for enumerable sources + +```csharp +public static class EnumerableExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + +### Methods + +#### Diff<T> (1 of 2) + +```csharp +public static EnumerableDiff Diff(this IEnumerable current, IEnumerable previous) +``` + +--- + +#### Diff<T> (2 of 2) + +```csharp +public static EnumerableDiff Diff(this IEnumerable current, IEnumerable previous, + Func idAccessor, bool deep = false) +``` + + +--- + +#### Diff<TKey,TValue> + +```csharp +public static DictionaryDiff Diff( + this IDictionary current, IDictionary previous, bool deep = false) +``` + + +--- + +#### Extract<T> + +```csharp +public static T Extract(this List list, Predicate match) +``` + + +--- + +#### TakeOr<T> + +```csharp +public static IEnumerable TakeOr(this IEnumerable items, int maxItems, + Func orPredicate) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-extensions/enumextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-extensions/enumextensions.md new file mode 100644 index 00000000000..6081b97b521 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-extensions/enumextensions.md @@ -0,0 +1,23 @@ +--- +title: EnumExtensions +description: API reference for EnumExtensions in Umbraco Commerce +--- +## EnumExtensions + +```csharp +public static class EnumExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + +### Methods + +#### GetDescription + +```csharp +public static string GetDescription(this Enum inputEnum) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-extensions/objectextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-extensions/objectextensions.md new file mode 100644 index 00000000000..3812a65867b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-extensions/objectextensions.md @@ -0,0 +1,104 @@ +--- +title: ObjectExtensions +description: API reference for ObjectExtensions in Umbraco Commerce +--- +## ObjectExtensions + +Object extension methods + +```csharp +public static class ObjectExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + +### Methods + +#### ComparesTo<T> + +Compares a source object against a given value using the supplied comparison operator + +```csharp +public static bool ComparesTo(this T source, T value, ComparisonOperator comparisonOperator) + where T : IComparable +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| T | The Type of the source / value objects | +| source | The Source object to compare | +| value | The Value to compare against | +| comparisonOperator | The comparison operator to use for the comparison | + +**Returns** + +Boolean indicating whether the comparison was successful or not + + +--- + +#### IsObsolete + +Determines if the given object is decorated as being obsolete + +```csharp +public static bool IsObsolete(this object obj) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| obj | The object to check | + +**Returns** + +True if the type is obsolete, otherwise False + + +--- + +#### ToDictionary + +Converts a generic object into a dictionary, converting the object properties into key value pairs + +```csharp +public static IDictionary ToDictionary(this object data, + bool honorSerializationAttributes = false) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| data | The object to convert | +| honorSerializationAttributes | True to honor DataMember/JsonProperty attributes for property names | + +**Returns** + +The converted dictionary + + +--- + +#### ToDictionary<TVal> + +Turns object into dictionary + +```csharp +public static IDictionary ToDictionary(this object o, + params string[] ignoreProperties) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| o | | +| ignoreProperties | Properties to ignore | + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-extensions/specificationextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-extensions/specificationextensions.md new file mode 100644 index 00000000000..a889f99395b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-extensions/specificationextensions.md @@ -0,0 +1,73 @@ +--- +title: SpecificationExtensions +description: API reference for SpecificationExtensions in Umbraco Commerce +--- +## SpecificationExtensions + +```csharp +public static class SpecificationExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + +### Methods + +#### And<T> + +```csharp +public static IQuerySpecification And(this IQuerySpecification left, + IQuerySpecification right) +``` + + +--- + +#### AndNot<T> + +```csharp +public static IQuerySpecification AndNot(this IQuerySpecification left, + IQuerySpecification right) +``` + + +--- + +#### Not<T> + +```csharp +public static NotSpecification Not(this IQuerySpecification specification) +``` + + +--- + +#### Or<T> + +```csharp +public static OrSpecification Or(this IQuerySpecification left, + IQuerySpecification right) +``` + + +--- + +#### OrNot<T> + +```csharp +public static OrSpecification OrNot(this IQuerySpecification left, + IQuerySpecification right) +``` + + +--- + +#### Then<T> + +```csharp +public static ThenSpecification Then(this ISortSpecification left, + ISortSpecification right) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-extensions/stringextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-extensions/stringextensions.md new file mode 100644 index 00000000000..099e9335f8e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-extensions/stringextensions.md @@ -0,0 +1,323 @@ +--- +title: StringExtensions +description: API reference for StringExtensions in Umbraco Commerce +--- +## StringExtensions + +String extension methods + +```csharp +public static class StringExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + +### Methods + +#### Base64Decode + +```csharp +public static string Base64Decode(this string base64EncodedData) +``` + + +--- + +#### Base64Encode + +```csharp +public static string Base64Encode(this string plainText) +``` + + +--- + +#### EnumParse<T> + +Parse string to Enum + +```csharp +public static T EnumParse(this string strType, bool ignoreCase) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| T | The enum type | +| strType | The string to parse | +| ignoreCase | The ignore case | + +**Returns** + +The parsed enum + + +--- + +#### EnumTryParse<T> + +enum try parse. + +```csharp +public static bool EnumTryParse(this string strType, bool ignoreCase, out T result) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| T | The type | +| strType | The str type. | +| ignoreCase | The ignore case. | +| result | The result. | + +**Returns** + +The enum try parse. + + +--- + +#### HMACSHA1Hash + +```csharp +public static string HMACSHA1Hash(this string input, string key) +``` + + +--- + +#### HMACSHA256Hash + +```csharp +public static string HMACSHA256Hash(this string input, string key) +``` + + +--- + +#### InvariantContains (1 of 2) + +```csharp +public static bool InvariantContains(this string compare, string compareTo) +``` + +--- + +#### InvariantContains (2 of 2) + +```csharp +public static bool InvariantContains(this IEnumerable compare, string compareTo) +``` + + +--- + +#### InvariantEndsWith + +```csharp +public static bool InvariantEndsWith(this string compare, string compareTo) +``` + + +--- + +#### InvariantStartsWith + +```csharp +public static bool InvariantStartsWith(this string compare, string compareTo) +``` + + +--- + +#### IsComplexJson + +Tries to figure out if the input string is a serialized JSON object/array + +```csharp +public static bool IsComplexJson(this string input) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| input | The input string | + +**Returns** + +A true if string is serialized JSON, otherwise false + + +--- + +#### IsJson + +Tries to figure out if the input string is a serialized JSON value + +```csharp +public static bool IsJson(this string input) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| input | The input string | + +**Returns** + +A true if string is serialized JSON, otherwise false + + +--- + +#### MD5Hash + +```csharp +public static string MD5Hash(this string input) +``` + + +--- + +#### ParseDecimal + +Parse a string input into a decimal number + +```csharp +public static decimal? ParseDecimal(this string input) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| input | The input string | + +**Returns** + +The decimal value + + +--- + +#### ReplaceEnd + +Replaces an original string from the end of an input string with the given replacement + +```csharp +public static string ReplaceEnd(this string input, string original, string replacement) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| input | The input string | +| original | The original string to look for | +| replacement | The string to replace the original string with | + +**Returns** + +The updated string + + +--- + +#### SHA1Hash + +```csharp +public static string SHA1Hash(this string input) +``` + + +--- + +#### SHA256Hash + +```csharp +public static string SHA256Hash(this string input) +``` + + +--- + +#### SHA384Hash + +```csharp +public static string SHA384Hash(this string input) +``` + + +--- + +#### SHA512Hash + +```csharp +public static string SHA512Hash(this string input) +``` + + +--- + +#### ToInvariantString (1 of 2) + +```csharp +public static string ToInvariantString(this int str) +``` + +--- + +#### ToInvariantString (2 of 2) + +```csharp +public static string ToInvariantString(this long str) +``` + + +--- + +#### TryParse<T> + +Tries to parse a string into a strongly typed value + +```csharp +public static T? TryParse(this string input) + where T : struct +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| T | The output type | +| input | The input string | + +**Returns** + +A nullable output type + + +--- + +#### UrlSafeBase64Decode + +```csharp +public static string UrlSafeBase64Decode(this string base64EncodedData) +``` + + +--- + +#### UrlSafeBase64Encode + +```csharp +public static string UrlSafeBase64Encode(this string plainText) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-extensions/typeextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-extensions/typeextensions.md new file mode 100644 index 00000000000..887d1616c3e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-extensions/typeextensions.md @@ -0,0 +1,37 @@ +--- +title: TypeExtensions +description: API reference for TypeExtensions in Umbraco Commerce +--- +## TypeExtensions + +Type extension methods + +```csharp +public static class TypeExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + +### Methods + +#### IsObsolete + +Determines if the given type is decorated as being obsolete + +```csharp +public static bool IsObsolete(this Type type) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| type | The Type to check | + +**Returns** + +True if the type is obsolete, otherwise False + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-extensions/unitofworkextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-extensions/unitofworkextensions.md new file mode 100644 index 00000000000..ade4b443044 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-common/umbraco-commerce-extensions/unitofworkextensions.md @@ -0,0 +1,23 @@ +--- +title: UnitOfWorkExtensions +description: API reference for UnitOfWorkExtensions in Umbraco Commerce +--- +## UnitOfWorkExtensions + +```csharp +public static class UnitOfWorkExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + +### Methods + +#### Complete<T> + +```csharp +public static T Complete(this IUnitOfWork uow, T result) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/README.md new file mode 100644 index 00000000000..e32a749d515 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/README.md @@ -0,0 +1,68 @@ +--- +title: Umbraco.Commerce.Core +description: API reference for Umbraco.Commerce.Core in Umbraco Commerce +--- +## Umbraco.Commerce.Core assembly + +| Namespace | +| --- | +| [Umbraco.Commerce.Core](umbraco-commerce-core/README.md) | +| [Umbraco.Commerce.Core.Adapters](umbraco-commerce-core-adapters/README.md) | +| [Umbraco.Commerce.Core.Adjusters](umbraco-commerce-core-adjusters/README.md) | +| [Umbraco.Commerce.Core.Api](umbraco-commerce-core-api/README.md) | +| [Umbraco.Commerce.Core.Attributes](umbraco-commerce-core-attributes/README.md) | +| [Umbraco.Commerce.Core.Cache](umbraco-commerce-core-cache/README.md) | +| [Umbraco.Commerce.Core.Calculators](umbraco-commerce-core-calculators/README.md) | +| [Umbraco.Commerce.Core.Composing](umbraco-commerce-core-composing/README.md) | +| [Umbraco.Commerce.Core.Configuration](umbraco-commerce-core-configuration/README.md) | +| [Umbraco.Commerce.Core.Configuration.Models](umbraco-commerce-core-configuration-models/README.md) | +| [Umbraco.Commerce.Core.Data](umbraco-commerce-core-data/README.md) | +| [Umbraco.Commerce.Core.Discounts](umbraco-commerce-core-discounts/README.md) | +| [Umbraco.Commerce.Core.Discounts.Rewards](umbraco-commerce-core-discounts-rewards/README.md) | +| [Umbraco.Commerce.Core.Discounts.Rules](umbraco-commerce-core-discounts-rules/README.md) | +| [Umbraco.Commerce.Core.Events](umbraco-commerce-core-events/README.md) | +| [Umbraco.Commerce.Core.Events.Notification](umbraco-commerce-core-events-notification/README.md) | +| [Umbraco.Commerce.Core.Events.Notification.Handlers.Order](umbraco-commerce-core-events-notification-handlers-order/README.md) | +| [Umbraco.Commerce.Core.Events.Validation](umbraco-commerce-core-events-validation/README.md) | +| [Umbraco.Commerce.Core.Events.Validation.Handlers.Country](umbraco-commerce-core-events-validation-handlers-country/README.md) | +| [Umbraco.Commerce.Core.Events.Validation.Handlers.Currency](umbraco-commerce-core-events-validation-handlers-currency/README.md) | +| [Umbraco.Commerce.Core.Events.Validation.Handlers.Discount](umbraco-commerce-core-events-validation-handlers-discount/README.md) | +| [Umbraco.Commerce.Core.Events.Validation.Handlers.EmailTemplate](umbraco-commerce-core-events-validation-handlers-emailtemplate/README.md) | +| [Umbraco.Commerce.Core.Events.Validation.Handlers.ExportTemplate](umbraco-commerce-core-events-validation-handlers-exporttemplate/README.md) | +| [Umbraco.Commerce.Core.Events.Validation.Handlers.GiftCard](umbraco-commerce-core-events-validation-handlers-giftcard/README.md) | +| [Umbraco.Commerce.Core.Events.Validation.Handlers.Order](umbraco-commerce-core-events-validation-handlers-order/README.md) | +| [Umbraco.Commerce.Core.Events.Validation.Handlers.OrderStatus](umbraco-commerce-core-events-validation-handlers-orderstatus/README.md) | +| [Umbraco.Commerce.Core.Events.Validation.Handlers.PaymentMethod](umbraco-commerce-core-events-validation-handlers-paymentmethod/README.md) | +| [Umbraco.Commerce.Core.Events.Validation.Handlers.PrintTemplate](umbraco-commerce-core-events-validation-handlers-printtemplate/README.md) | +| [Umbraco.Commerce.Core.Events.Validation.Handlers.ProductAttribute](umbraco-commerce-core-events-validation-handlers-productattribute/README.md) | +| [Umbraco.Commerce.Core.Events.Validation.Handlers.Region](umbraco-commerce-core-events-validation-handlers-region/README.md) | +| [Umbraco.Commerce.Core.Events.Validation.Handlers.ShippingMethod](umbraco-commerce-core-events-validation-handlers-shippingmethod/README.md) | +| [Umbraco.Commerce.Core.Events.Validation.Handlers.Store](umbraco-commerce-core-events-validation-handlers-store/README.md) | +| [Umbraco.Commerce.Core.Events.Validation.Handlers.TaxClass](umbraco-commerce-core-events-validation-handlers-taxclass/README.md) | +| [Umbraco.Commerce.Core.Finders](umbraco-commerce-core-finders/README.md) | +| [Umbraco.Commerce.Core.Generators](umbraco-commerce-core-generators/README.md) | +| [Umbraco.Commerce.Core.Json](umbraco-commerce-core-json/README.md) | +| [Umbraco.Commerce.Core.Mail](umbraco-commerce-core-mail/README.md) | +| [Umbraco.Commerce.Core.Models](umbraco-commerce-core-models/README.md) | +| [Umbraco.Commerce.Core.Models.Reporting](umbraco-commerce-core-models-reporting/README.md) | +| [Umbraco.Commerce.Core.PaymentProviders](umbraco-commerce-core-paymentproviders/README.md) | +| [Umbraco.Commerce.Core.Pipelines.Email](umbraco-commerce-core-pipelines-email/README.md) | +| [Umbraco.Commerce.Core.Pipelines.Email.Tasks](umbraco-commerce-core-pipelines-email-tasks/README.md) | +| [Umbraco.Commerce.Core.Pipelines.Order](umbraco-commerce-core-pipelines-order/README.md) | +| [Umbraco.Commerce.Core.Pipelines.Order.Tasks](umbraco-commerce-core-pipelines-order-tasks/README.md) | +| [Umbraco.Commerce.Core.Pipelines.OrderLine](umbraco-commerce-core-pipelines-orderline/README.md) | +| [Umbraco.Commerce.Core.Pipelines.OrderLine.Tasks](umbraco-commerce-core-pipelines-orderline-tasks/README.md) | +| [Umbraco.Commerce.Core.Pipelines.Store](umbraco-commerce-core-pipelines-store/README.md) | +| [Umbraco.Commerce.Core.Pipelines.Store.Tasks](umbraco-commerce-core-pipelines-store-tasks/README.md) | +| [Umbraco.Commerce.Core.Providers](umbraco-commerce-core-providers/README.md) | +| [Umbraco.Commerce.Core.Security](umbraco-commerce-core-security/README.md) | +| [Umbraco.Commerce.Core.Services](umbraco-commerce-core-services/README.md) | +| [Umbraco.Commerce.Core.Session](umbraco-commerce-core-session/README.md) | +| [Umbraco.Commerce.Core.Specifications.GiftCard](umbraco-commerce-core-specifications-giftcard/README.md) | +| [Umbraco.Commerce.Core.Specifications.Order](umbraco-commerce-core-specifications-order/README.md) | +| [Umbraco.Commerce.Core.Tax](umbraco-commerce-core-tax/README.md) | +| [Umbraco.Commerce.Core.Templating](umbraco-commerce-core-templating/README.md) | +| [Umbraco.Commerce.Core.ViewEngines](umbraco-commerce-core-viewengines/README.md) | +| [Umbraco.Commerce.Extensions](umbraco-commerce-extensions/README.md) | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adapters/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adapters/README.md new file mode 100644 index 00000000000..8cf66c9707a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adapters/README.md @@ -0,0 +1,12 @@ +--- +title: Umbraco.Commerce.Core.Adapters +description: API reference for Umbraco.Commerce.Core.Adapters in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Adapters namespace + +| Public Type | Description | +| --- | --- | +| interface [IProductAdapter](iproductadapter.md) | | +| abstract class [ProductAdapterBase](productadapterbase.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adapters/iproductadapter.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adapters/iproductadapter.md new file mode 100644 index 00000000000..a10b6e47635 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adapters/iproductadapter.md @@ -0,0 +1,151 @@ +--- +title: IProductAdapter +description: API reference for IProductAdapter in Umbraco Commerce +--- +## IProductAdapter + +```csharp +public interface IProductAdapter +``` + +**Namespace** +* [Umbraco.Commerce.Core.Adapters](README.md) + +### Methods + +#### GetProductSnapshot (1 of 2) + +Get a product snapshot for the supplied product reference in the given culture. + +```csharp +public IProductSnapshot GetProductSnapshot(Guid storeId, string productReference, + string languageIsoCode) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store this product belongs to | +| productReference | The product reference of the product | +| languageIsoCode | The language ISO code of the culture | + +--- + +#### GetProductSnapshot (2 of 2) + +Get a product snapshot for the supplied product reference in the given culture. + +```csharp +public IProductSnapshot GetProductSnapshot(Guid storeId, string productReference, + string productVariantReference, string languageIsoCode) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store this product belongs to | +| productReference | The product reference of the product | +| productVariantReference | The product variant reference of the product | +| languageIsoCode | The language ISO code of the culture | + + +--- + +#### GetProductVariantAttributes + +Gets a list of attributes in use by the product variants of the given primary product. + +```csharp +public IEnumerable GetProductVariantAttributes(Guid storeId, string productReference, + string languageIsoCode) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store this product belongs to | +| productReference | The product reference of the product | +| languageIsoCode | The language ISO code of the culture | + + +--- + +#### SearchProductSummaries + +Searches for product summaries matching the given search term. + +```csharp +public PagedResult SearchProductSummaries(Guid storeId, string languageIsoCode, + string searchTerm, long currentPage = 1, long itemsPerPage = 50) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The id of the store to search in | +| languageIsoCode | The language ISO code of the culture | +| searchTerm | The term to search for | +| currentPage | The current page of items to return | +| itemsPerPage | The number of items per page to return | + +**Returns** + +A paged collection of product summaries + + +--- + +#### SearchProductVariantSummaries + +Searches for the product variant summaries of a primary product matching the given search term / attributes. + +```csharp +public PagedResult SearchProductVariantSummaries(Guid storeId, + string productReference, string languageIsoCode, string searchTerm, + IDictionary> attributes, long currentPage = 1, + long itemsPerPage = 50) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store this product belongs to | +| productReference | The product reference of the product | +| languageIsoCode | The language ISO code of the culture | +| searchTerm | The term to search for | +| attributes | The attributes of the product variant | +| currentPage | The current page of items to return | +| itemsPerPage | The number of items per page to return | + + +--- + +#### TryGetProductReference + +Try and get the product reference for the given SKU in the given store. + +```csharp +public bool TryGetProductReference(Guid storeId, string sku, out string productReference, + out string productVariantReference) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The id of the store to search in | +| sku | The SKU of the product to search for | +| productReference | The product reference of the found product, or null | +| productVariantReference | The product variant reference of the found product, or null | + +**Returns** + +Boolean indicating whether a product reference was found for the given SKU + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adapters/productadapterbase.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adapters/productadapterbase.md new file mode 100644 index 00000000000..bde2e722f06 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adapters/productadapterbase.md @@ -0,0 +1,80 @@ +--- +title: ProductAdapterBase +description: API reference for ProductAdapterBase in Umbraco Commerce +--- +## ProductAdapterBase + +```csharp +public abstract class ProductAdapterBase : IProductAdapter +``` + +**Inheritance** + +* interface [IProductAdapter](iproductadapter.md) + +**Namespace** +* [Umbraco.Commerce.Core.Adapters](README.md) + +### Methods + +#### GetProductSnapshot + +```csharp +public virtual IProductSnapshot GetProductSnapshot(Guid storeId, string productReference, + string languageIsoCode) +``` + + +--- + +#### GetProductSnapshot + +```csharp +public abstract IProductSnapshot GetProductSnapshot(Guid storeId, string productReference, + string productVariantReference, string languageIsoCode) +``` + + +--- + +#### GetProductVariantAttributes + +```csharp +public virtual IEnumerable GetProductVariantAttributes(Guid storeId, + string productReference, string languageIsoCode) +``` + + +--- + +#### SearchProductSummaries + +```csharp +public virtual PagedResult SearchProductSummaries(Guid storeId, + string languageIsoCode, string searchTerm, long currentPage = 1, long itemsPerPage = 50) +``` + + +--- + +#### SearchProductVariantSummaries + +```csharp +public virtual PagedResult SearchProductVariantSummaries(Guid storeId, + string productReference, string languageIsoCode, string searchTerm, + IDictionary> attributes, long currentPage = 1, + long itemsPerPage = 50) +``` + + +--- + +#### TryGetProductReference + +```csharp +public abstract bool TryGetProductReference(Guid storeId, string sku, out string productReference, + out string productVariantReference) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/README.md new file mode 100644 index 00000000000..c81e083c54d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/README.md @@ -0,0 +1,22 @@ +--- +title: Umbraco.Commerce.Core.Adjusters +description: API reference for Umbraco.Commerce.Core.Adjusters in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Adjusters namespace + +| Public Type | Description | +| --- | --- | +| abstract class [AdjusterArgsBase](adjusterargsbase.md) | | +| class [AmountAdjusterArgs](amountadjusterargs.md) | | +| abstract class [AmountAdjusterBase](amountadjusterbase.md) | | +| class [AmountAdjusterCollection](amountadjustercollection.md) | | +| class [DiscountsPriceAdjuster](discountspriceadjuster.md) | | +| class [GiftCardsAmountAdjuster](giftcardsamountadjuster.md) | | +| interface [IAmountAdjuster](iamountadjuster.md) | | +| interface [IPriceAdjuster](ipriceadjuster.md) | | +| class [OrderLinePriceAdjustments](orderlinepriceadjustments.md) | | +| class [PriceAdjusterArgs](priceadjusterargs.md) | | +| abstract class [PriceAdjusterBase](priceadjusterbase.md) | | +| class [PriceAdjusterCollection](priceadjustercollection.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/adjusterargsbase.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/adjusterargsbase.md new file mode 100644 index 00000000000..60d72de19d2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/adjusterargsbase.md @@ -0,0 +1,41 @@ +--- +title: AdjusterArgsBase +description: API reference for AdjusterArgsBase in Umbraco Commerce +--- +## AdjusterArgsBase + +```csharp +public abstract class AdjusterArgsBase +``` + +**Namespace** +* [Umbraco.Commerce.Core.Adjusters](README.md) + +### Properties + +#### Calculation + +```csharp +public virtual OrderCalculation Calculation { get; } +``` + + +--- + +#### Order + +```csharp +public virtual OrderReadOnly Order { get; } +``` + + +--- + +#### RecalculateAdjustedPrices + +```csharp +public virtual Action RecalculateAdjustedPrices { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/amountadjusterargs.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/amountadjusterargs.md new file mode 100644 index 00000000000..df2f94fab06 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/amountadjusterargs.md @@ -0,0 +1,27 @@ +--- +title: AmountAdjusterArgs +description: API reference for AmountAdjusterArgs in Umbraco Commerce +--- +## AmountAdjusterArgs + +```csharp +public class AmountAdjusterArgs : AdjusterArgsBase +``` + +**Inheritance** + +* Class [AdjusterArgsBase](adjusterargsbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Adjusters](README.md) + +### Properties + +#### TransactionAmountAdjustments + +```csharp +public List TransactionAmountAdjustments { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/amountadjusterbase.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/amountadjusterbase.md new file mode 100644 index 00000000000..a84582d016b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/amountadjusterbase.md @@ -0,0 +1,27 @@ +--- +title: AmountAdjusterBase +description: API reference for AmountAdjusterBase in Umbraco Commerce +--- +## AmountAdjusterBase + +```csharp +public abstract class AmountAdjusterBase : IAmountAdjuster +``` + +**Inheritance** + +* interface [IAmountAdjuster](iamountadjuster.md) + +**Namespace** +* [Umbraco.Commerce.Core.Adjusters](README.md) + +### Methods + +#### ApplyAmountAdjustments + +```csharp +public abstract void ApplyAmountAdjustments(AmountAdjusterArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/amountadjustercollection.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/amountadjustercollection.md new file mode 100644 index 00000000000..8ad0842a1ed --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/amountadjustercollection.md @@ -0,0 +1,27 @@ +--- +title: AmountAdjusterCollection +description: API reference for AmountAdjusterCollection in Umbraco Commerce +--- +## AmountAdjusterCollection + +```csharp +public class AmountAdjusterCollection : ComposedCollection +``` + +**Inheritance** + +* Class [ComposedCollection<!0>](../../umbraco-commerce-common/umbraco-commerce-common-composing/composedcollection-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Adjusters](README.md) + +### Constructors + +#### AmountAdjusterCollection + +```csharp +public AmountAdjusterCollection(Func> itemsFactory) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/discountspriceadjuster.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/discountspriceadjuster.md new file mode 100644 index 00000000000..95b093a2588 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/discountspriceadjuster.md @@ -0,0 +1,38 @@ +--- +title: DiscountsPriceAdjuster +description: API reference for DiscountsPriceAdjuster in Umbraco Commerce +--- +## DiscountsPriceAdjuster + +```csharp +public class DiscountsPriceAdjuster : PriceAdjusterBase +``` + +**Inheritance** + +* Class [PriceAdjusterBase](priceadjusterbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Adjusters](README.md) + +### Constructors + +#### DiscountsPriceAdjuster + +```csharp +public DiscountsPriceAdjuster(UmbracoCommerceServiceContext services, + DiscountRuleProviderFactory ruleProviderFactory, + DiscountRewardProviderFactory rewardProviderFactory) +``` + + +### Methods + +#### ApplyPriceAdjustments + +```csharp +public override void ApplyPriceAdjustments(PriceAdjusterArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/giftcardsamountadjuster.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/giftcardsamountadjuster.md new file mode 100644 index 00000000000..6bf2c71ad13 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/giftcardsamountadjuster.md @@ -0,0 +1,37 @@ +--- +title: GiftCardsAmountAdjuster +description: API reference for GiftCardsAmountAdjuster in Umbraco Commerce +--- +## GiftCardsAmountAdjuster + +```csharp +public class GiftCardsAmountAdjuster : AmountAdjusterBase +``` + +**Inheritance** + +* Class [AmountAdjusterBase](amountadjusterbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Adjusters](README.md) + +### Constructors + +#### GiftCardsAmountAdjuster + +```csharp +public GiftCardsAmountAdjuster(IGiftCardService giftCardService, + ILogger logger) +``` + + +### Methods + +#### ApplyAmountAdjustments + +```csharp +public override void ApplyAmountAdjustments(AmountAdjusterArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/iamountadjuster.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/iamountadjuster.md new file mode 100644 index 00000000000..ee1d6218d45 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/iamountadjuster.md @@ -0,0 +1,23 @@ +--- +title: IAmountAdjuster +description: API reference for IAmountAdjuster in Umbraco Commerce +--- +## IAmountAdjuster + +```csharp +public interface IAmountAdjuster +``` + +**Namespace** +* [Umbraco.Commerce.Core.Adjusters](README.md) + +### Methods + +#### ApplyAmountAdjustments + +```csharp +public void ApplyAmountAdjustments(AmountAdjusterArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/ipriceadjuster.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/ipriceadjuster.md new file mode 100644 index 00000000000..fd3c705cbe9 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/ipriceadjuster.md @@ -0,0 +1,23 @@ +--- +title: IPriceAdjuster +description: API reference for IPriceAdjuster in Umbraco Commerce +--- +## IPriceAdjuster + +```csharp +public interface IPriceAdjuster +``` + +**Namespace** +* [Umbraco.Commerce.Core.Adjusters](README.md) + +### Methods + +#### ApplyPriceAdjustments + +```csharp +public void ApplyPriceAdjustments(PriceAdjusterArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/orderlinepriceadjustments.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/orderlinepriceadjustments.md new file mode 100644 index 00000000000..146950b3224 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/orderlinepriceadjustments.md @@ -0,0 +1,59 @@ +--- +title: OrderLinePriceAdjustments +description: API reference for OrderLinePriceAdjustments in Umbraco Commerce +--- +## OrderLinePriceAdjustments + +```csharp +public class OrderLinePriceAdjustments +``` + +**Namespace** +* [Umbraco.Commerce.Core.Adjusters](README.md) + +### Constructors + +#### OrderLinePriceAdjustments + +```csharp +public OrderLinePriceAdjustments(OrderLineCalculation orderLineCalculation, Guid currencyId) +``` + + +### Properties + +#### BasePriceAdjustments + +```csharp +public List BasePriceAdjustments { get; } +``` + + +--- + +#### OrderLines + +```csharp +public DictionaryAccessor OrderLines { get; } +``` + + +--- + +#### TotalPriceAdjustments + +```csharp +public List TotalPriceAdjustments { get; } +``` + + +--- + +#### UnitPriceAdjustments + +```csharp +public List UnitPriceAdjustments { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/priceadjusterargs.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/priceadjusterargs.md new file mode 100644 index 00000000000..6b77b2be147 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/priceadjusterargs.md @@ -0,0 +1,63 @@ +--- +title: PriceAdjusterArgs +description: API reference for PriceAdjusterArgs in Umbraco Commerce +--- +## PriceAdjusterArgs + +```csharp +public class PriceAdjusterArgs : AdjusterArgsBase +``` + +**Inheritance** + +* Class [AdjusterArgsBase](adjusterargsbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Adjusters](README.md) + +### Properties + +#### OrderLines + +```csharp +public DictionaryAccessor OrderLines { get; } +``` + + +--- + +#### PaymentTotalPriceAdjustments + +```csharp +public List PaymentTotalPriceAdjustments { get; } +``` + + +--- + +#### ShippingTotalPriceAdjustments + +```csharp +public List ShippingTotalPriceAdjustments { get; } +``` + + +--- + +#### SubtotalPriceAdjustments + +```csharp +public List SubtotalPriceAdjustments { get; } +``` + + +--- + +#### TotalPriceAdjustments + +```csharp +public List TotalPriceAdjustments { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/priceadjusterbase.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/priceadjusterbase.md new file mode 100644 index 00000000000..9f1d9cebbb6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/priceadjusterbase.md @@ -0,0 +1,27 @@ +--- +title: PriceAdjusterBase +description: API reference for PriceAdjusterBase in Umbraco Commerce +--- +## PriceAdjusterBase + +```csharp +public abstract class PriceAdjusterBase : IPriceAdjuster +``` + +**Inheritance** + +* interface [IPriceAdjuster](ipriceadjuster.md) + +**Namespace** +* [Umbraco.Commerce.Core.Adjusters](README.md) + +### Methods + +#### ApplyPriceAdjustments + +```csharp +public abstract void ApplyPriceAdjustments(PriceAdjusterArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/priceadjustercollection.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/priceadjustercollection.md new file mode 100644 index 00000000000..b612c317761 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-adjusters/priceadjustercollection.md @@ -0,0 +1,27 @@ +--- +title: PriceAdjusterCollection +description: API reference for PriceAdjusterCollection in Umbraco Commerce +--- +## PriceAdjusterCollection + +```csharp +public class PriceAdjusterCollection : ComposedCollection +``` + +**Inheritance** + +* Class [ComposedCollection<!0>](../../umbraco-commerce-common/umbraco-commerce-common-composing/composedcollection-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Adjusters](README.md) + +### Constructors + +#### PriceAdjusterCollection + +```csharp +public PriceAdjusterCollection(Func> itemsFactory) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-api/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-api/README.md new file mode 100644 index 00000000000..fe8cbb60008 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-api/README.md @@ -0,0 +1,15 @@ +--- +title: Umbraco.Commerce.Core.Api +description: API reference for Umbraco.Commerce.Core.Api in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Api namespace + +| Public Type | Description | +| --- | --- | +| static class [CommerceApi](commerceapi.md) | Convenient singleton access to the Umbraco Commerce API | +| interface [ICommerceApi](icommerceapi.md) | | +| interface [IUmbracoCommerceApi](iumbracocommerceapi.md) | | +| static class [UmbracoCommerceApi](umbracocommerceapi.md) | Convenient singleton access to the Umbraco Commerce API | +| class [UmbracoCommerceContext](umbracocommercecontext.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-api/commerceapi.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-api/commerceapi.md new file mode 100644 index 00000000000..0dcbd791a15 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-api/commerceapi.md @@ -0,0 +1,31 @@ +--- +title: CommerceApi +description: API reference for CommerceApi in Umbraco Commerce +--- +## CommerceApi + +Convenient singleton access to the Umbraco Commerce API + +```csharp +public static class CommerceApi +``` + +**Namespace** +* [Umbraco.Commerce.Core.Api](README.md) + +### Properties + +#### Instance + +Get the [`ICommerceApi`](icommerceapi.md) entry point + +```csharp +public static ICommerceApi Instance { get; } +``` + + +**Remarks** + +This helper is providing singleton access to the Umbraco Commerce API which generally isn't considered "best practice". You should instead look to resolve the [`ICommerceApi`](icommerceapi.md) via dependency injection where possible, and only resort to this singleton where you have no other option. + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-api/icommerceapi.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-api/icommerceapi.md new file mode 100644 index 00000000000..7747a150c88 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-api/icommerceapi.md @@ -0,0 +1,28 @@ +--- +title: ICommerceApi +description: API reference for ICommerceApi in Umbraco Commerce +--- +## ICommerceApi + +```csharp +public interface ICommerceApi : ICachedEntityService, + ICachedEntityService, ICachedEntityService, + ICachedEntityService, ICachedEntityService, + ICachedEntityService, ICachedEntityService, + ICachedEntityService, ICachedEntityService, + ICachedEntityService, + ICachedEntityService, + ICachedEntityService, ICachedEntityService, + ICachedEntityService, ICachedEntityService, + ICachedEntityService, IUmbracoCommerceApi +``` + +**Inheritance** + +* interface [ICachedEntityService<TEntityType>](../umbraco-commerce-core-services/icachedentityservice-1.md) +* interface [IUmbracoCommerceApi](iumbracocommerceapi.md) + +**Namespace** +* [Umbraco.Commerce.Core.Api](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-api/iumbracocommerceapi.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-api/iumbracocommerceapi.md new file mode 100644 index 00000000000..04d94944180 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-api/iumbracocommerceapi.md @@ -0,0 +1,59 @@ +--- +title: IUmbracoCommerceApi +description: API reference for IUmbracoCommerceApi in Umbraco Commerce +--- +## IUmbracoCommerceApi + +```csharp +public interface IUmbracoCommerceApi : ICachedEntityService, + ICachedEntityService, ICachedEntityService, + ICachedEntityService, ICachedEntityService, + ICachedEntityService, ICachedEntityService, + ICachedEntityService, ICachedEntityService, + ICachedEntityService, + ICachedEntityService, + ICachedEntityService, ICachedEntityService, + ICachedEntityService, ICachedEntityService, + ICachedEntityService, ICountryService, ICurrencyService, IDiscountService, + IEmailTemplateService, IExportTemplateService, IGiftCardService, IOrderService, + IOrderStatusService, IPaymentMethodService, IPaymentProviderService, IPaymentService, + IPrintTemplateService, IProductAttributeService, IProductService, ISessionManager, + IShippingMethodService, IStoreService, ITagService, ITaxService +``` + +**Inheritance** + +* interface [ICachedEntityService<TEntityType>](../umbraco-commerce-core-services/icachedentityservice-1.md) +* interface [ICountryService](../umbraco-commerce-core-services/icountryservice.md) +* interface [ICurrencyService](../umbraco-commerce-core-services/icurrencyservice.md) +* interface [IDiscountService](../umbraco-commerce-core-services/idiscountservice.md) +* interface [IEmailTemplateService](../umbraco-commerce-core-services/iemailtemplateservice.md) +* interface [IExportTemplateService](../umbraco-commerce-core-services/iexporttemplateservice.md) +* interface [IGiftCardService](../umbraco-commerce-core-services/igiftcardservice.md) +* interface [IOrderService](../umbraco-commerce-core-services/iorderservice.md) +* interface [IOrderStatusService](../umbraco-commerce-core-services/iorderstatusservice.md) +* interface [IPaymentMethodService](../umbraco-commerce-core-services/ipaymentmethodservice.md) +* interface [IPaymentProviderService](../umbraco-commerce-core-services/ipaymentproviderservice.md) +* interface [IPaymentService](../umbraco-commerce-core-services/ipaymentservice.md) +* interface [IPrintTemplateService](../umbraco-commerce-core-services/iprinttemplateservice.md) +* interface [IProductAttributeService](../umbraco-commerce-core-services/iproductattributeservice.md) +* interface [IProductService](../umbraco-commerce-core-services/iproductservice.md) +* interface [ISessionManager](../umbraco-commerce-core-session/isessionmanager.md) +* interface [IShippingMethodService](../umbraco-commerce-core-services/ishippingmethodservice.md) +* interface [IStoreService](../umbraco-commerce-core-services/istoreservice.md) +* interface [ITagService](../umbraco-commerce-core-services/itagservice.md) +* interface [ITaxService](../umbraco-commerce-core-services/itaxservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Api](README.md) + +### Properties + +#### Uow + +```csharp +public IUnitOfWorkProvider Uow { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-api/umbracocommerceapi.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-api/umbracocommerceapi.md new file mode 100644 index 00000000000..6751b320d5f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-api/umbracocommerceapi.md @@ -0,0 +1,31 @@ +--- +title: UmbracoCommerceApi +description: API reference for UmbracoCommerceApi in Umbraco Commerce +--- +## UmbracoCommerceApi + +Convenient singleton access to the Umbraco Commerce API + +```csharp +public static class UmbracoCommerceApi +``` + +**Namespace** +* [Umbraco.Commerce.Core.Api](README.md) + +### Properties + +#### Instance + +Get the [`IUmbracoCommerceApi`](iumbracocommerceapi.md) entry point + +```csharp +public static IUmbracoCommerceApi Instance { get; } +``` + + +**Remarks** + +This helper is providing singleton access to the Umbraco Commerce API which generally isn't considered "best practice". You should instead look to resolve the [`IUmbracoCommerceApi`](iumbracocommerceapi.md) via dependency injection where possible, and only resort to this singleton where you have no other option. + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-api/umbracocommercecontext.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-api/umbracocommercecontext.md new file mode 100644 index 00000000000..5af4e000c52 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-api/umbracocommercecontext.md @@ -0,0 +1,80 @@ +--- +title: UmbracoCommerceContext +description: API reference for UmbracoCommerceContext in Umbraco Commerce +--- +## UmbracoCommerceContext + +```csharp +public class UmbracoCommerceContext +``` + +**Namespace** +* [Umbraco.Commerce.Core.Api](README.md) + +### Constructors + +#### UmbracoCommerceContext + +```csharp +public UmbracoCommerceContext(Lazy services, + Lazy security, Lazy session, + Lazy uowProvider, Lazy ioHelper) +``` + + +### Properties + +#### IO + +Gets the IIOHelper + +```csharp +public IIOHelper IO { get; } +``` + + +--- + +#### Security + +Gets the [`UmbracoCommerceSecurityContext`](../umbraco-commerce-core-security/umbracocommercesecuritycontext.md) + +```csharp +public UmbracoCommerceSecurityContext Security { get; } +``` + + +--- + +#### Services + +Gets the [`UmbracoCommerceServiceContext`](../umbraco-commerce-core-services/umbracocommerceservicecontext.md) + +```csharp +public UmbracoCommerceServiceContext Services { get; } +``` + + +--- + +#### Session + +Gets the [`ISessionManager`](../umbraco-commerce-core-session/isessionmanager.md) + +```csharp +public ISessionManager Session { get; } +``` + + +--- + +#### Uow + +Gets the IUnitOfWorkProvider + +```csharp +public IUnitOfWorkProvider Uow { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-attributes/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-attributes/README.md new file mode 100644 index 00000000000..817b32b59d4 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-attributes/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Core.Attributes +description: API reference for Umbraco.Commerce.Core.Attributes in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Attributes namespace + +| Public Type | Description | +| --- | --- | +| class [UmbracoCommerceSettingAttribute](umbracocommercesettingattribute.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-attributes/umbracocommercesettingattribute.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-attributes/umbracocommercesettingattribute.md new file mode 100644 index 00000000000..927601a4334 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-attributes/umbracocommercesettingattribute.md @@ -0,0 +1,80 @@ +--- +title: UmbracoCommerceSettingAttribute +description: API reference for UmbracoCommerceSettingAttribute in Umbraco Commerce +--- +## UmbracoCommerceSettingAttribute + +```csharp +[AttributeUsage(AttributeTargets.Property)] +public class UmbracoCommerceSettingAttribute : Attribute +``` + +**Namespace** +* [Umbraco.Commerce.Core.Attributes](README.md) + +### Constructors + +#### UmbracoCommerceSettingAttribute + +The default constructor. + +```csharp +public UmbracoCommerceSettingAttribute() +``` + + +### Properties + +#### Config + +```csharp +public string Config { get; set; } +``` + + +--- + +#### Description + +```csharp +public string Description { get; set; } +``` + + +--- + +#### Key + +```csharp +public string Key { get; set; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; set; } +``` + + +--- + +#### SortOrder + +```csharp +public int SortOrder { get; set; } +``` + + +--- + +#### View + +```csharp +public string View { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-cache/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-cache/README.md new file mode 100644 index 00000000000..1d5ab7fd787 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-cache/README.md @@ -0,0 +1,17 @@ +--- +title: Umbraco.Commerce.Core.Cache +description: API reference for Umbraco.Commerce.Core.Cache in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Cache namespace + +| Public Type | Description | +| --- | --- | +| class [EntityCaches](entitycaches.md) | | +| interface [ICache](icache.md) | | +| interface [ICacheAccessor](icacheaccessor.md) | | +| interface [IEntityCache](ientitycache.md) | | +| interface [IEntityStatePolicyCache<TState,TId>](ientitystatepolicycache-2.md) | | +| interface [IPolicyCache](ipolicycache.md) | | +| class [UmbracoCommerceCacheAccessor](umbracocommercecacheaccessor.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-cache/entitycaches.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-cache/entitycaches.md new file mode 100644 index 00000000000..2f39141ca35 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-cache/entitycaches.md @@ -0,0 +1,37 @@ +--- +title: EntityCaches +description: API reference for EntityCaches in Umbraco Commerce +--- +## EntityCaches + +```csharp +public class EntityCaches +``` + +**Namespace** +* [Umbraco.Commerce.Core.Cache](README.md) + +### Constructors + +#### EntityCaches + +Initializes a new instance of the [`EntityCaches`](entitycaches.md) class. + +```csharp +public EntityCaches(Func cacheFactory) +``` + + +### Methods + +#### GetOrCreate<T> + +Gets a cache. + +```csharp +public virtual IEntityCache GetOrCreate() + where T : class +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-cache/icache.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-cache/icache.md new file mode 100644 index 00000000000..bd0a060364f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-cache/icache.md @@ -0,0 +1,110 @@ +--- +title: ICache +description: API reference for ICache in Umbraco Commerce +--- +## ICache + +```csharp +public interface ICache +``` + +**Namespace** +* [Umbraco.Commerce.Core.Cache](README.md) + +### Methods + +#### Clear + +```csharp +public void Clear(string cacheKey) +``` + + +--- + +#### ClearAll + +```csharp +public void ClearAll() +``` + + +--- + +#### ClearByKey + +```csharp +public void ClearByKey(string cacheKeyStartsWith) +``` + + +--- + +#### FindByKey + +```csharp +public IEnumerable FindByKey(string cacheKeyStartsWith) +``` + + +--- + +#### FindByKeyTyped<T> + +```csharp +public IEnumerable FindByKeyTyped(string cacheKeyStartsWith) +``` + + +--- + +#### Get (1 of 2) + +```csharp +public object Get(string cacheKey) +``` + +--- + +#### Get (2 of 2) + +```csharp +public object Get(string cacheKey, Func factory) +``` + + +--- + +#### GetTyped<T> (1 of 2) + +```csharp +public T GetTyped(string cacheKey) +``` + +--- + +#### GetTyped<T> (2 of 2) + +```csharp +public T GetTyped(string cacheKey, Func factory) +``` + + +--- + +#### Set (1 of 2) + +```csharp +public void Set(string cacheKey, object cacheValue) +``` + +--- + +#### Set (2 of 2) + +```csharp +public void Set(string cacheKey, object cacheValue, TimeSpan cacheDuration) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-cache/icacheaccessor.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-cache/icacheaccessor.md new file mode 100644 index 00000000000..9c74ada1d57 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-cache/icacheaccessor.md @@ -0,0 +1,50 @@ +--- +title: ICacheAccessor +description: API reference for ICacheAccessor in Umbraco Commerce +--- +## ICacheAccessor + +```csharp +public interface ICacheAccessor +``` + +**Namespace** +* [Umbraco.Commerce.Core.Cache](README.md) + +### Properties + +#### EntityCaches + +```csharp +public EntityCaches EntityCaches { get; } +``` + + +--- + +#### RequestCache + +```csharp +public ICache RequestCache { get; } +``` + + +--- + +#### RuntimeCache + +```csharp +public IPolicyCache RuntimeCache { get; } +``` + + +--- + +#### ScopedEntityCaches + +```csharp +public EntityCaches ScopedEntityCaches { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-cache/ientitycache.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-cache/ientitycache.md new file mode 100644 index 00000000000..75f3a631295 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-cache/ientitycache.md @@ -0,0 +1,69 @@ +--- +title: IEntityCache +description: API reference for IEntityCache in Umbraco Commerce +--- +## IEntityCache + +```csharp +public interface IEntityCache : IDisposable +``` + +**Namespace** +* [Umbraco.Commerce.Core.Cache](README.md) + +### Properties + +#### Keys + +```csharp +public IEnumerable Keys { get; } +``` + + +### Methods + +#### Clear + +```csharp +public void Clear() +``` + + +--- + +#### Get + +```csharp +public object Get(string key) +``` + + +--- + +#### GetAll + +```csharp +public IEnumerable GetAll() +``` + + +--- + +#### Remove + +```csharp +public void Remove(string key) +``` + + +--- + +#### Set + +```csharp +public void Set(string key, Func factory, TimeSpan? timeout = default(TimeSpan?), + bool isSliding = false) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-cache/ientitystatepolicycache-2.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-cache/ientitystatepolicycache-2.md new file mode 100644 index 00000000000..28df2814eae --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-cache/ientitystatepolicycache-2.md @@ -0,0 +1,100 @@ +--- +title: IEntityStatePolicyCache +description: API reference for IEntityStatePolicyCache in Umbraco Commerce +--- +## IEntityStatePolicyCache<TState,TId> + +```csharp +public interface IEntityStatePolicyCache + where TState : class +``` + +**Namespace** +* [Umbraco.Commerce.Core.Cache](README.md) + +### Methods + +#### CheckEntityCacheIntegrity + +```csharp +public EntityCacheIntegrityCheckResult CheckEntityCacheIntegrity( + EntityCacheIntegrityCheckOptions options, Func performCountAll, + Func> performGetAll) +``` + + +--- + +#### ClearAll + +```csharp +public void ClearAll() +``` + + +--- + +#### Exists + +```csharp +public bool Exists(TId id, Func performExists, + Func> performGetAll) +``` + + +--- + +#### Get + +```csharp +public TState Get(TId id, Func performGet, + Func> performGetAll) +``` + + +--- + +#### GetAll + +```csharp +public TState[] GetAll(TId[] ids, Func> performGetAll) +``` + + +--- + +#### GetAllCached + +```csharp +public TState[] GetAllCached(TId[] ids) +``` + + +--- + +#### GetCached + +```csharp +public TState GetCached(TId id) +``` + + +--- + +#### Remove + +```csharp +public void Remove(TState state) +``` + + +--- + +#### Set + +```csharp +public void Set(TState state, Func> performGetAll) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-cache/ipolicycache.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-cache/ipolicycache.md new file mode 100644 index 00000000000..fede735323e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-cache/ipolicycache.md @@ -0,0 +1,37 @@ +--- +title: IPolicyCache +description: API reference for IPolicyCache in Umbraco Commerce +--- +## IPolicyCache + +```csharp +public interface IPolicyCache : ICache +``` + +**Inheritance** + +* interface [ICache](icache.md) + +**Namespace** +* [Umbraco.Commerce.Core.Cache](README.md) + +### Methods + +#### Get + +```csharp +public object Get(string cacheKey, Func factory, TimeSpan? timeout, bool isSliding = false) +``` + + +--- + +#### Set + +```csharp +public void Set(string cacheKey, Func factory, TimeSpan? timeout = default(TimeSpan?), + bool isSliding = false) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-cache/umbracocommercecacheaccessor.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-cache/umbracocommercecacheaccessor.md new file mode 100644 index 00000000000..e1bdee0ae19 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-cache/umbracocommercecacheaccessor.md @@ -0,0 +1,64 @@ +--- +title: UmbracoCommerceCacheAccessor +description: API reference for UmbracoCommerceCacheAccessor in Umbraco Commerce +--- +## UmbracoCommerceCacheAccessor + +```csharp +public class UmbracoCommerceCacheAccessor : ICacheAccessor +``` + +**Inheritance** + +* interface [ICacheAccessor](icacheaccessor.md) + +**Namespace** +* [Umbraco.Commerce.Core.Cache](README.md) + +### Constructors + +#### UmbracoCommerceCacheAccessor + +```csharp +public UmbracoCommerceCacheAccessor(IPolicyCache runtimeCache, ICache requestCache, + EntityCaches entityCaches, Lazy uowAccessor) +``` + + +### Properties + +#### EntityCaches + +```csharp +public EntityCaches EntityCaches { get; } +``` + + +--- + +#### RequestCache + +```csharp +public ICache RequestCache { get; } +``` + + +--- + +#### RuntimeCache + +```csharp +public IPolicyCache RuntimeCache { get; } +``` + + +--- + +#### ScopedEntityCaches + +```csharp +public EntityCaches ScopedEntityCaches { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/README.md new file mode 100644 index 00000000000..d91c7d03ecb --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/README.md @@ -0,0 +1,28 @@ +--- +title: Umbraco.Commerce.Core.Calculators +description: API reference for Umbraco.Commerce.Core.Calculators in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Calculators namespace + +| Public Type | Description | +| --- | --- | +| interface [IOrderCalculator](iordercalculator.md) | | +| interface [IOrderLineCalculator](iorderlinecalculator.md) | | +| interface [IPaymentCalculator](ipaymentcalculator.md) | | +| interface [IProductCalculator](iproductcalculator.md) | | +| interface [IShippingCalculator](ishippingcalculator.md) | | +| class [OrderCalculator](ordercalculator.md) | | +| class [OrderLineCalculator](orderlinecalculator.md) | | +| abstract class [OrderLineCalculatorBase](orderlinecalculatorbase.md) | | +| class [PaymentCalculator](paymentcalculator.md) | | +| abstract class [PaymentCalculatorBase](paymentcalculatorbase.md) | | +| class [PaymentCalculatorContext](paymentcalculatorcontext.md) | | +| class [ProductCalculator](productcalculator.md) | | +| abstract class [ProductCalculatorBase](productcalculatorbase.md) | | +| class [ProductCalculatorContext](productcalculatorcontext.md) | | +| class [ShippingCalculator](shippingcalculator.md) | | +| abstract class [ShippingCalculatorBase](shippingcalculatorbase.md) | | +| class [ShippingCalculatorContext](shippingcalculatorcontext.md) | | +| class [UmbracoCommerceCalculatorContext](umbracocommercecalculatorcontext.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/iordercalculator.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/iordercalculator.md new file mode 100644 index 00000000000..fc40e4c9d55 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/iordercalculator.md @@ -0,0 +1,23 @@ +--- +title: IOrderCalculator +description: API reference for IOrderCalculator in Umbraco Commerce +--- +## IOrderCalculator + +```csharp +public interface IOrderCalculator +``` + +**Namespace** +* [Umbraco.Commerce.Core.Calculators](README.md) + +### Methods + +#### CalculateOrder + +```csharp +public OrderCalculation CalculateOrder(OrderReadOnly order) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/iorderlinecalculator.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/iorderlinecalculator.md new file mode 100644 index 00000000000..269b7490840 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/iorderlinecalculator.md @@ -0,0 +1,34 @@ +--- +title: IOrderLineCalculator +description: API reference for IOrderLineCalculator in Umbraco Commerce +--- +## IOrderLineCalculator + +```csharp +public interface IOrderLineCalculator +``` + +**Namespace** +* [Umbraco.Commerce.Core.Calculators](README.md) + +### Methods + +#### CalculateOrderLineTaxRate + +```csharp +public TaxRate CalculateOrderLineTaxRate(OrderReadOnly order, OrderLineReadOnly orderLine, + TaxSource taxSource, TaxRate fallbackTaxRate) +``` + + +--- + +#### CalculateOrderLineUnitPrice + +```csharp +public Price CalculateOrderLineUnitPrice(OrderReadOnly order, OrderLineReadOnly orderLine, + Guid currencyId, TaxRate taxRate) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/ipaymentcalculator.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/ipaymentcalculator.md new file mode 100644 index 00000000000..20cc21a3cf5 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/ipaymentcalculator.md @@ -0,0 +1,52 @@ +--- +title: IPaymentCalculator +description: API reference for IPaymentCalculator in Umbraco Commerce +--- +## IPaymentCalculator + +```csharp +public interface IPaymentCalculator +``` + +**Namespace** +* [Umbraco.Commerce.Core.Calculators](README.md) + +### Methods + +#### CalculatePaymentMethodPrice (1 of 2) + +```csharp +public Price CalculatePaymentMethodPrice(PaymentMethodReadOnly paymentMethod, Guid currencyId, + Guid? countryId, Guid? regionId, TaxRate taxRate) +``` + +--- + +#### CalculatePaymentMethodPrice (2 of 2) + +```csharp +public Price CalculatePaymentMethodPrice(PaymentMethodReadOnly paymentMethod, Guid currencyId, + Guid? countryId, Guid? regionId, TaxRate taxRate, PaymentCalculatorContext context) +``` + + +--- + +#### CalculatePaymentMethodTaxRate (1 of 2) + +```csharp +public TaxRate CalculatePaymentMethodTaxRate(PaymentMethodReadOnly paymentMethod, + TaxSource taxSource, TaxRate fallbackTaxRate) +``` + +--- + +#### CalculatePaymentMethodTaxRate (2 of 2) + +```csharp +public TaxRate CalculatePaymentMethodTaxRate(PaymentMethodReadOnly paymentMethod, + TaxSource taxSource, TaxRate fallbackTaxRate, PaymentCalculatorContext context) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/iproductcalculator.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/iproductcalculator.md new file mode 100644 index 00000000000..b59415d1b21 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/iproductcalculator.md @@ -0,0 +1,52 @@ +--- +title: IProductCalculator +description: API reference for IProductCalculator in Umbraco Commerce +--- +## IProductCalculator + +```csharp +public interface IProductCalculator +``` + +**Namespace** +* [Umbraco.Commerce.Core.Calculators](README.md) + +### Methods + +#### CalculateProductPrice (1 of 2) + +```csharp +public Price CalculateProductPrice(IProductSnapshot productSnapshot, Guid currencyId, + TaxRate taxRate) +``` + +--- + +#### CalculateProductPrice (2 of 2) + +```csharp +public Price CalculateProductPrice(IProductSnapshot productSnapshot, Guid currencyId, + TaxRate taxRate, ProductCalculatorContext context) +``` + + +--- + +#### CalculateProductTaxRate (1 of 2) + +```csharp +public TaxRate CalculateProductTaxRate(IProductSnapshot productSnapshot, TaxSource taxSource, + TaxRate fallbackTaxRate) +``` + +--- + +#### CalculateProductTaxRate (2 of 2) + +```csharp +public TaxRate CalculateProductTaxRate(IProductSnapshot productSnapshot, TaxSource taxSource, + TaxRate fallbackTaxRate, ProductCalculatorContext context) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/ishippingcalculator.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/ishippingcalculator.md new file mode 100644 index 00000000000..17ce0601fd3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/ishippingcalculator.md @@ -0,0 +1,52 @@ +--- +title: IShippingCalculator +description: API reference for IShippingCalculator in Umbraco Commerce +--- +## IShippingCalculator + +```csharp +public interface IShippingCalculator +``` + +**Namespace** +* [Umbraco.Commerce.Core.Calculators](README.md) + +### Methods + +#### CalculateShippingMethodPrice (1 of 2) + +```csharp +public Price CalculateShippingMethodPrice(ShippingMethodReadOnly shippingMethod, Guid currencyId, + Guid? countryId, Guid? regionId, TaxRate taxRate) +``` + +--- + +#### CalculateShippingMethodPrice (2 of 2) + +```csharp +public Price CalculateShippingMethodPrice(ShippingMethodReadOnly shippingMethod, Guid currencyId, + Guid? countryId, Guid? regionId, TaxRate taxRate, ShippingCalculatorContext context) +``` + + +--- + +#### CalculateShippingMethodTaxRate (1 of 2) + +```csharp +public TaxRate CalculateShippingMethodTaxRate(ShippingMethodReadOnly shippingMethod, + TaxSource taxSource, TaxRate fallbackTaxRate) +``` + +--- + +#### CalculateShippingMethodTaxRate (2 of 2) + +```csharp +public TaxRate CalculateShippingMethodTaxRate(ShippingMethodReadOnly shippingMethod, + TaxSource taxSource, TaxRate fallbackTaxRate, ShippingCalculatorContext context) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/ordercalculator.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/ordercalculator.md new file mode 100644 index 00000000000..b188a11202d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/ordercalculator.md @@ -0,0 +1,36 @@ +--- +title: OrderCalculator +description: API reference for OrderCalculator in Umbraco Commerce +--- +## OrderCalculator + +```csharp +public class OrderCalculator : IOrderCalculator +``` + +**Inheritance** + +* interface [IOrderCalculator](iordercalculator.md) + +**Namespace** +* [Umbraco.Commerce.Core.Calculators](README.md) + +### Constructors + +#### OrderCalculator + +```csharp +public OrderCalculator(ILogger logger) +``` + + +### Methods + +#### CalculateOrder + +```csharp +public OrderCalculation CalculateOrder(OrderReadOnly order) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/orderlinecalculator.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/orderlinecalculator.md new file mode 100644 index 00000000000..31e99b8fadd --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/orderlinecalculator.md @@ -0,0 +1,48 @@ +--- +title: OrderLineCalculator +description: API reference for OrderLineCalculator in Umbraco Commerce +--- +## OrderLineCalculator + +```csharp +public class OrderLineCalculator : OrderLineCalculatorBase +``` + +**Inheritance** + +* Class [OrderLineCalculatorBase](orderlinecalculatorbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Calculators](README.md) + +### Constructors + +#### OrderLineCalculator + +```csharp +public OrderLineCalculator(ITaxService taxService, IStoreService storeService, + IProductPriceFreezerService productPriceFreezerService) +``` + + +### Methods + +#### CalculateOrderLineTaxRate + +```csharp +public override TaxRate CalculateOrderLineTaxRate(OrderReadOnly order, OrderLineReadOnly orderLine, + TaxSource taxSource, TaxRate fallbackTaxRate) +``` + + +--- + +#### CalculateOrderLineUnitPrice + +```csharp +public override Price CalculateOrderLineUnitPrice(OrderReadOnly order, OrderLineReadOnly orderLine, + Guid currencyId, TaxRate taxRate) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/orderlinecalculatorbase.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/orderlinecalculatorbase.md new file mode 100644 index 00000000000..abc2055d37c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/orderlinecalculatorbase.md @@ -0,0 +1,38 @@ +--- +title: OrderLineCalculatorBase +description: API reference for OrderLineCalculatorBase in Umbraco Commerce +--- +## OrderLineCalculatorBase + +```csharp +public abstract class OrderLineCalculatorBase : IOrderLineCalculator +``` + +**Inheritance** + +* interface [IOrderLineCalculator](iorderlinecalculator.md) + +**Namespace** +* [Umbraco.Commerce.Core.Calculators](README.md) + +### Methods + +#### CalculateOrderLineTaxRate + +```csharp +public abstract TaxRate CalculateOrderLineTaxRate(OrderReadOnly order, OrderLineReadOnly orderLine, + TaxSource taxSource, TaxRate fallbackTaxRate) +``` + + +--- + +#### CalculateOrderLineUnitPrice + +```csharp +public abstract Price CalculateOrderLineUnitPrice(OrderReadOnly order, OrderLineReadOnly orderLine, + Guid currencyId, TaxRate taxRate) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/paymentcalculator.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/paymentcalculator.md new file mode 100644 index 00000000000..1efe8fe517c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/paymentcalculator.md @@ -0,0 +1,48 @@ +--- +title: PaymentCalculator +description: API reference for PaymentCalculator in Umbraco Commerce +--- +## PaymentCalculator + +```csharp +public class PaymentCalculator : PaymentCalculatorBase +``` + +**Inheritance** + +* Class [PaymentCalculatorBase](paymentcalculatorbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Calculators](README.md) + +### Constructors + +#### PaymentCalculator + +```csharp +public PaymentCalculator(ITaxService taxService, IStoreService storeService) +``` + + +### Methods + +#### CalculatePaymentMethodPrice + +```csharp +public override Price CalculatePaymentMethodPrice(PaymentMethodReadOnly paymentMethod, + Guid currencyId, Guid? countryId, Guid? regionId, TaxRate taxRate, + PaymentCalculatorContext context) +``` + + +--- + +#### CalculatePaymentMethodTaxRate + +```csharp +public override TaxRate CalculatePaymentMethodTaxRate(PaymentMethodReadOnly paymentMethod, + TaxSource taxSource, TaxRate fallbackTaxRate, PaymentCalculatorContext context) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/paymentcalculatorbase.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/paymentcalculatorbase.md new file mode 100644 index 00000000000..12c38a1bc97 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/paymentcalculatorbase.md @@ -0,0 +1,59 @@ +--- +title: PaymentCalculatorBase +description: API reference for PaymentCalculatorBase in Umbraco Commerce +--- +## PaymentCalculatorBase + +```csharp +public abstract class PaymentCalculatorBase : IPaymentCalculator +``` + +**Inheritance** + +* interface [IPaymentCalculator](ipaymentcalculator.md) + +**Namespace** +* [Umbraco.Commerce.Core.Calculators](README.md) + +### Methods + +#### CalculatePaymentMethodPrice + +```csharp +public Price CalculatePaymentMethodPrice(PaymentMethodReadOnly paymentMethod, Guid currencyId, + Guid? countryId, Guid? regionId, TaxRate taxRate) +``` + + +--- + +#### CalculatePaymentMethodPrice + +```csharp +public abstract Price CalculatePaymentMethodPrice(PaymentMethodReadOnly paymentMethod, + Guid currencyId, Guid? countryId, Guid? regionId, TaxRate taxRate, + PaymentCalculatorContext context) +``` + + +--- + +#### CalculatePaymentMethodTaxRate + +```csharp +public TaxRate CalculatePaymentMethodTaxRate(PaymentMethodReadOnly paymentMethod, + TaxSource taxSource, TaxRate fallbackTaxRate) +``` + + +--- + +#### CalculatePaymentMethodTaxRate + +```csharp +public abstract TaxRate CalculatePaymentMethodTaxRate(PaymentMethodReadOnly paymentMethod, + TaxSource taxSource, TaxRate fallbackTaxRate, PaymentCalculatorContext context) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/paymentcalculatorcontext.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/paymentcalculatorcontext.md new file mode 100644 index 00000000000..0fd0dd4bdd1 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/paymentcalculatorcontext.md @@ -0,0 +1,60 @@ +--- +title: PaymentCalculatorContext +description: API reference for PaymentCalculatorContext in Umbraco Commerce +--- +## PaymentCalculatorContext + +```csharp +public class PaymentCalculatorContext +``` + +**Namespace** +* [Umbraco.Commerce.Core.Calculators](README.md) + +### Constructors + +#### PaymentCalculatorContext + +The default constructor. + +```csharp +public PaymentCalculatorContext() +``` + + +--- + +#### PaymentCalculatorContext (1 of 2) + +```csharp +public PaymentCalculatorContext(OrderReadOnly order) +``` + +--- + +#### PaymentCalculatorContext (2 of 2) + +```csharp +public PaymentCalculatorContext(OrderReadOnly order, OrderCalculation orderCalculation) +``` + + +### Properties + +#### Order + +```csharp +public OrderReadOnly Order { get; } +``` + + +--- + +#### OrderCalculation + +```csharp +public OrderCalculation OrderCalculation { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/productcalculator.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/productcalculator.md new file mode 100644 index 00000000000..939a60e73cf --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/productcalculator.md @@ -0,0 +1,47 @@ +--- +title: ProductCalculator +description: API reference for ProductCalculator in Umbraco Commerce +--- +## ProductCalculator + +```csharp +public class ProductCalculator : ProductCalculatorBase +``` + +**Inheritance** + +* Class [ProductCalculatorBase](productcalculatorbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Calculators](README.md) + +### Constructors + +#### ProductCalculator + +```csharp +public ProductCalculator(ITaxService taxService, IStoreService storeService) +``` + + +### Methods + +#### CalculateProductPrice + +```csharp +public override Price CalculateProductPrice(IProductSnapshot productSnapshot, Guid currencyId, + TaxRate taxRate, ProductCalculatorContext context) +``` + + +--- + +#### CalculateProductTaxRate + +```csharp +public override TaxRate CalculateProductTaxRate(IProductSnapshot productSnapshot, + TaxSource taxSource, TaxRate fallbackTaxRate, ProductCalculatorContext context) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/productcalculatorbase.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/productcalculatorbase.md new file mode 100644 index 00000000000..2a4e9658641 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/productcalculatorbase.md @@ -0,0 +1,58 @@ +--- +title: ProductCalculatorBase +description: API reference for ProductCalculatorBase in Umbraco Commerce +--- +## ProductCalculatorBase + +```csharp +public abstract class ProductCalculatorBase : IProductCalculator +``` + +**Inheritance** + +* interface [IProductCalculator](iproductcalculator.md) + +**Namespace** +* [Umbraco.Commerce.Core.Calculators](README.md) + +### Methods + +#### CalculateProductPrice + +```csharp +public virtual Price CalculateProductPrice(IProductSnapshot productSnapshot, Guid currencyId, + TaxRate taxRate) +``` + + +--- + +#### CalculateProductPrice + +```csharp +public abstract Price CalculateProductPrice(IProductSnapshot productSnapshot, Guid currencyId, + TaxRate taxRate, ProductCalculatorContext context) +``` + + +--- + +#### CalculateProductTaxRate + +```csharp +public virtual TaxRate CalculateProductTaxRate(IProductSnapshot productSnapshot, + TaxSource taxSource, TaxRate fallbackTaxRate) +``` + + +--- + +#### CalculateProductTaxRate + +```csharp +public abstract TaxRate CalculateProductTaxRate(IProductSnapshot productSnapshot, + TaxSource taxSource, TaxRate fallbackTaxRate, ProductCalculatorContext context) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/productcalculatorcontext.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/productcalculatorcontext.md new file mode 100644 index 00000000000..436b26084fb --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/productcalculatorcontext.md @@ -0,0 +1,43 @@ +--- +title: ProductCalculatorContext +description: API reference for ProductCalculatorContext in Umbraco Commerce +--- +## ProductCalculatorContext + +```csharp +public class ProductCalculatorContext +``` + +**Namespace** +* [Umbraco.Commerce.Core.Calculators](README.md) + +### Constructors + +#### ProductCalculatorContext + +The default constructor. + +```csharp +public ProductCalculatorContext() +``` + + +--- + +#### ProductCalculatorContext + +```csharp +public ProductCalculatorContext(OrderReadOnly order) +``` + + +### Properties + +#### Order + +```csharp +public OrderReadOnly Order { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/shippingcalculator.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/shippingcalculator.md new file mode 100644 index 00000000000..f2bac14d674 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/shippingcalculator.md @@ -0,0 +1,48 @@ +--- +title: ShippingCalculator +description: API reference for ShippingCalculator in Umbraco Commerce +--- +## ShippingCalculator + +```csharp +public class ShippingCalculator : ShippingCalculatorBase +``` + +**Inheritance** + +* Class [ShippingCalculatorBase](shippingcalculatorbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Calculators](README.md) + +### Constructors + +#### ShippingCalculator + +```csharp +public ShippingCalculator(ITaxService taxService, IStoreService storeService) +``` + + +### Methods + +#### CalculateShippingMethodPrice + +```csharp +public override Price CalculateShippingMethodPrice(ShippingMethodReadOnly shippingMethod, + Guid currencyId, Guid? countryId, Guid? regionId, TaxRate taxRate, + ShippingCalculatorContext context) +``` + + +--- + +#### CalculateShippingMethodTaxRate + +```csharp +public override TaxRate CalculateShippingMethodTaxRate(ShippingMethodReadOnly shippingMethod, + TaxSource taxSource, TaxRate fallbackTaxRate, ShippingCalculatorContext context) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/shippingcalculatorbase.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/shippingcalculatorbase.md new file mode 100644 index 00000000000..98cd41af176 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/shippingcalculatorbase.md @@ -0,0 +1,59 @@ +--- +title: ShippingCalculatorBase +description: API reference for ShippingCalculatorBase in Umbraco Commerce +--- +## ShippingCalculatorBase + +```csharp +public abstract class ShippingCalculatorBase : IShippingCalculator +``` + +**Inheritance** + +* interface [IShippingCalculator](ishippingcalculator.md) + +**Namespace** +* [Umbraco.Commerce.Core.Calculators](README.md) + +### Methods + +#### CalculateShippingMethodPrice + +```csharp +public Price CalculateShippingMethodPrice(ShippingMethodReadOnly shippingMethod, Guid currencyId, + Guid? countryId, Guid? regionId, TaxRate taxRate) +``` + + +--- + +#### CalculateShippingMethodPrice + +```csharp +public abstract Price CalculateShippingMethodPrice(ShippingMethodReadOnly shippingMethod, + Guid currencyId, Guid? countryId, Guid? regionId, TaxRate taxRate, + ShippingCalculatorContext context) +``` + + +--- + +#### CalculateShippingMethodTaxRate + +```csharp +public TaxRate CalculateShippingMethodTaxRate(ShippingMethodReadOnly shippingMethod, + TaxSource taxSource, TaxRate fallbackTaxRate) +``` + + +--- + +#### CalculateShippingMethodTaxRate + +```csharp +public abstract TaxRate CalculateShippingMethodTaxRate(ShippingMethodReadOnly shippingMethod, + TaxSource taxSource, TaxRate fallbackTaxRate, ShippingCalculatorContext context) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/shippingcalculatorcontext.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/shippingcalculatorcontext.md new file mode 100644 index 00000000000..4e79dc94798 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/shippingcalculatorcontext.md @@ -0,0 +1,60 @@ +--- +title: ShippingCalculatorContext +description: API reference for ShippingCalculatorContext in Umbraco Commerce +--- +## ShippingCalculatorContext + +```csharp +public class ShippingCalculatorContext +``` + +**Namespace** +* [Umbraco.Commerce.Core.Calculators](README.md) + +### Constructors + +#### ShippingCalculatorContext + +The default constructor. + +```csharp +public ShippingCalculatorContext() +``` + + +--- + +#### ShippingCalculatorContext (1 of 2) + +```csharp +public ShippingCalculatorContext(OrderReadOnly order) +``` + +--- + +#### ShippingCalculatorContext (2 of 2) + +```csharp +public ShippingCalculatorContext(OrderReadOnly order, OrderCalculation orderCalculation) +``` + + +### Properties + +#### Order + +```csharp +public OrderReadOnly Order { get; } +``` + + +--- + +#### OrderCalculation + +```csharp +public OrderCalculation OrderCalculation { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/umbracocommercecalculatorcontext.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/umbracocommercecalculatorcontext.md new file mode 100644 index 00000000000..d0e7d34e71d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-calculators/umbracocommercecalculatorcontext.md @@ -0,0 +1,80 @@ +--- +title: UmbracoCommerceCalculatorContext +description: API reference for UmbracoCommerceCalculatorContext in Umbraco Commerce +--- +## UmbracoCommerceCalculatorContext + +```csharp +public class UmbracoCommerceCalculatorContext +``` + +**Namespace** +* [Umbraco.Commerce.Core.Calculators](README.md) + +### Constructors + +#### UmbracoCommerceCalculatorContext + +```csharp +public UmbracoCommerceCalculatorContext(Lazy orderCalculator, + Lazy orderLineCalculator, Lazy paymentCalculator, + Lazy shippingCalculator, Lazy productCalculator) +``` + + +### Properties + +#### OrderCalculator + +Gets the [`IOrderCalculator`](iordercalculator.md) + +```csharp +public IOrderCalculator OrderCalculator { get; } +``` + + +--- + +#### OrderLineCalculator + +Gets the [`IOrderLineCalculator`](iorderlinecalculator.md) + +```csharp +public IOrderLineCalculator OrderLineCalculator { get; } +``` + + +--- + +#### PaymentCalculator + +Gets the [`IPaymentCalculator`](ipaymentcalculator.md) + +```csharp +public IPaymentCalculator PaymentCalculator { get; } +``` + + +--- + +#### ProductCalculator + +Gets the [`IProductCalculator`](iproductcalculator.md) + +```csharp +public IProductCalculator ProductCalculator { get; } +``` + + +--- + +#### ShippingCalculator + +Gets the [`IShippingCalculator`](ishippingcalculator.md) + +```csharp +public IShippingCalculator ShippingCalculator { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-composing/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-composing/README.md new file mode 100644 index 00000000000..aeec2fedf30 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-composing/README.md @@ -0,0 +1,21 @@ +--- +title: Umbraco.Commerce.Core.Composing +description: API reference for Umbraco.Commerce.Core.Composing in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Composing namespace + +| Public Type | Description | +| --- | --- | +| class [AmountAdjusterCollectionBuilder](amountadjustercollectionbuilder.md) | | +| class [DiscountRewardProviderCollectionBuilder](discountrewardprovidercollectionbuilder.md) | | +| class [DiscountRuleProviderCollectionBuilder](discountruleprovidercollectionbuilder.md) | | +| class [EventHandlerCollectionBuilder<TEvent>](eventhandlercollectionbuilder-1.md) | | +| class [OrderFinderCollectionBuilder](orderfindercollectionbuilder.md) | | +| class [PaymentProviderCollectionBuilder](paymentprovidercollectionbuilder.md) | | +| class [PipelineTaskCollectionBuilder<TCollection,TItem>](pipelinetaskcollectionbuilder-2.md) | | +| class [PipelineTaskCollectionBuilder<TCollection,TItem,TResult>](pipelinetaskcollectionbuilder-3.md) | | +| class [PriceAdjusterCollectionBuilder](priceadjustercollectionbuilder.md) | | +| class [RegisteredCustomerInfoProviderCollectionBuilder](registeredcustomerinfoprovidercollectionbuilder.md) | | +| class [UmbracoCommerceEventHandlerComposer<TEvent,TInterface>](umbracocommerceeventhandlercomposer-2.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-composing/amountadjustercollectionbuilder.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-composing/amountadjustercollectionbuilder.md new file mode 100644 index 00000000000..d6f93b46329 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-composing/amountadjustercollectionbuilder.md @@ -0,0 +1,30 @@ +--- +title: AmountAdjusterCollectionBuilder +description: API reference for AmountAdjusterCollectionBuilder in Umbraco Commerce +--- +## AmountAdjusterCollectionBuilder + +```csharp +public class AmountAdjusterCollectionBuilder : + OrderedComposedCollectionBuilderBase +``` + +**Inheritance** + +* Class [OrderedComposedCollectionBuilderBase<!0,!1,!2>](../../umbraco-commerce-common/umbraco-commerce-common-composing/orderedcomposedcollectionbuilderbase-3.md) + +**Namespace** +* [Umbraco.Commerce.Core.Composing](README.md) + +### Constructors + +#### AmountAdjusterCollectionBuilder + +The default constructor. + +```csharp +public AmountAdjusterCollectionBuilder() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-composing/discountrewardprovidercollectionbuilder.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-composing/discountrewardprovidercollectionbuilder.md new file mode 100644 index 00000000000..9cf81adad52 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-composing/discountrewardprovidercollectionbuilder.md @@ -0,0 +1,30 @@ +--- +title: DiscountRewardProviderCollectionBuilder +description: API reference for DiscountRewardProviderCollectionBuilder in Umbraco Commerce +--- +## DiscountRewardProviderCollectionBuilder + +```csharp +public class DiscountRewardProviderCollectionBuilder : + ComposedCollectionBuilderBase +``` + +**Inheritance** + +* Class [ComposedCollectionBuilderBase<!0,!1,!2>](../../umbraco-commerce-common/umbraco-commerce-common-composing/composedcollectionbuilderbase-3.md) + +**Namespace** +* [Umbraco.Commerce.Core.Composing](README.md) + +### Constructors + +#### DiscountRewardProviderCollectionBuilder + +The default constructor. + +```csharp +public DiscountRewardProviderCollectionBuilder() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-composing/discountruleprovidercollectionbuilder.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-composing/discountruleprovidercollectionbuilder.md new file mode 100644 index 00000000000..d7b1e99acec --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-composing/discountruleprovidercollectionbuilder.md @@ -0,0 +1,30 @@ +--- +title: DiscountRuleProviderCollectionBuilder +description: API reference for DiscountRuleProviderCollectionBuilder in Umbraco Commerce +--- +## DiscountRuleProviderCollectionBuilder + +```csharp +public class DiscountRuleProviderCollectionBuilder : + ComposedCollectionBuilderBase +``` + +**Inheritance** + +* Class [ComposedCollectionBuilderBase<!0,!1,!2>](../../umbraco-commerce-common/umbraco-commerce-common-composing/composedcollectionbuilderbase-3.md) + +**Namespace** +* [Umbraco.Commerce.Core.Composing](README.md) + +### Constructors + +#### DiscountRuleProviderCollectionBuilder + +The default constructor. + +```csharp +public DiscountRuleProviderCollectionBuilder() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-composing/eventhandlercollectionbuilder-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-composing/eventhandlercollectionbuilder-1.md new file mode 100644 index 00000000000..9a4ea5e1688 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-composing/eventhandlercollectionbuilder-1.md @@ -0,0 +1,31 @@ +--- +title: EventHandlerCollectionBuilder +description: API reference for EventHandlerCollectionBuilder in Umbraco Commerce +--- +## EventHandlerCollectionBuilder<TEvent> + +```csharp +public class EventHandlerCollectionBuilder : + OrderedComposedCollectionBuilderBase, EventHandlerCollection, IEventHandlerFor> + where TEvent : IEvent +``` + +**Inheritance** + +* Class [OrderedComposedCollectionBuilderBase<!0,!1,!2>](../../umbraco-commerce-common/umbraco-commerce-common-composing/orderedcomposedcollectionbuilderbase-3.md) + +**Namespace** +* [Umbraco.Commerce.Core.Composing](README.md) + +### Constructors + +#### EventHandlerCollectionBuilder<TEvent> + +The default constructor. + +```csharp +public EventHandlerCollectionBuilder() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-composing/orderfindercollectionbuilder.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-composing/orderfindercollectionbuilder.md new file mode 100644 index 00000000000..f2d34154af2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-composing/orderfindercollectionbuilder.md @@ -0,0 +1,30 @@ +--- +title: OrderFinderCollectionBuilder +description: API reference for OrderFinderCollectionBuilder in Umbraco Commerce +--- +## OrderFinderCollectionBuilder + +```csharp +public class OrderFinderCollectionBuilder : + OrderedComposedCollectionBuilderBase +``` + +**Inheritance** + +* Class [OrderedComposedCollectionBuilderBase<!0,!1,!2>](../../umbraco-commerce-common/umbraco-commerce-common-composing/orderedcomposedcollectionbuilderbase-3.md) + +**Namespace** +* [Umbraco.Commerce.Core.Composing](README.md) + +### Constructors + +#### OrderFinderCollectionBuilder + +The default constructor. + +```csharp +public OrderFinderCollectionBuilder() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-composing/paymentprovidercollectionbuilder.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-composing/paymentprovidercollectionbuilder.md new file mode 100644 index 00000000000..cc66ff64cd7 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-composing/paymentprovidercollectionbuilder.md @@ -0,0 +1,30 @@ +--- +title: PaymentProviderCollectionBuilder +description: API reference for PaymentProviderCollectionBuilder in Umbraco Commerce +--- +## PaymentProviderCollectionBuilder + +```csharp +public class PaymentProviderCollectionBuilder : + ComposedCollectionBuilderBase +``` + +**Inheritance** + +* Class [ComposedCollectionBuilderBase<!0,!1,!2>](../../umbraco-commerce-common/umbraco-commerce-common-composing/composedcollectionbuilderbase-3.md) + +**Namespace** +* [Umbraco.Commerce.Core.Composing](README.md) + +### Constructors + +#### PaymentProviderCollectionBuilder + +The default constructor. + +```csharp +public PaymentProviderCollectionBuilder() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-composing/pipelinetaskcollectionbuilder-2.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-composing/pipelinetaskcollectionbuilder-2.md new file mode 100644 index 00000000000..770983a0bb5 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-composing/pipelinetaskcollectionbuilder-2.md @@ -0,0 +1,59 @@ +--- +title: PipelineTaskCollectionBuilder +description: API reference for PipelineTaskCollectionBuilder in Umbraco Commerce +--- +## PipelineTaskCollectionBuilder<TCollection,TItem> + +```csharp +public class PipelineTaskCollectionBuilder : + OrderedComposedCollectionBuilderBase, TCollection, IPipelineTask> + where TCollection : class, IPipelineTaskCollection +``` + +**Inheritance** + +* Class [OrderedComposedCollectionBuilderBase<!0,!1,!2>](../../umbraco-commerce-common/umbraco-commerce-common-composing/orderedcomposedcollectionbuilderbase-3.md) + +**Namespace** +* [Umbraco.Commerce.Core.Composing](README.md) + +### Constructors + +#### PipelineTaskCollectionBuilder<TCollection,TItem> + +The default constructor. + +```csharp +public PipelineTaskCollectionBuilder() +``` + + +### Methods + +#### CreateCollection + +```csharp +public override TCollection CreateCollection(IServiceProvider factory) +``` + + +--- + +#### OnFail<T> + +```csharp +public PipelineTaskCollectionBuilder OnFail() + where T : IPipelineAction +``` + + +--- + +#### RegisterWith + +```csharp +public override void RegisterWith(IServiceCollection services) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-composing/pipelinetaskcollectionbuilder-3.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-composing/pipelinetaskcollectionbuilder-3.md new file mode 100644 index 00000000000..c4f70af3971 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-composing/pipelinetaskcollectionbuilder-3.md @@ -0,0 +1,59 @@ +--- +title: PipelineTaskCollectionBuilder +description: API reference for PipelineTaskCollectionBuilder in Umbraco Commerce +--- +## PipelineTaskCollectionBuilder<TCollection,TItem,TResult> + +```csharp +public class PipelineTaskCollectionBuilder : + OrderedComposedCollectionBuilderBase, TCollection, IPipelineTask> + where TCollection : class, IPipelineTaskCollection +``` + +**Inheritance** + +* Class [OrderedComposedCollectionBuilderBase<!0,!1,!2>](../../umbraco-commerce-common/umbraco-commerce-common-composing/orderedcomposedcollectionbuilderbase-3.md) + +**Namespace** +* [Umbraco.Commerce.Core.Composing](README.md) + +### Constructors + +#### PipelineTaskCollectionBuilder<TCollection,TItem,TResult> + +The default constructor. + +```csharp +public PipelineTaskCollectionBuilder() +``` + + +### Methods + +#### CreateCollection + +```csharp +public override TCollection CreateCollection(IServiceProvider factory) +``` + + +--- + +#### OnFail<T> + +```csharp +public PipelineTaskCollectionBuilder OnFail() + where T : IPipelineAction +``` + + +--- + +#### RegisterWith + +```csharp +public override void RegisterWith(IServiceCollection services) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-composing/priceadjustercollectionbuilder.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-composing/priceadjustercollectionbuilder.md new file mode 100644 index 00000000000..ea4b5fb4999 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-composing/priceadjustercollectionbuilder.md @@ -0,0 +1,30 @@ +--- +title: PriceAdjusterCollectionBuilder +description: API reference for PriceAdjusterCollectionBuilder in Umbraco Commerce +--- +## PriceAdjusterCollectionBuilder + +```csharp +public class PriceAdjusterCollectionBuilder : + OrderedComposedCollectionBuilderBase +``` + +**Inheritance** + +* Class [OrderedComposedCollectionBuilderBase<!0,!1,!2>](../../umbraco-commerce-common/umbraco-commerce-common-composing/orderedcomposedcollectionbuilderbase-3.md) + +**Namespace** +* [Umbraco.Commerce.Core.Composing](README.md) + +### Constructors + +#### PriceAdjusterCollectionBuilder + +The default constructor. + +```csharp +public PriceAdjusterCollectionBuilder() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-composing/registeredcustomerinfoprovidercollectionbuilder.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-composing/registeredcustomerinfoprovidercollectionbuilder.md new file mode 100644 index 00000000000..2253f1ad3c6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-composing/registeredcustomerinfoprovidercollectionbuilder.md @@ -0,0 +1,30 @@ +--- +title: RegisteredCustomerInfoProviderCollectionBuilder +description: API reference for RegisteredCustomerInfoProviderCollectionBuilder in Umbraco Commerce +--- +## RegisteredCustomerInfoProviderCollectionBuilder + +```csharp +public class RegisteredCustomerInfoProviderCollectionBuilder : + ComposedCollectionBuilderBase +``` + +**Inheritance** + +* Class [ComposedCollectionBuilderBase<!0,!1,!2>](../../umbraco-commerce-common/umbraco-commerce-common-composing/composedcollectionbuilderbase-3.md) + +**Namespace** +* [Umbraco.Commerce.Core.Composing](README.md) + +### Constructors + +#### RegisteredCustomerInfoProviderCollectionBuilder + +The default constructor. + +```csharp +public RegisteredCustomerInfoProviderCollectionBuilder() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-composing/umbracocommerceeventhandlercomposer-2.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-composing/umbracocommerceeventhandlercomposer-2.md new file mode 100644 index 00000000000..0ba4d8d32ec --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-composing/umbracocommerceeventhandlercomposer-2.md @@ -0,0 +1,72 @@ +--- +title: UmbracoCommerceEventHandlerComposer +description: API reference for UmbracoCommerceEventHandlerComposer in Umbraco Commerce +--- +## UmbracoCommerceEventHandlerComposer<TEvent,TInterface> + +```csharp +public class UmbracoCommerceEventHandlerComposer + where TEvent : TInterface + where TInterface : IEvent +``` + +**Namespace** +* [Umbraco.Commerce.Core.Composing](README.md) + +### Methods + +#### RegisterHandler<THandler> + +```csharp +public UmbracoCommerceEventHandlerComposer RegisterHandler() + where THandler : IEventHandlerFor +``` + + +--- + +#### RegisterHandlerAfter<TAfterHandler,THandler> + +```csharp +public UmbracoCommerceEventHandlerComposer + RegisterHandlerAfter() + where TAfterHandler : IEventHandlerFor + where THandler : IEventHandlerFor +``` + + +--- + +#### RegisterHandlerBefore<TBeforeHandler,THandler> + +```csharp +public UmbracoCommerceEventHandlerComposer + RegisterHandlerBefore() + where TBeforeHandler : IEventHandlerFor + where THandler : IEventHandlerFor +``` + + +--- + +#### RemoveHandler<THandler> + +```csharp +public UmbracoCommerceEventHandlerComposer RemoveHandler() + where THandler : IEventHandlerFor +``` + + +--- + +#### ReplaceHandler<TReplacedHandler,THandler> + +```csharp +public UmbracoCommerceEventHandlerComposer + ReplaceHandler() + where TReplacedHandler : IEventHandlerFor + where THandler : IEventHandlerFor +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-configuration-models/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-configuration-models/README.md new file mode 100644 index 00000000000..c62409cd7ea --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-configuration-models/README.md @@ -0,0 +1,12 @@ +--- +title: Umbraco.Commerce.Core.Configuration.Models +description: API reference for Umbraco.Commerce.Core.Configuration.Models in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Configuration.Models namespace + +| Public Type | Description | +| --- | --- | +| class [UmbracoCommerceCookieSettings](umbracocommercecookiesettings.md) | | +| class [UmbracoCommerceSettings](umbracocommercesettings.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-configuration-models/umbracocommercecookiesettings.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-configuration-models/umbracocommercecookiesettings.md new file mode 100644 index 00000000000..fed4f8c5e92 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-configuration-models/umbracocommercecookiesettings.md @@ -0,0 +1,34 @@ +--- +title: UmbracoCommerceCookieSettings +description: API reference for UmbracoCommerceCookieSettings in Umbraco Commerce +--- +## UmbracoCommerceCookieSettings + +```csharp +public class UmbracoCommerceCookieSettings +``` + +**Namespace** +* [Umbraco.Commerce.Core.Configuration.Models](README.md) + +### Constructors + +#### UmbracoCommerceCookieSettings + +The default constructor. + +```csharp +public UmbracoCommerceCookieSettings() +``` + + +### Properties + +#### HttpOnly + +```csharp +public bool HttpOnly { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-configuration-models/umbracocommercesettings.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-configuration-models/umbracocommercesettings.md new file mode 100644 index 00000000000..ed3653fbfb9 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-configuration-models/umbracocommercesettings.md @@ -0,0 +1,43 @@ +--- +title: UmbracoCommerceSettings +description: API reference for UmbracoCommerceSettings in Umbraco Commerce +--- +## UmbracoCommerceSettings + +```csharp +public class UmbracoCommerceSettings +``` + +**Namespace** +* [Umbraco.Commerce.Core.Configuration.Models](README.md) + +### Constructors + +#### UmbracoCommerceSettings + +The default constructor. + +```csharp +public UmbracoCommerceSettings() +``` + + +### Properties + +#### Cookies + +```csharp +public UmbracoCommerceCookieSettings Cookies { get; set; } +``` + + +--- + +#### Telemetry + +```csharp +public UmbracoCommerceTelemetrySettings Telemetry { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-configuration/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-configuration/README.md new file mode 100644 index 00000000000..e47d0972e6b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-configuration/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Core.Configuration +description: API reference for Umbraco.Commerce.Core.Configuration in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Configuration namespace + +| Public Type | Description | +| --- | --- | +| interface [IUmbracoCommerceSettings](iumbracocommercesettings.md) | Contains global Umbraco Commerce settings | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-configuration/iumbracocommercesettings.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-configuration/iumbracocommercesettings.md new file mode 100644 index 00000000000..50340502d24 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-configuration/iumbracocommercesettings.md @@ -0,0 +1,60 @@ +--- +title: IUmbracoCommerceSettings +description: API reference for IUmbracoCommerceSettings in Umbraco Commerce +--- +## IUmbracoCommerceSettings + +Contains global Umbraco Commerce settings + +```csharp +public interface IUmbracoCommerceSettings +``` + +**Namespace** +* [Umbraco.Commerce.Core.Configuration](README.md) + +### Properties + +#### BackOfficeMvcArea + +Gets the back office MVC area under which Umbraco Commerce is installed + +```csharp +public string BackOfficeMvcArea { get; } +``` + + +--- + +#### BackOfficePath + +Gets the back office path for this Umbraco Commerce install + +```csharp +public string BackOfficePath { get; } +``` + + +--- + +#### CookiesHttpOnly + +Gets a setting to define whether cookies should be http only, thus blocking javascript access + +```csharp +public bool CookiesHttpOnly { get; } +``` + + +--- + +#### TelemetryEnabled + +Gets a setting to define whether the telemetry service should be enabled or not + +```csharp +public bool TelemetryEnabled { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-data/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-data/README.md new file mode 100644 index 00000000000..f4187103c03 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-data/README.md @@ -0,0 +1,13 @@ +--- +title: Umbraco.Commerce.Core.Data +description: API reference for Umbraco.Commerce.Core.Data in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Data namespace + +| Public Type | Description | +| --- | --- | +| class [ConnectionStringConfig](connectionstringconfig.md) | | +| abstract class [ConnectionStringConfiguratorBase](connectionstringconfiguratorbase.md) | | +| class [UmbracoCommerceConnectionStringConfigurator](umbracocommerceconnectionstringconfigurator.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-data/connectionstringconfig.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-data/connectionstringconfig.md new file mode 100644 index 00000000000..c0820b7a296 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-data/connectionstringconfig.md @@ -0,0 +1,94 @@ +--- +title: ConnectionStringConfig +description: API reference for ConnectionStringConfig in Umbraco Commerce +--- +## ConnectionStringConfig + +```csharp +public class ConnectionStringConfig +``` + +**Namespace** +* [Umbraco.Commerce.Core.Data](README.md) + +### Constructors + +#### ConnectionStringConfig + +The default constructor. + +```csharp +public ConnectionStringConfig() +``` + + +### Fields + +#### DataDirectoryPlaceholder + +The DataDirectory placeholder. + +```csharp +public const string DataDirectoryPlaceholder; +``` + + +--- + +#### DefaultProviderName + +The default provider name when not present in configuration. + +```csharp +public const string DefaultProviderName; +``` + + +--- + +#### ProviderNamePostfix + +The postfix used to identify a connection strings provider setting. + +```csharp +public const string ProviderNamePostfix; +``` + + +### Properties + +#### ConnectionString + +```csharp +public string ConnectionString { get; set; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; set; } +``` + + +--- + +#### ProviderName + +```csharp +public string ProviderName { get; set; } +``` + + +### Methods + +#### ToString + +```csharp +public override string ToString() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-data/connectionstringconfiguratorbase.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-data/connectionstringconfiguratorbase.md new file mode 100644 index 00000000000..0b5162b9d79 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-data/connectionstringconfiguratorbase.md @@ -0,0 +1,42 @@ +--- +title: ConnectionStringConfiguratorBase +description: API reference for ConnectionStringConfiguratorBase in Umbraco Commerce +--- +## ConnectionStringConfiguratorBase + +```csharp +public abstract class ConnectionStringConfiguratorBase : + IConfigureNamedOptions, IConfigureOptions +``` + +**Namespace** +* [Umbraco.Commerce.Core.Data](README.md) + +### Methods + +#### Configure + +```csharp +public virtual void Configure(ConnectionStringConfig options) +``` + + +--- + +#### Configure + +```csharp +public abstract void Configure(string name, ConnectionStringConfig options) +``` + + +--- + +#### DoConfigure + +```csharp +public virtual void DoConfigure(string name, ConnectionStringConfig options) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-data/umbracocommerceconnectionstringconfigurator.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-data/umbracocommerceconnectionstringconfigurator.md new file mode 100644 index 00000000000..8d49664a102 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-data/umbracocommerceconnectionstringconfigurator.md @@ -0,0 +1,36 @@ +--- +title: UmbracoCommerceConnectionStringConfigurator +description: API reference for UmbracoCommerceConnectionStringConfigurator in Umbraco Commerce +--- +## UmbracoCommerceConnectionStringConfigurator + +```csharp +public class UmbracoCommerceConnectionStringConfigurator : ConnectionStringConfiguratorBase +``` + +**Inheritance** + +* Class [ConnectionStringConfiguratorBase](connectionstringconfiguratorbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Data](README.md) + +### Constructors + +#### UmbracoCommerceConnectionStringConfigurator + +```csharp +public UmbracoCommerceConnectionStringConfigurator(IConfiguration configuration) +``` + + +### Methods + +#### Configure + +```csharp +public override void Configure(string name, ConnectionStringConfig options) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/README.md new file mode 100644 index 00000000000..22a2cecf724 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/README.md @@ -0,0 +1,30 @@ +--- +title: Umbraco.Commerce.Core.Discounts.Rewards +description: API reference for Umbraco.Commerce.Core.Discounts.Rewards in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Discounts.Rewards namespace + +| Public Type | Description | +| --- | --- | +| class [DiscountRewardCalculation](discountrewardcalculation.md) | | +| class [DiscountRewardContext](discountrewardcontext.md) | | +| class [DiscountRewardProviderAttribute](discountrewardproviderattribute.md) | | +| abstract class [DiscountRewardProviderBase<TSettingsType>](discountrewardproviderbase-1.md) | | +| abstract class [DiscountRewardProviderBase](discountrewardproviderbase.md) | | +| class [DiscountRewardProviderCollection](discountrewardprovidercollection.md) | | +| class [DiscountRewardProviderDefinition](discountrewardproviderdefinition.md) | | +| class [DiscountRewardProviderFactory](discountrewardproviderfactory.md) | | +| class [DiscountRewardProviderScaffold](discountrewardproviderscaffold.md) | | +| class [DiscountRewardProviderSettingAttribute](discountrewardprovidersettingattribute.md) | | +| class [DiscountRewardProviderSettingDefinition](discountrewardprovidersettingdefinition.md) | | +| interface [IDiscountRewardProvider<TSettingsType>](idiscountrewardprovider-1.md) | | +| interface [IDiscountRewardProvider](idiscountrewardprovider.md) | | +| class [OrderAmountDiscountRewardProvider](orderamountdiscountrewardprovider.md) | | +| class [OrderAmountDiscountRewardProviderSettings](orderamountdiscountrewardprovidersettings.md) | | +| class [OrderLineAmountDiscountRewardProvider](orderlineamountdiscountrewardprovider.md) | | +| abstract class [OrderLineAmountDiscountRewardProviderBase<TSettings>](orderlineamountdiscountrewardproviderbase-1.md) | | +| class [OrderLineAmountDiscountRewardProviderSettings](orderlineamountdiscountrewardprovidersettings.md) | | +| abstract class [OrderLineAmountDiscountRewardProviderSettingsBase](orderlineamountdiscountrewardprovidersettingsbase.md) | | +| class [OrderLineDiscountRewardCalculation](orderlinediscountrewardcalculation.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/discountrewardcalculation.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/discountrewardcalculation.md new file mode 100644 index 00000000000..390af69c31c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/discountrewardcalculation.md @@ -0,0 +1,70 @@ +--- +title: DiscountRewardCalculation +description: API reference for DiscountRewardCalculation in Umbraco Commerce +--- +## DiscountRewardCalculation + +```csharp +public class DiscountRewardCalculation +``` + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rewards](README.md) + +### Constructors + +#### DiscountRewardCalculation + +The default constructor. + +```csharp +public DiscountRewardCalculation() +``` + + +### Properties + +#### OrderLineAdjustments + +```csharp +public Dictionary OrderLineAdjustments { get; } +``` + + +--- + +#### PaymentTotalPriceAdjustments + +```csharp +public List PaymentTotalPriceAdjustments { get; } +``` + + +--- + +#### ShippingTotalPriceAdjustments + +```csharp +public List ShippingTotalPriceAdjustments { get; } +``` + + +--- + +#### SubtotalPriceAdjustments + +```csharp +public List SubtotalPriceAdjustments { get; } +``` + + +--- + +#### TotalPriceAdjustments + +```csharp +public List TotalPriceAdjustments { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/discountrewardcontext.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/discountrewardcontext.md new file mode 100644 index 00000000000..650562a4b08 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/discountrewardcontext.md @@ -0,0 +1,77 @@ +--- +title: DiscountRewardContext +description: API reference for DiscountRewardContext in Umbraco Commerce +--- +## DiscountRewardContext + +```csharp +public class DiscountRewardContext +``` + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rewards](README.md) + +### Properties + +#### Config + +```csharp +public DiscountRewardConfig Config { get; } +``` + + +--- + +#### Currency + +```csharp +public CurrencyReadOnly Currency { get; } +``` + + +--- + +#### Discount + +```csharp +public DiscountReadOnly Discount { get; } +``` + + +--- + +#### Order + +```csharp +public OrderReadOnly Order { get; } +``` + + +--- + +#### OrderCalculation + +```csharp +public OrderCalculation OrderCalculation { get; set; } +``` + + +--- + +#### OrderLines + +```csharp +public IEnumerable OrderLines { get; } +``` + + +--- + +#### Store + +```csharp +public StoreReadOnly Store { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/discountrewardproviderattribute.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/discountrewardproviderattribute.md new file mode 100644 index 00000000000..aa03b97b4a7 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/discountrewardproviderattribute.md @@ -0,0 +1,70 @@ +--- +title: DiscountRewardProviderAttribute +description: API reference for DiscountRewardProviderAttribute in Umbraco Commerce +--- +## DiscountRewardProviderAttribute + +```csharp +[AttributeUsage(AttributeTargets.Class)] +public class DiscountRewardProviderAttribute : Attribute +``` + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rewards](README.md) + +### Constructors + +#### DiscountRewardProviderAttribute + +```csharp +public DiscountRewardProviderAttribute(string alias, string name, string description = null, + string labelView = null, string icon = "icon-award") +``` + + +### Properties + +#### Alias + +```csharp +public string Alias { get; set; } +``` + + +--- + +#### Description + +```csharp +public string Description { get; set; } +``` + + +--- + +#### Icon + +```csharp +public string Icon { get; set; } +``` + + +--- + +#### LabelView + +```csharp +public string LabelView { get; set; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/discountrewardproviderbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/discountrewardproviderbase-1.md new file mode 100644 index 00000000000..bafe413a142 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/discountrewardproviderbase-1.md @@ -0,0 +1,50 @@ +--- +title: DiscountRewardProviderBase +description: API reference for DiscountRewardProviderBase in Umbraco Commerce +--- +## DiscountRewardProviderBase<TSettingsType> + +```csharp +public abstract class DiscountRewardProviderBase : DiscountRewardProviderBase, + IDiscountRewardProvider + where TSettingsType : new() +``` + +**Inheritance** + +* Class [DiscountRewardProviderBase](discountrewardproviderbase.md) +* interface [IDiscountRewardProvider<TSettingsType>](idiscountrewardprovider-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rewards](README.md) + +### Properties + +#### SettingDefinitions + +```csharp +public override IEnumerable SettingDefinitions { get; } +``` + + +### Methods + +#### CalculateReward + +```csharp +public override DiscountRewardCalculation CalculateReward(DiscountRewardContext context, + IReadOnlyDictionary settings) +``` + + +--- + +#### CalculateReward + +```csharp +public abstract DiscountRewardCalculation CalculateReward(DiscountRewardContext context, + TSettingsType settings) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/discountrewardproviderbase.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/discountrewardproviderbase.md new file mode 100644 index 00000000000..5cfc7bf4df5 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/discountrewardproviderbase.md @@ -0,0 +1,91 @@ +--- +title: DiscountRewardProviderBase +description: API reference for DiscountRewardProviderBase in Umbraco Commerce +--- +## DiscountRewardProviderBase + +```csharp +public abstract class DiscountRewardProviderBase : IDiscountRewardProvider +``` + +**Inheritance** + +* interface [IDiscountRewardProvider](idiscountrewardprovider.md) + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rewards](README.md) + +### Properties + +#### Alias + +```csharp +public string Alias { get; } +``` + + +--- + +#### Description + +```csharp +public string Description { get; } +``` + + +--- + +#### Icon + +```csharp +public string Icon { get; } +``` + + +--- + +#### LabelView + +```csharp +public string LabelView { get; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; } +``` + + +--- + +#### SettingDefinitions + +```csharp +public virtual IEnumerable SettingDefinitions { get; } +``` + + +### Methods + +#### CalculateReward + +```csharp +public abstract DiscountRewardCalculation CalculateReward(DiscountRewardContext context, + IReadOnlyDictionary settings) +``` + + +--- + +#### GetDefaultSettings + +```csharp +public virtual IDictionary GetDefaultSettings() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/discountrewardprovidercollection.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/discountrewardprovidercollection.md new file mode 100644 index 00000000000..c224bf75080 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/discountrewardprovidercollection.md @@ -0,0 +1,36 @@ +--- +title: DiscountRewardProviderCollection +description: API reference for DiscountRewardProviderCollection in Umbraco Commerce +--- +## DiscountRewardProviderCollection + +```csharp +public class DiscountRewardProviderCollection : ComposedCollection +``` + +**Inheritance** + +* Class [ComposedCollection<!0>](../../umbraco-commerce-common/umbraco-commerce-common-composing/composedcollection-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rewards](README.md) + +### Constructors + +#### DiscountRewardProviderCollection + +```csharp +public DiscountRewardProviderCollection(Func> itemsFactory) +``` + + +### Indexers + +#### DiscountRewardProviderCollection + +```csharp +public IDiscountRewardProvider this[string alias] { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/discountrewardproviderdefinition.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/discountrewardproviderdefinition.md new file mode 100644 index 00000000000..1a52e048782 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/discountrewardproviderdefinition.md @@ -0,0 +1,70 @@ +--- +title: DiscountRewardProviderDefinition +description: API reference for DiscountRewardProviderDefinition in Umbraco Commerce +--- +## DiscountRewardProviderDefinition + +```csharp +public class DiscountRewardProviderDefinition +``` + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rewards](README.md) + +### Constructors + +#### DiscountRewardProviderDefinition + +The default constructor. + +```csharp +public DiscountRewardProviderDefinition() +``` + + +### Properties + +#### Alias + +```csharp +public string Alias { get; set; } +``` + + +--- + +#### Description + +```csharp +public string Description { get; set; } +``` + + +--- + +#### Icon + +```csharp +public string Icon { get; set; } +``` + + +--- + +#### LabelView + +```csharp +public string LabelView { get; set; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/discountrewardproviderfactory.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/discountrewardproviderfactory.md new file mode 100644 index 00000000000..8cc7519ebe9 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/discountrewardproviderfactory.md @@ -0,0 +1,59 @@ +--- +title: DiscountRewardProviderFactory +description: API reference for DiscountRewardProviderFactory in Umbraco Commerce +--- +## DiscountRewardProviderFactory + +```csharp +public class DiscountRewardProviderFactory +``` + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rewards](README.md) + +### Constructors + +#### DiscountRewardProviderFactory + +```csharp +public DiscountRewardProviderFactory(DiscountRewardProviderCollection discountRewardProviders) +``` + + +### Methods + +#### GetDiscountRewardProvider (1 of 2) + +```csharp +public IDiscountRewardProvider GetDiscountRewardProvider(string providerAlias) +``` + +--- + +#### GetDiscountRewardProvider (2 of 2) + +```csharp +public IDiscountRewardProvider GetDiscountRewardProvider(DiscountRewardConfig config) +``` + + +--- + +#### GetDiscountRewardProviders (1 of 2) + +```csharp +public IEnumerable GetDiscountRewardProviders( + IEnumerable providerAliases) +``` + +--- + +#### GetDiscountRewardProviders (2 of 2) + +```csharp +public IEnumerable GetDiscountRewardProviders( + IEnumerable configs) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/discountrewardproviderscaffold.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/discountrewardproviderscaffold.md new file mode 100644 index 00000000000..dd3ed938db7 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/discountrewardproviderscaffold.md @@ -0,0 +1,38 @@ +--- +title: DiscountRewardProviderScaffold +description: API reference for DiscountRewardProviderScaffold in Umbraco Commerce +--- +## DiscountRewardProviderScaffold + +```csharp +public class DiscountRewardProviderScaffold : DiscountRewardProviderDefinition +``` + +**Inheritance** + +* Class [DiscountRewardProviderDefinition](discountrewardproviderdefinition.md) + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rewards](README.md) + +### Constructors + +#### DiscountRewardProviderScaffold + +The default constructor. + +```csharp +public DiscountRewardProviderScaffold() +``` + + +### Properties + +#### SettingDefinitions + +```csharp +public IEnumerable SettingDefinitions { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/discountrewardprovidersettingattribute.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/discountrewardprovidersettingattribute.md new file mode 100644 index 00000000000..d2971ff2d02 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/discountrewardprovidersettingattribute.md @@ -0,0 +1,30 @@ +--- +title: DiscountRewardProviderSettingAttribute +description: API reference for DiscountRewardProviderSettingAttribute in Umbraco Commerce +--- +## DiscountRewardProviderSettingAttribute + +```csharp +[AttributeUsage(AttributeTargets.Property)] +public class DiscountRewardProviderSettingAttribute : UmbracoCommerceSettingAttribute +``` + +**Inheritance** + +* Class [UmbracoCommerceSettingAttribute](../umbraco-commerce-core-attributes/umbracocommercesettingattribute.md) + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rewards](README.md) + +### Constructors + +#### DiscountRewardProviderSettingAttribute + +The default constructor. + +```csharp +public DiscountRewardProviderSettingAttribute() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/discountrewardprovidersettingdefinition.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/discountrewardprovidersettingdefinition.md new file mode 100644 index 00000000000..1e01a9167d8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/discountrewardprovidersettingdefinition.md @@ -0,0 +1,38 @@ +--- +title: DiscountRewardProviderSettingDefinition +description: API reference for DiscountRewardProviderSettingDefinition in Umbraco Commerce +--- +## DiscountRewardProviderSettingDefinition + +```csharp +public class DiscountRewardProviderSettingDefinition : UmbracoCommerceSettingDefinition +``` + +**Inheritance** + +* Class [UmbracoCommerceSettingDefinition](../umbraco-commerce-core-models/umbracocommercesettingdefinition.md) + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rewards](README.md) + +### Constructors + +#### DiscountRewardProviderSettingDefinition + +The default constructor. + +```csharp +public DiscountRewardProviderSettingDefinition() +``` + + +--- + +#### DiscountRewardProviderSettingDefinition + +```csharp +public DiscountRewardProviderSettingDefinition(string key, string name, string description = null) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/idiscountrewardprovider-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/idiscountrewardprovider-1.md new file mode 100644 index 00000000000..316cada14ef --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/idiscountrewardprovider-1.md @@ -0,0 +1,29 @@ +--- +title: IDiscountRewardProvider +description: API reference for IDiscountRewardProvider in Umbraco Commerce +--- +## IDiscountRewardProvider<TSettingsType> + +```csharp +public interface IDiscountRewardProvider : IDiscountRewardProvider + where TSettingsType : new() +``` + +**Inheritance** + +* interface [IDiscountRewardProvider](idiscountrewardprovider.md) + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rewards](README.md) + +### Methods + +#### CalculateReward + +```csharp +public DiscountRewardCalculation CalculateReward(DiscountRewardContext context, + TSettingsType settings) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/idiscountrewardprovider.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/idiscountrewardprovider.md new file mode 100644 index 00000000000..bd22c3d8e32 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/idiscountrewardprovider.md @@ -0,0 +1,78 @@ +--- +title: IDiscountRewardProvider +description: API reference for IDiscountRewardProvider in Umbraco Commerce +--- +## IDiscountRewardProvider + +```csharp +public interface IDiscountRewardProvider +``` + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rewards](README.md) + +### Properties + +#### Alias + +```csharp +public string Alias { get; } +``` + + +--- + +#### Description + +```csharp +public string Description { get; } +``` + + +--- + +#### Icon + +```csharp +public string Icon { get; } +``` + + +--- + +#### LabelView + +```csharp +public string LabelView { get; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; } +``` + + +--- + +#### SettingDefinitions + +```csharp +public IEnumerable SettingDefinitions { get; } +``` + + +### Methods + +#### CalculateReward + +```csharp +public DiscountRewardCalculation CalculateReward(DiscountRewardContext context, + IReadOnlyDictionary settings) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/orderamountdiscountrewardprovider.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/orderamountdiscountrewardprovider.md new file mode 100644 index 00000000000..7cf2eed00a5 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/orderamountdiscountrewardprovider.md @@ -0,0 +1,40 @@ +--- +title: OrderAmountDiscountRewardProvider +description: API reference for OrderAmountDiscountRewardProvider in Umbraco Commerce +--- +## OrderAmountDiscountRewardProvider + +```csharp +public class OrderAmountDiscountRewardProvider : + DiscountRewardProviderBase +``` + +**Inheritance** + +* Class [DiscountRewardProviderBase<TSettingsType>](discountrewardproviderbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rewards](README.md) + +### Constructors + +#### OrderAmountDiscountRewardProvider + +The default constructor. + +```csharp +public OrderAmountDiscountRewardProvider() +``` + + +### Methods + +#### CalculateReward + +```csharp +public override DiscountRewardCalculation CalculateReward(DiscountRewardContext ctx, + OrderAmountDiscountRewardProviderSettings settings) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/orderamountdiscountrewardprovidersettings.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/orderamountdiscountrewardprovidersettings.md new file mode 100644 index 00000000000..8de359c547a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/orderamountdiscountrewardprovidersettings.md @@ -0,0 +1,70 @@ +--- +title: OrderAmountDiscountRewardProviderSettings +description: API reference for OrderAmountDiscountRewardProviderSettings in Umbraco Commerce +--- +## OrderAmountDiscountRewardProviderSettings + +```csharp +public class OrderAmountDiscountRewardProviderSettings +``` + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rewards](README.md) + +### Constructors + +#### OrderAmountDiscountRewardProviderSettings + +The default constructor. + +```csharp +public OrderAmountDiscountRewardProviderSettings() +``` + + +### Properties + +#### AdjustmentType + +```csharp +public AdjustmentType AdjustmentType { get; set; } +``` + + +--- + +#### Amounts + +```csharp +public IDictionary Amounts { get; set; } +``` + + +--- + +#### AmountsIncludeTax + +```csharp +public bool AmountsIncludeTax { get; set; } +``` + + +--- + +#### Percentage + +```csharp +public decimal? Percentage { get; set; } +``` + + +--- + +#### PriceType + +```csharp +public OrderPriceType PriceType { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/orderlineamountdiscountrewardprovider.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/orderlineamountdiscountrewardprovider.md new file mode 100644 index 00000000000..2fdf8ca864a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/orderlineamountdiscountrewardprovider.md @@ -0,0 +1,40 @@ +--- +title: OrderLineAmountDiscountRewardProvider +description: API reference for OrderLineAmountDiscountRewardProvider in Umbraco Commerce +--- +## OrderLineAmountDiscountRewardProvider + +```csharp +public class OrderLineAmountDiscountRewardProvider : + OrderLineAmountDiscountRewardProviderBase +``` + +**Inheritance** + +* Class [OrderLineAmountDiscountRewardProviderBase<TSettings>](orderlineamountdiscountrewardproviderbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rewards](README.md) + +### Constructors + +#### OrderLineAmountDiscountRewardProvider + +The default constructor. + +```csharp +public OrderLineAmountDiscountRewardProvider() +``` + + +### Methods + +#### FilterOrderLines + +```csharp +public override IEnumerable FilterOrderLines(DiscountRewardContext ctx, + OrderLineAmountDiscountRewardProviderSettings settings) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/orderlineamountdiscountrewardproviderbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/orderlineamountdiscountrewardproviderbase-1.md new file mode 100644 index 00000000000..603ee8f326f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/orderlineamountdiscountrewardproviderbase-1.md @@ -0,0 +1,51 @@ +--- +title: OrderLineAmountDiscountRewardProviderBase +description: API reference for OrderLineAmountDiscountRewardProviderBase in Umbraco Commerce +--- +## OrderLineAmountDiscountRewardProviderBase<TSettings> + +```csharp +public abstract class OrderLineAmountDiscountRewardProviderBase : + DiscountRewardProviderBase + where TSettings : OrderLineAmountDiscountRewardProviderSettingsBase, new() +``` + +**Inheritance** + +* Class [DiscountRewardProviderBase<TSettingsType>](discountrewardproviderbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rewards](README.md) + +### Constructors + +#### OrderLineAmountDiscountRewardProviderBase<TSettings> + +The default constructor. + +```csharp +public OrderLineAmountDiscountRewardProviderBase() +``` + + +### Methods + +#### CalculateReward + +```csharp +public override DiscountRewardCalculation CalculateReward(DiscountRewardContext ctx, + TSettings settings) +``` + + +--- + +#### FilterOrderLines + +```csharp +public abstract IEnumerable FilterOrderLines(DiscountRewardContext context, + TSettings settings) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/orderlineamountdiscountrewardprovidersettings.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/orderlineamountdiscountrewardprovidersettings.md new file mode 100644 index 00000000000..00f0ef12705 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/orderlineamountdiscountrewardprovidersettings.md @@ -0,0 +1,30 @@ +--- +title: OrderLineAmountDiscountRewardProviderSettings +description: API reference for OrderLineAmountDiscountRewardProviderSettings in Umbraco Commerce +--- +## OrderLineAmountDiscountRewardProviderSettings + +```csharp +public class OrderLineAmountDiscountRewardProviderSettings : + OrderLineAmountDiscountRewardProviderSettingsBase +``` + +**Inheritance** + +* Class [OrderLineAmountDiscountRewardProviderSettingsBase](orderlineamountdiscountrewardprovidersettingsbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rewards](README.md) + +### Constructors + +#### OrderLineAmountDiscountRewardProviderSettings + +The default constructor. + +```csharp +public OrderLineAmountDiscountRewardProviderSettings() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/orderlineamountdiscountrewardprovidersettingsbase.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/orderlineamountdiscountrewardprovidersettingsbase.md new file mode 100644 index 00000000000..66d91cc38ae --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/orderlineamountdiscountrewardprovidersettingsbase.md @@ -0,0 +1,70 @@ +--- +title: OrderLineAmountDiscountRewardProviderSettingsBase +description: API reference for OrderLineAmountDiscountRewardProviderSettingsBase in Umbraco Commerce +--- +## OrderLineAmountDiscountRewardProviderSettingsBase + +```csharp +public abstract class OrderLineAmountDiscountRewardProviderSettingsBase +``` + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rewards](README.md) + +### Constructors + +#### OrderLineAmountDiscountRewardProviderSettingsBase + +The default constructor. + +```csharp +public OrderLineAmountDiscountRewardProviderSettingsBase() +``` + + +### Properties + +#### AdjustmentType + +```csharp +public AdjustmentType AdjustmentType { get; set; } +``` + + +--- + +#### Amounts + +```csharp +public IDictionary Amounts { get; set; } +``` + + +--- + +#### AmountsIncludeTax + +```csharp +public bool AmountsIncludeTax { get; set; } +``` + + +--- + +#### Percentage + +```csharp +public decimal? Percentage { get; set; } +``` + + +--- + +#### PriceType + +```csharp +public OrderLinePriceType PriceType { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/orderlinediscountrewardcalculation.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/orderlinediscountrewardcalculation.md new file mode 100644 index 00000000000..1a03bd5ded2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rewards/orderlinediscountrewardcalculation.md @@ -0,0 +1,52 @@ +--- +title: OrderLineDiscountRewardCalculation +description: API reference for OrderLineDiscountRewardCalculation in Umbraco Commerce +--- +## OrderLineDiscountRewardCalculation + +```csharp +public class OrderLineDiscountRewardCalculation +``` + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rewards](README.md) + +### Constructors + +#### OrderLineDiscountRewardCalculation + +The default constructor. + +```csharp +public OrderLineDiscountRewardCalculation() +``` + + +### Properties + +#### BasePriceAdjustments + +```csharp +public List BasePriceAdjustments { get; } +``` + + +--- + +#### TotalPriceAdjustments + +```csharp +public List TotalPriceAdjustments { get; } +``` + + +--- + +#### UnitPriceAdjustments + +```csharp +public List UnitPriceAdjustments { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/README.md new file mode 100644 index 00000000000..2b7b3c7af3d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/README.md @@ -0,0 +1,40 @@ +--- +title: Umbraco.Commerce.Core.Discounts.Rules +description: API reference for Umbraco.Commerce.Core.Discounts.Rules in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Discounts.Rules namespace + +| Public Type | Description | +| --- | --- | +| class [DiscountRuleContext](discountrulecontext.md) | | +| class [DiscountRuleProviderAttribute](discountruleproviderattribute.md) | | +| abstract class [DiscountRuleProviderBase<TSettingsType>](discountruleproviderbase-1.md) | | +| abstract class [DiscountRuleProviderBase](discountruleproviderbase.md) | | +| class [DiscountRuleProviderCollection](discountruleprovidercollection.md) | | +| class [DiscountRuleProviderDefinition](discountruleproviderdefinition.md) | | +| class [DiscountRuleProviderFactory](discountruleproviderfactory.md) | | +| class [DiscountRuleProviderScaffold](discountruleproviderscaffold.md) | | +| class [DiscountRuleProviderSettingAttribute](discountruleprovidersettingattribute.md) | | +| class [DiscountRuleProviderSettingDefinition](discountruleprovidersettingdefinition.md) | | +| class [DiscountRuleResult](discountruleresult.md) | | +| class [GroupDiscountRuleProvider](groupdiscountruleprovider.md) | | +| class [GroupDiscountRuleProviderSettings](groupdiscountruleprovidersettings.md) | | +| interface [IDiscountRuleProvider<TSettingsType>](idiscountruleprovider-1.md) | | +| interface [IDiscountRuleProvider](idiscountruleprovider.md) | | +| interface [IHasChildDiscountRules](ihaschilddiscountrules.md) | | +| class [OrderAmountDiscountRuleProvider](orderamountdiscountruleprovider.md) | | +| class [OrderAmountDiscountRuleProviderSettings](orderamountdiscountruleprovidersettings.md) | | +| abstract class [OrderDiscountRuleProviderBase<TSettings>](orderdiscountruleproviderbase-1.md) | | +| class [OrderLineAmountDiscountRuleProvider](orderlineamountdiscountruleprovider.md) | | +| class [OrderLineAmountDiscountRuleProviderSettings](orderlineamountdiscountruleprovidersettings.md) | | +| abstract class [OrderLineDiscountRuleProviderBase<TSettings>](orderlinediscountruleproviderbase-1.md) | | +| class [OrderLineQuantityDiscountRuleProvider](orderlinequantitydiscountruleprovider.md) | | +| class [OrderLineQuantityDiscountRuleProviderSettings](orderlinequantitydiscountruleprovidersettings.md) | | +| class [PaymentMethodDiscountRuleProvider](paymentmethoddiscountruleprovider.md) | | +| class [PaymentMethodDiscountRuleProviderSettings](paymentmethoddiscountruleprovidersettings.md) | | +| class [PropertyDiscountRuleProvider](propertydiscountruleprovider.md) | | +| class [PropertyDiscountRuleProviderSettings](propertydiscountruleprovidersettings.md) | | +| class [ShippingMethodDiscountRuleProvider](shippingmethoddiscountruleprovider.md) | | +| class [ShippingMethodDiscountRuleProviderSettings](shippingmethoddiscountruleprovidersettings.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/discountrulecontext.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/discountrulecontext.md new file mode 100644 index 00000000000..0e9f339134f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/discountrulecontext.md @@ -0,0 +1,68 @@ +--- +title: DiscountRuleContext +description: API reference for DiscountRuleContext in Umbraco Commerce +--- +## DiscountRuleContext + +```csharp +public class DiscountRuleContext +``` + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rules](README.md) + +### Properties + +#### ApplicableOrderLines + +```csharp +public IEnumerable ApplicableOrderLines { get; } +``` + + +--- + +#### Config + +```csharp +public DiscountRuleConfig Config { get; } +``` + + +--- + +#### Discount + +```csharp +public DiscountReadOnly Discount { get; } +``` + + +--- + +#### Order + +```csharp +public OrderReadOnly Order { get; set; } +``` + + +--- + +#### OrderCalculation + +```csharp +public OrderCalculation OrderCalculation { get; set; } +``` + + +--- + +#### Store + +```csharp +public StoreReadOnly Store { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/discountruleproviderattribute.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/discountruleproviderattribute.md new file mode 100644 index 00000000000..ac05c140f4c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/discountruleproviderattribute.md @@ -0,0 +1,70 @@ +--- +title: DiscountRuleProviderAttribute +description: API reference for DiscountRuleProviderAttribute in Umbraco Commerce +--- +## DiscountRuleProviderAttribute + +```csharp +[AttributeUsage(AttributeTargets.Class)] +public class DiscountRuleProviderAttribute : Attribute +``` + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rules](README.md) + +### Constructors + +#### DiscountRuleProviderAttribute + +```csharp +public DiscountRuleProviderAttribute(string alias, string name, string description = null, + string labelView = null, string icon = "icon-settings-alt") +``` + + +### Properties + +#### Alias + +```csharp +public string Alias { get; set; } +``` + + +--- + +#### Description + +```csharp +public string Description { get; set; } +``` + + +--- + +#### Icon + +```csharp +public string Icon { get; set; } +``` + + +--- + +#### LabelView + +```csharp +public string LabelView { get; set; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/discountruleproviderbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/discountruleproviderbase-1.md new file mode 100644 index 00000000000..76c2c6ea7b0 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/discountruleproviderbase-1.md @@ -0,0 +1,49 @@ +--- +title: DiscountRuleProviderBase +description: API reference for DiscountRuleProviderBase in Umbraco Commerce +--- +## DiscountRuleProviderBase<TSettingsType> + +```csharp +public abstract class DiscountRuleProviderBase : DiscountRuleProviderBase, + IDiscountRuleProvider + where TSettingsType : new() +``` + +**Inheritance** + +* Class [DiscountRuleProviderBase](discountruleproviderbase.md) +* interface [IDiscountRuleProvider<TSettingsType>](idiscountruleprovider-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rules](README.md) + +### Properties + +#### SettingDefinitions + +```csharp +public override IEnumerable SettingDefinitions { get; } +``` + + +### Methods + +#### ValidateRule + +```csharp +public override DiscountRuleResult ValidateRule(DiscountRuleContext context, + IReadOnlyDictionary settings) +``` + + +--- + +#### ValidateRule + +```csharp +public abstract DiscountRuleResult ValidateRule(DiscountRuleContext context, TSettingsType settings) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/discountruleproviderbase.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/discountruleproviderbase.md new file mode 100644 index 00000000000..4b4351fe39c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/discountruleproviderbase.md @@ -0,0 +1,82 @@ +--- +title: DiscountRuleProviderBase +description: API reference for DiscountRuleProviderBase in Umbraco Commerce +--- +## DiscountRuleProviderBase + +```csharp +public abstract class DiscountRuleProviderBase : IDiscountRuleProvider +``` + +**Inheritance** + +* interface [IDiscountRuleProvider](idiscountruleprovider.md) + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rules](README.md) + +### Properties + +#### Alias + +```csharp +public string Alias { get; } +``` + + +--- + +#### Description + +```csharp +public string Description { get; } +``` + + +--- + +#### Icon + +```csharp +public string Icon { get; } +``` + + +--- + +#### LabelView + +```csharp +public string LabelView { get; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; } +``` + + +--- + +#### SettingDefinitions + +```csharp +public virtual IEnumerable SettingDefinitions { get; } +``` + + +### Methods + +#### ValidateRule + +```csharp +public abstract DiscountRuleResult ValidateRule(DiscountRuleContext context, + IReadOnlyDictionary settings) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/discountruleprovidercollection.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/discountruleprovidercollection.md new file mode 100644 index 00000000000..e2cfe3a0643 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/discountruleprovidercollection.md @@ -0,0 +1,36 @@ +--- +title: DiscountRuleProviderCollection +description: API reference for DiscountRuleProviderCollection in Umbraco Commerce +--- +## DiscountRuleProviderCollection + +```csharp +public class DiscountRuleProviderCollection : ComposedCollection +``` + +**Inheritance** + +* Class [ComposedCollection<!0>](../../umbraco-commerce-common/umbraco-commerce-common-composing/composedcollection-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rules](README.md) + +### Constructors + +#### DiscountRuleProviderCollection + +```csharp +public DiscountRuleProviderCollection(Func> itemsFactory) +``` + + +### Indexers + +#### DiscountRuleProviderCollection + +```csharp +public IDiscountRuleProvider this[string alias] { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/discountruleproviderdefinition.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/discountruleproviderdefinition.md new file mode 100644 index 00000000000..d6d42e7163a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/discountruleproviderdefinition.md @@ -0,0 +1,70 @@ +--- +title: DiscountRuleProviderDefinition +description: API reference for DiscountRuleProviderDefinition in Umbraco Commerce +--- +## DiscountRuleProviderDefinition + +```csharp +public class DiscountRuleProviderDefinition +``` + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rules](README.md) + +### Constructors + +#### DiscountRuleProviderDefinition + +The default constructor. + +```csharp +public DiscountRuleProviderDefinition() +``` + + +### Properties + +#### Alias + +```csharp +public string Alias { get; set; } +``` + + +--- + +#### Description + +```csharp +public string Description { get; set; } +``` + + +--- + +#### Icon + +```csharp +public string Icon { get; set; } +``` + + +--- + +#### LabelView + +```csharp +public string LabelView { get; set; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/discountruleproviderfactory.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/discountruleproviderfactory.md new file mode 100644 index 00000000000..4e7f2b8cd91 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/discountruleproviderfactory.md @@ -0,0 +1,59 @@ +--- +title: DiscountRuleProviderFactory +description: API reference for DiscountRuleProviderFactory in Umbraco Commerce +--- +## DiscountRuleProviderFactory + +```csharp +public class DiscountRuleProviderFactory +``` + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rules](README.md) + +### Constructors + +#### DiscountRuleProviderFactory + +```csharp +public DiscountRuleProviderFactory(DiscountRuleProviderCollection discountRuleProviders) +``` + + +### Methods + +#### GetDiscountRuleProvider (1 of 2) + +```csharp +public IDiscountRuleProvider GetDiscountRuleProvider(string providerAlias) +``` + +--- + +#### GetDiscountRuleProvider (2 of 2) + +```csharp +public IDiscountRuleProvider GetDiscountRuleProvider(DiscountRuleConfig config) +``` + + +--- + +#### GetDiscountRuleProviders (1 of 2) + +```csharp +public IEnumerable GetDiscountRuleProviders( + IEnumerable providerAliases) +``` + +--- + +#### GetDiscountRuleProviders (2 of 2) + +```csharp +public IEnumerable GetDiscountRuleProviders( + IEnumerable configs) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/discountruleproviderscaffold.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/discountruleproviderscaffold.md new file mode 100644 index 00000000000..383c1852d96 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/discountruleproviderscaffold.md @@ -0,0 +1,38 @@ +--- +title: DiscountRuleProviderScaffold +description: API reference for DiscountRuleProviderScaffold in Umbraco Commerce +--- +## DiscountRuleProviderScaffold + +```csharp +public class DiscountRuleProviderScaffold : DiscountRuleProviderDefinition +``` + +**Inheritance** + +* Class [DiscountRuleProviderDefinition](discountruleproviderdefinition.md) + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rules](README.md) + +### Constructors + +#### DiscountRuleProviderScaffold + +The default constructor. + +```csharp +public DiscountRuleProviderScaffold() +``` + + +### Properties + +#### SettingDefinitions + +```csharp +public IEnumerable SettingDefinitions { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/discountruleprovidersettingattribute.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/discountruleprovidersettingattribute.md new file mode 100644 index 00000000000..cf52f94b656 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/discountruleprovidersettingattribute.md @@ -0,0 +1,30 @@ +--- +title: DiscountRuleProviderSettingAttribute +description: API reference for DiscountRuleProviderSettingAttribute in Umbraco Commerce +--- +## DiscountRuleProviderSettingAttribute + +```csharp +[AttributeUsage(AttributeTargets.Property)] +public class DiscountRuleProviderSettingAttribute : UmbracoCommerceSettingAttribute +``` + +**Inheritance** + +* Class [UmbracoCommerceSettingAttribute](../umbraco-commerce-core-attributes/umbracocommercesettingattribute.md) + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rules](README.md) + +### Constructors + +#### DiscountRuleProviderSettingAttribute + +The default constructor. + +```csharp +public DiscountRuleProviderSettingAttribute() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/discountruleprovidersettingdefinition.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/discountruleprovidersettingdefinition.md new file mode 100644 index 00000000000..87e82e609b3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/discountruleprovidersettingdefinition.md @@ -0,0 +1,38 @@ +--- +title: DiscountRuleProviderSettingDefinition +description: API reference for DiscountRuleProviderSettingDefinition in Umbraco Commerce +--- +## DiscountRuleProviderSettingDefinition + +```csharp +public class DiscountRuleProviderSettingDefinition : UmbracoCommerceSettingDefinition +``` + +**Inheritance** + +* Class [UmbracoCommerceSettingDefinition](../umbraco-commerce-core-models/umbracocommercesettingdefinition.md) + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rules](README.md) + +### Constructors + +#### DiscountRuleProviderSettingDefinition + +The default constructor. + +```csharp +public DiscountRuleProviderSettingDefinition() +``` + + +--- + +#### DiscountRuleProviderSettingDefinition + +```csharp +public DiscountRuleProviderSettingDefinition(string key, string name, string description = null) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/discountruleresult.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/discountruleresult.md new file mode 100644 index 00000000000..90b01b65c9a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/discountruleresult.md @@ -0,0 +1,59 @@ +--- +title: DiscountRuleResult +description: API reference for DiscountRuleResult in Umbraco Commerce +--- +## DiscountRuleResult + +```csharp +public class DiscountRuleResult +``` + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rules](README.md) + +### Constructors + +#### DiscountRuleResult (1 of 2) + +```csharp +public DiscountRuleResult(bool isFulfilled, bool isOrderLineRuleResult) +``` + +--- + +#### DiscountRuleResult (2 of 2) + +```csharp +public DiscountRuleResult(bool isFulfilled, bool isOrderLineRuleResult, + IEnumerable fulfilledOrderLines) +``` + + +### Properties + +#### FulfilledOrderLines + +```csharp +public IEnumerable FulfilledOrderLines { get; } +``` + + +--- + +#### IsFulfilled + +```csharp +public bool IsFulfilled { get; } +``` + + +--- + +#### IsOrderLineRuleResult + +```csharp +public bool IsOrderLineRuleResult { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/groupdiscountruleprovider.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/groupdiscountruleprovider.md new file mode 100644 index 00000000000..a1253c07987 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/groupdiscountruleprovider.md @@ -0,0 +1,37 @@ +--- +title: GroupDiscountRuleProvider +description: API reference for GroupDiscountRuleProvider in Umbraco Commerce +--- +## GroupDiscountRuleProvider + +```csharp +public class GroupDiscountRuleProvider : DiscountRuleProviderBase +``` + +**Inheritance** + +* Class [DiscountRuleProviderBase<TSettingsType>](discountruleproviderbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rules](README.md) + +### Constructors + +#### GroupDiscountRuleProvider + +```csharp +public GroupDiscountRuleProvider(Lazy discountRuleFactory) +``` + + +### Methods + +#### ValidateRule + +```csharp +public override DiscountRuleResult ValidateRule(DiscountRuleContext ctx, + GroupDiscountRuleProviderSettings settings) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/groupdiscountruleprovidersettings.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/groupdiscountruleprovidersettings.md new file mode 100644 index 00000000000..ee92ec84b3c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/groupdiscountruleprovidersettings.md @@ -0,0 +1,43 @@ +--- +title: GroupDiscountRuleProviderSettings +description: API reference for GroupDiscountRuleProviderSettings in Umbraco Commerce +--- +## GroupDiscountRuleProviderSettings + +```csharp +public class GroupDiscountRuleProviderSettings +``` + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rules](README.md) + +### Constructors + +#### GroupDiscountRuleProviderSettings + +The default constructor. + +```csharp +public GroupDiscountRuleProviderSettings() +``` + + +### Properties + +#### ChildSettings + +```csharp +public IList> ChildSettings { get; set; } +``` + + +--- + +#### MatchType + +```csharp +public MatchType MatchType { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/idiscountruleprovider-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/idiscountruleprovider-1.md new file mode 100644 index 00000000000..e8862fda65e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/idiscountruleprovider-1.md @@ -0,0 +1,28 @@ +--- +title: IDiscountRuleProvider +description: API reference for IDiscountRuleProvider in Umbraco Commerce +--- +## IDiscountRuleProvider<TSettingsType> + +```csharp +public interface IDiscountRuleProvider : IDiscountRuleProvider + where TSettingsType : new() +``` + +**Inheritance** + +* interface [IDiscountRuleProvider](idiscountruleprovider.md) + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rules](README.md) + +### Methods + +#### ValidateRule + +```csharp +public DiscountRuleResult ValidateRule(DiscountRuleContext context, TSettingsType settings) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/idiscountruleprovider.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/idiscountruleprovider.md new file mode 100644 index 00000000000..791eaaa0d58 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/idiscountruleprovider.md @@ -0,0 +1,78 @@ +--- +title: IDiscountRuleProvider +description: API reference for IDiscountRuleProvider in Umbraco Commerce +--- +## IDiscountRuleProvider + +```csharp +public interface IDiscountRuleProvider +``` + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rules](README.md) + +### Properties + +#### Alias + +```csharp +public string Alias { get; } +``` + + +--- + +#### Description + +```csharp +public string Description { get; } +``` + + +--- + +#### Icon + +```csharp +public string Icon { get; } +``` + + +--- + +#### LabelView + +```csharp +public string LabelView { get; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; } +``` + + +--- + +#### SettingDefinitions + +```csharp +public IEnumerable SettingDefinitions { get; } +``` + + +### Methods + +#### ValidateRule + +```csharp +public DiscountRuleResult ValidateRule(DiscountRuleContext context, + IReadOnlyDictionary settings) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/ihaschilddiscountrules.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/ihaschilddiscountrules.md new file mode 100644 index 00000000000..89b42252ad4 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/ihaschilddiscountrules.md @@ -0,0 +1,23 @@ +--- +title: IHasChildDiscountRules +description: API reference for IHasChildDiscountRules in Umbraco Commerce +--- +## IHasChildDiscountRules + +```csharp +public interface IHasChildDiscountRules +``` + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rules](README.md) + +### Properties + +#### Rules + +```csharp +public IList Rules { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/orderamountdiscountruleprovider.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/orderamountdiscountruleprovider.md new file mode 100644 index 00000000000..50e585abc3c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/orderamountdiscountruleprovider.md @@ -0,0 +1,40 @@ +--- +title: OrderAmountDiscountRuleProvider +description: API reference for OrderAmountDiscountRuleProvider in Umbraco Commerce +--- +## OrderAmountDiscountRuleProvider + +```csharp +public class OrderAmountDiscountRuleProvider : + OrderDiscountRuleProviderBase +``` + +**Inheritance** + +* Class [OrderDiscountRuleProviderBase<TSettings>](orderdiscountruleproviderbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rules](README.md) + +### Constructors + +#### OrderAmountDiscountRuleProvider + +The default constructor. + +```csharp +public OrderAmountDiscountRuleProvider() +``` + + +### Methods + +#### ValidateRule + +```csharp +public override DiscountRuleResult ValidateRule(DiscountRuleContext ctx, + OrderAmountDiscountRuleProviderSettings settings) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/orderamountdiscountruleprovidersettings.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/orderamountdiscountruleprovidersettings.md new file mode 100644 index 00000000000..863a0fdc8a2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/orderamountdiscountruleprovidersettings.md @@ -0,0 +1,61 @@ +--- +title: OrderAmountDiscountRuleProviderSettings +description: API reference for OrderAmountDiscountRuleProviderSettings in Umbraco Commerce +--- +## OrderAmountDiscountRuleProviderSettings + +```csharp +public class OrderAmountDiscountRuleProviderSettings +``` + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rules](README.md) + +### Constructors + +#### OrderAmountDiscountRuleProviderSettings + +The default constructor. + +```csharp +public OrderAmountDiscountRuleProviderSettings() +``` + + +### Properties + +#### Amounts + +```csharp +public IDictionary Amounts { get; set; } +``` + + +--- + +#### AmountsIncludeTax + +```csharp +public bool AmountsIncludeTax { get; set; } +``` + + +--- + +#### ComparisonOperator + +```csharp +public ComparisonOperator ComparisonOperator { get; set; } +``` + + +--- + +#### PriceType + +```csharp +public OrderPriceType PriceType { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/orderdiscountruleproviderbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/orderdiscountruleproviderbase-1.md new file mode 100644 index 00000000000..4e68c6bede6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/orderdiscountruleproviderbase-1.md @@ -0,0 +1,37 @@ +--- +title: OrderDiscountRuleProviderBase +description: API reference for OrderDiscountRuleProviderBase in Umbraco Commerce +--- +## OrderDiscountRuleProviderBase<TSettings> + +```csharp +public abstract class OrderDiscountRuleProviderBase : DiscountRuleProviderBase + where TSettings : new() +``` + +**Inheritance** + +* Class [DiscountRuleProviderBase<TSettingsType>](discountruleproviderbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rules](README.md) + +### Methods + +#### Fulfilled + +```csharp +public virtual DiscountRuleResult Fulfilled() +``` + + +--- + +#### Unfulfilled + +```csharp +public virtual DiscountRuleResult Unfulfilled() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/orderlineamountdiscountruleprovider.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/orderlineamountdiscountruleprovider.md new file mode 100644 index 00000000000..519b4e8755d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/orderlineamountdiscountruleprovider.md @@ -0,0 +1,40 @@ +--- +title: OrderLineAmountDiscountRuleProvider +description: API reference for OrderLineAmountDiscountRuleProvider in Umbraco Commerce +--- +## OrderLineAmountDiscountRuleProvider + +```csharp +public class OrderLineAmountDiscountRuleProvider : + OrderLineDiscountRuleProviderBase +``` + +**Inheritance** + +* Class [OrderLineDiscountRuleProviderBase<TSettings>](orderlinediscountruleproviderbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rules](README.md) + +### Constructors + +#### OrderLineAmountDiscountRuleProvider + +The default constructor. + +```csharp +public OrderLineAmountDiscountRuleProvider() +``` + + +### Methods + +#### ValidateRule + +```csharp +public override DiscountRuleResult ValidateRule(DiscountRuleContext ctx, + OrderLineAmountDiscountRuleProviderSettings settings) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/orderlineamountdiscountruleprovidersettings.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/orderlineamountdiscountruleprovidersettings.md new file mode 100644 index 00000000000..5152c527234 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/orderlineamountdiscountruleprovidersettings.md @@ -0,0 +1,70 @@ +--- +title: OrderLineAmountDiscountRuleProviderSettings +description: API reference for OrderLineAmountDiscountRuleProviderSettings in Umbraco Commerce +--- +## OrderLineAmountDiscountRuleProviderSettings + +```csharp +public class OrderLineAmountDiscountRuleProviderSettings +``` + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rules](README.md) + +### Constructors + +#### OrderLineAmountDiscountRuleProviderSettings + +The default constructor. + +```csharp +public OrderLineAmountDiscountRuleProviderSettings() +``` + + +### Properties + +#### Accumulate + +```csharp +public bool Accumulate { get; set; } +``` + + +--- + +#### Amounts + +```csharp +public IDictionary Amounts { get; set; } +``` + + +--- + +#### AmountsIncludeTax + +```csharp +public bool AmountsIncludeTax { get; set; } +``` + + +--- + +#### ComparisonOperator + +```csharp +public ComparisonOperator ComparisonOperator { get; set; } +``` + + +--- + +#### PriceType + +```csharp +public OrderLinePriceType PriceType { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/orderlinediscountruleproviderbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/orderlinediscountruleproviderbase-1.md new file mode 100644 index 00000000000..a01cd58cd4e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/orderlinediscountruleproviderbase-1.md @@ -0,0 +1,38 @@ +--- +title: OrderLineDiscountRuleProviderBase +description: API reference for OrderLineDiscountRuleProviderBase in Umbraco Commerce +--- +## OrderLineDiscountRuleProviderBase<TSettings> + +```csharp +public abstract class OrderLineDiscountRuleProviderBase : + DiscountRuleProviderBase + where TSettings : new() +``` + +**Inheritance** + +* Class [DiscountRuleProviderBase<TSettingsType>](discountruleproviderbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rules](README.md) + +### Methods + +#### Fulfilled + +```csharp +public virtual DiscountRuleResult Fulfilled(IEnumerable fullfilledOrderLines) +``` + + +--- + +#### Unfulfilled + +```csharp +public virtual DiscountRuleResult Unfulfilled() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/orderlinequantitydiscountruleprovider.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/orderlinequantitydiscountruleprovider.md new file mode 100644 index 00000000000..2ab92c45f2f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/orderlinequantitydiscountruleprovider.md @@ -0,0 +1,40 @@ +--- +title: OrderLineQuantityDiscountRuleProvider +description: API reference for OrderLineQuantityDiscountRuleProvider in Umbraco Commerce +--- +## OrderLineQuantityDiscountRuleProvider + +```csharp +public class OrderLineQuantityDiscountRuleProvider : + OrderLineDiscountRuleProviderBase +``` + +**Inheritance** + +* Class [OrderLineDiscountRuleProviderBase<TSettings>](orderlinediscountruleproviderbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rules](README.md) + +### Constructors + +#### OrderLineQuantityDiscountRuleProvider + +The default constructor. + +```csharp +public OrderLineQuantityDiscountRuleProvider() +``` + + +### Methods + +#### ValidateRule + +```csharp +public override DiscountRuleResult ValidateRule(DiscountRuleContext ctx, + OrderLineQuantityDiscountRuleProviderSettings settings) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/orderlinequantitydiscountruleprovidersettings.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/orderlinequantitydiscountruleprovidersettings.md new file mode 100644 index 00000000000..dde8cabe4f8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/orderlinequantitydiscountruleprovidersettings.md @@ -0,0 +1,52 @@ +--- +title: OrderLineQuantityDiscountRuleProviderSettings +description: API reference for OrderLineQuantityDiscountRuleProviderSettings in Umbraco Commerce +--- +## OrderLineQuantityDiscountRuleProviderSettings + +```csharp +public class OrderLineQuantityDiscountRuleProviderSettings +``` + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rules](README.md) + +### Constructors + +#### OrderLineQuantityDiscountRuleProviderSettings + +The default constructor. + +```csharp +public OrderLineQuantityDiscountRuleProviderSettings() +``` + + +### Properties + +#### Accumulate + +```csharp +public bool Accumulate { get; set; } +``` + + +--- + +#### ComparisonOperator + +```csharp +public ComparisonOperator ComparisonOperator { get; set; } +``` + + +--- + +#### Quantity + +```csharp +public decimal Quantity { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/paymentmethoddiscountruleprovider.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/paymentmethoddiscountruleprovider.md new file mode 100644 index 00000000000..ed8315c26ee --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/paymentmethoddiscountruleprovider.md @@ -0,0 +1,40 @@ +--- +title: PaymentMethodDiscountRuleProvider +description: API reference for PaymentMethodDiscountRuleProvider in Umbraco Commerce +--- +## PaymentMethodDiscountRuleProvider + +```csharp +public class PaymentMethodDiscountRuleProvider : + OrderDiscountRuleProviderBase +``` + +**Inheritance** + +* Class [OrderDiscountRuleProviderBase<TSettings>](orderdiscountruleproviderbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rules](README.md) + +### Constructors + +#### PaymentMethodDiscountRuleProvider + +The default constructor. + +```csharp +public PaymentMethodDiscountRuleProvider() +``` + + +### Methods + +#### ValidateRule + +```csharp +public override DiscountRuleResult ValidateRule(DiscountRuleContext ctx, + PaymentMethodDiscountRuleProviderSettings settings) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/paymentmethoddiscountruleprovidersettings.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/paymentmethoddiscountruleprovidersettings.md new file mode 100644 index 00000000000..8c8408dc1a4 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/paymentmethoddiscountruleprovidersettings.md @@ -0,0 +1,34 @@ +--- +title: PaymentMethodDiscountRuleProviderSettings +description: API reference for PaymentMethodDiscountRuleProviderSettings in Umbraco Commerce +--- +## PaymentMethodDiscountRuleProviderSettings + +```csharp +public class PaymentMethodDiscountRuleProviderSettings +``` + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rules](README.md) + +### Constructors + +#### PaymentMethodDiscountRuleProviderSettings + +The default constructor. + +```csharp +public PaymentMethodDiscountRuleProviderSettings() +``` + + +### Properties + +#### PaymentMethodId + +```csharp +public Guid? PaymentMethodId { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/propertydiscountruleprovider.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/propertydiscountruleprovider.md new file mode 100644 index 00000000000..a4fc7f15d71 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/propertydiscountruleprovider.md @@ -0,0 +1,40 @@ +--- +title: PropertyDiscountRuleProvider +description: API reference for PropertyDiscountRuleProvider in Umbraco Commerce +--- +## PropertyDiscountRuleProvider + +```csharp +public class PropertyDiscountRuleProvider : + DiscountRuleProviderBase +``` + +**Inheritance** + +* Class [DiscountRuleProviderBase<TSettingsType>](discountruleproviderbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rules](README.md) + +### Constructors + +#### PropertyDiscountRuleProvider + +The default constructor. + +```csharp +public PropertyDiscountRuleProvider() +``` + + +### Methods + +#### ValidateRule + +```csharp +public override DiscountRuleResult ValidateRule(DiscountRuleContext ctx, + PropertyDiscountRuleProviderSettings settings) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/propertydiscountruleprovidersettings.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/propertydiscountruleprovidersettings.md new file mode 100644 index 00000000000..37e35813a3e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/propertydiscountruleprovidersettings.md @@ -0,0 +1,61 @@ +--- +title: PropertyDiscountRuleProviderSettings +description: API reference for PropertyDiscountRuleProviderSettings in Umbraco Commerce +--- +## PropertyDiscountRuleProviderSettings + +```csharp +public class PropertyDiscountRuleProviderSettings +``` + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rules](README.md) + +### Constructors + +#### PropertyDiscountRuleProviderSettings + +The default constructor. + +```csharp +public PropertyDiscountRuleProviderSettings() +``` + + +### Properties + +#### ComparisonOperator + +```csharp +public ComparisonOperator ComparisonOperator { get; set; } +``` + + +--- + +#### PropertyAlias + +```csharp +public string PropertyAlias { get; set; } +``` + + +--- + +#### PropertySource + +```csharp +public PropertySource PropertySource { get; set; } +``` + + +--- + +#### Value + +```csharp +public string Value { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/shippingmethoddiscountruleprovider.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/shippingmethoddiscountruleprovider.md new file mode 100644 index 00000000000..efeb1a3b7af --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/shippingmethoddiscountruleprovider.md @@ -0,0 +1,40 @@ +--- +title: ShippingMethodDiscountRuleProvider +description: API reference for ShippingMethodDiscountRuleProvider in Umbraco Commerce +--- +## ShippingMethodDiscountRuleProvider + +```csharp +public class ShippingMethodDiscountRuleProvider : + OrderDiscountRuleProviderBase +``` + +**Inheritance** + +* Class [OrderDiscountRuleProviderBase<TSettings>](orderdiscountruleproviderbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rules](README.md) + +### Constructors + +#### ShippingMethodDiscountRuleProvider + +The default constructor. + +```csharp +public ShippingMethodDiscountRuleProvider() +``` + + +### Methods + +#### ValidateRule + +```csharp +public override DiscountRuleResult ValidateRule(DiscountRuleContext ctx, + ShippingMethodDiscountRuleProviderSettings settings) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/shippingmethoddiscountruleprovidersettings.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/shippingmethoddiscountruleprovidersettings.md new file mode 100644 index 00000000000..12ba29d66d1 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts-rules/shippingmethoddiscountruleprovidersettings.md @@ -0,0 +1,34 @@ +--- +title: ShippingMethodDiscountRuleProviderSettings +description: API reference for ShippingMethodDiscountRuleProviderSettings in Umbraco Commerce +--- +## ShippingMethodDiscountRuleProviderSettings + +```csharp +public class ShippingMethodDiscountRuleProviderSettings +``` + +**Namespace** +* [Umbraco.Commerce.Core.Discounts.Rules](README.md) + +### Constructors + +#### ShippingMethodDiscountRuleProviderSettings + +The default constructor. + +```csharp +public ShippingMethodDiscountRuleProviderSettings() +``` + + +### Properties + +#### ShippingMethodId + +```csharp +public Guid? ShippingMethodId { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts/README.md new file mode 100644 index 00000000000..cf768cc7b52 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Core.Discounts +description: API reference for Umbraco.Commerce.Core.Discounts in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Discounts namespace + +| Public Type | Description | +| --- | --- | +| abstract class [DiscountProviderFactoryBase<TResult,TConfig>](discountproviderfactorybase-2.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts/discountproviderfactorybase-2.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts/discountproviderfactorybase-2.md new file mode 100644 index 00000000000..758dfc3343c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-discounts/discountproviderfactorybase-2.md @@ -0,0 +1,18 @@ +--- +title: DiscountProviderFactoryBase +description: API reference for DiscountProviderFactoryBase in Umbraco Commerce +--- +## DiscountProviderFactoryBase<TResult,TConfig> + +```csharp +public abstract class DiscountProviderFactoryBase : DynamicFactoryBase +``` + +**Inheritance** + +* Class [DynamicFactoryBase](../../umbraco-commerce-common/umbraco-commerce-common/dynamicfactorybase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Discounts](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification-handlers-order/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification-handlers-order/README.md new file mode 100644 index 00000000000..fc70fe3bcf9 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification-handlers-order/README.md @@ -0,0 +1,12 @@ +--- +title: Umbraco.Commerce.Core.Events.Notification.Handlers.Order +description: API reference for Umbraco.Commerce.Core.Events.Notification.Handlers.Order in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Events.Notification.Handlers.Order namespace + +| Public Type | Description | +| --- | --- | +| class [SendFinalizedOrderEmail](sendfinalizedorderemail.md) | | +| class [SendGiftCardEmails](sendgiftcardemails.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification-handlers-order/sendfinalizedorderemail.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification-handlers-order/sendfinalizedorderemail.md new file mode 100644 index 00000000000..ece91ac3030 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification-handlers-order/sendfinalizedorderemail.md @@ -0,0 +1,37 @@ +--- +title: SendFinalizedOrderEmail +description: API reference for SendFinalizedOrderEmail in Umbraco Commerce +--- +## SendFinalizedOrderEmail + +```csharp +public class SendFinalizedOrderEmail : NotificationEventHandlerBase +``` + +**Inheritance** + +* Class [NotificationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/notificationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification.Handlers.Order](README.md) + +### Constructors + +#### SendFinalizedOrderEmail + +```csharp +public SendFinalizedOrderEmail(IOrderService orderService, IStoreService storeService, + IEmailTemplateService emailTemplateService, ILogger logger) +``` + + +### Methods + +#### Handle + +```csharp +public override void Handle(OrderFinalizedNotification evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification-handlers-order/sendgiftcardemails.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification-handlers-order/sendgiftcardemails.md new file mode 100644 index 00000000000..e42d2c0c0f3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification-handlers-order/sendgiftcardemails.md @@ -0,0 +1,37 @@ +--- +title: SendGiftCardEmails +description: API reference for SendGiftCardEmails in Umbraco Commerce +--- +## SendGiftCardEmails + +```csharp +public class SendGiftCardEmails : NotificationEventHandlerBase +``` + +**Inheritance** + +* Class [NotificationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/notificationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification.Handlers.Order](README.md) + +### Constructors + +#### SendGiftCardEmails + +```csharp +public SendGiftCardEmails(IStoreService storeService, IGiftCardService giftCardService, + IEmailTemplateService emailTemplateService, ILogger logger) +``` + + +### Methods + +#### Handle + +```csharp +public override void Handle(OrderFinalizedNotification evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/README.md new file mode 100644 index 00000000000..1d37d67af16 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/README.md @@ -0,0 +1,222 @@ +--- +title: Umbraco.Commerce.Core.Events.Notification +description: API reference for Umbraco.Commerce.Core.Events.Notification in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Events.Notification namespace + +| Public Type | Description | +| --- | --- | +| class [CountryCreatedNotification](countrycreatednotification.md) | | +| class [CountryCreatingNotification](countrycreatingnotification.md) | | +| class [CountryDeletedNotification](countrydeletednotification.md) | | +| class [CountryDeletingNotification](countrydeletingnotification.md) | | +| abstract class [CountryNotificationEventBase<TEntity>](countrynotificationeventbase-1.md) | | +| class [CountrySavedNotification](countrysavednotification.md) | | +| class [CountrySavingNotification](countrysavingnotification.md) | | +| class [CountryUpdatedNotification](countryupdatednotification.md) | | +| class [CountryUpdatingNotification](countryupdatingnotification.md) | | +| class [CurrencyCreatedNotification](currencycreatednotification.md) | | +| class [CurrencyCreatingNotification](currencycreatingnotification.md) | | +| class [CurrencyDeletedNotification](currencydeletednotification.md) | | +| class [CurrencyDeletingNotification](currencydeletingnotification.md) | | +| abstract class [CurrencyNotificationEventBase<TEntity>](currencynotificationeventbase-1.md) | | +| class [CurrencySavedNotification](currencysavednotification.md) | | +| class [CurrencySavingNotification](currencysavingnotification.md) | | +| class [CurrencyUpdatedNotification](currencyupdatednotification.md) | | +| class [CurrencyUpdatingNotification](currencyupdatingnotification.md) | | +| class [DiscountCreatedNotification](discountcreatednotification.md) | | +| class [DiscountCreatingNotification](discountcreatingnotification.md) | | +| class [DiscountDeletedNotification](discountdeletednotification.md) | | +| class [DiscountDeletingNotification](discountdeletingnotification.md) | | +| abstract class [DiscountNotificationEventBase<TEntity>](discountnotificationeventbase-1.md) | | +| class [DiscountSavedNotification](discountsavednotification.md) | | +| class [DiscountSavingNotification](discountsavingnotification.md) | | +| class [DiscountUpdatedNotification](discountupdatednotification.md) | | +| class [DiscountUpdatingNotification](discountupdatingnotification.md) | | +| class [EmailFailedNotification](emailfailednotification.md) | | +| class [EmailSendingNotification](emailsendingnotification.md) | | +| class [EmailSentNotification](emailsentnotification.md) | | +| class [EmailTemplateCreatedNotification](emailtemplatecreatednotification.md) | | +| class [EmailTemplateCreatingNotification](emailtemplatecreatingnotification.md) | | +| class [EmailTemplateDeletedNotification](emailtemplatedeletednotification.md) | | +| class [EmailTemplateDeletingNotification](emailtemplatedeletingnotification.md) | | +| abstract class [EmailTemplateNotificationEventBase<TEntity>](emailtemplatenotificationeventbase-1.md) | | +| class [EmailTemplateSavedNotification](emailtemplatesavednotification.md) | | +| class [EmailTemplateSavingNotification](emailtemplatesavingnotification.md) | | +| class [EmailTemplateUpdatedNotification](emailtemplateupdatednotification.md) | | +| class [EmailTemplateUpdatingNotification](emailtemplateupdatingnotification.md) | | +| class [ExportTemplateCreatedNotification](exporttemplatecreatednotification.md) | | +| class [ExportTemplateCreatingNotification](exporttemplatecreatingnotification.md) | | +| class [ExportTemplateDeletedNotification](exporttemplatedeletednotification.md) | | +| class [ExportTemplateDeletingNotification](exporttemplatedeletingnotification.md) | | +| abstract class [ExportTemplateNotificationEventBase<TEntity>](exporttemplatenotificationeventbase-1.md) | | +| class [ExportTemplateSavedNotification](exporttemplatesavednotification.md) | | +| class [ExportTemplateSavingNotification](exporttemplatesavingnotification.md) | | +| class [ExportTemplateUpdatedNotification](exporttemplateupdatednotification.md) | | +| class [ExportTemplateUpdatingNotification](exporttemplateupdatingnotification.md) | | +| class [FrozenPricesThawedNotification](frozenpricesthawednotification.md) | | +| class [FrozenPricesThawingNotification](frozenpricesthawingnotification.md) | | +| class [GiftCardCreatedNotification](giftcardcreatednotification.md) | | +| class [GiftCardCreatingNotification](giftcardcreatingnotification.md) | | +| class [GiftCardDeletedNotification](giftcarddeletednotification.md) | | +| class [GiftCardDeletingNotification](giftcarddeletingnotification.md) | | +| abstract class [GiftCardNotificationEventBase<TEntity>](giftcardnotificationeventbase-1.md) | | +| class [GiftCardSavedNotification](giftcardsavednotification.md) | | +| class [GiftCardSavingNotification](giftcardsavingnotification.md) | | +| class [GiftCardUpdatedNotification](giftcardupdatednotification.md) | | +| class [GiftCardUpdatingNotification](giftcardupdatingnotification.md) | | +| class [OrderAssignedToCustomerNotification](orderassignedtocustomernotification.md) | | +| class [OrderAssigningToCustomerNotification](orderassigningtocustomernotification.md) | | +| abstract class [OrderAssignToCustomerNotificationBase<TEntity>](orderassigntocustomernotificationbase-1.md) | | +| abstract class [OrderCodeNotificationBase<TEntity>](ordercodenotificationbase-1.md) | | +| class [OrderCreatedNotification](ordercreatednotification.md) | | +| class [OrderCreatingNotification](ordercreatingnotification.md) | | +| class [OrderCurrencyChangedNotification](ordercurrencychangednotification.md) | | +| abstract class [OrderCurrencyChangeNotificationBase<TEntity>](ordercurrencychangenotificationbase-1.md) | | +| class [OrderCurrencyChangingNotification](ordercurrencychangingnotification.md) | | +| class [OrderDeletedNotification](orderdeletednotification.md) | | +| class [OrderDeletingNotification](orderdeletingnotification.md) | | +| class [OrderDiscountCodeRedeemedNotification](orderdiscountcoderedeemednotification.md) | | +| class [OrderDiscountCodeRedeemingNotification](orderdiscountcoderedeemingnotification.md) | | +| class [OrderDiscountCodeUnredeemedNotification](orderdiscountcodeunredeemednotification.md) | | +| class [OrderDiscountCodeUnredeemingNotification](orderdiscountcodeunredeemingnotification.md) | | +| class [OrderFinalizedNotification](orderfinalizednotification.md) | | +| class [OrderFinalizingNotification](orderfinalizingnotification.md) | | +| class [OrderGiftCardRedeemedNotification](ordergiftcardredeemednotification.md) | | +| class [OrderGiftCardRedeemingNotification](ordergiftcardredeemingnotification.md) | | +| class [OrderGiftCardUnredeemedNotification](ordergiftcardunredeemednotification.md) | | +| class [OrderGiftCardUnredeemingNotification](ordergiftcardunredeemingnotification.md) | | +| class [OrderLanguageChangedNotification](orderlanguagechangednotification.md) | | +| abstract class [OrderLanguageChangeNotificationBase<TEntity>](orderlanguagechangenotificationbase-1.md) | | +| class [OrderLanguageChangingNotification](orderlanguagechangingnotification.md) | | +| class [OrderLineAddedNotification](orderlineaddednotification.md) | | +| class [OrderLineAddingNotification](orderlineaddingnotification.md) | | +| class [OrderLineAddNotification<TEntity>](orderlineaddnotification-1.md) | | +| class [OrderLineChangedNotification](orderlinechangednotification.md) | | +| class [OrderLineChangeNotification<TEntity>](orderlinechangenotification-1.md) | | +| class [OrderLineChangingNotification](orderlinechangingnotification.md) | | +| class [OrderLineRemovedNotification](orderlineremovednotification.md) | | +| class [OrderLineRemoveNotification<TEntity>](orderlineremovenotification-1.md) | | +| class [OrderLineRemovingNotification](orderlineremovingnotification.md) | | +| abstract class [OrderNotificationEventBase<TOrder>](ordernotificationeventbase-1.md) | | +| class [OrderPaymentCountryRegionChangedNotification](orderpaymentcountryregionchangednotification.md) | | +| abstract class [OrderPaymentCountryRegionChangeNotificationBase<TEntity>](orderpaymentcountryregionchangenotificationbase-1.md) | | +| class [OrderPaymentCountryRegionChangingNotification](orderpaymentcountryregionchangingnotification.md) | | +| class [OrderPaymentMethodChangedNotification](orderpaymentmethodchangednotification.md) | | +| abstract class [OrderPaymentMethodChangeNotificationBase<TEntity>](orderpaymentmethodchangenotificationbase-1.md) | | +| class [OrderPaymentMethodChangingNotification](orderpaymentmethodchangingnotification.md) | | +| class [OrderProductAddedNotification](orderproductaddednotification.md) | | +| class [OrderProductAddingNotification](orderproductaddingnotification.md) | | +| abstract class [OrderProductAddNotificationBase<TEntity>](orderproductaddnotificationbase-1.md) | | +| class [OrderPropertiesChangedNotification](orderpropertieschangednotification.md) | | +| abstract class [OrderPropertiesChangeNotificationBase<TEntity>](orderpropertieschangenotificationbase-1.md) | | +| class [OrderPropertiesChangingNotification](orderpropertieschangingnotification.md) | | +| class [OrderSavedNotification](ordersavednotification.md) | | +| class [OrderSavingNotification](ordersavingnotification.md) | | +| class [OrderShippingCountryRegionChangedNotification](ordershippingcountryregionchangednotification.md) | | +| abstract class [OrderShippingCountryRegionChangeNotificationBase<TEntity>](ordershippingcountryregionchangenotificationbase-1.md) | | +| class [OrderShippingCountryRegionChangingNotification](ordershippingcountryregionchangingnotification.md) | | +| class [OrderShippingMethodChangedNotification](ordershippingmethodchangednotification.md) | | +| abstract class [OrderShippingMethodChangeNotificationBase<TEntity>](ordershippingmethodchangenotificationbase-1.md) | | +| class [OrderShippingMethodChangingNotification](ordershippingmethodchangingnotification.md) | | +| class [OrderStatusChangedNotification](orderstatuschangednotification.md) | | +| abstract class [OrderStatusChangeNotificationBase<TEntity>](orderstatuschangenotificationbase-1.md) | | +| class [OrderStatusChangingNotification](orderstatuschangingnotification.md) | | +| class [OrderStatusCreatedNotification](orderstatuscreatednotification.md) | | +| class [OrderStatusCreatingNotification](orderstatuscreatingnotification.md) | | +| class [OrderStatusDeletedNotification](orderstatusdeletednotification.md) | | +| class [OrderStatusDeletingNotification](orderstatusdeletingnotification.md) | | +| abstract class [OrderStatusNotificationEventBase<TEntity>](orderstatusnotificationeventbase-1.md) | | +| class [OrderStatusSavedNotification](orderstatussavednotification.md) | | +| class [OrderStatusSavingNotification](orderstatussavingnotification.md) | | +| class [OrderStatusUpdatedNotification](orderstatusupdatednotification.md) | | +| class [OrderStatusUpdatingNotification](orderstatusupdatingnotification.md) | | +| class [OrderTagsChangedNotification](ordertagschangednotification.md) | | +| abstract class [OrderTagsChangeNotificationBase<TEntity>](ordertagschangenotificationbase-1.md) | | +| class [OrderTagsChangingNotification](ordertagschangingnotification.md) | | +| class [OrderTaxClassChangedNotification](ordertaxclasschangednotification.md) | | +| abstract class [OrderTaxClassChangeNotificationBase<TEntity>](ordertaxclasschangenotificationbase-1.md) | | +| class [OrderTaxClassChangingNotification](ordertaxclasschangingnotification.md) | | +| abstract class [OrderTransactionChangeNotificationBase<TEntity>](ordertransactionchangenotificationbase-1.md) | | +| class [OrderTransactionUpdatedNotification](ordertransactionupdatednotification.md) | | +| class [OrderTransactionUpdatingNotification](ordertransactionupdatingnotification.md) | | +| class [OrderUpdatedNotification](orderupdatednotification.md) | | +| class [OrderUpdatingNotification](orderupdatingnotification.md) | | +| class [PaymentFormGeneratingNotification](paymentformgeneratingnotification.md) | | +| class [PaymentMethodCreatedNotification](paymentmethodcreatednotification.md) | | +| class [PaymentMethodCreatingNotification](paymentmethodcreatingnotification.md) | | +| class [PaymentMethodDeletedNotification](paymentmethoddeletednotification.md) | | +| class [PaymentMethodDeletingNotification](paymentmethoddeletingnotification.md) | | +| abstract class [PaymentMethodNotificationEventBase<TEntity>](paymentmethodnotificationeventbase-1.md) | | +| class [PaymentMethodSavedNotification](paymentmethodsavednotification.md) | | +| class [PaymentMethodSavingNotification](paymentmethodsavingnotification.md) | | +| class [PaymentMethodUpdatedNotification](paymentmethodupdatednotification.md) | | +| class [PaymentMethodUpdatingNotification](paymentmethodupdatingnotification.md) | | +| class [PrintTemplateCreatedNotification](printtemplatecreatednotification.md) | | +| class [PrintTemplateCreatingNotification](printtemplatecreatingnotification.md) | | +| class [PrintTemplateDeletedNotification](printtemplatedeletednotification.md) | | +| class [PrintTemplateDeletingNotification](printtemplatedeletingnotification.md) | | +| abstract class [PrintTemplateNotificationEventBase<TEntity>](printtemplatenotificationeventbase-1.md) | | +| class [PrintTemplateSavedNotification](printtemplatesavednotification.md) | | +| class [PrintTemplateSavingNotification](printtemplatesavingnotification.md) | | +| class [PrintTemplateUpdatedNotification](printtemplateupdatednotification.md) | | +| class [PrintTemplateUpdatingNotification](printtemplateupdatingnotification.md) | | +| class [ProductAttributeCreatedNotification](productattributecreatednotification.md) | | +| class [ProductAttributeCreatingNotification](productattributecreatingnotification.md) | | +| class [ProductAttributeDeletedNotification](productattributedeletednotification.md) | | +| class [ProductAttributeDeletingNotification](productattributedeletingnotification.md) | | +| abstract class [ProductAttributeNotificationEventBase<TEntity>](productattributenotificationeventbase-1.md) | | +| class [ProductAttributePresetCreatedNotification](productattributepresetcreatednotification.md) | | +| class [ProductAttributePresetCreatingNotification](productattributepresetcreatingnotification.md) | | +| class [ProductAttributePresetDeletedNotification](productattributepresetdeletednotification.md) | | +| class [ProductAttributePresetDeletingNotification](productattributepresetdeletingnotification.md) | | +| abstract class [ProductAttributePresetNotificationEventBase<TEntity>](productattributepresetnotificationeventbase-1.md) | | +| class [ProductAttributePresetSavedNotification](productattributepresetsavednotification.md) | | +| class [ProductAttributePresetSavingNotification](productattributepresetsavingnotification.md) | | +| class [ProductAttributePresetUpdatedNotification](productattributepresetupdatednotification.md) | | +| class [ProductAttributePresetUpdatingNotification](productattributepresetupdatingnotification.md) | | +| class [ProductAttributeSavedNotification](productattributesavednotification.md) | | +| class [ProductAttributeSavingNotification](productattributesavingnotification.md) | | +| class [ProductAttributeUpdatedNotification](productattributeupdatednotification.md) | | +| class [ProductAttributeUpdatingNotification](productattributeupdatingnotification.md) | | +| class [RegionCreatedNotification](regioncreatednotification.md) | | +| class [RegionCreatingNotification](regioncreatingnotification.md) | | +| class [RegionDeletedNotification](regiondeletednotification.md) | | +| class [RegionDeletingNotification](regiondeletingnotification.md) | | +| abstract class [RegionNotificationEventBase<TEntity>](regionnotificationeventbase-1.md) | | +| class [RegionSavedNotification](regionsavednotification.md) | | +| class [RegionSavingNotification](regionsavingnotification.md) | | +| class [RegionUpdatedNotification](regionupdatednotification.md) | | +| class [RegionUpdatingNotification](regionupdatingnotification.md) | | +| class [ShippingMethodCreatedNotification](shippingmethodcreatednotification.md) | | +| class [ShippingMethodCreatingNotification](shippingmethodcreatingnotification.md) | | +| class [ShippingMethodDeletedNotification](shippingmethoddeletednotification.md) | | +| class [ShippingMethodDeletingNotification](shippingmethoddeletingnotification.md) | | +| abstract class [ShippingMethodNotificationEventBase<TEntity>](shippingmethodnotificationeventbase-1.md) | | +| class [ShippingMethodSavedNotification](shippingmethodsavednotification.md) | | +| class [ShippingMethodSavingNotification](shippingmethodsavingnotification.md) | | +| class [ShippingMethodUpdatedNotification](shippingmethodupdatednotification.md) | | +| class [ShippingMethodUpdatingNotification](shippingmethodupdatingnotification.md) | | +| class [StockChangedNotification](stockchangednotification.md) | | +| class [StockChangingNotification](stockchangingnotification.md) | | +| class [StoreCreatedNotification](storecreatednotification.md) | | +| class [StoreCreatingNotification](storecreatingnotification.md) | | +| class [StoreDeletedNotification](storedeletednotification.md) | | +| class [StoreDeletingNotification](storedeletingnotification.md) | | +| abstract class [StoreNotificationEventBase<TEntity>](storenotificationeventbase-1.md) | | +| class [StoreSavedNotification](storesavednotification.md) | | +| class [StoreSavingNotification](storesavingnotification.md) | | +| class [StoreUpdatedNotification](storeupdatednotification.md) | | +| class [StoreUpdatingNotification](storeupdatingnotification.md) | | +| class [TaxClassCreatedNotification](taxclasscreatednotification.md) | | +| class [TaxClassCreatingNotification](taxclasscreatingnotification.md) | | +| class [TaxClassDeletedNotification](taxclassdeletednotification.md) | | +| class [TaxClassDeletingNotification](taxclassdeletingnotification.md) | | +| abstract class [TaxClassNotificationEventBase<TEntity>](taxclassnotificationeventbase-1.md) | | +| class [TaxClassSavedNotification](taxclasssavednotification.md) | | +| class [TaxClassSavingNotification](taxclasssavingnotification.md) | | +| class [TaxClassUpdatedNotification](taxclassupdatednotification.md) | | +| class [TaxClassUpdatingNotification](taxclassupdatingnotification.md) | | +| class [UnitOfWorkCreatedNotification](unitofworkcreatednotification.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/countrycreatednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/countrycreatednotification.md new file mode 100644 index 00000000000..9525365ebde --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/countrycreatednotification.md @@ -0,0 +1,27 @@ +--- +title: CountryCreatedNotification +description: API reference for CountryCreatedNotification in Umbraco Commerce +--- +## CountryCreatedNotification + +```csharp +public class CountryCreatedNotification : CountryNotificationEventBase +``` + +**Inheritance** + +* Class [CountryNotificationEventBase<TEntity>](countrynotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### CountryCreatedNotification + +```csharp +public CountryCreatedNotification(CountryReadOnly country) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/countrycreatingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/countrycreatingnotification.md new file mode 100644 index 00000000000..ca4653a2e74 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/countrycreatingnotification.md @@ -0,0 +1,27 @@ +--- +title: CountryCreatingNotification +description: API reference for CountryCreatingNotification in Umbraco Commerce +--- +## CountryCreatingNotification + +```csharp +public class CountryCreatingNotification : CountryNotificationEventBase +``` + +**Inheritance** + +* Class [CountryNotificationEventBase<TEntity>](countrynotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### CountryCreatingNotification + +```csharp +public CountryCreatingNotification(Country country) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/countrydeletednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/countrydeletednotification.md new file mode 100644 index 00000000000..a20d9095557 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/countrydeletednotification.md @@ -0,0 +1,27 @@ +--- +title: CountryDeletedNotification +description: API reference for CountryDeletedNotification in Umbraco Commerce +--- +## CountryDeletedNotification + +```csharp +public class CountryDeletedNotification : CountryNotificationEventBase +``` + +**Inheritance** + +* Class [CountryNotificationEventBase<TEntity>](countrynotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### CountryDeletedNotification + +```csharp +public CountryDeletedNotification(CountryReadOnly country) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/countrydeletingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/countrydeletingnotification.md new file mode 100644 index 00000000000..faaf0cf7635 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/countrydeletingnotification.md @@ -0,0 +1,27 @@ +--- +title: CountryDeletingNotification +description: API reference for CountryDeletingNotification in Umbraco Commerce +--- +## CountryDeletingNotification + +```csharp +public class CountryDeletingNotification : CountryNotificationEventBase +``` + +**Inheritance** + +* Class [CountryNotificationEventBase<TEntity>](countrynotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### CountryDeletingNotification + +```csharp +public CountryDeletingNotification(CountryReadOnly country) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/countrynotificationeventbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/countrynotificationeventbase-1.md new file mode 100644 index 00000000000..e414ccd0238 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/countrynotificationeventbase-1.md @@ -0,0 +1,37 @@ +--- +title: CountryNotificationEventBase +description: API reference for CountryNotificationEventBase in Umbraco Commerce +--- +## CountryNotificationEventBase<TEntity> + +```csharp +public abstract class CountryNotificationEventBase : NotificationEventBase + where TEntity : CountryReadOnly +``` + +**Inheritance** + +* Class [NotificationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/notificationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### CountryNotificationEventBase<TEntity> + +```csharp +public CountryNotificationEventBase(TEntity country) +``` + + +### Properties + +#### Country + +```csharp +public TEntity Country { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/countrysavednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/countrysavednotification.md new file mode 100644 index 00000000000..7a7b790619d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/countrysavednotification.md @@ -0,0 +1,27 @@ +--- +title: CountrySavedNotification +description: API reference for CountrySavedNotification in Umbraco Commerce +--- +## CountrySavedNotification + +```csharp +public class CountrySavedNotification : CountryNotificationEventBase +``` + +**Inheritance** + +* Class [CountryNotificationEventBase<TEntity>](countrynotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### CountrySavedNotification + +```csharp +public CountrySavedNotification(CountryReadOnly country) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/countrysavingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/countrysavingnotification.md new file mode 100644 index 00000000000..8dc715dbcae --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/countrysavingnotification.md @@ -0,0 +1,27 @@ +--- +title: CountrySavingNotification +description: API reference for CountrySavingNotification in Umbraco Commerce +--- +## CountrySavingNotification + +```csharp +public class CountrySavingNotification : CountryNotificationEventBase +``` + +**Inheritance** + +* Class [CountryNotificationEventBase<TEntity>](countrynotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### CountrySavingNotification + +```csharp +public CountrySavingNotification(Country country) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/countryupdatednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/countryupdatednotification.md new file mode 100644 index 00000000000..4d16f24175e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/countryupdatednotification.md @@ -0,0 +1,27 @@ +--- +title: CountryUpdatedNotification +description: API reference for CountryUpdatedNotification in Umbraco Commerce +--- +## CountryUpdatedNotification + +```csharp +public class CountryUpdatedNotification : CountryNotificationEventBase +``` + +**Inheritance** + +* Class [CountryNotificationEventBase<TEntity>](countrynotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### CountryUpdatedNotification + +```csharp +public CountryUpdatedNotification(CountryReadOnly country) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/countryupdatingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/countryupdatingnotification.md new file mode 100644 index 00000000000..81b2a2eb2c8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/countryupdatingnotification.md @@ -0,0 +1,27 @@ +--- +title: CountryUpdatingNotification +description: API reference for CountryUpdatingNotification in Umbraco Commerce +--- +## CountryUpdatingNotification + +```csharp +public class CountryUpdatingNotification : CountryNotificationEventBase +``` + +**Inheritance** + +* Class [CountryNotificationEventBase<TEntity>](countrynotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### CountryUpdatingNotification + +```csharp +public CountryUpdatingNotification(Country country) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/currencycreatednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/currencycreatednotification.md new file mode 100644 index 00000000000..cdd0fba8bc3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/currencycreatednotification.md @@ -0,0 +1,27 @@ +--- +title: CurrencyCreatedNotification +description: API reference for CurrencyCreatedNotification in Umbraco Commerce +--- +## CurrencyCreatedNotification + +```csharp +public class CurrencyCreatedNotification : CurrencyNotificationEventBase +``` + +**Inheritance** + +* Class [CurrencyNotificationEventBase<TEntity>](currencynotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### CurrencyCreatedNotification + +```csharp +public CurrencyCreatedNotification(CurrencyReadOnly currency) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/currencycreatingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/currencycreatingnotification.md new file mode 100644 index 00000000000..274721e892b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/currencycreatingnotification.md @@ -0,0 +1,27 @@ +--- +title: CurrencyCreatingNotification +description: API reference for CurrencyCreatingNotification in Umbraco Commerce +--- +## CurrencyCreatingNotification + +```csharp +public class CurrencyCreatingNotification : CurrencyNotificationEventBase +``` + +**Inheritance** + +* Class [CurrencyNotificationEventBase<TEntity>](currencynotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### CurrencyCreatingNotification + +```csharp +public CurrencyCreatingNotification(Currency currency) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/currencydeletednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/currencydeletednotification.md new file mode 100644 index 00000000000..653464ab44e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/currencydeletednotification.md @@ -0,0 +1,27 @@ +--- +title: CurrencyDeletedNotification +description: API reference for CurrencyDeletedNotification in Umbraco Commerce +--- +## CurrencyDeletedNotification + +```csharp +public class CurrencyDeletedNotification : CurrencyNotificationEventBase +``` + +**Inheritance** + +* Class [CurrencyNotificationEventBase<TEntity>](currencynotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### CurrencyDeletedNotification + +```csharp +public CurrencyDeletedNotification(CurrencyReadOnly currency) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/currencydeletingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/currencydeletingnotification.md new file mode 100644 index 00000000000..f2cb7cd9f15 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/currencydeletingnotification.md @@ -0,0 +1,27 @@ +--- +title: CurrencyDeletingNotification +description: API reference for CurrencyDeletingNotification in Umbraco Commerce +--- +## CurrencyDeletingNotification + +```csharp +public class CurrencyDeletingNotification : CurrencyNotificationEventBase +``` + +**Inheritance** + +* Class [CurrencyNotificationEventBase<TEntity>](currencynotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### CurrencyDeletingNotification + +```csharp +public CurrencyDeletingNotification(CurrencyReadOnly currency) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/currencynotificationeventbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/currencynotificationeventbase-1.md new file mode 100644 index 00000000000..0eb971c5629 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/currencynotificationeventbase-1.md @@ -0,0 +1,37 @@ +--- +title: CurrencyNotificationEventBase +description: API reference for CurrencyNotificationEventBase in Umbraco Commerce +--- +## CurrencyNotificationEventBase<TEntity> + +```csharp +public abstract class CurrencyNotificationEventBase : NotificationEventBase + where TEntity : CurrencyReadOnly +``` + +**Inheritance** + +* Class [NotificationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/notificationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### CurrencyNotificationEventBase<TEntity> + +```csharp +public CurrencyNotificationEventBase(TEntity currency) +``` + + +### Properties + +#### Currency + +```csharp +public TEntity Currency { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/currencysavednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/currencysavednotification.md new file mode 100644 index 00000000000..9ffae8f63bb --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/currencysavednotification.md @@ -0,0 +1,27 @@ +--- +title: CurrencySavedNotification +description: API reference for CurrencySavedNotification in Umbraco Commerce +--- +## CurrencySavedNotification + +```csharp +public class CurrencySavedNotification : CurrencyNotificationEventBase +``` + +**Inheritance** + +* Class [CurrencyNotificationEventBase<TEntity>](currencynotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### CurrencySavedNotification + +```csharp +public CurrencySavedNotification(CurrencyReadOnly currency) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/currencysavingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/currencysavingnotification.md new file mode 100644 index 00000000000..35189490262 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/currencysavingnotification.md @@ -0,0 +1,27 @@ +--- +title: CurrencySavingNotification +description: API reference for CurrencySavingNotification in Umbraco Commerce +--- +## CurrencySavingNotification + +```csharp +public class CurrencySavingNotification : CurrencyNotificationEventBase +``` + +**Inheritance** + +* Class [CurrencyNotificationEventBase<TEntity>](currencynotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### CurrencySavingNotification + +```csharp +public CurrencySavingNotification(Currency currency) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/currencyupdatednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/currencyupdatednotification.md new file mode 100644 index 00000000000..9a7fd0fce53 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/currencyupdatednotification.md @@ -0,0 +1,27 @@ +--- +title: CurrencyUpdatedNotification +description: API reference for CurrencyUpdatedNotification in Umbraco Commerce +--- +## CurrencyUpdatedNotification + +```csharp +public class CurrencyUpdatedNotification : CurrencyNotificationEventBase +``` + +**Inheritance** + +* Class [CurrencyNotificationEventBase<TEntity>](currencynotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### CurrencyUpdatedNotification + +```csharp +public CurrencyUpdatedNotification(CurrencyReadOnly currency) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/currencyupdatingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/currencyupdatingnotification.md new file mode 100644 index 00000000000..65580f83eff --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/currencyupdatingnotification.md @@ -0,0 +1,27 @@ +--- +title: CurrencyUpdatingNotification +description: API reference for CurrencyUpdatingNotification in Umbraco Commerce +--- +## CurrencyUpdatingNotification + +```csharp +public class CurrencyUpdatingNotification : CurrencyNotificationEventBase +``` + +**Inheritance** + +* Class [CurrencyNotificationEventBase<TEntity>](currencynotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### CurrencyUpdatingNotification + +```csharp +public CurrencyUpdatingNotification(Currency currency) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/discountcreatednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/discountcreatednotification.md new file mode 100644 index 00000000000..1b8abfb7461 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/discountcreatednotification.md @@ -0,0 +1,27 @@ +--- +title: DiscountCreatedNotification +description: API reference for DiscountCreatedNotification in Umbraco Commerce +--- +## DiscountCreatedNotification + +```csharp +public class DiscountCreatedNotification : DiscountNotificationEventBase +``` + +**Inheritance** + +* Class [DiscountNotificationEventBase<TEntity>](discountnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### DiscountCreatedNotification + +```csharp +public DiscountCreatedNotification(DiscountReadOnly discount) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/discountcreatingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/discountcreatingnotification.md new file mode 100644 index 00000000000..cab68ee6362 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/discountcreatingnotification.md @@ -0,0 +1,27 @@ +--- +title: DiscountCreatingNotification +description: API reference for DiscountCreatingNotification in Umbraco Commerce +--- +## DiscountCreatingNotification + +```csharp +public class DiscountCreatingNotification : DiscountNotificationEventBase +``` + +**Inheritance** + +* Class [DiscountNotificationEventBase<TEntity>](discountnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### DiscountCreatingNotification + +```csharp +public DiscountCreatingNotification(Discount discount) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/discountdeletednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/discountdeletednotification.md new file mode 100644 index 00000000000..2c0d16c2cfb --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/discountdeletednotification.md @@ -0,0 +1,27 @@ +--- +title: DiscountDeletedNotification +description: API reference for DiscountDeletedNotification in Umbraco Commerce +--- +## DiscountDeletedNotification + +```csharp +public class DiscountDeletedNotification : DiscountNotificationEventBase +``` + +**Inheritance** + +* Class [DiscountNotificationEventBase<TEntity>](discountnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### DiscountDeletedNotification + +```csharp +public DiscountDeletedNotification(DiscountReadOnly discount) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/discountdeletingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/discountdeletingnotification.md new file mode 100644 index 00000000000..8c71431ae75 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/discountdeletingnotification.md @@ -0,0 +1,27 @@ +--- +title: DiscountDeletingNotification +description: API reference for DiscountDeletingNotification in Umbraco Commerce +--- +## DiscountDeletingNotification + +```csharp +public class DiscountDeletingNotification : DiscountNotificationEventBase +``` + +**Inheritance** + +* Class [DiscountNotificationEventBase<TEntity>](discountnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### DiscountDeletingNotification + +```csharp +public DiscountDeletingNotification(DiscountReadOnly discount) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/discountnotificationeventbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/discountnotificationeventbase-1.md new file mode 100644 index 00000000000..85aec484874 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/discountnotificationeventbase-1.md @@ -0,0 +1,37 @@ +--- +title: DiscountNotificationEventBase +description: API reference for DiscountNotificationEventBase in Umbraco Commerce +--- +## DiscountNotificationEventBase<TEntity> + +```csharp +public abstract class DiscountNotificationEventBase : NotificationEventBase + where TEntity : DiscountReadOnly +``` + +**Inheritance** + +* Class [NotificationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/notificationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### DiscountNotificationEventBase<TEntity> + +```csharp +public DiscountNotificationEventBase(TEntity discount) +``` + + +### Properties + +#### Discount + +```csharp +public TEntity Discount { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/discountsavednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/discountsavednotification.md new file mode 100644 index 00000000000..98dcf0495c5 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/discountsavednotification.md @@ -0,0 +1,27 @@ +--- +title: DiscountSavedNotification +description: API reference for DiscountSavedNotification in Umbraco Commerce +--- +## DiscountSavedNotification + +```csharp +public class DiscountSavedNotification : DiscountNotificationEventBase +``` + +**Inheritance** + +* Class [DiscountNotificationEventBase<TEntity>](discountnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### DiscountSavedNotification + +```csharp +public DiscountSavedNotification(DiscountReadOnly discount) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/discountsavingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/discountsavingnotification.md new file mode 100644 index 00000000000..41fca713369 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/discountsavingnotification.md @@ -0,0 +1,27 @@ +--- +title: DiscountSavingNotification +description: API reference for DiscountSavingNotification in Umbraco Commerce +--- +## DiscountSavingNotification + +```csharp +public class DiscountSavingNotification : DiscountNotificationEventBase +``` + +**Inheritance** + +* Class [DiscountNotificationEventBase<TEntity>](discountnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### DiscountSavingNotification + +```csharp +public DiscountSavingNotification(Discount discount) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/discountupdatednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/discountupdatednotification.md new file mode 100644 index 00000000000..a03e95a884c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/discountupdatednotification.md @@ -0,0 +1,27 @@ +--- +title: DiscountUpdatedNotification +description: API reference for DiscountUpdatedNotification in Umbraco Commerce +--- +## DiscountUpdatedNotification + +```csharp +public class DiscountUpdatedNotification : DiscountNotificationEventBase +``` + +**Inheritance** + +* Class [DiscountNotificationEventBase<TEntity>](discountnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### DiscountUpdatedNotification + +```csharp +public DiscountUpdatedNotification(DiscountReadOnly discount) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/discountupdatingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/discountupdatingnotification.md new file mode 100644 index 00000000000..0587a634345 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/discountupdatingnotification.md @@ -0,0 +1,27 @@ +--- +title: DiscountUpdatingNotification +description: API reference for DiscountUpdatingNotification in Umbraco Commerce +--- +## DiscountUpdatingNotification + +```csharp +public class DiscountUpdatingNotification : DiscountNotificationEventBase +``` + +**Inheritance** + +* Class [DiscountNotificationEventBase<TEntity>](discountnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### DiscountUpdatingNotification + +```csharp +public DiscountUpdatingNotification(Discount discount) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/emailfailednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/emailfailednotification.md new file mode 100644 index 00000000000..d3588af7ba2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/emailfailednotification.md @@ -0,0 +1,36 @@ +--- +title: EmailFailedNotification +description: API reference for EmailFailedNotification in Umbraco Commerce +--- +## EmailFailedNotification + +```csharp +public class EmailFailedNotification : NotificationEventBase +``` + +**Inheritance** + +* Class [NotificationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/notificationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### EmailFailedNotification + +```csharp +public EmailFailedNotification(EmailContext emailContext) +``` + + +### Properties + +#### EmailContext + +```csharp +public EmailContext EmailContext { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/emailsendingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/emailsendingnotification.md new file mode 100644 index 00000000000..0747f7bd499 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/emailsendingnotification.md @@ -0,0 +1,36 @@ +--- +title: EmailSendingNotification +description: API reference for EmailSendingNotification in Umbraco Commerce +--- +## EmailSendingNotification + +```csharp +public class EmailSendingNotification : NotificationEventBase +``` + +**Inheritance** + +* Class [NotificationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/notificationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### EmailSendingNotification + +```csharp +public EmailSendingNotification(EmailContext emailContext) +``` + + +### Properties + +#### EmailContext + +```csharp +public EmailContext EmailContext { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/emailsentnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/emailsentnotification.md new file mode 100644 index 00000000000..88d394f6dd6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/emailsentnotification.md @@ -0,0 +1,36 @@ +--- +title: EmailSentNotification +description: API reference for EmailSentNotification in Umbraco Commerce +--- +## EmailSentNotification + +```csharp +public class EmailSentNotification : NotificationEventBase +``` + +**Inheritance** + +* Class [NotificationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/notificationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### EmailSentNotification + +```csharp +public EmailSentNotification(EmailContext emailContext) +``` + + +### Properties + +#### EmailContext + +```csharp +public EmailContext EmailContext { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/emailtemplatecreatednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/emailtemplatecreatednotification.md new file mode 100644 index 00000000000..842e3b22b98 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/emailtemplatecreatednotification.md @@ -0,0 +1,28 @@ +--- +title: EmailTemplateCreatedNotification +description: API reference for EmailTemplateCreatedNotification in Umbraco Commerce +--- +## EmailTemplateCreatedNotification + +```csharp +public class EmailTemplateCreatedNotification : + EmailTemplateNotificationEventBase +``` + +**Inheritance** + +* Class [EmailTemplateNotificationEventBase<TEntity>](emailtemplatenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### EmailTemplateCreatedNotification + +```csharp +public EmailTemplateCreatedNotification(EmailTemplateReadOnly emailTemplate) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/emailtemplatecreatingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/emailtemplatecreatingnotification.md new file mode 100644 index 00000000000..df3df03bd66 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/emailtemplatecreatingnotification.md @@ -0,0 +1,27 @@ +--- +title: EmailTemplateCreatingNotification +description: API reference for EmailTemplateCreatingNotification in Umbraco Commerce +--- +## EmailTemplateCreatingNotification + +```csharp +public class EmailTemplateCreatingNotification : EmailTemplateNotificationEventBase +``` + +**Inheritance** + +* Class [EmailTemplateNotificationEventBase<TEntity>](emailtemplatenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### EmailTemplateCreatingNotification + +```csharp +public EmailTemplateCreatingNotification(EmailTemplate emailTemplate) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/emailtemplatedeletednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/emailtemplatedeletednotification.md new file mode 100644 index 00000000000..76938c91bc9 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/emailtemplatedeletednotification.md @@ -0,0 +1,28 @@ +--- +title: EmailTemplateDeletedNotification +description: API reference for EmailTemplateDeletedNotification in Umbraco Commerce +--- +## EmailTemplateDeletedNotification + +```csharp +public class EmailTemplateDeletedNotification : + EmailTemplateNotificationEventBase +``` + +**Inheritance** + +* Class [EmailTemplateNotificationEventBase<TEntity>](emailtemplatenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### EmailTemplateDeletedNotification + +```csharp +public EmailTemplateDeletedNotification(EmailTemplateReadOnly emailTemplate) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/emailtemplatedeletingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/emailtemplatedeletingnotification.md new file mode 100644 index 00000000000..e97d7b010a8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/emailtemplatedeletingnotification.md @@ -0,0 +1,28 @@ +--- +title: EmailTemplateDeletingNotification +description: API reference for EmailTemplateDeletingNotification in Umbraco Commerce +--- +## EmailTemplateDeletingNotification + +```csharp +public class EmailTemplateDeletingNotification : + EmailTemplateNotificationEventBase +``` + +**Inheritance** + +* Class [EmailTemplateNotificationEventBase<TEntity>](emailtemplatenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### EmailTemplateDeletingNotification + +```csharp +public EmailTemplateDeletingNotification(EmailTemplateReadOnly emailTemplate) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/emailtemplatenotificationeventbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/emailtemplatenotificationeventbase-1.md new file mode 100644 index 00000000000..fd0df466f17 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/emailtemplatenotificationeventbase-1.md @@ -0,0 +1,37 @@ +--- +title: EmailTemplateNotificationEventBase +description: API reference for EmailTemplateNotificationEventBase in Umbraco Commerce +--- +## EmailTemplateNotificationEventBase<TEntity> + +```csharp +public abstract class EmailTemplateNotificationEventBase : NotificationEventBase + where TEntity : EmailTemplateReadOnly +``` + +**Inheritance** + +* Class [NotificationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/notificationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### EmailTemplateNotificationEventBase<TEntity> + +```csharp +public EmailTemplateNotificationEventBase(TEntity emailTemplate) +``` + + +### Properties + +#### EmailTemplate + +```csharp +public TEntity EmailTemplate { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/emailtemplatesavednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/emailtemplatesavednotification.md new file mode 100644 index 00000000000..ce98554b50e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/emailtemplatesavednotification.md @@ -0,0 +1,28 @@ +--- +title: EmailTemplateSavedNotification +description: API reference for EmailTemplateSavedNotification in Umbraco Commerce +--- +## EmailTemplateSavedNotification + +```csharp +public class EmailTemplateSavedNotification : + EmailTemplateNotificationEventBase +``` + +**Inheritance** + +* Class [EmailTemplateNotificationEventBase<TEntity>](emailtemplatenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### EmailTemplateSavedNotification + +```csharp +public EmailTemplateSavedNotification(EmailTemplateReadOnly emailTemplate) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/emailtemplatesavingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/emailtemplatesavingnotification.md new file mode 100644 index 00000000000..89d80b57603 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/emailtemplatesavingnotification.md @@ -0,0 +1,27 @@ +--- +title: EmailTemplateSavingNotification +description: API reference for EmailTemplateSavingNotification in Umbraco Commerce +--- +## EmailTemplateSavingNotification + +```csharp +public class EmailTemplateSavingNotification : EmailTemplateNotificationEventBase +``` + +**Inheritance** + +* Class [EmailTemplateNotificationEventBase<TEntity>](emailtemplatenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### EmailTemplateSavingNotification + +```csharp +public EmailTemplateSavingNotification(EmailTemplate emailTemplate) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/emailtemplateupdatednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/emailtemplateupdatednotification.md new file mode 100644 index 00000000000..579c11bc072 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/emailtemplateupdatednotification.md @@ -0,0 +1,28 @@ +--- +title: EmailTemplateUpdatedNotification +description: API reference for EmailTemplateUpdatedNotification in Umbraco Commerce +--- +## EmailTemplateUpdatedNotification + +```csharp +public class EmailTemplateUpdatedNotification : + EmailTemplateNotificationEventBase +``` + +**Inheritance** + +* Class [EmailTemplateNotificationEventBase<TEntity>](emailtemplatenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### EmailTemplateUpdatedNotification + +```csharp +public EmailTemplateUpdatedNotification(EmailTemplateReadOnly emailTemplate) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/emailtemplateupdatingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/emailtemplateupdatingnotification.md new file mode 100644 index 00000000000..8206f368e84 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/emailtemplateupdatingnotification.md @@ -0,0 +1,27 @@ +--- +title: EmailTemplateUpdatingNotification +description: API reference for EmailTemplateUpdatingNotification in Umbraco Commerce +--- +## EmailTemplateUpdatingNotification + +```csharp +public class EmailTemplateUpdatingNotification : EmailTemplateNotificationEventBase +``` + +**Inheritance** + +* Class [EmailTemplateNotificationEventBase<TEntity>](emailtemplatenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### EmailTemplateUpdatingNotification + +```csharp +public EmailTemplateUpdatingNotification(EmailTemplate emailTemplate) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/exporttemplatecreatednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/exporttemplatecreatednotification.md new file mode 100644 index 00000000000..c9c5deab760 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/exporttemplatecreatednotification.md @@ -0,0 +1,28 @@ +--- +title: ExportTemplateCreatedNotification +description: API reference for ExportTemplateCreatedNotification in Umbraco Commerce +--- +## ExportTemplateCreatedNotification + +```csharp +public class ExportTemplateCreatedNotification : + ExportTemplateNotificationEventBase +``` + +**Inheritance** + +* Class [ExportTemplateNotificationEventBase<TEntity>](exporttemplatenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### ExportTemplateCreatedNotification + +```csharp +public ExportTemplateCreatedNotification(ExportTemplateReadOnly exportTemplate) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/exporttemplatecreatingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/exporttemplatecreatingnotification.md new file mode 100644 index 00000000000..169c263688f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/exporttemplatecreatingnotification.md @@ -0,0 +1,28 @@ +--- +title: ExportTemplateCreatingNotification +description: API reference for ExportTemplateCreatingNotification in Umbraco Commerce +--- +## ExportTemplateCreatingNotification + +```csharp +public class ExportTemplateCreatingNotification : + ExportTemplateNotificationEventBase +``` + +**Inheritance** + +* Class [ExportTemplateNotificationEventBase<TEntity>](exporttemplatenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### ExportTemplateCreatingNotification + +```csharp +public ExportTemplateCreatingNotification(ExportTemplate exportTemplate) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/exporttemplatedeletednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/exporttemplatedeletednotification.md new file mode 100644 index 00000000000..2cf09db3fc0 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/exporttemplatedeletednotification.md @@ -0,0 +1,28 @@ +--- +title: ExportTemplateDeletedNotification +description: API reference for ExportTemplateDeletedNotification in Umbraco Commerce +--- +## ExportTemplateDeletedNotification + +```csharp +public class ExportTemplateDeletedNotification : + ExportTemplateNotificationEventBase +``` + +**Inheritance** + +* Class [ExportTemplateNotificationEventBase<TEntity>](exporttemplatenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### ExportTemplateDeletedNotification + +```csharp +public ExportTemplateDeletedNotification(ExportTemplateReadOnly exportTemplate) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/exporttemplatedeletingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/exporttemplatedeletingnotification.md new file mode 100644 index 00000000000..0981c0a57e9 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/exporttemplatedeletingnotification.md @@ -0,0 +1,28 @@ +--- +title: ExportTemplateDeletingNotification +description: API reference for ExportTemplateDeletingNotification in Umbraco Commerce +--- +## ExportTemplateDeletingNotification + +```csharp +public class ExportTemplateDeletingNotification : + ExportTemplateNotificationEventBase +``` + +**Inheritance** + +* Class [ExportTemplateNotificationEventBase<TEntity>](exporttemplatenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### ExportTemplateDeletingNotification + +```csharp +public ExportTemplateDeletingNotification(ExportTemplateReadOnly exportTemplate) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/exporttemplatenotificationeventbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/exporttemplatenotificationeventbase-1.md new file mode 100644 index 00000000000..9d1f35930b2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/exporttemplatenotificationeventbase-1.md @@ -0,0 +1,37 @@ +--- +title: ExportTemplateNotificationEventBase +description: API reference for ExportTemplateNotificationEventBase in Umbraco Commerce +--- +## ExportTemplateNotificationEventBase<TEntity> + +```csharp +public abstract class ExportTemplateNotificationEventBase : NotificationEventBase + where TEntity : ExportTemplateReadOnly +``` + +**Inheritance** + +* Class [NotificationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/notificationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### ExportTemplateNotificationEventBase<TEntity> + +```csharp +public ExportTemplateNotificationEventBase(TEntity exportTemplate) +``` + + +### Properties + +#### ExportTemplate + +```csharp +public TEntity ExportTemplate { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/exporttemplatesavednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/exporttemplatesavednotification.md new file mode 100644 index 00000000000..86b81de4151 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/exporttemplatesavednotification.md @@ -0,0 +1,28 @@ +--- +title: ExportTemplateSavedNotification +description: API reference for ExportTemplateSavedNotification in Umbraco Commerce +--- +## ExportTemplateSavedNotification + +```csharp +public class ExportTemplateSavedNotification : + ExportTemplateNotificationEventBase +``` + +**Inheritance** + +* Class [ExportTemplateNotificationEventBase<TEntity>](exporttemplatenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### ExportTemplateSavedNotification + +```csharp +public ExportTemplateSavedNotification(ExportTemplateReadOnly exportTemplate) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/exporttemplatesavingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/exporttemplatesavingnotification.md new file mode 100644 index 00000000000..27c178eeda6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/exporttemplatesavingnotification.md @@ -0,0 +1,27 @@ +--- +title: ExportTemplateSavingNotification +description: API reference for ExportTemplateSavingNotification in Umbraco Commerce +--- +## ExportTemplateSavingNotification + +```csharp +public class ExportTemplateSavingNotification : ExportTemplateNotificationEventBase +``` + +**Inheritance** + +* Class [ExportTemplateNotificationEventBase<TEntity>](exporttemplatenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### ExportTemplateSavingNotification + +```csharp +public ExportTemplateSavingNotification(ExportTemplate exportTemplate) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/exporttemplateupdatednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/exporttemplateupdatednotification.md new file mode 100644 index 00000000000..bdf0be2da82 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/exporttemplateupdatednotification.md @@ -0,0 +1,28 @@ +--- +title: ExportTemplateUpdatedNotification +description: API reference for ExportTemplateUpdatedNotification in Umbraco Commerce +--- +## ExportTemplateUpdatedNotification + +```csharp +public class ExportTemplateUpdatedNotification : + ExportTemplateNotificationEventBase +``` + +**Inheritance** + +* Class [ExportTemplateNotificationEventBase<TEntity>](exporttemplatenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### ExportTemplateUpdatedNotification + +```csharp +public ExportTemplateUpdatedNotification(ExportTemplateReadOnly exportTemplate) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/exporttemplateupdatingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/exporttemplateupdatingnotification.md new file mode 100644 index 00000000000..c03515e888e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/exporttemplateupdatingnotification.md @@ -0,0 +1,28 @@ +--- +title: ExportTemplateUpdatingNotification +description: API reference for ExportTemplateUpdatingNotification in Umbraco Commerce +--- +## ExportTemplateUpdatingNotification + +```csharp +public class ExportTemplateUpdatingNotification : + ExportTemplateNotificationEventBase +``` + +**Inheritance** + +* Class [ExportTemplateNotificationEventBase<TEntity>](exporttemplatenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### ExportTemplateUpdatingNotification + +```csharp +public ExportTemplateUpdatingNotification(ExportTemplate exportTemplate) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/frozenpricesthawednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/frozenpricesthawednotification.md new file mode 100644 index 00000000000..2130b3842a2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/frozenpricesthawednotification.md @@ -0,0 +1,36 @@ +--- +title: FrozenPricesThawedNotification +description: API reference for FrozenPricesThawedNotification in Umbraco Commerce +--- +## FrozenPricesThawedNotification + +```csharp +public class FrozenPricesThawedNotification : NotificationEventBase +``` + +**Inheritance** + +* Class [NotificationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/notificationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### FrozenPricesThawedNotification + +```csharp +public FrozenPricesThawedNotification(IReadOnlyCollection prices) +``` + + +### Properties + +#### Prices + +```csharp +public IReadOnlyCollection Prices { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/frozenpricesthawingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/frozenpricesthawingnotification.md new file mode 100644 index 00000000000..5f9c5b41aab --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/frozenpricesthawingnotification.md @@ -0,0 +1,36 @@ +--- +title: FrozenPricesThawingNotification +description: API reference for FrozenPricesThawingNotification in Umbraco Commerce +--- +## FrozenPricesThawingNotification + +```csharp +public class FrozenPricesThawingNotification : NotificationEventBase +``` + +**Inheritance** + +* Class [NotificationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/notificationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### FrozenPricesThawingNotification + +```csharp +public FrozenPricesThawingNotification(IReadOnlyCollection prices) +``` + + +### Properties + +#### Prices + +```csharp +public IReadOnlyCollection Prices { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/giftcardcreatednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/giftcardcreatednotification.md new file mode 100644 index 00000000000..7adf5954f61 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/giftcardcreatednotification.md @@ -0,0 +1,27 @@ +--- +title: GiftCardCreatedNotification +description: API reference for GiftCardCreatedNotification in Umbraco Commerce +--- +## GiftCardCreatedNotification + +```csharp +public class GiftCardCreatedNotification : GiftCardNotificationEventBase +``` + +**Inheritance** + +* Class [GiftCardNotificationEventBase<TEntity>](giftcardnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### GiftCardCreatedNotification + +```csharp +public GiftCardCreatedNotification(GiftCardReadOnly giftCard) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/giftcardcreatingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/giftcardcreatingnotification.md new file mode 100644 index 00000000000..7a6d03fb389 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/giftcardcreatingnotification.md @@ -0,0 +1,27 @@ +--- +title: GiftCardCreatingNotification +description: API reference for GiftCardCreatingNotification in Umbraco Commerce +--- +## GiftCardCreatingNotification + +```csharp +public class GiftCardCreatingNotification : GiftCardNotificationEventBase +``` + +**Inheritance** + +* Class [GiftCardNotificationEventBase<TEntity>](giftcardnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### GiftCardCreatingNotification + +```csharp +public GiftCardCreatingNotification(GiftCard giftCard) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/giftcarddeletednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/giftcarddeletednotification.md new file mode 100644 index 00000000000..62a38a3748d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/giftcarddeletednotification.md @@ -0,0 +1,27 @@ +--- +title: GiftCardDeletedNotification +description: API reference for GiftCardDeletedNotification in Umbraco Commerce +--- +## GiftCardDeletedNotification + +```csharp +public class GiftCardDeletedNotification : GiftCardNotificationEventBase +``` + +**Inheritance** + +* Class [GiftCardNotificationEventBase<TEntity>](giftcardnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### GiftCardDeletedNotification + +```csharp +public GiftCardDeletedNotification(GiftCardReadOnly giftCard) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/giftcarddeletingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/giftcarddeletingnotification.md new file mode 100644 index 00000000000..802f34956ea --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/giftcarddeletingnotification.md @@ -0,0 +1,27 @@ +--- +title: GiftCardDeletingNotification +description: API reference for GiftCardDeletingNotification in Umbraco Commerce +--- +## GiftCardDeletingNotification + +```csharp +public class GiftCardDeletingNotification : GiftCardNotificationEventBase +``` + +**Inheritance** + +* Class [GiftCardNotificationEventBase<TEntity>](giftcardnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### GiftCardDeletingNotification + +```csharp +public GiftCardDeletingNotification(GiftCardReadOnly giftCard) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/giftcardnotificationeventbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/giftcardnotificationeventbase-1.md new file mode 100644 index 00000000000..213fee8142d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/giftcardnotificationeventbase-1.md @@ -0,0 +1,37 @@ +--- +title: GiftCardNotificationEventBase +description: API reference for GiftCardNotificationEventBase in Umbraco Commerce +--- +## GiftCardNotificationEventBase<TEntity> + +```csharp +public abstract class GiftCardNotificationEventBase : NotificationEventBase + where TEntity : GiftCardReadOnly +``` + +**Inheritance** + +* Class [NotificationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/notificationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### GiftCardNotificationEventBase<TEntity> + +```csharp +public GiftCardNotificationEventBase(TEntity giftCard) +``` + + +### Properties + +#### GiftCard + +```csharp +public TEntity GiftCard { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/giftcardsavednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/giftcardsavednotification.md new file mode 100644 index 00000000000..12afc0f9266 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/giftcardsavednotification.md @@ -0,0 +1,27 @@ +--- +title: GiftCardSavedNotification +description: API reference for GiftCardSavedNotification in Umbraco Commerce +--- +## GiftCardSavedNotification + +```csharp +public class GiftCardSavedNotification : GiftCardNotificationEventBase +``` + +**Inheritance** + +* Class [GiftCardNotificationEventBase<TEntity>](giftcardnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### GiftCardSavedNotification + +```csharp +public GiftCardSavedNotification(GiftCardReadOnly giftCard) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/giftcardsavingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/giftcardsavingnotification.md new file mode 100644 index 00000000000..b5c02e03799 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/giftcardsavingnotification.md @@ -0,0 +1,27 @@ +--- +title: GiftCardSavingNotification +description: API reference for GiftCardSavingNotification in Umbraco Commerce +--- +## GiftCardSavingNotification + +```csharp +public class GiftCardSavingNotification : GiftCardNotificationEventBase +``` + +**Inheritance** + +* Class [GiftCardNotificationEventBase<TEntity>](giftcardnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### GiftCardSavingNotification + +```csharp +public GiftCardSavingNotification(GiftCard giftCard) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/giftcardupdatednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/giftcardupdatednotification.md new file mode 100644 index 00000000000..33872361f5a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/giftcardupdatednotification.md @@ -0,0 +1,27 @@ +--- +title: GiftCardUpdatedNotification +description: API reference for GiftCardUpdatedNotification in Umbraco Commerce +--- +## GiftCardUpdatedNotification + +```csharp +public class GiftCardUpdatedNotification : GiftCardNotificationEventBase +``` + +**Inheritance** + +* Class [GiftCardNotificationEventBase<TEntity>](giftcardnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### GiftCardUpdatedNotification + +```csharp +public GiftCardUpdatedNotification(GiftCardReadOnly giftCard) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/giftcardupdatingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/giftcardupdatingnotification.md new file mode 100644 index 00000000000..6cbf9f8740c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/giftcardupdatingnotification.md @@ -0,0 +1,27 @@ +--- +title: GiftCardUpdatingNotification +description: API reference for GiftCardUpdatingNotification in Umbraco Commerce +--- +## GiftCardUpdatingNotification + +```csharp +public class GiftCardUpdatingNotification : GiftCardNotificationEventBase +``` + +**Inheritance** + +* Class [GiftCardNotificationEventBase<TEntity>](giftcardnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### GiftCardUpdatingNotification + +```csharp +public GiftCardUpdatingNotification(GiftCard giftCard) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderassignedtocustomernotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderassignedtocustomernotification.md new file mode 100644 index 00000000000..0f744855f4f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderassignedtocustomernotification.md @@ -0,0 +1,29 @@ +--- +title: OrderAssignedToCustomerNotification +description: API reference for OrderAssignedToCustomerNotification in Umbraco Commerce +--- +## OrderAssignedToCustomerNotification + +```csharp +public class OrderAssignedToCustomerNotification : + OrderAssignToCustomerNotificationBase +``` + +**Inheritance** + +* Class [OrderAssignToCustomerNotificationBase<TEntity>](orderassigntocustomernotificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderAssignedToCustomerNotification + +```csharp +public OrderAssignedToCustomerNotification(OrderReadOnly order, + ChangingValue customerReference) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderassigningtocustomernotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderassigningtocustomernotification.md new file mode 100644 index 00000000000..0e1a60d6d7b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderassigningtocustomernotification.md @@ -0,0 +1,27 @@ +--- +title: OrderAssigningToCustomerNotification +description: API reference for OrderAssigningToCustomerNotification in Umbraco Commerce +--- +## OrderAssigningToCustomerNotification + +```csharp +public class OrderAssigningToCustomerNotification : OrderAssignToCustomerNotificationBase +``` + +**Inheritance** + +* Class [OrderAssignToCustomerNotificationBase<TEntity>](orderassigntocustomernotificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderAssigningToCustomerNotification + +```csharp +public OrderAssigningToCustomerNotification(Order order, ChangingValue customerReference) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderassigntocustomernotificationbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderassigntocustomernotificationbase-1.md new file mode 100644 index 00000000000..5b53905a6c1 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderassigntocustomernotificationbase-1.md @@ -0,0 +1,38 @@ +--- +title: OrderAssignToCustomerNotificationBase +description: API reference for OrderAssignToCustomerNotificationBase in Umbraco Commerce +--- +## OrderAssignToCustomerNotificationBase<TEntity> + +```csharp +public abstract class OrderAssignToCustomerNotificationBase : + OrderNotificationEventBase + where TEntity : OrderReadOnly +``` + +**Inheritance** + +* Class [OrderNotificationEventBase<TOrder>](ordernotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderAssignToCustomerNotificationBase<TEntity> + +```csharp +public OrderAssignToCustomerNotificationBase(TEntity order, ChangingValue customerReference) +``` + + +### Properties + +#### CustomerReference + +```csharp +public ChangingValue CustomerReference { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordercodenotificationbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordercodenotificationbase-1.md new file mode 100644 index 00000000000..cfbf9c80d1f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordercodenotificationbase-1.md @@ -0,0 +1,37 @@ +--- +title: OrderCodeNotificationBase +description: API reference for OrderCodeNotificationBase in Umbraco Commerce +--- +## OrderCodeNotificationBase<TEntity> + +```csharp +public abstract class OrderCodeNotificationBase : OrderNotificationEventBase + where TEntity : OrderReadOnly +``` + +**Inheritance** + +* Class [OrderNotificationEventBase<TOrder>](ordernotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderCodeNotificationBase<TEntity> + +```csharp +public OrderCodeNotificationBase(TEntity order, string code) +``` + + +### Properties + +#### Code + +```csharp +public string Code { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordercreatednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordercreatednotification.md new file mode 100644 index 00000000000..157bd80681a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordercreatednotification.md @@ -0,0 +1,27 @@ +--- +title: OrderCreatedNotification +description: API reference for OrderCreatedNotification in Umbraco Commerce +--- +## OrderCreatedNotification + +```csharp +public class OrderCreatedNotification : OrderNotificationEventBase +``` + +**Inheritance** + +* Class [OrderNotificationEventBase<TOrder>](ordernotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderCreatedNotification + +```csharp +public OrderCreatedNotification(OrderReadOnly order) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordercreatingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordercreatingnotification.md new file mode 100644 index 00000000000..1e89d441505 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordercreatingnotification.md @@ -0,0 +1,27 @@ +--- +title: OrderCreatingNotification +description: API reference for OrderCreatingNotification in Umbraco Commerce +--- +## OrderCreatingNotification + +```csharp +public class OrderCreatingNotification : OrderNotificationEventBase +``` + +**Inheritance** + +* Class [OrderNotificationEventBase<TOrder>](ordernotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderCreatingNotification + +```csharp +public OrderCreatingNotification(Order order) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordercurrencychangednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordercurrencychangednotification.md new file mode 100644 index 00000000000..bba6e46cca6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordercurrencychangednotification.md @@ -0,0 +1,27 @@ +--- +title: OrderCurrencyChangedNotification +description: API reference for OrderCurrencyChangedNotification in Umbraco Commerce +--- +## OrderCurrencyChangedNotification + +```csharp +public class OrderCurrencyChangedNotification : OrderCurrencyChangeNotificationBase +``` + +**Inheritance** + +* Class [OrderCurrencyChangeNotificationBase<TEntity>](ordercurrencychangenotificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderCurrencyChangedNotification + +```csharp +public OrderCurrencyChangedNotification(OrderReadOnly order, ChangingValue currencyId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordercurrencychangenotificationbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordercurrencychangenotificationbase-1.md new file mode 100644 index 00000000000..b8be34f6580 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordercurrencychangenotificationbase-1.md @@ -0,0 +1,38 @@ +--- +title: OrderCurrencyChangeNotificationBase +description: API reference for OrderCurrencyChangeNotificationBase in Umbraco Commerce +--- +## OrderCurrencyChangeNotificationBase<TEntity> + +```csharp +public abstract class OrderCurrencyChangeNotificationBase : + OrderNotificationEventBase + where TEntity : OrderReadOnly +``` + +**Inheritance** + +* Class [OrderNotificationEventBase<TOrder>](ordernotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderCurrencyChangeNotificationBase<TEntity> + +```csharp +public OrderCurrencyChangeNotificationBase(TEntity order, ChangingValue currencyId) +``` + + +### Properties + +#### CurrencyId + +```csharp +public ChangingValue CurrencyId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordercurrencychangingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordercurrencychangingnotification.md new file mode 100644 index 00000000000..424d808af05 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordercurrencychangingnotification.md @@ -0,0 +1,27 @@ +--- +title: OrderCurrencyChangingNotification +description: API reference for OrderCurrencyChangingNotification in Umbraco Commerce +--- +## OrderCurrencyChangingNotification + +```csharp +public class OrderCurrencyChangingNotification : OrderCurrencyChangeNotificationBase +``` + +**Inheritance** + +* Class [OrderCurrencyChangeNotificationBase<TEntity>](ordercurrencychangenotificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderCurrencyChangingNotification + +```csharp +public OrderCurrencyChangingNotification(Order order, ChangingValue currencyId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderdeletednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderdeletednotification.md new file mode 100644 index 00000000000..688d85d2adf --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderdeletednotification.md @@ -0,0 +1,27 @@ +--- +title: OrderDeletedNotification +description: API reference for OrderDeletedNotification in Umbraco Commerce +--- +## OrderDeletedNotification + +```csharp +public class OrderDeletedNotification : OrderNotificationEventBase +``` + +**Inheritance** + +* Class [OrderNotificationEventBase<TOrder>](ordernotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderDeletedNotification + +```csharp +public OrderDeletedNotification(OrderReadOnly order) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderdeletingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderdeletingnotification.md new file mode 100644 index 00000000000..8132a17d641 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderdeletingnotification.md @@ -0,0 +1,27 @@ +--- +title: OrderDeletingNotification +description: API reference for OrderDeletingNotification in Umbraco Commerce +--- +## OrderDeletingNotification + +```csharp +public class OrderDeletingNotification : OrderNotificationEventBase +``` + +**Inheritance** + +* Class [OrderNotificationEventBase<TOrder>](ordernotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderDeletingNotification + +```csharp +public OrderDeletingNotification(OrderReadOnly order) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderdiscountcoderedeemednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderdiscountcoderedeemednotification.md new file mode 100644 index 00000000000..b4350754f96 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderdiscountcoderedeemednotification.md @@ -0,0 +1,27 @@ +--- +title: OrderDiscountCodeRedeemedNotification +description: API reference for OrderDiscountCodeRedeemedNotification in Umbraco Commerce +--- +## OrderDiscountCodeRedeemedNotification + +```csharp +public class OrderDiscountCodeRedeemedNotification : OrderCodeNotificationBase +``` + +**Inheritance** + +* Class [OrderCodeNotificationBase<TEntity>](ordercodenotificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderDiscountCodeRedeemedNotification + +```csharp +public OrderDiscountCodeRedeemedNotification(OrderReadOnly order, string code) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderdiscountcoderedeemingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderdiscountcoderedeemingnotification.md new file mode 100644 index 00000000000..9efcdfaeecf --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderdiscountcoderedeemingnotification.md @@ -0,0 +1,27 @@ +--- +title: OrderDiscountCodeRedeemingNotification +description: API reference for OrderDiscountCodeRedeemingNotification in Umbraco Commerce +--- +## OrderDiscountCodeRedeemingNotification + +```csharp +public class OrderDiscountCodeRedeemingNotification : OrderCodeNotificationBase +``` + +**Inheritance** + +* Class [OrderCodeNotificationBase<TEntity>](ordercodenotificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderDiscountCodeRedeemingNotification + +```csharp +public OrderDiscountCodeRedeemingNotification(Order order, string code) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderdiscountcodeunredeemednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderdiscountcodeunredeemednotification.md new file mode 100644 index 00000000000..c5201f8e323 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderdiscountcodeunredeemednotification.md @@ -0,0 +1,27 @@ +--- +title: OrderDiscountCodeUnredeemedNotification +description: API reference for OrderDiscountCodeUnredeemedNotification in Umbraco Commerce +--- +## OrderDiscountCodeUnredeemedNotification + +```csharp +public class OrderDiscountCodeUnredeemedNotification : OrderCodeNotificationBase +``` + +**Inheritance** + +* Class [OrderCodeNotificationBase<TEntity>](ordercodenotificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderDiscountCodeUnredeemedNotification + +```csharp +public OrderDiscountCodeUnredeemedNotification(OrderReadOnly order, string code) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderdiscountcodeunredeemingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderdiscountcodeunredeemingnotification.md new file mode 100644 index 00000000000..160a0926f0c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderdiscountcodeunredeemingnotification.md @@ -0,0 +1,27 @@ +--- +title: OrderDiscountCodeUnredeemingNotification +description: API reference for OrderDiscountCodeUnredeemingNotification in Umbraco Commerce +--- +## OrderDiscountCodeUnredeemingNotification + +```csharp +public class OrderDiscountCodeUnredeemingNotification : OrderCodeNotificationBase +``` + +**Inheritance** + +* Class [OrderCodeNotificationBase<TEntity>](ordercodenotificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderDiscountCodeUnredeemingNotification + +```csharp +public OrderDiscountCodeUnredeemingNotification(Order order, string code) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderfinalizednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderfinalizednotification.md new file mode 100644 index 00000000000..3913b211b3b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderfinalizednotification.md @@ -0,0 +1,27 @@ +--- +title: OrderFinalizedNotification +description: API reference for OrderFinalizedNotification in Umbraco Commerce +--- +## OrderFinalizedNotification + +```csharp +public class OrderFinalizedNotification : OrderNotificationEventBase +``` + +**Inheritance** + +* Class [OrderNotificationEventBase<TOrder>](ordernotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderFinalizedNotification + +```csharp +public OrderFinalizedNotification(OrderReadOnly order) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderfinalizingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderfinalizingnotification.md new file mode 100644 index 00000000000..70a9c8419a2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderfinalizingnotification.md @@ -0,0 +1,27 @@ +--- +title: OrderFinalizingNotification +description: API reference for OrderFinalizingNotification in Umbraco Commerce +--- +## OrderFinalizingNotification + +```csharp +public class OrderFinalizingNotification : OrderNotificationEventBase +``` + +**Inheritance** + +* Class [OrderNotificationEventBase<TOrder>](ordernotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderFinalizingNotification + +```csharp +public OrderFinalizingNotification(Order order) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordergiftcardredeemednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordergiftcardredeemednotification.md new file mode 100644 index 00000000000..fedefeff7bd --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordergiftcardredeemednotification.md @@ -0,0 +1,27 @@ +--- +title: OrderGiftCardRedeemedNotification +description: API reference for OrderGiftCardRedeemedNotification in Umbraco Commerce +--- +## OrderGiftCardRedeemedNotification + +```csharp +public class OrderGiftCardRedeemedNotification : OrderCodeNotificationBase +``` + +**Inheritance** + +* Class [OrderCodeNotificationBase<TEntity>](ordercodenotificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderGiftCardRedeemedNotification + +```csharp +public OrderGiftCardRedeemedNotification(OrderReadOnly order, string code) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordergiftcardredeemingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordergiftcardredeemingnotification.md new file mode 100644 index 00000000000..bbda1dd17b0 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordergiftcardredeemingnotification.md @@ -0,0 +1,27 @@ +--- +title: OrderGiftCardRedeemingNotification +description: API reference for OrderGiftCardRedeemingNotification in Umbraco Commerce +--- +## OrderGiftCardRedeemingNotification + +```csharp +public class OrderGiftCardRedeemingNotification : OrderCodeNotificationBase +``` + +**Inheritance** + +* Class [OrderCodeNotificationBase<TEntity>](ordercodenotificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderGiftCardRedeemingNotification + +```csharp +public OrderGiftCardRedeemingNotification(Order order, string code) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordergiftcardunredeemednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordergiftcardunredeemednotification.md new file mode 100644 index 00000000000..b2a851c2e45 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordergiftcardunredeemednotification.md @@ -0,0 +1,27 @@ +--- +title: OrderGiftCardUnredeemedNotification +description: API reference for OrderGiftCardUnredeemedNotification in Umbraco Commerce +--- +## OrderGiftCardUnredeemedNotification + +```csharp +public class OrderGiftCardUnredeemedNotification : OrderCodeNotificationBase +``` + +**Inheritance** + +* Class [OrderCodeNotificationBase<TEntity>](ordercodenotificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderGiftCardUnredeemedNotification + +```csharp +public OrderGiftCardUnredeemedNotification(OrderReadOnly order, string code) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordergiftcardunredeemingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordergiftcardunredeemingnotification.md new file mode 100644 index 00000000000..f1f8706b8cf --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordergiftcardunredeemingnotification.md @@ -0,0 +1,27 @@ +--- +title: OrderGiftCardUnredeemingNotification +description: API reference for OrderGiftCardUnredeemingNotification in Umbraco Commerce +--- +## OrderGiftCardUnredeemingNotification + +```csharp +public class OrderGiftCardUnredeemingNotification : OrderCodeNotificationBase +``` + +**Inheritance** + +* Class [OrderCodeNotificationBase<TEntity>](ordercodenotificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderGiftCardUnredeemingNotification + +```csharp +public OrderGiftCardUnredeemingNotification(Order order, string code) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderlanguagechangednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderlanguagechangednotification.md new file mode 100644 index 00000000000..12a743195da --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderlanguagechangednotification.md @@ -0,0 +1,27 @@ +--- +title: OrderLanguageChangedNotification +description: API reference for OrderLanguageChangedNotification in Umbraco Commerce +--- +## OrderLanguageChangedNotification + +```csharp +public class OrderLanguageChangedNotification : OrderLanguageChangeNotificationBase +``` + +**Inheritance** + +* Class [OrderLanguageChangeNotificationBase<TEntity>](orderlanguagechangenotificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderLanguageChangedNotification + +```csharp +public OrderLanguageChangedNotification(OrderReadOnly order, ChangingValue languageIsoCode) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderlanguagechangenotificationbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderlanguagechangenotificationbase-1.md new file mode 100644 index 00000000000..81681579b62 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderlanguagechangenotificationbase-1.md @@ -0,0 +1,38 @@ +--- +title: OrderLanguageChangeNotificationBase +description: API reference for OrderLanguageChangeNotificationBase in Umbraco Commerce +--- +## OrderLanguageChangeNotificationBase<TEntity> + +```csharp +public abstract class OrderLanguageChangeNotificationBase : + OrderNotificationEventBase + where TEntity : OrderReadOnly +``` + +**Inheritance** + +* Class [OrderNotificationEventBase<TOrder>](ordernotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderLanguageChangeNotificationBase<TEntity> + +```csharp +public OrderLanguageChangeNotificationBase(TEntity order, ChangingValue languageIsoCode) +``` + + +### Properties + +#### LanguageIsoCode + +```csharp +public ChangingValue LanguageIsoCode { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderlanguagechangingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderlanguagechangingnotification.md new file mode 100644 index 00000000000..e362b6e43b9 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderlanguagechangingnotification.md @@ -0,0 +1,27 @@ +--- +title: OrderLanguageChangingNotification +description: API reference for OrderLanguageChangingNotification in Umbraco Commerce +--- +## OrderLanguageChangingNotification + +```csharp +public class OrderLanguageChangingNotification : OrderLanguageChangeNotificationBase +``` + +**Inheritance** + +* Class [OrderLanguageChangeNotificationBase<TEntity>](orderlanguagechangenotificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderLanguageChangingNotification + +```csharp +public OrderLanguageChangingNotification(Order order, ChangingValue languageIsoCode) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderlineaddednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderlineaddednotification.md new file mode 100644 index 00000000000..9e626b76ffb --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderlineaddednotification.md @@ -0,0 +1,27 @@ +--- +title: OrderLineAddedNotification +description: API reference for OrderLineAddedNotification in Umbraco Commerce +--- +## OrderLineAddedNotification + +```csharp +public class OrderLineAddedNotification : OrderLineAddNotification +``` + +**Inheritance** + +* Class [OrderLineAddNotification<TEntity>](orderlineaddnotification-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderLineAddedNotification + +```csharp +public OrderLineAddedNotification(OrderReadOnly order, OrderLineReadOnly orderLine) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderlineaddingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderlineaddingnotification.md new file mode 100644 index 00000000000..95402de3107 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderlineaddingnotification.md @@ -0,0 +1,27 @@ +--- +title: OrderLineAddingNotification +description: API reference for OrderLineAddingNotification in Umbraco Commerce +--- +## OrderLineAddingNotification + +```csharp +public class OrderLineAddingNotification : OrderLineAddNotification +``` + +**Inheritance** + +* Class [OrderLineAddNotification<TEntity>](orderlineaddnotification-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderLineAddingNotification + +```csharp +public OrderLineAddingNotification(Order order, OrderLineReadOnly orderLine) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderlineaddnotification-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderlineaddnotification-1.md new file mode 100644 index 00000000000..b4fc8384c2a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderlineaddnotification-1.md @@ -0,0 +1,47 @@ +--- +title: OrderLineAddNotification +description: API reference for OrderLineAddNotification in Umbraco Commerce +--- +## OrderLineAddNotification<TEntity> + +```csharp +public class OrderLineAddNotification : OrderNotificationEventBase, IHasEventKey + where TEntity : OrderReadOnly +``` + +**Inheritance** + +* Class [OrderNotificationEventBase<TOrder>](ordernotificationeventbase-1.md) +* interface [IHasEventKey](../../umbraco-commerce-common/umbraco-commerce-common-events/ihaseventkey.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderLineAddNotification<TEntity> + +```csharp +public OrderLineAddNotification(TEntity order, OrderLineReadOnly orderLine) +``` + + +### Properties + +#### Key + +```csharp +public string Key { get; } +``` + + +--- + +#### OrderLine + +```csharp +public OrderLineReadOnly OrderLine { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderlinechangednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderlinechangednotification.md new file mode 100644 index 00000000000..96d054d8a93 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderlinechangednotification.md @@ -0,0 +1,29 @@ +--- +title: OrderLineChangedNotification +description: API reference for OrderLineChangedNotification in Umbraco Commerce +--- +## OrderLineChangedNotification + +```csharp +public class OrderLineChangedNotification : OrderLineChangeNotification +``` + +**Inheritance** + +* Class [OrderLineChangeNotification<TEntity>](orderlinechangenotification-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderLineChangedNotification + +```csharp +public OrderLineChangedNotification(OrderReadOnly order, OrderLineReadOnly orderLine, + ChangingValue taxClassId, ChangingValue quantity, + DictionaryDiff properties) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderlinechangenotification-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderlinechangenotification-1.md new file mode 100644 index 00000000000..689ff9c8fcb --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderlinechangenotification-1.md @@ -0,0 +1,77 @@ +--- +title: OrderLineChangeNotification +description: API reference for OrderLineChangeNotification in Umbraco Commerce +--- +## OrderLineChangeNotification<TEntity> + +```csharp +public class OrderLineChangeNotification : OrderNotificationEventBase, + IHasEventKey + where TEntity : OrderReadOnly +``` + +**Inheritance** + +* Class [OrderNotificationEventBase<TOrder>](ordernotificationeventbase-1.md) +* interface [IHasEventKey](../../umbraco-commerce-common/umbraco-commerce-common-events/ihaseventkey.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderLineChangeNotification<TEntity> + +```csharp +public OrderLineChangeNotification(TEntity order, OrderLineReadOnly orderLine, + ChangingValue taxClassId, ChangingValue quantity, + DictionaryDiff properties) +``` + + +### Properties + +#### Key + +```csharp +public string Key { get; } +``` + + +--- + +#### OrderLine + +```csharp +public OrderLineReadOnly OrderLine { get; } +``` + + +--- + +#### Properties + +```csharp +public DictionaryDiff Properties { get; } +``` + + +--- + +#### Quantity + +```csharp +public ChangingValue Quantity { get; } +``` + + +--- + +#### TaxClassId + +```csharp +public ChangingValue TaxClassId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderlinechangingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderlinechangingnotification.md new file mode 100644 index 00000000000..9d0c0595e5f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderlinechangingnotification.md @@ -0,0 +1,29 @@ +--- +title: OrderLineChangingNotification +description: API reference for OrderLineChangingNotification in Umbraco Commerce +--- +## OrderLineChangingNotification + +```csharp +public class OrderLineChangingNotification : OrderLineChangeNotification +``` + +**Inheritance** + +* Class [OrderLineChangeNotification<TEntity>](orderlinechangenotification-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderLineChangingNotification + +```csharp +public OrderLineChangingNotification(Order order, OrderLineReadOnly orderLine, + ChangingValue taxClassId, ChangingValue quantity, + DictionaryDiff properties) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderlineremovednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderlineremovednotification.md new file mode 100644 index 00000000000..82b11479120 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderlineremovednotification.md @@ -0,0 +1,27 @@ +--- +title: OrderLineRemovedNotification +description: API reference for OrderLineRemovedNotification in Umbraco Commerce +--- +## OrderLineRemovedNotification + +```csharp +public class OrderLineRemovedNotification : OrderLineRemoveNotification +``` + +**Inheritance** + +* Class [OrderLineRemoveNotification<TEntity>](orderlineremovenotification-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderLineRemovedNotification + +```csharp +public OrderLineRemovedNotification(OrderReadOnly order, OrderLineReadOnly orderLine) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderlineremovenotification-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderlineremovenotification-1.md new file mode 100644 index 00000000000..06419463376 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderlineremovenotification-1.md @@ -0,0 +1,48 @@ +--- +title: OrderLineRemoveNotification +description: API reference for OrderLineRemoveNotification in Umbraco Commerce +--- +## OrderLineRemoveNotification<TEntity> + +```csharp +public class OrderLineRemoveNotification : OrderNotificationEventBase, + IHasEventKey + where TEntity : OrderReadOnly +``` + +**Inheritance** + +* Class [OrderNotificationEventBase<TOrder>](ordernotificationeventbase-1.md) +* interface [IHasEventKey](../../umbraco-commerce-common/umbraco-commerce-common-events/ihaseventkey.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderLineRemoveNotification<TEntity> + +```csharp +public OrderLineRemoveNotification(TEntity order, OrderLineReadOnly orderLine) +``` + + +### Properties + +#### Key + +```csharp +public string Key { get; } +``` + + +--- + +#### OrderLine + +```csharp +public OrderLineReadOnly OrderLine { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderlineremovingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderlineremovingnotification.md new file mode 100644 index 00000000000..089071ced29 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderlineremovingnotification.md @@ -0,0 +1,27 @@ +--- +title: OrderLineRemovingNotification +description: API reference for OrderLineRemovingNotification in Umbraco Commerce +--- +## OrderLineRemovingNotification + +```csharp +public class OrderLineRemovingNotification : OrderLineRemoveNotification +``` + +**Inheritance** + +* Class [OrderLineRemoveNotification<TEntity>](orderlineremovenotification-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderLineRemovingNotification + +```csharp +public OrderLineRemovingNotification(Order order, OrderLineReadOnly orderLine) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordernotificationeventbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordernotificationeventbase-1.md new file mode 100644 index 00000000000..498ae534c32 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordernotificationeventbase-1.md @@ -0,0 +1,37 @@ +--- +title: OrderNotificationEventBase +description: API reference for OrderNotificationEventBase in Umbraco Commerce +--- +## OrderNotificationEventBase<TOrder> + +```csharp +public abstract class OrderNotificationEventBase : NotificationEventBase + where TOrder : OrderReadOnly +``` + +**Inheritance** + +* Class [NotificationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/notificationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderNotificationEventBase<TOrder> + +```csharp +public OrderNotificationEventBase(TOrder order) +``` + + +### Properties + +#### Order + +```csharp +public TOrder Order { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderpaymentcountryregionchangednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderpaymentcountryregionchangednotification.md new file mode 100644 index 00000000000..9090480157f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderpaymentcountryregionchangednotification.md @@ -0,0 +1,29 @@ +--- +title: OrderPaymentCountryRegionChangedNotification +description: API reference for OrderPaymentCountryRegionChangedNotification in Umbraco Commerce +--- +## OrderPaymentCountryRegionChangedNotification + +```csharp +public class OrderPaymentCountryRegionChangedNotification : + OrderPaymentCountryRegionChangeNotificationBase +``` + +**Inheritance** + +* Class [OrderPaymentCountryRegionChangeNotificationBase<TEntity>](orderpaymentcountryregionchangenotificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderPaymentCountryRegionChangedNotification + +```csharp +public OrderPaymentCountryRegionChangedNotification(OrderReadOnly order, + ChangingValue countryId, ChangingValue regionId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderpaymentcountryregionchangenotificationbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderpaymentcountryregionchangenotificationbase-1.md new file mode 100644 index 00000000000..929c5f3dd00 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderpaymentcountryregionchangenotificationbase-1.md @@ -0,0 +1,48 @@ +--- +title: OrderPaymentCountryRegionChangeNotificationBase +description: API reference for OrderPaymentCountryRegionChangeNotificationBase in Umbraco Commerce +--- +## OrderPaymentCountryRegionChangeNotificationBase<TEntity> + +```csharp +public abstract class OrderPaymentCountryRegionChangeNotificationBase : + OrderNotificationEventBase + where TEntity : OrderReadOnly +``` + +**Inheritance** + +* Class [OrderNotificationEventBase<TOrder>](ordernotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderPaymentCountryRegionChangeNotificationBase<TEntity> + +```csharp +public OrderPaymentCountryRegionChangeNotificationBase(TEntity order, + ChangingValue countryId, ChangingValue regionId) +``` + + +### Properties + +#### CountryId + +```csharp +public ChangingValue CountryId { get; } +``` + + +--- + +#### RegionId + +```csharp +public ChangingValue RegionId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderpaymentcountryregionchangingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderpaymentcountryregionchangingnotification.md new file mode 100644 index 00000000000..e103367d693 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderpaymentcountryregionchangingnotification.md @@ -0,0 +1,29 @@ +--- +title: OrderPaymentCountryRegionChangingNotification +description: API reference for OrderPaymentCountryRegionChangingNotification in Umbraco Commerce +--- +## OrderPaymentCountryRegionChangingNotification + +```csharp +public class OrderPaymentCountryRegionChangingNotification : + OrderPaymentCountryRegionChangeNotificationBase +``` + +**Inheritance** + +* Class [OrderPaymentCountryRegionChangeNotificationBase<TEntity>](orderpaymentcountryregionchangenotificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderPaymentCountryRegionChangingNotification + +```csharp +public OrderPaymentCountryRegionChangingNotification(Order order, ChangingValue countryId, + ChangingValue regionId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderpaymentmethodchangednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderpaymentmethodchangednotification.md new file mode 100644 index 00000000000..a4c2a297bae --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderpaymentmethodchangednotification.md @@ -0,0 +1,29 @@ +--- +title: OrderPaymentMethodChangedNotification +description: API reference for OrderPaymentMethodChangedNotification in Umbraco Commerce +--- +## OrderPaymentMethodChangedNotification + +```csharp +public class OrderPaymentMethodChangedNotification : + OrderPaymentMethodChangeNotificationBase +``` + +**Inheritance** + +* Class [OrderPaymentMethodChangeNotificationBase<TEntity>](orderpaymentmethodchangenotificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderPaymentMethodChangedNotification + +```csharp +public OrderPaymentMethodChangedNotification(OrderReadOnly order, + ChangingValue paymentMethodId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderpaymentmethodchangenotificationbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderpaymentmethodchangenotificationbase-1.md new file mode 100644 index 00000000000..ad6bb519143 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderpaymentmethodchangenotificationbase-1.md @@ -0,0 +1,38 @@ +--- +title: OrderPaymentMethodChangeNotificationBase +description: API reference for OrderPaymentMethodChangeNotificationBase in Umbraco Commerce +--- +## OrderPaymentMethodChangeNotificationBase<TEntity> + +```csharp +public abstract class OrderPaymentMethodChangeNotificationBase : + OrderNotificationEventBase + where TEntity : OrderReadOnly +``` + +**Inheritance** + +* Class [OrderNotificationEventBase<TOrder>](ordernotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderPaymentMethodChangeNotificationBase<TEntity> + +```csharp +public OrderPaymentMethodChangeNotificationBase(TEntity order, ChangingValue paymentMethodId) +``` + + +### Properties + +#### PaymentMethodId + +```csharp +public ChangingValue PaymentMethodId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderpaymentmethodchangingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderpaymentmethodchangingnotification.md new file mode 100644 index 00000000000..74842a87e62 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderpaymentmethodchangingnotification.md @@ -0,0 +1,28 @@ +--- +title: OrderPaymentMethodChangingNotification +description: API reference for OrderPaymentMethodChangingNotification in Umbraco Commerce +--- +## OrderPaymentMethodChangingNotification + +```csharp +public class OrderPaymentMethodChangingNotification : + OrderPaymentMethodChangeNotificationBase +``` + +**Inheritance** + +* Class [OrderPaymentMethodChangeNotificationBase<TEntity>](orderpaymentmethodchangenotificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderPaymentMethodChangingNotification + +```csharp +public OrderPaymentMethodChangingNotification(Order order, ChangingValue paymentMethodId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderproductaddednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderproductaddednotification.md new file mode 100644 index 00000000000..cfb502bf2b8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderproductaddednotification.md @@ -0,0 +1,38 @@ +--- +title: OrderProductAddedNotification +description: API reference for OrderProductAddedNotification in Umbraco Commerce +--- +## OrderProductAddedNotification + +```csharp +public class OrderProductAddedNotification : OrderProductAddNotificationBase +``` + +**Inheritance** + +* Class [OrderProductAddNotificationBase<TEntity>](orderproductaddnotificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderProductAddedNotification (1 of 2) + +```csharp +public OrderProductAddedNotification(OrderReadOnly order, string productReference, decimal qty, + IDictionary properties, string bundleId, string parentBundleId) +``` + +--- + +#### OrderProductAddedNotification (2 of 2) + +```csharp +public OrderProductAddedNotification(OrderReadOnly order, string productReference, + string productVariantReference, decimal qty, IDictionary properties, + string bundleId, string parentBundleId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderproductaddingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderproductaddingnotification.md new file mode 100644 index 00000000000..f953e47a565 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderproductaddingnotification.md @@ -0,0 +1,38 @@ +--- +title: OrderProductAddingNotification +description: API reference for OrderProductAddingNotification in Umbraco Commerce +--- +## OrderProductAddingNotification + +```csharp +public class OrderProductAddingNotification : OrderProductAddNotificationBase +``` + +**Inheritance** + +* Class [OrderProductAddNotificationBase<TEntity>](orderproductaddnotificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderProductAddingNotification (1 of 2) + +```csharp +public OrderProductAddingNotification(Order order, string productReference, decimal qty, + IDictionary properties, string bundleId, string parentBundleId) +``` + +--- + +#### OrderProductAddingNotification (2 of 2) + +```csharp +public OrderProductAddingNotification(Order order, string productReference, + string productVariantReference, decimal qty, IDictionary properties, + string bundleId, string parentBundleId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderproductaddnotificationbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderproductaddnotificationbase-1.md new file mode 100644 index 00000000000..23c1906fd46 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderproductaddnotificationbase-1.md @@ -0,0 +1,93 @@ +--- +title: OrderProductAddNotificationBase +description: API reference for OrderProductAddNotificationBase in Umbraco Commerce +--- +## OrderProductAddNotificationBase<TEntity> + +```csharp +public abstract class OrderProductAddNotificationBase : OrderNotificationEventBase + where TEntity : OrderReadOnly +``` + +**Inheritance** + +* Class [OrderNotificationEventBase<TOrder>](ordernotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderProductAddNotificationBase<TEntity> (1 of 2) + +```csharp +public OrderProductAddNotificationBase(TEntity order, string productReference, decimal qty, + IDictionary properties, string bundleId, string parentBundleId) +``` + +--- + +#### OrderProductAddNotificationBase<TEntity> (2 of 2) + +```csharp +public OrderProductAddNotificationBase(TEntity order, string productReference, + string productVariantReference, decimal qty, IDictionary properties, + string bundleId, string parentBundleId) +``` + + +### Properties + +#### BundleId + +```csharp +public string BundleId { get; } +``` + + +--- + +#### ParentBundleId + +```csharp +public string ParentBundleId { get; } +``` + + +--- + +#### ProductReference + +```csharp +public string ProductReference { get; } +``` + + +--- + +#### ProductVariantReference + +```csharp +public string ProductVariantReference { get; } +``` + + +--- + +#### Properties + +```csharp +public IDictionary Properties { get; } +``` + + +--- + +#### Quantity + +```csharp +public decimal Quantity { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderpropertieschangednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderpropertieschangednotification.md new file mode 100644 index 00000000000..3dd0475670a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderpropertieschangednotification.md @@ -0,0 +1,29 @@ +--- +title: OrderPropertiesChangedNotification +description: API reference for OrderPropertiesChangedNotification in Umbraco Commerce +--- +## OrderPropertiesChangedNotification + +```csharp +public class OrderPropertiesChangedNotification : + OrderPropertiesChangeNotificationBase +``` + +**Inheritance** + +* Class [OrderPropertiesChangeNotificationBase<TEntity>](orderpropertieschangenotificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderPropertiesChangedNotification + +```csharp +public OrderPropertiesChangedNotification(OrderReadOnly order, + DictionaryDiff properties) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderpropertieschangenotificationbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderpropertieschangenotificationbase-1.md new file mode 100644 index 00000000000..97444d2897a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderpropertieschangenotificationbase-1.md @@ -0,0 +1,39 @@ +--- +title: OrderPropertiesChangeNotificationBase +description: API reference for OrderPropertiesChangeNotificationBase in Umbraco Commerce +--- +## OrderPropertiesChangeNotificationBase<TEntity> + +```csharp +public abstract class OrderPropertiesChangeNotificationBase : + OrderNotificationEventBase + where TEntity : OrderReadOnly +``` + +**Inheritance** + +* Class [OrderNotificationEventBase<TOrder>](ordernotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderPropertiesChangeNotificationBase<TEntity> + +```csharp +public OrderPropertiesChangeNotificationBase(TEntity order, + DictionaryDiff properties) +``` + + +### Properties + +#### Properties + +```csharp +public DictionaryDiff Properties { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderpropertieschangingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderpropertieschangingnotification.md new file mode 100644 index 00000000000..d4eae90ae63 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderpropertieschangingnotification.md @@ -0,0 +1,28 @@ +--- +title: OrderPropertiesChangingNotification +description: API reference for OrderPropertiesChangingNotification in Umbraco Commerce +--- +## OrderPropertiesChangingNotification + +```csharp +public class OrderPropertiesChangingNotification : OrderPropertiesChangeNotificationBase +``` + +**Inheritance** + +* Class [OrderPropertiesChangeNotificationBase<TEntity>](orderpropertieschangenotificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderPropertiesChangingNotification + +```csharp +public OrderPropertiesChangingNotification(Order order, + DictionaryDiff properties) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordersavednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordersavednotification.md new file mode 100644 index 00000000000..0b24df321b1 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordersavednotification.md @@ -0,0 +1,27 @@ +--- +title: OrderSavedNotification +description: API reference for OrderSavedNotification in Umbraco Commerce +--- +## OrderSavedNotification + +```csharp +public class OrderSavedNotification : OrderNotificationEventBase +``` + +**Inheritance** + +* Class [OrderNotificationEventBase<TOrder>](ordernotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderSavedNotification + +```csharp +public OrderSavedNotification(OrderReadOnly order) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordersavingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordersavingnotification.md new file mode 100644 index 00000000000..5e47fc5cb32 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordersavingnotification.md @@ -0,0 +1,27 @@ +--- +title: OrderSavingNotification +description: API reference for OrderSavingNotification in Umbraco Commerce +--- +## OrderSavingNotification + +```csharp +public class OrderSavingNotification : OrderNotificationEventBase +``` + +**Inheritance** + +* Class [OrderNotificationEventBase<TOrder>](ordernotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderSavingNotification + +```csharp +public OrderSavingNotification(Order order) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordershippingcountryregionchangednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordershippingcountryregionchangednotification.md new file mode 100644 index 00000000000..d161192e31c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordershippingcountryregionchangednotification.md @@ -0,0 +1,29 @@ +--- +title: OrderShippingCountryRegionChangedNotification +description: API reference for OrderShippingCountryRegionChangedNotification in Umbraco Commerce +--- +## OrderShippingCountryRegionChangedNotification + +```csharp +public class OrderShippingCountryRegionChangedNotification : + OrderShippingCountryRegionChangeNotificationBase +``` + +**Inheritance** + +* Class [OrderShippingCountryRegionChangeNotificationBase<TEntity>](ordershippingcountryregionchangenotificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderShippingCountryRegionChangedNotification + +```csharp +public OrderShippingCountryRegionChangedNotification(OrderReadOnly order, + ChangingValue countryId, ChangingValue regionId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordershippingcountryregionchangenotificationbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordershippingcountryregionchangenotificationbase-1.md new file mode 100644 index 00000000000..5326b3bdd8e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordershippingcountryregionchangenotificationbase-1.md @@ -0,0 +1,48 @@ +--- +title: OrderShippingCountryRegionChangeNotificationBase +description: API reference for OrderShippingCountryRegionChangeNotificationBase in Umbraco Commerce +--- +## OrderShippingCountryRegionChangeNotificationBase<TEntity> + +```csharp +public abstract class OrderShippingCountryRegionChangeNotificationBase : + OrderNotificationEventBase + where TEntity : OrderReadOnly +``` + +**Inheritance** + +* Class [OrderNotificationEventBase<TOrder>](ordernotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderShippingCountryRegionChangeNotificationBase<TEntity> + +```csharp +public OrderShippingCountryRegionChangeNotificationBase(TEntity order, + ChangingValue countryId, ChangingValue regionId) +``` + + +### Properties + +#### CountryId + +```csharp +public ChangingValue CountryId { get; } +``` + + +--- + +#### RegionId + +```csharp +public ChangingValue RegionId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordershippingcountryregionchangingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordershippingcountryregionchangingnotification.md new file mode 100644 index 00000000000..37befa2a7b5 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordershippingcountryregionchangingnotification.md @@ -0,0 +1,29 @@ +--- +title: OrderShippingCountryRegionChangingNotification +description: API reference for OrderShippingCountryRegionChangingNotification in Umbraco Commerce +--- +## OrderShippingCountryRegionChangingNotification + +```csharp +public class OrderShippingCountryRegionChangingNotification : + OrderShippingCountryRegionChangeNotificationBase +``` + +**Inheritance** + +* Class [OrderShippingCountryRegionChangeNotificationBase<TEntity>](ordershippingcountryregionchangenotificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderShippingCountryRegionChangingNotification + +```csharp +public OrderShippingCountryRegionChangingNotification(Order order, ChangingValue countryId, + ChangingValue regionId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordershippingmethodchangednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordershippingmethodchangednotification.md new file mode 100644 index 00000000000..f4450b1f5ed --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordershippingmethodchangednotification.md @@ -0,0 +1,29 @@ +--- +title: OrderShippingMethodChangedNotification +description: API reference for OrderShippingMethodChangedNotification in Umbraco Commerce +--- +## OrderShippingMethodChangedNotification + +```csharp +public class OrderShippingMethodChangedNotification : + OrderShippingMethodChangeNotificationBase +``` + +**Inheritance** + +* Class [OrderShippingMethodChangeNotificationBase<TEntity>](ordershippingmethodchangenotificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderShippingMethodChangedNotification + +```csharp +public OrderShippingMethodChangedNotification(OrderReadOnly order, + ChangingValue shippingMethodId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordershippingmethodchangenotificationbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordershippingmethodchangenotificationbase-1.md new file mode 100644 index 00000000000..b3709091442 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordershippingmethodchangenotificationbase-1.md @@ -0,0 +1,39 @@ +--- +title: OrderShippingMethodChangeNotificationBase +description: API reference for OrderShippingMethodChangeNotificationBase in Umbraco Commerce +--- +## OrderShippingMethodChangeNotificationBase<TEntity> + +```csharp +public abstract class OrderShippingMethodChangeNotificationBase : + OrderNotificationEventBase + where TEntity : OrderReadOnly +``` + +**Inheritance** + +* Class [OrderNotificationEventBase<TOrder>](ordernotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderShippingMethodChangeNotificationBase<TEntity> + +```csharp +public OrderShippingMethodChangeNotificationBase(TEntity order, + ChangingValue shippingMethodId) +``` + + +### Properties + +#### ShippingMethodId + +```csharp +public ChangingValue ShippingMethodId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordershippingmethodchangingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordershippingmethodchangingnotification.md new file mode 100644 index 00000000000..0df8726d76c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordershippingmethodchangingnotification.md @@ -0,0 +1,28 @@ +--- +title: OrderShippingMethodChangingNotification +description: API reference for OrderShippingMethodChangingNotification in Umbraco Commerce +--- +## OrderShippingMethodChangingNotification + +```csharp +public class OrderShippingMethodChangingNotification : + OrderShippingMethodChangeNotificationBase +``` + +**Inheritance** + +* Class [OrderShippingMethodChangeNotificationBase<TEntity>](ordershippingmethodchangenotificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderShippingMethodChangingNotification + +```csharp +public OrderShippingMethodChangingNotification(Order order, ChangingValue shippingMethodId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderstatuschangednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderstatuschangednotification.md new file mode 100644 index 00000000000..84ea109f998 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderstatuschangednotification.md @@ -0,0 +1,28 @@ +--- +title: OrderStatusChangedNotification +description: API reference for OrderStatusChangedNotification in Umbraco Commerce +--- +## OrderStatusChangedNotification + +```csharp +public class OrderStatusChangedNotification : OrderStatusChangeNotificationBase +``` + +**Inheritance** + +* Class [OrderStatusChangeNotificationBase<TEntity>](orderstatuschangenotificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderStatusChangedNotification + +```csharp +public OrderStatusChangedNotification(OrderReadOnly order, ChangingValue orderStatusId, + ChangingValue orderStatusCode) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderstatuschangenotificationbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderstatuschangenotificationbase-1.md new file mode 100644 index 00000000000..27f4d1a218e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderstatuschangenotificationbase-1.md @@ -0,0 +1,48 @@ +--- +title: OrderStatusChangeNotificationBase +description: API reference for OrderStatusChangeNotificationBase in Umbraco Commerce +--- +## OrderStatusChangeNotificationBase<TEntity> + +```csharp +public abstract class OrderStatusChangeNotificationBase : + OrderNotificationEventBase + where TEntity : OrderReadOnly +``` + +**Inheritance** + +* Class [OrderNotificationEventBase<TOrder>](ordernotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderStatusChangeNotificationBase<TEntity> + +```csharp +public OrderStatusChangeNotificationBase(TEntity order, ChangingValue orderStatusId, + ChangingValue orderStatusCode) +``` + + +### Properties + +#### OrderStatusCode + +```csharp +public ChangingValue OrderStatusCode { get; } +``` + + +--- + +#### OrderStatusId + +```csharp +public ChangingValue OrderStatusId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderstatuschangingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderstatuschangingnotification.md new file mode 100644 index 00000000000..43cec88f30b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderstatuschangingnotification.md @@ -0,0 +1,28 @@ +--- +title: OrderStatusChangingNotification +description: API reference for OrderStatusChangingNotification in Umbraco Commerce +--- +## OrderStatusChangingNotification + +```csharp +public class OrderStatusChangingNotification : OrderStatusChangeNotificationBase +``` + +**Inheritance** + +* Class [OrderStatusChangeNotificationBase<TEntity>](orderstatuschangenotificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderStatusChangingNotification + +```csharp +public OrderStatusChangingNotification(Order order, ChangingValue orderStatusId, + ChangingValue orderStatusCode) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderstatuscreatednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderstatuscreatednotification.md new file mode 100644 index 00000000000..47d8d774885 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderstatuscreatednotification.md @@ -0,0 +1,27 @@ +--- +title: OrderStatusCreatedNotification +description: API reference for OrderStatusCreatedNotification in Umbraco Commerce +--- +## OrderStatusCreatedNotification + +```csharp +public class OrderStatusCreatedNotification : OrderStatusNotificationEventBase +``` + +**Inheritance** + +* Class [OrderStatusNotificationEventBase<TEntity>](orderstatusnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderStatusCreatedNotification + +```csharp +public OrderStatusCreatedNotification(OrderStatusReadOnly orderStatus) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderstatuscreatingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderstatuscreatingnotification.md new file mode 100644 index 00000000000..a28b3ad3a1b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderstatuscreatingnotification.md @@ -0,0 +1,27 @@ +--- +title: OrderStatusCreatingNotification +description: API reference for OrderStatusCreatingNotification in Umbraco Commerce +--- +## OrderStatusCreatingNotification + +```csharp +public class OrderStatusCreatingNotification : OrderStatusNotificationEventBase +``` + +**Inheritance** + +* Class [OrderStatusNotificationEventBase<TEntity>](orderstatusnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderStatusCreatingNotification + +```csharp +public OrderStatusCreatingNotification(OrderStatus orderStatus) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderstatusdeletednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderstatusdeletednotification.md new file mode 100644 index 00000000000..4b1dc338379 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderstatusdeletednotification.md @@ -0,0 +1,27 @@ +--- +title: OrderStatusDeletedNotification +description: API reference for OrderStatusDeletedNotification in Umbraco Commerce +--- +## OrderStatusDeletedNotification + +```csharp +public class OrderStatusDeletedNotification : OrderStatusNotificationEventBase +``` + +**Inheritance** + +* Class [OrderStatusNotificationEventBase<TEntity>](orderstatusnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderStatusDeletedNotification + +```csharp +public OrderStatusDeletedNotification(OrderStatusReadOnly orderStatus) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderstatusdeletingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderstatusdeletingnotification.md new file mode 100644 index 00000000000..4cecc258d82 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderstatusdeletingnotification.md @@ -0,0 +1,27 @@ +--- +title: OrderStatusDeletingNotification +description: API reference for OrderStatusDeletingNotification in Umbraco Commerce +--- +## OrderStatusDeletingNotification + +```csharp +public class OrderStatusDeletingNotification : OrderStatusNotificationEventBase +``` + +**Inheritance** + +* Class [OrderStatusNotificationEventBase<TEntity>](orderstatusnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderStatusDeletingNotification + +```csharp +public OrderStatusDeletingNotification(OrderStatusReadOnly orderStatus) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderstatusnotificationeventbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderstatusnotificationeventbase-1.md new file mode 100644 index 00000000000..25dd12fd288 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderstatusnotificationeventbase-1.md @@ -0,0 +1,37 @@ +--- +title: OrderStatusNotificationEventBase +description: API reference for OrderStatusNotificationEventBase in Umbraco Commerce +--- +## OrderStatusNotificationEventBase<TEntity> + +```csharp +public abstract class OrderStatusNotificationEventBase : NotificationEventBase + where TEntity : OrderStatusReadOnly +``` + +**Inheritance** + +* Class [NotificationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/notificationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderStatusNotificationEventBase<TEntity> + +```csharp +public OrderStatusNotificationEventBase(TEntity orderStatus) +``` + + +### Properties + +#### OrderStatus + +```csharp +public TEntity OrderStatus { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderstatussavednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderstatussavednotification.md new file mode 100644 index 00000000000..690ee05fbea --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderstatussavednotification.md @@ -0,0 +1,27 @@ +--- +title: OrderStatusSavedNotification +description: API reference for OrderStatusSavedNotification in Umbraco Commerce +--- +## OrderStatusSavedNotification + +```csharp +public class OrderStatusSavedNotification : OrderStatusNotificationEventBase +``` + +**Inheritance** + +* Class [OrderStatusNotificationEventBase<TEntity>](orderstatusnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderStatusSavedNotification + +```csharp +public OrderStatusSavedNotification(OrderStatusReadOnly orderStatus) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderstatussavingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderstatussavingnotification.md new file mode 100644 index 00000000000..bfe1d70a7ef --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderstatussavingnotification.md @@ -0,0 +1,27 @@ +--- +title: OrderStatusSavingNotification +description: API reference for OrderStatusSavingNotification in Umbraco Commerce +--- +## OrderStatusSavingNotification + +```csharp +public class OrderStatusSavingNotification : OrderStatusNotificationEventBase +``` + +**Inheritance** + +* Class [OrderStatusNotificationEventBase<TEntity>](orderstatusnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderStatusSavingNotification + +```csharp +public OrderStatusSavingNotification(OrderStatus orderStatus) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderstatusupdatednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderstatusupdatednotification.md new file mode 100644 index 00000000000..b0eb1d1b1a5 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderstatusupdatednotification.md @@ -0,0 +1,27 @@ +--- +title: OrderStatusUpdatedNotification +description: API reference for OrderStatusUpdatedNotification in Umbraco Commerce +--- +## OrderStatusUpdatedNotification + +```csharp +public class OrderStatusUpdatedNotification : OrderStatusNotificationEventBase +``` + +**Inheritance** + +* Class [OrderStatusNotificationEventBase<TEntity>](orderstatusnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderStatusUpdatedNotification + +```csharp +public OrderStatusUpdatedNotification(OrderStatusReadOnly orderStatus) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderstatusupdatingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderstatusupdatingnotification.md new file mode 100644 index 00000000000..432fa1bab22 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderstatusupdatingnotification.md @@ -0,0 +1,27 @@ +--- +title: OrderStatusUpdatingNotification +description: API reference for OrderStatusUpdatingNotification in Umbraco Commerce +--- +## OrderStatusUpdatingNotification + +```csharp +public class OrderStatusUpdatingNotification : OrderStatusNotificationEventBase +``` + +**Inheritance** + +* Class [OrderStatusNotificationEventBase<TEntity>](orderstatusnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderStatusUpdatingNotification + +```csharp +public OrderStatusUpdatingNotification(OrderStatus orderStatus) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordertagschangednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordertagschangednotification.md new file mode 100644 index 00000000000..6fa17d72701 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordertagschangednotification.md @@ -0,0 +1,27 @@ +--- +title: OrderTagsChangedNotification +description: API reference for OrderTagsChangedNotification in Umbraco Commerce +--- +## OrderTagsChangedNotification + +```csharp +public class OrderTagsChangedNotification : OrderTagsChangeNotificationBase +``` + +**Inheritance** + +* Class [OrderTagsChangeNotificationBase<TEntity>](ordertagschangenotificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderTagsChangedNotification + +```csharp +public OrderTagsChangedNotification(OrderReadOnly order, EnumerableDiff tags) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordertagschangenotificationbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordertagschangenotificationbase-1.md new file mode 100644 index 00000000000..bd1520a74b3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordertagschangenotificationbase-1.md @@ -0,0 +1,37 @@ +--- +title: OrderTagsChangeNotificationBase +description: API reference for OrderTagsChangeNotificationBase in Umbraco Commerce +--- +## OrderTagsChangeNotificationBase<TEntity> + +```csharp +public abstract class OrderTagsChangeNotificationBase : OrderNotificationEventBase + where TEntity : OrderReadOnly +``` + +**Inheritance** + +* Class [OrderNotificationEventBase<TOrder>](ordernotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderTagsChangeNotificationBase<TEntity> + +```csharp +public OrderTagsChangeNotificationBase(TEntity order, EnumerableDiff tags) +``` + + +### Properties + +#### Tags + +```csharp +public EnumerableDiff Tags { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordertagschangingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordertagschangingnotification.md new file mode 100644 index 00000000000..c7a2719c293 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordertagschangingnotification.md @@ -0,0 +1,27 @@ +--- +title: OrderTagsChangingNotification +description: API reference for OrderTagsChangingNotification in Umbraco Commerce +--- +## OrderTagsChangingNotification + +```csharp +public class OrderTagsChangingNotification : OrderTagsChangeNotificationBase +``` + +**Inheritance** + +* Class [OrderTagsChangeNotificationBase<TEntity>](ordertagschangenotificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderTagsChangingNotification + +```csharp +public OrderTagsChangingNotification(Order order, EnumerableDiff tags) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordertaxclasschangednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordertaxclasschangednotification.md new file mode 100644 index 00000000000..962e495804a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordertaxclasschangednotification.md @@ -0,0 +1,27 @@ +--- +title: OrderTaxClassChangedNotification +description: API reference for OrderTaxClassChangedNotification in Umbraco Commerce +--- +## OrderTaxClassChangedNotification + +```csharp +public class OrderTaxClassChangedNotification : OrderTaxClassChangeNotificationBase +``` + +**Inheritance** + +* Class [OrderTaxClassChangeNotificationBase<TEntity>](ordertaxclasschangenotificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderTaxClassChangedNotification + +```csharp +public OrderTaxClassChangedNotification(OrderReadOnly order, ChangingValue taxClassId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordertaxclasschangenotificationbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordertaxclasschangenotificationbase-1.md new file mode 100644 index 00000000000..0cd519b2046 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordertaxclasschangenotificationbase-1.md @@ -0,0 +1,38 @@ +--- +title: OrderTaxClassChangeNotificationBase +description: API reference for OrderTaxClassChangeNotificationBase in Umbraco Commerce +--- +## OrderTaxClassChangeNotificationBase<TEntity> + +```csharp +public abstract class OrderTaxClassChangeNotificationBase : + OrderNotificationEventBase + where TEntity : OrderReadOnly +``` + +**Inheritance** + +* Class [OrderNotificationEventBase<TOrder>](ordernotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderTaxClassChangeNotificationBase<TEntity> + +```csharp +public OrderTaxClassChangeNotificationBase(TEntity order, ChangingValue taxClassId) +``` + + +### Properties + +#### TaxClassId + +```csharp +public ChangingValue TaxClassId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordertaxclasschangingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordertaxclasschangingnotification.md new file mode 100644 index 00000000000..1848f5538eb --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordertaxclasschangingnotification.md @@ -0,0 +1,27 @@ +--- +title: OrderTaxClassChangingNotification +description: API reference for OrderTaxClassChangingNotification in Umbraco Commerce +--- +## OrderTaxClassChangingNotification + +```csharp +public class OrderTaxClassChangingNotification : OrderTaxClassChangeNotificationBase +``` + +**Inheritance** + +* Class [OrderTaxClassChangeNotificationBase<TEntity>](ordertaxclasschangenotificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderTaxClassChangingNotification + +```csharp +public OrderTaxClassChangingNotification(Order order, ChangingValue taxClassId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordertransactionchangenotificationbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordertransactionchangenotificationbase-1.md new file mode 100644 index 00000000000..0135e783b6b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordertransactionchangenotificationbase-1.md @@ -0,0 +1,67 @@ +--- +title: OrderTransactionChangeNotificationBase +description: API reference for OrderTransactionChangeNotificationBase in Umbraco Commerce +--- +## OrderTransactionChangeNotificationBase<TEntity> + +```csharp +public abstract class OrderTransactionChangeNotificationBase : + OrderNotificationEventBase + where TEntity : OrderReadOnly +``` + +**Inheritance** + +* Class [OrderNotificationEventBase<TOrder>](ordernotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderTransactionChangeNotificationBase<TEntity> + +```csharp +public OrderTransactionChangeNotificationBase(TEntity order, + ChangingValue amountAuthorized, ChangingValue transactionFee, + ChangingValue transactionId, ChangingValue paymentStatus) +``` + + +### Properties + +#### AmountAuthorized + +```csharp +public ChangingValue AmountAuthorized { get; } +``` + + +--- + +#### PaymentStatus + +```csharp +public ChangingValue PaymentStatus { get; } +``` + + +--- + +#### TransactionFee + +```csharp +public ChangingValue TransactionFee { get; } +``` + + +--- + +#### TransactionId + +```csharp +public ChangingValue TransactionId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordertransactionupdatednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordertransactionupdatednotification.md new file mode 100644 index 00000000000..02909a7fcd4 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordertransactionupdatednotification.md @@ -0,0 +1,30 @@ +--- +title: OrderTransactionUpdatedNotification +description: API reference for OrderTransactionUpdatedNotification in Umbraco Commerce +--- +## OrderTransactionUpdatedNotification + +```csharp +public class OrderTransactionUpdatedNotification : + OrderTransactionChangeNotificationBase +``` + +**Inheritance** + +* Class [OrderTransactionChangeNotificationBase<TEntity>](ordertransactionchangenotificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderTransactionUpdatedNotification + +```csharp +public OrderTransactionUpdatedNotification(OrderReadOnly order, + ChangingValue amountAuthorized, ChangingValue transactionFee, + ChangingValue transactionId, ChangingValue paymentStatus) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordertransactionupdatingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordertransactionupdatingnotification.md new file mode 100644 index 00000000000..5f14918027c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/ordertransactionupdatingnotification.md @@ -0,0 +1,29 @@ +--- +title: OrderTransactionUpdatingNotification +description: API reference for OrderTransactionUpdatingNotification in Umbraco Commerce +--- +## OrderTransactionUpdatingNotification + +```csharp +public class OrderTransactionUpdatingNotification : OrderTransactionChangeNotificationBase +``` + +**Inheritance** + +* Class [OrderTransactionChangeNotificationBase<TEntity>](ordertransactionchangenotificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderTransactionUpdatingNotification + +```csharp +public OrderTransactionUpdatingNotification(Order order, ChangingValue amountAuthorized, + ChangingValue transactionFee, ChangingValue transactionId, + ChangingValue paymentStatus) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderupdatednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderupdatednotification.md new file mode 100644 index 00000000000..f56c72f8174 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderupdatednotification.md @@ -0,0 +1,27 @@ +--- +title: OrderUpdatedNotification +description: API reference for OrderUpdatedNotification in Umbraco Commerce +--- +## OrderUpdatedNotification + +```csharp +public class OrderUpdatedNotification : OrderNotificationEventBase +``` + +**Inheritance** + +* Class [OrderNotificationEventBase<TOrder>](ordernotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderUpdatedNotification + +```csharp +public OrderUpdatedNotification(OrderReadOnly order) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderupdatingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderupdatingnotification.md new file mode 100644 index 00000000000..5b95f81e981 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/orderupdatingnotification.md @@ -0,0 +1,27 @@ +--- +title: OrderUpdatingNotification +description: API reference for OrderUpdatingNotification in Umbraco Commerce +--- +## OrderUpdatingNotification + +```csharp +public class OrderUpdatingNotification : OrderNotificationEventBase +``` + +**Inheritance** + +* Class [OrderNotificationEventBase<TOrder>](ordernotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### OrderUpdatingNotification + +```csharp +public OrderUpdatingNotification(Order order) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/paymentformgeneratingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/paymentformgeneratingnotification.md new file mode 100644 index 00000000000..c07702cc14d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/paymentformgeneratingnotification.md @@ -0,0 +1,55 @@ +--- +title: PaymentFormGeneratingNotification +description: API reference for PaymentFormGeneratingNotification in Umbraco Commerce +--- +## PaymentFormGeneratingNotification + +```csharp +public class PaymentFormGeneratingNotification : NotificationEventBase +``` + +**Inheritance** + +* Class [NotificationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/notificationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### PaymentFormGeneratingNotification + +```csharp +public PaymentFormGeneratingNotification(OrderReadOnly order, IPaymentProvider paymentProvider, + IReadOnlyDictionary settings) +``` + + +### Properties + +#### Order + +```csharp +public OrderReadOnly Order { get; } +``` + + +--- + +#### PaymentProvider + +```csharp +public IPaymentProvider PaymentProvider { get; } +``` + + +--- + +#### Settings + +```csharp +public IReadOnlyDictionary Settings { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/paymentmethodcreatednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/paymentmethodcreatednotification.md new file mode 100644 index 00000000000..db3db2c81ae --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/paymentmethodcreatednotification.md @@ -0,0 +1,28 @@ +--- +title: PaymentMethodCreatedNotification +description: API reference for PaymentMethodCreatedNotification in Umbraco Commerce +--- +## PaymentMethodCreatedNotification + +```csharp +public class PaymentMethodCreatedNotification : + PaymentMethodNotificationEventBase +``` + +**Inheritance** + +* Class [PaymentMethodNotificationEventBase<TEntity>](paymentmethodnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### PaymentMethodCreatedNotification + +```csharp +public PaymentMethodCreatedNotification(PaymentMethodReadOnly paymentMethod) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/paymentmethodcreatingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/paymentmethodcreatingnotification.md new file mode 100644 index 00000000000..1164f1a4896 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/paymentmethodcreatingnotification.md @@ -0,0 +1,27 @@ +--- +title: PaymentMethodCreatingNotification +description: API reference for PaymentMethodCreatingNotification in Umbraco Commerce +--- +## PaymentMethodCreatingNotification + +```csharp +public class PaymentMethodCreatingNotification : PaymentMethodNotificationEventBase +``` + +**Inheritance** + +* Class [PaymentMethodNotificationEventBase<TEntity>](paymentmethodnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### PaymentMethodCreatingNotification + +```csharp +public PaymentMethodCreatingNotification(PaymentMethod paymentMethod) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/paymentmethoddeletednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/paymentmethoddeletednotification.md new file mode 100644 index 00000000000..3b19b4ca1fe --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/paymentmethoddeletednotification.md @@ -0,0 +1,28 @@ +--- +title: PaymentMethodDeletedNotification +description: API reference for PaymentMethodDeletedNotification in Umbraco Commerce +--- +## PaymentMethodDeletedNotification + +```csharp +public class PaymentMethodDeletedNotification : + PaymentMethodNotificationEventBase +``` + +**Inheritance** + +* Class [PaymentMethodNotificationEventBase<TEntity>](paymentmethodnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### PaymentMethodDeletedNotification + +```csharp +public PaymentMethodDeletedNotification(PaymentMethodReadOnly paymentMethod) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/paymentmethoddeletingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/paymentmethoddeletingnotification.md new file mode 100644 index 00000000000..8b8a1de183d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/paymentmethoddeletingnotification.md @@ -0,0 +1,28 @@ +--- +title: PaymentMethodDeletingNotification +description: API reference for PaymentMethodDeletingNotification in Umbraco Commerce +--- +## PaymentMethodDeletingNotification + +```csharp +public class PaymentMethodDeletingNotification : + PaymentMethodNotificationEventBase +``` + +**Inheritance** + +* Class [PaymentMethodNotificationEventBase<TEntity>](paymentmethodnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### PaymentMethodDeletingNotification + +```csharp +public PaymentMethodDeletingNotification(PaymentMethodReadOnly paymentMethod) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/paymentmethodnotificationeventbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/paymentmethodnotificationeventbase-1.md new file mode 100644 index 00000000000..b7c28f1f8f3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/paymentmethodnotificationeventbase-1.md @@ -0,0 +1,37 @@ +--- +title: PaymentMethodNotificationEventBase +description: API reference for PaymentMethodNotificationEventBase in Umbraco Commerce +--- +## PaymentMethodNotificationEventBase<TEntity> + +```csharp +public abstract class PaymentMethodNotificationEventBase : NotificationEventBase + where TEntity : PaymentMethodReadOnly +``` + +**Inheritance** + +* Class [NotificationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/notificationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### PaymentMethodNotificationEventBase<TEntity> + +```csharp +public PaymentMethodNotificationEventBase(TEntity paymentMethod) +``` + + +### Properties + +#### PaymentMethod + +```csharp +public TEntity PaymentMethod { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/paymentmethodsavednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/paymentmethodsavednotification.md new file mode 100644 index 00000000000..3ea6c4aa4ba --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/paymentmethodsavednotification.md @@ -0,0 +1,28 @@ +--- +title: PaymentMethodSavedNotification +description: API reference for PaymentMethodSavedNotification in Umbraco Commerce +--- +## PaymentMethodSavedNotification + +```csharp +public class PaymentMethodSavedNotification : + PaymentMethodNotificationEventBase +``` + +**Inheritance** + +* Class [PaymentMethodNotificationEventBase<TEntity>](paymentmethodnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### PaymentMethodSavedNotification + +```csharp +public PaymentMethodSavedNotification(PaymentMethodReadOnly paymentMethod) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/paymentmethodsavingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/paymentmethodsavingnotification.md new file mode 100644 index 00000000000..202c85b8fa0 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/paymentmethodsavingnotification.md @@ -0,0 +1,27 @@ +--- +title: PaymentMethodSavingNotification +description: API reference for PaymentMethodSavingNotification in Umbraco Commerce +--- +## PaymentMethodSavingNotification + +```csharp +public class PaymentMethodSavingNotification : PaymentMethodNotificationEventBase +``` + +**Inheritance** + +* Class [PaymentMethodNotificationEventBase<TEntity>](paymentmethodnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### PaymentMethodSavingNotification + +```csharp +public PaymentMethodSavingNotification(PaymentMethod paymentMethod) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/paymentmethodupdatednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/paymentmethodupdatednotification.md new file mode 100644 index 00000000000..dac5dc3de57 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/paymentmethodupdatednotification.md @@ -0,0 +1,28 @@ +--- +title: PaymentMethodUpdatedNotification +description: API reference for PaymentMethodUpdatedNotification in Umbraco Commerce +--- +## PaymentMethodUpdatedNotification + +```csharp +public class PaymentMethodUpdatedNotification : + PaymentMethodNotificationEventBase +``` + +**Inheritance** + +* Class [PaymentMethodNotificationEventBase<TEntity>](paymentmethodnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### PaymentMethodUpdatedNotification + +```csharp +public PaymentMethodUpdatedNotification(PaymentMethodReadOnly paymentMethod) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/paymentmethodupdatingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/paymentmethodupdatingnotification.md new file mode 100644 index 00000000000..e6345384f55 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/paymentmethodupdatingnotification.md @@ -0,0 +1,27 @@ +--- +title: PaymentMethodUpdatingNotification +description: API reference for PaymentMethodUpdatingNotification in Umbraco Commerce +--- +## PaymentMethodUpdatingNotification + +```csharp +public class PaymentMethodUpdatingNotification : PaymentMethodNotificationEventBase +``` + +**Inheritance** + +* Class [PaymentMethodNotificationEventBase<TEntity>](paymentmethodnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### PaymentMethodUpdatingNotification + +```csharp +public PaymentMethodUpdatingNotification(PaymentMethod paymentMethod) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/printtemplatecreatednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/printtemplatecreatednotification.md new file mode 100644 index 00000000000..36a1cc532dc --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/printtemplatecreatednotification.md @@ -0,0 +1,28 @@ +--- +title: PrintTemplateCreatedNotification +description: API reference for PrintTemplateCreatedNotification in Umbraco Commerce +--- +## PrintTemplateCreatedNotification + +```csharp +public class PrintTemplateCreatedNotification : + PrintTemplateNotificationEventBase +``` + +**Inheritance** + +* Class [PrintTemplateNotificationEventBase<TEntity>](printtemplatenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### PrintTemplateCreatedNotification + +```csharp +public PrintTemplateCreatedNotification(PrintTemplateReadOnly printTemplate) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/printtemplatecreatingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/printtemplatecreatingnotification.md new file mode 100644 index 00000000000..eea32727d5e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/printtemplatecreatingnotification.md @@ -0,0 +1,27 @@ +--- +title: PrintTemplateCreatingNotification +description: API reference for PrintTemplateCreatingNotification in Umbraco Commerce +--- +## PrintTemplateCreatingNotification + +```csharp +public class PrintTemplateCreatingNotification : PrintTemplateNotificationEventBase +``` + +**Inheritance** + +* Class [PrintTemplateNotificationEventBase<TEntity>](printtemplatenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### PrintTemplateCreatingNotification + +```csharp +public PrintTemplateCreatingNotification(PrintTemplate printTemplate) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/printtemplatedeletednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/printtemplatedeletednotification.md new file mode 100644 index 00000000000..6ac76a60bc6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/printtemplatedeletednotification.md @@ -0,0 +1,28 @@ +--- +title: PrintTemplateDeletedNotification +description: API reference for PrintTemplateDeletedNotification in Umbraco Commerce +--- +## PrintTemplateDeletedNotification + +```csharp +public class PrintTemplateDeletedNotification : + PrintTemplateNotificationEventBase +``` + +**Inheritance** + +* Class [PrintTemplateNotificationEventBase<TEntity>](printtemplatenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### PrintTemplateDeletedNotification + +```csharp +public PrintTemplateDeletedNotification(PrintTemplateReadOnly printTemplate) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/printtemplatedeletingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/printtemplatedeletingnotification.md new file mode 100644 index 00000000000..44f0ec2f25d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/printtemplatedeletingnotification.md @@ -0,0 +1,28 @@ +--- +title: PrintTemplateDeletingNotification +description: API reference for PrintTemplateDeletingNotification in Umbraco Commerce +--- +## PrintTemplateDeletingNotification + +```csharp +public class PrintTemplateDeletingNotification : + PrintTemplateNotificationEventBase +``` + +**Inheritance** + +* Class [PrintTemplateNotificationEventBase<TEntity>](printtemplatenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### PrintTemplateDeletingNotification + +```csharp +public PrintTemplateDeletingNotification(PrintTemplateReadOnly printTemplate) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/printtemplatenotificationeventbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/printtemplatenotificationeventbase-1.md new file mode 100644 index 00000000000..afdeb2fed9e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/printtemplatenotificationeventbase-1.md @@ -0,0 +1,37 @@ +--- +title: PrintTemplateNotificationEventBase +description: API reference for PrintTemplateNotificationEventBase in Umbraco Commerce +--- +## PrintTemplateNotificationEventBase<TEntity> + +```csharp +public abstract class PrintTemplateNotificationEventBase : NotificationEventBase + where TEntity : PrintTemplateReadOnly +``` + +**Inheritance** + +* Class [NotificationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/notificationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### PrintTemplateNotificationEventBase<TEntity> + +```csharp +public PrintTemplateNotificationEventBase(TEntity printTemplate) +``` + + +### Properties + +#### PrintTemplate + +```csharp +public TEntity PrintTemplate { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/printtemplatesavednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/printtemplatesavednotification.md new file mode 100644 index 00000000000..40655afb363 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/printtemplatesavednotification.md @@ -0,0 +1,28 @@ +--- +title: PrintTemplateSavedNotification +description: API reference for PrintTemplateSavedNotification in Umbraco Commerce +--- +## PrintTemplateSavedNotification + +```csharp +public class PrintTemplateSavedNotification : + PrintTemplateNotificationEventBase +``` + +**Inheritance** + +* Class [PrintTemplateNotificationEventBase<TEntity>](printtemplatenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### PrintTemplateSavedNotification + +```csharp +public PrintTemplateSavedNotification(PrintTemplateReadOnly printTemplate) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/printtemplatesavingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/printtemplatesavingnotification.md new file mode 100644 index 00000000000..2758e36433e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/printtemplatesavingnotification.md @@ -0,0 +1,27 @@ +--- +title: PrintTemplateSavingNotification +description: API reference for PrintTemplateSavingNotification in Umbraco Commerce +--- +## PrintTemplateSavingNotification + +```csharp +public class PrintTemplateSavingNotification : PrintTemplateNotificationEventBase +``` + +**Inheritance** + +* Class [PrintTemplateNotificationEventBase<TEntity>](printtemplatenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### PrintTemplateSavingNotification + +```csharp +public PrintTemplateSavingNotification(PrintTemplate printTemplate) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/printtemplateupdatednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/printtemplateupdatednotification.md new file mode 100644 index 00000000000..b0ced86b6e0 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/printtemplateupdatednotification.md @@ -0,0 +1,28 @@ +--- +title: PrintTemplateUpdatedNotification +description: API reference for PrintTemplateUpdatedNotification in Umbraco Commerce +--- +## PrintTemplateUpdatedNotification + +```csharp +public class PrintTemplateUpdatedNotification : + PrintTemplateNotificationEventBase +``` + +**Inheritance** + +* Class [PrintTemplateNotificationEventBase<TEntity>](printtemplatenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### PrintTemplateUpdatedNotification + +```csharp +public PrintTemplateUpdatedNotification(PrintTemplateReadOnly printTemplate) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/printtemplateupdatingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/printtemplateupdatingnotification.md new file mode 100644 index 00000000000..6f237d3cefa --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/printtemplateupdatingnotification.md @@ -0,0 +1,27 @@ +--- +title: PrintTemplateUpdatingNotification +description: API reference for PrintTemplateUpdatingNotification in Umbraco Commerce +--- +## PrintTemplateUpdatingNotification + +```csharp +public class PrintTemplateUpdatingNotification : PrintTemplateNotificationEventBase +``` + +**Inheritance** + +* Class [PrintTemplateNotificationEventBase<TEntity>](printtemplatenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### PrintTemplateUpdatingNotification + +```csharp +public PrintTemplateUpdatingNotification(PrintTemplate printTemplate) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributecreatednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributecreatednotification.md new file mode 100644 index 00000000000..302cc2f7676 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributecreatednotification.md @@ -0,0 +1,28 @@ +--- +title: ProductAttributeCreatedNotification +description: API reference for ProductAttributeCreatedNotification in Umbraco Commerce +--- +## ProductAttributeCreatedNotification + +```csharp +public class ProductAttributeCreatedNotification : + ProductAttributeNotificationEventBase +``` + +**Inheritance** + +* Class [ProductAttributeNotificationEventBase<TEntity>](productattributenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### ProductAttributeCreatedNotification + +```csharp +public ProductAttributeCreatedNotification(ProductAttributeReadOnly productAttribute) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributecreatingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributecreatingnotification.md new file mode 100644 index 00000000000..ec5d17f3e1f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributecreatingnotification.md @@ -0,0 +1,28 @@ +--- +title: ProductAttributeCreatingNotification +description: API reference for ProductAttributeCreatingNotification in Umbraco Commerce +--- +## ProductAttributeCreatingNotification + +```csharp +public class ProductAttributeCreatingNotification : + ProductAttributeNotificationEventBase +``` + +**Inheritance** + +* Class [ProductAttributeNotificationEventBase<TEntity>](productattributenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### ProductAttributeCreatingNotification + +```csharp +public ProductAttributeCreatingNotification(ProductAttribute productAttribute) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributedeletednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributedeletednotification.md new file mode 100644 index 00000000000..36354309295 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributedeletednotification.md @@ -0,0 +1,28 @@ +--- +title: ProductAttributeDeletedNotification +description: API reference for ProductAttributeDeletedNotification in Umbraco Commerce +--- +## ProductAttributeDeletedNotification + +```csharp +public class ProductAttributeDeletedNotification : + ProductAttributeNotificationEventBase +``` + +**Inheritance** + +* Class [ProductAttributeNotificationEventBase<TEntity>](productattributenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### ProductAttributeDeletedNotification + +```csharp +public ProductAttributeDeletedNotification(ProductAttributeReadOnly productAttribute) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributedeletingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributedeletingnotification.md new file mode 100644 index 00000000000..ebf2b452f26 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributedeletingnotification.md @@ -0,0 +1,28 @@ +--- +title: ProductAttributeDeletingNotification +description: API reference for ProductAttributeDeletingNotification in Umbraco Commerce +--- +## ProductAttributeDeletingNotification + +```csharp +public class ProductAttributeDeletingNotification : + ProductAttributeNotificationEventBase +``` + +**Inheritance** + +* Class [ProductAttributeNotificationEventBase<TEntity>](productattributenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### ProductAttributeDeletingNotification + +```csharp +public ProductAttributeDeletingNotification(ProductAttributeReadOnly productAttribute) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributenotificationeventbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributenotificationeventbase-1.md new file mode 100644 index 00000000000..4075a8f4cbc --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributenotificationeventbase-1.md @@ -0,0 +1,37 @@ +--- +title: ProductAttributeNotificationEventBase +description: API reference for ProductAttributeNotificationEventBase in Umbraco Commerce +--- +## ProductAttributeNotificationEventBase<TEntity> + +```csharp +public abstract class ProductAttributeNotificationEventBase : NotificationEventBase + where TEntity : ProductAttributeReadOnly +``` + +**Inheritance** + +* Class [NotificationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/notificationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### ProductAttributeNotificationEventBase<TEntity> + +```csharp +public ProductAttributeNotificationEventBase(TEntity productAttribute) +``` + + +### Properties + +#### ProductAttribute + +```csharp +public TEntity ProductAttribute { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributepresetcreatednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributepresetcreatednotification.md new file mode 100644 index 00000000000..2b2696b2723 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributepresetcreatednotification.md @@ -0,0 +1,29 @@ +--- +title: ProductAttributePresetCreatedNotification +description: API reference for ProductAttributePresetCreatedNotification in Umbraco Commerce +--- +## ProductAttributePresetCreatedNotification + +```csharp +public class ProductAttributePresetCreatedNotification : + ProductAttributePresetNotificationEventBase +``` + +**Inheritance** + +* Class [ProductAttributePresetNotificationEventBase<TEntity>](productattributepresetnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### ProductAttributePresetCreatedNotification + +```csharp +public ProductAttributePresetCreatedNotification( + ProductAttributePresetReadOnly productAttributePreset) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributepresetcreatingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributepresetcreatingnotification.md new file mode 100644 index 00000000000..ed04336d051 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributepresetcreatingnotification.md @@ -0,0 +1,28 @@ +--- +title: ProductAttributePresetCreatingNotification +description: API reference for ProductAttributePresetCreatingNotification in Umbraco Commerce +--- +## ProductAttributePresetCreatingNotification + +```csharp +public class ProductAttributePresetCreatingNotification : + ProductAttributePresetNotificationEventBase +``` + +**Inheritance** + +* Class [ProductAttributePresetNotificationEventBase<TEntity>](productattributepresetnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### ProductAttributePresetCreatingNotification + +```csharp +public ProductAttributePresetCreatingNotification(ProductAttributePreset productAttributePreset) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributepresetdeletednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributepresetdeletednotification.md new file mode 100644 index 00000000000..92cbb96acb0 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributepresetdeletednotification.md @@ -0,0 +1,29 @@ +--- +title: ProductAttributePresetDeletedNotification +description: API reference for ProductAttributePresetDeletedNotification in Umbraco Commerce +--- +## ProductAttributePresetDeletedNotification + +```csharp +public class ProductAttributePresetDeletedNotification : + ProductAttributePresetNotificationEventBase +``` + +**Inheritance** + +* Class [ProductAttributePresetNotificationEventBase<TEntity>](productattributepresetnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### ProductAttributePresetDeletedNotification + +```csharp +public ProductAttributePresetDeletedNotification( + ProductAttributePresetReadOnly productAttributePreset) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributepresetdeletingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributepresetdeletingnotification.md new file mode 100644 index 00000000000..0c582c46b0f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributepresetdeletingnotification.md @@ -0,0 +1,29 @@ +--- +title: ProductAttributePresetDeletingNotification +description: API reference for ProductAttributePresetDeletingNotification in Umbraco Commerce +--- +## ProductAttributePresetDeletingNotification + +```csharp +public class ProductAttributePresetDeletingNotification : + ProductAttributePresetNotificationEventBase +``` + +**Inheritance** + +* Class [ProductAttributePresetNotificationEventBase<TEntity>](productattributepresetnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### ProductAttributePresetDeletingNotification + +```csharp +public ProductAttributePresetDeletingNotification( + ProductAttributePresetReadOnly productAttributePreset) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributepresetnotificationeventbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributepresetnotificationeventbase-1.md new file mode 100644 index 00000000000..aeb71ab4707 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributepresetnotificationeventbase-1.md @@ -0,0 +1,37 @@ +--- +title: ProductAttributePresetNotificationEventBase +description: API reference for ProductAttributePresetNotificationEventBase in Umbraco Commerce +--- +## ProductAttributePresetNotificationEventBase<TEntity> + +```csharp +public abstract class ProductAttributePresetNotificationEventBase : NotificationEventBase + where TEntity : ProductAttributePresetReadOnly +``` + +**Inheritance** + +* Class [NotificationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/notificationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### ProductAttributePresetNotificationEventBase<TEntity> + +```csharp +public ProductAttributePresetNotificationEventBase(TEntity productAttributePreset) +``` + + +### Properties + +#### ProductAttributePreset + +```csharp +public TEntity ProductAttributePreset { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributepresetsavednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributepresetsavednotification.md new file mode 100644 index 00000000000..e9076102409 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributepresetsavednotification.md @@ -0,0 +1,29 @@ +--- +title: ProductAttributePresetSavedNotification +description: API reference for ProductAttributePresetSavedNotification in Umbraco Commerce +--- +## ProductAttributePresetSavedNotification + +```csharp +public class ProductAttributePresetSavedNotification : + ProductAttributePresetNotificationEventBase +``` + +**Inheritance** + +* Class [ProductAttributePresetNotificationEventBase<TEntity>](productattributepresetnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### ProductAttributePresetSavedNotification + +```csharp +public ProductAttributePresetSavedNotification( + ProductAttributePresetReadOnly productAttributePreset) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributepresetsavingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributepresetsavingnotification.md new file mode 100644 index 00000000000..9448322d33f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributepresetsavingnotification.md @@ -0,0 +1,28 @@ +--- +title: ProductAttributePresetSavingNotification +description: API reference for ProductAttributePresetSavingNotification in Umbraco Commerce +--- +## ProductAttributePresetSavingNotification + +```csharp +public class ProductAttributePresetSavingNotification : + ProductAttributePresetNotificationEventBase +``` + +**Inheritance** + +* Class [ProductAttributePresetNotificationEventBase<TEntity>](productattributepresetnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### ProductAttributePresetSavingNotification + +```csharp +public ProductAttributePresetSavingNotification(ProductAttributePreset productAttributePreset) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributepresetupdatednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributepresetupdatednotification.md new file mode 100644 index 00000000000..b7aeed8c03a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributepresetupdatednotification.md @@ -0,0 +1,29 @@ +--- +title: ProductAttributePresetUpdatedNotification +description: API reference for ProductAttributePresetUpdatedNotification in Umbraco Commerce +--- +## ProductAttributePresetUpdatedNotification + +```csharp +public class ProductAttributePresetUpdatedNotification : + ProductAttributePresetNotificationEventBase +``` + +**Inheritance** + +* Class [ProductAttributePresetNotificationEventBase<TEntity>](productattributepresetnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### ProductAttributePresetUpdatedNotification + +```csharp +public ProductAttributePresetUpdatedNotification( + ProductAttributePresetReadOnly productAttributePreset) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributepresetupdatingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributepresetupdatingnotification.md new file mode 100644 index 00000000000..875d87a0936 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributepresetupdatingnotification.md @@ -0,0 +1,28 @@ +--- +title: ProductAttributePresetUpdatingNotification +description: API reference for ProductAttributePresetUpdatingNotification in Umbraco Commerce +--- +## ProductAttributePresetUpdatingNotification + +```csharp +public class ProductAttributePresetUpdatingNotification : + ProductAttributePresetNotificationEventBase +``` + +**Inheritance** + +* Class [ProductAttributePresetNotificationEventBase<TEntity>](productattributepresetnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### ProductAttributePresetUpdatingNotification + +```csharp +public ProductAttributePresetUpdatingNotification(ProductAttributePreset productAttributePreset) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributesavednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributesavednotification.md new file mode 100644 index 00000000000..6ec09deaf9c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributesavednotification.md @@ -0,0 +1,28 @@ +--- +title: ProductAttributeSavedNotification +description: API reference for ProductAttributeSavedNotification in Umbraco Commerce +--- +## ProductAttributeSavedNotification + +```csharp +public class ProductAttributeSavedNotification : + ProductAttributeNotificationEventBase +``` + +**Inheritance** + +* Class [ProductAttributeNotificationEventBase<TEntity>](productattributenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### ProductAttributeSavedNotification + +```csharp +public ProductAttributeSavedNotification(ProductAttributeReadOnly productAttribute) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributesavingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributesavingnotification.md new file mode 100644 index 00000000000..ddfcc9487bf --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributesavingnotification.md @@ -0,0 +1,28 @@ +--- +title: ProductAttributeSavingNotification +description: API reference for ProductAttributeSavingNotification in Umbraco Commerce +--- +## ProductAttributeSavingNotification + +```csharp +public class ProductAttributeSavingNotification : + ProductAttributeNotificationEventBase +``` + +**Inheritance** + +* Class [ProductAttributeNotificationEventBase<TEntity>](productattributenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### ProductAttributeSavingNotification + +```csharp +public ProductAttributeSavingNotification(ProductAttribute productAttribute) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributeupdatednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributeupdatednotification.md new file mode 100644 index 00000000000..bc48eeda7f2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributeupdatednotification.md @@ -0,0 +1,28 @@ +--- +title: ProductAttributeUpdatedNotification +description: API reference for ProductAttributeUpdatedNotification in Umbraco Commerce +--- +## ProductAttributeUpdatedNotification + +```csharp +public class ProductAttributeUpdatedNotification : + ProductAttributeNotificationEventBase +``` + +**Inheritance** + +* Class [ProductAttributeNotificationEventBase<TEntity>](productattributenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### ProductAttributeUpdatedNotification + +```csharp +public ProductAttributeUpdatedNotification(ProductAttributeReadOnly productAttribute) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributeupdatingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributeupdatingnotification.md new file mode 100644 index 00000000000..2315bbde81a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/productattributeupdatingnotification.md @@ -0,0 +1,28 @@ +--- +title: ProductAttributeUpdatingNotification +description: API reference for ProductAttributeUpdatingNotification in Umbraco Commerce +--- +## ProductAttributeUpdatingNotification + +```csharp +public class ProductAttributeUpdatingNotification : + ProductAttributeNotificationEventBase +``` + +**Inheritance** + +* Class [ProductAttributeNotificationEventBase<TEntity>](productattributenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### ProductAttributeUpdatingNotification + +```csharp +public ProductAttributeUpdatingNotification(ProductAttribute productAttribute) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/regioncreatednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/regioncreatednotification.md new file mode 100644 index 00000000000..832fd98421c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/regioncreatednotification.md @@ -0,0 +1,27 @@ +--- +title: RegionCreatedNotification +description: API reference for RegionCreatedNotification in Umbraco Commerce +--- +## RegionCreatedNotification + +```csharp +public class RegionCreatedNotification : RegionNotificationEventBase +``` + +**Inheritance** + +* Class [RegionNotificationEventBase<TEntity>](regionnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### RegionCreatedNotification + +```csharp +public RegionCreatedNotification(RegionReadOnly region) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/regioncreatingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/regioncreatingnotification.md new file mode 100644 index 00000000000..e8df0e80132 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/regioncreatingnotification.md @@ -0,0 +1,27 @@ +--- +title: RegionCreatingNotification +description: API reference for RegionCreatingNotification in Umbraco Commerce +--- +## RegionCreatingNotification + +```csharp +public class RegionCreatingNotification : RegionNotificationEventBase +``` + +**Inheritance** + +* Class [RegionNotificationEventBase<TEntity>](regionnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### RegionCreatingNotification + +```csharp +public RegionCreatingNotification(Region region) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/regiondeletednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/regiondeletednotification.md new file mode 100644 index 00000000000..a41759ebedb --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/regiondeletednotification.md @@ -0,0 +1,27 @@ +--- +title: RegionDeletedNotification +description: API reference for RegionDeletedNotification in Umbraco Commerce +--- +## RegionDeletedNotification + +```csharp +public class RegionDeletedNotification : RegionNotificationEventBase +``` + +**Inheritance** + +* Class [RegionNotificationEventBase<TEntity>](regionnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### RegionDeletedNotification + +```csharp +public RegionDeletedNotification(RegionReadOnly region) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/regiondeletingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/regiondeletingnotification.md new file mode 100644 index 00000000000..1937d0edddd --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/regiondeletingnotification.md @@ -0,0 +1,27 @@ +--- +title: RegionDeletingNotification +description: API reference for RegionDeletingNotification in Umbraco Commerce +--- +## RegionDeletingNotification + +```csharp +public class RegionDeletingNotification : RegionNotificationEventBase +``` + +**Inheritance** + +* Class [RegionNotificationEventBase<TEntity>](regionnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### RegionDeletingNotification + +```csharp +public RegionDeletingNotification(RegionReadOnly region) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/regionnotificationeventbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/regionnotificationeventbase-1.md new file mode 100644 index 00000000000..a6523df44c4 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/regionnotificationeventbase-1.md @@ -0,0 +1,37 @@ +--- +title: RegionNotificationEventBase +description: API reference for RegionNotificationEventBase in Umbraco Commerce +--- +## RegionNotificationEventBase<TEntity> + +```csharp +public abstract class RegionNotificationEventBase : NotificationEventBase + where TEntity : RegionReadOnly +``` + +**Inheritance** + +* Class [NotificationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/notificationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### RegionNotificationEventBase<TEntity> + +```csharp +public RegionNotificationEventBase(TEntity region) +``` + + +### Properties + +#### Region + +```csharp +public TEntity Region { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/regionsavednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/regionsavednotification.md new file mode 100644 index 00000000000..2af031f8e4e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/regionsavednotification.md @@ -0,0 +1,27 @@ +--- +title: RegionSavedNotification +description: API reference for RegionSavedNotification in Umbraco Commerce +--- +## RegionSavedNotification + +```csharp +public class RegionSavedNotification : RegionNotificationEventBase +``` + +**Inheritance** + +* Class [RegionNotificationEventBase<TEntity>](regionnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### RegionSavedNotification + +```csharp +public RegionSavedNotification(RegionReadOnly region) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/regionsavingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/regionsavingnotification.md new file mode 100644 index 00000000000..43a9887b2d4 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/regionsavingnotification.md @@ -0,0 +1,27 @@ +--- +title: RegionSavingNotification +description: API reference for RegionSavingNotification in Umbraco Commerce +--- +## RegionSavingNotification + +```csharp +public class RegionSavingNotification : RegionNotificationEventBase +``` + +**Inheritance** + +* Class [RegionNotificationEventBase<TEntity>](regionnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### RegionSavingNotification + +```csharp +public RegionSavingNotification(Region region) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/regionupdatednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/regionupdatednotification.md new file mode 100644 index 00000000000..9634eedf142 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/regionupdatednotification.md @@ -0,0 +1,27 @@ +--- +title: RegionUpdatedNotification +description: API reference for RegionUpdatedNotification in Umbraco Commerce +--- +## RegionUpdatedNotification + +```csharp +public class RegionUpdatedNotification : RegionNotificationEventBase +``` + +**Inheritance** + +* Class [RegionNotificationEventBase<TEntity>](regionnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### RegionUpdatedNotification + +```csharp +public RegionUpdatedNotification(RegionReadOnly region) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/regionupdatingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/regionupdatingnotification.md new file mode 100644 index 00000000000..ceda7fc2031 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/regionupdatingnotification.md @@ -0,0 +1,27 @@ +--- +title: RegionUpdatingNotification +description: API reference for RegionUpdatingNotification in Umbraco Commerce +--- +## RegionUpdatingNotification + +```csharp +public class RegionUpdatingNotification : RegionNotificationEventBase +``` + +**Inheritance** + +* Class [RegionNotificationEventBase<TEntity>](regionnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### RegionUpdatingNotification + +```csharp +public RegionUpdatingNotification(Region region) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/shippingmethodcreatednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/shippingmethodcreatednotification.md new file mode 100644 index 00000000000..df7458faa5d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/shippingmethodcreatednotification.md @@ -0,0 +1,28 @@ +--- +title: ShippingMethodCreatedNotification +description: API reference for ShippingMethodCreatedNotification in Umbraco Commerce +--- +## ShippingMethodCreatedNotification + +```csharp +public class ShippingMethodCreatedNotification : + ShippingMethodNotificationEventBase +``` + +**Inheritance** + +* Class [ShippingMethodNotificationEventBase<TEntity>](shippingmethodnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### ShippingMethodCreatedNotification + +```csharp +public ShippingMethodCreatedNotification(ShippingMethodReadOnly shippingMethod) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/shippingmethodcreatingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/shippingmethodcreatingnotification.md new file mode 100644 index 00000000000..d36f829bd31 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/shippingmethodcreatingnotification.md @@ -0,0 +1,28 @@ +--- +title: ShippingMethodCreatingNotification +description: API reference for ShippingMethodCreatingNotification in Umbraco Commerce +--- +## ShippingMethodCreatingNotification + +```csharp +public class ShippingMethodCreatingNotification : + ShippingMethodNotificationEventBase +``` + +**Inheritance** + +* Class [ShippingMethodNotificationEventBase<TEntity>](shippingmethodnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### ShippingMethodCreatingNotification + +```csharp +public ShippingMethodCreatingNotification(ShippingMethod shippingMethod) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/shippingmethoddeletednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/shippingmethoddeletednotification.md new file mode 100644 index 00000000000..e20080f2138 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/shippingmethoddeletednotification.md @@ -0,0 +1,28 @@ +--- +title: ShippingMethodDeletedNotification +description: API reference for ShippingMethodDeletedNotification in Umbraco Commerce +--- +## ShippingMethodDeletedNotification + +```csharp +public class ShippingMethodDeletedNotification : + ShippingMethodNotificationEventBase +``` + +**Inheritance** + +* Class [ShippingMethodNotificationEventBase<TEntity>](shippingmethodnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### ShippingMethodDeletedNotification + +```csharp +public ShippingMethodDeletedNotification(ShippingMethodReadOnly shippingMethod) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/shippingmethoddeletingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/shippingmethoddeletingnotification.md new file mode 100644 index 00000000000..bb6eb54bb40 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/shippingmethoddeletingnotification.md @@ -0,0 +1,28 @@ +--- +title: ShippingMethodDeletingNotification +description: API reference for ShippingMethodDeletingNotification in Umbraco Commerce +--- +## ShippingMethodDeletingNotification + +```csharp +public class ShippingMethodDeletingNotification : + ShippingMethodNotificationEventBase +``` + +**Inheritance** + +* Class [ShippingMethodNotificationEventBase<TEntity>](shippingmethodnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### ShippingMethodDeletingNotification + +```csharp +public ShippingMethodDeletingNotification(ShippingMethodReadOnly shippingMethod) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/shippingmethodnotificationeventbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/shippingmethodnotificationeventbase-1.md new file mode 100644 index 00000000000..e11d4da009c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/shippingmethodnotificationeventbase-1.md @@ -0,0 +1,37 @@ +--- +title: ShippingMethodNotificationEventBase +description: API reference for ShippingMethodNotificationEventBase in Umbraco Commerce +--- +## ShippingMethodNotificationEventBase<TEntity> + +```csharp +public abstract class ShippingMethodNotificationEventBase : NotificationEventBase + where TEntity : ShippingMethodReadOnly +``` + +**Inheritance** + +* Class [NotificationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/notificationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### ShippingMethodNotificationEventBase<TEntity> + +```csharp +public ShippingMethodNotificationEventBase(TEntity shippingMethod) +``` + + +### Properties + +#### ShippingMethod + +```csharp +public TEntity ShippingMethod { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/shippingmethodsavednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/shippingmethodsavednotification.md new file mode 100644 index 00000000000..554878c72f4 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/shippingmethodsavednotification.md @@ -0,0 +1,28 @@ +--- +title: ShippingMethodSavedNotification +description: API reference for ShippingMethodSavedNotification in Umbraco Commerce +--- +## ShippingMethodSavedNotification + +```csharp +public class ShippingMethodSavedNotification : + ShippingMethodNotificationEventBase +``` + +**Inheritance** + +* Class [ShippingMethodNotificationEventBase<TEntity>](shippingmethodnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### ShippingMethodSavedNotification + +```csharp +public ShippingMethodSavedNotification(ShippingMethodReadOnly shippingMethod) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/shippingmethodsavingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/shippingmethodsavingnotification.md new file mode 100644 index 00000000000..76f9a3919db --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/shippingmethodsavingnotification.md @@ -0,0 +1,27 @@ +--- +title: ShippingMethodSavingNotification +description: API reference for ShippingMethodSavingNotification in Umbraco Commerce +--- +## ShippingMethodSavingNotification + +```csharp +public class ShippingMethodSavingNotification : ShippingMethodNotificationEventBase +``` + +**Inheritance** + +* Class [ShippingMethodNotificationEventBase<TEntity>](shippingmethodnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### ShippingMethodSavingNotification + +```csharp +public ShippingMethodSavingNotification(ShippingMethod shippingMethod) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/shippingmethodupdatednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/shippingmethodupdatednotification.md new file mode 100644 index 00000000000..5366f9a848c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/shippingmethodupdatednotification.md @@ -0,0 +1,28 @@ +--- +title: ShippingMethodUpdatedNotification +description: API reference for ShippingMethodUpdatedNotification in Umbraco Commerce +--- +## ShippingMethodUpdatedNotification + +```csharp +public class ShippingMethodUpdatedNotification : + ShippingMethodNotificationEventBase +``` + +**Inheritance** + +* Class [ShippingMethodNotificationEventBase<TEntity>](shippingmethodnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### ShippingMethodUpdatedNotification + +```csharp +public ShippingMethodUpdatedNotification(ShippingMethodReadOnly shippingMethod) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/shippingmethodupdatingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/shippingmethodupdatingnotification.md new file mode 100644 index 00000000000..de2d668f1e3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/shippingmethodupdatingnotification.md @@ -0,0 +1,28 @@ +--- +title: ShippingMethodUpdatingNotification +description: API reference for ShippingMethodUpdatingNotification in Umbraco Commerce +--- +## ShippingMethodUpdatingNotification + +```csharp +public class ShippingMethodUpdatingNotification : + ShippingMethodNotificationEventBase +``` + +**Inheritance** + +* Class [ShippingMethodNotificationEventBase<TEntity>](shippingmethodnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### ShippingMethodUpdatingNotification + +```csharp +public ShippingMethodUpdatingNotification(ShippingMethod shippingMethod) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/stockchangednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/stockchangednotification.md new file mode 100644 index 00000000000..8ca3b91f3d5 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/stockchangednotification.md @@ -0,0 +1,73 @@ +--- +title: StockChangedNotification +description: API reference for StockChangedNotification in Umbraco Commerce +--- +## StockChangedNotification + +```csharp +public class StockChangedNotification : NotificationEventBase +``` + +**Inheritance** + +* Class [NotificationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/notificationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### StockChangedNotification (1 of 2) + +```csharp +public StockChangedNotification(Guid storeId, string productReference, + ChangingValue value) +``` + +--- + +#### StockChangedNotification (2 of 2) + +```csharp +public StockChangedNotification(Guid storeId, string productReference, + string productVariantReference, ChangingValue value) +``` + + +### Properties + +#### ProductReference + +```csharp +public string ProductReference { get; } +``` + + +--- + +#### ProductVariantReference + +```csharp +public string ProductVariantReference { get; } +``` + + +--- + +#### StoreId + +```csharp +public Guid StoreId { get; } +``` + + +--- + +#### Value + +```csharp +public ChangingValue Value { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/stockchangingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/stockchangingnotification.md new file mode 100644 index 00000000000..d5b7ca8a4d3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/stockchangingnotification.md @@ -0,0 +1,73 @@ +--- +title: StockChangingNotification +description: API reference for StockChangingNotification in Umbraco Commerce +--- +## StockChangingNotification + +```csharp +public class StockChangingNotification : NotificationEventBase +``` + +**Inheritance** + +* Class [NotificationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/notificationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### StockChangingNotification (1 of 2) + +```csharp +public StockChangingNotification(Guid storeId, string productReference, + ChangingValue value) +``` + +--- + +#### StockChangingNotification (2 of 2) + +```csharp +public StockChangingNotification(Guid storeId, string productReference, + string productVariantReference, ChangingValue value) +``` + + +### Properties + +#### ProductReference + +```csharp +public string ProductReference { get; } +``` + + +--- + +#### ProductVariantReference + +```csharp +public string ProductVariantReference { get; } +``` + + +--- + +#### StoreId + +```csharp +public Guid StoreId { get; } +``` + + +--- + +#### Value + +```csharp +public ChangingValue Value { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/storecreatednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/storecreatednotification.md new file mode 100644 index 00000000000..6f7815a0e8e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/storecreatednotification.md @@ -0,0 +1,27 @@ +--- +title: StoreCreatedNotification +description: API reference for StoreCreatedNotification in Umbraco Commerce +--- +## StoreCreatedNotification + +```csharp +public class StoreCreatedNotification : StoreNotificationEventBase +``` + +**Inheritance** + +* Class [StoreNotificationEventBase<TEntity>](storenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### StoreCreatedNotification + +```csharp +public StoreCreatedNotification(StoreReadOnly store) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/storecreatingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/storecreatingnotification.md new file mode 100644 index 00000000000..babcd50f4f0 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/storecreatingnotification.md @@ -0,0 +1,27 @@ +--- +title: StoreCreatingNotification +description: API reference for StoreCreatingNotification in Umbraco Commerce +--- +## StoreCreatingNotification + +```csharp +public class StoreCreatingNotification : StoreNotificationEventBase +``` + +**Inheritance** + +* Class [StoreNotificationEventBase<TEntity>](storenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### StoreCreatingNotification + +```csharp +public StoreCreatingNotification(Store store) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/storedeletednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/storedeletednotification.md new file mode 100644 index 00000000000..6d4d1d7e288 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/storedeletednotification.md @@ -0,0 +1,27 @@ +--- +title: StoreDeletedNotification +description: API reference for StoreDeletedNotification in Umbraco Commerce +--- +## StoreDeletedNotification + +```csharp +public class StoreDeletedNotification : StoreNotificationEventBase +``` + +**Inheritance** + +* Class [StoreNotificationEventBase<TEntity>](storenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### StoreDeletedNotification + +```csharp +public StoreDeletedNotification(StoreReadOnly store) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/storedeletingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/storedeletingnotification.md new file mode 100644 index 00000000000..36e19c974f8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/storedeletingnotification.md @@ -0,0 +1,27 @@ +--- +title: StoreDeletingNotification +description: API reference for StoreDeletingNotification in Umbraco Commerce +--- +## StoreDeletingNotification + +```csharp +public class StoreDeletingNotification : StoreNotificationEventBase +``` + +**Inheritance** + +* Class [StoreNotificationEventBase<TEntity>](storenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### StoreDeletingNotification + +```csharp +public StoreDeletingNotification(StoreReadOnly store) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/storenotificationeventbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/storenotificationeventbase-1.md new file mode 100644 index 00000000000..e7305feea3e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/storenotificationeventbase-1.md @@ -0,0 +1,37 @@ +--- +title: StoreNotificationEventBase +description: API reference for StoreNotificationEventBase in Umbraco Commerce +--- +## StoreNotificationEventBase<TEntity> + +```csharp +public abstract class StoreNotificationEventBase : NotificationEventBase + where TEntity : StoreReadOnly +``` + +**Inheritance** + +* Class [NotificationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/notificationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### StoreNotificationEventBase<TEntity> + +```csharp +public StoreNotificationEventBase(TEntity store) +``` + + +### Properties + +#### Store + +```csharp +public TEntity Store { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/storesavednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/storesavednotification.md new file mode 100644 index 00000000000..4c79bb0af8d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/storesavednotification.md @@ -0,0 +1,27 @@ +--- +title: StoreSavedNotification +description: API reference for StoreSavedNotification in Umbraco Commerce +--- +## StoreSavedNotification + +```csharp +public class StoreSavedNotification : StoreNotificationEventBase +``` + +**Inheritance** + +* Class [StoreNotificationEventBase<TEntity>](storenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### StoreSavedNotification + +```csharp +public StoreSavedNotification(StoreReadOnly store) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/storesavingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/storesavingnotification.md new file mode 100644 index 00000000000..225331d83c4 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/storesavingnotification.md @@ -0,0 +1,27 @@ +--- +title: StoreSavingNotification +description: API reference for StoreSavingNotification in Umbraco Commerce +--- +## StoreSavingNotification + +```csharp +public class StoreSavingNotification : StoreNotificationEventBase +``` + +**Inheritance** + +* Class [StoreNotificationEventBase<TEntity>](storenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### StoreSavingNotification + +```csharp +public StoreSavingNotification(Store store) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/storeupdatednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/storeupdatednotification.md new file mode 100644 index 00000000000..3766a3142b6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/storeupdatednotification.md @@ -0,0 +1,27 @@ +--- +title: StoreUpdatedNotification +description: API reference for StoreUpdatedNotification in Umbraco Commerce +--- +## StoreUpdatedNotification + +```csharp +public class StoreUpdatedNotification : StoreNotificationEventBase +``` + +**Inheritance** + +* Class [StoreNotificationEventBase<TEntity>](storenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### StoreUpdatedNotification + +```csharp +public StoreUpdatedNotification(StoreReadOnly store) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/storeupdatingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/storeupdatingnotification.md new file mode 100644 index 00000000000..4474cbc5240 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/storeupdatingnotification.md @@ -0,0 +1,27 @@ +--- +title: StoreUpdatingNotification +description: API reference for StoreUpdatingNotification in Umbraco Commerce +--- +## StoreUpdatingNotification + +```csharp +public class StoreUpdatingNotification : StoreNotificationEventBase +``` + +**Inheritance** + +* Class [StoreNotificationEventBase<TEntity>](storenotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### StoreUpdatingNotification + +```csharp +public StoreUpdatingNotification(Store store) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/taxclasscreatednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/taxclasscreatednotification.md new file mode 100644 index 00000000000..5996bbbec71 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/taxclasscreatednotification.md @@ -0,0 +1,27 @@ +--- +title: TaxClassCreatedNotification +description: API reference for TaxClassCreatedNotification in Umbraco Commerce +--- +## TaxClassCreatedNotification + +```csharp +public class TaxClassCreatedNotification : TaxClassNotificationEventBase +``` + +**Inheritance** + +* Class [TaxClassNotificationEventBase<TEntity>](taxclassnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### TaxClassCreatedNotification + +```csharp +public TaxClassCreatedNotification(TaxClassReadOnly taxClass) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/taxclasscreatingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/taxclasscreatingnotification.md new file mode 100644 index 00000000000..b47fb73a352 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/taxclasscreatingnotification.md @@ -0,0 +1,27 @@ +--- +title: TaxClassCreatingNotification +description: API reference for TaxClassCreatingNotification in Umbraco Commerce +--- +## TaxClassCreatingNotification + +```csharp +public class TaxClassCreatingNotification : TaxClassNotificationEventBase +``` + +**Inheritance** + +* Class [TaxClassNotificationEventBase<TEntity>](taxclassnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### TaxClassCreatingNotification + +```csharp +public TaxClassCreatingNotification(TaxClass taxClass) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/taxclassdeletednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/taxclassdeletednotification.md new file mode 100644 index 00000000000..9dab745d73f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/taxclassdeletednotification.md @@ -0,0 +1,27 @@ +--- +title: TaxClassDeletedNotification +description: API reference for TaxClassDeletedNotification in Umbraco Commerce +--- +## TaxClassDeletedNotification + +```csharp +public class TaxClassDeletedNotification : TaxClassNotificationEventBase +``` + +**Inheritance** + +* Class [TaxClassNotificationEventBase<TEntity>](taxclassnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### TaxClassDeletedNotification + +```csharp +public TaxClassDeletedNotification(TaxClassReadOnly taxClass) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/taxclassdeletingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/taxclassdeletingnotification.md new file mode 100644 index 00000000000..a064a59fcb6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/taxclassdeletingnotification.md @@ -0,0 +1,27 @@ +--- +title: TaxClassDeletingNotification +description: API reference for TaxClassDeletingNotification in Umbraco Commerce +--- +## TaxClassDeletingNotification + +```csharp +public class TaxClassDeletingNotification : TaxClassNotificationEventBase +``` + +**Inheritance** + +* Class [TaxClassNotificationEventBase<TEntity>](taxclassnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### TaxClassDeletingNotification + +```csharp +public TaxClassDeletingNotification(TaxClassReadOnly taxClass) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/taxclassnotificationeventbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/taxclassnotificationeventbase-1.md new file mode 100644 index 00000000000..5dc6e2638ae --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/taxclassnotificationeventbase-1.md @@ -0,0 +1,37 @@ +--- +title: TaxClassNotificationEventBase +description: API reference for TaxClassNotificationEventBase in Umbraco Commerce +--- +## TaxClassNotificationEventBase<TEntity> + +```csharp +public abstract class TaxClassNotificationEventBase : NotificationEventBase + where TEntity : TaxClassReadOnly +``` + +**Inheritance** + +* Class [NotificationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/notificationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### TaxClassNotificationEventBase<TEntity> + +```csharp +public TaxClassNotificationEventBase(TEntity taxClass) +``` + + +### Properties + +#### TaxClass + +```csharp +public TEntity TaxClass { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/taxclasssavednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/taxclasssavednotification.md new file mode 100644 index 00000000000..ccf68a12112 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/taxclasssavednotification.md @@ -0,0 +1,27 @@ +--- +title: TaxClassSavedNotification +description: API reference for TaxClassSavedNotification in Umbraco Commerce +--- +## TaxClassSavedNotification + +```csharp +public class TaxClassSavedNotification : TaxClassNotificationEventBase +``` + +**Inheritance** + +* Class [TaxClassNotificationEventBase<TEntity>](taxclassnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### TaxClassSavedNotification + +```csharp +public TaxClassSavedNotification(TaxClassReadOnly taxClass) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/taxclasssavingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/taxclasssavingnotification.md new file mode 100644 index 00000000000..5aac9779540 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/taxclasssavingnotification.md @@ -0,0 +1,27 @@ +--- +title: TaxClassSavingNotification +description: API reference for TaxClassSavingNotification in Umbraco Commerce +--- +## TaxClassSavingNotification + +```csharp +public class TaxClassSavingNotification : TaxClassNotificationEventBase +``` + +**Inheritance** + +* Class [TaxClassNotificationEventBase<TEntity>](taxclassnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### TaxClassSavingNotification + +```csharp +public TaxClassSavingNotification(TaxClass taxClass) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/taxclassupdatednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/taxclassupdatednotification.md new file mode 100644 index 00000000000..fa7285fbdd3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/taxclassupdatednotification.md @@ -0,0 +1,27 @@ +--- +title: TaxClassUpdatedNotification +description: API reference for TaxClassUpdatedNotification in Umbraco Commerce +--- +## TaxClassUpdatedNotification + +```csharp +public class TaxClassUpdatedNotification : TaxClassNotificationEventBase +``` + +**Inheritance** + +* Class [TaxClassNotificationEventBase<TEntity>](taxclassnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### TaxClassUpdatedNotification + +```csharp +public TaxClassUpdatedNotification(TaxClassReadOnly taxClass) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/taxclassupdatingnotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/taxclassupdatingnotification.md new file mode 100644 index 00000000000..31f44b7a9b1 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/taxclassupdatingnotification.md @@ -0,0 +1,27 @@ +--- +title: TaxClassUpdatingNotification +description: API reference for TaxClassUpdatingNotification in Umbraco Commerce +--- +## TaxClassUpdatingNotification + +```csharp +public class TaxClassUpdatingNotification : TaxClassNotificationEventBase +``` + +**Inheritance** + +* Class [TaxClassNotificationEventBase<TEntity>](taxclassnotificationeventbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### TaxClassUpdatingNotification + +```csharp +public TaxClassUpdatingNotification(TaxClass taxClass) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/unitofworkcreatednotification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/unitofworkcreatednotification.md new file mode 100644 index 00000000000..03d7945e18e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-notification/unitofworkcreatednotification.md @@ -0,0 +1,36 @@ +--- +title: UnitOfWorkCreatedNotification +description: API reference for UnitOfWorkCreatedNotification in Umbraco Commerce +--- +## UnitOfWorkCreatedNotification + +```csharp +public class UnitOfWorkCreatedNotification : NotificationEventBase +``` + +**Inheritance** + +* Class [NotificationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/notificationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Notification](README.md) + +### Constructors + +#### UnitOfWorkCreatedNotification + +```csharp +public UnitOfWorkCreatedNotification(IUnitOfWork unitOfWork) +``` + + +### Properties + +#### UnitOfWork + +```csharp +public IUnitOfWork UnitOfWork { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-country/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-country/README.md new file mode 100644 index 00000000000..e33417e2862 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-country/README.md @@ -0,0 +1,16 @@ +--- +title: Umbraco.Commerce.Core.Events.Validation.Handlers.Country +description: API reference for Umbraco.Commerce.Core.Events.Validation.Handlers.Country in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Events.Validation.Handlers.Country namespace + +| Public Type | Description | +| --- | --- | +| class [ValidateCountryCodeFormat](validatecountrycodeformat.md) | | +| class [ValidateDefaultCurrencyBelongsToCountryStore](validatedefaultcurrencybelongstocountrystore.md) | | +| class [ValidateDefaultPaymentMethodBelongsToCountryStore](validatedefaultpaymentmethodbelongstocountrystore.md) | | +| class [ValidateDefaultShippingMethodBelongsToCountryStore](validatedefaultshippingmethodbelongstocountrystore.md) | | +| class [ValidateNotStoreDefaultCountry](validatenotstoredefaultcountry.md) | | +| class [ValidateUniqueCountryCode](validateuniquecountrycode.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-country/validatecountrycodeformat.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-country/validatecountrycodeformat.md new file mode 100644 index 00000000000..028e1ac7b4a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-country/validatecountrycodeformat.md @@ -0,0 +1,38 @@ +--- +title: ValidateCountryCodeFormat +description: API reference for ValidateCountryCodeFormat in Umbraco Commerce +--- +## ValidateCountryCodeFormat + +```csharp +public class ValidateCountryCodeFormat : ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Country](README.md) + +### Constructors + +#### ValidateCountryCodeFormat + +The default constructor. + +```csharp +public ValidateCountryCodeFormat() +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateCountryCodeChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-country/validatedefaultcurrencybelongstocountrystore.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-country/validatedefaultcurrencybelongstocountrystore.md new file mode 100644 index 00000000000..6f4480455fe --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-country/validatedefaultcurrencybelongstocountrystore.md @@ -0,0 +1,37 @@ +--- +title: ValidateDefaultCurrencyBelongsToCountryStore +description: API reference for ValidateDefaultCurrencyBelongsToCountryStore in Umbraco Commerce +--- +## ValidateDefaultCurrencyBelongsToCountryStore + +```csharp +public class ValidateDefaultCurrencyBelongsToCountryStore : + ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Country](README.md) + +### Constructors + +#### ValidateDefaultCurrencyBelongsToCountryStore + +```csharp +public ValidateDefaultCurrencyBelongsToCountryStore(ICurrencyService currencyService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateCountryDefaultCurrencyChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-country/validatedefaultpaymentmethodbelongstocountrystore.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-country/validatedefaultpaymentmethodbelongstocountrystore.md new file mode 100644 index 00000000000..92a84802de6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-country/validatedefaultpaymentmethodbelongstocountrystore.md @@ -0,0 +1,37 @@ +--- +title: ValidateDefaultPaymentMethodBelongsToCountryStore +description: API reference for ValidateDefaultPaymentMethodBelongsToCountryStore in Umbraco Commerce +--- +## ValidateDefaultPaymentMethodBelongsToCountryStore + +```csharp +public class ValidateDefaultPaymentMethodBelongsToCountryStore : + ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Country](README.md) + +### Constructors + +#### ValidateDefaultPaymentMethodBelongsToCountryStore + +```csharp +public ValidateDefaultPaymentMethodBelongsToCountryStore(IPaymentMethodService paymentMethodService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateCountryDefaultPaymentMethodChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-country/validatedefaultshippingmethodbelongstocountrystore.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-country/validatedefaultshippingmethodbelongstocountrystore.md new file mode 100644 index 00000000000..36d17ae8087 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-country/validatedefaultshippingmethodbelongstocountrystore.md @@ -0,0 +1,38 @@ +--- +title: ValidateDefaultShippingMethodBelongsToCountryStore +description: API reference for ValidateDefaultShippingMethodBelongsToCountryStore in Umbraco Commerce +--- +## ValidateDefaultShippingMethodBelongsToCountryStore + +```csharp +public class ValidateDefaultShippingMethodBelongsToCountryStore : + ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Country](README.md) + +### Constructors + +#### ValidateDefaultShippingMethodBelongsToCountryStore + +```csharp +public ValidateDefaultShippingMethodBelongsToCountryStore( + IShippingMethodService shippingMethodService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateCountryDefaultShippingMethodChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-country/validatenotstoredefaultcountry.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-country/validatenotstoredefaultcountry.md new file mode 100644 index 00000000000..e62f23bac2b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-country/validatenotstoredefaultcountry.md @@ -0,0 +1,36 @@ +--- +title: ValidateNotStoreDefaultCountry +description: API reference for ValidateNotStoreDefaultCountry in Umbraco Commerce +--- +## ValidateNotStoreDefaultCountry + +```csharp +public class ValidateNotStoreDefaultCountry : ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Country](README.md) + +### Constructors + +#### ValidateNotStoreDefaultCountry + +```csharp +public ValidateNotStoreDefaultCountry(IStoreService storeService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateCountryDelete evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-country/validateuniquecountrycode.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-country/validateuniquecountrycode.md new file mode 100644 index 00000000000..3d176c9859c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-country/validateuniquecountrycode.md @@ -0,0 +1,36 @@ +--- +title: ValidateUniqueCountryCode +description: API reference for ValidateUniqueCountryCode in Umbraco Commerce +--- +## ValidateUniqueCountryCode + +```csharp +public class ValidateUniqueCountryCode : ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Country](README.md) + +### Constructors + +#### ValidateUniqueCountryCode + +```csharp +public ValidateUniqueCountryCode(ICountryService countryService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateCountryCodeChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-currency/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-currency/README.md new file mode 100644 index 00000000000..666572fdb41 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-currency/README.md @@ -0,0 +1,16 @@ +--- +title: Umbraco.Commerce.Core.Events.Validation.Handlers.Currency +description: API reference for Umbraco.Commerce.Core.Events.Validation.Handlers.Currency in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Events.Validation.Handlers.Currency namespace + +| Public Type | Description | +| --- | --- | +| class [ValidateAllowedCountryBelongsToCurrencyStore](validateallowedcountrybelongstocurrencystore.md) | | +| class [ValidateCulture](validateculture.md) | | +| class [ValidateCurrencyCodeFormat](validatecurrencycodeformat.md) | | +| class [ValidateNotCountryDefaultCurrency](validatenotcountrydefaultcurrency.md) | | +| class [ValidateNotStoreBaseCurrency](validatenotstorebasecurrency.md) | | +| class [ValidateUniqueCurrencyCode](validateuniquecurrencycode.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-currency/validateallowedcountrybelongstocurrencystore.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-currency/validateallowedcountrybelongstocurrencystore.md new file mode 100644 index 00000000000..c105f91f3bd --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-currency/validateallowedcountrybelongstocurrencystore.md @@ -0,0 +1,46 @@ +--- +title: ValidateAllowedCountryBelongsToCurrencyStore +description: API reference for ValidateAllowedCountryBelongsToCurrencyStore in Umbraco Commerce +--- +## ValidateAllowedCountryBelongsToCurrencyStore + +```csharp +public class ValidateAllowedCountryBelongsToCurrencyStore : + ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Currency](README.md) + +### Constructors + +#### ValidateAllowedCountryBelongsToCurrencyStore + +```csharp +public ValidateAllowedCountryBelongsToCurrencyStore(ICountryService countryService) +``` + + +### Fields + +#### _countryService + +```csharp +public ICountryService _countryService; +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateCurrencyAllowInCountry evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-currency/validateculture.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-currency/validateculture.md new file mode 100644 index 00000000000..59decd94d70 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-currency/validateculture.md @@ -0,0 +1,38 @@ +--- +title: ValidateCulture +description: API reference for ValidateCulture in Umbraco Commerce +--- +## ValidateCulture + +```csharp +public class ValidateCulture : ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Currency](README.md) + +### Constructors + +#### ValidateCulture + +The default constructor. + +```csharp +public ValidateCulture() +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateCurrencyCultureChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-currency/validatecurrencycodeformat.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-currency/validatecurrencycodeformat.md new file mode 100644 index 00000000000..6b83cf7c09c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-currency/validatecurrencycodeformat.md @@ -0,0 +1,38 @@ +--- +title: ValidateCurrencyCodeFormat +description: API reference for ValidateCurrencyCodeFormat in Umbraco Commerce +--- +## ValidateCurrencyCodeFormat + +```csharp +public class ValidateCurrencyCodeFormat : ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Currency](README.md) + +### Constructors + +#### ValidateCurrencyCodeFormat + +The default constructor. + +```csharp +public ValidateCurrencyCodeFormat() +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateCurrencyCodeChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-currency/validatenotcountrydefaultcurrency.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-currency/validatenotcountrydefaultcurrency.md new file mode 100644 index 00000000000..8e458285666 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-currency/validatenotcountrydefaultcurrency.md @@ -0,0 +1,37 @@ +--- +title: ValidateNotCountryDefaultCurrency +description: API reference for ValidateNotCountryDefaultCurrency in Umbraco Commerce +--- +## ValidateNotCountryDefaultCurrency + +```csharp +public class ValidateNotCountryDefaultCurrency : ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Currency](README.md) + +### Constructors + +#### ValidateNotCountryDefaultCurrency + +```csharp +public ValidateNotCountryDefaultCurrency(ICountryService countryService, + ILogger logger) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateCurrencyDelete evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-currency/validatenotstorebasecurrency.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-currency/validatenotstorebasecurrency.md new file mode 100644 index 00000000000..921def74895 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-currency/validatenotstorebasecurrency.md @@ -0,0 +1,37 @@ +--- +title: ValidateNotStoreBaseCurrency +description: API reference for ValidateNotStoreBaseCurrency in Umbraco Commerce +--- +## ValidateNotStoreBaseCurrency + +```csharp +public class ValidateNotStoreBaseCurrency : ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Currency](README.md) + +### Constructors + +#### ValidateNotStoreBaseCurrency + +```csharp +public ValidateNotStoreBaseCurrency(IStoreService storeService, + ILogger logger) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateCurrencyDelete evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-currency/validateuniquecurrencycode.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-currency/validateuniquecurrencycode.md new file mode 100644 index 00000000000..e6773ceccfa --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-currency/validateuniquecurrencycode.md @@ -0,0 +1,36 @@ +--- +title: ValidateUniqueCurrencyCode +description: API reference for ValidateUniqueCurrencyCode in Umbraco Commerce +--- +## ValidateUniqueCurrencyCode + +```csharp +public class ValidateUniqueCurrencyCode : ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Currency](README.md) + +### Constructors + +#### ValidateUniqueCurrencyCode + +```csharp +public ValidateUniqueCurrencyCode(ICurrencyService currencyService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateCurrencyCodeChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-discount/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-discount/README.md new file mode 100644 index 00000000000..9ecc7406106 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-discount/README.md @@ -0,0 +1,12 @@ +--- +title: Umbraco.Commerce.Core.Events.Validation.Handlers.Discount +description: API reference for Umbraco.Commerce.Core.Events.Validation.Handlers.Discount in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Events.Validation.Handlers.Discount namespace + +| Public Type | Description | +| --- | --- | +| class [ValidateUniqueAlias](validateuniquealias.md) | | +| class [ValidateUniqueDiscountCode](validateuniquediscountcode.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-discount/validateuniquealias.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-discount/validateuniquealias.md new file mode 100644 index 00000000000..53887bdbd79 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-discount/validateuniquealias.md @@ -0,0 +1,36 @@ +--- +title: ValidateUniqueAlias +description: API reference for ValidateUniqueAlias in Umbraco Commerce +--- +## ValidateUniqueAlias + +```csharp +public class ValidateUniqueAlias : ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Discount](README.md) + +### Constructors + +#### ValidateUniqueAlias + +```csharp +public ValidateUniqueAlias(IDiscountService discountService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateDiscountAliasChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-discount/validateuniquediscountcode.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-discount/validateuniquediscountcode.md new file mode 100644 index 00000000000..ef8dfa80ebf --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-discount/validateuniquediscountcode.md @@ -0,0 +1,36 @@ +--- +title: ValidateUniqueDiscountCode +description: API reference for ValidateUniqueDiscountCode in Umbraco Commerce +--- +## ValidateUniqueDiscountCode + +```csharp +public class ValidateUniqueDiscountCode : ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Discount](README.md) + +### Constructors + +#### ValidateUniqueDiscountCode + +```csharp +public ValidateUniqueDiscountCode(IDiscountService discountService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateDiscountCodeAdd evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-emailtemplate/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-emailtemplate/README.md new file mode 100644 index 00000000000..cdec6d5726d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-emailtemplate/README.md @@ -0,0 +1,12 @@ +--- +title: Umbraco.Commerce.Core.Events.Validation.Handlers.EmailTemplate +description: API reference for Umbraco.Commerce.Core.Events.Validation.Handlers.EmailTemplate in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Events.Validation.Handlers.EmailTemplate namespace + +| Public Type | Description | +| --- | --- | +| class [ValidateNotStoreDefaultEmailTemplate](validatenotstoredefaultemailtemplate.md) | | +| class [ValidateUniqueEmailTemplateAlias](validateuniqueemailtemplatealias.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-emailtemplate/validatenotstoredefaultemailtemplate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-emailtemplate/validatenotstoredefaultemailtemplate.md new file mode 100644 index 00000000000..fd0ac3f4548 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-emailtemplate/validatenotstoredefaultemailtemplate.md @@ -0,0 +1,37 @@ +--- +title: ValidateNotStoreDefaultEmailTemplate +description: API reference for ValidateNotStoreDefaultEmailTemplate in Umbraco Commerce +--- +## ValidateNotStoreDefaultEmailTemplate + +```csharp +public class ValidateNotStoreDefaultEmailTemplate : + ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.EmailTemplate](README.md) + +### Constructors + +#### ValidateNotStoreDefaultEmailTemplate + +```csharp +public ValidateNotStoreDefaultEmailTemplate(IStoreService storeService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateEmailTemplateDelete evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-emailtemplate/validateuniqueemailtemplatealias.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-emailtemplate/validateuniqueemailtemplatealias.md new file mode 100644 index 00000000000..d3f999e42ff --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-emailtemplate/validateuniqueemailtemplatealias.md @@ -0,0 +1,37 @@ +--- +title: ValidateUniqueEmailTemplateAlias +description: API reference for ValidateUniqueEmailTemplateAlias in Umbraco Commerce +--- +## ValidateUniqueEmailTemplateAlias + +```csharp +public class ValidateUniqueEmailTemplateAlias : + ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.EmailTemplate](README.md) + +### Constructors + +#### ValidateUniqueEmailTemplateAlias + +```csharp +public ValidateUniqueEmailTemplateAlias(IEmailTemplateService emailTemplateService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateEmailTemplateAliasChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-exporttemplate/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-exporttemplate/README.md new file mode 100644 index 00000000000..ebfbf235a61 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-exporttemplate/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Core.Events.Validation.Handlers.ExportTemplate +description: API reference for Umbraco.Commerce.Core.Events.Validation.Handlers.ExportTemplate in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Events.Validation.Handlers.ExportTemplate namespace + +| Public Type | Description | +| --- | --- | +| class [ValidateUniqueExportTemplateAlias](validateuniqueexporttemplatealias.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-exporttemplate/validateuniqueexporttemplatealias.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-exporttemplate/validateuniqueexporttemplatealias.md new file mode 100644 index 00000000000..fa4ef4a3d4e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-exporttemplate/validateuniqueexporttemplatealias.md @@ -0,0 +1,37 @@ +--- +title: ValidateUniqueExportTemplateAlias +description: API reference for ValidateUniqueExportTemplateAlias in Umbraco Commerce +--- +## ValidateUniqueExportTemplateAlias + +```csharp +public class ValidateUniqueExportTemplateAlias : + ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.ExportTemplate](README.md) + +### Constructors + +#### ValidateUniqueExportTemplateAlias + +```csharp +public ValidateUniqueExportTemplateAlias(IExportTemplateService exportTemplateService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateExportTemplateAliasChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-giftcard/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-giftcard/README.md new file mode 100644 index 00000000000..4927569b83e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-giftcard/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Core.Events.Validation.Handlers.GiftCard +description: API reference for Umbraco.Commerce.Core.Events.Validation.Handlers.GiftCard in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Events.Validation.Handlers.GiftCard namespace + +| Public Type | Description | +| --- | --- | +| class [ValidateUniqueGiftCardCode](validateuniquegiftcardcode.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-giftcard/validateuniquegiftcardcode.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-giftcard/validateuniquegiftcardcode.md new file mode 100644 index 00000000000..f235cc5c13d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-giftcard/validateuniquegiftcardcode.md @@ -0,0 +1,36 @@ +--- +title: ValidateUniqueGiftCardCode +description: API reference for ValidateUniqueGiftCardCode in Umbraco Commerce +--- +## ValidateUniqueGiftCardCode + +```csharp +public class ValidateUniqueGiftCardCode : ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.GiftCard](README.md) + +### Constructors + +#### ValidateUniqueGiftCardCode + +```csharp +public ValidateUniqueGiftCardCode(IGiftCardService giftCardService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateGiftCardCodeChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/README.md new file mode 100644 index 00000000000..dca4859a752 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/README.md @@ -0,0 +1,27 @@ +--- +title: Umbraco.Commerce.Core.Events.Validation.Handlers.Order +description: API reference for Umbraco.Commerce.Core.Events.Validation.Handlers.Order in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Events.Validation.Handlers.Order namespace + +| Public Type | Description | +| --- | --- | +| class [ValidateCurrencyBelongsToOrderStore](validatecurrencybelongstoorderstore.md) | | +| class [ValidateDiscountCodeValid](validatediscountcodevalid.md) | | +| class [ValidateGiftCardValid](validategiftcardvalid.md) | | +| class [ValidateOrderPaymentCountryRegionAllowedByOrderCurrency](validateorderpaymentcountryregionallowedbyordercurrency.md) | | +| class [ValidateOrderPaymentCountryRegionBelongsToOrderStore](validateorderpaymentcountryregionbelongstoorderstore.md) | | +| class [ValidateOrderShippingCountryRegionBelongsToOrderStore](validateordershippingcountryregionbelongstoorderstore.md) | | +| class [ValidateOrderStatusBelongsToOrderStore](validateorderstatusbelongstoorderstore.md) | | +| class [ValidateOrderStatusCode](validateorderstatuscode.md) | | +| class [ValidatePaymentMethodAllowedInPaymentCountryRegion](validatepaymentmethodallowedinpaymentcountryregion.md) | | +| class [ValidatePaymentMethodBelongsToOrderStore](validatepaymentmethodbelongstoorderstore.md) | | +| class [ValidateProductAddHasPrice](validateproductaddhasprice.md) | | +| class [ValidateProductAddQuantityPositive](validateproductaddquantitypositive.md) | | +| class [ValidateShippingMethodAllowedInShippingCountryRegion](validateshippingmethodallowedinshippingcountryregion.md) | | +| class [ValidateShippingMethodBelongsToOrderStore](validateshippingmethodbelongstoorderstore.md) | | +| class [ValidateTaxClassBelongsToOrderStore](validatetaxclassbelongstoorderstore.md) | | +| class [ValidateTransactionInitialized](validatetransactioninitialized.md) | | +| class [ValidateUniqueBundleId](validateuniquebundleid.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validatecurrencybelongstoorderstore.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validatecurrencybelongstoorderstore.md new file mode 100644 index 00000000000..0610eb4f1eb --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validatecurrencybelongstoorderstore.md @@ -0,0 +1,37 @@ +--- +title: ValidateCurrencyBelongsToOrderStore +description: API reference for ValidateCurrencyBelongsToOrderStore in Umbraco Commerce +--- +## ValidateCurrencyBelongsToOrderStore + +```csharp +public class ValidateCurrencyBelongsToOrderStore : + ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Order](README.md) + +### Constructors + +#### ValidateCurrencyBelongsToOrderStore + +```csharp +public ValidateCurrencyBelongsToOrderStore(ICurrencyService currencyService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateOrderCurrencyChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validatediscountcodevalid.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validatediscountcodevalid.md new file mode 100644 index 00000000000..35b841aa0ef --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validatediscountcodevalid.md @@ -0,0 +1,36 @@ +--- +title: ValidateDiscountCodeValid +description: API reference for ValidateDiscountCodeValid in Umbraco Commerce +--- +## ValidateDiscountCodeValid + +```csharp +public class ValidateDiscountCodeValid : ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Order](README.md) + +### Constructors + +#### ValidateDiscountCodeValid + +```csharp +public ValidateDiscountCodeValid(IDiscountService discountService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateOrderDiscountCodeRedeem evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validategiftcardvalid.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validategiftcardvalid.md new file mode 100644 index 00000000000..bd7559d19a7 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validategiftcardvalid.md @@ -0,0 +1,36 @@ +--- +title: ValidateGiftCardValid +description: API reference for ValidateGiftCardValid in Umbraco Commerce +--- +## ValidateGiftCardValid + +```csharp +public class ValidateGiftCardValid : ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Order](README.md) + +### Constructors + +#### ValidateGiftCardValid + +```csharp +public ValidateGiftCardValid(IGiftCardService giftCardService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateOrderGiftCardRedeem evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validateorderpaymentcountryregionallowedbyordercurrency.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validateorderpaymentcountryregionallowedbyordercurrency.md new file mode 100644 index 00000000000..0d9e3de11ef --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validateorderpaymentcountryregionallowedbyordercurrency.md @@ -0,0 +1,37 @@ +--- +title: ValidateOrderPaymentCountryRegionAllowedByOrderCurrency +description: API reference for ValidateOrderPaymentCountryRegionAllowedByOrderCurrency in Umbraco Commerce +--- +## ValidateOrderPaymentCountryRegionAllowedByOrderCurrency + +```csharp +public class ValidateOrderPaymentCountryRegionAllowedByOrderCurrency : + ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Order](README.md) + +### Constructors + +#### ValidateOrderPaymentCountryRegionAllowedByOrderCurrency + +```csharp +public ValidateOrderPaymentCountryRegionAllowedByOrderCurrency(ICurrencyService currencyService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateOrderPaymentCountryRegionChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validateorderpaymentcountryregionbelongstoorderstore.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validateorderpaymentcountryregionbelongstoorderstore.md new file mode 100644 index 00000000000..0144bbc466f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validateorderpaymentcountryregionbelongstoorderstore.md @@ -0,0 +1,37 @@ +--- +title: ValidateOrderPaymentCountryRegionBelongsToOrderStore +description: API reference for ValidateOrderPaymentCountryRegionBelongsToOrderStore in Umbraco Commerce +--- +## ValidateOrderPaymentCountryRegionBelongsToOrderStore + +```csharp +public class ValidateOrderPaymentCountryRegionBelongsToOrderStore : + ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Order](README.md) + +### Constructors + +#### ValidateOrderPaymentCountryRegionBelongsToOrderStore + +```csharp +public ValidateOrderPaymentCountryRegionBelongsToOrderStore(ICountryService countryService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateOrderPaymentCountryRegionChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validateordershippingcountryregionbelongstoorderstore.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validateordershippingcountryregionbelongstoorderstore.md new file mode 100644 index 00000000000..23e4f894d6d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validateordershippingcountryregionbelongstoorderstore.md @@ -0,0 +1,37 @@ +--- +title: ValidateOrderShippingCountryRegionBelongsToOrderStore +description: API reference for ValidateOrderShippingCountryRegionBelongsToOrderStore in Umbraco Commerce +--- +## ValidateOrderShippingCountryRegionBelongsToOrderStore + +```csharp +public class ValidateOrderShippingCountryRegionBelongsToOrderStore : + ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Order](README.md) + +### Constructors + +#### ValidateOrderShippingCountryRegionBelongsToOrderStore + +```csharp +public ValidateOrderShippingCountryRegionBelongsToOrderStore(ICountryService countryService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateOrderShippingCountryRegionChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validateorderstatusbelongstoorderstore.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validateorderstatusbelongstoorderstore.md new file mode 100644 index 00000000000..b795b28b186 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validateorderstatusbelongstoorderstore.md @@ -0,0 +1,37 @@ +--- +title: ValidateOrderStatusBelongsToOrderStore +description: API reference for ValidateOrderStatusBelongsToOrderStore in Umbraco Commerce +--- +## ValidateOrderStatusBelongsToOrderStore + +```csharp +public class ValidateOrderStatusBelongsToOrderStore : + ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Order](README.md) + +### Constructors + +#### ValidateOrderStatusBelongsToOrderStore + +```csharp +public ValidateOrderStatusBelongsToOrderStore(IOrderStatusService orderStatusService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateOrderStatusChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validateorderstatuscode.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validateorderstatuscode.md new file mode 100644 index 00000000000..123a69782d9 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validateorderstatuscode.md @@ -0,0 +1,36 @@ +--- +title: ValidateOrderStatusCode +description: API reference for ValidateOrderStatusCode in Umbraco Commerce +--- +## ValidateOrderStatusCode + +```csharp +public class ValidateOrderStatusCode : ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Order](README.md) + +### Constructors + +#### ValidateOrderStatusCode + +```csharp +public ValidateOrderStatusCode(IStoreService storeService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateOrderStatusChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validatepaymentmethodallowedinpaymentcountryregion.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validatepaymentmethodallowedinpaymentcountryregion.md new file mode 100644 index 00000000000..6ea13ddcea0 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validatepaymentmethodallowedinpaymentcountryregion.md @@ -0,0 +1,38 @@ +--- +title: ValidatePaymentMethodAllowedInPaymentCountryRegion +description: API reference for ValidatePaymentMethodAllowedInPaymentCountryRegion in Umbraco Commerce +--- +## ValidatePaymentMethodAllowedInPaymentCountryRegion + +```csharp +public class ValidatePaymentMethodAllowedInPaymentCountryRegion : + ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Order](README.md) + +### Constructors + +#### ValidatePaymentMethodAllowedInPaymentCountryRegion + +```csharp +public ValidatePaymentMethodAllowedInPaymentCountryRegion( + IPaymentMethodService paymentMethodService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateOrderPaymentMethodChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validatepaymentmethodbelongstoorderstore.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validatepaymentmethodbelongstoorderstore.md new file mode 100644 index 00000000000..e5a81c93ad5 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validatepaymentmethodbelongstoorderstore.md @@ -0,0 +1,37 @@ +--- +title: ValidatePaymentMethodBelongsToOrderStore +description: API reference for ValidatePaymentMethodBelongsToOrderStore in Umbraco Commerce +--- +## ValidatePaymentMethodBelongsToOrderStore + +```csharp +public class ValidatePaymentMethodBelongsToOrderStore : + ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Order](README.md) + +### Constructors + +#### ValidatePaymentMethodBelongsToOrderStore + +```csharp +public ValidatePaymentMethodBelongsToOrderStore(IPaymentMethodService paymentMethodService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateOrderPaymentMethodChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validateproductaddhasprice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validateproductaddhasprice.md new file mode 100644 index 00000000000..0d8586a3d0c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validateproductaddhasprice.md @@ -0,0 +1,36 @@ +--- +title: ValidateProductAddHasPrice +description: API reference for ValidateProductAddHasPrice in Umbraco Commerce +--- +## ValidateProductAddHasPrice + +```csharp +public class ValidateProductAddHasPrice : ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Order](README.md) + +### Constructors + +#### ValidateProductAddHasPrice + +```csharp +public ValidateProductAddHasPrice(Lazy productService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateOrderProductAdd evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validateproductaddquantitypositive.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validateproductaddquantitypositive.md new file mode 100644 index 00000000000..5e36319e43f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validateproductaddquantitypositive.md @@ -0,0 +1,39 @@ +--- +title: ValidateProductAddQuantityPositive +description: API reference for ValidateProductAddQuantityPositive in Umbraco Commerce +--- +## ValidateProductAddQuantityPositive + +```csharp +public class ValidateProductAddQuantityPositive : + ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Order](README.md) + +### Constructors + +#### ValidateProductAddQuantityPositive + +The default constructor. + +```csharp +public ValidateProductAddQuantityPositive() +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateOrderProductAdd evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validateshippingmethodallowedinshippingcountryregion.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validateshippingmethodallowedinshippingcountryregion.md new file mode 100644 index 00000000000..fc68353186b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validateshippingmethodallowedinshippingcountryregion.md @@ -0,0 +1,38 @@ +--- +title: ValidateShippingMethodAllowedInShippingCountryRegion +description: API reference for ValidateShippingMethodAllowedInShippingCountryRegion in Umbraco Commerce +--- +## ValidateShippingMethodAllowedInShippingCountryRegion + +```csharp +public class ValidateShippingMethodAllowedInShippingCountryRegion : + ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Order](README.md) + +### Constructors + +#### ValidateShippingMethodAllowedInShippingCountryRegion + +```csharp +public ValidateShippingMethodAllowedInShippingCountryRegion( + IShippingMethodService shippingMethodService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateOrderShippingMethodChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validateshippingmethodbelongstoorderstore.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validateshippingmethodbelongstoorderstore.md new file mode 100644 index 00000000000..29c242cba38 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validateshippingmethodbelongstoorderstore.md @@ -0,0 +1,37 @@ +--- +title: ValidateShippingMethodBelongsToOrderStore +description: API reference for ValidateShippingMethodBelongsToOrderStore in Umbraco Commerce +--- +## ValidateShippingMethodBelongsToOrderStore + +```csharp +public class ValidateShippingMethodBelongsToOrderStore : + ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Order](README.md) + +### Constructors + +#### ValidateShippingMethodBelongsToOrderStore + +```csharp +public ValidateShippingMethodBelongsToOrderStore(IShippingMethodService shippingMethodService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateOrderShippingMethodChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validatetaxclassbelongstoorderstore.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validatetaxclassbelongstoorderstore.md new file mode 100644 index 00000000000..f2a248d3ac0 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validatetaxclassbelongstoorderstore.md @@ -0,0 +1,37 @@ +--- +title: ValidateTaxClassBelongsToOrderStore +description: API reference for ValidateTaxClassBelongsToOrderStore in Umbraco Commerce +--- +## ValidateTaxClassBelongsToOrderStore + +```csharp +public class ValidateTaxClassBelongsToOrderStore : + ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Order](README.md) + +### Constructors + +#### ValidateTaxClassBelongsToOrderStore + +```csharp +public ValidateTaxClassBelongsToOrderStore(ITaxService taxService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateOrderTaxClassChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validatetransactioninitialized.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validatetransactioninitialized.md new file mode 100644 index 00000000000..253ff7162b8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validatetransactioninitialized.md @@ -0,0 +1,38 @@ +--- +title: ValidateTransactionInitialized +description: API reference for ValidateTransactionInitialized in Umbraco Commerce +--- +## ValidateTransactionInitialized + +```csharp +public class ValidateTransactionInitialized : ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Order](README.md) + +### Constructors + +#### ValidateTransactionInitialized + +The default constructor. + +```csharp +public ValidateTransactionInitialized() +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateOrderFinalize evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validateuniquebundleid.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validateuniquebundleid.md new file mode 100644 index 00000000000..c50706471f3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-order/validateuniquebundleid.md @@ -0,0 +1,38 @@ +--- +title: ValidateUniqueBundleId +description: API reference for ValidateUniqueBundleId in Umbraco Commerce +--- +## ValidateUniqueBundleId + +```csharp +public class ValidateUniqueBundleId : ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Order](README.md) + +### Constructors + +#### ValidateUniqueBundleId + +The default constructor. + +```csharp +public ValidateUniqueBundleId() +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateOrderProductAdd evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-orderstatus/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-orderstatus/README.md new file mode 100644 index 00000000000..66edd0f47ed --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-orderstatus/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Core.Events.Validation.Handlers.OrderStatus +description: API reference for Umbraco.Commerce.Core.Events.Validation.Handlers.OrderStatus in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Events.Validation.Handlers.OrderStatus namespace + +| Public Type | Description | +| --- | --- | +| class [ValidateNotStoreDefaultOrderStatus](validatenotstoredefaultorderstatus.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-orderstatus/validatenotstoredefaultorderstatus.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-orderstatus/validatenotstoredefaultorderstatus.md new file mode 100644 index 00000000000..bffd8aa9f9b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-orderstatus/validatenotstoredefaultorderstatus.md @@ -0,0 +1,38 @@ +--- +title: ValidateNotStoreDefaultOrderStatus +description: API reference for ValidateNotStoreDefaultOrderStatus in Umbraco Commerce +--- +## ValidateNotStoreDefaultOrderStatus + +```csharp +public class ValidateNotStoreDefaultOrderStatus : + ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.OrderStatus](README.md) + +### Constructors + +#### ValidateNotStoreDefaultOrderStatus + +```csharp +public ValidateNotStoreDefaultOrderStatus(IStoreService storeService, + ILogger logger) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateOrderStatusDelete evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-paymentmethod/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-paymentmethod/README.md new file mode 100644 index 00000000000..d613a6ed6d1 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-paymentmethod/README.md @@ -0,0 +1,14 @@ +--- +title: Umbraco.Commerce.Core.Events.Validation.Handlers.PaymentMethod +description: API reference for Umbraco.Commerce.Core.Events.Validation.Handlers.PaymentMethod in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Events.Validation.Handlers.PaymentMethod namespace + +| Public Type | Description | +| --- | --- | +| class [ValidateAllowedInPriceCountryRegion](validateallowedinpricecountryregion.md) | | +| class [ValidateNotCountryDefaultPaymentMethod](validatenotcountrydefaultpaymentmethod.md) | | +| class [ValidateNotRegionDefaultPaymentMethod](validatenotregiondefaultpaymentmethod.md) | | +| class [ValidateUniquePaymentMethodAlias](validateuniquepaymentmethodalias.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-paymentmethod/validateallowedinpricecountryregion.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-paymentmethod/validateallowedinpricecountryregion.md new file mode 100644 index 00000000000..d62ba08c0e3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-paymentmethod/validateallowedinpricecountryregion.md @@ -0,0 +1,39 @@ +--- +title: ValidateAllowedInPriceCountryRegion +description: API reference for ValidateAllowedInPriceCountryRegion in Umbraco Commerce +--- +## ValidateAllowedInPriceCountryRegion + +```csharp +public class ValidateAllowedInPriceCountryRegion : + ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.PaymentMethod](README.md) + +### Constructors + +#### ValidateAllowedInPriceCountryRegion + +The default constructor. + +```csharp +public ValidateAllowedInPriceCountryRegion() +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidatePaymentMethodPriceChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-paymentmethod/validatenotcountrydefaultpaymentmethod.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-paymentmethod/validatenotcountrydefaultpaymentmethod.md new file mode 100644 index 00000000000..1a46fa89a7e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-paymentmethod/validatenotcountrydefaultpaymentmethod.md @@ -0,0 +1,38 @@ +--- +title: ValidateNotCountryDefaultPaymentMethod +description: API reference for ValidateNotCountryDefaultPaymentMethod in Umbraco Commerce +--- +## ValidateNotCountryDefaultPaymentMethod + +```csharp +public class ValidateNotCountryDefaultPaymentMethod : + ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.PaymentMethod](README.md) + +### Constructors + +#### ValidateNotCountryDefaultPaymentMethod + +```csharp +public ValidateNotCountryDefaultPaymentMethod(ICountryService countryService, + ILogger logger) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidatePaymentMethodDelete evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-paymentmethod/validatenotregiondefaultpaymentmethod.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-paymentmethod/validatenotregiondefaultpaymentmethod.md new file mode 100644 index 00000000000..6897a889077 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-paymentmethod/validatenotregiondefaultpaymentmethod.md @@ -0,0 +1,38 @@ +--- +title: ValidateNotRegionDefaultPaymentMethod +description: API reference for ValidateNotRegionDefaultPaymentMethod in Umbraco Commerce +--- +## ValidateNotRegionDefaultPaymentMethod + +```csharp +public class ValidateNotRegionDefaultPaymentMethod : + ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.PaymentMethod](README.md) + +### Constructors + +#### ValidateNotRegionDefaultPaymentMethod + +```csharp +public ValidateNotRegionDefaultPaymentMethod(ICountryService countryService, + ILogger logger) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidatePaymentMethodDelete evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-paymentmethod/validateuniquepaymentmethodalias.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-paymentmethod/validateuniquepaymentmethodalias.md new file mode 100644 index 00000000000..de2a839e4ba --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-paymentmethod/validateuniquepaymentmethodalias.md @@ -0,0 +1,37 @@ +--- +title: ValidateUniquePaymentMethodAlias +description: API reference for ValidateUniquePaymentMethodAlias in Umbraco Commerce +--- +## ValidateUniquePaymentMethodAlias + +```csharp +public class ValidateUniquePaymentMethodAlias : + ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.PaymentMethod](README.md) + +### Constructors + +#### ValidateUniquePaymentMethodAlias + +```csharp +public ValidateUniquePaymentMethodAlias(IPaymentMethodService paymentMethodService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidatePaymentMethodAliasChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-printtemplate/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-printtemplate/README.md new file mode 100644 index 00000000000..c09455d9207 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-printtemplate/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Core.Events.Validation.Handlers.PrintTemplate +description: API reference for Umbraco.Commerce.Core.Events.Validation.Handlers.PrintTemplate in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Events.Validation.Handlers.PrintTemplate namespace + +| Public Type | Description | +| --- | --- | +| class [ValidateUniquePrintTemplateAlias](validateuniqueprinttemplatealias.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-printtemplate/validateuniqueprinttemplatealias.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-printtemplate/validateuniqueprinttemplatealias.md new file mode 100644 index 00000000000..3cfc01562b7 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-printtemplate/validateuniqueprinttemplatealias.md @@ -0,0 +1,37 @@ +--- +title: ValidateUniquePrintTemplateAlias +description: API reference for ValidateUniquePrintTemplateAlias in Umbraco Commerce +--- +## ValidateUniquePrintTemplateAlias + +```csharp +public class ValidateUniquePrintTemplateAlias : + ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.PrintTemplate](README.md) + +### Constructors + +#### ValidateUniquePrintTemplateAlias + +```csharp +public ValidateUniquePrintTemplateAlias(IPrintTemplateService printTemplateService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidatePrintTemplateAliasChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-productattribute/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-productattribute/README.md new file mode 100644 index 00000000000..5b210db1ce7 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-productattribute/README.md @@ -0,0 +1,12 @@ +--- +title: Umbraco.Commerce.Core.Events.Validation.Handlers.ProductAttribute +description: API reference for Umbraco.Commerce.Core.Events.Validation.Handlers.ProductAttribute in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Events.Validation.Handlers.ProductAttribute namespace + +| Public Type | Description | +| --- | --- | +| class [ValidateUniqueProductAttributeAlias](validateuniqueproductattributealias.md) | | +| class [ValidateUniqueProductAttributePresetAlias](validateuniqueproductattributepresetalias.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-productattribute/validateuniqueproductattributealias.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-productattribute/validateuniqueproductattributealias.md new file mode 100644 index 00000000000..e3bd689d9ce --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-productattribute/validateuniqueproductattributealias.md @@ -0,0 +1,37 @@ +--- +title: ValidateUniqueProductAttributeAlias +description: API reference for ValidateUniqueProductAttributeAlias in Umbraco Commerce +--- +## ValidateUniqueProductAttributeAlias + +```csharp +public class ValidateUniqueProductAttributeAlias : + ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.ProductAttribute](README.md) + +### Constructors + +#### ValidateUniqueProductAttributeAlias + +```csharp +public ValidateUniqueProductAttributeAlias(IProductAttributeService productAttributeService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateProductAttributeAliasChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-productattribute/validateuniqueproductattributepresetalias.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-productattribute/validateuniqueproductattributepresetalias.md new file mode 100644 index 00000000000..a487237f5d9 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-productattribute/validateuniqueproductattributepresetalias.md @@ -0,0 +1,37 @@ +--- +title: ValidateUniqueProductAttributePresetAlias +description: API reference for ValidateUniqueProductAttributePresetAlias in Umbraco Commerce +--- +## ValidateUniqueProductAttributePresetAlias + +```csharp +public class ValidateUniqueProductAttributePresetAlias : + ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.ProductAttribute](README.md) + +### Constructors + +#### ValidateUniqueProductAttributePresetAlias + +```csharp +public ValidateUniqueProductAttributePresetAlias(IProductAttributeService productAttributeService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateProductAttributePresetAliasChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-region/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-region/README.md new file mode 100644 index 00000000000..3fdeb3361cd --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-region/README.md @@ -0,0 +1,13 @@ +--- +title: Umbraco.Commerce.Core.Events.Validation.Handlers.Region +description: API reference for Umbraco.Commerce.Core.Events.Validation.Handlers.Region in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Events.Validation.Handlers.Region namespace + +| Public Type | Description | +| --- | --- | +| class [ValidateDefaultPaymentMethodBelongsToRegionStore](validatedefaultpaymentmethodbelongstoregionstore.md) | | +| class [ValidateDefaultShippingMethodBelongsToRegionStore](validatedefaultshippingmethodbelongstoregionstore.md) | | +| class [ValidateUniqueRegionCode](validateuniqueregioncode.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-region/validatedefaultpaymentmethodbelongstoregionstore.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-region/validatedefaultpaymentmethodbelongstoregionstore.md new file mode 100644 index 00000000000..e40df2c7172 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-region/validatedefaultpaymentmethodbelongstoregionstore.md @@ -0,0 +1,37 @@ +--- +title: ValidateDefaultPaymentMethodBelongsToRegionStore +description: API reference for ValidateDefaultPaymentMethodBelongsToRegionStore in Umbraco Commerce +--- +## ValidateDefaultPaymentMethodBelongsToRegionStore + +```csharp +public class ValidateDefaultPaymentMethodBelongsToRegionStore : + ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Region](README.md) + +### Constructors + +#### ValidateDefaultPaymentMethodBelongsToRegionStore + +```csharp +public ValidateDefaultPaymentMethodBelongsToRegionStore(IPaymentMethodService paymentMethodService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateRegionDefaultPaymentMethodChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-region/validatedefaultshippingmethodbelongstoregionstore.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-region/validatedefaultshippingmethodbelongstoregionstore.md new file mode 100644 index 00000000000..dac0008fb55 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-region/validatedefaultshippingmethodbelongstoregionstore.md @@ -0,0 +1,38 @@ +--- +title: ValidateDefaultShippingMethodBelongsToRegionStore +description: API reference for ValidateDefaultShippingMethodBelongsToRegionStore in Umbraco Commerce +--- +## ValidateDefaultShippingMethodBelongsToRegionStore + +```csharp +public class ValidateDefaultShippingMethodBelongsToRegionStore : + ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Region](README.md) + +### Constructors + +#### ValidateDefaultShippingMethodBelongsToRegionStore + +```csharp +public ValidateDefaultShippingMethodBelongsToRegionStore( + IShippingMethodService shippingMethodService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateRegionDefaultShippingMethodChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-region/validateuniqueregioncode.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-region/validateuniqueregioncode.md new file mode 100644 index 00000000000..51eceacef06 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-region/validateuniqueregioncode.md @@ -0,0 +1,36 @@ +--- +title: ValidateUniqueRegionCode +description: API reference for ValidateUniqueRegionCode in Umbraco Commerce +--- +## ValidateUniqueRegionCode + +```csharp +public class ValidateUniqueRegionCode : ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Region](README.md) + +### Constructors + +#### ValidateUniqueRegionCode + +```csharp +public ValidateUniqueRegionCode(ICountryService countryService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateRegionCodeChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-shippingmethod/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-shippingmethod/README.md new file mode 100644 index 00000000000..a5ad462ddc5 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-shippingmethod/README.md @@ -0,0 +1,14 @@ +--- +title: Umbraco.Commerce.Core.Events.Validation.Handlers.ShippingMethod +description: API reference for Umbraco.Commerce.Core.Events.Validation.Handlers.ShippingMethod in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Events.Validation.Handlers.ShippingMethod namespace + +| Public Type | Description | +| --- | --- | +| class [ValidateAllowedInPriceCountryRegion](validateallowedinpricecountryregion.md) | | +| class [ValidateNotCountryDefaultShippingMethod](validatenotcountrydefaultshippingmethod.md) | | +| class [ValidateNotRegionDefaultShippingMethod](validatenotregiondefaultshippingmethod.md) | | +| class [ValidateUniqueShippingMethodAlias](validateuniqueshippingmethodalias.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-shippingmethod/validateallowedinpricecountryregion.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-shippingmethod/validateallowedinpricecountryregion.md new file mode 100644 index 00000000000..b6619f062de --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-shippingmethod/validateallowedinpricecountryregion.md @@ -0,0 +1,39 @@ +--- +title: ValidateAllowedInPriceCountryRegion +description: API reference for ValidateAllowedInPriceCountryRegion in Umbraco Commerce +--- +## ValidateAllowedInPriceCountryRegion + +```csharp +public class ValidateAllowedInPriceCountryRegion : + ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.ShippingMethod](README.md) + +### Constructors + +#### ValidateAllowedInPriceCountryRegion + +The default constructor. + +```csharp +public ValidateAllowedInPriceCountryRegion() +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateShippingMethodPriceChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-shippingmethod/validatenotcountrydefaultshippingmethod.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-shippingmethod/validatenotcountrydefaultshippingmethod.md new file mode 100644 index 00000000000..d2488f0f2cc --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-shippingmethod/validatenotcountrydefaultshippingmethod.md @@ -0,0 +1,38 @@ +--- +title: ValidateNotCountryDefaultShippingMethod +description: API reference for ValidateNotCountryDefaultShippingMethod in Umbraco Commerce +--- +## ValidateNotCountryDefaultShippingMethod + +```csharp +public class ValidateNotCountryDefaultShippingMethod : + ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.ShippingMethod](README.md) + +### Constructors + +#### ValidateNotCountryDefaultShippingMethod + +```csharp +public ValidateNotCountryDefaultShippingMethod(ICountryService countryService, + ILogger logger) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateShippingMethodDelete evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-shippingmethod/validatenotregiondefaultshippingmethod.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-shippingmethod/validatenotregiondefaultshippingmethod.md new file mode 100644 index 00000000000..848d8322c0c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-shippingmethod/validatenotregiondefaultshippingmethod.md @@ -0,0 +1,38 @@ +--- +title: ValidateNotRegionDefaultShippingMethod +description: API reference for ValidateNotRegionDefaultShippingMethod in Umbraco Commerce +--- +## ValidateNotRegionDefaultShippingMethod + +```csharp +public class ValidateNotRegionDefaultShippingMethod : + ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.ShippingMethod](README.md) + +### Constructors + +#### ValidateNotRegionDefaultShippingMethod + +```csharp +public ValidateNotRegionDefaultShippingMethod(ICountryService countryService, + ILogger logger) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateShippingMethodDelete evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-shippingmethod/validateuniqueshippingmethodalias.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-shippingmethod/validateuniqueshippingmethodalias.md new file mode 100644 index 00000000000..d2526d014e3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-shippingmethod/validateuniqueshippingmethodalias.md @@ -0,0 +1,37 @@ +--- +title: ValidateUniqueShippingMethodAlias +description: API reference for ValidateUniqueShippingMethodAlias in Umbraco Commerce +--- +## ValidateUniqueShippingMethodAlias + +```csharp +public class ValidateUniqueShippingMethodAlias : + ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.ShippingMethod](README.md) + +### Constructors + +#### ValidateUniqueShippingMethodAlias + +```csharp +public ValidateUniqueShippingMethodAlias(IShippingMethodService shippingMethodService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateShippingMethodAliasChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-store/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-store/README.md new file mode 100644 index 00000000000..74d97522287 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-store/README.md @@ -0,0 +1,15 @@ +--- +title: Umbraco.Commerce.Core.Events.Validation.Handlers.Store +description: API reference for Umbraco.Commerce.Core.Events.Validation.Handlers.Store in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Events.Validation.Handlers.Store namespace + +| Public Type | Description | +| --- | --- | +| class [ValidateDefaultCountryBelongsToStore](validatedefaultcountrybelongstostore.md) | | +| class [ValidateDefaultTaxClassBelongsToStore](validatedefaulttaxclassbelongstostore.md) | | +| class [ValidateNotificationEmailTemplatesBelongsToStore](validatenotificationemailtemplatesbelongstostore.md) | | +| class [ValidateOrderStatusesBelongsToStore](validateorderstatusesbelongstostore.md) | | +| class [ValidateUniqueStoreAlias](validateuniquestorealias.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-store/validatedefaultcountrybelongstostore.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-store/validatedefaultcountrybelongstostore.md new file mode 100644 index 00000000000..3c197891953 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-store/validatedefaultcountrybelongstostore.md @@ -0,0 +1,37 @@ +--- +title: ValidateDefaultCountryBelongsToStore +description: API reference for ValidateDefaultCountryBelongsToStore in Umbraco Commerce +--- +## ValidateDefaultCountryBelongsToStore + +```csharp +public class ValidateDefaultCountryBelongsToStore : + ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Store](README.md) + +### Constructors + +#### ValidateDefaultCountryBelongsToStore + +```csharp +public ValidateDefaultCountryBelongsToStore(ICountryService countryService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateStoreDefaultCountryChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-store/validatedefaulttaxclassbelongstostore.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-store/validatedefaulttaxclassbelongstostore.md new file mode 100644 index 00000000000..fee852ced81 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-store/validatedefaulttaxclassbelongstostore.md @@ -0,0 +1,37 @@ +--- +title: ValidateDefaultTaxClassBelongsToStore +description: API reference for ValidateDefaultTaxClassBelongsToStore in Umbraco Commerce +--- +## ValidateDefaultTaxClassBelongsToStore + +```csharp +public class ValidateDefaultTaxClassBelongsToStore : + ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Store](README.md) + +### Constructors + +#### ValidateDefaultTaxClassBelongsToStore + +```csharp +public ValidateDefaultTaxClassBelongsToStore(ITaxService taxService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateStoreDefaultTaxClassChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-store/validatenotificationemailtemplatesbelongstostore.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-store/validatenotificationemailtemplatesbelongstostore.md new file mode 100644 index 00000000000..9a678fef290 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-store/validatenotificationemailtemplatesbelongstostore.md @@ -0,0 +1,37 @@ +--- +title: ValidateNotificationEmailTemplatesBelongsToStore +description: API reference for ValidateNotificationEmailTemplatesBelongsToStore in Umbraco Commerce +--- +## ValidateNotificationEmailTemplatesBelongsToStore + +```csharp +public class ValidateNotificationEmailTemplatesBelongsToStore : + ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Store](README.md) + +### Constructors + +#### ValidateNotificationEmailTemplatesBelongsToStore + +```csharp +public ValidateNotificationEmailTemplatesBelongsToStore(IEmailTemplateService emailTemplateService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateStoreNotificationEmailTemplatesChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-store/validateorderstatusesbelongstostore.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-store/validateorderstatusesbelongstostore.md new file mode 100644 index 00000000000..9a7f7fb9503 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-store/validateorderstatusesbelongstostore.md @@ -0,0 +1,37 @@ +--- +title: ValidateOrderStatusesBelongsToStore +description: API reference for ValidateOrderStatusesBelongsToStore in Umbraco Commerce +--- +## ValidateOrderStatusesBelongsToStore + +```csharp +public class ValidateOrderStatusesBelongsToStore : + ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Store](README.md) + +### Constructors + +#### ValidateOrderStatusesBelongsToStore + +```csharp +public ValidateOrderStatusesBelongsToStore(IOrderStatusService orderStatusService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateStoreOrderStatusesChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-store/validateuniquestorealias.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-store/validateuniquestorealias.md new file mode 100644 index 00000000000..a3f8446727e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-store/validateuniquestorealias.md @@ -0,0 +1,36 @@ +--- +title: ValidateUniqueStoreAlias +description: API reference for ValidateUniqueStoreAlias in Umbraco Commerce +--- +## ValidateUniqueStoreAlias + +```csharp +public class ValidateUniqueStoreAlias : ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.Store](README.md) + +### Constructors + +#### ValidateUniqueStoreAlias + +```csharp +public ValidateUniqueStoreAlias(IStoreService storeService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateStoreAliasChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-taxclass/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-taxclass/README.md new file mode 100644 index 00000000000..69953dcd2e8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-taxclass/README.md @@ -0,0 +1,12 @@ +--- +title: Umbraco.Commerce.Core.Events.Validation.Handlers.TaxClass +description: API reference for Umbraco.Commerce.Core.Events.Validation.Handlers.TaxClass in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Events.Validation.Handlers.TaxClass namespace + +| Public Type | Description | +| --- | --- | +| class [ValidateNotStoreDefaultTaxClass](validatenotstoredefaulttaxclass.md) | | +| class [ValidateUniqueTaxClassAlias](validateuniquetaxclassalias.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-taxclass/validatenotstoredefaulttaxclass.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-taxclass/validatenotstoredefaulttaxclass.md new file mode 100644 index 00000000000..14cca803973 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-taxclass/validatenotstoredefaulttaxclass.md @@ -0,0 +1,37 @@ +--- +title: ValidateNotStoreDefaultTaxClass +description: API reference for ValidateNotStoreDefaultTaxClass in Umbraco Commerce +--- +## ValidateNotStoreDefaultTaxClass + +```csharp +public class ValidateNotStoreDefaultTaxClass : ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.TaxClass](README.md) + +### Constructors + +#### ValidateNotStoreDefaultTaxClass + +```csharp +public ValidateNotStoreDefaultTaxClass(IStoreService storeService, + ILogger logger) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateTaxClassDelete evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-taxclass/validateuniquetaxclassalias.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-taxclass/validateuniquetaxclassalias.md new file mode 100644 index 00000000000..e274a45e2ea --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation-handlers-taxclass/validateuniquetaxclassalias.md @@ -0,0 +1,36 @@ +--- +title: ValidateUniqueTaxClassAlias +description: API reference for ValidateUniqueTaxClassAlias in Umbraco Commerce +--- +## ValidateUniqueTaxClassAlias + +```csharp +public class ValidateUniqueTaxClassAlias : ValidationEventHandlerBase +``` + +**Inheritance** + +* Class [ValidationEventHandlerBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventhandlerbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation.Handlers.TaxClass](README.md) + +### Constructors + +#### ValidateUniqueTaxClassAlias + +```csharp +public ValidateUniqueTaxClassAlias(ITaxService taxClassService) +``` + + +### Methods + +#### Validate + +```csharp +public override void Validate(ValidateTaxClassAliasChange evt) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/README.md new file mode 100644 index 00000000000..ffe1a20ad50 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/README.md @@ -0,0 +1,219 @@ +--- +title: Umbraco.Commerce.Core.Events.Validation +description: API reference for Umbraco.Commerce.Core.Events.Validation in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Events.Validation namespace + +| Public Type | Description | +| --- | --- | +| class [ValidateCancelOrderPayment](validatecancelorderpayment.md) | | +| class [ValidateCaptureOrderPayment](validatecaptureorderpayment.md) | | +| class [ValidateCountryCodeChange](validatecountrycodechange.md) | | +| class [ValidateCountryCreate](validatecountrycreate.md) | | +| class [ValidateCountryDefaultCurrencyChange](validatecountrydefaultcurrencychange.md) | | +| class [ValidateCountryDefaultPaymentMethodChange](validatecountrydefaultpaymentmethodchange.md) | | +| class [ValidateCountryDefaultShippingMethodChange](validatecountrydefaultshippingmethodchange.md) | | +| class [ValidateCountryDelete](validatecountrydelete.md) | | +| class [ValidateCountryNameChange](validatecountrynamechange.md) | | +| class [ValidateCountrySave](validatecountrysave.md) | | +| class [ValidateCountryUpdate](validatecountryupdate.md) | | +| class [ValidateCurrencyAllowInCountry](validatecurrencyallowincountry.md) | | +| class [ValidateCurrencyCodeChange](validatecurrencycodechange.md) | | +| class [ValidateCurrencyCreate](validatecurrencycreate.md) | | +| class [ValidateCurrencyCultureChange](validatecurrencyculturechange.md) | | +| class [ValidateCurrencyCustomFormatTemplateChange](validatecurrencycustomformattemplatechange.md) | | +| class [ValidateCurrencyDelete](validatecurrencydelete.md) | | +| class [ValidateCurrencyDisallowInCountry](validatecurrencydisallowincountry.md) | | +| class [ValidateCurrencyNameChange](validatecurrencynamechange.md) | | +| class [ValidateCurrencySave](validatecurrencysave.md) | | +| class [ValidateCurrencyUpdate](validatecurrencyupdate.md) | | +| class [ValidateDiscountActiveChange](validatediscountactivechange.md) | | +| class [ValidateDiscountAliasChange](validatediscountaliaschange.md) | | +| class [ValidateDiscountCodeAdd](validatediscountcodeadd.md) | | +| class [ValidateDiscountCodeChange](validatediscountcodechange.md) | | +| class [ValidateDiscountCodeRemove](validatediscountcoderemove.md) | | +| class [ValidateDiscountCreate](validatediscountcreate.md) | | +| class [ValidateDiscountDateRangeChange](validatediscountdaterangechange.md) | | +| class [ValidateDiscountDelete](validatediscountdelete.md) | | +| class [ValidateDiscountNameChange](validatediscountnamechange.md) | | +| class [ValidateDiscountRewardsChange](validatediscountrewardschange.md) | | +| class [ValidateDiscountRulesChange](validatediscountruleschange.md) | | +| class [ValidateDiscountSave](validatediscountsave.md) | | +| class [ValidateDiscountTypeChange](validatediscounttypechange.md) | | +| class [ValidateDiscountUpdate](validatediscountupdate.md) | | +| class [ValidateEmailTemplateAliasChange](validateemailtemplatealiaschange.md) | | +| class [ValidateEmailTemplateBccAddressChange](validateemailtemplatebccaddresschange.md) | | +| class [ValidateEmailTemplateCategoryChange](validateemailtemplatecategorychange.md) | | +| class [ValidateEmailTemplateCcAddressChange](validateemailtemplateccaddresschange.md) | | +| class [ValidateEmailTemplateCreate](validateemailtemplatecreate.md) | | +| class [ValidateEmailTemplateDelete](validateemailtemplatedelete.md) | | +| class [ValidateEmailTemplateNameChange](validateemailtemplatenamechange.md) | | +| class [ValidateEmailTemplateReplyToAddressChange](validateemailtemplatereplytoaddresschange.md) | | +| class [ValidateEmailTemplateSave](validateemailtemplatesave.md) | | +| class [ValidateEmailTemplateSenderChange](validateemailtemplatesenderchange.md) | | +| class [ValidateEmailTemplateSendToCustomerChange](validateemailtemplatesendtocustomerchange.md) | | +| class [ValidateEmailTemplateSubjectChange](validateemailtemplatesubjectchange.md) | | +| class [ValidateEmailTemplateToAddressChange](validateemailtemplatetoaddresschange.md) | | +| class [ValidateEmailTemplateUpdate](validateemailtemplateupdate.md) | | +| class [ValidateEmailTemplateViewChange](validateemailtemplateviewchange.md) | | +| class [ValidateExportTemplateAliasChange](validateexporttemplatealiaschange.md) | | +| class [ValidateExportTemplateCategoryChange](validateexporttemplatecategorychange.md) | | +| class [ValidateExportTemplateCreate](validateexporttemplatecreate.md) | | +| class [ValidateExportTemplateDelete](validateexporttemplatedelete.md) | | +| class [ValidateExportTemplateExportStrategyChange](validateexporttemplateexportstrategychange.md) | | +| class [ValidateExportTemplateFileExtensionChange](validateexporttemplatefileextensionchange.md) | | +| class [ValidateExportTemplateFileMimeTypeChange](validateexporttemplatefilemimetypechange.md) | | +| class [ValidateExportTemplateNameChange](validateexporttemplatenamechange.md) | | +| class [ValidateExportTemplateSave](validateexporttemplatesave.md) | | +| class [ValidateExportTemplateUpdate](validateexporttemplateupdate.md) | | +| class [ValidateExportTemplateViewChange](validateexporttemplateviewchange.md) | | +| class [ValidateFetchOrderPaymentStatus](validatefetchorderpaymentstatus.md) | | +| class [ValidateGiftCardActiveChange](validategiftcardactivechange.md) | | +| class [ValidateGiftCardAmountsChange](validategiftcardamountschange.md) | | +| class [ValidateGiftCardCodeChange](validategiftcardcodechange.md) | | +| class [ValidateGiftCardCreate](validategiftcardcreate.md) | | +| class [ValidateGiftCardCurrencyChange](validategiftcardcurrencychange.md) | | +| class [ValidateGiftCardDelete](validategiftcarddelete.md) | | +| class [ValidateGiftCardExpiryDateChange](validategiftcardexpirydatechange.md) | | +| class [ValidateGiftCardOrderChange](validategiftcardorderchange.md) | | +| class [ValidateGiftCardPropertyChange](validategiftcardpropertychange.md) | | +| class [ValidateGiftCardSave](validategiftcardsave.md) | | +| class [ValidateGiftCardUpdate](validategiftcardupdate.md) | | +| class [ValidateOrderAssignToCustomer](validateorderassigntocustomer.md) | | +| class [ValidateOrderCodeEvent](validateordercodeevent.md) | | +| class [ValidateOrderCreate](validateordercreate.md) | | +| class [ValidateOrderCurrencyChange](validateordercurrencychange.md) | | +| class [ValidateOrderDelete](validateorderdelete.md) | | +| class [ValidateOrderDiscountCodeRedeem](validateorderdiscountcoderedeem.md) | | +| class [ValidateOrderDiscountCodeUnredeem](validateorderdiscountcodeunredeem.md) | | +| class [ValidateOrderFinalize](validateorderfinalize.md) | | +| class [ValidateOrderGiftCardRedeem](validateordergiftcardredeem.md) | | +| class [ValidateOrderGiftCardUnredeem](validateordergiftcardunredeem.md) | | +| class [ValidateOrderLanguageChange](validateorderlanguagechange.md) | | +| class [ValidateOrderLinePropertyChange](validateorderlinepropertychange.md) | | +| class [ValidateOrderLineQuantityChange](validateorderlinequantitychange.md) | | +| class [ValidateOrderLineRemove](validateorderlineremove.md) | | +| class [ValidateOrderLineTaxClassChange](validateorderlinetaxclasschange.md) | | +| class [ValidateOrderPaymentCountryRegionChange](validateorderpaymentcountryregionchange.md) | | +| class [ValidateOrderPaymentMethodChange](validateorderpaymentmethodchange.md) | | +| class [ValidateOrderProductAdd](validateorderproductadd.md) | | +| class [ValidateOrderPropertyChange](validateorderpropertychange.md) | | +| class [ValidateOrderSave](validateordersave.md) | | +| class [ValidateOrderShippingCountryRegionChange](validateordershippingcountryregionchange.md) | | +| class [ValidateOrderShippingMethodChange](validateordershippingmethodchange.md) | | +| class [ValidateOrderStatusAliasChange](validateorderstatusaliaschange.md) | | +| class [ValidateOrderStatusChange](validateorderstatuschange.md) | | +| class [ValidateOrderStatusColorChange](validateorderstatuscolorchange.md) | | +| class [ValidateOrderStatusCreate](validateorderstatuscreate.md) | | +| class [ValidateOrderStatusDelete](validateorderstatusdelete.md) | | +| class [ValidateOrderStatusNameChange](validateorderstatusnamechange.md) | | +| class [ValidateOrderStatusSave](validateorderstatussave.md) | | +| class [ValidateOrderStatusUpdate](validateorderstatusupdate.md) | | +| class [ValidateOrderTagAdd](validateordertagadd.md) | | +| class [ValidateOrderTagRemove](validateordertagremove.md) | | +| class [ValidateOrderTaxClassChange](validateordertaxclasschange.md) | | +| class [ValidateOrderTransactionUpdate](validateordertransactionupdate.md) | | +| class [ValidateOrderUpdate](validateorderupdate.md) | | +| class [ValidatePaymentMethodAliasChange](validatepaymentmethodaliaschange.md) | | +| class [ValidatePaymentMethodAllowInCountryRegion](validatepaymentmethodallowincountryregion.md) | | +| class [ValidatePaymentMethodClearPrices](validatepaymentmethodclearprices.md) | | +| class [ValidatePaymentMethodCreate](validatepaymentmethodcreate.md) | | +| class [ValidatePaymentMethodDelete](validatepaymentmethoddelete.md) | | +| class [ValidatePaymentMethodDisallowInCountryRegion](validatepaymentmethoddisallowincountryregion.md) | | +| class [ValidatePaymentMethodImageChange](validatepaymentmethodimagechange.md) | | +| class [ValidatePaymentMethodNameChange](validatepaymentmethodnamechange.md) | | +| class [ValidatePaymentMethodPriceChange](validatepaymentmethodpricechange.md) | | +| class [ValidatePaymentMethodSave](validatepaymentmethodsave.md) | | +| class [ValidatePaymentMethodSettingChange](validatepaymentmethodsettingchange.md) | | +| class [ValidatePaymentMethodSkuChange](validatepaymentmethodskuchange.md) | | +| class [ValidatePaymentMethodTaxClassChange](validatepaymentmethodtaxclasschange.md) | | +| class [ValidatePaymentMethodToggleFeatures](validatepaymentmethodtogglefeatures.md) | | +| class [ValidatePaymentMethodUpdate](validatepaymentmethodupdate.md) | | +| class [ValidatePrintTemplateAliasChange](validateprinttemplatealiaschange.md) | | +| class [ValidatePrintTemplateCategoryChange](validateprinttemplatecategorychange.md) | | +| class [ValidatePrintTemplateCreate](validateprinttemplatecreate.md) | | +| class [ValidatePrintTemplateDelete](validateprinttemplatedelete.md) | | +| class [ValidatePrintTemplateNameChange](validateprinttemplatenamechange.md) | | +| class [ValidatePrintTemplateSave](validateprinttemplatesave.md) | | +| class [ValidatePrintTemplateUpdate](validateprinttemplateupdate.md) | | +| class [ValidatePrintTemplateViewChange](validateprinttemplateviewchange.md) | | +| class [ValidateProductAttributeAliasChange](validateproductattributealiaschange.md) | | +| class [ValidateProductAttributeCreate](validateproductattributecreate.md) | | +| class [ValidateProductAttributeDelete](validateproductattributedelete.md) | | +| class [ValidateProductAttributeNameChange](validateproductattributenamechange.md) | | +| class [ValidateProductAttributePresetAliasChange](validateproductattributepresetaliaschange.md) | | +| class [ValidateProductAttributePresetAllowAttribute](validateproductattributepresetallowattribute.md) | | +| class [ValidateProductAttributePresetCreate](validateproductattributepresetcreate.md) | | +| class [ValidateProductAttributePresetDelete](validateproductattributepresetdelete.md) | | +| class [ValidateProductAttributePresetDescriptionChange](validateproductattributepresetdescriptionchange.md) | | +| class [ValidateProductAttributePresetDisallowAttribute](validateproductattributepresetdisallowattribute.md) | | +| class [ValidateProductAttributePresetIconChange](validateproductattributepreseticonchange.md) | | +| class [ValidateProductAttributePresetNameChange](validateproductattributepresetnamechange.md) | | +| class [ValidateProductAttributePresetSave](validateproductattributepresetsave.md) | | +| class [ValidateProductAttributePresetUpdate](validateproductattributepresetupdate.md) | | +| class [ValidateProductAttributeSave](validateproductattributesave.md) | | +| class [ValidateProductAttributeUpdate](validateproductattributeupdate.md) | | +| class [ValidateProductAttributeValueAdd](validateproductattributevalueadd.md) | | +| class [ValidateProductAttributeValueNameChange](validateproductattributevaluenamechange.md) | | +| class [ValidateProductAttributeValueRemove](validateproductattributevalueremove.md) | | +| class [ValidateRefundOrderPayment](validaterefundorderpayment.md) | | +| class [ValidateRegionCodeChange](validateregioncodechange.md) | | +| class [ValidateRegionCreate](validateregioncreate.md) | | +| class [ValidateRegionDefaultPaymentMethodChange](validateregiondefaultpaymentmethodchange.md) | | +| class [ValidateRegionDefaultShippingMethodChange](validateregiondefaultshippingmethodchange.md) | | +| class [ValidateRegionDelete](validateregiondelete.md) | | +| class [ValidateRegionNameChange](validateregionnamechange.md) | | +| class [ValidateRegionSave](validateregionsave.md) | | +| class [ValidateRegionUpdate](validateregionupdate.md) | | +| class [ValidateShippingMethodAliasChange](validateshippingmethodaliaschange.md) | | +| class [ValidateShippingMethodAllowInCountryRegion](validateshippingmethodallowincountryregion.md) | | +| class [ValidateShippingMethodClearPrices](validateshippingmethodclearprices.md) | | +| class [ValidateShippingMethodCreate](validateshippingmethodcreate.md) | | +| class [ValidateShippingMethodDelete](validateshippingmethoddelete.md) | | +| class [ValidateShippingMethodDisallowInCountryRegion](validateshippingmethoddisallowincountryregion.md) | | +| class [ValidateShippingMethodImageChange](validateshippingmethodimagechange.md) | | +| class [ValidateShippingMethodNameChange](validateshippingmethodnamechange.md) | | +| class [ValidateShippingMethodPriceChange](validateshippingmethodpricechange.md) | | +| class [ValidateShippingMethodSave](validateshippingmethodsave.md) | | +| class [ValidateShippingMethodSkuChange](validateshippingmethodskuchange.md) | | +| class [ValidateShippingMethodTaxClassChange](validateshippingmethodtaxclasschange.md) | | +| class [ValidateShippingMethodUpdate](validateshippingmethodupdate.md) | | +| class [ValidateStockChange](validatestockchange.md) | | +| class [ValidateStoreAddGiftCardPropertyAlias](validatestoreaddgiftcardpropertyalias.md) | | +| class [ValidateStoreAddProductPropertyAlias](validatestoreaddproductpropertyalias.md) | | +| class [ValidateStoreAddProductUniquenessPropertyAlias](validatestoreaddproductuniquenesspropertyalias.md) | | +| class [ValidateStoreAliasChange](validatestorealiaschange.md) | | +| class [ValidateStoreAllowUser](validatestoreallowuser.md) | | +| class [ValidateStoreAllowUserRole](validatestoreallowuserrole.md) | | +| class [ValidateStoreBaseCurrencyChange](validatestorebasecurrencychange.md) | | +| class [ValidateStoreCookiesChange](validatestorecookieschange.md) | | +| class [ValidateStoreCreate](validatestorecreate.md) | | +| class [ValidateStoreDefaultCountryChange](validatestoredefaultcountrychange.md) | | +| class [ValidateStoreDefaultTaxClassChange](validatestoredefaulttaxclasschange.md) | | +| class [ValidateStoreDelete](validatestoredelete.md) | | +| class [ValidateStoreDisallowUser](validatestoredisallowuser.md) | | +| class [ValidateStoreDisallowUserRole](validatestoredisallowuserrole.md) | | +| class [ValidateStoreGiftCardSettingsChange](validatestoregiftcardsettingschange.md) | | +| class [ValidateStoreNameChange](validatestorenamechange.md) | | +| class [ValidateStoreNotificationEmailTemplatesChange](validatestorenotificationemailtemplateschange.md) | | +| class [ValidateStoreOrderEditorConfigChange](validatestoreordereditorconfigchange.md) | | +| class [ValidateStoreOrderNumberTemplatesChange](validatestoreordernumbertemplateschange.md) | | +| class [ValidateStoreOrderRoundingMethodChange](validatestoreorderroundingmethodchange.md) | | +| class [ValidateStoreOrderStatusesChange](validatestoreorderstatuseschange.md) | | +| class [ValidateStorePriceTaxInclusivityChange](validatestorepricetaxinclusivitychange.md) | | +| class [ValidateStoreRemoveGiftCardPropertyAlias](validatestoreremovegiftcardpropertyalias.md) | | +| class [ValidateStoreRemoveProductPropertyAlias](validatestoreremoveproductpropertyalias.md) | | +| class [ValidateStoreRemoveProductUniquenessPropertyAlias](validatestoreremoveproductuniquenesspropertyalias.md) | | +| class [ValidateStoreSave](validatestoresave.md) | | +| class [ValidateStoreShareStockFromStoreChange](validatestoresharestockfromstorechange.md) | | +| class [ValidateStoreUpdate](validatestoreupdate.md) | | +| class [ValidateTaxClassAliasChange](validatetaxclassaliaschange.md) | | +| class [ValidateTaxClassClearTaxRates](validatetaxclasscleartaxrates.md) | | +| class [ValidateTaxClassCreate](validatetaxclasscreate.md) | | +| class [ValidateTaxClassDelete](validatetaxclassdelete.md) | | +| class [ValidateTaxClassNameChange](validatetaxclassnamechange.md) | | +| class [ValidateTaxClassSave](validatetaxclasssave.md) | | +| class [ValidateTaxClassTaxRateChange](validatetaxclasstaxratechange.md) | | +| class [ValidateTaxClassUpdate](validatetaxclassupdate.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecancelorderpayment.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecancelorderpayment.md new file mode 100644 index 00000000000..56669fc8855 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecancelorderpayment.md @@ -0,0 +1,36 @@ +--- +title: ValidateCancelOrderPayment +description: API reference for ValidateCancelOrderPayment in Umbraco Commerce +--- +## ValidateCancelOrderPayment + +```csharp +public class ValidateCancelOrderPayment : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateCancelOrderPayment + +```csharp +public ValidateCancelOrderPayment(OrderReadOnly order) +``` + + +### Properties + +#### Order + +```csharp +public OrderReadOnly Order { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecaptureorderpayment.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecaptureorderpayment.md new file mode 100644 index 00000000000..49a02af9eb1 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecaptureorderpayment.md @@ -0,0 +1,36 @@ +--- +title: ValidateCaptureOrderPayment +description: API reference for ValidateCaptureOrderPayment in Umbraco Commerce +--- +## ValidateCaptureOrderPayment + +```csharp +public class ValidateCaptureOrderPayment : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateCaptureOrderPayment + +```csharp +public ValidateCaptureOrderPayment(OrderReadOnly order) +``` + + +### Properties + +#### Order + +```csharp +public OrderReadOnly Order { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecountrycodechange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecountrycodechange.md new file mode 100644 index 00000000000..19b12c1be56 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecountrycodechange.md @@ -0,0 +1,45 @@ +--- +title: ValidateCountryCodeChange +description: API reference for ValidateCountryCodeChange in Umbraco Commerce +--- +## ValidateCountryCodeChange + +```csharp +public class ValidateCountryCodeChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateCountryCodeChange + +```csharp +public ValidateCountryCodeChange(CountryReadOnly country, ChangingValue code) +``` + + +### Properties + +#### Code + +```csharp +public ChangingValue Code { get; } +``` + + +--- + +#### Country + +```csharp +public CountryReadOnly Country { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecountrycreate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecountrycreate.md new file mode 100644 index 00000000000..392312c4990 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecountrycreate.md @@ -0,0 +1,36 @@ +--- +title: ValidateCountryCreate +description: API reference for ValidateCountryCreate in Umbraco Commerce +--- +## ValidateCountryCreate + +```csharp +public class ValidateCountryCreate : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateCountryCreate + +```csharp +public ValidateCountryCreate(CountryReadOnly country) +``` + + +### Properties + +#### Country + +```csharp +public CountryReadOnly Country { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecountrydefaultcurrencychange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecountrydefaultcurrencychange.md new file mode 100644 index 00000000000..e2b0ea4d2bd --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecountrydefaultcurrencychange.md @@ -0,0 +1,46 @@ +--- +title: ValidateCountryDefaultCurrencyChange +description: API reference for ValidateCountryDefaultCurrencyChange in Umbraco Commerce +--- +## ValidateCountryDefaultCurrencyChange + +```csharp +public class ValidateCountryDefaultCurrencyChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateCountryDefaultCurrencyChange + +```csharp +public ValidateCountryDefaultCurrencyChange(CountryReadOnly country, + ChangingValue currencyId) +``` + + +### Properties + +#### Country + +```csharp +public CountryReadOnly Country { get; } +``` + + +--- + +#### CurrencyId + +```csharp +public ChangingValue CurrencyId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecountrydefaultpaymentmethodchange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecountrydefaultpaymentmethodchange.md new file mode 100644 index 00000000000..a7fa58000f9 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecountrydefaultpaymentmethodchange.md @@ -0,0 +1,46 @@ +--- +title: ValidateCountryDefaultPaymentMethodChange +description: API reference for ValidateCountryDefaultPaymentMethodChange in Umbraco Commerce +--- +## ValidateCountryDefaultPaymentMethodChange + +```csharp +public class ValidateCountryDefaultPaymentMethodChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateCountryDefaultPaymentMethodChange + +```csharp +public ValidateCountryDefaultPaymentMethodChange(CountryReadOnly country, + ChangingValue paymentMethodId) +``` + + +### Properties + +#### Country + +```csharp +public CountryReadOnly Country { get; } +``` + + +--- + +#### PaymentMethodId + +```csharp +public ChangingValue PaymentMethodId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecountrydefaultshippingmethodchange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecountrydefaultshippingmethodchange.md new file mode 100644 index 00000000000..dd7960b0a91 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecountrydefaultshippingmethodchange.md @@ -0,0 +1,46 @@ +--- +title: ValidateCountryDefaultShippingMethodChange +description: API reference for ValidateCountryDefaultShippingMethodChange in Umbraco Commerce +--- +## ValidateCountryDefaultShippingMethodChange + +```csharp +public class ValidateCountryDefaultShippingMethodChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateCountryDefaultShippingMethodChange + +```csharp +public ValidateCountryDefaultShippingMethodChange(CountryReadOnly country, + ChangingValue shippingMethodId) +``` + + +### Properties + +#### Country + +```csharp +public CountryReadOnly Country { get; } +``` + + +--- + +#### ShippingMethodId + +```csharp +public ChangingValue ShippingMethodId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecountrydelete.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecountrydelete.md new file mode 100644 index 00000000000..b56b4c73daf --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecountrydelete.md @@ -0,0 +1,36 @@ +--- +title: ValidateCountryDelete +description: API reference for ValidateCountryDelete in Umbraco Commerce +--- +## ValidateCountryDelete + +```csharp +public class ValidateCountryDelete : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateCountryDelete + +```csharp +public ValidateCountryDelete(CountryReadOnly country) +``` + + +### Properties + +#### Country + +```csharp +public CountryReadOnly Country { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecountrynamechange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecountrynamechange.md new file mode 100644 index 00000000000..da47d205825 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecountrynamechange.md @@ -0,0 +1,45 @@ +--- +title: ValidateCountryNameChange +description: API reference for ValidateCountryNameChange in Umbraco Commerce +--- +## ValidateCountryNameChange + +```csharp +public class ValidateCountryNameChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateCountryNameChange + +```csharp +public ValidateCountryNameChange(CountryReadOnly country, ChangingValue name) +``` + + +### Properties + +#### Country + +```csharp +public CountryReadOnly Country { get; } +``` + + +--- + +#### Name + +```csharp +public ChangingValue Name { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecountrysave.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecountrysave.md new file mode 100644 index 00000000000..1500b67014c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecountrysave.md @@ -0,0 +1,36 @@ +--- +title: ValidateCountrySave +description: API reference for ValidateCountrySave in Umbraco Commerce +--- +## ValidateCountrySave + +```csharp +public class ValidateCountrySave : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateCountrySave + +```csharp +public ValidateCountrySave(CountryReadOnly country) +``` + + +### Properties + +#### Country + +```csharp +public CountryReadOnly Country { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecountryupdate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecountryupdate.md new file mode 100644 index 00000000000..b927deb330c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecountryupdate.md @@ -0,0 +1,36 @@ +--- +title: ValidateCountryUpdate +description: API reference for ValidateCountryUpdate in Umbraco Commerce +--- +## ValidateCountryUpdate + +```csharp +public class ValidateCountryUpdate : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateCountryUpdate + +```csharp +public ValidateCountryUpdate(CountryReadOnly country) +``` + + +### Properties + +#### Country + +```csharp +public CountryReadOnly Country { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecurrencyallowincountry.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecurrencyallowincountry.md new file mode 100644 index 00000000000..3ba88a29707 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecurrencyallowincountry.md @@ -0,0 +1,45 @@ +--- +title: ValidateCurrencyAllowInCountry +description: API reference for ValidateCurrencyAllowInCountry in Umbraco Commerce +--- +## ValidateCurrencyAllowInCountry + +```csharp +public class ValidateCurrencyAllowInCountry : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateCurrencyAllowInCountry + +```csharp +public ValidateCurrencyAllowInCountry(CurrencyReadOnly currency, Guid countryId) +``` + + +### Properties + +#### CountryId + +```csharp +public Guid CountryId { get; } +``` + + +--- + +#### Currency + +```csharp +public CurrencyReadOnly Currency { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecurrencycodechange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecurrencycodechange.md new file mode 100644 index 00000000000..403d505a5af --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecurrencycodechange.md @@ -0,0 +1,45 @@ +--- +title: ValidateCurrencyCodeChange +description: API reference for ValidateCurrencyCodeChange in Umbraco Commerce +--- +## ValidateCurrencyCodeChange + +```csharp +public class ValidateCurrencyCodeChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateCurrencyCodeChange + +```csharp +public ValidateCurrencyCodeChange(CurrencyReadOnly currency, ChangingValue code) +``` + + +### Properties + +#### Code + +```csharp +public ChangingValue Code { get; } +``` + + +--- + +#### Currency + +```csharp +public CurrencyReadOnly Currency { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecurrencycreate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecurrencycreate.md new file mode 100644 index 00000000000..fed4c3ec261 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecurrencycreate.md @@ -0,0 +1,36 @@ +--- +title: ValidateCurrencyCreate +description: API reference for ValidateCurrencyCreate in Umbraco Commerce +--- +## ValidateCurrencyCreate + +```csharp +public class ValidateCurrencyCreate : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateCurrencyCreate + +```csharp +public ValidateCurrencyCreate(CurrencyReadOnly currency) +``` + + +### Properties + +#### Currency + +```csharp +public CurrencyReadOnly Currency { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecurrencyculturechange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecurrencyculturechange.md new file mode 100644 index 00000000000..5a09d2bf225 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecurrencyculturechange.md @@ -0,0 +1,45 @@ +--- +title: ValidateCurrencyCultureChange +description: API reference for ValidateCurrencyCultureChange in Umbraco Commerce +--- +## ValidateCurrencyCultureChange + +```csharp +public class ValidateCurrencyCultureChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateCurrencyCultureChange + +```csharp +public ValidateCurrencyCultureChange(CurrencyReadOnly currency, ChangingValue cultureName) +``` + + +### Properties + +#### CultureName + +```csharp +public ChangingValue CultureName { get; } +``` + + +--- + +#### Currency + +```csharp +public CurrencyReadOnly Currency { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecurrencycustomformattemplatechange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecurrencycustomformattemplatechange.md new file mode 100644 index 00000000000..fd6580e5b14 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecurrencycustomformattemplatechange.md @@ -0,0 +1,46 @@ +--- +title: ValidateCurrencyCustomFormatTemplateChange +description: API reference for ValidateCurrencyCustomFormatTemplateChange in Umbraco Commerce +--- +## ValidateCurrencyCustomFormatTemplateChange + +```csharp +public class ValidateCurrencyCustomFormatTemplateChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateCurrencyCustomFormatTemplateChange + +```csharp +public ValidateCurrencyCustomFormatTemplateChange(CurrencyReadOnly currency, + ChangingValue formatTemplate) +``` + + +### Properties + +#### Currency + +```csharp +public CurrencyReadOnly Currency { get; } +``` + + +--- + +#### FormatTemplate + +```csharp +public ChangingValue FormatTemplate { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecurrencydelete.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecurrencydelete.md new file mode 100644 index 00000000000..2a95ee04633 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecurrencydelete.md @@ -0,0 +1,36 @@ +--- +title: ValidateCurrencyDelete +description: API reference for ValidateCurrencyDelete in Umbraco Commerce +--- +## ValidateCurrencyDelete + +```csharp +public class ValidateCurrencyDelete : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateCurrencyDelete + +```csharp +public ValidateCurrencyDelete(CurrencyReadOnly currency) +``` + + +### Properties + +#### Currency + +```csharp +public CurrencyReadOnly Currency { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecurrencydisallowincountry.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecurrencydisallowincountry.md new file mode 100644 index 00000000000..9f530c3cc4f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecurrencydisallowincountry.md @@ -0,0 +1,45 @@ +--- +title: ValidateCurrencyDisallowInCountry +description: API reference for ValidateCurrencyDisallowInCountry in Umbraco Commerce +--- +## ValidateCurrencyDisallowInCountry + +```csharp +public class ValidateCurrencyDisallowInCountry : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateCurrencyDisallowInCountry + +```csharp +public ValidateCurrencyDisallowInCountry(CurrencyReadOnly currency, Guid countryId) +``` + + +### Properties + +#### CountryId + +```csharp +public Guid CountryId { get; } +``` + + +--- + +#### Currency + +```csharp +public CurrencyReadOnly Currency { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecurrencynamechange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecurrencynamechange.md new file mode 100644 index 00000000000..96e284be61b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecurrencynamechange.md @@ -0,0 +1,45 @@ +--- +title: ValidateCurrencyNameChange +description: API reference for ValidateCurrencyNameChange in Umbraco Commerce +--- +## ValidateCurrencyNameChange + +```csharp +public class ValidateCurrencyNameChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateCurrencyNameChange + +```csharp +public ValidateCurrencyNameChange(CurrencyReadOnly currency, ChangingValue name) +``` + + +### Properties + +#### Currency + +```csharp +public CurrencyReadOnly Currency { get; } +``` + + +--- + +#### Name + +```csharp +public ChangingValue Name { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecurrencysave.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecurrencysave.md new file mode 100644 index 00000000000..8933be9855b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecurrencysave.md @@ -0,0 +1,36 @@ +--- +title: ValidateCurrencySave +description: API reference for ValidateCurrencySave in Umbraco Commerce +--- +## ValidateCurrencySave + +```csharp +public class ValidateCurrencySave : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateCurrencySave + +```csharp +public ValidateCurrencySave(CurrencyReadOnly currency) +``` + + +### Properties + +#### Currency + +```csharp +public CurrencyReadOnly Currency { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecurrencyupdate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecurrencyupdate.md new file mode 100644 index 00000000000..0e6eeac6a35 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatecurrencyupdate.md @@ -0,0 +1,36 @@ +--- +title: ValidateCurrencyUpdate +description: API reference for ValidateCurrencyUpdate in Umbraco Commerce +--- +## ValidateCurrencyUpdate + +```csharp +public class ValidateCurrencyUpdate : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateCurrencyUpdate + +```csharp +public ValidateCurrencyUpdate(CurrencyReadOnly currency) +``` + + +### Properties + +#### Currency + +```csharp +public CurrencyReadOnly Currency { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountactivechange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountactivechange.md new file mode 100644 index 00000000000..a1a00125ab0 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountactivechange.md @@ -0,0 +1,45 @@ +--- +title: ValidateDiscountActiveChange +description: API reference for ValidateDiscountActiveChange in Umbraco Commerce +--- +## ValidateDiscountActiveChange + +```csharp +public class ValidateDiscountActiveChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateDiscountActiveChange + +```csharp +public ValidateDiscountActiveChange(DiscountReadOnly discount, ChangingValue isActive) +``` + + +### Properties + +#### Discount + +```csharp +public DiscountReadOnly Discount { get; } +``` + + +--- + +#### IsActive + +```csharp +public ChangingValue IsActive { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountaliaschange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountaliaschange.md new file mode 100644 index 00000000000..9862878cd51 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountaliaschange.md @@ -0,0 +1,45 @@ +--- +title: ValidateDiscountAliasChange +description: API reference for ValidateDiscountAliasChange in Umbraco Commerce +--- +## ValidateDiscountAliasChange + +```csharp +public class ValidateDiscountAliasChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateDiscountAliasChange + +```csharp +public ValidateDiscountAliasChange(DiscountReadOnly discount, ChangingValue alias) +``` + + +### Properties + +#### Alias + +```csharp +public ChangingValue Alias { get; } +``` + + +--- + +#### Discount + +```csharp +public DiscountReadOnly Discount { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountcodeadd.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountcodeadd.md new file mode 100644 index 00000000000..02a025f7f8d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountcodeadd.md @@ -0,0 +1,45 @@ +--- +title: ValidateDiscountCodeAdd +description: API reference for ValidateDiscountCodeAdd in Umbraco Commerce +--- +## ValidateDiscountCodeAdd + +```csharp +public class ValidateDiscountCodeAdd : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateDiscountCodeAdd + +```csharp +public ValidateDiscountCodeAdd(DiscountReadOnly discount, DiscountCode discountCode) +``` + + +### Properties + +#### Discount + +```csharp +public DiscountReadOnly Discount { get; } +``` + + +--- + +#### DiscountCode + +```csharp +public DiscountCode DiscountCode { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountcodechange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountcodechange.md new file mode 100644 index 00000000000..de999ad5fa7 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountcodechange.md @@ -0,0 +1,46 @@ +--- +title: ValidateDiscountCodeChange +description: API reference for ValidateDiscountCodeChange in Umbraco Commerce +--- +## ValidateDiscountCodeChange + +```csharp +public class ValidateDiscountCodeChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateDiscountCodeChange + +```csharp +public ValidateDiscountCodeChange(DiscountReadOnly discount, + ChangingValue discountCode) +``` + + +### Properties + +#### Discount + +```csharp +public DiscountReadOnly Discount { get; } +``` + + +--- + +#### DiscountCode + +```csharp +public ChangingValue DiscountCode { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountcoderemove.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountcoderemove.md new file mode 100644 index 00000000000..4af357b733e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountcoderemove.md @@ -0,0 +1,45 @@ +--- +title: ValidateDiscountCodeRemove +description: API reference for ValidateDiscountCodeRemove in Umbraco Commerce +--- +## ValidateDiscountCodeRemove + +```csharp +public class ValidateDiscountCodeRemove : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateDiscountCodeRemove + +```csharp +public ValidateDiscountCodeRemove(DiscountReadOnly discount, DiscountCode discountCode) +``` + + +### Properties + +#### Discount + +```csharp +public DiscountReadOnly Discount { get; } +``` + + +--- + +#### DiscountCode + +```csharp +public DiscountCode DiscountCode { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountcreate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountcreate.md new file mode 100644 index 00000000000..cf17e598dce --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountcreate.md @@ -0,0 +1,36 @@ +--- +title: ValidateDiscountCreate +description: API reference for ValidateDiscountCreate in Umbraco Commerce +--- +## ValidateDiscountCreate + +```csharp +public class ValidateDiscountCreate : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateDiscountCreate + +```csharp +public ValidateDiscountCreate(DiscountReadOnly discount) +``` + + +### Properties + +#### Discount + +```csharp +public DiscountReadOnly Discount { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountdaterangechange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountdaterangechange.md new file mode 100644 index 00000000000..ce6a0b659ed --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountdaterangechange.md @@ -0,0 +1,55 @@ +--- +title: ValidateDiscountDateRangeChange +description: API reference for ValidateDiscountDateRangeChange in Umbraco Commerce +--- +## ValidateDiscountDateRangeChange + +```csharp +public class ValidateDiscountDateRangeChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateDiscountDateRangeChange + +```csharp +public ValidateDiscountDateRangeChange(DiscountReadOnly discount, + ChangingValue startDate, ChangingValue expiryDate) +``` + + +### Properties + +#### Discount + +```csharp +public DiscountReadOnly Discount { get; } +``` + + +--- + +#### ExpiryDate + +```csharp +public ChangingValue ExpiryDate { get; } +``` + + +--- + +#### StartDate + +```csharp +public ChangingValue StartDate { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountdelete.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountdelete.md new file mode 100644 index 00000000000..11a3f2343cd --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountdelete.md @@ -0,0 +1,36 @@ +--- +title: ValidateDiscountDelete +description: API reference for ValidateDiscountDelete in Umbraco Commerce +--- +## ValidateDiscountDelete + +```csharp +public class ValidateDiscountDelete : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateDiscountDelete + +```csharp +public ValidateDiscountDelete(DiscountReadOnly discount) +``` + + +### Properties + +#### Discount + +```csharp +public DiscountReadOnly Discount { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountnamechange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountnamechange.md new file mode 100644 index 00000000000..3a74a342b63 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountnamechange.md @@ -0,0 +1,45 @@ +--- +title: ValidateDiscountNameChange +description: API reference for ValidateDiscountNameChange in Umbraco Commerce +--- +## ValidateDiscountNameChange + +```csharp +public class ValidateDiscountNameChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateDiscountNameChange + +```csharp +public ValidateDiscountNameChange(DiscountReadOnly discount, ChangingValue name) +``` + + +### Properties + +#### Discount + +```csharp +public DiscountReadOnly Discount { get; } +``` + + +--- + +#### Name + +```csharp +public ChangingValue Name { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountrewardschange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountrewardschange.md new file mode 100644 index 00000000000..8151299ef19 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountrewardschange.md @@ -0,0 +1,46 @@ +--- +title: ValidateDiscountRewardsChange +description: API reference for ValidateDiscountRewardsChange in Umbraco Commerce +--- +## ValidateDiscountRewardsChange + +```csharp +public class ValidateDiscountRewardsChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateDiscountRewardsChange + +```csharp +public ValidateDiscountRewardsChange(DiscountReadOnly discount, + ChangingValue> rewards) +``` + + +### Properties + +#### Discount + +```csharp +public DiscountReadOnly Discount { get; } +``` + + +--- + +#### Rewards + +```csharp +public ChangingValue> Rewards { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountruleschange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountruleschange.md new file mode 100644 index 00000000000..7b57eb364ac --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountruleschange.md @@ -0,0 +1,65 @@ +--- +title: ValidateDiscountRulesChange +description: API reference for ValidateDiscountRulesChange in Umbraco Commerce +--- +## ValidateDiscountRulesChange + +```csharp +public class ValidateDiscountRulesChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateDiscountRulesChange + +```csharp +public ValidateDiscountRulesChange(DiscountReadOnly discount, + ChangingValue rules, ChangingValue blockFurtherDiscounts, + ChangingValue blockIfPreviousDiscounts) +``` + + +### Properties + +#### BlockFurtherDiscounts + +```csharp +public ChangingValue BlockFurtherDiscounts { get; } +``` + + +--- + +#### BlockIfPreviousDiscounts + +```csharp +public ChangingValue BlockIfPreviousDiscounts { get; } +``` + + +--- + +#### Discount + +```csharp +public DiscountReadOnly Discount { get; } +``` + + +--- + +#### Rules + +```csharp +public ChangingValue Rules { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountsave.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountsave.md new file mode 100644 index 00000000000..f2e64d6818d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountsave.md @@ -0,0 +1,36 @@ +--- +title: ValidateDiscountSave +description: API reference for ValidateDiscountSave in Umbraco Commerce +--- +## ValidateDiscountSave + +```csharp +public class ValidateDiscountSave : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateDiscountSave + +```csharp +public ValidateDiscountSave(DiscountReadOnly discount) +``` + + +### Properties + +#### Discount + +```csharp +public DiscountReadOnly Discount { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscounttypechange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscounttypechange.md new file mode 100644 index 00000000000..c8999f21a86 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscounttypechange.md @@ -0,0 +1,45 @@ +--- +title: ValidateDiscountTypeChange +description: API reference for ValidateDiscountTypeChange in Umbraco Commerce +--- +## ValidateDiscountTypeChange + +```csharp +public class ValidateDiscountTypeChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateDiscountTypeChange + +```csharp +public ValidateDiscountTypeChange(DiscountReadOnly discount, ChangingValue type) +``` + + +### Properties + +#### Discount + +```csharp +public DiscountReadOnly Discount { get; } +``` + + +--- + +#### Type + +```csharp +public ChangingValue Type { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountupdate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountupdate.md new file mode 100644 index 00000000000..791ae9a35fb --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatediscountupdate.md @@ -0,0 +1,36 @@ +--- +title: ValidateDiscountUpdate +description: API reference for ValidateDiscountUpdate in Umbraco Commerce +--- +## ValidateDiscountUpdate + +```csharp +public class ValidateDiscountUpdate : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateDiscountUpdate + +```csharp +public ValidateDiscountUpdate(DiscountReadOnly discount) +``` + + +### Properties + +#### Discount + +```csharp +public DiscountReadOnly Discount { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplatealiaschange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplatealiaschange.md new file mode 100644 index 00000000000..7c652396f4a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplatealiaschange.md @@ -0,0 +1,46 @@ +--- +title: ValidateEmailTemplateAliasChange +description: API reference for ValidateEmailTemplateAliasChange in Umbraco Commerce +--- +## ValidateEmailTemplateAliasChange + +```csharp +public class ValidateEmailTemplateAliasChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateEmailTemplateAliasChange + +```csharp +public ValidateEmailTemplateAliasChange(EmailTemplateReadOnly emailTemplate, + ChangingValue alias) +``` + + +### Properties + +#### Alias + +```csharp +public ChangingValue Alias { get; } +``` + + +--- + +#### EmailTemplate + +```csharp +public EmailTemplateReadOnly EmailTemplate { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplatebccaddresschange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplatebccaddresschange.md new file mode 100644 index 00000000000..0919ece85ac --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplatebccaddresschange.md @@ -0,0 +1,46 @@ +--- +title: ValidateEmailTemplateBccAddressChange +description: API reference for ValidateEmailTemplateBccAddressChange in Umbraco Commerce +--- +## ValidateEmailTemplateBccAddressChange + +```csharp +public class ValidateEmailTemplateBccAddressChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateEmailTemplateBccAddressChange + +```csharp +public ValidateEmailTemplateBccAddressChange(EmailTemplateReadOnly emailTemplate, + ChangingValue bccAddress) +``` + + +### Properties + +#### BccAddress + +```csharp +public ChangingValue BccAddress { get; } +``` + + +--- + +#### EmailTemplate + +```csharp +public EmailTemplateReadOnly EmailTemplate { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplatecategorychange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplatecategorychange.md new file mode 100644 index 00000000000..f14c6a228b6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplatecategorychange.md @@ -0,0 +1,46 @@ +--- +title: ValidateEmailTemplateCategoryChange +description: API reference for ValidateEmailTemplateCategoryChange in Umbraco Commerce +--- +## ValidateEmailTemplateCategoryChange + +```csharp +public class ValidateEmailTemplateCategoryChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateEmailTemplateCategoryChange + +```csharp +public ValidateEmailTemplateCategoryChange(EmailTemplateReadOnly emailTemplate, + ChangingValue category) +``` + + +### Properties + +#### Category + +```csharp +public ChangingValue Category { get; } +``` + + +--- + +#### EmailTemplate + +```csharp +public EmailTemplateReadOnly EmailTemplate { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplateccaddresschange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplateccaddresschange.md new file mode 100644 index 00000000000..6a9d4a8245e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplateccaddresschange.md @@ -0,0 +1,46 @@ +--- +title: ValidateEmailTemplateCcAddressChange +description: API reference for ValidateEmailTemplateCcAddressChange in Umbraco Commerce +--- +## ValidateEmailTemplateCcAddressChange + +```csharp +public class ValidateEmailTemplateCcAddressChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateEmailTemplateCcAddressChange + +```csharp +public ValidateEmailTemplateCcAddressChange(EmailTemplateReadOnly emailTemplate, + ChangingValue ccAddress) +``` + + +### Properties + +#### CcAddress + +```csharp +public ChangingValue CcAddress { get; } +``` + + +--- + +#### EmailTemplate + +```csharp +public EmailTemplateReadOnly EmailTemplate { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplatecreate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplatecreate.md new file mode 100644 index 00000000000..e07f8521767 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplatecreate.md @@ -0,0 +1,36 @@ +--- +title: ValidateEmailTemplateCreate +description: API reference for ValidateEmailTemplateCreate in Umbraco Commerce +--- +## ValidateEmailTemplateCreate + +```csharp +public class ValidateEmailTemplateCreate : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateEmailTemplateCreate + +```csharp +public ValidateEmailTemplateCreate(EmailTemplateReadOnly emailTemplate) +``` + + +### Properties + +#### EmailTemplate + +```csharp +public EmailTemplateReadOnly EmailTemplate { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplatedelete.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplatedelete.md new file mode 100644 index 00000000000..4a8a8754352 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplatedelete.md @@ -0,0 +1,36 @@ +--- +title: ValidateEmailTemplateDelete +description: API reference for ValidateEmailTemplateDelete in Umbraco Commerce +--- +## ValidateEmailTemplateDelete + +```csharp +public class ValidateEmailTemplateDelete : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateEmailTemplateDelete + +```csharp +public ValidateEmailTemplateDelete(EmailTemplateReadOnly emailTemplate) +``` + + +### Properties + +#### EmailTemplate + +```csharp +public EmailTemplateReadOnly EmailTemplate { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplatenamechange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplatenamechange.md new file mode 100644 index 00000000000..bd692a9753f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplatenamechange.md @@ -0,0 +1,46 @@ +--- +title: ValidateEmailTemplateNameChange +description: API reference for ValidateEmailTemplateNameChange in Umbraco Commerce +--- +## ValidateEmailTemplateNameChange + +```csharp +public class ValidateEmailTemplateNameChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateEmailTemplateNameChange + +```csharp +public ValidateEmailTemplateNameChange(EmailTemplateReadOnly emailTemplate, + ChangingValue name) +``` + + +### Properties + +#### EmailTemplate + +```csharp +public EmailTemplateReadOnly EmailTemplate { get; } +``` + + +--- + +#### Name + +```csharp +public ChangingValue Name { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplatereplytoaddresschange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplatereplytoaddresschange.md new file mode 100644 index 00000000000..b2014f2d9fa --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplatereplytoaddresschange.md @@ -0,0 +1,46 @@ +--- +title: ValidateEmailTemplateReplyToAddressChange +description: API reference for ValidateEmailTemplateReplyToAddressChange in Umbraco Commerce +--- +## ValidateEmailTemplateReplyToAddressChange + +```csharp +public class ValidateEmailTemplateReplyToAddressChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateEmailTemplateReplyToAddressChange + +```csharp +public ValidateEmailTemplateReplyToAddressChange(EmailTemplateReadOnly emailTemplate, + ChangingValue emailAddress) +``` + + +### Properties + +#### EmailTemplate + +```csharp +public EmailTemplateReadOnly EmailTemplate { get; } +``` + + +--- + +#### ReplyToAddress + +```csharp +public ChangingValue ReplyToAddress { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplatesave.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplatesave.md new file mode 100644 index 00000000000..bdf1a8ee9b9 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplatesave.md @@ -0,0 +1,36 @@ +--- +title: ValidateEmailTemplateSave +description: API reference for ValidateEmailTemplateSave in Umbraco Commerce +--- +## ValidateEmailTemplateSave + +```csharp +public class ValidateEmailTemplateSave : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateEmailTemplateSave + +```csharp +public ValidateEmailTemplateSave(EmailTemplateReadOnly emailTemplate) +``` + + +### Properties + +#### EmailTemplate + +```csharp +public EmailTemplateReadOnly EmailTemplate { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplatesenderchange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplatesenderchange.md new file mode 100644 index 00000000000..14a27ff2804 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplatesenderchange.md @@ -0,0 +1,55 @@ +--- +title: ValidateEmailTemplateSenderChange +description: API reference for ValidateEmailTemplateSenderChange in Umbraco Commerce +--- +## ValidateEmailTemplateSenderChange + +```csharp +public class ValidateEmailTemplateSenderChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateEmailTemplateSenderChange + +```csharp +public ValidateEmailTemplateSenderChange(EmailTemplateReadOnly emailTemplate, + ChangingValue senderName, ChangingValue senderAddress) +``` + + +### Properties + +#### EmailTemplate + +```csharp +public EmailTemplateReadOnly EmailTemplate { get; } +``` + + +--- + +#### SenderAddress + +```csharp +public ChangingValue SenderAddress { get; } +``` + + +--- + +#### SenderName + +```csharp +public ChangingValue SenderName { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplatesendtocustomerchange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplatesendtocustomerchange.md new file mode 100644 index 00000000000..7cb04a5232a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplatesendtocustomerchange.md @@ -0,0 +1,46 @@ +--- +title: ValidateEmailTemplateSendToCustomerChange +description: API reference for ValidateEmailTemplateSendToCustomerChange in Umbraco Commerce +--- +## ValidateEmailTemplateSendToCustomerChange + +```csharp +public class ValidateEmailTemplateSendToCustomerChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateEmailTemplateSendToCustomerChange + +```csharp +public ValidateEmailTemplateSendToCustomerChange(EmailTemplateReadOnly emailTemplate, + ChangingValue sendToCustomer) +``` + + +### Properties + +#### EmailTemplate + +```csharp +public EmailTemplateReadOnly EmailTemplate { get; } +``` + + +--- + +#### SendToCustomer + +```csharp +public ChangingValue SendToCustomer { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplatesubjectchange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplatesubjectchange.md new file mode 100644 index 00000000000..a64c953fb42 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplatesubjectchange.md @@ -0,0 +1,46 @@ +--- +title: ValidateEmailTemplateSubjectChange +description: API reference for ValidateEmailTemplateSubjectChange in Umbraco Commerce +--- +## ValidateEmailTemplateSubjectChange + +```csharp +public class ValidateEmailTemplateSubjectChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateEmailTemplateSubjectChange + +```csharp +public ValidateEmailTemplateSubjectChange(EmailTemplateReadOnly emailTemplate, + ChangingValue subject) +``` + + +### Properties + +#### EmailTemplate + +```csharp +public EmailTemplateReadOnly EmailTemplate { get; } +``` + + +--- + +#### Subject + +```csharp +public ChangingValue Subject { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplatetoaddresschange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplatetoaddresschange.md new file mode 100644 index 00000000000..a303196a1b0 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplatetoaddresschange.md @@ -0,0 +1,46 @@ +--- +title: ValidateEmailTemplateToAddressChange +description: API reference for ValidateEmailTemplateToAddressChange in Umbraco Commerce +--- +## ValidateEmailTemplateToAddressChange + +```csharp +public class ValidateEmailTemplateToAddressChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateEmailTemplateToAddressChange + +```csharp +public ValidateEmailTemplateToAddressChange(EmailTemplateReadOnly emailTemplate, + ChangingValue toAddress) +``` + + +### Properties + +#### EmailTemplate + +```csharp +public EmailTemplateReadOnly EmailTemplate { get; } +``` + + +--- + +#### ToAddress + +```csharp +public ChangingValue ToAddress { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplateupdate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplateupdate.md new file mode 100644 index 00000000000..72f7574c61c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplateupdate.md @@ -0,0 +1,36 @@ +--- +title: ValidateEmailTemplateUpdate +description: API reference for ValidateEmailTemplateUpdate in Umbraco Commerce +--- +## ValidateEmailTemplateUpdate + +```csharp +public class ValidateEmailTemplateUpdate : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateEmailTemplateUpdate + +```csharp +public ValidateEmailTemplateUpdate(EmailTemplateReadOnly emailTemplate) +``` + + +### Properties + +#### EmailTemplate + +```csharp +public EmailTemplateReadOnly EmailTemplate { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplateviewchange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplateviewchange.md new file mode 100644 index 00000000000..74f56388313 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateemailtemplateviewchange.md @@ -0,0 +1,46 @@ +--- +title: ValidateEmailTemplateViewChange +description: API reference for ValidateEmailTemplateViewChange in Umbraco Commerce +--- +## ValidateEmailTemplateViewChange + +```csharp +public class ValidateEmailTemplateViewChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateEmailTemplateViewChange + +```csharp +public ValidateEmailTemplateViewChange(EmailTemplateReadOnly emailTemplate, + ChangingValue templateView) +``` + + +### Properties + +#### EmailTemplate + +```csharp +public EmailTemplateReadOnly EmailTemplate { get; } +``` + + +--- + +#### TemplateView + +```csharp +public ChangingValue TemplateView { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateexporttemplatealiaschange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateexporttemplatealiaschange.md new file mode 100644 index 00000000000..f5c2d9ca407 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateexporttemplatealiaschange.md @@ -0,0 +1,46 @@ +--- +title: ValidateExportTemplateAliasChange +description: API reference for ValidateExportTemplateAliasChange in Umbraco Commerce +--- +## ValidateExportTemplateAliasChange + +```csharp +public class ValidateExportTemplateAliasChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateExportTemplateAliasChange + +```csharp +public ValidateExportTemplateAliasChange(ExportTemplateReadOnly exportTemplate, + ChangingValue alias) +``` + + +### Properties + +#### Alias + +```csharp +public ChangingValue Alias { get; } +``` + + +--- + +#### ExportTemplate + +```csharp +public ExportTemplateReadOnly ExportTemplate { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateexporttemplatecategorychange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateexporttemplatecategorychange.md new file mode 100644 index 00000000000..02bc60f7921 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateexporttemplatecategorychange.md @@ -0,0 +1,46 @@ +--- +title: ValidateExportTemplateCategoryChange +description: API reference for ValidateExportTemplateCategoryChange in Umbraco Commerce +--- +## ValidateExportTemplateCategoryChange + +```csharp +public class ValidateExportTemplateCategoryChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateExportTemplateCategoryChange + +```csharp +public ValidateExportTemplateCategoryChange(ExportTemplateReadOnly exportTemplate, + ChangingValue category) +``` + + +### Properties + +#### Category + +```csharp +public ChangingValue Category { get; } +``` + + +--- + +#### ExportTemplate + +```csharp +public ExportTemplateReadOnly ExportTemplate { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateexporttemplatecreate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateexporttemplatecreate.md new file mode 100644 index 00000000000..ec33e6d0fd0 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateexporttemplatecreate.md @@ -0,0 +1,36 @@ +--- +title: ValidateExportTemplateCreate +description: API reference for ValidateExportTemplateCreate in Umbraco Commerce +--- +## ValidateExportTemplateCreate + +```csharp +public class ValidateExportTemplateCreate : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateExportTemplateCreate + +```csharp +public ValidateExportTemplateCreate(ExportTemplateReadOnly exportTemplate) +``` + + +### Properties + +#### ExportTemplate + +```csharp +public ExportTemplateReadOnly ExportTemplate { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateexporttemplatedelete.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateexporttemplatedelete.md new file mode 100644 index 00000000000..7a6ff41775d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateexporttemplatedelete.md @@ -0,0 +1,36 @@ +--- +title: ValidateExportTemplateDelete +description: API reference for ValidateExportTemplateDelete in Umbraco Commerce +--- +## ValidateExportTemplateDelete + +```csharp +public class ValidateExportTemplateDelete : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateExportTemplateDelete + +```csharp +public ValidateExportTemplateDelete(ExportTemplateReadOnly exportTemplate) +``` + + +### Properties + +#### ExportTemplate + +```csharp +public ExportTemplateReadOnly ExportTemplate { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateexporttemplateexportstrategychange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateexporttemplateexportstrategychange.md new file mode 100644 index 00000000000..b4d0b3c80a4 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateexporttemplateexportstrategychange.md @@ -0,0 +1,46 @@ +--- +title: ValidateExportTemplateExportStrategyChange +description: API reference for ValidateExportTemplateExportStrategyChange in Umbraco Commerce +--- +## ValidateExportTemplateExportStrategyChange + +```csharp +public class ValidateExportTemplateExportStrategyChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateExportTemplateExportStrategyChange + +```csharp +public ValidateExportTemplateExportStrategyChange(ExportTemplateReadOnly exportTemplate, + ChangingValue exportStrategy) +``` + + +### Properties + +#### ExportStrategy + +```csharp +public ChangingValue ExportStrategy { get; } +``` + + +--- + +#### ExportTemplate + +```csharp +public ExportTemplateReadOnly ExportTemplate { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateexporttemplatefileextensionchange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateexporttemplatefileextensionchange.md new file mode 100644 index 00000000000..6ef4808aabe --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateexporttemplatefileextensionchange.md @@ -0,0 +1,46 @@ +--- +title: ValidateExportTemplateFileExtensionChange +description: API reference for ValidateExportTemplateFileExtensionChange in Umbraco Commerce +--- +## ValidateExportTemplateFileExtensionChange + +```csharp +public class ValidateExportTemplateFileExtensionChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateExportTemplateFileExtensionChange + +```csharp +public ValidateExportTemplateFileExtensionChange(ExportTemplateReadOnly exportTemplate, + ChangingValue fileExtension) +``` + + +### Properties + +#### ExportTemplate + +```csharp +public ExportTemplateReadOnly ExportTemplate { get; } +``` + + +--- + +#### FileExtension + +```csharp +public ChangingValue FileExtension { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateexporttemplatefilemimetypechange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateexporttemplatefilemimetypechange.md new file mode 100644 index 00000000000..75851b40d52 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateexporttemplatefilemimetypechange.md @@ -0,0 +1,46 @@ +--- +title: ValidateExportTemplateFileMimeTypeChange +description: API reference for ValidateExportTemplateFileMimeTypeChange in Umbraco Commerce +--- +## ValidateExportTemplateFileMimeTypeChange + +```csharp +public class ValidateExportTemplateFileMimeTypeChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateExportTemplateFileMimeTypeChange + +```csharp +public ValidateExportTemplateFileMimeTypeChange(ExportTemplateReadOnly exportTemplate, + ChangingValue fileMimeType) +``` + + +### Properties + +#### ExportTemplate + +```csharp +public ExportTemplateReadOnly ExportTemplate { get; } +``` + + +--- + +#### FileMimeType + +```csharp +public ChangingValue FileMimeType { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateexporttemplatenamechange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateexporttemplatenamechange.md new file mode 100644 index 00000000000..9ff805b95cb --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateexporttemplatenamechange.md @@ -0,0 +1,46 @@ +--- +title: ValidateExportTemplateNameChange +description: API reference for ValidateExportTemplateNameChange in Umbraco Commerce +--- +## ValidateExportTemplateNameChange + +```csharp +public class ValidateExportTemplateNameChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateExportTemplateNameChange + +```csharp +public ValidateExportTemplateNameChange(ExportTemplateReadOnly exportTemplate, + ChangingValue name) +``` + + +### Properties + +#### ExportTemplate + +```csharp +public ExportTemplateReadOnly ExportTemplate { get; } +``` + + +--- + +#### Name + +```csharp +public ChangingValue Name { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateexporttemplatesave.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateexporttemplatesave.md new file mode 100644 index 00000000000..faec59a5597 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateexporttemplatesave.md @@ -0,0 +1,36 @@ +--- +title: ValidateExportTemplateSave +description: API reference for ValidateExportTemplateSave in Umbraco Commerce +--- +## ValidateExportTemplateSave + +```csharp +public class ValidateExportTemplateSave : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateExportTemplateSave + +```csharp +public ValidateExportTemplateSave(ExportTemplateReadOnly exportTemplate) +``` + + +### Properties + +#### ExportTemplate + +```csharp +public ExportTemplateReadOnly ExportTemplate { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateexporttemplateupdate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateexporttemplateupdate.md new file mode 100644 index 00000000000..703d2ee5425 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateexporttemplateupdate.md @@ -0,0 +1,36 @@ +--- +title: ValidateExportTemplateUpdate +description: API reference for ValidateExportTemplateUpdate in Umbraco Commerce +--- +## ValidateExportTemplateUpdate + +```csharp +public class ValidateExportTemplateUpdate : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateExportTemplateUpdate + +```csharp +public ValidateExportTemplateUpdate(ExportTemplateReadOnly exportTemplate) +``` + + +### Properties + +#### ExportTemplate + +```csharp +public ExportTemplateReadOnly ExportTemplate { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateexporttemplateviewchange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateexporttemplateviewchange.md new file mode 100644 index 00000000000..4da7eb74893 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateexporttemplateviewchange.md @@ -0,0 +1,46 @@ +--- +title: ValidateExportTemplateViewChange +description: API reference for ValidateExportTemplateViewChange in Umbraco Commerce +--- +## ValidateExportTemplateViewChange + +```csharp +public class ValidateExportTemplateViewChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateExportTemplateViewChange + +```csharp +public ValidateExportTemplateViewChange(ExportTemplateReadOnly exportTemplate, + ChangingValue templateView) +``` + + +### Properties + +#### ExportTemplate + +```csharp +public ExportTemplateReadOnly ExportTemplate { get; } +``` + + +--- + +#### TemplateView + +```csharp +public ChangingValue TemplateView { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatefetchorderpaymentstatus.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatefetchorderpaymentstatus.md new file mode 100644 index 00000000000..2b289b7742b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatefetchorderpaymentstatus.md @@ -0,0 +1,36 @@ +--- +title: ValidateFetchOrderPaymentStatus +description: API reference for ValidateFetchOrderPaymentStatus in Umbraco Commerce +--- +## ValidateFetchOrderPaymentStatus + +```csharp +public class ValidateFetchOrderPaymentStatus : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateFetchOrderPaymentStatus + +```csharp +public ValidateFetchOrderPaymentStatus(OrderReadOnly order) +``` + + +### Properties + +#### Order + +```csharp +public OrderReadOnly Order { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validategiftcardactivechange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validategiftcardactivechange.md new file mode 100644 index 00000000000..1d5d4071747 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validategiftcardactivechange.md @@ -0,0 +1,45 @@ +--- +title: ValidateGiftCardActiveChange +description: API reference for ValidateGiftCardActiveChange in Umbraco Commerce +--- +## ValidateGiftCardActiveChange + +```csharp +public class ValidateGiftCardActiveChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateGiftCardActiveChange + +```csharp +public ValidateGiftCardActiveChange(GiftCardReadOnly giftCard, ChangingValue isActive) +``` + + +### Properties + +#### GiftCard + +```csharp +public GiftCardReadOnly GiftCard { get; } +``` + + +--- + +#### IsActive + +```csharp +public ChangingValue IsActive { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validategiftcardamountschange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validategiftcardamountschange.md new file mode 100644 index 00000000000..00035391ac3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validategiftcardamountschange.md @@ -0,0 +1,55 @@ +--- +title: ValidateGiftCardAmountsChange +description: API reference for ValidateGiftCardAmountsChange in Umbraco Commerce +--- +## ValidateGiftCardAmountsChange + +```csharp +public class ValidateGiftCardAmountsChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateGiftCardAmountsChange + +```csharp +public ValidateGiftCardAmountsChange(GiftCardReadOnly giftCard, + ChangingValue originalAmount, ChangingValue remainingAmount) +``` + + +### Properties + +#### GiftCard + +```csharp +public GiftCardReadOnly GiftCard { get; } +``` + + +--- + +#### OriginalAmount + +```csharp +public ChangingValue OriginalAmount { get; } +``` + + +--- + +#### RemainingAmount + +```csharp +public ChangingValue RemainingAmount { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validategiftcardcodechange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validategiftcardcodechange.md new file mode 100644 index 00000000000..cc6d1a834f4 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validategiftcardcodechange.md @@ -0,0 +1,45 @@ +--- +title: ValidateGiftCardCodeChange +description: API reference for ValidateGiftCardCodeChange in Umbraco Commerce +--- +## ValidateGiftCardCodeChange + +```csharp +public class ValidateGiftCardCodeChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateGiftCardCodeChange + +```csharp +public ValidateGiftCardCodeChange(GiftCardReadOnly giftCard, ChangingValue code) +``` + + +### Properties + +#### Code + +```csharp +public ChangingValue Code { get; } +``` + + +--- + +#### GiftCard + +```csharp +public GiftCardReadOnly GiftCard { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validategiftcardcreate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validategiftcardcreate.md new file mode 100644 index 00000000000..8815d7ce82f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validategiftcardcreate.md @@ -0,0 +1,36 @@ +--- +title: ValidateGiftCardCreate +description: API reference for ValidateGiftCardCreate in Umbraco Commerce +--- +## ValidateGiftCardCreate + +```csharp +public class ValidateGiftCardCreate : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateGiftCardCreate + +```csharp +public ValidateGiftCardCreate(GiftCardReadOnly giftCard) +``` + + +### Properties + +#### GiftCard + +```csharp +public GiftCardReadOnly GiftCard { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validategiftcardcurrencychange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validategiftcardcurrencychange.md new file mode 100644 index 00000000000..f210db6ca15 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validategiftcardcurrencychange.md @@ -0,0 +1,45 @@ +--- +title: ValidateGiftCardCurrencyChange +description: API reference for ValidateGiftCardCurrencyChange in Umbraco Commerce +--- +## ValidateGiftCardCurrencyChange + +```csharp +public class ValidateGiftCardCurrencyChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateGiftCardCurrencyChange + +```csharp +public ValidateGiftCardCurrencyChange(GiftCardReadOnly giftCard, ChangingValue currencyId) +``` + + +### Properties + +#### CurrencyId + +```csharp +public ChangingValue CurrencyId { get; } +``` + + +--- + +#### GiftCard + +```csharp +public GiftCardReadOnly GiftCard { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validategiftcarddelete.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validategiftcarddelete.md new file mode 100644 index 00000000000..b9c84315a8e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validategiftcarddelete.md @@ -0,0 +1,36 @@ +--- +title: ValidateGiftCardDelete +description: API reference for ValidateGiftCardDelete in Umbraco Commerce +--- +## ValidateGiftCardDelete + +```csharp +public class ValidateGiftCardDelete : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateGiftCardDelete + +```csharp +public ValidateGiftCardDelete(GiftCardReadOnly giftCard) +``` + + +### Properties + +#### GiftCard + +```csharp +public GiftCardReadOnly GiftCard { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validategiftcardexpirydatechange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validategiftcardexpirydatechange.md new file mode 100644 index 00000000000..9588e46ce92 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validategiftcardexpirydatechange.md @@ -0,0 +1,46 @@ +--- +title: ValidateGiftCardExpiryDateChange +description: API reference for ValidateGiftCardExpiryDateChange in Umbraco Commerce +--- +## ValidateGiftCardExpiryDateChange + +```csharp +public class ValidateGiftCardExpiryDateChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateGiftCardExpiryDateChange + +```csharp +public ValidateGiftCardExpiryDateChange(GiftCardReadOnly giftCard, + ChangingValue expiryDate) +``` + + +### Properties + +#### ExpiryDate + +```csharp +public ChangingValue ExpiryDate { get; } +``` + + +--- + +#### GiftCard + +```csharp +public GiftCardReadOnly GiftCard { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validategiftcardorderchange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validategiftcardorderchange.md new file mode 100644 index 00000000000..a927e598fa2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validategiftcardorderchange.md @@ -0,0 +1,45 @@ +--- +title: ValidateGiftCardOrderChange +description: API reference for ValidateGiftCardOrderChange in Umbraco Commerce +--- +## ValidateGiftCardOrderChange + +```csharp +public class ValidateGiftCardOrderChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateGiftCardOrderChange + +```csharp +public ValidateGiftCardOrderChange(GiftCardReadOnly giftCard, ChangingValue orderId) +``` + + +### Properties + +#### GiftCard + +```csharp +public GiftCardReadOnly GiftCard { get; } +``` + + +--- + +#### OrderId + +```csharp +public ChangingValue OrderId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validategiftcardpropertychange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validategiftcardpropertychange.md new file mode 100644 index 00000000000..654043106ca --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validategiftcardpropertychange.md @@ -0,0 +1,55 @@ +--- +title: ValidateGiftCardPropertyChange +description: API reference for ValidateGiftCardPropertyChange in Umbraco Commerce +--- +## ValidateGiftCardPropertyChange + +```csharp +public class ValidateGiftCardPropertyChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateGiftCardPropertyChange + +```csharp +public ValidateGiftCardPropertyChange(GiftCardReadOnly giftCard, string alias, + ChangingValue value) +``` + + +### Properties + +#### Alias + +```csharp +public string Alias { get; } +``` + + +--- + +#### GiftCard + +```csharp +public GiftCardReadOnly GiftCard { get; } +``` + + +--- + +#### Value + +```csharp +public ChangingValue Value { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validategiftcardsave.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validategiftcardsave.md new file mode 100644 index 00000000000..9fc16d38dd4 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validategiftcardsave.md @@ -0,0 +1,36 @@ +--- +title: ValidateGiftCardSave +description: API reference for ValidateGiftCardSave in Umbraco Commerce +--- +## ValidateGiftCardSave + +```csharp +public class ValidateGiftCardSave : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateGiftCardSave + +```csharp +public ValidateGiftCardSave(GiftCardReadOnly giftCard) +``` + + +### Properties + +#### GiftCard + +```csharp +public GiftCardReadOnly GiftCard { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validategiftcardupdate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validategiftcardupdate.md new file mode 100644 index 00000000000..491021b569e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validategiftcardupdate.md @@ -0,0 +1,36 @@ +--- +title: ValidateGiftCardUpdate +description: API reference for ValidateGiftCardUpdate in Umbraco Commerce +--- +## ValidateGiftCardUpdate + +```csharp +public class ValidateGiftCardUpdate : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateGiftCardUpdate + +```csharp +public ValidateGiftCardUpdate(GiftCardReadOnly giftCard) +``` + + +### Properties + +#### GiftCard + +```csharp +public GiftCardReadOnly GiftCard { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderassigntocustomer.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderassigntocustomer.md new file mode 100644 index 00000000000..494bf2e5153 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderassigntocustomer.md @@ -0,0 +1,45 @@ +--- +title: ValidateOrderAssignToCustomer +description: API reference for ValidateOrderAssignToCustomer in Umbraco Commerce +--- +## ValidateOrderAssignToCustomer + +```csharp +public class ValidateOrderAssignToCustomer : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateOrderAssignToCustomer + +```csharp +public ValidateOrderAssignToCustomer(OrderReadOnly order, ChangingValue customerReference) +``` + + +### Properties + +#### CustomerReference + +```csharp +public ChangingValue CustomerReference { get; } +``` + + +--- + +#### Order + +```csharp +public OrderReadOnly Order { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateordercodeevent.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateordercodeevent.md new file mode 100644 index 00000000000..f9e19196dad --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateordercodeevent.md @@ -0,0 +1,45 @@ +--- +title: ValidateOrderCodeEvent +description: API reference for ValidateOrderCodeEvent in Umbraco Commerce +--- +## ValidateOrderCodeEvent + +```csharp +public class ValidateOrderCodeEvent : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateOrderCodeEvent + +```csharp +public ValidateOrderCodeEvent(OrderReadOnly order, string code) +``` + + +### Properties + +#### Code + +```csharp +public string Code { get; } +``` + + +--- + +#### Order + +```csharp +public OrderReadOnly Order { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateordercreate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateordercreate.md new file mode 100644 index 00000000000..555358dc076 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateordercreate.md @@ -0,0 +1,36 @@ +--- +title: ValidateOrderCreate +description: API reference for ValidateOrderCreate in Umbraco Commerce +--- +## ValidateOrderCreate + +```csharp +public class ValidateOrderCreate : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateOrderCreate + +```csharp +public ValidateOrderCreate(OrderReadOnly order) +``` + + +### Properties + +#### Order + +```csharp +public OrderReadOnly Order { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateordercurrencychange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateordercurrencychange.md new file mode 100644 index 00000000000..07bde68dc0e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateordercurrencychange.md @@ -0,0 +1,45 @@ +--- +title: ValidateOrderCurrencyChange +description: API reference for ValidateOrderCurrencyChange in Umbraco Commerce +--- +## ValidateOrderCurrencyChange + +```csharp +public class ValidateOrderCurrencyChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateOrderCurrencyChange + +```csharp +public ValidateOrderCurrencyChange(OrderReadOnly order, ChangingValue currencyId) +``` + + +### Properties + +#### CurrencyId + +```csharp +public ChangingValue CurrencyId { get; } +``` + + +--- + +#### Order + +```csharp +public OrderReadOnly Order { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderdelete.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderdelete.md new file mode 100644 index 00000000000..526bbd4a96a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderdelete.md @@ -0,0 +1,36 @@ +--- +title: ValidateOrderDelete +description: API reference for ValidateOrderDelete in Umbraco Commerce +--- +## ValidateOrderDelete + +```csharp +public class ValidateOrderDelete : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateOrderDelete + +```csharp +public ValidateOrderDelete(OrderReadOnly order) +``` + + +### Properties + +#### Order + +```csharp +public OrderReadOnly Order { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderdiscountcoderedeem.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderdiscountcoderedeem.md new file mode 100644 index 00000000000..59464bab48f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderdiscountcoderedeem.md @@ -0,0 +1,27 @@ +--- +title: ValidateOrderDiscountCodeRedeem +description: API reference for ValidateOrderDiscountCodeRedeem in Umbraco Commerce +--- +## ValidateOrderDiscountCodeRedeem + +```csharp +public class ValidateOrderDiscountCodeRedeem : ValidateOrderCodeEvent +``` + +**Inheritance** + +* Class [ValidateOrderCodeEvent](validateordercodeevent.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateOrderDiscountCodeRedeem + +```csharp +public ValidateOrderDiscountCodeRedeem(OrderReadOnly order, string code) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderdiscountcodeunredeem.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderdiscountcodeunredeem.md new file mode 100644 index 00000000000..c2c1f2b188c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderdiscountcodeunredeem.md @@ -0,0 +1,27 @@ +--- +title: ValidateOrderDiscountCodeUnredeem +description: API reference for ValidateOrderDiscountCodeUnredeem in Umbraco Commerce +--- +## ValidateOrderDiscountCodeUnredeem + +```csharp +public class ValidateOrderDiscountCodeUnredeem : ValidateOrderCodeEvent +``` + +**Inheritance** + +* Class [ValidateOrderCodeEvent](validateordercodeevent.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateOrderDiscountCodeUnredeem + +```csharp +public ValidateOrderDiscountCodeUnredeem(OrderReadOnly order, string code) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderfinalize.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderfinalize.md new file mode 100644 index 00000000000..8fe24bbebd8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderfinalize.md @@ -0,0 +1,73 @@ +--- +title: ValidateOrderFinalize +description: API reference for ValidateOrderFinalize in Umbraco Commerce +--- +## ValidateOrderFinalize + +```csharp +public class ValidateOrderFinalize : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateOrderFinalize + +```csharp +public ValidateOrderFinalize(OrderReadOnly order, decimal amountAuthorized, decimal transactionFee, + string transactionId, PaymentStatus paymentStatus) +``` + + +### Properties + +#### AmountAuthorized + +```csharp +public decimal AmountAuthorized { get; } +``` + + +--- + +#### Order + +```csharp +public OrderReadOnly Order { get; } +``` + + +--- + +#### PaymentStatus + +```csharp +public PaymentStatus PaymentStatus { get; } +``` + + +--- + +#### TransactionFee + +```csharp +public decimal TransactionFee { get; } +``` + + +--- + +#### TransactionId + +```csharp +public string TransactionId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateordergiftcardredeem.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateordergiftcardredeem.md new file mode 100644 index 00000000000..2bcb9d14981 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateordergiftcardredeem.md @@ -0,0 +1,27 @@ +--- +title: ValidateOrderGiftCardRedeem +description: API reference for ValidateOrderGiftCardRedeem in Umbraco Commerce +--- +## ValidateOrderGiftCardRedeem + +```csharp +public class ValidateOrderGiftCardRedeem : ValidateOrderCodeEvent +``` + +**Inheritance** + +* Class [ValidateOrderCodeEvent](validateordercodeevent.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateOrderGiftCardRedeem + +```csharp +public ValidateOrderGiftCardRedeem(OrderReadOnly order, string code) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateordergiftcardunredeem.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateordergiftcardunredeem.md new file mode 100644 index 00000000000..3cd05ba6743 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateordergiftcardunredeem.md @@ -0,0 +1,27 @@ +--- +title: ValidateOrderGiftCardUnredeem +description: API reference for ValidateOrderGiftCardUnredeem in Umbraco Commerce +--- +## ValidateOrderGiftCardUnredeem + +```csharp +public class ValidateOrderGiftCardUnredeem : ValidateOrderCodeEvent +``` + +**Inheritance** + +* Class [ValidateOrderCodeEvent](validateordercodeevent.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateOrderGiftCardUnredeem + +```csharp +public ValidateOrderGiftCardUnredeem(OrderReadOnly order, string code) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderlanguagechange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderlanguagechange.md new file mode 100644 index 00000000000..e953cdf1004 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderlanguagechange.md @@ -0,0 +1,45 @@ +--- +title: ValidateOrderLanguageChange +description: API reference for ValidateOrderLanguageChange in Umbraco Commerce +--- +## ValidateOrderLanguageChange + +```csharp +public class ValidateOrderLanguageChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateOrderLanguageChange + +```csharp +public ValidateOrderLanguageChange(OrderReadOnly order, ChangingValue languageIsoCode) +``` + + +### Properties + +#### LanguageIsoCode + +```csharp +public ChangingValue LanguageIsoCode { get; } +``` + + +--- + +#### Order + +```csharp +public OrderReadOnly Order { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderlinepropertychange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderlinepropertychange.md new file mode 100644 index 00000000000..a823e296ff6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderlinepropertychange.md @@ -0,0 +1,64 @@ +--- +title: ValidateOrderLinePropertyChange +description: API reference for ValidateOrderLinePropertyChange in Umbraco Commerce +--- +## ValidateOrderLinePropertyChange + +```csharp +public class ValidateOrderLinePropertyChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateOrderLinePropertyChange + +```csharp +public ValidateOrderLinePropertyChange(OrderReadOnly order, OrderLineReadOnly orderLine, + string alias, ChangingValue value) +``` + + +### Properties + +#### Alias + +```csharp +public string Alias { get; } +``` + + +--- + +#### Order + +```csharp +public OrderReadOnly Order { get; } +``` + + +--- + +#### OrderLine + +```csharp +public OrderLineReadOnly OrderLine { get; } +``` + + +--- + +#### Value + +```csharp +public ChangingValue Value { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderlinequantitychange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderlinequantitychange.md new file mode 100644 index 00000000000..ed17ad3ca45 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderlinequantitychange.md @@ -0,0 +1,55 @@ +--- +title: ValidateOrderLineQuantityChange +description: API reference for ValidateOrderLineQuantityChange in Umbraco Commerce +--- +## ValidateOrderLineQuantityChange + +```csharp +public class ValidateOrderLineQuantityChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateOrderLineQuantityChange + +```csharp +public ValidateOrderLineQuantityChange(OrderReadOnly order, OrderLineReadOnly orderLine, + ChangingValue qty) +``` + + +### Properties + +#### Order + +```csharp +public OrderReadOnly Order { get; } +``` + + +--- + +#### OrderLine + +```csharp +public OrderLineReadOnly OrderLine { get; } +``` + + +--- + +#### Quantity + +```csharp +public ChangingValue Quantity { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderlineremove.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderlineremove.md new file mode 100644 index 00000000000..24877bc8a52 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderlineremove.md @@ -0,0 +1,45 @@ +--- +title: ValidateOrderLineRemove +description: API reference for ValidateOrderLineRemove in Umbraco Commerce +--- +## ValidateOrderLineRemove + +```csharp +public class ValidateOrderLineRemove : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateOrderLineRemove + +```csharp +public ValidateOrderLineRemove(OrderReadOnly order, OrderLineReadOnly orderLine) +``` + + +### Properties + +#### Order + +```csharp +public OrderReadOnly Order { get; } +``` + + +--- + +#### OrderLine + +```csharp +public OrderLineReadOnly OrderLine { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderlinetaxclasschange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderlinetaxclasschange.md new file mode 100644 index 00000000000..a4e4628a393 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderlinetaxclasschange.md @@ -0,0 +1,55 @@ +--- +title: ValidateOrderLineTaxClassChange +description: API reference for ValidateOrderLineTaxClassChange in Umbraco Commerce +--- +## ValidateOrderLineTaxClassChange + +```csharp +public class ValidateOrderLineTaxClassChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateOrderLineTaxClassChange + +```csharp +public ValidateOrderLineTaxClassChange(OrderReadOnly order, OrderLineReadOnly orderLine, + ChangingValue taxClassId) +``` + + +### Properties + +#### Order + +```csharp +public OrderReadOnly Order { get; } +``` + + +--- + +#### OrderLine + +```csharp +public OrderLineReadOnly OrderLine { get; } +``` + + +--- + +#### TaxClassId + +```csharp +public ChangingValue TaxClassId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderpaymentcountryregionchange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderpaymentcountryregionchange.md new file mode 100644 index 00000000000..3e2e5ea6b0c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderpaymentcountryregionchange.md @@ -0,0 +1,55 @@ +--- +title: ValidateOrderPaymentCountryRegionChange +description: API reference for ValidateOrderPaymentCountryRegionChange in Umbraco Commerce +--- +## ValidateOrderPaymentCountryRegionChange + +```csharp +public class ValidateOrderPaymentCountryRegionChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateOrderPaymentCountryRegionChange + +```csharp +public ValidateOrderPaymentCountryRegionChange(OrderReadOnly order, ChangingValue countryId, + ChangingValue regionId) +``` + + +### Properties + +#### CountryId + +```csharp +public ChangingValue CountryId { get; } +``` + + +--- + +#### Order + +```csharp +public OrderReadOnly Order { get; } +``` + + +--- + +#### RegionId + +```csharp +public ChangingValue RegionId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderpaymentmethodchange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderpaymentmethodchange.md new file mode 100644 index 00000000000..25c42076e44 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderpaymentmethodchange.md @@ -0,0 +1,45 @@ +--- +title: ValidateOrderPaymentMethodChange +description: API reference for ValidateOrderPaymentMethodChange in Umbraco Commerce +--- +## ValidateOrderPaymentMethodChange + +```csharp +public class ValidateOrderPaymentMethodChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateOrderPaymentMethodChange + +```csharp +public ValidateOrderPaymentMethodChange(OrderReadOnly order, ChangingValue paymentMethodId) +``` + + +### Properties + +#### Order + +```csharp +public OrderReadOnly Order { get; } +``` + + +--- + +#### PaymentMethodId + +```csharp +public ChangingValue PaymentMethodId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderproductadd.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderproductadd.md new file mode 100644 index 00000000000..bfb6fa3009b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderproductadd.md @@ -0,0 +1,110 @@ +--- +title: ValidateOrderProductAdd +description: API reference for ValidateOrderProductAdd in Umbraco Commerce +--- +## ValidateOrderProductAdd + +```csharp +public class ValidateOrderProductAdd : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateOrderProductAdd (1 of 2) + +```csharp +public ValidateOrderProductAdd(OrderReadOnly order, string productReference, decimal qty, + IDictionary properties, string bundleId, string parentBundleId) +``` + +--- + +#### ValidateOrderProductAdd (2 of 2) + +```csharp +public ValidateOrderProductAdd(OrderReadOnly order, IProductSnapshot productSnapshot, + string productReference, string productVariantReference, decimal qty, + IDictionary properties, string bundleId, string parentBundleId) +``` + + +### Properties + +#### BundleId + +```csharp +public string BundleId { get; } +``` + + +--- + +#### Order + +```csharp +public OrderReadOnly Order { get; } +``` + + +--- + +#### ParentBundleId + +```csharp +public string ParentBundleId { get; } +``` + + +--- + +#### ProductReference + +```csharp +public string ProductReference { get; } +``` + + +--- + +#### ProductSnapshot + +```csharp +public IProductSnapshot ProductSnapshot { get; } +``` + + +--- + +#### ProductVariantReference + +```csharp +public string ProductVariantReference { get; } +``` + + +--- + +#### Properties + +```csharp +public IDictionary Properties { get; } +``` + + +--- + +#### Quantity + +```csharp +public decimal Quantity { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderpropertychange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderpropertychange.md new file mode 100644 index 00000000000..473d73fbe81 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderpropertychange.md @@ -0,0 +1,55 @@ +--- +title: ValidateOrderPropertyChange +description: API reference for ValidateOrderPropertyChange in Umbraco Commerce +--- +## ValidateOrderPropertyChange + +```csharp +public class ValidateOrderPropertyChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateOrderPropertyChange + +```csharp +public ValidateOrderPropertyChange(OrderReadOnly order, string alias, + ChangingValue value) +``` + + +### Properties + +#### Alias + +```csharp +public string Alias { get; } +``` + + +--- + +#### Order + +```csharp +public OrderReadOnly Order { get; } +``` + + +--- + +#### Value + +```csharp +public ChangingValue Value { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateordersave.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateordersave.md new file mode 100644 index 00000000000..847597da747 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateordersave.md @@ -0,0 +1,36 @@ +--- +title: ValidateOrderSave +description: API reference for ValidateOrderSave in Umbraco Commerce +--- +## ValidateOrderSave + +```csharp +public class ValidateOrderSave : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateOrderSave + +```csharp +public ValidateOrderSave(OrderReadOnly order) +``` + + +### Properties + +#### Order + +```csharp +public OrderReadOnly Order { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateordershippingcountryregionchange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateordershippingcountryregionchange.md new file mode 100644 index 00000000000..e55b5fc4ed6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateordershippingcountryregionchange.md @@ -0,0 +1,55 @@ +--- +title: ValidateOrderShippingCountryRegionChange +description: API reference for ValidateOrderShippingCountryRegionChange in Umbraco Commerce +--- +## ValidateOrderShippingCountryRegionChange + +```csharp +public class ValidateOrderShippingCountryRegionChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateOrderShippingCountryRegionChange + +```csharp +public ValidateOrderShippingCountryRegionChange(OrderReadOnly order, + ChangingValue countryId, ChangingValue regionId) +``` + + +### Properties + +#### CountryId + +```csharp +public ChangingValue CountryId { get; } +``` + + +--- + +#### Order + +```csharp +public OrderReadOnly Order { get; } +``` + + +--- + +#### RegionId + +```csharp +public ChangingValue RegionId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateordershippingmethodchange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateordershippingmethodchange.md new file mode 100644 index 00000000000..5e8923eca04 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateordershippingmethodchange.md @@ -0,0 +1,45 @@ +--- +title: ValidateOrderShippingMethodChange +description: API reference for ValidateOrderShippingMethodChange in Umbraco Commerce +--- +## ValidateOrderShippingMethodChange + +```csharp +public class ValidateOrderShippingMethodChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateOrderShippingMethodChange + +```csharp +public ValidateOrderShippingMethodChange(OrderReadOnly order, ChangingValue shippingMethodId) +``` + + +### Properties + +#### Order + +```csharp +public OrderReadOnly Order { get; } +``` + + +--- + +#### ShippingMethodId + +```csharp +public ChangingValue ShippingMethodId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderstatusaliaschange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderstatusaliaschange.md new file mode 100644 index 00000000000..88bbcf812f5 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderstatusaliaschange.md @@ -0,0 +1,45 @@ +--- +title: ValidateOrderStatusAliasChange +description: API reference for ValidateOrderStatusAliasChange in Umbraco Commerce +--- +## ValidateOrderStatusAliasChange + +```csharp +public class ValidateOrderStatusAliasChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateOrderStatusAliasChange + +```csharp +public ValidateOrderStatusAliasChange(OrderStatusReadOnly orderStatus, ChangingValue alias) +``` + + +### Properties + +#### Alias + +```csharp +public ChangingValue Alias { get; } +``` + + +--- + +#### OrderStatus + +```csharp +public OrderStatusReadOnly OrderStatus { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderstatuschange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderstatuschange.md new file mode 100644 index 00000000000..b62cc9d105f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderstatuschange.md @@ -0,0 +1,55 @@ +--- +title: ValidateOrderStatusChange +description: API reference for ValidateOrderStatusChange in Umbraco Commerce +--- +## ValidateOrderStatusChange + +```csharp +public class ValidateOrderStatusChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateOrderStatusChange + +```csharp +public ValidateOrderStatusChange(OrderReadOnly order, ChangingValue orderStatusId, + ChangingValue orderStatusCode) +``` + + +### Properties + +#### Order + +```csharp +public OrderReadOnly Order { get; } +``` + + +--- + +#### OrderStatusCode + +```csharp +public ChangingValue OrderStatusCode { get; } +``` + + +--- + +#### OrderStatusId + +```csharp +public ChangingValue OrderStatusId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderstatuscolorchange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderstatuscolorchange.md new file mode 100644 index 00000000000..67738848d5b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderstatuscolorchange.md @@ -0,0 +1,45 @@ +--- +title: ValidateOrderStatusColorChange +description: API reference for ValidateOrderStatusColorChange in Umbraco Commerce +--- +## ValidateOrderStatusColorChange + +```csharp +public class ValidateOrderStatusColorChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateOrderStatusColorChange + +```csharp +public ValidateOrderStatusColorChange(OrderStatusReadOnly orderStatus, ChangingValue color) +``` + + +### Properties + +#### Color + +```csharp +public ChangingValue Color { get; } +``` + + +--- + +#### OrderStatus + +```csharp +public OrderStatusReadOnly OrderStatus { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderstatuscreate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderstatuscreate.md new file mode 100644 index 00000000000..f67699703be --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderstatuscreate.md @@ -0,0 +1,36 @@ +--- +title: ValidateOrderStatusCreate +description: API reference for ValidateOrderStatusCreate in Umbraco Commerce +--- +## ValidateOrderStatusCreate + +```csharp +public class ValidateOrderStatusCreate : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateOrderStatusCreate + +```csharp +public ValidateOrderStatusCreate(OrderStatusReadOnly orderStatus) +``` + + +### Properties + +#### OrderStatus + +```csharp +public OrderStatusReadOnly OrderStatus { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderstatusdelete.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderstatusdelete.md new file mode 100644 index 00000000000..a25de2fcea1 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderstatusdelete.md @@ -0,0 +1,36 @@ +--- +title: ValidateOrderStatusDelete +description: API reference for ValidateOrderStatusDelete in Umbraco Commerce +--- +## ValidateOrderStatusDelete + +```csharp +public class ValidateOrderStatusDelete : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateOrderStatusDelete + +```csharp +public ValidateOrderStatusDelete(OrderStatusReadOnly orderStatus) +``` + + +### Properties + +#### OrderStatus + +```csharp +public OrderStatusReadOnly OrderStatus { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderstatusnamechange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderstatusnamechange.md new file mode 100644 index 00000000000..4eb41514433 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderstatusnamechange.md @@ -0,0 +1,45 @@ +--- +title: ValidateOrderStatusNameChange +description: API reference for ValidateOrderStatusNameChange in Umbraco Commerce +--- +## ValidateOrderStatusNameChange + +```csharp +public class ValidateOrderStatusNameChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateOrderStatusNameChange + +```csharp +public ValidateOrderStatusNameChange(OrderStatusReadOnly orderStatus, ChangingValue name) +``` + + +### Properties + +#### Name + +```csharp +public ChangingValue Name { get; } +``` + + +--- + +#### OrderStatus + +```csharp +public OrderStatusReadOnly OrderStatus { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderstatussave.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderstatussave.md new file mode 100644 index 00000000000..9304ee9d681 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderstatussave.md @@ -0,0 +1,36 @@ +--- +title: ValidateOrderStatusSave +description: API reference for ValidateOrderStatusSave in Umbraco Commerce +--- +## ValidateOrderStatusSave + +```csharp +public class ValidateOrderStatusSave : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateOrderStatusSave + +```csharp +public ValidateOrderStatusSave(OrderStatusReadOnly orderStatus) +``` + + +### Properties + +#### OrderStatus + +```csharp +public OrderStatusReadOnly OrderStatus { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderstatusupdate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderstatusupdate.md new file mode 100644 index 00000000000..8160b984fa2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderstatusupdate.md @@ -0,0 +1,36 @@ +--- +title: ValidateOrderStatusUpdate +description: API reference for ValidateOrderStatusUpdate in Umbraco Commerce +--- +## ValidateOrderStatusUpdate + +```csharp +public class ValidateOrderStatusUpdate : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateOrderStatusUpdate + +```csharp +public ValidateOrderStatusUpdate(OrderStatusReadOnly orderStatus) +``` + + +### Properties + +#### OrderStatus + +```csharp +public OrderStatusReadOnly OrderStatus { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateordertagadd.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateordertagadd.md new file mode 100644 index 00000000000..a44743363dd --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateordertagadd.md @@ -0,0 +1,45 @@ +--- +title: ValidateOrderTagAdd +description: API reference for ValidateOrderTagAdd in Umbraco Commerce +--- +## ValidateOrderTagAdd + +```csharp +public class ValidateOrderTagAdd : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateOrderTagAdd + +```csharp +public ValidateOrderTagAdd(OrderReadOnly order, string tag) +``` + + +### Properties + +#### Order + +```csharp +public OrderReadOnly Order { get; } +``` + + +--- + +#### Tag + +```csharp +public string Tag { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateordertagremove.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateordertagremove.md new file mode 100644 index 00000000000..388dda5c67f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateordertagremove.md @@ -0,0 +1,45 @@ +--- +title: ValidateOrderTagRemove +description: API reference for ValidateOrderTagRemove in Umbraco Commerce +--- +## ValidateOrderTagRemove + +```csharp +public class ValidateOrderTagRemove : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateOrderTagRemove + +```csharp +public ValidateOrderTagRemove(OrderReadOnly order, string tag) +``` + + +### Properties + +#### Order + +```csharp +public OrderReadOnly Order { get; } +``` + + +--- + +#### Tag + +```csharp +public string Tag { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateordertaxclasschange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateordertaxclasschange.md new file mode 100644 index 00000000000..9ac8856e3da --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateordertaxclasschange.md @@ -0,0 +1,45 @@ +--- +title: ValidateOrderTaxClassChange +description: API reference for ValidateOrderTaxClassChange in Umbraco Commerce +--- +## ValidateOrderTaxClassChange + +```csharp +public class ValidateOrderTaxClassChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateOrderTaxClassChange + +```csharp +public ValidateOrderTaxClassChange(OrderReadOnly order, ChangingValue taxClassId) +``` + + +### Properties + +#### Order + +```csharp +public OrderReadOnly Order { get; } +``` + + +--- + +#### TaxClassId + +```csharp +public ChangingValue TaxClassId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateordertransactionupdate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateordertransactionupdate.md new file mode 100644 index 00000000000..2926c5da0f2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateordertransactionupdate.md @@ -0,0 +1,74 @@ +--- +title: ValidateOrderTransactionUpdate +description: API reference for ValidateOrderTransactionUpdate in Umbraco Commerce +--- +## ValidateOrderTransactionUpdate + +```csharp +public class ValidateOrderTransactionUpdate : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateOrderTransactionUpdate + +```csharp +public ValidateOrderTransactionUpdate(OrderReadOnly order, ChangingValue amountAuthorized, + ChangingValue transactionFee, ChangingValue transactionId, + ChangingValue paymentStatus) +``` + + +### Properties + +#### AmountAuthorized + +```csharp +public ChangingValue AmountAuthorized { get; } +``` + + +--- + +#### Order + +```csharp +public OrderReadOnly Order { get; } +``` + + +--- + +#### PaymentStatus + +```csharp +public ChangingValue PaymentStatus { get; } +``` + + +--- + +#### TransactionFee + +```csharp +public ChangingValue TransactionFee { get; } +``` + + +--- + +#### TransactionId + +```csharp +public ChangingValue TransactionId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderupdate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderupdate.md new file mode 100644 index 00000000000..f3b85b80d2c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateorderupdate.md @@ -0,0 +1,36 @@ +--- +title: ValidateOrderUpdate +description: API reference for ValidateOrderUpdate in Umbraco Commerce +--- +## ValidateOrderUpdate + +```csharp +public class ValidateOrderUpdate : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateOrderUpdate + +```csharp +public ValidateOrderUpdate(OrderReadOnly order) +``` + + +### Properties + +#### Order + +```csharp +public OrderReadOnly Order { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodaliaschange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodaliaschange.md new file mode 100644 index 00000000000..2f837d6f575 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodaliaschange.md @@ -0,0 +1,46 @@ +--- +title: ValidatePaymentMethodAliasChange +description: API reference for ValidatePaymentMethodAliasChange in Umbraco Commerce +--- +## ValidatePaymentMethodAliasChange + +```csharp +public class ValidatePaymentMethodAliasChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidatePaymentMethodAliasChange + +```csharp +public ValidatePaymentMethodAliasChange(PaymentMethodReadOnly paymentMethod, + ChangingValue alias) +``` + + +### Properties + +#### Alias + +```csharp +public ChangingValue Alias { get; } +``` + + +--- + +#### PaymentMethod + +```csharp +public PaymentMethodReadOnly PaymentMethod { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodallowincountryregion.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodallowincountryregion.md new file mode 100644 index 00000000000..e72cc109df2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodallowincountryregion.md @@ -0,0 +1,55 @@ +--- +title: ValidatePaymentMethodAllowInCountryRegion +description: API reference for ValidatePaymentMethodAllowInCountryRegion in Umbraco Commerce +--- +## ValidatePaymentMethodAllowInCountryRegion + +```csharp +public class ValidatePaymentMethodAllowInCountryRegion : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidatePaymentMethodAllowInCountryRegion + +```csharp +public ValidatePaymentMethodAllowInCountryRegion(PaymentMethodReadOnly paymentMethod, + Guid countryId, Guid? regionId) +``` + + +### Fields + +#### CountryId + +```csharp +public Guid CountryId; +``` + + +--- + +#### RegionId + +```csharp +public Guid? RegionId; +``` + + +### Properties + +#### PaymentMethod + +```csharp +public PaymentMethodReadOnly PaymentMethod { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodclearprices.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodclearprices.md new file mode 100644 index 00000000000..e44af4e143c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodclearprices.md @@ -0,0 +1,64 @@ +--- +title: ValidatePaymentMethodClearPrices +description: API reference for ValidatePaymentMethodClearPrices in Umbraco Commerce +--- +## ValidatePaymentMethodClearPrices + +```csharp +public class ValidatePaymentMethodClearPrices : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidatePaymentMethodClearPrices + +```csharp +public ValidatePaymentMethodClearPrices(PaymentMethodReadOnly paymentMethod, Guid? currencyId, + Guid? countryId, Guid? regionId) +``` + + +### Properties + +#### CountryId + +```csharp +public Guid? CountryId { get; } +``` + + +--- + +#### CurrencyId + +```csharp +public Guid? CurrencyId { get; } +``` + + +--- + +#### PaymentMethod + +```csharp +public PaymentMethodReadOnly PaymentMethod { get; } +``` + + +--- + +#### RegionId + +```csharp +public Guid? RegionId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodcreate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodcreate.md new file mode 100644 index 00000000000..d49c4ab183f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodcreate.md @@ -0,0 +1,36 @@ +--- +title: ValidatePaymentMethodCreate +description: API reference for ValidatePaymentMethodCreate in Umbraco Commerce +--- +## ValidatePaymentMethodCreate + +```csharp +public class ValidatePaymentMethodCreate : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidatePaymentMethodCreate + +```csharp +public ValidatePaymentMethodCreate(PaymentMethodReadOnly paymentMethod) +``` + + +### Properties + +#### PaymentMethod + +```csharp +public PaymentMethodReadOnly PaymentMethod { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethoddelete.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethoddelete.md new file mode 100644 index 00000000000..a068426adfd --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethoddelete.md @@ -0,0 +1,36 @@ +--- +title: ValidatePaymentMethodDelete +description: API reference for ValidatePaymentMethodDelete in Umbraco Commerce +--- +## ValidatePaymentMethodDelete + +```csharp +public class ValidatePaymentMethodDelete : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidatePaymentMethodDelete + +```csharp +public ValidatePaymentMethodDelete(PaymentMethodReadOnly paymentMethod) +``` + + +### Properties + +#### PaymentMethod + +```csharp +public PaymentMethodReadOnly PaymentMethod { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethoddisallowincountryregion.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethoddisallowincountryregion.md new file mode 100644 index 00000000000..8127db2ecea --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethoddisallowincountryregion.md @@ -0,0 +1,55 @@ +--- +title: ValidatePaymentMethodDisallowInCountryRegion +description: API reference for ValidatePaymentMethodDisallowInCountryRegion in Umbraco Commerce +--- +## ValidatePaymentMethodDisallowInCountryRegion + +```csharp +public class ValidatePaymentMethodDisallowInCountryRegion : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidatePaymentMethodDisallowInCountryRegion + +```csharp +public ValidatePaymentMethodDisallowInCountryRegion(PaymentMethodReadOnly paymentMethod, + Guid countryId, Guid? regionId) +``` + + +### Fields + +#### CountryId + +```csharp +public Guid CountryId; +``` + + +--- + +#### RegionId + +```csharp +public Guid? RegionId; +``` + + +### Properties + +#### PaymentMethod + +```csharp +public PaymentMethodReadOnly PaymentMethod { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodimagechange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodimagechange.md new file mode 100644 index 00000000000..c7e2ae9f1ce --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodimagechange.md @@ -0,0 +1,46 @@ +--- +title: ValidatePaymentMethodImageChange +description: API reference for ValidatePaymentMethodImageChange in Umbraco Commerce +--- +## ValidatePaymentMethodImageChange + +```csharp +public class ValidatePaymentMethodImageChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidatePaymentMethodImageChange + +```csharp +public ValidatePaymentMethodImageChange(PaymentMethodReadOnly paymentMethod, + ChangingValue imageId) +``` + + +### Properties + +#### ImageId + +```csharp +public ChangingValue ImageId { get; } +``` + + +--- + +#### PaymentMethod + +```csharp +public PaymentMethodReadOnly PaymentMethod { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodnamechange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodnamechange.md new file mode 100644 index 00000000000..44661c435dd --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodnamechange.md @@ -0,0 +1,46 @@ +--- +title: ValidatePaymentMethodNameChange +description: API reference for ValidatePaymentMethodNameChange in Umbraco Commerce +--- +## ValidatePaymentMethodNameChange + +```csharp +public class ValidatePaymentMethodNameChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidatePaymentMethodNameChange + +```csharp +public ValidatePaymentMethodNameChange(PaymentMethodReadOnly paymentMethod, + ChangingValue name) +``` + + +### Properties + +#### Name + +```csharp +public ChangingValue Name { get; } +``` + + +--- + +#### PaymentMethod + +```csharp +public PaymentMethodReadOnly PaymentMethod { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodpricechange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodpricechange.md new file mode 100644 index 00000000000..f339cbd3b11 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodpricechange.md @@ -0,0 +1,73 @@ +--- +title: ValidatePaymentMethodPriceChange +description: API reference for ValidatePaymentMethodPriceChange in Umbraco Commerce +--- +## ValidatePaymentMethodPriceChange + +```csharp +public class ValidatePaymentMethodPriceChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidatePaymentMethodPriceChange + +```csharp +public ValidatePaymentMethodPriceChange(PaymentMethodReadOnly paymentMethod, Guid currencyId, + ChangingValue price, Guid? countryId, Guid? regionId) +``` + + +### Properties + +#### CountryId + +```csharp +public Guid? CountryId { get; } +``` + + +--- + +#### CurrencyId + +```csharp +public Guid CurrencyId { get; } +``` + + +--- + +#### PaymentMethod + +```csharp +public PaymentMethodReadOnly PaymentMethod { get; } +``` + + +--- + +#### Price + +```csharp +public ChangingValue Price { get; } +``` + + +--- + +#### RegionId + +```csharp +public Guid? RegionId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodsave.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodsave.md new file mode 100644 index 00000000000..7ee6a5b9b76 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodsave.md @@ -0,0 +1,36 @@ +--- +title: ValidatePaymentMethodSave +description: API reference for ValidatePaymentMethodSave in Umbraco Commerce +--- +## ValidatePaymentMethodSave + +```csharp +public class ValidatePaymentMethodSave : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidatePaymentMethodSave + +```csharp +public ValidatePaymentMethodSave(PaymentMethodReadOnly paymentMethod) +``` + + +### Properties + +#### PaymentMethod + +```csharp +public PaymentMethodReadOnly PaymentMethod { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodsettingchange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodsettingchange.md new file mode 100644 index 00000000000..048c9a0c3a1 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodsettingchange.md @@ -0,0 +1,55 @@ +--- +title: ValidatePaymentMethodSettingChange +description: API reference for ValidatePaymentMethodSettingChange in Umbraco Commerce +--- +## ValidatePaymentMethodSettingChange + +```csharp +public class ValidatePaymentMethodSettingChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidatePaymentMethodSettingChange + +```csharp +public ValidatePaymentMethodSettingChange(PaymentMethodReadOnly paymentMethod, string alias, + ChangingValue value) +``` + + +### Properties + +#### Alias + +```csharp +public string Alias { get; } +``` + + +--- + +#### PaymentMethod + +```csharp +public PaymentMethodReadOnly PaymentMethod { get; } +``` + + +--- + +#### Value + +```csharp +public ChangingValue Value { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodskuchange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodskuchange.md new file mode 100644 index 00000000000..b8fcbc0bdca --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodskuchange.md @@ -0,0 +1,46 @@ +--- +title: ValidatePaymentMethodSkuChange +description: API reference for ValidatePaymentMethodSkuChange in Umbraco Commerce +--- +## ValidatePaymentMethodSkuChange + +```csharp +public class ValidatePaymentMethodSkuChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidatePaymentMethodSkuChange + +```csharp +public ValidatePaymentMethodSkuChange(PaymentMethodReadOnly paymentMethod, + ChangingValue sku) +``` + + +### Properties + +#### PaymentMethod + +```csharp +public PaymentMethodReadOnly PaymentMethod { get; } +``` + + +--- + +#### Sku + +```csharp +public ChangingValue Sku { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodtaxclasschange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodtaxclasschange.md new file mode 100644 index 00000000000..635949d9da6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodtaxclasschange.md @@ -0,0 +1,46 @@ +--- +title: ValidatePaymentMethodTaxClassChange +description: API reference for ValidatePaymentMethodTaxClassChange in Umbraco Commerce +--- +## ValidatePaymentMethodTaxClassChange + +```csharp +public class ValidatePaymentMethodTaxClassChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidatePaymentMethodTaxClassChange + +```csharp +public ValidatePaymentMethodTaxClassChange(PaymentMethodReadOnly paymentMethod, + ChangingValue taxClassId) +``` + + +### Properties + +#### PaymentMethod + +```csharp +public PaymentMethodReadOnly PaymentMethod { get; } +``` + + +--- + +#### TaxClassId + +```csharp +public ChangingValue TaxClassId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodtogglefeatures.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodtogglefeatures.md new file mode 100644 index 00000000000..2fe9ee4f5ef --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodtogglefeatures.md @@ -0,0 +1,74 @@ +--- +title: ValidatePaymentMethodToggleFeatures +description: API reference for ValidatePaymentMethodToggleFeatures in Umbraco Commerce +--- +## ValidatePaymentMethodToggleFeatures + +```csharp +public class ValidatePaymentMethodToggleFeatures : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidatePaymentMethodToggleFeatures + +```csharp +public ValidatePaymentMethodToggleFeatures(PaymentMethodReadOnly paymentMethod, + ChangingValue fetchPaymentStatuses, ChangingValue capturePayments, + ChangingValue cancelPayments, ChangingValue refundPayments) +``` + + +### Properties + +#### CancelPayments + +```csharp +public ChangingValue CancelPayments { get; } +``` + + +--- + +#### CapturePayments + +```csharp +public ChangingValue CapturePayments { get; } +``` + + +--- + +#### FetchPaymentStatuses + +```csharp +public ChangingValue FetchPaymentStatuses { get; } +``` + + +--- + +#### PaymentMethod + +```csharp +public PaymentMethodReadOnly PaymentMethod { get; } +``` + + +--- + +#### RefundPayments + +```csharp +public ChangingValue RefundPayments { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodupdate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodupdate.md new file mode 100644 index 00000000000..f3f900052ac --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatepaymentmethodupdate.md @@ -0,0 +1,36 @@ +--- +title: ValidatePaymentMethodUpdate +description: API reference for ValidatePaymentMethodUpdate in Umbraco Commerce +--- +## ValidatePaymentMethodUpdate + +```csharp +public class ValidatePaymentMethodUpdate : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidatePaymentMethodUpdate + +```csharp +public ValidatePaymentMethodUpdate(PaymentMethodReadOnly paymentMethod) +``` + + +### Properties + +#### PaymentMethod + +```csharp +public PaymentMethodReadOnly PaymentMethod { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateprinttemplatealiaschange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateprinttemplatealiaschange.md new file mode 100644 index 00000000000..d541c0fea28 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateprinttemplatealiaschange.md @@ -0,0 +1,46 @@ +--- +title: ValidatePrintTemplateAliasChange +description: API reference for ValidatePrintTemplateAliasChange in Umbraco Commerce +--- +## ValidatePrintTemplateAliasChange + +```csharp +public class ValidatePrintTemplateAliasChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidatePrintTemplateAliasChange + +```csharp +public ValidatePrintTemplateAliasChange(PrintTemplateReadOnly printTemplate, + ChangingValue alias) +``` + + +### Properties + +#### Alias + +```csharp +public ChangingValue Alias { get; } +``` + + +--- + +#### PrintTemplate + +```csharp +public PrintTemplateReadOnly PrintTemplate { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateprinttemplatecategorychange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateprinttemplatecategorychange.md new file mode 100644 index 00000000000..49813ad8f1b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateprinttemplatecategorychange.md @@ -0,0 +1,46 @@ +--- +title: ValidatePrintTemplateCategoryChange +description: API reference for ValidatePrintTemplateCategoryChange in Umbraco Commerce +--- +## ValidatePrintTemplateCategoryChange + +```csharp +public class ValidatePrintTemplateCategoryChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidatePrintTemplateCategoryChange + +```csharp +public ValidatePrintTemplateCategoryChange(PrintTemplateReadOnly printTemplate, + ChangingValue category) +``` + + +### Properties + +#### Category + +```csharp +public ChangingValue Category { get; } +``` + + +--- + +#### PrintTemplate + +```csharp +public PrintTemplateReadOnly PrintTemplate { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateprinttemplatecreate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateprinttemplatecreate.md new file mode 100644 index 00000000000..56433904b99 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateprinttemplatecreate.md @@ -0,0 +1,36 @@ +--- +title: ValidatePrintTemplateCreate +description: API reference for ValidatePrintTemplateCreate in Umbraco Commerce +--- +## ValidatePrintTemplateCreate + +```csharp +public class ValidatePrintTemplateCreate : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidatePrintTemplateCreate + +```csharp +public ValidatePrintTemplateCreate(PrintTemplateReadOnly printTemplate) +``` + + +### Properties + +#### PrintTemplate + +```csharp +public PrintTemplateReadOnly PrintTemplate { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateprinttemplatedelete.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateprinttemplatedelete.md new file mode 100644 index 00000000000..606e61f1ab7 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateprinttemplatedelete.md @@ -0,0 +1,36 @@ +--- +title: ValidatePrintTemplateDelete +description: API reference for ValidatePrintTemplateDelete in Umbraco Commerce +--- +## ValidatePrintTemplateDelete + +```csharp +public class ValidatePrintTemplateDelete : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidatePrintTemplateDelete + +```csharp +public ValidatePrintTemplateDelete(PrintTemplateReadOnly printTemplate) +``` + + +### Properties + +#### PrintTemplate + +```csharp +public PrintTemplateReadOnly PrintTemplate { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateprinttemplatenamechange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateprinttemplatenamechange.md new file mode 100644 index 00000000000..c4dc5985e6e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateprinttemplatenamechange.md @@ -0,0 +1,46 @@ +--- +title: ValidatePrintTemplateNameChange +description: API reference for ValidatePrintTemplateNameChange in Umbraco Commerce +--- +## ValidatePrintTemplateNameChange + +```csharp +public class ValidatePrintTemplateNameChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidatePrintTemplateNameChange + +```csharp +public ValidatePrintTemplateNameChange(PrintTemplateReadOnly printTemplate, + ChangingValue name) +``` + + +### Properties + +#### Name + +```csharp +public ChangingValue Name { get; } +``` + + +--- + +#### PrintTemplate + +```csharp +public PrintTemplateReadOnly PrintTemplate { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateprinttemplatesave.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateprinttemplatesave.md new file mode 100644 index 00000000000..fdca699e3f8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateprinttemplatesave.md @@ -0,0 +1,36 @@ +--- +title: ValidatePrintTemplateSave +description: API reference for ValidatePrintTemplateSave in Umbraco Commerce +--- +## ValidatePrintTemplateSave + +```csharp +public class ValidatePrintTemplateSave : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidatePrintTemplateSave + +```csharp +public ValidatePrintTemplateSave(PrintTemplateReadOnly printTemplate) +``` + + +### Properties + +#### PrintTemplate + +```csharp +public PrintTemplateReadOnly PrintTemplate { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateprinttemplateupdate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateprinttemplateupdate.md new file mode 100644 index 00000000000..de0ed11f1ad --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateprinttemplateupdate.md @@ -0,0 +1,36 @@ +--- +title: ValidatePrintTemplateUpdate +description: API reference for ValidatePrintTemplateUpdate in Umbraco Commerce +--- +## ValidatePrintTemplateUpdate + +```csharp +public class ValidatePrintTemplateUpdate : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidatePrintTemplateUpdate + +```csharp +public ValidatePrintTemplateUpdate(PrintTemplateReadOnly printTemplate) +``` + + +### Properties + +#### PrintTemplate + +```csharp +public PrintTemplateReadOnly PrintTemplate { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateprinttemplateviewchange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateprinttemplateviewchange.md new file mode 100644 index 00000000000..ef21a3f990e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateprinttemplateviewchange.md @@ -0,0 +1,46 @@ +--- +title: ValidatePrintTemplateViewChange +description: API reference for ValidatePrintTemplateViewChange in Umbraco Commerce +--- +## ValidatePrintTemplateViewChange + +```csharp +public class ValidatePrintTemplateViewChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidatePrintTemplateViewChange + +```csharp +public ValidatePrintTemplateViewChange(PrintTemplateReadOnly printTemplate, + ChangingValue templateView) +``` + + +### Properties + +#### PrintTemplate + +```csharp +public PrintTemplateReadOnly PrintTemplate { get; } +``` + + +--- + +#### TemplateView + +```csharp +public ChangingValue TemplateView { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributealiaschange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributealiaschange.md new file mode 100644 index 00000000000..e0f9fd7da3e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributealiaschange.md @@ -0,0 +1,46 @@ +--- +title: ValidateProductAttributeAliasChange +description: API reference for ValidateProductAttributeAliasChange in Umbraco Commerce +--- +## ValidateProductAttributeAliasChange + +```csharp +public class ValidateProductAttributeAliasChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateProductAttributeAliasChange + +```csharp +public ValidateProductAttributeAliasChange(ProductAttributeReadOnly productAttribute, + ChangingValue alias) +``` + + +### Properties + +#### Alias + +```csharp +public ChangingValue Alias { get; } +``` + + +--- + +#### ProductAttribute + +```csharp +public ProductAttributeReadOnly ProductAttribute { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributecreate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributecreate.md new file mode 100644 index 00000000000..41f92709974 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributecreate.md @@ -0,0 +1,36 @@ +--- +title: ValidateProductAttributeCreate +description: API reference for ValidateProductAttributeCreate in Umbraco Commerce +--- +## ValidateProductAttributeCreate + +```csharp +public class ValidateProductAttributeCreate : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateProductAttributeCreate + +```csharp +public ValidateProductAttributeCreate(ProductAttributeReadOnly productAttribute) +``` + + +### Properties + +#### ProductAttribute + +```csharp +public ProductAttributeReadOnly ProductAttribute { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributedelete.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributedelete.md new file mode 100644 index 00000000000..4b4ab360acc --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributedelete.md @@ -0,0 +1,36 @@ +--- +title: ValidateProductAttributeDelete +description: API reference for ValidateProductAttributeDelete in Umbraco Commerce +--- +## ValidateProductAttributeDelete + +```csharp +public class ValidateProductAttributeDelete : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateProductAttributeDelete + +```csharp +public ValidateProductAttributeDelete(ProductAttributeReadOnly productAttribute) +``` + + +### Properties + +#### ProductAttribute + +```csharp +public ProductAttributeReadOnly ProductAttribute { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributenamechange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributenamechange.md new file mode 100644 index 00000000000..c8d62a3ca55 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributenamechange.md @@ -0,0 +1,46 @@ +--- +title: ValidateProductAttributeNameChange +description: API reference for ValidateProductAttributeNameChange in Umbraco Commerce +--- +## ValidateProductAttributeNameChange + +```csharp +public class ValidateProductAttributeNameChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateProductAttributeNameChange + +```csharp +public ValidateProductAttributeNameChange(ProductAttributeReadOnly productAttribute, + ChangingValue> name) +``` + + +### Properties + +#### Name + +```csharp +public ChangingValue> Name { get; } +``` + + +--- + +#### ProductAttribute + +```csharp +public ProductAttributeReadOnly ProductAttribute { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributepresetaliaschange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributepresetaliaschange.md new file mode 100644 index 00000000000..c22dfe499c6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributepresetaliaschange.md @@ -0,0 +1,46 @@ +--- +title: ValidateProductAttributePresetAliasChange +description: API reference for ValidateProductAttributePresetAliasChange in Umbraco Commerce +--- +## ValidateProductAttributePresetAliasChange + +```csharp +public class ValidateProductAttributePresetAliasChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateProductAttributePresetAliasChange + +```csharp +public ValidateProductAttributePresetAliasChange( + ProductAttributePresetReadOnly productAttributePreset, ChangingValue alias) +``` + + +### Properties + +#### Alias + +```csharp +public ChangingValue Alias { get; } +``` + + +--- + +#### ProductAttributePreset + +```csharp +public ProductAttributePresetReadOnly ProductAttributePreset { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributepresetallowattribute.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributepresetallowattribute.md new file mode 100644 index 00000000000..f5e9b81a563 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributepresetallowattribute.md @@ -0,0 +1,46 @@ +--- +title: ValidateProductAttributePresetAllowAttribute +description: API reference for ValidateProductAttributePresetAllowAttribute in Umbraco Commerce +--- +## ValidateProductAttributePresetAllowAttribute + +```csharp +public class ValidateProductAttributePresetAllowAttribute : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateProductAttributePresetAllowAttribute + +```csharp +public ValidateProductAttributePresetAllowAttribute( + ProductAttributePresetReadOnly productAttributePreset, AllowedProductAttribute allowedAttribute) +``` + + +### Properties + +#### AllowedAttribute + +```csharp +public AllowedProductAttribute AllowedAttribute { get; } +``` + + +--- + +#### ProductAttributePreset + +```csharp +public ProductAttributePresetReadOnly ProductAttributePreset { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributepresetcreate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributepresetcreate.md new file mode 100644 index 00000000000..d544b46772a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributepresetcreate.md @@ -0,0 +1,36 @@ +--- +title: ValidateProductAttributePresetCreate +description: API reference for ValidateProductAttributePresetCreate in Umbraco Commerce +--- +## ValidateProductAttributePresetCreate + +```csharp +public class ValidateProductAttributePresetCreate : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateProductAttributePresetCreate + +```csharp +public ValidateProductAttributePresetCreate(ProductAttributePresetReadOnly productAttributePreset) +``` + + +### Properties + +#### ProductAttributePreset + +```csharp +public ProductAttributePresetReadOnly ProductAttributePreset { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributepresetdelete.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributepresetdelete.md new file mode 100644 index 00000000000..cf03d6ac84d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributepresetdelete.md @@ -0,0 +1,36 @@ +--- +title: ValidateProductAttributePresetDelete +description: API reference for ValidateProductAttributePresetDelete in Umbraco Commerce +--- +## ValidateProductAttributePresetDelete + +```csharp +public class ValidateProductAttributePresetDelete : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateProductAttributePresetDelete + +```csharp +public ValidateProductAttributePresetDelete(ProductAttributePresetReadOnly productAttributePreset) +``` + + +### Properties + +#### ProductAttributePreset + +```csharp +public ProductAttributePresetReadOnly ProductAttributePreset { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributepresetdescriptionchange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributepresetdescriptionchange.md new file mode 100644 index 00000000000..4c6e00c14ef --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributepresetdescriptionchange.md @@ -0,0 +1,46 @@ +--- +title: ValidateProductAttributePresetDescriptionChange +description: API reference for ValidateProductAttributePresetDescriptionChange in Umbraco Commerce +--- +## ValidateProductAttributePresetDescriptionChange + +```csharp +public class ValidateProductAttributePresetDescriptionChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateProductAttributePresetDescriptionChange + +```csharp +public ValidateProductAttributePresetDescriptionChange( + ProductAttributePresetReadOnly productAttributePreset, ChangingValue description) +``` + + +### Properties + +#### Description + +```csharp +public ChangingValue Description { get; } +``` + + +--- + +#### ProductAttributePreset + +```csharp +public ProductAttributePresetReadOnly ProductAttributePreset { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributepresetdisallowattribute.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributepresetdisallowattribute.md new file mode 100644 index 00000000000..87f7a48350a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributepresetdisallowattribute.md @@ -0,0 +1,47 @@ +--- +title: ValidateProductAttributePresetDisallowAttribute +description: API reference for ValidateProductAttributePresetDisallowAttribute in Umbraco Commerce +--- +## ValidateProductAttributePresetDisallowAttribute + +```csharp +public class ValidateProductAttributePresetDisallowAttribute : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateProductAttributePresetDisallowAttribute + +```csharp +public ValidateProductAttributePresetDisallowAttribute( + ProductAttributePresetReadOnly productAttributePreset, + AllowedProductAttribute disallowedAttribute) +``` + + +### Properties + +#### DisallowedAttribute + +```csharp +public AllowedProductAttribute DisallowedAttribute { get; } +``` + + +--- + +#### ProductAttributePreset + +```csharp +public ProductAttributePresetReadOnly ProductAttributePreset { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributepreseticonchange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributepreseticonchange.md new file mode 100644 index 00000000000..86f25eff0e6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributepreseticonchange.md @@ -0,0 +1,46 @@ +--- +title: ValidateProductAttributePresetIconChange +description: API reference for ValidateProductAttributePresetIconChange in Umbraco Commerce +--- +## ValidateProductAttributePresetIconChange + +```csharp +public class ValidateProductAttributePresetIconChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateProductAttributePresetIconChange + +```csharp +public ValidateProductAttributePresetIconChange( + ProductAttributePresetReadOnly productAttributePreset, ChangingValue icon) +``` + + +### Properties + +#### Icon + +```csharp +public ChangingValue Icon { get; } +``` + + +--- + +#### ProductAttributePreset + +```csharp +public ProductAttributePresetReadOnly ProductAttributePreset { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributepresetnamechange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributepresetnamechange.md new file mode 100644 index 00000000000..5e2521d86a7 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributepresetnamechange.md @@ -0,0 +1,46 @@ +--- +title: ValidateProductAttributePresetNameChange +description: API reference for ValidateProductAttributePresetNameChange in Umbraco Commerce +--- +## ValidateProductAttributePresetNameChange + +```csharp +public class ValidateProductAttributePresetNameChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateProductAttributePresetNameChange + +```csharp +public ValidateProductAttributePresetNameChange( + ProductAttributePresetReadOnly productAttributePreset, ChangingValue name) +``` + + +### Properties + +#### Name + +```csharp +public ChangingValue Name { get; } +``` + + +--- + +#### ProductAttributePreset + +```csharp +public ProductAttributePresetReadOnly ProductAttributePreset { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributepresetsave.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributepresetsave.md new file mode 100644 index 00000000000..e595c9f2cdf --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributepresetsave.md @@ -0,0 +1,36 @@ +--- +title: ValidateProductAttributePresetSave +description: API reference for ValidateProductAttributePresetSave in Umbraco Commerce +--- +## ValidateProductAttributePresetSave + +```csharp +public class ValidateProductAttributePresetSave : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateProductAttributePresetSave + +```csharp +public ValidateProductAttributePresetSave(ProductAttributePresetReadOnly productAttributePreset) +``` + + +### Properties + +#### ProductAttributePreset + +```csharp +public ProductAttributePresetReadOnly ProductAttributePreset { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributepresetupdate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributepresetupdate.md new file mode 100644 index 00000000000..a357112a5e0 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributepresetupdate.md @@ -0,0 +1,36 @@ +--- +title: ValidateProductAttributePresetUpdate +description: API reference for ValidateProductAttributePresetUpdate in Umbraco Commerce +--- +## ValidateProductAttributePresetUpdate + +```csharp +public class ValidateProductAttributePresetUpdate : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateProductAttributePresetUpdate + +```csharp +public ValidateProductAttributePresetUpdate(ProductAttributePresetReadOnly productAttributePreset) +``` + + +### Properties + +#### ProductAttributePreset + +```csharp +public ProductAttributePresetReadOnly ProductAttributePreset { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributesave.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributesave.md new file mode 100644 index 00000000000..ae737385ab8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributesave.md @@ -0,0 +1,36 @@ +--- +title: ValidateProductAttributeSave +description: API reference for ValidateProductAttributeSave in Umbraco Commerce +--- +## ValidateProductAttributeSave + +```csharp +public class ValidateProductAttributeSave : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateProductAttributeSave + +```csharp +public ValidateProductAttributeSave(ProductAttributeReadOnly productAttribute) +``` + + +### Properties + +#### ProductAttribute + +```csharp +public ProductAttributeReadOnly ProductAttribute { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributeupdate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributeupdate.md new file mode 100644 index 00000000000..17f06d6840b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributeupdate.md @@ -0,0 +1,36 @@ +--- +title: ValidateProductAttributeUpdate +description: API reference for ValidateProductAttributeUpdate in Umbraco Commerce +--- +## ValidateProductAttributeUpdate + +```csharp +public class ValidateProductAttributeUpdate : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateProductAttributeUpdate + +```csharp +public ValidateProductAttributeUpdate(ProductAttributeReadOnly productAttribute) +``` + + +### Properties + +#### ProductAttribute + +```csharp +public ProductAttributeReadOnly ProductAttribute { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributevalueadd.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributevalueadd.md new file mode 100644 index 00000000000..b35537c967d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributevalueadd.md @@ -0,0 +1,55 @@ +--- +title: ValidateProductAttributeValueAdd +description: API reference for ValidateProductAttributeValueAdd in Umbraco Commerce +--- +## ValidateProductAttributeValueAdd + +```csharp +public class ValidateProductAttributeValueAdd : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateProductAttributeValueAdd + +```csharp +public ValidateProductAttributeValueAdd(ProductAttributeReadOnly productAttribute, + ProductAttributeValueReadOnly value, int index) +``` + + +### Properties + +#### Index + +```csharp +public int Index { get; } +``` + + +--- + +#### ProductAttribute + +```csharp +public ProductAttributeReadOnly ProductAttribute { get; } +``` + + +--- + +#### Value + +```csharp +public ProductAttributeValueReadOnly Value { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributevaluenamechange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributevaluenamechange.md new file mode 100644 index 00000000000..805c5c5a44d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributevaluenamechange.md @@ -0,0 +1,65 @@ +--- +title: ValidateProductAttributeValueNameChange +description: API reference for ValidateProductAttributeValueNameChange in Umbraco Commerce +--- +## ValidateProductAttributeValueNameChange + +```csharp +public class ValidateProductAttributeValueNameChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateProductAttributeValueNameChange + +```csharp +public ValidateProductAttributeValueNameChange(ProductAttributeReadOnly productAttribute, + ProductAttributeValueReadOnly value, int index, + ChangingValue> name) +``` + + +### Properties + +#### Index + +```csharp +public int Index { get; } +``` + + +--- + +#### Name + +```csharp +public ChangingValue> Name { get; } +``` + + +--- + +#### ProductAttribute + +```csharp +public ProductAttributeReadOnly ProductAttribute { get; } +``` + + +--- + +#### Value + +```csharp +public ProductAttributeValueReadOnly Value { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributevalueremove.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributevalueremove.md new file mode 100644 index 00000000000..5f1dd3c4f89 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateproductattributevalueremove.md @@ -0,0 +1,55 @@ +--- +title: ValidateProductAttributeValueRemove +description: API reference for ValidateProductAttributeValueRemove in Umbraco Commerce +--- +## ValidateProductAttributeValueRemove + +```csharp +public class ValidateProductAttributeValueRemove : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateProductAttributeValueRemove + +```csharp +public ValidateProductAttributeValueRemove(ProductAttributeReadOnly productAttribute, + ProductAttributeValueReadOnly value, int index) +``` + + +### Properties + +#### Index + +```csharp +public int Index { get; } +``` + + +--- + +#### ProductAttribute + +```csharp +public ProductAttributeReadOnly ProductAttribute { get; } +``` + + +--- + +#### Value + +```csharp +public ProductAttributeValueReadOnly Value { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validaterefundorderpayment.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validaterefundorderpayment.md new file mode 100644 index 00000000000..1bcf5348d74 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validaterefundorderpayment.md @@ -0,0 +1,36 @@ +--- +title: ValidateRefundOrderPayment +description: API reference for ValidateRefundOrderPayment in Umbraco Commerce +--- +## ValidateRefundOrderPayment + +```csharp +public class ValidateRefundOrderPayment : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateRefundOrderPayment + +```csharp +public ValidateRefundOrderPayment(OrderReadOnly order) +``` + + +### Properties + +#### Order + +```csharp +public OrderReadOnly Order { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateregioncodechange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateregioncodechange.md new file mode 100644 index 00000000000..bd5bc9a7f02 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateregioncodechange.md @@ -0,0 +1,45 @@ +--- +title: ValidateRegionCodeChange +description: API reference for ValidateRegionCodeChange in Umbraco Commerce +--- +## ValidateRegionCodeChange + +```csharp +public class ValidateRegionCodeChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateRegionCodeChange + +```csharp +public ValidateRegionCodeChange(RegionReadOnly region, ChangingValue code) +``` + + +### Properties + +#### Code + +```csharp +public ChangingValue Code { get; } +``` + + +--- + +#### Region + +```csharp +public RegionReadOnly Region { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateregioncreate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateregioncreate.md new file mode 100644 index 00000000000..77d09e33319 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateregioncreate.md @@ -0,0 +1,36 @@ +--- +title: ValidateRegionCreate +description: API reference for ValidateRegionCreate in Umbraco Commerce +--- +## ValidateRegionCreate + +```csharp +public class ValidateRegionCreate : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateRegionCreate + +```csharp +public ValidateRegionCreate(RegionReadOnly region) +``` + + +### Properties + +#### Region + +```csharp +public RegionReadOnly Region { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateregiondefaultpaymentmethodchange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateregiondefaultpaymentmethodchange.md new file mode 100644 index 00000000000..864cd295acd --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateregiondefaultpaymentmethodchange.md @@ -0,0 +1,46 @@ +--- +title: ValidateRegionDefaultPaymentMethodChange +description: API reference for ValidateRegionDefaultPaymentMethodChange in Umbraco Commerce +--- +## ValidateRegionDefaultPaymentMethodChange + +```csharp +public class ValidateRegionDefaultPaymentMethodChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateRegionDefaultPaymentMethodChange + +```csharp +public ValidateRegionDefaultPaymentMethodChange(RegionReadOnly region, + ChangingValue paymentMethodId) +``` + + +### Properties + +#### PaymentMethodId + +```csharp +public ChangingValue PaymentMethodId { get; } +``` + + +--- + +#### Region + +```csharp +public RegionReadOnly Region { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateregiondefaultshippingmethodchange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateregiondefaultshippingmethodchange.md new file mode 100644 index 00000000000..1c9ffecb1d3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateregiondefaultshippingmethodchange.md @@ -0,0 +1,46 @@ +--- +title: ValidateRegionDefaultShippingMethodChange +description: API reference for ValidateRegionDefaultShippingMethodChange in Umbraco Commerce +--- +## ValidateRegionDefaultShippingMethodChange + +```csharp +public class ValidateRegionDefaultShippingMethodChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateRegionDefaultShippingMethodChange + +```csharp +public ValidateRegionDefaultShippingMethodChange(RegionReadOnly region, + ChangingValue shippingMethodId) +``` + + +### Properties + +#### Region + +```csharp +public RegionReadOnly Region { get; } +``` + + +--- + +#### ShippingMethodId + +```csharp +public ChangingValue ShippingMethodId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateregiondelete.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateregiondelete.md new file mode 100644 index 00000000000..704b826076e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateregiondelete.md @@ -0,0 +1,36 @@ +--- +title: ValidateRegionDelete +description: API reference for ValidateRegionDelete in Umbraco Commerce +--- +## ValidateRegionDelete + +```csharp +public class ValidateRegionDelete : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateRegionDelete + +```csharp +public ValidateRegionDelete(RegionReadOnly region) +``` + + +### Properties + +#### Region + +```csharp +public RegionReadOnly Region { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateregionnamechange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateregionnamechange.md new file mode 100644 index 00000000000..4110798bc86 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateregionnamechange.md @@ -0,0 +1,45 @@ +--- +title: ValidateRegionNameChange +description: API reference for ValidateRegionNameChange in Umbraco Commerce +--- +## ValidateRegionNameChange + +```csharp +public class ValidateRegionNameChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateRegionNameChange + +```csharp +public ValidateRegionNameChange(RegionReadOnly region, ChangingValue name) +``` + + +### Properties + +#### Name + +```csharp +public ChangingValue Name { get; } +``` + + +--- + +#### Region + +```csharp +public RegionReadOnly Region { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateregionsave.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateregionsave.md new file mode 100644 index 00000000000..b7d52845b03 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateregionsave.md @@ -0,0 +1,36 @@ +--- +title: ValidateRegionSave +description: API reference for ValidateRegionSave in Umbraco Commerce +--- +## ValidateRegionSave + +```csharp +public class ValidateRegionSave : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateRegionSave + +```csharp +public ValidateRegionSave(RegionReadOnly region) +``` + + +### Properties + +#### Region + +```csharp +public RegionReadOnly Region { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateregionupdate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateregionupdate.md new file mode 100644 index 00000000000..e91a23292d6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateregionupdate.md @@ -0,0 +1,36 @@ +--- +title: ValidateRegionUpdate +description: API reference for ValidateRegionUpdate in Umbraco Commerce +--- +## ValidateRegionUpdate + +```csharp +public class ValidateRegionUpdate : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateRegionUpdate + +```csharp +public ValidateRegionUpdate(RegionReadOnly region) +``` + + +### Properties + +#### Region + +```csharp +public RegionReadOnly Region { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethodaliaschange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethodaliaschange.md new file mode 100644 index 00000000000..3186a377bcb --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethodaliaschange.md @@ -0,0 +1,46 @@ +--- +title: ValidateShippingMethodAliasChange +description: API reference for ValidateShippingMethodAliasChange in Umbraco Commerce +--- +## ValidateShippingMethodAliasChange + +```csharp +public class ValidateShippingMethodAliasChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateShippingMethodAliasChange + +```csharp +public ValidateShippingMethodAliasChange(ShippingMethodReadOnly shippingMethod, + ChangingValue alias) +``` + + +### Properties + +#### Alias + +```csharp +public ChangingValue Alias { get; } +``` + + +--- + +#### ShippingMethod + +```csharp +public ShippingMethodReadOnly ShippingMethod { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethodallowincountryregion.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethodallowincountryregion.md new file mode 100644 index 00000000000..60b293a1c39 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethodallowincountryregion.md @@ -0,0 +1,55 @@ +--- +title: ValidateShippingMethodAllowInCountryRegion +description: API reference for ValidateShippingMethodAllowInCountryRegion in Umbraco Commerce +--- +## ValidateShippingMethodAllowInCountryRegion + +```csharp +public class ValidateShippingMethodAllowInCountryRegion : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateShippingMethodAllowInCountryRegion + +```csharp +public ValidateShippingMethodAllowInCountryRegion(ShippingMethodReadOnly shippingMethod, + Guid countryId, Guid? regionId) +``` + + +### Fields + +#### CountryId + +```csharp +public Guid CountryId; +``` + + +--- + +#### RegionId + +```csharp +public Guid? RegionId; +``` + + +### Properties + +#### ShippingMethod + +```csharp +public ShippingMethodReadOnly ShippingMethod { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethodclearprices.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethodclearprices.md new file mode 100644 index 00000000000..355cf1e3c7c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethodclearprices.md @@ -0,0 +1,64 @@ +--- +title: ValidateShippingMethodClearPrices +description: API reference for ValidateShippingMethodClearPrices in Umbraco Commerce +--- +## ValidateShippingMethodClearPrices + +```csharp +public class ValidateShippingMethodClearPrices : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateShippingMethodClearPrices + +```csharp +public ValidateShippingMethodClearPrices(ShippingMethodReadOnly shippingMethod, Guid? currencyId, + Guid? countryId, Guid? regionId) +``` + + +### Properties + +#### CountryId + +```csharp +public Guid? CountryId { get; } +``` + + +--- + +#### CurrencyId + +```csharp +public Guid? CurrencyId { get; } +``` + + +--- + +#### RegionId + +```csharp +public Guid? RegionId { get; } +``` + + +--- + +#### ShippingMethod + +```csharp +public ShippingMethodReadOnly ShippingMethod { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethodcreate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethodcreate.md new file mode 100644 index 00000000000..d9f8e71da97 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethodcreate.md @@ -0,0 +1,36 @@ +--- +title: ValidateShippingMethodCreate +description: API reference for ValidateShippingMethodCreate in Umbraco Commerce +--- +## ValidateShippingMethodCreate + +```csharp +public class ValidateShippingMethodCreate : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateShippingMethodCreate + +```csharp +public ValidateShippingMethodCreate(ShippingMethodReadOnly shippingMethod) +``` + + +### Properties + +#### ShippingMethod + +```csharp +public ShippingMethodReadOnly ShippingMethod { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethoddelete.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethoddelete.md new file mode 100644 index 00000000000..e902bd5b073 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethoddelete.md @@ -0,0 +1,36 @@ +--- +title: ValidateShippingMethodDelete +description: API reference for ValidateShippingMethodDelete in Umbraco Commerce +--- +## ValidateShippingMethodDelete + +```csharp +public class ValidateShippingMethodDelete : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateShippingMethodDelete + +```csharp +public ValidateShippingMethodDelete(ShippingMethodReadOnly shippingMethod) +``` + + +### Properties + +#### ShippingMethod + +```csharp +public ShippingMethodReadOnly ShippingMethod { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethoddisallowincountryregion.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethoddisallowincountryregion.md new file mode 100644 index 00000000000..c5ba24586e8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethoddisallowincountryregion.md @@ -0,0 +1,55 @@ +--- +title: ValidateShippingMethodDisallowInCountryRegion +description: API reference for ValidateShippingMethodDisallowInCountryRegion in Umbraco Commerce +--- +## ValidateShippingMethodDisallowInCountryRegion + +```csharp +public class ValidateShippingMethodDisallowInCountryRegion : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateShippingMethodDisallowInCountryRegion + +```csharp +public ValidateShippingMethodDisallowInCountryRegion(ShippingMethodReadOnly shippingMethod, + Guid countryId, Guid? regionId) +``` + + +### Fields + +#### CountryId + +```csharp +public Guid CountryId; +``` + + +--- + +#### RegionId + +```csharp +public Guid? RegionId; +``` + + +### Properties + +#### ShippingMethod + +```csharp +public ShippingMethodReadOnly ShippingMethod { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethodimagechange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethodimagechange.md new file mode 100644 index 00000000000..bfa398a5289 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethodimagechange.md @@ -0,0 +1,46 @@ +--- +title: ValidateShippingMethodImageChange +description: API reference for ValidateShippingMethodImageChange in Umbraco Commerce +--- +## ValidateShippingMethodImageChange + +```csharp +public class ValidateShippingMethodImageChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateShippingMethodImageChange + +```csharp +public ValidateShippingMethodImageChange(ShippingMethodReadOnly shippingMethod, + ChangingValue imageId) +``` + + +### Properties + +#### ImageId + +```csharp +public ChangingValue ImageId { get; } +``` + + +--- + +#### ShippingMethod + +```csharp +public ShippingMethodReadOnly ShippingMethod { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethodnamechange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethodnamechange.md new file mode 100644 index 00000000000..11baa48a26d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethodnamechange.md @@ -0,0 +1,46 @@ +--- +title: ValidateShippingMethodNameChange +description: API reference for ValidateShippingMethodNameChange in Umbraco Commerce +--- +## ValidateShippingMethodNameChange + +```csharp +public class ValidateShippingMethodNameChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateShippingMethodNameChange + +```csharp +public ValidateShippingMethodNameChange(ShippingMethodReadOnly shippingMethod, + ChangingValue name) +``` + + +### Properties + +#### Name + +```csharp +public ChangingValue Name { get; } +``` + + +--- + +#### ShippingMethod + +```csharp +public ShippingMethodReadOnly ShippingMethod { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethodpricechange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethodpricechange.md new file mode 100644 index 00000000000..fb1ad63a5d2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethodpricechange.md @@ -0,0 +1,73 @@ +--- +title: ValidateShippingMethodPriceChange +description: API reference for ValidateShippingMethodPriceChange in Umbraco Commerce +--- +## ValidateShippingMethodPriceChange + +```csharp +public class ValidateShippingMethodPriceChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateShippingMethodPriceChange + +```csharp +public ValidateShippingMethodPriceChange(ShippingMethodReadOnly shippingMethod, Guid currencyId, + ChangingValue price, Guid? countryId, Guid? regionId) +``` + + +### Properties + +#### CountryId + +```csharp +public Guid? CountryId { get; } +``` + + +--- + +#### CurrencyId + +```csharp +public Guid CurrencyId { get; } +``` + + +--- + +#### Price + +```csharp +public ChangingValue Price { get; } +``` + + +--- + +#### RegionId + +```csharp +public Guid? RegionId { get; } +``` + + +--- + +#### ShippingMethod + +```csharp +public ShippingMethodReadOnly ShippingMethod { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethodsave.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethodsave.md new file mode 100644 index 00000000000..e6e0eef1425 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethodsave.md @@ -0,0 +1,36 @@ +--- +title: ValidateShippingMethodSave +description: API reference for ValidateShippingMethodSave in Umbraco Commerce +--- +## ValidateShippingMethodSave + +```csharp +public class ValidateShippingMethodSave : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateShippingMethodSave + +```csharp +public ValidateShippingMethodSave(ShippingMethodReadOnly shippingMethod) +``` + + +### Properties + +#### ShippingMethod + +```csharp +public ShippingMethodReadOnly ShippingMethod { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethodskuchange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethodskuchange.md new file mode 100644 index 00000000000..fc71c304b98 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethodskuchange.md @@ -0,0 +1,46 @@ +--- +title: ValidateShippingMethodSkuChange +description: API reference for ValidateShippingMethodSkuChange in Umbraco Commerce +--- +## ValidateShippingMethodSkuChange + +```csharp +public class ValidateShippingMethodSkuChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateShippingMethodSkuChange + +```csharp +public ValidateShippingMethodSkuChange(ShippingMethodReadOnly shippingMethod, + ChangingValue sku) +``` + + +### Properties + +#### ShippingMethod + +```csharp +public ShippingMethodReadOnly ShippingMethod { get; } +``` + + +--- + +#### Sku + +```csharp +public ChangingValue Sku { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethodtaxclasschange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethodtaxclasschange.md new file mode 100644 index 00000000000..aa41df598b9 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethodtaxclasschange.md @@ -0,0 +1,46 @@ +--- +title: ValidateShippingMethodTaxClassChange +description: API reference for ValidateShippingMethodTaxClassChange in Umbraco Commerce +--- +## ValidateShippingMethodTaxClassChange + +```csharp +public class ValidateShippingMethodTaxClassChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateShippingMethodTaxClassChange + +```csharp +public ValidateShippingMethodTaxClassChange(ShippingMethodReadOnly shippingMethod, + ChangingValue taxClassId) +``` + + +### Properties + +#### ShippingMethod + +```csharp +public ShippingMethodReadOnly ShippingMethod { get; } +``` + + +--- + +#### TaxClassId + +```csharp +public ChangingValue TaxClassId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethodupdate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethodupdate.md new file mode 100644 index 00000000000..bee35870d91 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validateshippingmethodupdate.md @@ -0,0 +1,36 @@ +--- +title: ValidateShippingMethodUpdate +description: API reference for ValidateShippingMethodUpdate in Umbraco Commerce +--- +## ValidateShippingMethodUpdate + +```csharp +public class ValidateShippingMethodUpdate : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateShippingMethodUpdate + +```csharp +public ValidateShippingMethodUpdate(ShippingMethodReadOnly shippingMethod) +``` + + +### Properties + +#### ShippingMethod + +```csharp +public ShippingMethodReadOnly ShippingMethod { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestockchange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestockchange.md new file mode 100644 index 00000000000..95d589e70e9 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestockchange.md @@ -0,0 +1,72 @@ +--- +title: ValidateStockChange +description: API reference for ValidateStockChange in Umbraco Commerce +--- +## ValidateStockChange + +```csharp +public class ValidateStockChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateStockChange (1 of 2) + +```csharp +public ValidateStockChange(Guid storeId, string productReference, ChangingValue value) +``` + +--- + +#### ValidateStockChange (2 of 2) + +```csharp +public ValidateStockChange(Guid storeId, string productReference, string productVariantReference, + ChangingValue value) +``` + + +### Properties + +#### ProductReference + +```csharp +public string ProductReference { get; } +``` + + +--- + +#### ProductVariantReference + +```csharp +public string ProductVariantReference { get; } +``` + + +--- + +#### StoreId + +```csharp +public Guid StoreId { get; } +``` + + +--- + +#### Value + +```csharp +public ChangingValue Value { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreaddgiftcardpropertyalias.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreaddgiftcardpropertyalias.md new file mode 100644 index 00000000000..2f4dd4a0fcb --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreaddgiftcardpropertyalias.md @@ -0,0 +1,45 @@ +--- +title: ValidateStoreAddGiftCardPropertyAlias +description: API reference for ValidateStoreAddGiftCardPropertyAlias in Umbraco Commerce +--- +## ValidateStoreAddGiftCardPropertyAlias + +```csharp +public class ValidateStoreAddGiftCardPropertyAlias : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateStoreAddGiftCardPropertyAlias + +```csharp +public ValidateStoreAddGiftCardPropertyAlias(StoreReadOnly store, string alias) +``` + + +### Properties + +#### Alias + +```csharp +public string Alias { get; } +``` + + +--- + +#### Store + +```csharp +public StoreReadOnly Store { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreaddproductpropertyalias.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreaddproductpropertyalias.md new file mode 100644 index 00000000000..55b8a35f552 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreaddproductpropertyalias.md @@ -0,0 +1,45 @@ +--- +title: ValidateStoreAddProductPropertyAlias +description: API reference for ValidateStoreAddProductPropertyAlias in Umbraco Commerce +--- +## ValidateStoreAddProductPropertyAlias + +```csharp +public class ValidateStoreAddProductPropertyAlias : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateStoreAddProductPropertyAlias + +```csharp +public ValidateStoreAddProductPropertyAlias(StoreReadOnly store, string alias) +``` + + +### Properties + +#### Alias + +```csharp +public string Alias { get; } +``` + + +--- + +#### Store + +```csharp +public StoreReadOnly Store { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreaddproductuniquenesspropertyalias.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreaddproductuniquenesspropertyalias.md new file mode 100644 index 00000000000..7e2c98874a7 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreaddproductuniquenesspropertyalias.md @@ -0,0 +1,45 @@ +--- +title: ValidateStoreAddProductUniquenessPropertyAlias +description: API reference for ValidateStoreAddProductUniquenessPropertyAlias in Umbraco Commerce +--- +## ValidateStoreAddProductUniquenessPropertyAlias + +```csharp +public class ValidateStoreAddProductUniquenessPropertyAlias : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateStoreAddProductUniquenessPropertyAlias + +```csharp +public ValidateStoreAddProductUniquenessPropertyAlias(StoreReadOnly store, string alias) +``` + + +### Properties + +#### Alias + +```csharp +public string Alias { get; } +``` + + +--- + +#### Store + +```csharp +public StoreReadOnly Store { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestorealiaschange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestorealiaschange.md new file mode 100644 index 00000000000..78b1087c74f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestorealiaschange.md @@ -0,0 +1,45 @@ +--- +title: ValidateStoreAliasChange +description: API reference for ValidateStoreAliasChange in Umbraco Commerce +--- +## ValidateStoreAliasChange + +```csharp +public class ValidateStoreAliasChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateStoreAliasChange + +```csharp +public ValidateStoreAliasChange(StoreReadOnly store, ChangingValue alias) +``` + + +### Properties + +#### Alias + +```csharp +public ChangingValue Alias { get; } +``` + + +--- + +#### Store + +```csharp +public StoreReadOnly Store { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreallowuser.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreallowuser.md new file mode 100644 index 00000000000..bbfdd5a38ec --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreallowuser.md @@ -0,0 +1,45 @@ +--- +title: ValidateStoreAllowUser +description: API reference for ValidateStoreAllowUser in Umbraco Commerce +--- +## ValidateStoreAllowUser + +```csharp +public class ValidateStoreAllowUser : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateStoreAllowUser + +```csharp +public ValidateStoreAllowUser(StoreReadOnly store, string userId) +``` + + +### Properties + +#### Store + +```csharp +public StoreReadOnly Store { get; } +``` + + +--- + +#### UserId + +```csharp +public string UserId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreallowuserrole.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreallowuserrole.md new file mode 100644 index 00000000000..ff3e765c47c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreallowuserrole.md @@ -0,0 +1,45 @@ +--- +title: ValidateStoreAllowUserRole +description: API reference for ValidateStoreAllowUserRole in Umbraco Commerce +--- +## ValidateStoreAllowUserRole + +```csharp +public class ValidateStoreAllowUserRole : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateStoreAllowUserRole + +```csharp +public ValidateStoreAllowUserRole(StoreReadOnly store, string role) +``` + + +### Properties + +#### Role + +```csharp +public string Role { get; } +``` + + +--- + +#### Store + +```csharp +public StoreReadOnly Store { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestorebasecurrencychange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestorebasecurrencychange.md new file mode 100644 index 00000000000..d41ee838d9f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestorebasecurrencychange.md @@ -0,0 +1,45 @@ +--- +title: ValidateStoreBaseCurrencyChange +description: API reference for ValidateStoreBaseCurrencyChange in Umbraco Commerce +--- +## ValidateStoreBaseCurrencyChange + +```csharp +public class ValidateStoreBaseCurrencyChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateStoreBaseCurrencyChange + +```csharp +public ValidateStoreBaseCurrencyChange(StoreReadOnly store, ChangingValue currencyId) +``` + + +### Properties + +#### CurrencyId + +```csharp +public ChangingValue CurrencyId { get; } +``` + + +--- + +#### Store + +```csharp +public StoreReadOnly Store { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestorecookieschange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestorecookieschange.md new file mode 100644 index 00000000000..c250bb92f49 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestorecookieschange.md @@ -0,0 +1,55 @@ +--- +title: ValidateStoreCookiesChange +description: API reference for ValidateStoreCookiesChange in Umbraco Commerce +--- +## ValidateStoreCookiesChange + +```csharp +public class ValidateStoreCookiesChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateStoreCookiesChange + +```csharp +public ValidateStoreCookiesChange(StoreReadOnly store, ChangingValue cookiesEnabled, + ChangingValue cookieTimeout) +``` + + +### Properties + +#### CookiesEnabled + +```csharp +public ChangingValue CookiesEnabled { get; } +``` + + +--- + +#### CookieTimeout + +```csharp +public ChangingValue CookieTimeout { get; } +``` + + +--- + +#### Store + +```csharp +public StoreReadOnly Store { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestorecreate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestorecreate.md new file mode 100644 index 00000000000..36ed48fe665 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestorecreate.md @@ -0,0 +1,36 @@ +--- +title: ValidateStoreCreate +description: API reference for ValidateStoreCreate in Umbraco Commerce +--- +## ValidateStoreCreate + +```csharp +public class ValidateStoreCreate : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateStoreCreate + +```csharp +public ValidateStoreCreate(StoreReadOnly store) +``` + + +### Properties + +#### Store + +```csharp +public StoreReadOnly Store { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoredefaultcountrychange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoredefaultcountrychange.md new file mode 100644 index 00000000000..513a2abbc13 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoredefaultcountrychange.md @@ -0,0 +1,45 @@ +--- +title: ValidateStoreDefaultCountryChange +description: API reference for ValidateStoreDefaultCountryChange in Umbraco Commerce +--- +## ValidateStoreDefaultCountryChange + +```csharp +public class ValidateStoreDefaultCountryChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateStoreDefaultCountryChange + +```csharp +public ValidateStoreDefaultCountryChange(StoreReadOnly store, ChangingValue countryId) +``` + + +### Properties + +#### CountryId + +```csharp +public ChangingValue CountryId { get; } +``` + + +--- + +#### Store + +```csharp +public StoreReadOnly Store { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoredefaulttaxclasschange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoredefaulttaxclasschange.md new file mode 100644 index 00000000000..8832b6cd0d5 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoredefaulttaxclasschange.md @@ -0,0 +1,45 @@ +--- +title: ValidateStoreDefaultTaxClassChange +description: API reference for ValidateStoreDefaultTaxClassChange in Umbraco Commerce +--- +## ValidateStoreDefaultTaxClassChange + +```csharp +public class ValidateStoreDefaultTaxClassChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateStoreDefaultTaxClassChange + +```csharp +public ValidateStoreDefaultTaxClassChange(StoreReadOnly store, ChangingValue taxClassId) +``` + + +### Properties + +#### Store + +```csharp +public StoreReadOnly Store { get; } +``` + + +--- + +#### TaxClassId + +```csharp +public ChangingValue TaxClassId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoredelete.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoredelete.md new file mode 100644 index 00000000000..bb354926bf1 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoredelete.md @@ -0,0 +1,36 @@ +--- +title: ValidateStoreDelete +description: API reference for ValidateStoreDelete in Umbraco Commerce +--- +## ValidateStoreDelete + +```csharp +public class ValidateStoreDelete : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateStoreDelete + +```csharp +public ValidateStoreDelete(StoreReadOnly store) +``` + + +### Properties + +#### Store + +```csharp +public StoreReadOnly Store { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoredisallowuser.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoredisallowuser.md new file mode 100644 index 00000000000..9a107be07ba --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoredisallowuser.md @@ -0,0 +1,45 @@ +--- +title: ValidateStoreDisallowUser +description: API reference for ValidateStoreDisallowUser in Umbraco Commerce +--- +## ValidateStoreDisallowUser + +```csharp +public class ValidateStoreDisallowUser : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateStoreDisallowUser + +```csharp +public ValidateStoreDisallowUser(StoreReadOnly store, string userId) +``` + + +### Properties + +#### Store + +```csharp +public StoreReadOnly Store { get; } +``` + + +--- + +#### UserId + +```csharp +public string UserId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoredisallowuserrole.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoredisallowuserrole.md new file mode 100644 index 00000000000..0730f753689 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoredisallowuserrole.md @@ -0,0 +1,45 @@ +--- +title: ValidateStoreDisallowUserRole +description: API reference for ValidateStoreDisallowUserRole in Umbraco Commerce +--- +## ValidateStoreDisallowUserRole + +```csharp +public class ValidateStoreDisallowUserRole : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateStoreDisallowUserRole + +```csharp +public ValidateStoreDisallowUserRole(StoreReadOnly store, string role) +``` + + +### Properties + +#### Role + +```csharp +public string Role { get; } +``` + + +--- + +#### Store + +```csharp +public StoreReadOnly Store { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoregiftcardsettingschange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoregiftcardsettingschange.md new file mode 100644 index 00000000000..75d148525f1 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoregiftcardsettingschange.md @@ -0,0 +1,95 @@ +--- +title: ValidateStoreGiftCardSettingsChange +description: API reference for ValidateStoreGiftCardSettingsChange in Umbraco Commerce +--- +## ValidateStoreGiftCardSettingsChange + +```csharp +public class ValidateStoreGiftCardSettingsChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateStoreGiftCardSettingsChange + +```csharp +public ValidateStoreGiftCardSettingsChange(StoreReadOnly store, + ChangingValue giftCardCodeLength, ChangingValue giftCardDaysValid, + ChangingValue giftCardCodeTemplate, + ChangingValue giftCardActivationMethod, + ChangingValue giftCardActivationOrderStatusId, + ChangingValue defaultGiftCardEmailTemplateId) +``` + + +### Properties + +#### DefaultGiftCardEmailTemplateId + +```csharp +public ChangingValue DefaultGiftCardEmailTemplateId { get; } +``` + + +--- + +#### GiftCardActivationMethod + +```csharp +public ChangingValue GiftCardActivationMethod { get; } +``` + + +--- + +#### GiftCardActivationOrderStatusId + +```csharp +public ChangingValue GiftCardActivationOrderStatusId { get; } +``` + + +--- + +#### GiftCardCodeLength + +```csharp +public ChangingValue GiftCardCodeLength { get; } +``` + + +--- + +#### GiftCardCodeTemplate + +```csharp +public ChangingValue GiftCardCodeTemplate { get; } +``` + + +--- + +#### GiftCardDaysValid + +```csharp +public ChangingValue GiftCardDaysValid { get; } +``` + + +--- + +#### Store + +```csharp +public StoreReadOnly Store { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestorenamechange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestorenamechange.md new file mode 100644 index 00000000000..c111756ec61 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestorenamechange.md @@ -0,0 +1,45 @@ +--- +title: ValidateStoreNameChange +description: API reference for ValidateStoreNameChange in Umbraco Commerce +--- +## ValidateStoreNameChange + +```csharp +public class ValidateStoreNameChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateStoreNameChange + +```csharp +public ValidateStoreNameChange(StoreReadOnly store, ChangingValue name) +``` + + +### Properties + +#### Name + +```csharp +public ChangingValue Name { get; } +``` + + +--- + +#### Store + +```csharp +public StoreReadOnly Store { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestorenotificationemailtemplateschange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestorenotificationemailtemplateschange.md new file mode 100644 index 00000000000..4a03b377ab4 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestorenotificationemailtemplateschange.md @@ -0,0 +1,55 @@ +--- +title: ValidateStoreNotificationEmailTemplatesChange +description: API reference for ValidateStoreNotificationEmailTemplatesChange in Umbraco Commerce +--- +## ValidateStoreNotificationEmailTemplatesChange + +```csharp +public class ValidateStoreNotificationEmailTemplatesChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateStoreNotificationEmailTemplatesChange + +```csharp +public ValidateStoreNotificationEmailTemplatesChange(StoreReadOnly store, + ChangingValue confirmationEmailTemplateId, ChangingValue errorEmailTemplateId) +``` + + +### Properties + +#### ConfirmationEmailTemplateId + +```csharp +public ChangingValue ConfirmationEmailTemplateId { get; } +``` + + +--- + +#### ErrorEmailTemplateId + +```csharp +public ChangingValue ErrorEmailTemplateId { get; } +``` + + +--- + +#### Store + +```csharp +public StoreReadOnly Store { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreordereditorconfigchange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreordereditorconfigchange.md new file mode 100644 index 00000000000..ab04ec033b9 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreordereditorconfigchange.md @@ -0,0 +1,45 @@ +--- +title: ValidateStoreOrderEditorConfigChange +description: API reference for ValidateStoreOrderEditorConfigChange in Umbraco Commerce +--- +## ValidateStoreOrderEditorConfigChange + +```csharp +public class ValidateStoreOrderEditorConfigChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateStoreOrderEditorConfigChange + +```csharp +public ValidateStoreOrderEditorConfigChange(StoreReadOnly store, ChangingValue configPath) +``` + + +### Properties + +#### ConfigPath + +```csharp +public ChangingValue ConfigPath { get; } +``` + + +--- + +#### Store + +```csharp +public StoreReadOnly Store { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreordernumbertemplateschange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreordernumbertemplateschange.md new file mode 100644 index 00000000000..e627f92f62c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreordernumbertemplateschange.md @@ -0,0 +1,55 @@ +--- +title: ValidateStoreOrderNumberTemplatesChange +description: API reference for ValidateStoreOrderNumberTemplatesChange in Umbraco Commerce +--- +## ValidateStoreOrderNumberTemplatesChange + +```csharp +public class ValidateStoreOrderNumberTemplatesChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateStoreOrderNumberTemplatesChange + +```csharp +public ValidateStoreOrderNumberTemplatesChange(StoreReadOnly store, + ChangingValue cartNumberTemplate, ChangingValue orderNumberTemplate) +``` + + +### Properties + +#### CartNumberTemplate + +```csharp +public ChangingValue CartNumberTemplate { get; } +``` + + +--- + +#### OrderNumberTemplate + +```csharp +public ChangingValue OrderNumberTemplate { get; } +``` + + +--- + +#### Store + +```csharp +public StoreReadOnly Store { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreorderroundingmethodchange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreorderroundingmethodchange.md new file mode 100644 index 00000000000..621564690fd --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreorderroundingmethodchange.md @@ -0,0 +1,46 @@ +--- +title: ValidateStoreOrderRoundingMethodChange +description: API reference for ValidateStoreOrderRoundingMethodChange in Umbraco Commerce +--- +## ValidateStoreOrderRoundingMethodChange + +```csharp +public class ValidateStoreOrderRoundingMethodChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateStoreOrderRoundingMethodChange + +```csharp +public ValidateStoreOrderRoundingMethodChange(StoreReadOnly store, + ChangingValue orderRoundingMethod) +``` + + +### Properties + +#### OrderRoundingMethod + +```csharp +public ChangingValue OrderRoundingMethod { get; } +``` + + +--- + +#### Store + +```csharp +public StoreReadOnly Store { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreorderstatuseschange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreorderstatuseschange.md new file mode 100644 index 00000000000..4cf46c88859 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreorderstatuseschange.md @@ -0,0 +1,55 @@ +--- +title: ValidateStoreOrderStatusesChange +description: API reference for ValidateStoreOrderStatusesChange in Umbraco Commerce +--- +## ValidateStoreOrderStatusesChange + +```csharp +public class ValidateStoreOrderStatusesChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateStoreOrderStatusesChange + +```csharp +public ValidateStoreOrderStatusesChange(StoreReadOnly store, + ChangingValue defaultOrderStatusId, ChangingValue errorOrderStatusId) +``` + + +### Properties + +#### DefaultOrderStatusId + +```csharp +public ChangingValue DefaultOrderStatusId { get; } +``` + + +--- + +#### ErrorOrderStatusId + +```csharp +public ChangingValue ErrorOrderStatusId { get; } +``` + + +--- + +#### Store + +```csharp +public StoreReadOnly Store { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestorepricetaxinclusivitychange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestorepricetaxinclusivitychange.md new file mode 100644 index 00000000000..a057770bdde --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestorepricetaxinclusivitychange.md @@ -0,0 +1,46 @@ +--- +title: ValidateStorePriceTaxInclusivityChange +description: API reference for ValidateStorePriceTaxInclusivityChange in Umbraco Commerce +--- +## ValidateStorePriceTaxInclusivityChange + +```csharp +public class ValidateStorePriceTaxInclusivityChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateStorePriceTaxInclusivityChange + +```csharp +public ValidateStorePriceTaxInclusivityChange(StoreReadOnly store, + ChangingValue pricesIncludeTax) +``` + + +### Properties + +#### PricesIncludeTax + +```csharp +public ChangingValue PricesIncludeTax { get; } +``` + + +--- + +#### Store + +```csharp +public StoreReadOnly Store { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreremovegiftcardpropertyalias.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreremovegiftcardpropertyalias.md new file mode 100644 index 00000000000..17c244c5c8d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreremovegiftcardpropertyalias.md @@ -0,0 +1,45 @@ +--- +title: ValidateStoreRemoveGiftCardPropertyAlias +description: API reference for ValidateStoreRemoveGiftCardPropertyAlias in Umbraco Commerce +--- +## ValidateStoreRemoveGiftCardPropertyAlias + +```csharp +public class ValidateStoreRemoveGiftCardPropertyAlias : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateStoreRemoveGiftCardPropertyAlias + +```csharp +public ValidateStoreRemoveGiftCardPropertyAlias(StoreReadOnly store, string alias) +``` + + +### Properties + +#### Alias + +```csharp +public string Alias { get; } +``` + + +--- + +#### Store + +```csharp +public StoreReadOnly Store { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreremoveproductpropertyalias.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreremoveproductpropertyalias.md new file mode 100644 index 00000000000..0f64beb0a00 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreremoveproductpropertyalias.md @@ -0,0 +1,45 @@ +--- +title: ValidateStoreRemoveProductPropertyAlias +description: API reference for ValidateStoreRemoveProductPropertyAlias in Umbraco Commerce +--- +## ValidateStoreRemoveProductPropertyAlias + +```csharp +public class ValidateStoreRemoveProductPropertyAlias : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateStoreRemoveProductPropertyAlias + +```csharp +public ValidateStoreRemoveProductPropertyAlias(StoreReadOnly store, string alias) +``` + + +### Properties + +#### Alias + +```csharp +public string Alias { get; } +``` + + +--- + +#### Store + +```csharp +public StoreReadOnly Store { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreremoveproductuniquenesspropertyalias.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreremoveproductuniquenesspropertyalias.md new file mode 100644 index 00000000000..f01b073a305 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreremoveproductuniquenesspropertyalias.md @@ -0,0 +1,45 @@ +--- +title: ValidateStoreRemoveProductUniquenessPropertyAlias +description: API reference for ValidateStoreRemoveProductUniquenessPropertyAlias in Umbraco Commerce +--- +## ValidateStoreRemoveProductUniquenessPropertyAlias + +```csharp +public class ValidateStoreRemoveProductUniquenessPropertyAlias : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateStoreRemoveProductUniquenessPropertyAlias + +```csharp +public ValidateStoreRemoveProductUniquenessPropertyAlias(StoreReadOnly store, string alias) +``` + + +### Properties + +#### Alias + +```csharp +public string Alias { get; } +``` + + +--- + +#### Store + +```csharp +public StoreReadOnly Store { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoresave.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoresave.md new file mode 100644 index 00000000000..b036db18fe6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoresave.md @@ -0,0 +1,36 @@ +--- +title: ValidateStoreSave +description: API reference for ValidateStoreSave in Umbraco Commerce +--- +## ValidateStoreSave + +```csharp +public class ValidateStoreSave : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateStoreSave + +```csharp +public ValidateStoreSave(StoreReadOnly store) +``` + + +### Properties + +#### Store + +```csharp +public StoreReadOnly Store { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoresharestockfromstorechange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoresharestockfromstorechange.md new file mode 100644 index 00000000000..ca145624df1 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoresharestockfromstorechange.md @@ -0,0 +1,46 @@ +--- +title: ValidateStoreShareStockFromStoreChange +description: API reference for ValidateStoreShareStockFromStoreChange in Umbraco Commerce +--- +## ValidateStoreShareStockFromStoreChange + +```csharp +public class ValidateStoreShareStockFromStoreChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateStoreShareStockFromStoreChange + +```csharp +public ValidateStoreShareStockFromStoreChange(StoreReadOnly store, + ChangingValue shareStockFromStoreId) +``` + + +### Properties + +#### ShareStockFromStoreId + +```csharp +public ChangingValue ShareStockFromStoreId { get; } +``` + + +--- + +#### Store + +```csharp +public StoreReadOnly Store { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreupdate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreupdate.md new file mode 100644 index 00000000000..c178877c3f4 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatestoreupdate.md @@ -0,0 +1,36 @@ +--- +title: ValidateStoreUpdate +description: API reference for ValidateStoreUpdate in Umbraco Commerce +--- +## ValidateStoreUpdate + +```csharp +public class ValidateStoreUpdate : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateStoreUpdate + +```csharp +public ValidateStoreUpdate(StoreReadOnly store) +``` + + +### Properties + +#### Store + +```csharp +public StoreReadOnly Store { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatetaxclassaliaschange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatetaxclassaliaschange.md new file mode 100644 index 00000000000..5e15d1376f3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatetaxclassaliaschange.md @@ -0,0 +1,45 @@ +--- +title: ValidateTaxClassAliasChange +description: API reference for ValidateTaxClassAliasChange in Umbraco Commerce +--- +## ValidateTaxClassAliasChange + +```csharp +public class ValidateTaxClassAliasChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateTaxClassAliasChange + +```csharp +public ValidateTaxClassAliasChange(TaxClassReadOnly taxClass, ChangingValue alias) +``` + + +### Properties + +#### Alias + +```csharp +public ChangingValue Alias { get; } +``` + + +--- + +#### TaxClass + +```csharp +public TaxClassReadOnly TaxClass { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatetaxclasscleartaxrates.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatetaxclasscleartaxrates.md new file mode 100644 index 00000000000..31e2f01ba31 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatetaxclasscleartaxrates.md @@ -0,0 +1,45 @@ +--- +title: ValidateTaxClassClearTaxRates +description: API reference for ValidateTaxClassClearTaxRates in Umbraco Commerce +--- +## ValidateTaxClassClearTaxRates + +```csharp +public class ValidateTaxClassClearTaxRates : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateTaxClassClearTaxRates + +```csharp +public ValidateTaxClassClearTaxRates(TaxClassReadOnly taxClass, Guid? countryId) +``` + + +### Properties + +#### CountryId + +```csharp +public Guid? CountryId { get; } +``` + + +--- + +#### TaxClass + +```csharp +public TaxClassReadOnly TaxClass { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatetaxclasscreate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatetaxclasscreate.md new file mode 100644 index 00000000000..5265a25e597 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatetaxclasscreate.md @@ -0,0 +1,36 @@ +--- +title: ValidateTaxClassCreate +description: API reference for ValidateTaxClassCreate in Umbraco Commerce +--- +## ValidateTaxClassCreate + +```csharp +public class ValidateTaxClassCreate : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateTaxClassCreate + +```csharp +public ValidateTaxClassCreate(TaxClassReadOnly taxClass) +``` + + +### Properties + +#### TaxClass + +```csharp +public TaxClassReadOnly TaxClass { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatetaxclassdelete.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatetaxclassdelete.md new file mode 100644 index 00000000000..8146c7fafe2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatetaxclassdelete.md @@ -0,0 +1,36 @@ +--- +title: ValidateTaxClassDelete +description: API reference for ValidateTaxClassDelete in Umbraco Commerce +--- +## ValidateTaxClassDelete + +```csharp +public class ValidateTaxClassDelete : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateTaxClassDelete + +```csharp +public ValidateTaxClassDelete(TaxClassReadOnly taxClass) +``` + + +### Properties + +#### TaxClass + +```csharp +public TaxClassReadOnly TaxClass { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatetaxclassnamechange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatetaxclassnamechange.md new file mode 100644 index 00000000000..03bfc677c5e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatetaxclassnamechange.md @@ -0,0 +1,45 @@ +--- +title: ValidateTaxClassNameChange +description: API reference for ValidateTaxClassNameChange in Umbraco Commerce +--- +## ValidateTaxClassNameChange + +```csharp +public class ValidateTaxClassNameChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateTaxClassNameChange + +```csharp +public ValidateTaxClassNameChange(TaxClassReadOnly taxClass, ChangingValue name) +``` + + +### Properties + +#### Name + +```csharp +public ChangingValue Name { get; } +``` + + +--- + +#### TaxClass + +```csharp +public TaxClassReadOnly TaxClass { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatetaxclasssave.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatetaxclasssave.md new file mode 100644 index 00000000000..11c58db44da --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatetaxclasssave.md @@ -0,0 +1,36 @@ +--- +title: ValidateTaxClassSave +description: API reference for ValidateTaxClassSave in Umbraco Commerce +--- +## ValidateTaxClassSave + +```csharp +public class ValidateTaxClassSave : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateTaxClassSave + +```csharp +public ValidateTaxClassSave(TaxClassReadOnly taxClass) +``` + + +### Properties + +#### TaxClass + +```csharp +public TaxClassReadOnly TaxClass { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatetaxclasstaxratechange.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatetaxclasstaxratechange.md new file mode 100644 index 00000000000..501357854a0 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatetaxclasstaxratechange.md @@ -0,0 +1,64 @@ +--- +title: ValidateTaxClassTaxRateChange +description: API reference for ValidateTaxClassTaxRateChange in Umbraco Commerce +--- +## ValidateTaxClassTaxRateChange + +```csharp +public class ValidateTaxClassTaxRateChange : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateTaxClassTaxRateChange + +```csharp +public ValidateTaxClassTaxRateChange(TaxClassReadOnly taxClass, ChangingValue taxRate, + Guid? countryId, Guid? regionId) +``` + + +### Properties + +#### CountryId + +```csharp +public Guid? CountryId { get; } +``` + + +--- + +#### RegionId + +```csharp +public Guid? RegionId { get; } +``` + + +--- + +#### TaxClass + +```csharp +public TaxClassReadOnly TaxClass { get; } +``` + + +--- + +#### TaxRate + +```csharp +public ChangingValue TaxRate { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatetaxclassupdate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatetaxclassupdate.md new file mode 100644 index 00000000000..647b1de39de --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events-validation/validatetaxclassupdate.md @@ -0,0 +1,36 @@ +--- +title: ValidateTaxClassUpdate +description: API reference for ValidateTaxClassUpdate in Umbraco Commerce +--- +## ValidateTaxClassUpdate + +```csharp +public class ValidateTaxClassUpdate : ValidationEventBase +``` + +**Inheritance** + +* Class [ValidationEventBase](../../umbraco-commerce-common/umbraco-commerce-common-events/validationeventbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Events.Validation](README.md) + +### Constructors + +#### ValidateTaxClassUpdate + +```csharp +public ValidateTaxClassUpdate(TaxClassReadOnly taxClass) +``` + + +### Properties + +#### TaxClass + +```csharp +public TaxClassReadOnly TaxClass { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events/README.md new file mode 100644 index 00000000000..a2bbfa45d7f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Core.Events +description: API reference for Umbraco.Commerce.Core.Events in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Events namespace + +| Public Type | Description | +| --- | --- | +| class [EventHub](eventhub.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events/eventhub.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events/eventhub.md new file mode 100644 index 00000000000..7646ef5036e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-events/eventhub.md @@ -0,0 +1,1358 @@ +--- +title: EventHub +description: API reference for EventHub in Umbraco Commerce +--- +## EventHub + +```csharp +public class EventHub +``` + +**Namespace** +* [Umbraco.Commerce.Core.Events](README.md) + +### Constructors + +#### EventHub + +The default constructor. + +```csharp +public EventHub() +``` + + +### Classes + +#### EventHub.NotificationEvents + +```csharp +public class NotificationEvents +``` + +##### Constructors + +#### EventHub.NotificationEvents + +The default constructor. + +```csharp +public NotificationEvents() +``` + + +##### Methods + +#### OnCountryCreated + +```csharp +public static void OnCountryCreated(Action callback) +``` + + +--- + +#### OnCountryCreating + +```csharp +public static void OnCountryCreating(Action callback) +``` + + +--- + +#### OnCountryDeleted + +```csharp +public static void OnCountryDeleted(Action callback) +``` + + +--- + +#### OnCountryDeleting + +```csharp +public static void OnCountryDeleting(Action callback) +``` + + +--- + +#### OnCountrySaved + +```csharp +public static void OnCountrySaved(Action callback) +``` + + +--- + +#### OnCountrySaving + +```csharp +public static void OnCountrySaving(Action callback) +``` + + +--- + +#### OnCountryUpdated + +```csharp +public static void OnCountryUpdated(Action callback) +``` + + +--- + +#### OnCountryUpdating + +```csharp +public static void OnCountryUpdating(Action callback) +``` + + +--- + +#### OnCurrencyCreated + +```csharp +public static void OnCurrencyCreated(Action callback) +``` + + +--- + +#### OnCurrencyCreating + +```csharp +public static void OnCurrencyCreating(Action callback) +``` + + +--- + +#### OnCurrencyDeleted + +```csharp +public static void OnCurrencyDeleted(Action callback) +``` + + +--- + +#### OnCurrencyDeleting + +```csharp +public static void OnCurrencyDeleting(Action callback) +``` + + +--- + +#### OnCurrencySaved + +```csharp +public static void OnCurrencySaved(Action callback) +``` + + +--- + +#### OnCurrencySaving + +```csharp +public static void OnCurrencySaving(Action callback) +``` + + +--- + +#### OnCurrencyUpdated + +```csharp +public static void OnCurrencyUpdated(Action callback) +``` + + +--- + +#### OnCurrencyUpdating + +```csharp +public static void OnCurrencyUpdating(Action callback) +``` + + +--- + +#### OnDiscountCreated + +```csharp +public static void OnDiscountCreated(Action callback) +``` + + +--- + +#### OnDiscountCreating + +```csharp +public static void OnDiscountCreating(Action callback) +``` + + +--- + +#### OnDiscountDeleted + +```csharp +public static void OnDiscountDeleted(Action callback) +``` + + +--- + +#### OnDiscountDeleting + +```csharp +public static void OnDiscountDeleting(Action callback) +``` + + +--- + +#### OnDiscountSaved + +```csharp +public static void OnDiscountSaved(Action callback) +``` + + +--- + +#### OnDiscountSaving + +```csharp +public static void OnDiscountSaving(Action callback) +``` + + +--- + +#### OnDiscountUpdated + +```csharp +public static void OnDiscountUpdated(Action callback) +``` + + +--- + +#### OnDiscountUpdating + +```csharp +public static void OnDiscountUpdating(Action callback) +``` + + +--- + +#### OnEmailFailed + +```csharp +public static void OnEmailFailed(Action callback) +``` + + +--- + +#### OnEmailSending + +```csharp +public static void OnEmailSending(Action callback) +``` + + +--- + +#### OnEmailSent + +```csharp +public static void OnEmailSent(Action callback) +``` + + +--- + +#### OnEmailTemplateCreated + +```csharp +public static void OnEmailTemplateCreated(Action callback) +``` + + +--- + +#### OnEmailTemplateCreating + +```csharp +public static void OnEmailTemplateCreating(Action callback) +``` + + +--- + +#### OnEmailTemplateDeleted + +```csharp +public static void OnEmailTemplateDeleted(Action callback) +``` + + +--- + +#### OnEmailTemplateDeleting + +```csharp +public static void OnEmailTemplateDeleting(Action callback) +``` + + +--- + +#### OnEmailTemplateSaved + +```csharp +public static void OnEmailTemplateSaved(Action callback) +``` + + +--- + +#### OnEmailTemplateSaving + +```csharp +public static void OnEmailTemplateSaving(Action callback) +``` + + +--- + +#### OnEmailTemplateUpdated + +```csharp +public static void OnEmailTemplateUpdated(Action callback) +``` + + +--- + +#### OnEmailTemplateUpdating + +```csharp +public static void OnEmailTemplateUpdating(Action callback) +``` + + +--- + +#### OnExportTemplateCreated + +```csharp +public static void OnExportTemplateCreated(Action callback) +``` + + +--- + +#### OnExportTemplateCreating + +```csharp +public static void OnExportTemplateCreating(Action callback) +``` + + +--- + +#### OnExportTemplateDeleted + +```csharp +public static void OnExportTemplateDeleted(Action callback) +``` + + +--- + +#### OnExportTemplateDeleting + +```csharp +public static void OnExportTemplateDeleting(Action callback) +``` + + +--- + +#### OnExportTemplateSaved + +```csharp +public static void OnExportTemplateSaved(Action callback) +``` + + +--- + +#### OnExportTemplateSaving + +```csharp +public static void OnExportTemplateSaving(Action callback) +``` + + +--- + +#### OnExportTemplateUpdated + +```csharp +public static void OnExportTemplateUpdated(Action callback) +``` + + +--- + +#### OnExportTemplateUpdating + +```csharp +public static void OnExportTemplateUpdating(Action callback) +``` + + +--- + +#### OnFrozenPricesThawed + +```csharp +public static void OnFrozenPricesThawed(Action callback) +``` + + +--- + +#### OnFrozenPricesThawing + +```csharp +public static void OnFrozenPricesThawing(Action callback) +``` + + +--- + +#### OnGiftCardCreated + +```csharp +public static void OnGiftCardCreated(Action callback) +``` + + +--- + +#### OnGiftCardCreating + +```csharp +public static void OnGiftCardCreating(Action callback) +``` + + +--- + +#### OnGiftCardDeleted + +```csharp +public static void OnGiftCardDeleted(Action callback) +``` + + +--- + +#### OnGiftCardDeleting + +```csharp +public static void OnGiftCardDeleting(Action callback) +``` + + +--- + +#### OnGiftCardSaved + +```csharp +public static void OnGiftCardSaved(Action callback) +``` + + +--- + +#### OnGiftCardSaving + +```csharp +public static void OnGiftCardSaving(Action callback) +``` + + +--- + +#### OnGiftCardUpdated + +```csharp +public static void OnGiftCardUpdated(Action callback) +``` + + +--- + +#### OnGiftCardUpdating + +```csharp +public static void OnGiftCardUpdating(Action callback) +``` + + +--- + +#### OnOrderCreated + +```csharp +public static void OnOrderCreated(Action callback) +``` + + +--- + +#### OnOrderCreating + +```csharp +public static void OnOrderCreating(Action callback) +``` + + +--- + +#### OnOrderDeleted + +```csharp +public static void OnOrderDeleted(Action callback) +``` + + +--- + +#### OnOrderDeleting + +```csharp +public static void OnOrderDeleting(Action callback) +``` + + +--- + +#### OnOrderFinalized + +```csharp +public static void OnOrderFinalized(Action callback) +``` + + +--- + +#### OnOrderFinalizing + +```csharp +public static void OnOrderFinalizing(Action callback) +``` + + +--- + +#### OnOrderSaved + +```csharp +public static void OnOrderSaved(Action callback) +``` + + +--- + +#### OnOrderSaving + +```csharp +public static void OnOrderSaving(Action callback) +``` + + +--- + +#### OnOrderStatusChanged + +```csharp +public static void OnOrderStatusChanged(Action callback) +``` + + +--- + +#### OnOrderStatusChanging + +```csharp +public static void OnOrderStatusChanging(Action callback) +``` + + +--- + +#### OnOrderStatusCreated + +```csharp +public static void OnOrderStatusCreated(Action callback) +``` + + +--- + +#### OnOrderStatusCreating + +```csharp +public static void OnOrderStatusCreating(Action callback) +``` + + +--- + +#### OnOrderStatusDeleted + +```csharp +public static void OnOrderStatusDeleted(Action callback) +``` + + +--- + +#### OnOrderStatusDeleting + +```csharp +public static void OnOrderStatusDeleting(Action callback) +``` + + +--- + +#### OnOrderStatusSaved + +```csharp +public static void OnOrderStatusSaved(Action callback) +``` + + +--- + +#### OnOrderStatusSaving + +```csharp +public static void OnOrderStatusSaving(Action callback) +``` + + +--- + +#### OnOrderStatusUpdated + +```csharp +public static void OnOrderStatusUpdated(Action callback) +``` + + +--- + +#### OnOrderStatusUpdating + +```csharp +public static void OnOrderStatusUpdating(Action callback) +``` + + +--- + +#### OnOrderTransactionChanged + +```csharp +public static void OnOrderTransactionChanged(Action callback) +``` + + +--- + +#### OnOrderTransactionChanging + +```csharp +public static void OnOrderTransactionChanging(Action callback) +``` + + +--- + +#### OnOrderUpdated + +```csharp +public static void OnOrderUpdated(Action callback) +``` + + +--- + +#### OnOrderUpdating + +```csharp +public static void OnOrderUpdating(Action callback) +``` + + +--- + +#### OnPaymentFormGenerting + +```csharp +public static void OnPaymentFormGenerting(Action callback) +``` + + +--- + +#### OnPaymentMethodCreated + +```csharp +public static void OnPaymentMethodCreated(Action callback) +``` + + +--- + +#### OnPaymentMethodCreating + +```csharp +public static void OnPaymentMethodCreating(Action callback) +``` + + +--- + +#### OnPaymentMethodDeleted + +```csharp +public static void OnPaymentMethodDeleted(Action callback) +``` + + +--- + +#### OnPaymentMethodDeleting + +```csharp +public static void OnPaymentMethodDeleting(Action callback) +``` + + +--- + +#### OnPaymentMethodSaved + +```csharp +public static void OnPaymentMethodSaved(Action callback) +``` + + +--- + +#### OnPaymentMethodSaving + +```csharp +public static void OnPaymentMethodSaving(Action callback) +``` + + +--- + +#### OnPaymentMethodUpdated + +```csharp +public static void OnPaymentMethodUpdated(Action callback) +``` + + +--- + +#### OnPaymentMethodUpdating + +```csharp +public static void OnPaymentMethodUpdating(Action callback) +``` + + +--- + +#### OnPipelineFail + +```csharp +public static void OnPipelineFail(Action callback) +``` + + +--- + +#### OnPipelineSuccess + +```csharp +public static void OnPipelineSuccess(Action callback) +``` + + +--- + +#### OnPrintTemplateCreated + +```csharp +public static void OnPrintTemplateCreated(Action callback) +``` + + +--- + +#### OnPrintTemplateCreating + +```csharp +public static void OnPrintTemplateCreating(Action callback) +``` + + +--- + +#### OnPrintTemplateDeleted + +```csharp +public static void OnPrintTemplateDeleted(Action callback) +``` + + +--- + +#### OnPrintTemplateDeleting + +```csharp +public static void OnPrintTemplateDeleting(Action callback) +``` + + +--- + +#### OnPrintTemplateSaved + +```csharp +public static void OnPrintTemplateSaved(Action callback) +``` + + +--- + +#### OnPrintTemplateSaving + +```csharp +public static void OnPrintTemplateSaving(Action callback) +``` + + +--- + +#### OnPrintTemplateUpdated + +```csharp +public static void OnPrintTemplateUpdated(Action callback) +``` + + +--- + +#### OnPrintTemplateUpdating + +```csharp +public static void OnPrintTemplateUpdating(Action callback) +``` + + +--- + +#### OnProductAttributeCreated + +```csharp +public static void OnProductAttributeCreated(Action callback) +``` + + +--- + +#### OnProductAttributeCreating + +```csharp +public static void OnProductAttributeCreating(Action callback) +``` + + +--- + +#### OnProductAttributeDeleted + +```csharp +public static void OnProductAttributeDeleted(Action callback) +``` + + +--- + +#### OnProductAttributeDeleting + +```csharp +public static void OnProductAttributeDeleting(Action callback) +``` + + +--- + +#### OnProductAttributePresetCreated + +```csharp +public static void OnProductAttributePresetCreated( + Action callback) +``` + + +--- + +#### OnProductAttributePresetCreating + +```csharp +public static void OnProductAttributePresetCreating( + Action callback) +``` + + +--- + +#### OnProductAttributePresetDeleted + +```csharp +public static void OnProductAttributePresetDeleted( + Action callback) +``` + + +--- + +#### OnProductAttributePresetDeleting + +```csharp +public static void OnProductAttributePresetDeleting( + Action callback) +``` + + +--- + +#### OnProductAttributePresetSaved + +```csharp +public static void OnProductAttributePresetSaved( + Action callback) +``` + + +--- + +#### OnProductAttributePresetSaving + +```csharp +public static void OnProductAttributePresetSaving( + Action callback) +``` + + +--- + +#### OnProductAttributePresetUpdated + +```csharp +public static void OnProductAttributePresetUpdated( + Action callback) +``` + + +--- + +#### OnProductAttributePresetUpdating + +```csharp +public static void OnProductAttributePresetUpdating( + Action callback) +``` + + +--- + +#### OnProductAttributeSaved + +```csharp +public static void OnProductAttributeSaved(Action callback) +``` + + +--- + +#### OnProductAttributeSaving + +```csharp +public static void OnProductAttributeSaving(Action callback) +``` + + +--- + +#### OnProductAttributeUpdated + +```csharp +public static void OnProductAttributeUpdated(Action callback) +``` + + +--- + +#### OnProductAttributeUpdating + +```csharp +public static void OnProductAttributeUpdating(Action callback) +``` + + +--- + +#### OnRegionCreated + +```csharp +public static void OnRegionCreated(Action callback) +``` + + +--- + +#### OnRegionCreating + +```csharp +public static void OnRegionCreating(Action callback) +``` + + +--- + +#### OnRegionDeleted + +```csharp +public static void OnRegionDeleted(Action callback) +``` + + +--- + +#### OnRegionDeleting + +```csharp +public static void OnRegionDeleting(Action callback) +``` + + +--- + +#### OnRegionSaved + +```csharp +public static void OnRegionSaved(Action callback) +``` + + +--- + +#### OnRegionSaving + +```csharp +public static void OnRegionSaving(Action callback) +``` + + +--- + +#### OnRegionUpdated + +```csharp +public static void OnRegionUpdated(Action callback) +``` + + +--- + +#### OnRegionUpdating + +```csharp +public static void OnRegionUpdating(Action callback) +``` + + +--- + +#### OnShippingMethodCreated + +```csharp +public static void OnShippingMethodCreated(Action callback) +``` + + +--- + +#### OnShippingMethodCreating + +```csharp +public static void OnShippingMethodCreating(Action callback) +``` + + +--- + +#### OnShippingMethodDeleted + +```csharp +public static void OnShippingMethodDeleted(Action callback) +``` + + +--- + +#### OnShippingMethodDeleting + +```csharp +public static void OnShippingMethodDeleting(Action callback) +``` + + +--- + +#### OnShippingMethodSaved + +```csharp +public static void OnShippingMethodSaved(Action callback) +``` + + +--- + +#### OnShippingMethodSaving + +```csharp +public static void OnShippingMethodSaving(Action callback) +``` + + +--- + +#### OnShippingMethodUpdated + +```csharp +public static void OnShippingMethodUpdated(Action callback) +``` + + +--- + +#### OnShippingMethodUpdating + +```csharp +public static void OnShippingMethodUpdating(Action callback) +``` + + +--- + +#### OnStockChanged + +```csharp +public static void OnStockChanged(Action callback) +``` + + +--- + +#### OnStockChanging + +```csharp +public static void OnStockChanging(Action callback) +``` + + +--- + +#### OnStoreCreated + +```csharp +public static void OnStoreCreated(Action callback) +``` + + +--- + +#### OnStoreCreating + +```csharp +public static void OnStoreCreating(Action callback) +``` + + +--- + +#### OnStoreDeleted + +```csharp +public static void OnStoreDeleted(Action callback) +``` + + +--- + +#### OnStoreDeleting + +```csharp +public static void OnStoreDeleting(Action callback) +``` + + +--- + +#### OnStoreSaved + +```csharp +public static void OnStoreSaved(Action callback) +``` + + +--- + +#### OnStoreSaving + +```csharp +public static void OnStoreSaving(Action callback) +``` + + +--- + +#### OnStoreUpdated + +```csharp +public static void OnStoreUpdated(Action callback) +``` + + +--- + +#### OnStoreUpdating + +```csharp +public static void OnStoreUpdating(Action callback) +``` + + +--- + +#### OnTaxClassCreated + +```csharp +public static void OnTaxClassCreated(Action callback) +``` + + +--- + +#### OnTaxClassCreating + +```csharp +public static void OnTaxClassCreating(Action callback) +``` + + +--- + +#### OnTaxClassDeleted + +```csharp +public static void OnTaxClassDeleted(Action callback) +``` + + +--- + +#### OnTaxClassDeleting + +```csharp +public static void OnTaxClassDeleting(Action callback) +``` + + +--- + +#### OnTaxClassSaved + +```csharp +public static void OnTaxClassSaved(Action callback) +``` + + +--- + +#### OnTaxClassSaving + +```csharp +public static void OnTaxClassSaving(Action callback) +``` + + +--- + +#### OnTaxClassUpdated + +```csharp +public static void OnTaxClassUpdated(Action callback) +``` + + +--- + +#### OnTaxClassUpdating + +```csharp +public static void OnTaxClassUpdating(Action callback) +``` + + +--- + +#### OnUnitOfWorkCreated + +```csharp +public static void OnUnitOfWorkCreated(Action callback) +``` + + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-finders/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-finders/README.md new file mode 100644 index 00000000000..0bb16f43b8f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-finders/README.md @@ -0,0 +1,15 @@ +--- +title: Umbraco.Commerce.Core.Finders +description: API reference for Umbraco.Commerce.Core.Finders in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Finders namespace + +| Public Type | Description | +| --- | --- | +| abstract class [FinderResultBase<TModel>](finderresultbase-1.md) | | +| interface [IOrderFinder](iorderfinder.md) | | +| class [OrderFinderCollection](orderfindercollection.md) | | +| class [OrderFinderResult](orderfinderresult.md) | | +| class [StoreFinderResult](storefinderresult.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-finders/finderresultbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-finders/finderresultbase-1.md new file mode 100644 index 00000000000..fb6b4aab9a3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-finders/finderresultbase-1.md @@ -0,0 +1,32 @@ +--- +title: FinderResultBase +description: API reference for FinderResultBase in Umbraco Commerce +--- +## FinderResultBase<TModel> + +```csharp +public abstract class FinderResultBase +``` + +**Namespace** +* [Umbraco.Commerce.Core.Finders](README.md) + +### Properties + +#### Success + +```csharp +public bool Success { get; } +``` + + +--- + +#### Value + +```csharp +public TModel Value { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-finders/iorderfinder.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-finders/iorderfinder.md new file mode 100644 index 00000000000..055f99d3b62 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-finders/iorderfinder.md @@ -0,0 +1,23 @@ +--- +title: IOrderFinder +description: API reference for IOrderFinder in Umbraco Commerce +--- +## IOrderFinder + +```csharp +public interface IOrderFinder +``` + +**Namespace** +* [Umbraco.Commerce.Core.Finders](README.md) + +### Methods + +#### FindOrder + +```csharp +public OrderFinderResult FindOrder(Guid storeId, string customerReference) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-finders/orderfindercollection.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-finders/orderfindercollection.md new file mode 100644 index 00000000000..f178fd87d3d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-finders/orderfindercollection.md @@ -0,0 +1,27 @@ +--- +title: OrderFinderCollection +description: API reference for OrderFinderCollection in Umbraco Commerce +--- +## OrderFinderCollection + +```csharp +public class OrderFinderCollection : ComposedCollection +``` + +**Inheritance** + +* Class [ComposedCollection<!0>](../../umbraco-commerce-common/umbraco-commerce-common-composing/composedcollection-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Finders](README.md) + +### Constructors + +#### OrderFinderCollection + +```csharp +public OrderFinderCollection(Func> itemsFactory) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-finders/orderfinderresult.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-finders/orderfinderresult.md new file mode 100644 index 00000000000..f39c8d1370b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-finders/orderfinderresult.md @@ -0,0 +1,36 @@ +--- +title: OrderFinderResult +description: API reference for OrderFinderResult in Umbraco Commerce +--- +## OrderFinderResult + +```csharp +public class OrderFinderResult : FinderResultBase +``` + +**Inheritance** + +* Class [FinderResultBase<TModel>](finderresultbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Finders](README.md) + +### Methods + +#### Fail + +```csharp +public static OrderFinderResult Fail() +``` + + +--- + +#### Succeed + +```csharp +public static OrderFinderResult Succeed(OrderReadOnly order) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-finders/storefinderresult.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-finders/storefinderresult.md new file mode 100644 index 00000000000..9f280cee1dc --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-finders/storefinderresult.md @@ -0,0 +1,36 @@ +--- +title: StoreFinderResult +description: API reference for StoreFinderResult in Umbraco Commerce +--- +## StoreFinderResult + +```csharp +public class StoreFinderResult : FinderResultBase +``` + +**Inheritance** + +* Class [FinderResultBase<TModel>](finderresultbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Finders](README.md) + +### Methods + +#### Fail + +```csharp +public static StoreFinderResult Fail() +``` + + +--- + +#### Succeed + +```csharp +public static StoreFinderResult Succeed(StoreReadOnly store) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-generators/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-generators/README.md new file mode 100644 index 00000000000..57ab279b05b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-generators/README.md @@ -0,0 +1,14 @@ +--- +title: Umbraco.Commerce.Core.Generators +description: API reference for Umbraco.Commerce.Core.Generators in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Generators namespace + +| Public Type | Description | +| --- | --- | +| class [DateHashOrderNumberGenerator](datehashordernumbergenerator.md) | | +| class [DefaultGiftCardCodeGenerator](defaultgiftcardcodegenerator.md) | | +| interface [IGiftCardCodeGenerator](igiftcardcodegenerator.md) | | +| interface [IOrderNumberGenerator](iordernumbergenerator.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-generators/datehashordernumbergenerator.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-generators/datehashordernumbergenerator.md new file mode 100644 index 00000000000..4e3a098f351 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-generators/datehashordernumbergenerator.md @@ -0,0 +1,45 @@ +--- +title: DateHashOrderNumberGenerator +description: API reference for DateHashOrderNumberGenerator in Umbraco Commerce +--- +## DateHashOrderNumberGenerator + +```csharp +public class DateHashOrderNumberGenerator : IOrderNumberGenerator +``` + +**Inheritance** + +* interface [IOrderNumberGenerator](iordernumbergenerator.md) + +**Namespace** +* [Umbraco.Commerce.Core.Generators](README.md) + +### Constructors + +#### DateHashOrderNumberGenerator + +```csharp +public DateHashOrderNumberGenerator(IStoreService storeService) +``` + + +### Methods + +#### GenerateCartNumber + +```csharp +public string GenerateCartNumber(Guid storeId) +``` + + +--- + +#### GenerateOrderNumber + +```csharp +public string GenerateOrderNumber(Guid storeId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-generators/defaultgiftcardcodegenerator.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-generators/defaultgiftcardcodegenerator.md new file mode 100644 index 00000000000..a8ece5aa239 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-generators/defaultgiftcardcodegenerator.md @@ -0,0 +1,36 @@ +--- +title: DefaultGiftCardCodeGenerator +description: API reference for DefaultGiftCardCodeGenerator in Umbraco Commerce +--- +## DefaultGiftCardCodeGenerator + +```csharp +public class DefaultGiftCardCodeGenerator : IGiftCardCodeGenerator +``` + +**Inheritance** + +* interface [IGiftCardCodeGenerator](igiftcardcodegenerator.md) + +**Namespace** +* [Umbraco.Commerce.Core.Generators](README.md) + +### Constructors + +#### DefaultGiftCardCodeGenerator + +```csharp +public DefaultGiftCardCodeGenerator(IStoreService storeService) +``` + + +### Methods + +#### GenerateGiftCardCode + +```csharp +public string GenerateGiftCardCode(Guid storeId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-generators/igiftcardcodegenerator.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-generators/igiftcardcodegenerator.md new file mode 100644 index 00000000000..90f55c2c3e6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-generators/igiftcardcodegenerator.md @@ -0,0 +1,23 @@ +--- +title: IGiftCardCodeGenerator +description: API reference for IGiftCardCodeGenerator in Umbraco Commerce +--- +## IGiftCardCodeGenerator + +```csharp +public interface IGiftCardCodeGenerator +``` + +**Namespace** +* [Umbraco.Commerce.Core.Generators](README.md) + +### Methods + +#### GenerateGiftCardCode + +```csharp +public string GenerateGiftCardCode(Guid storeId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-generators/iordernumbergenerator.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-generators/iordernumbergenerator.md new file mode 100644 index 00000000000..1ea4e06efac --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-generators/iordernumbergenerator.md @@ -0,0 +1,32 @@ +--- +title: IOrderNumberGenerator +description: API reference for IOrderNumberGenerator in Umbraco Commerce +--- +## IOrderNumberGenerator + +```csharp +public interface IOrderNumberGenerator +``` + +**Namespace** +* [Umbraco.Commerce.Core.Generators](README.md) + +### Methods + +#### GenerateCartNumber + +```csharp +public string GenerateCartNumber(Guid storeId) +``` + + +--- + +#### GenerateOrderNumber + +```csharp +public string GenerateOrderNumber(Guid storeId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-json/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-json/README.md new file mode 100644 index 00000000000..044d2bbf9b0 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-json/README.md @@ -0,0 +1,12 @@ +--- +title: Umbraco.Commerce.Core.Json +description: API reference for Umbraco.Commerce.Core.Json in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Json namespace + +| Public Type | Description | +| --- | --- | +| class [UmbracoCommerceAdjustmentContractResolver](umbracocommerceadjustmentcontractresolver.md) | | +| class [UmbracoCommerceSettingContractResolver](umbracocommercesettingcontractresolver.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-json/umbracocommerceadjustmentcontractresolver.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-json/umbracocommerceadjustmentcontractresolver.md new file mode 100644 index 00000000000..c0445adbfa0 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-json/umbracocommerceadjustmentcontractresolver.md @@ -0,0 +1,41 @@ +--- +title: UmbracoCommerceAdjustmentContractResolver +description: API reference for UmbracoCommerceAdjustmentContractResolver in Umbraco Commerce +--- +## UmbracoCommerceAdjustmentContractResolver + +```csharp +public class UmbracoCommerceAdjustmentContractResolver : DefaultContractResolver +``` + +**Namespace** +* [Umbraco.Commerce.Core.Json](README.md) + +### Constructors + +#### UmbracoCommerceAdjustmentContractResolver + +```csharp +public UmbracoCommerceAdjustmentContractResolver(Type baseType) +``` + + +### Methods + +#### Create + +```csharp +public static UmbracoCommerceAdjustmentContractResolver Create(Type baseType) +``` + + +--- + +#### Create<T> + +```csharp +public static UmbracoCommerceAdjustmentContractResolver Create() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-json/umbracocommercesettingcontractresolver.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-json/umbracocommercesettingcontractresolver.md new file mode 100644 index 00000000000..26694a03374 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-json/umbracocommercesettingcontractresolver.md @@ -0,0 +1,34 @@ +--- +title: UmbracoCommerceSettingContractResolver +description: API reference for UmbracoCommerceSettingContractResolver in Umbraco Commerce +--- +## UmbracoCommerceSettingContractResolver + +```csharp +public class UmbracoCommerceSettingContractResolver : DefaultContractResolver +``` + +**Namespace** +* [Umbraco.Commerce.Core.Json](README.md) + +### Constructors + +#### UmbracoCommerceSettingContractResolver + +The default constructor. + +```csharp +public UmbracoCommerceSettingContractResolver() +``` + + +### Fields + +#### Instance + +```csharp +public static readonly UmbracoCommerceSettingContractResolver Instance; +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-mail/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-mail/README.md new file mode 100644 index 00000000000..dfb075e7ab8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-mail/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Core.Mail +description: API reference for Umbraco.Commerce.Core.Mail in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Mail namespace + +| Public Type | Description | +| --- | --- | +| interface [IEmailSender](iemailsender.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-mail/iemailsender.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-mail/iemailsender.md new file mode 100644 index 00000000000..90d1ebad6a4 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-mail/iemailsender.md @@ -0,0 +1,23 @@ +--- +title: IEmailSender +description: API reference for IEmailSender in Umbraco Commerce +--- +## IEmailSender + +```csharp +public interface IEmailSender +``` + +**Namespace** +* [Umbraco.Commerce.Core.Mail](README.md) + +### Methods + +#### SendAsync + +```csharp +public Task SendAsync(MailMessage message) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models-reporting/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models-reporting/README.md new file mode 100644 index 00000000000..7d67c549713 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models-reporting/README.md @@ -0,0 +1,20 @@ +--- +title: Umbraco.Commerce.Core.Models.Reporting +description: API reference for Umbraco.Commerce.Core.Models.Reporting in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Models.Reporting namespace + +| Public Type | Description | +| --- | --- | +| class [CartConversionRateData](cartconversionratedata.md) | | +| class [CartConversionRatesReportData](cartconversionratesreportdata.md) | | +| class [CartTotals](carttotals.md) | | +| class [DateRecord<TValue>](daterecord-1.md) | | +| class [DateReportData<TValue>](datereportdata-1.md) | | +| class [ProductData](productdata.md) | | +| class [ProductSalesData](productsalesdata.md) | | +| class [ProductSalesReportData](productsalesreportdata.md) | | +| class [RepeatCustomerRates](repeatcustomerrates.md) | | +| class [RepeatCustomerRatesReportData](repeatcustomerratesreportdata.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models-reporting/cartconversionratedata.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models-reporting/cartconversionratedata.md new file mode 100644 index 00000000000..f415e809c39 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models-reporting/cartconversionratedata.md @@ -0,0 +1,79 @@ +--- +title: CartConversionRateData +description: API reference for CartConversionRateData in Umbraco Commerce +--- +## CartConversionRateData + +```csharp +public class CartConversionRateData +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models.Reporting](README.md) + +### Constructors + +#### CartConversionRateData + +The default constructor. + +```csharp +public CartConversionRateData() +``` + + +### Properties + +#### CurrentCarts + +```csharp +public long CurrentCarts { get; set; } +``` + + +--- + +#### CurrentPercentageOfTotalCarts + +```csharp +public decimal CurrentPercentageOfTotalCarts { get; set; } +``` + + +--- + +#### PercentageChange + +```csharp +public decimal? PercentageChange { get; set; } +``` + + +--- + +#### PercentagePointChange + +```csharp +public decimal? PercentagePointChange { get; set; } +``` + + +--- + +#### PreviousCarts + +```csharp +public long? PreviousCarts { get; set; } +``` + + +--- + +#### PreviousPercentageOfTotalCarts + +```csharp +public decimal? PreviousPercentageOfTotalCarts { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models-reporting/cartconversionratesreportdata.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models-reporting/cartconversionratesreportdata.md new file mode 100644 index 00000000000..2042e4e322f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models-reporting/cartconversionratesreportdata.md @@ -0,0 +1,61 @@ +--- +title: CartConversionRatesReportData +description: API reference for CartConversionRatesReportData in Umbraco Commerce +--- +## CartConversionRatesReportData + +```csharp +public class CartConversionRatesReportData +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models.Reporting](README.md) + +### Constructors + +#### CartConversionRatesReportData + +The default constructor. + +```csharp +public CartConversionRatesReportData() +``` + + +### Properties + +#### CurrentTotalCarts + +```csharp +public long CurrentTotalCarts { get; set; } +``` + + +--- + +#### PreviousTotalCarts + +```csharp +public long? PreviousTotalCarts { get; set; } +``` + + +--- + +#### TotalCartsFinalized + +```csharp +public CartConversionRateData TotalCartsFinalized { get; set; } +``` + + +--- + +#### TotalCartsReachedCheckout + +```csharp +public CartConversionRateData TotalCartsReachedCheckout { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models-reporting/carttotals.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models-reporting/carttotals.md new file mode 100644 index 00000000000..24b2a6a131d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models-reporting/carttotals.md @@ -0,0 +1,52 @@ +--- +title: CartTotals +description: API reference for CartTotals in Umbraco Commerce +--- +## CartTotals + +```csharp +public class CartTotals +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models.Reporting](README.md) + +### Constructors + +#### CartTotals + +The default constructor. + +```csharp +public CartTotals() +``` + + +### Properties + +#### TotalCarts + +```csharp +public long TotalCarts { get; set; } +``` + + +--- + +#### TotalCartsFinalized + +```csharp +public long TotalCartsFinalized { get; set; } +``` + + +--- + +#### TotalCartsReachedCheckout + +```csharp +public long TotalCartsReachedCheckout { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models-reporting/daterecord-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models-reporting/daterecord-1.md new file mode 100644 index 00000000000..e8869625131 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models-reporting/daterecord-1.md @@ -0,0 +1,43 @@ +--- +title: DateRecord +description: API reference for DateRecord in Umbraco Commerce +--- +## DateRecord<TValue> + +```csharp +public class DateRecord +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models.Reporting](README.md) + +### Constructors + +#### DateRecord<TValue> + +The default constructor. + +```csharp +public DateRecord() +``` + + +### Properties + +#### Date + +```csharp +public DateTime Date { get; set; } +``` + + +--- + +#### Value + +```csharp +public TValue Value { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models-reporting/datereportdata-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models-reporting/datereportdata-1.md new file mode 100644 index 00000000000..1aa3c208104 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models-reporting/datereportdata-1.md @@ -0,0 +1,70 @@ +--- +title: DateReportData +description: API reference for DateReportData in Umbraco Commerce +--- +## DateReportData<TValue> + +```csharp +public class DateReportData +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models.Reporting](README.md) + +### Constructors + +#### DateReportData<TValue> + +The default constructor. + +```csharp +public DateReportData() +``` + + +### Properties + +#### CurrentTotalsOverTime + +```csharp +public IEnumerable> CurrentTotalsOverTime { get; set; } +``` + + +--- + +#### PercentageChange + +```csharp +public decimal? PercentageChange { get; set; } +``` + + +--- + +#### PercentagePointChange + +```csharp +public decimal? PercentagePointChange { get; set; } +``` + + +--- + +#### PreviousTotalsOverTime + +```csharp +public IEnumerable> PreviousTotalsOverTime { get; set; } +``` + + +--- + +#### Total + +```csharp +public TValue Total { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models-reporting/productdata.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models-reporting/productdata.md new file mode 100644 index 00000000000..4ee07d34f27 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models-reporting/productdata.md @@ -0,0 +1,70 @@ +--- +title: ProductData +description: API reference for ProductData in Umbraco Commerce +--- +## ProductData + +```csharp +public class ProductData +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models.Reporting](README.md) + +### Constructors + +#### ProductData + +The default constructor. + +```csharp +public ProductData() +``` + + +### Properties + +#### Name + +```csharp +public string Name { get; set; } +``` + + +--- + +#### ProductReference + +```csharp +public string ProductReference { get; set; } +``` + + +--- + +#### ProductVariantReference + +```csharp +public string ProductVariantReference { get; set; } +``` + + +--- + +#### Sku + +```csharp +public string Sku { get; set; } +``` + + +--- + +#### StoreId + +```csharp +public Guid StoreId { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models-reporting/productsalesdata.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models-reporting/productsalesdata.md new file mode 100644 index 00000000000..ef42c3ea0eb --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models-reporting/productsalesdata.md @@ -0,0 +1,47 @@ +--- +title: ProductSalesData +description: API reference for ProductSalesData in Umbraco Commerce +--- +## ProductSalesData + +```csharp +public class ProductSalesData : ProductData +``` + +**Inheritance** + +* Class [ProductData](productdata.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models.Reporting](README.md) + +### Constructors + +#### ProductSalesData + +The default constructor. + +```csharp +public ProductSalesData() +``` + + +### Properties + +#### PercentageChange + +```csharp +public decimal? PercentageChange { get; set; } +``` + + +--- + +#### TotalQuantity + +```csharp +public decimal TotalQuantity { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models-reporting/productsalesreportdata.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models-reporting/productsalesreportdata.md new file mode 100644 index 00000000000..4ec16f619bc --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models-reporting/productsalesreportdata.md @@ -0,0 +1,34 @@ +--- +title: ProductSalesReportData +description: API reference for ProductSalesReportData in Umbraco Commerce +--- +## ProductSalesReportData + +```csharp +public class ProductSalesReportData +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models.Reporting](README.md) + +### Constructors + +#### ProductSalesReportData + +The default constructor. + +```csharp +public ProductSalesReportData() +``` + + +### Properties + +#### Products + +```csharp +public IEnumerable Products { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models-reporting/repeatcustomerrates.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models-reporting/repeatcustomerrates.md new file mode 100644 index 00000000000..ef468715ce2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models-reporting/repeatcustomerrates.md @@ -0,0 +1,43 @@ +--- +title: RepeatCustomerRates +description: API reference for RepeatCustomerRates in Umbraco Commerce +--- +## RepeatCustomerRates + +```csharp +public class RepeatCustomerRates +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models.Reporting](README.md) + +### Constructors + +#### RepeatCustomerRates + +The default constructor. + +```csharp +public RepeatCustomerRates() +``` + + +### Properties + +#### RepeatCustomers + +```csharp +public long RepeatCustomers { get; set; } +``` + + +--- + +#### TotalCustomers + +```csharp +public long TotalCustomers { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models-reporting/repeatcustomerratesreportdata.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models-reporting/repeatcustomerratesreportdata.md new file mode 100644 index 00000000000..295d6ae0cbb --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models-reporting/repeatcustomerratesreportdata.md @@ -0,0 +1,61 @@ +--- +title: RepeatCustomerRatesReportData +description: API reference for RepeatCustomerRatesReportData in Umbraco Commerce +--- +## RepeatCustomerRatesReportData + +```csharp +public class RepeatCustomerRatesReportData +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models.Reporting](README.md) + +### Constructors + +#### RepeatCustomerRatesReportData + +The default constructor. + +```csharp +public RepeatCustomerRatesReportData() +``` + + +### Properties + +#### PercentageChange + +```csharp +public decimal? PercentageChange { get; set; } +``` + + +--- + +#### PercentagePointChange + +```csharp +public decimal? PercentagePointChange { get; set; } +``` + + +--- + +#### RepeatCustomerRate + +```csharp +public decimal RepeatCustomerRate { get; set; } +``` + + +--- + +#### RepeatCustomerRatesOverTime + +```csharp +public IEnumerable> RepeatCustomerRatesOverTime { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/README.md new file mode 100644 index 00000000000..94b02c0911a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/README.md @@ -0,0 +1,184 @@ +--- +title: Umbraco.Commerce.Core.Models +description: API reference for Umbraco.Commerce.Core.Models in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Models namespace + +| Public Type | Description | +| --- | --- | +| class [ActivityLogEntry](activitylogentry.md) | | +| class [AdjustedAmount](adjustedamount.md) | | +| class [AdjustedPrice](adjustedprice.md) | | +| enum [AdjustmentType](adjustmenttype.md) | | +| abstract class [AggregateBase<TReadOnlySelf,TWritableSelf,TState>](aggregatebase-3.md) | The base class of an aggregate entity | +| abstract class [AggregateStateBase](aggregatestatebase.md) | | +| abstract class [AliasNamePair](aliasnamepair.md) | Represents an Alias + Name combination | +| class [AllowedCountry](allowedcountry.md) | | +| class [AllowedCountryRegion](allowedcountryregion.md) | | +| class [AllowedProductAttribute](allowedproductattribute.md) | | +| class [AllowedUser](alloweduser.md) | | +| class [AllowedUserRole](alloweduserrole.md) | | +| class [Amount](amount.md) | An amount object | +| abstract class [AmountAdjustment<TSelf>](amountadjustment-1.md) | | +| abstract class [AmountAdjustment](amountadjustment.md) | | +| class [AppliedDiscountCode](applieddiscountcode.md) | | +| class [AppliedGiftCard](appliedgiftcard.md) | | +| class [Attribute](attribute.md) | | +| class [AttributeCombination](attributecombination.md) | | +| class [AttributeName](attributename.md) | | +| class [AttributeValue](attributevalue.md) | | +| class [BundledOrderLineReadOnly](bundledorderlinereadonly.md) | | +| class [BundleOrderLineReadOnly](bundleorderlinereadonly.md) | | +| class [Country](country.md) | | +| class [CountryReadOnly](countryreadonly.md) | | +| class [CountryRegionTaxRate](countryregiontaxrate.md) | | +| class [Currency](currency.md) | | +| class [CurrencyFormatter](currencyformatter.md) | | +| class [CurrencyReadOnly](currencyreadonly.md) | | +| class [Discount](discount.md) | | +| class [DiscountAdjustment](discountadjustment.md) | | +| class [DiscountCode](discountcode.md) | | +| class [DiscountReadOnly](discountreadonly.md) | | +| class [DiscountRewardConfig](discountrewardconfig.md) | | +| class [DiscountRuleConfig](discountruleconfig.md) | | +| enum [DiscountStatus](discountstatus.md) | | +| enum [DiscountType](discounttype.md) | | +| class [EmailContext](emailcontext.md) | | +| class [EmailTemplate](emailtemplate.md) | | +| class [EmailTemplateReadOnly](emailtemplatereadonly.md) | | +| abstract class [EntityBase<TState>](entitybase-1.md) | Base class for an entity | +| abstract class [EntityBase](entitybase.md) | Base class for an entity | +| class [EntityCacheIntegrityCheckOptions](entitycacheintegritycheckoptions.md) | | +| class [EntityCacheIntegrityCheckResult](entitycacheintegritycheckresult.md) | | +| class [EntityCacheIntegrityCheckResultEntry](entitycacheintegritycheckresultentry.md) | | +| abstract class [EntityStateBase](entitystatebase.md) | | +| enum [ExportStrategy](exportstrategy.md) | | +| class [ExportTemplate](exporttemplate.md) | | +| class [ExportTemplateReadOnly](exporttemplatereadonly.md) | | +| class [FormattedAmount](formattedamount.md) | An amount formatted for the given amount [`Currency`](umbraco-commerce-core-models/currency.md) | +| class [FormattedPrice](formattedprice.md) | A price formatted for the given prices [`Currency`](umbraco-commerce-core-models/currency.md) | +| class [FormattedValue<TValue>](formattedvalue-1.md) | | +| class [FreezablePrice](freezableprice.md) | | +| class [FrozenPrice](frozenprice.md) | | +| class [FulfilledDiscount](fulfilleddiscount.md) | | +| class [GiftCard](giftcard.md) | | +| enum [GiftCardActivationMethod](giftcardactivationmethod.md) | | +| class [GiftCardAdjustment](giftcardadjustment.md) | | +| class [GiftCardReadOnly](giftcardreadonly.md) | | +| enum [GiftCardStatus](giftcardstatus.md) | | +| interface [IAmount](iamount.md) | | +| interface [IHasAlias](ihasalias.md) | | +| interface [IHasCode](ihascode.md) | | +| interface [IHasName](ihasname.md) | | +| interface [IHasReadableAllowedCountries](ihasreadableallowedcountries.md) | | +| interface [IHasReadableAllowedCountryRegions](ihasreadableallowedcountryregions.md) | | +| interface [IHasReadableOrderLines<T>](ihasreadableorderlines-1.md) | | +| interface [IHasReadableOrderLines](ihasreadableorderlines.md) | | +| interface [IHasReadableProperties](ihasreadableproperties.md) | | +| interface [IHasReadableServicePrices](ihasreadableserviceprices.md) | | +| interface [IHasSortOrder](ihassortorder.md) | | +| interface [IHasStore](ihasstore.md) | | +| interface [IHasWritableServicePrices<TAggregate>](ihaswritableserviceprices-1.md) | | +| interface [IHasWrtiableAllowedCountries<TAggregate>](ihaswrtiableallowedcountries-1.md) | | +| interface [IHasWrtiableAllowedCountryRegions<TAggregate>](ihaswrtiableallowedcountryregions-1.md) | | +| class [InUseProductAttribute](inuseproductattribute.md) | | +| class [InUseProductAttributeValue](inuseproductattributevalue.md) | | +| interface [IPrice](iprice.md) | | +| interface [IProductSnapshot](iproductsnapshot.md) | | +| interface [IProductSummary](iproductsummary.md) | | +| interface [IProductSummaryCommon](iproductsummarycommon.md) | | +| interface [IProductVariantSummary](iproductvariantsummary.md) | | +| class [Iso3166Country](iso3166country.md) | | +| class [Iso3166CountryRegion](iso3166countryregion.md) | | +| static class [Iso4217](iso4217.md) | | +| interface [ISoftDeletable](isoftdeletable.md) | | +| interface [ISortable](isortable.md) | | +| interface [ITaggableReadOnlyEntity](itaggablereadonlyentity.md) | | +| interface [ITaggableWritableEntity<TEntity>](itaggablewritableentity-1.md) | | +| class [LazyProperty](lazyproperty.md) | | +| enum [MatchType](matchtype.md) | | +| class [Order](order.md) | A writable Order entity | +| class [OrderCalculation](ordercalculation.md) | | +| class [OrderCustomerInfo](ordercustomerinfo.md) | The customer information for an order | +| class [OrderExchangeRateLookup](orderexchangeratelookup.md) | | +| class [OrderLineBasePrice](orderlinebaseprice.md) | | +| class [OrderLineCalculation](orderlinecalculation.md) | | +| enum [OrderLinePriceType](orderlinepricetype.md) | | +| class [OrderLineReadOnly](orderlinereadonly.md) | A read only Order Line entity | +| enum [OrderLineSource](orderlinesource.md) | | +| class [OrderLineTotalPrice](orderlinetotalprice.md) | | +| class [OrderLineUnitPrice](orderlineunitprice.md) | | +| class [OrderPaymentInfo](orderpaymentinfo.md) | The payment information for an order | +| enum [OrderPriceType](orderpricetype.md) | | +| class [OrderReadOnly](orderreadonly.md) | A read only Order entity | +| class [OrderReference](orderreference.md) | | +| enum [OrderRoundingMethod](orderroundingmethod.md) | | +| class [OrderShippingInfo](ordershippinginfo.md) | The shipping information for an order | +| class [OrderStatus](orderstatus.md) | | +| enum [OrderStatusCode](orderstatuscode.md) | | +| class [OrderStatusReadOnly](orderstatusreadonly.md) | | +| class [OrderSubtotalPrice](ordersubtotalprice.md) | | +| class [OrderTotalPrice](ordertotalprice.md) | | +| class [OrderTransactionAmount](ordertransactionamount.md) | | +| class [OrderTransactionInfo](ordertransactioninfo.md) | The transaction information for an order | +| class [PaymentMethod](paymentmethod.md) | | +| class [PaymentMethodReadOnly](paymentmethodreadonly.md) | | +| class [PaymentResult](paymentresult.md) | | +| class [PaymentResultTransactionInfo](paymentresulttransactioninfo.md) | | +| enum [PaymentStatus](paymentstatus.md) | | +| class [Price](price.md) | A price object | +| abstract class [PriceAdjustment<TSelf>](priceadjustment-1.md) | | +| abstract class [PriceAdjustment](priceadjustment.md) | | +| enum [PriceAmountType](priceamounttype.md) | | +| class [PrintTemplate](printtemplate.md) | | +| class [PrintTemplateReadOnly](printtemplatereadonly.md) | | +| class [ProductAttribute](productattribute.md) | A Product Attribute entity | +| class [ProductAttributePreset](productattributepreset.md) | | +| class [ProductAttributePresetReadOnly](productattributepresetreadonly.md) | A read only Product Attribute Preset entity | +| class [ProductAttributeReadOnly](productattributereadonly.md) | A read only Product Attribute entity | +| class [ProductAttributeValueReadOnly](productattributevaluereadonly.md) | | +| class [ProductPrice](productprice.md) | | +| abstract class [ProductSnapshotBase](productsnapshotbase.md) | | +| abstract class [ProductSummaryBase](productsummarybase.md) | | +| abstract class [ProductSummaryCommonBase](productsummarycommonbase.md) | | +| abstract class [ProductVariantSummaryBase](productvariantsummarybase.md) | | +| class [Property](property.md) | | +| enum [PropertySource](propertysource.md) | | +| class [PropertyValue](propertyvalue.md) | | +| class [ReadOnlyAdjustedAmount](readonlyadjustedamount.md) | | +| class [ReadOnlyAdjustedPrice](readonlyadjustedprice.md) | | +| class [ReadOnlyOrderLineBasePrice](readonlyorderlinebaseprice.md) | | +| class [ReadOnlyOrderLineTotalPrice](readonlyorderlinetotalprice.md) | | +| class [ReadOnlyOrderLineUnitPrice](readonlyorderlineunitprice.md) | | +| class [ReadOnlyOrderSubtotalPrice](readonlyordersubtotalprice.md) | | +| class [ReadOnlyOrderTotalPrice](readonlyordertotalprice.md) | | +| class [ReadOnlyOrderTransactionAmount](readonlyordertransactionamount.md) | | +| class [ReadOnlyTotalPrice](readonlytotalprice.md) | | +| class [ReadOnlyTotalPriceWithPreviousAdjustment](readonlytotalpricewithpreviousadjustment.md) | | +| class [ReadOnlyTranslatedValue<T>](readonlytranslatedvalue-1.md) | | +| class [Region](region.md) | | +| class [RegionReadOnly](regionreadonly.md) | | +| class [RegisteredCustomerInfo](registeredcustomerinfo.md) | | +| class [RegisteredCustomerInfoBuilder](registeredcustomerinfobuilder.md) | | +| class [ServicePrice](serviceprice.md) | | +| enum [SetBehavior](setbehavior.md) | | +| class [ShippingMethod](shippingmethod.md) | | +| class [ShippingMethodReadOnly](shippingmethodreadonly.md) | | +| class [Store](store.md) | | +| abstract class [StoreAggregateBase<TReadOnlySelf,TWritableSelf,TState>](storeaggregatebase-3.md) | The base class of [`Store`](umbraco-commerce-core-models/store.md) based aggregate entity | +| abstract class [StoreAggregateStateBase](storeaggregatestatebase.md) | | +| abstract class [StoreEntityStateBase](storeentitystatebase.md) | | +| class [StoreReadOnly](storereadonly.md) | | +| class [StoreStats](storestats.md) | | +| class [StoreSummary](storesummary.md) | | +| class [TaxClass](taxclass.md) | | +| class [TaxClassReadOnly](taxclassreadonly.md) | | +| class [TaxRate](taxrate.md) | | +| class [TaxSource](taxsource.md) | | +| enum [TemplateCategory](templatecategory.md) | | +| class [TotalPrice](totalprice.md) | | +| class [TotalPriceWithPreviousAdjustment](totalpricewithpreviousadjustment.md) | | +| class [TranslatedValue<T>](translatedvalue-1.md) | | +| abstract class [UmbracoCommerceSettingDefinition](umbracocommercesettingdefinition.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/activitylogentry.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/activitylogentry.md new file mode 100644 index 00000000000..509e5e4c118 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/activitylogentry.md @@ -0,0 +1,99 @@ +--- +title: ActivityLogEntry +description: API reference for ActivityLogEntry in Umbraco Commerce +--- +## ActivityLogEntry + +```csharp +public class ActivityLogEntry : ValueObjectBase +``` + +**Inheritance** + +* Class [ValueObjectBase](../../umbraco-commerce-common/umbraco-commerce-common-models/valueobjectbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### EntityId + +```csharp +public Guid EntityId { get; } +``` + + +--- + +#### EntitySummary + +```csharp +public string EntitySummary { get; } +``` + + +--- + +#### EntityType + +```csharp +public string EntityType { get; } +``` + + +--- + +#### EventDateUtc + +```csharp +public DateTime EventDateUtc { get; } +``` + + +--- + +#### EventSummary + +```csharp +public string EventSummary { get; } +``` + + +--- + +#### EventType + +```csharp +public string EventType { get; } +``` + + +--- + +#### StoreId + +```csharp +public Guid StoreId { get; } +``` + + +--- + +#### UserId + +```csharp +public int UserId { get; } +``` + + +### Methods + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/adjustedamount.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/adjustedamount.md new file mode 100644 index 00000000000..09da25f10c5 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/adjustedamount.md @@ -0,0 +1,116 @@ +--- +title: AdjustedAmount +description: API reference for AdjustedAmount in Umbraco Commerce +--- +## AdjustedAmount + +```csharp +public class AdjustedAmount : IDeepCloneable +``` + +**Inheritance** + +* interface [IDeepCloneable](../../umbraco-commerce-common/umbraco-commerce-common/ideepcloneable.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Adjustment + +```csharp +public virtual Amount Adjustment { get; set; } +``` + + +--- + +#### Adjustments + +```csharp +public virtual List Adjustments { get; } +``` + + +--- + +#### Value + +```csharp +public virtual Amount Value { get; set; } +``` + + +--- + +#### WithoutAdjustments + +```csharp +public virtual Amount WithoutAdjustments { get; set; } +``` + + +### Methods + +#### ZeroValue + +```csharp +public static AdjustedAmount ZeroValue(Guid currencyId) +``` + + +--- + +#### AsReadOnly + +```csharp +public virtual ReadOnlyAdjustedAmount AsReadOnly() +``` + + +--- + +#### DeepClone + +```csharp +public virtual object DeepClone() +``` + + +--- + +#### GetHashCode + +```csharp +public override int GetHashCode() +``` + + +--- + +#### ToString + +```csharp +public override string ToString() +``` + + +### Operators + +#### AdjustedAmount Implicit (1 of 2) + +```csharp +public static implicit operator Amount(AdjustedAmount adjustedAmount) +``` + +--- + +#### AdjustedAmount Implicit (2 of 2) + +```csharp +public static implicit operator decimal(AdjustedAmount adjustedAmount) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/adjustedprice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/adjustedprice.md new file mode 100644 index 00000000000..642cdfc0640 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/adjustedprice.md @@ -0,0 +1,116 @@ +--- +title: AdjustedPrice +description: API reference for AdjustedPrice in Umbraco Commerce +--- +## AdjustedPrice + +```csharp +public class AdjustedPrice : IDeepCloneable +``` + +**Inheritance** + +* interface [IDeepCloneable](../../umbraco-commerce-common/umbraco-commerce-common/ideepcloneable.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Adjustment + +```csharp +public virtual Price Adjustment { get; set; } +``` + + +--- + +#### Adjustments + +```csharp +public virtual List Adjustments { get; } +``` + + +--- + +#### Value + +```csharp +public virtual Price Value { get; set; } +``` + + +--- + +#### WithoutAdjustments + +```csharp +public virtual Price WithoutAdjustments { get; set; } +``` + + +### Methods + +#### ZeroValue + +```csharp +public static AdjustedPrice ZeroValue(Guid currencyId) +``` + + +--- + +#### AsReadOnly + +```csharp +public virtual ReadOnlyAdjustedPrice AsReadOnly() +``` + + +--- + +#### DeepClone + +```csharp +public virtual object DeepClone() +``` + + +--- + +#### GetHashCode + +```csharp +public override int GetHashCode() +``` + + +--- + +#### ToString + +```csharp +public override string ToString() +``` + + +### Operators + +#### AdjustedPrice Implicit (1 of 2) + +```csharp +public static implicit operator Price(AdjustedPrice adjustedPrice) +``` + +--- + +#### AdjustedPrice Implicit (2 of 2) + +```csharp +public static implicit operator decimal(AdjustedPrice adjustedPrice) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/adjustmenttype.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/adjustmenttype.md new file mode 100644 index 00000000000..991fd9ea180 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/adjustmenttype.md @@ -0,0 +1,21 @@ +--- +title: AdjustmentType +description: API reference for AdjustmentType in Umbraco Commerce +--- +## AdjustmentType + +```csharp +public enum AdjustmentType +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +**Values** + +| Name | Value | Description | +| --- | --- | --- | +| Amount | `0` | | +| Percentage | `1` | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/aggregatebase-3.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/aggregatebase-3.md new file mode 100644 index 00000000000..cc4cf98e459 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/aggregatebase-3.md @@ -0,0 +1,78 @@ +--- +title: AggregateBase +description: API reference for AggregateBase in Umbraco Commerce +--- +## AggregateBase<TReadOnlySelf,TWritableSelf,TState> + +The base class of an aggregate entity + +```csharp +public abstract class AggregateBase : EntityBase + where TReadOnlySelf : AggregateBase + where TWritableSelf : TReadOnlySelf + where TState : AggregateStateBase +``` + +**Inheritance** + +* Class [EntityBase<TState>](entitybase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +**Parameters** + +| Parameter | Description | +| --- | --- | +| TReadOnlySelf | The Type of the read only aggregate entity | +| TWritableSelf | The Type of the writable aggregate entity | +| TState | The Type of the shared state of the aggregate entities | + +### Properties + +#### IsNew + +Gets a boolean flag to indicate whether the entity is new and therefore has not yet been persisted to the database + +```csharp +public bool IsNew { get; } +``` + + +### Methods + +#### AsReadOnly + +Converts the entity into it's read only counterpart + +```csharp +public virtual TReadOnlySelf AsReadOnly() +``` + +**Returns** + +The read only entity + + +--- + +#### AsWritable + +Converts the entity into it's writable counterpart + +```csharp +public virtual TWritableSelf AsWritable(IUnitOfWork uow) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| uow | An active IUnitOfWork to use for write operations | + +**Returns** + +The writable entity + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/aggregatestatebase.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/aggregatestatebase.md new file mode 100644 index 00000000000..7f4ca7e5c9f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/aggregatestatebase.md @@ -0,0 +1,27 @@ +--- +title: AggregateStateBase +description: API reference for AggregateStateBase in Umbraco Commerce +--- +## AggregateStateBase + +```csharp +public abstract class AggregateStateBase : EntityStateBase +``` + +**Inheritance** + +* Class [EntityStateBase](entitystatebase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### IsNew + +```csharp +public bool IsNew { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/aliasnamepair.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/aliasnamepair.md new file mode 100644 index 00000000000..b1e0fe0f5d8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/aliasnamepair.md @@ -0,0 +1,70 @@ +--- +title: AliasNamePair +description: API reference for AliasNamePair in Umbraco Commerce +--- +## AliasNamePair + +Represents an Alias + Name combination + +```csharp +public abstract class AliasNamePair : ValueObjectBase +``` + +**Inheritance** + +* Class [ValueObjectBase](../../umbraco-commerce-common/umbraco-commerce-common-models/valueobjectbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Alias + +Gets the alias + +```csharp +public string Alias { get; set; } +``` + + +--- + +#### Name + +Gets the name + +```csharp +public string Name { get; set; } +``` + + +### Methods + +#### ToString + +Converts the alias name pair to a string + +```csharp +public override string ToString() +``` + + +### Operators + +#### AliasNamePair Implicit + +Explicit string conversion operator + +```csharp +public static implicit operator string(AliasNamePair anp) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| anp | The alias name pair to convert | + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/allowedcountry.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/allowedcountry.md new file mode 100644 index 00000000000..fc4e29beb48 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/allowedcountry.md @@ -0,0 +1,45 @@ +--- +title: AllowedCountry +description: API reference for AllowedCountry in Umbraco Commerce +--- +## AllowedCountry + +```csharp +public class AllowedCountry : ValueObjectBase +``` + +**Inheritance** + +* Class [ValueObjectBase](../../umbraco-commerce-common/umbraco-commerce-common-models/valueobjectbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### AllowedCountry + +```csharp +public AllowedCountry(Guid countryId) +``` + + +### Properties + +#### CountryId + +```csharp +public Guid CountryId { get; } +``` + + +### Methods + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/allowedcountryregion.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/allowedcountryregion.md new file mode 100644 index 00000000000..30ea50abb3e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/allowedcountryregion.md @@ -0,0 +1,54 @@ +--- +title: AllowedCountryRegion +description: API reference for AllowedCountryRegion in Umbraco Commerce +--- +## AllowedCountryRegion + +```csharp +public class AllowedCountryRegion : ValueObjectBase +``` + +**Inheritance** + +* Class [ValueObjectBase](../../umbraco-commerce-common/umbraco-commerce-common-models/valueobjectbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### AllowedCountryRegion + +```csharp +public AllowedCountryRegion(Guid countryId, Guid? regionId) +``` + + +### Properties + +#### CountryId + +```csharp +public Guid CountryId { get; } +``` + + +--- + +#### RegionId + +```csharp +public Guid? RegionId { get; } +``` + + +### Methods + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/allowedproductattribute.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/allowedproductattribute.md new file mode 100644 index 00000000000..3ef6e2980d4 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/allowedproductattribute.md @@ -0,0 +1,63 @@ +--- +title: AllowedProductAttribute +description: API reference for AllowedProductAttribute in Umbraco Commerce +--- +## AllowedProductAttribute + +```csharp +public class AllowedProductAttribute : ValueObjectBase +``` + +**Inheritance** + +* Class [ValueObjectBase](../../umbraco-commerce-common/umbraco-commerce-common-models/valueobjectbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### AllowedProductAttribute (1 of 2) + +```csharp +public AllowedProductAttribute(string productAttributeAlias) +``` + +--- + +#### AllowedProductAttribute (2 of 2) + +```csharp +public AllowedProductAttribute(string productAttributeAlias, + IEnumerable allowedValueAliases) +``` + + +### Properties + +#### AllowedValueAliases + +```csharp +public IEnumerable AllowedValueAliases { get; } +``` + + +--- + +#### ProductAttributeAlias + +```csharp +public string ProductAttributeAlias { get; } +``` + + +### Methods + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/alloweduser.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/alloweduser.md new file mode 100644 index 00000000000..1dced080a1f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/alloweduser.md @@ -0,0 +1,45 @@ +--- +title: AllowedUser +description: API reference for AllowedUser in Umbraco Commerce +--- +## AllowedUser + +```csharp +public class AllowedUser : ValueObjectBase +``` + +**Inheritance** + +* Class [ValueObjectBase](../../umbraco-commerce-common/umbraco-commerce-common-models/valueobjectbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### AllowedUser + +```csharp +public AllowedUser(string userId) +``` + + +### Properties + +#### UserId + +```csharp +public string UserId { get; } +``` + + +### Methods + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/alloweduserrole.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/alloweduserrole.md new file mode 100644 index 00000000000..bbf3479d190 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/alloweduserrole.md @@ -0,0 +1,45 @@ +--- +title: AllowedUserRole +description: API reference for AllowedUserRole in Umbraco Commerce +--- +## AllowedUserRole + +```csharp +public class AllowedUserRole : ValueObjectBase +``` + +**Inheritance** + +* Class [ValueObjectBase](../../umbraco-commerce-common/umbraco-commerce-common-models/valueobjectbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### AllowedUserRole + +```csharp +public AllowedUserRole(string role) +``` + + +### Properties + +#### Role + +```csharp +public string Role { get; } +``` + + +### Methods + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/amount.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/amount.md new file mode 100644 index 00000000000..e47193c05b2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/amount.md @@ -0,0 +1,172 @@ +--- +title: Amount +description: API reference for Amount in Umbraco Commerce +--- +## Amount + +An amount object + +```csharp +public class Amount : ValueObjectBase, IAmount +``` + +**Inheritance** + +* Class [ValueObjectBase](../../umbraco-commerce-common/umbraco-commerce-common-models/valueobjectbase.md) +* interface [IAmount](iamount.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### Amount (1 of 2) + +Instantiates a new [`Amount`](amount.md) instance + +```csharp +public Amount(decimal value, Guid currencyId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| value | The value of the amount | +| currencyId | The ID of the [`Currency`](currency.md) of the amount | + +--- + +#### Amount (2 of 2) + +Instantiates a new [`Amount`](amount.md) instance + +```csharp +public Amount(decimal value, CurrencyReadOnly currency) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| value | The value of the amount | +| currency | The [`Currency`](currency.md) of the amount | + + +### Properties + +#### CurrencyId + +Gets the ID of the [`Currency`](currency.md) of the amount + +```csharp +public Guid CurrencyId { get; } +``` + + +--- + +#### Value + +Gets the value of the amount + +```csharp +public decimal Value { get; } +``` + + +### Methods + +#### OfSameCurrency + +Create a new [`Amount`](amount.md) of the same [`Currency`](currency.md) as an existing amount + +```csharp +public static Amount OfSameCurrency(Amount existingAmount, decimal value) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| existingAmount | The existing [`Amount`](amount.md) instance | +| value | The value of the new amount | + +**Returns** + +A new [`Amount`](amount.md) instance + + +--- + +#### ZeroValue + +Instantiates a new [`Amount`](amount.md) instance with a zero value + +```csharp +public static Amount ZeroValue(Guid currencyId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| currencyId | The ID of the [`Currency`](currency.md) of the amount | + +**Returns** + +A zero value [`Amount`](amount.md) instance + + +--- + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + +--- + +#### Rounded + +Round the price to the given preceission + +```csharp +public Amount Rounded(int decimalPlaces) +``` + +**Returns** + +A rounded price value + + +### Operators + +#### Amount Addition + +```csharp +public static Amount operator +(Amount amount1, Amount amount2) +``` + + +--- + +#### Amount Implicit + +```csharp +public static implicit operator decimal(Amount amount) +``` + + +--- + +#### Amount Subtraction + +```csharp +public static Amount operator -(Amount amount1, Amount amount2) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/amountadjustment-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/amountadjustment-1.md new file mode 100644 index 00000000000..9f573a55151 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/amountadjustment-1.md @@ -0,0 +1,37 @@ +--- +title: AmountAdjustment +description: API reference for AmountAdjustment in Umbraco Commerce +--- +## AmountAdjustment<TSelf> + +```csharp +public abstract class AmountAdjustment : AmountAdjustment + where TSelf : AmountAdjustment, new() +``` + +**Inheritance** + +* Class [AmountAdjustment](amountadjustment.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### CreateDerivativeAdjustment + +```csharp +public override AmountAdjustment CreateDerivativeAdjustment(Amount limitedAmount) +``` + + +--- + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/amountadjustment.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/amountadjustment.md new file mode 100644 index 00000000000..7d6f52f9f54 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/amountadjustment.md @@ -0,0 +1,63 @@ +--- +title: AmountAdjustment +description: API reference for AmountAdjustment in Umbraco Commerce +--- +## AmountAdjustment + +```csharp +public abstract class AmountAdjustment : ValueObjectBase +``` + +**Inheritance** + +* Class [ValueObjectBase](../../umbraco-commerce-common/umbraco-commerce-common-models/valueobjectbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Amount + +```csharp +public Amount Amount { get; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; } +``` + + +--- + +#### OriginalAmount + +```csharp +public Amount OriginalAmount { get; } +``` + + +--- + +#### Type + +```csharp +public Type Type { get; } +``` + + +### Methods + +#### CreateDerivativeAdjustment + +```csharp +public abstract AmountAdjustment CreateDerivativeAdjustment(Amount limitedAmount) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/applieddiscountcode.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/applieddiscountcode.md new file mode 100644 index 00000000000..0cbf39dcefc --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/applieddiscountcode.md @@ -0,0 +1,71 @@ +--- +title: AppliedDiscountCode +description: API reference for AppliedDiscountCode in Umbraco Commerce +--- +## AppliedDiscountCode + +```csharp +public class AppliedDiscountCode : ValueObjectBase +``` + +**Inheritance** + +* Class [ValueObjectBase](../../umbraco-commerce-common/umbraco-commerce-common-models/valueobjectbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### AppliedDiscountCode (1 of 2) + +```csharp +public AppliedDiscountCode(Guid discountId, string code) +``` + +--- + +#### AppliedDiscountCode (2 of 2) + +```csharp +public AppliedDiscountCode(Guid discountId, string code, bool isFullfilled) +``` + + +### Properties + +#### Code + +```csharp +public string Code { get; } +``` + + +--- + +#### DiscountId + +```csharp +public Guid DiscountId { get; } +``` + + +--- + +#### IsFulfilled + +```csharp +public bool IsFulfilled { get; } +``` + + +### Methods + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/appliedgiftcard.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/appliedgiftcard.md new file mode 100644 index 00000000000..f790fd36f95 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/appliedgiftcard.md @@ -0,0 +1,54 @@ +--- +title: AppliedGiftCard +description: API reference for AppliedGiftCard in Umbraco Commerce +--- +## AppliedGiftCard + +```csharp +public class AppliedGiftCard : ValueObjectBase +``` + +**Inheritance** + +* Class [ValueObjectBase](../../umbraco-commerce-common/umbraco-commerce-common-models/valueobjectbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### AppliedGiftCard + +```csharp +public AppliedGiftCard(Guid giftCardId, string code) +``` + + +### Properties + +#### Code + +```csharp +public string Code { get; } +``` + + +--- + +#### GiftCardId + +```csharp +public Guid GiftCardId { get; } +``` + + +### Methods + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/attribute.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/attribute.md new file mode 100644 index 00000000000..58fb945d187 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/attribute.md @@ -0,0 +1,53 @@ +--- +title: Attribute +description: API reference for Attribute in Umbraco Commerce +--- +## Attribute + +```csharp +public class Attribute : AliasNamePair +``` + +**Inheritance** + +* Class [AliasNamePair](aliasnamepair.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### Attribute (1 of 2) + +```csharp +public Attribute(string alias, string name) +``` + +--- + +#### Attribute (2 of 2) + +```csharp +public Attribute(string alias, string name, IEnumerable values) +``` + + +### Properties + +#### Values + +```csharp +public IEnumerable Values { get; set; } +``` + + +### Methods + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/attributecombination.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/attributecombination.md new file mode 100644 index 00000000000..904ea67dd5a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/attributecombination.md @@ -0,0 +1,54 @@ +--- +title: AttributeCombination +description: API reference for AttributeCombination in Umbraco Commerce +--- +## AttributeCombination + +```csharp +public class AttributeCombination : ValueObjectBase +``` + +**Inheritance** + +* Class [ValueObjectBase](../../umbraco-commerce-common/umbraco-commerce-common-models/valueobjectbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### AttributeCombination + +```csharp +public AttributeCombination(AttributeName name, AttributeValue value) +``` + + +### Properties + +#### Name + +```csharp +public AttributeName Name { get; set; } +``` + + +--- + +#### Value + +```csharp +public AttributeValue Value { get; set; } +``` + + +### Methods + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/attributename.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/attributename.md new file mode 100644 index 00000000000..bcae91df09e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/attributename.md @@ -0,0 +1,36 @@ +--- +title: AttributeName +description: API reference for AttributeName in Umbraco Commerce +--- +## AttributeName + +```csharp +public class AttributeName : AliasNamePair +``` + +**Inheritance** + +* Class [AliasNamePair](aliasnamepair.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### AttributeName + +```csharp +public AttributeName(string alias, string name) +``` + + +### Methods + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/attributevalue.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/attributevalue.md new file mode 100644 index 00000000000..d99a3e5f9c6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/attributevalue.md @@ -0,0 +1,36 @@ +--- +title: AttributeValue +description: API reference for AttributeValue in Umbraco Commerce +--- +## AttributeValue + +```csharp +public class AttributeValue : AliasNamePair +``` + +**Inheritance** + +* Class [AliasNamePair](aliasnamepair.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### AttributeValue + +```csharp +public AttributeValue(string alias, string name) +``` + + +### Methods + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/bundledorderlinereadonly.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/bundledorderlinereadonly.md new file mode 100644 index 00000000000..38a9805a2e8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/bundledorderlinereadonly.md @@ -0,0 +1,40 @@ +--- +title: BundledOrderLineReadOnly +description: API reference for BundledOrderLineReadOnly in Umbraco Commerce +--- +## BundledOrderLineReadOnly + +```csharp +public class BundledOrderLineReadOnly : OrderLineReadOnly +``` + +**Inheritance** + +* Class [OrderLineReadOnly](orderlinereadonly.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### ParentBundleId + +Gets the bundle ID of the parent order line to this order line + +```csharp +public string ParentBundleId { get; } +``` + + +--- + +#### ParentOrderLineId + +Gets the ID of the parent [`OrderLineReadOnly`](orderlinereadonly.md) this entity belongs to + +```csharp +public Guid ParentOrderLineId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/bundleorderlinereadonly.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/bundleorderlinereadonly.md new file mode 100644 index 00000000000..99a411aaa18 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/bundleorderlinereadonly.md @@ -0,0 +1,42 @@ +--- +title: BundleOrderLineReadOnly +description: API reference for BundleOrderLineReadOnly in Umbraco Commerce +--- +## BundleOrderLineReadOnly + +```csharp +public class BundleOrderLineReadOnly : OrderLineReadOnly, + IHasReadableOrderLines +``` + +**Inheritance** + +* Class [OrderLineReadOnly](orderlinereadonly.md) +* interface [IHasReadableOrderLines<T>](ihasreadableorderlines-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### BundleId + +Gets the bundle ID of the order line + +```csharp +public string BundleId { get; } +``` + + +--- + +#### OrderLines + +Gets the child order lines of the order line + +```csharp +public IReadOnlyCollection OrderLines { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/country.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/country.md new file mode 100644 index 00000000000..a79d7f2564b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/country.md @@ -0,0 +1,142 @@ +--- +title: Country +description: API reference for Country in Umbraco Commerce +--- +## Country + +```csharp +public class Country : CountryReadOnly +``` + +**Inheritance** + +* Class [CountryReadOnly](countryreadonly.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### Create (1 of 2) + +```csharp +public static Country Create(IUnitOfWork uow, Guid storeId, string code, string name, + bool autoCreateRegions = false) +``` + +--- + +#### Create (2 of 2) + +```csharp +public static Country Create(IUnitOfWork uow, Guid id, Guid storeId, string code, string name, + bool autoCreateRegions = false) +``` + + +--- + +#### ClearDefaultCurrency + +```csharp +public Country ClearDefaultCurrency() +``` + + +--- + +#### ClearDefaultPaymentMethod + +```csharp +public Country ClearDefaultPaymentMethod() +``` + + +--- + +#### ClearDefaultShippingMethod + +```csharp +public Country ClearDefaultShippingMethod() +``` + + +--- + +#### SetCode + +```csharp +public Country SetCode(string code) +``` + + +--- + +#### SetDefaultCurrency (1 of 2) + +```csharp +public Country SetDefaultCurrency(CurrencyReadOnly currency) +``` + +--- + +#### SetDefaultCurrency (2 of 2) + +```csharp +public Country SetDefaultCurrency(Guid? currencyId) +``` + + +--- + +#### SetDefaultPaymentMethod (1 of 2) + +```csharp +public Country SetDefaultPaymentMethod(PaymentMethodReadOnly paymentMethod) +``` + +--- + +#### SetDefaultPaymentMethod (2 of 2) + +```csharp +public Country SetDefaultPaymentMethod(Guid? paymentMethodId) +``` + + +--- + +#### SetDefaultShippingMethod (1 of 2) + +```csharp +public Country SetDefaultShippingMethod(ShippingMethodReadOnly shippingMethod) +``` + +--- + +#### SetDefaultShippingMethod (2 of 2) + +```csharp +public Country SetDefaultShippingMethod(Guid? shippingMethodId) +``` + + +--- + +#### SetName + +```csharp +public Country SetName(string name) +``` + + +--- + +#### SetSortOrder + +```csharp +public Country SetSortOrder(int sortOrder) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/countryreadonly.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/countryreadonly.md new file mode 100644 index 00000000000..d72a63544ae --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/countryreadonly.md @@ -0,0 +1,82 @@ +--- +title: CountryReadOnly +description: API reference for CountryReadOnly in Umbraco Commerce +--- +## CountryReadOnly + +```csharp +public class CountryReadOnly : StoreAggregateBase, IHasName +``` + +**Inheritance** + +* Class [StoreAggregateBase<TReadOnlySelf,TWritableSelf,TState>](storeaggregatebase-3.md) +* interface [IHasName](ihasname.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Code + +```csharp +public string Code { get; } +``` + + +--- + +#### DefaultCurrencyId + +```csharp +public Guid? DefaultCurrencyId { get; } +``` + + +--- + +#### DefaultPaymentMethodId + +```csharp +public Guid? DefaultPaymentMethodId { get; } +``` + + +--- + +#### DefaultShippingMethodId + +```csharp +public Guid? DefaultShippingMethodId { get; } +``` + + +--- + +#### IsDeleted + +```csharp +public bool IsDeleted { get; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; } +``` + + +--- + +#### SortOrder + +```csharp +public int SortOrder { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/countryregiontaxrate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/countryregiontaxrate.md new file mode 100644 index 00000000000..b6befc6258e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/countryregiontaxrate.md @@ -0,0 +1,63 @@ +--- +title: CountryRegionTaxRate +description: API reference for CountryRegionTaxRate in Umbraco Commerce +--- +## CountryRegionTaxRate + +```csharp +public class CountryRegionTaxRate : ValueObjectBase +``` + +**Inheritance** + +* Class [ValueObjectBase](../../umbraco-commerce-common/umbraco-commerce-common-models/valueobjectbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### CountryRegionTaxRate + +```csharp +public CountryRegionTaxRate(TaxRate taxRate, Guid countryId, Guid? regionId) +``` + + +### Properties + +#### CountryId + +```csharp +public Guid CountryId { get; } +``` + + +--- + +#### RegionId + +```csharp +public Guid? RegionId { get; } +``` + + +--- + +#### TaxRate + +```csharp +public TaxRate TaxRate { get; } +``` + + +### Methods + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/currency.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/currency.md new file mode 100644 index 00000000000..c57a651f40b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/currency.md @@ -0,0 +1,117 @@ +--- +title: Currency +description: API reference for Currency in Umbraco Commerce +--- +## Currency + +```csharp +public class Currency : CurrencyReadOnly, IHasWrtiableAllowedCountries +``` + +**Inheritance** + +* Class [CurrencyReadOnly](currencyreadonly.md) +* interface [IHasWrtiableAllowedCountries<TAggregate>](ihaswrtiableallowedcountries-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### Create (1 of 2) + +```csharp +public static Currency Create(IUnitOfWork uow, Guid storeId, string code, string name, + string cultureName) +``` + +--- + +#### Create (2 of 2) + +```csharp +public static Currency Create(IUnitOfWork uow, Guid id, Guid storeId, string code, string name, + string cultureName) +``` + + +--- + +#### AllowInCountry (1 of 2) + +```csharp +public Currency AllowInCountry(CountryReadOnly country) +``` + +--- + +#### AllowInCountry (2 of 2) + +```csharp +public Currency AllowInCountry(Guid countryId) +``` + + +--- + +#### DisallowInCountry (1 of 2) + +```csharp +public Currency DisallowInCountry(CountryReadOnly country) +``` + +--- + +#### DisallowInCountry (2 of 2) + +```csharp +public Currency DisallowInCountry(Guid countryId) +``` + + +--- + +#### SetCode + +```csharp +public Currency SetCode(string code) +``` + + +--- + +#### SetCulture + +```csharp +public Currency SetCulture(string cultureName) +``` + + +--- + +#### SetCustomFormatTemplate + +```csharp +public Currency SetCustomFormatTemplate(string formatTemplate) +``` + + +--- + +#### SetName + +```csharp +public Currency SetName(string name) +``` + + +--- + +#### SetSortOrder + +```csharp +public Currency SetSortOrder(int sortOrder) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/currencyformatter.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/currencyformatter.md new file mode 100644 index 00000000000..1055fa4a7ce --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/currencyformatter.md @@ -0,0 +1,75 @@ +--- +title: CurrencyFormatter +description: API reference for CurrencyFormatter in Umbraco Commerce +--- +## CurrencyFormatter + +```csharp +public class CurrencyFormatter +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### CurrencyFormatter (1 of 2) + +```csharp +public CurrencyFormatter(string cultureName) +``` + +--- + +#### CurrencyFormatter (2 of 2) + +```csharp +public CurrencyFormatter(string cultureName, string formatTemplate) +``` + + +### Properties + +#### CultureName + +```csharp +public string CultureName { get; } +``` + + +--- + +#### FormatTemplate + +```csharp +public string FormatTemplate { get; } +``` + + +### Methods + +#### FormatValue (1 of 2) + +```csharp +public string FormatValue(decimal value, bool includeSymbol = true) +``` + +--- + +#### FormatValue (2 of 2) + +```csharp +public string FormatValue(decimal value, int decimalPlaces, bool includeSymbol = true) +``` + + +--- + +#### RoundValue + +```csharp +public decimal RoundValue(decimal value) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/currencyreadonly.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/currencyreadonly.md new file mode 100644 index 00000000000..e3b4b8399a7 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/currencyreadonly.md @@ -0,0 +1,101 @@ +--- +title: CurrencyReadOnly +description: API reference for CurrencyReadOnly in Umbraco Commerce +--- +## CurrencyReadOnly + +```csharp +public class CurrencyReadOnly : StoreAggregateBase, + IHasName, IHasReadableAllowedCountries +``` + +**Inheritance** + +* Class [StoreAggregateBase<TReadOnlySelf,TWritableSelf,TState>](storeaggregatebase-3.md) +* interface [IHasName](ihasname.md) +* interface [IHasReadableAllowedCountries](ihasreadableallowedcountries.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### AllowedCountries + +```csharp +public IReadOnlyCollection AllowedCountries { get; } +``` + + +--- + +#### Code + +```csharp +public string Code { get; } +``` + + +--- + +#### CultureName + +```csharp +public string CultureName { get; } +``` + + +--- + +#### FormatTemplate + +```csharp +public string FormatTemplate { get; } +``` + + +--- + +#### IsDeleted + +```csharp +public bool IsDeleted { get; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; } +``` + + +--- + +#### SortOrder + +```csharp +public int SortOrder { get; } +``` + + +### Methods + +#### IsAllowedInCountry (1 of 2) + +```csharp +public bool IsAllowedInCountry(CountryReadOnly country) +``` + +--- + +#### IsAllowedInCountry (2 of 2) + +```csharp +public bool IsAllowedInCountry(Guid countryId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/discount.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/discount.md new file mode 100644 index 00000000000..86d4fbac787 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/discount.md @@ -0,0 +1,256 @@ +--- +title: Discount +description: API reference for Discount in Umbraco Commerce +--- +## Discount + +```csharp +public class Discount : DiscountReadOnly +``` + +**Inheritance** + +* Class [DiscountReadOnly](discountreadonly.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### Create (1 of 2) + +```csharp +public static Discount Create(IUnitOfWork uow, Guid storeId, string alias, string name) +``` + +--- + +#### Create (2 of 2) + +```csharp +public static Discount Create(IUnitOfWork uow, Guid id, Guid storeId, string alias, string name) +``` + + +--- + +#### AddCode (1 of 2) + +```csharp +public Discount AddCode(string code, int? usageLimit = null, bool isUnlimited = false) +``` + +--- + +#### AddCode (2 of 2) + +```csharp +public Discount AddCode(DiscountCode code) +``` + + +--- + +#### AddCodes + +```csharp +public Discount AddCodes(IEnumerable codes) +``` + + +--- + +#### ClearCodes + +```csharp +public Discount ClearCodes() +``` + + +--- + +#### RemoveCode (1 of 3) + +```csharp +public Discount RemoveCode(string code) +``` + +--- + +#### RemoveCode (2 of 3) + +```csharp +public Discount RemoveCode(Guid id) +``` + +--- + +#### RemoveCode (3 of 3) + +```csharp +public Discount RemoveCode(DiscountCode code) +``` + + +--- + +#### RemoveCodes + +```csharp +public Discount RemoveCodes(IEnumerable codes) +``` + + +--- + +#### SetActive + +```csharp +public Discount SetActive(bool isActive) +``` + + +--- + +#### SetAlias + +```csharp +public Discount SetAlias(string alias) +``` + + +--- + +#### SetBlockFurtherDiscounts + +```csharp +public Discount SetBlockFurtherDiscounts(bool blockFurtherDiscounts) +``` + + +--- + +#### SetBlockIfPreviousDiscounts + +```csharp +public Discount SetBlockIfPreviousDiscounts(bool blockIfPreviousDiscounts) +``` + + +--- + +#### SetCodes + +```csharp +public Discount SetCodes(IEnumerable codes, + SetBehavior setBehavior = SetBehavior.Merge) +``` + + +--- + +#### SetDateRange + +```csharp +public Discount SetDateRange(DateTime? startDate, DateTime? expiryDate) +``` + + +--- + +#### SetName (1 of 2) + +```csharp +public Discount SetName(string name) +``` + +--- + +#### SetName (2 of 2) + +```csharp +public Discount SetName(string name, string alias) +``` + + +--- + +#### SetRewards + +```csharp +public Discount SetRewards(IEnumerable rewards) +``` + + +--- + +#### SetRules (1 of 2) + +```csharp +public Discount SetRules(DiscountRuleConfig rules, bool blockFurtherDiscounts, + bool blockIfPreviousDiscounts) +``` + +--- + +#### SetRules (2 of 2) + +```csharp +public Discount SetRules(DiscountRuleConfig rules) +``` + + +--- + +#### SetSortOrder + +```csharp +public Discount SetSortOrder(int sortOrder) +``` + + +--- + +#### SetType + +```csharp +public Discount SetType(DiscountType type) +``` + + +--- + +#### UpdateCode (1 of 3) + +```csharp +public Discount UpdateCode(string oldCode, string newCode, int? usageLimit = null, + bool? isUnlimited = null) +``` + +--- + +#### UpdateCode (2 of 3) + +```csharp +public Discount UpdateCode(Guid id, string code, int? usageLimit = null, bool? isUnlimited = null) +``` + +--- + +#### UpdateCode (3 of 3) + +```csharp +public Discount UpdateCode(DiscountCode code) +``` + + +--- + +#### UpdateCodes + +```csharp +public Discount UpdateCodes(IEnumerable codes) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/discountadjustment.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/discountadjustment.md new file mode 100644 index 00000000000..383df701bb6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/discountadjustment.md @@ -0,0 +1,64 @@ +--- +title: DiscountAdjustment +description: API reference for DiscountAdjustment in Umbraco Commerce +--- +## DiscountAdjustment + +```csharp +public class DiscountAdjustment : PriceAdjustment +``` + +**Inheritance** + +* Class [PriceAdjustment<TSelf>](priceadjustment-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### DiscountAdjustment + +The default constructor. + +```csharp +public DiscountAdjustment() +``` + + +--- + +#### DiscountAdjustment (1 of 2) + +```csharp +public DiscountAdjustment(DiscountReadOnly discount, Price price) +``` + +--- + +#### DiscountAdjustment (2 of 2) + +```csharp +public DiscountAdjustment(Guid discountId, string discountName, Price price) +``` + + +### Properties + +#### DiscountId + +```csharp +public Guid DiscountId { get; } +``` + + +--- + +#### DiscountName + +```csharp +public string DiscountName { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/discountcode.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/discountcode.md new file mode 100644 index 00000000000..603fa26bcb2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/discountcode.md @@ -0,0 +1,80 @@ +--- +title: DiscountCode +description: API reference for DiscountCode in Umbraco Commerce +--- +## DiscountCode + +```csharp +public class DiscountCode : EntityBase +``` + +**Inheritance** + +* Class [EntityBase](entitybase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### DiscountCode (1 of 2) + +```csharp +public DiscountCode(string code, int? usageLimit = null, bool isUnlimited = false) +``` + +--- + +#### DiscountCode (2 of 2) + +```csharp +public DiscountCode(Guid id, string code, int? usageLimit = null, bool isUnlimited = false) +``` + + +### Properties + +#### Code + +```csharp +public string Code { get; } +``` + + +--- + +#### Id + +```csharp +public override Guid Id { get; } +``` + + +--- + +#### IsUnlimited + +```csharp +public bool IsUnlimited { get; } +``` + + +--- + +#### UsageLimit + +```csharp +public int? UsageLimit { get; } +``` + + +### Methods + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/discountreadonly.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/discountreadonly.md new file mode 100644 index 00000000000..b6e192ea87e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/discountreadonly.md @@ -0,0 +1,156 @@ +--- +title: DiscountReadOnly +description: API reference for DiscountReadOnly in Umbraco Commerce +--- +## DiscountReadOnly + +```csharp +public class DiscountReadOnly : StoreAggregateBase, + IHasName +``` + +**Inheritance** + +* Class [StoreAggregateBase<TReadOnlySelf,TWritableSelf,TState>](storeaggregatebase-3.md) +* interface [IHasName](ihasname.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Alias + +```csharp +public string Alias { get; } +``` + + +--- + +#### BlockFurtherDiscounts + +```csharp +public bool BlockFurtherDiscounts { get; } +``` + + +--- + +#### BlockIfPreviousDiscounts + +```csharp +public bool BlockIfPreviousDiscounts { get; } +``` + + +--- + +#### Codes + +```csharp +public IReadOnlyCollection Codes { get; } +``` + + +--- + +#### ExpiryDate + +```csharp +public DateTime? ExpiryDate { get; } +``` + + +--- + +#### IsActive + +```csharp +public bool IsActive { get; } +``` + + +--- + +#### IsDeleted + +```csharp +public bool IsDeleted { get; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; } +``` + + +--- + +#### Rewards + +```csharp +public IReadOnlyCollection Rewards { get; } +``` + + +--- + +#### Rules + +```csharp +public DiscountRuleConfig Rules { get; } +``` + + +--- + +#### SortOrder + +```csharp +public int SortOrder { get; } +``` + + +--- + +#### StartDate + +```csharp +public DateTime? StartDate { get; } +``` + + +--- + +#### Status + +```csharp +public DiscountStatus Status { get; } +``` + + +--- + +#### Type + +```csharp +public DiscountType Type { get; } +``` + + +### Methods + +#### TryFindDiscountCodes + +```csharp +public bool TryFindDiscountCodes(IEnumerable codesToFind, + out IEnumerable foundCodes) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/discountrewardconfig.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/discountrewardconfig.md new file mode 100644 index 00000000000..b186e5a3837 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/discountrewardconfig.md @@ -0,0 +1,55 @@ +--- +title: DiscountRewardConfig +description: API reference for DiscountRewardConfig in Umbraco Commerce +--- +## DiscountRewardConfig + +```csharp +public class DiscountRewardConfig : ValueObjectBase +``` + +**Inheritance** + +* Class [ValueObjectBase](../../umbraco-commerce-common/umbraco-commerce-common-models/valueobjectbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### DiscountRewardConfig + +```csharp +public DiscountRewardConfig(string rewardProviderAlias, + IEnumerable> settings) +``` + + +### Properties + +#### RewardProviderAlias + +```csharp +public string RewardProviderAlias { get; } +``` + + +--- + +#### Settings + +```csharp +public IReadOnlyDictionary Settings { get; } +``` + + +### Methods + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/discountruleconfig.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/discountruleconfig.md new file mode 100644 index 00000000000..0d2c26d6dd1 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/discountruleconfig.md @@ -0,0 +1,73 @@ +--- +title: DiscountRuleConfig +description: API reference for DiscountRuleConfig in Umbraco Commerce +--- +## DiscountRuleConfig + +```csharp +public class DiscountRuleConfig : ValueObjectBase +``` + +**Inheritance** + +* Class [ValueObjectBase](../../umbraco-commerce-common/umbraco-commerce-common-models/valueobjectbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### DiscountRuleConfig (1 of 2) + +```csharp +public DiscountRuleConfig(string ruleProviderAlias, + IEnumerable> settings) +``` + +--- + +#### DiscountRuleConfig (2 of 2) + +```csharp +public DiscountRuleConfig(string ruleProviderAlias, + IEnumerable> settings, IEnumerable children) +``` + + +### Properties + +#### Children + +```csharp +public IReadOnlyCollection Children { get; } +``` + + +--- + +#### RuleProviderAlias + +```csharp +public string RuleProviderAlias { get; } +``` + + +--- + +#### Settings + +```csharp +public IReadOnlyDictionary Settings { get; } +``` + + +### Methods + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/discountstatus.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/discountstatus.md new file mode 100644 index 00000000000..c7c5867fcc9 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/discountstatus.md @@ -0,0 +1,23 @@ +--- +title: DiscountStatus +description: API reference for DiscountStatus in Umbraco Commerce +--- +## DiscountStatus + +```csharp +public enum DiscountStatus +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +**Values** + +| Name | Value | Description | +| --- | --- | --- | +| Active | `0` | | +| Inactive | `1` | | +| Scheduled | `2` | | +| Expired | `3` | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/discounttype.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/discounttype.md new file mode 100644 index 00000000000..72836bc9634 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/discounttype.md @@ -0,0 +1,21 @@ +--- +title: DiscountType +description: API reference for DiscountType in Umbraco Commerce +--- +## DiscountType + +```csharp +public enum DiscountType +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +**Values** + +| Name | Value | Description | +| --- | --- | --- | +| Automatic | `0` | | +| Code | `1` | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/emailcontext.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/emailcontext.md new file mode 100644 index 00000000000..e62ed15d724 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/emailcontext.md @@ -0,0 +1,78 @@ +--- +title: EmailContext +description: API reference for EmailContext in Umbraco Commerce +--- +## EmailContext + +```csharp +public class EmailContext +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### EmailContext (1 of 2) + +```csharp +public EmailContext(EmailTemplateReadOnly emailTemplate, Order order, + MailMessage mailMessage = null) +``` + +--- + +#### EmailContext (2 of 2) + +```csharp +public EmailContext(EmailTemplateReadOnly emailTemplate, object model, string toEmailAddress, + string languageIsoCode, MailMessage mailMessage = null) +``` + + +### Properties + +#### EmailTemplate + +```csharp +public EmailTemplateReadOnly EmailTemplate { get; set; } +``` + + +--- + +#### LanguageIsoCode + +```csharp +public string LanguageIsoCode { get; set; } +``` + + +--- + +#### MailMessage + +```csharp +public MailMessage MailMessage { get; set; } +``` + + +--- + +#### Model + +```csharp +public object Model { get; set; } +``` + + +--- + +#### ToEmailAddress + +```csharp +public string ToEmailAddress { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/emailtemplate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/emailtemplate.md new file mode 100644 index 00000000000..a0d1bc3de71 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/emailtemplate.md @@ -0,0 +1,238 @@ +--- +title: EmailTemplate +description: API reference for EmailTemplate in Umbraco Commerce +--- +## EmailTemplate + +```csharp +public class EmailTemplate : EmailTemplateReadOnly +``` + +**Inheritance** + +* Class [EmailTemplateReadOnly](emailtemplatereadonly.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### Create (1 of 2) + +```csharp +public static EmailTemplate Create(IUnitOfWork uow, Guid storeId, string alias, string name) +``` + +--- + +#### Create (2 of 2) + +```csharp +public static EmailTemplate Create(IUnitOfWork uow, Guid id, Guid storeId, string alias, + string name) +``` + + +--- + +#### SetAlias + +```csharp +public EmailTemplate SetAlias(string alias) +``` + + +--- + +#### SetBccAddress + +```csharp +public EmailTemplate SetBccAddress(string emailAddress) +``` + + +--- + +#### SetBccAddresses (1 of 2) + +```csharp +public EmailTemplate SetBccAddresses(IEnumerable emailAddresses) +``` + +--- + +#### SetBccAddresses (2 of 2) + +```csharp +public EmailTemplate SetBccAddresses(string emailAddresses) +``` + + +--- + +#### SetCategory + +```csharp +public EmailTemplate SetCategory(TemplateCategory category) +``` + + +--- + +#### SetCcAddress + +```csharp +public EmailTemplate SetCcAddress(string emailAddress) +``` + + +--- + +#### SetCcAddresses (1 of 2) + +```csharp +public EmailTemplate SetCcAddresses(IEnumerable emailAddresses) +``` + +--- + +#### SetCcAddresses (2 of 2) + +```csharp +public EmailTemplate SetCcAddresses(string emailAddresses) +``` + + +--- + +#### SetName (1 of 2) + +```csharp +public EmailTemplate SetName(string name) +``` + +--- + +#### SetName (2 of 2) + +```csharp +public EmailTemplate SetName(string name, string alias) +``` + + +--- + +#### SetReplyToAddress + +```csharp +public EmailTemplate SetReplyToAddress(string emailAddress) +``` + + +--- + +#### SetReplyToAddresses (1 of 2) + +```csharp +public EmailTemplate SetReplyToAddresses(IEnumerable emailAddresses) +``` + +--- + +#### SetReplyToAddresses (2 of 2) + +```csharp +public EmailTemplate SetReplyToAddresses(string emailAddresses) +``` + + +--- + +#### SetSender + +```csharp +public EmailTemplate SetSender(string name, string emailAddress) +``` + + +--- + +#### SetSenderAddress + +```csharp +public EmailTemplate SetSenderAddress(string emailAddress) +``` + + +--- + +#### SetSenderName + +```csharp +public EmailTemplate SetSenderName(string name) +``` + + +--- + +#### SetSendToCustomer + +```csharp +public EmailTemplate SetSendToCustomer(bool sendToCustomer) +``` + + +--- + +#### SetSortOrder + +```csharp +public EmailTemplate SetSortOrder(int sortOrder) +``` + + +--- + +#### SetSubject + +```csharp +public EmailTemplate SetSubject(string subject) +``` + + +--- + +#### SetTemplateView + +```csharp +public EmailTemplate SetTemplateView(string templateViewPath) +``` + + +--- + +#### SetToAddress + +```csharp +public EmailTemplate SetToAddress(string emailAddress) +``` + + +--- + +#### SetToAddresses (1 of 2) + +```csharp +public EmailTemplate SetToAddresses(IEnumerable emailAddresses) +``` + +--- + +#### SetToAddresses (2 of 2) + +```csharp +public EmailTemplate SetToAddresses(string emailAddresses) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/emailtemplatereadonly.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/emailtemplatereadonly.md new file mode 100644 index 00000000000..2d835cee7ff --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/emailtemplatereadonly.md @@ -0,0 +1,146 @@ +--- +title: EmailTemplateReadOnly +description: API reference for EmailTemplateReadOnly in Umbraco Commerce +--- +## EmailTemplateReadOnly + +```csharp +public class EmailTemplateReadOnly : + StoreAggregateBase, IHasName +``` + +**Inheritance** + +* Class [StoreAggregateBase<TReadOnlySelf,TWritableSelf,TState>](storeaggregatebase-3.md) +* interface [IHasName](ihasname.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Alias + +```csharp +public string Alias { get; } +``` + + +--- + +#### BccAddresses + +```csharp +public IEnumerable BccAddresses { get; } +``` + + +--- + +#### Category + +```csharp +public TemplateCategory Category { get; } +``` + + +--- + +#### CcAddresses + +```csharp +public IEnumerable CcAddresses { get; } +``` + + +--- + +#### IsDeleted + +```csharp +public bool IsDeleted { get; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; } +``` + + +--- + +#### ReplyToAddresses + +```csharp +public IEnumerable ReplyToAddresses { get; } +``` + + +--- + +#### SenderAddress + +```csharp +public string SenderAddress { get; } +``` + + +--- + +#### SenderName + +```csharp +public string SenderName { get; } +``` + + +--- + +#### SendToCustomer + +```csharp +public bool SendToCustomer { get; } +``` + + +--- + +#### SortOrder + +```csharp +public int SortOrder { get; } +``` + + +--- + +#### Subject + +```csharp +public string Subject { get; } +``` + + +--- + +#### TemplateView + +```csharp +public string TemplateView { get; } +``` + + +--- + +#### ToAddresses + +```csharp +public IEnumerable ToAddresses { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/entitybase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/entitybase-1.md new file mode 100644 index 00000000000..d73fc5ff10e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/entitybase-1.md @@ -0,0 +1,39 @@ +--- +title: EntityBase +description: API reference for EntityBase in Umbraco Commerce +--- +## EntityBase<TState> + +Base class for an entity + +```csharp +public abstract class EntityBase : EntityBase + where TState : EntityStateBase +``` + +**Inheritance** + +* Class [EntityBase](entitybase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Id + +```csharp +public override Guid Id { get; } +``` + + +### Methods + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/entitybase.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/entitybase.md new file mode 100644 index 00000000000..1d901955937 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/entitybase.md @@ -0,0 +1,103 @@ +--- +title: EntityBase +description: API reference for EntityBase in Umbraco Commerce +--- +## EntityBase + +Base class for an entity + +```csharp +public abstract class EntityBase : IDeepCloneable +``` + +**Inheritance** + +* interface [IDeepCloneable](../../umbraco-commerce-common/umbraco-commerce-common/ideepcloneable.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Id + +Gets the ID of the entity + +```csharp +public abstract Guid Id { get; } +``` + + +### Methods + +#### DeepClone + +Deep clones the entity and all of it's child entities + +```csharp +public abstract object DeepClone() +``` + +**Returns** + +A deep clones entity instance + + +--- + +#### Equals + +Compares the entity against another entity for equality + +```csharp +public override bool Equals(object obj) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| obj | The entity to compare against | + +**Returns** + +Returns `true` if the two entities are equal, otherwise returns `false`. + + +--- + +#### GetHashCode + +```csharp +public override int GetHashCode() +``` + + +### Operators + +#### EntityBase Equality + +```csharp +public static bool operator ==(EntityBase a, EntityBase b) +``` + + +--- + +#### EntityBase Explicit + +```csharp +public static explicit operator Guid(EntityBase entity) +``` + + +--- + +#### EntityBase Inequality + +```csharp +public static bool operator !=(EntityBase a, EntityBase b) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/entitycacheintegritycheckoptions.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/entitycacheintegritycheckoptions.md new file mode 100644 index 00000000000..b2e032ea52c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/entitycacheintegritycheckoptions.md @@ -0,0 +1,36 @@ +--- +title: EntityCacheIntegrityCheckOptions +description: API reference for EntityCacheIntegrityCheckOptions in Umbraco Commerce +--- +## EntityCacheIntegrityCheckOptions + +```csharp +public class EntityCacheIntegrityCheckOptions +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### EntityCacheIntegrityCheckOptions + +The default constructor. + +```csharp +public EntityCacheIntegrityCheckOptions() +``` + + +### Properties + +#### FixIssues + +Set to true to try to automatically resolve data integrity issues + +```csharp +public bool FixIssues { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/entitycacheintegritycheckresult.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/entitycacheintegritycheckresult.md new file mode 100644 index 00000000000..b9068122dec --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/entitycacheintegritycheckresult.md @@ -0,0 +1,66 @@ +--- +title: EntityCacheIntegrityCheckResult +description: API reference for EntityCacheIntegrityCheckResult in Umbraco Commerce +--- +## EntityCacheIntegrityCheckResult + +```csharp +public class EntityCacheIntegrityCheckResult +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### EntityCacheIntegrityCheckResult + +```csharp +public EntityCacheIntegrityCheckResult( + IReadOnlyCollection detectedIssues) +``` + + +### Properties + +#### DetectedIssues + +```csharp +public IReadOnlyCollection DetectedIssues { get; } +``` + + +--- + +#### FixedIssues + +```csharp +public IReadOnlyCollection FixedIssues { get; } +``` + + +--- + +#### Ok + +```csharp +public bool Ok { get; } +``` + + +### Enumerations + +#### EntityCacheIntegrityCheckResult.IssueType + +```csharp +public enum IssueType +``` + +**Values** + +| Name | Value | Description | +| --- | --- | --- | +| InconsistentCacheCount | `0` | The number of items in the entity cache is inconsistent with the number items in the database | + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/entitycacheintegritycheckresultentry.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/entitycacheintegritycheckresultentry.md new file mode 100644 index 00000000000..40ffe4334ee --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/entitycacheintegritycheckresultentry.md @@ -0,0 +1,41 @@ +--- +title: EntityCacheIntegrityCheckResultEntry +description: API reference for EntityCacheIntegrityCheckResultEntry in Umbraco Commerce +--- +## EntityCacheIntegrityCheckResultEntry + +```csharp +public class EntityCacheIntegrityCheckResultEntry +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### EntityCacheIntegrityCheckResultEntry + +```csharp +public EntityCacheIntegrityCheckResultEntry(IssueType issueType) +``` + + +### Properties + +#### Fixed + +```csharp +public bool Fixed { get; set; } +``` + + +--- + +#### IssueType + +```csharp +public IssueType IssueType { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/entitystatebase.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/entitystatebase.md new file mode 100644 index 00000000000..3c1e9384cfd --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/entitystatebase.md @@ -0,0 +1,36 @@ +--- +title: EntityStateBase +description: API reference for EntityStateBase in Umbraco Commerce +--- +## EntityStateBase + +```csharp +public abstract class EntityStateBase : IDeepCloneable +``` + +**Inheritance** + +* interface [IDeepCloneable](../../umbraco-commerce-common/umbraco-commerce-common/ideepcloneable.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Id + +```csharp +public virtual Guid Id { get; } +``` + + +### Methods + +#### DeepClone + +```csharp +public abstract object DeepClone() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/exportstrategy.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/exportstrategy.md new file mode 100644 index 00000000000..0e7b8b0e4c6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/exportstrategy.md @@ -0,0 +1,21 @@ +--- +title: ExportStrategy +description: API reference for ExportStrategy in Umbraco Commerce +--- +## ExportStrategy + +```csharp +public enum ExportStrategy +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +**Values** + +| Name | Value | Description | +| --- | --- | --- | +| SingleFile | `0` | | +| MultiFile | `1` | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/exporttemplate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/exporttemplate.md new file mode 100644 index 00000000000..d73794fec1e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/exporttemplate.md @@ -0,0 +1,116 @@ +--- +title: ExportTemplate +description: API reference for ExportTemplate in Umbraco Commerce +--- +## ExportTemplate + +```csharp +public class ExportTemplate : ExportTemplateReadOnly +``` + +**Inheritance** + +* Class [ExportTemplateReadOnly](exporttemplatereadonly.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### Create (1 of 2) + +```csharp +public static ExportTemplate Create(IUnitOfWork uow, Guid storeId, string alias, string name) +``` + +--- + +#### Create (2 of 2) + +```csharp +public static ExportTemplate Create(IUnitOfWork uow, Guid id, Guid storeId, string alias, + string name) +``` + + +--- + +#### SetAlias + +```csharp +public ExportTemplate SetAlias(string alias) +``` + + +--- + +#### SetCategory + +```csharp +public ExportTemplate SetCategory(TemplateCategory category) +``` + + +--- + +#### SetExportStrategy + +```csharp +public ExportTemplate SetExportStrategy(ExportStrategy exportStrategy) +``` + + +--- + +#### SetFileExtension + +```csharp +public ExportTemplate SetFileExtension(string fileExtension) +``` + + +--- + +#### SetFileMimeType + +```csharp +public ExportTemplate SetFileMimeType(string fileMimeType) +``` + + +--- + +#### SetName (1 of 2) + +```csharp +public ExportTemplate SetName(string name) +``` + +--- + +#### SetName (2 of 2) + +```csharp +public ExportTemplate SetName(string name, string alias) +``` + + +--- + +#### SetSortOrder + +```csharp +public ExportTemplate SetSortOrder(int sortOrder) +``` + + +--- + +#### SetTemplateView + +```csharp +public ExportTemplate SetTemplateView(string templateViewPath) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/exporttemplatereadonly.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/exporttemplatereadonly.md new file mode 100644 index 00000000000..697a32ec791 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/exporttemplatereadonly.md @@ -0,0 +1,101 @@ +--- +title: ExportTemplateReadOnly +description: API reference for ExportTemplateReadOnly in Umbraco Commerce +--- +## ExportTemplateReadOnly + +```csharp +public class ExportTemplateReadOnly : + StoreAggregateBase, IHasName +``` + +**Inheritance** + +* Class [StoreAggregateBase<TReadOnlySelf,TWritableSelf,TState>](storeaggregatebase-3.md) +* interface [IHasName](ihasname.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Alias + +```csharp +public string Alias { get; set; } +``` + + +--- + +#### Category + +```csharp +public TemplateCategory Category { get; set; } +``` + + +--- + +#### ExportStrategy + +```csharp +public ExportStrategy ExportStrategy { get; set; } +``` + + +--- + +#### FileExtension + +```csharp +public string FileExtension { get; set; } +``` + + +--- + +#### FileMimeType + +```csharp +public string FileMimeType { get; set; } +``` + + +--- + +#### IsDeleted + +```csharp +public bool IsDeleted { get; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; set; } +``` + + +--- + +#### SortOrder + +```csharp +public int SortOrder { get; set; } +``` + + +--- + +#### TemplateView + +```csharp +public string TemplateView { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/formattedamount.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/formattedamount.md new file mode 100644 index 00000000000..aedcaecad78 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/formattedamount.md @@ -0,0 +1,80 @@ +--- +title: FormattedAmount +description: API reference for FormattedAmount in Umbraco Commerce +--- +## FormattedAmount + +An amount formatted for the given amount [`Currency`](currency.md) + +```csharp +public sealed class FormattedAmount : ValueObjectBase +``` + +**Inheritance** + +* Class [ValueObjectBase](../../umbraco-commerce-common/umbraco-commerce-common-models/valueobjectbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### CurrencyId + +Gets the ID of the [`Currency`](currency.md) of the price + +```csharp +public Guid CurrencyId { get; } +``` + + +--- + +#### Value + +Gets the value of the amount formatted with a currency symbol + +```csharp +public string Value { get; } +``` + + +--- + +#### ValueNoSymbol + +Gets the value of the amount formatted without a currency symbol + +```csharp +public string ValueNoSymbol { get; } +``` + + +### Methods + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + +--- + +#### ToString + +```csharp +public override string ToString() +``` + + +### Operators + +#### FormattedAmount Implicit + +```csharp +public static implicit operator string(FormattedAmount amount) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/formattedprice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/formattedprice.md new file mode 100644 index 00000000000..993bc315375 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/formattedprice.md @@ -0,0 +1,124 @@ +--- +title: FormattedPrice +description: API reference for FormattedPrice in Umbraco Commerce +--- +## FormattedPrice + +A price formatted for the given prices [`Currency`](currency.md) + +```csharp +public sealed class FormattedPrice : ValueObjectBase +``` + +**Inheritance** + +* Class [ValueObjectBase](../../umbraco-commerce-common/umbraco-commerce-common-models/valueobjectbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### CurrencyId + +Gets the ID of the [`Currency`](currency.md) of the price + +```csharp +public Guid CurrencyId { get; } +``` + + +--- + +#### Tax + +Gets the tax value of the price formatted with a currency symbol + +```csharp +public string Tax { get; } +``` + + +--- + +#### TaxNoSymbol + +Gets the tax value of the price formatted without a currency symbol + +```csharp +public string TaxNoSymbol { get; } +``` + + +--- + +#### WithoutTax + +Gets the value of the price without tax formatted with a currency symbol + +```csharp +public string WithoutTax { get; } +``` + + +--- + +#### WithoutTaxNoSymbol + +Gets the value of the price without tax formatted without a currency symbol + +```csharp +public string WithoutTaxNoSymbol { get; } +``` + + +--- + +#### WithTax + +Gets the value of the price with tax formatted with a currency symbol + +```csharp +public string WithTax { get; } +``` + + +--- + +#### WithTaxNoSymbol + +Gets the value of the price with tax formatted without a currency symbol + +```csharp +public string WithTaxNoSymbol { get; } +``` + + +### Methods + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + +--- + +#### ToString + +```csharp +public override string ToString() +``` + + +### Operators + +#### FormattedPrice Implicit + +```csharp +public static implicit operator string(FormattedPrice price) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/formattedvalue-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/formattedvalue-1.md new file mode 100644 index 00000000000..a97faf00a81 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/formattedvalue-1.md @@ -0,0 +1,63 @@ +--- +title: FormattedValue +description: API reference for FormattedValue in Umbraco Commerce +--- +## FormattedValue<TValue> + +```csharp +public class FormattedValue : ValueObjectBase +``` + +**Inheritance** + +* Class [ValueObjectBase](../../umbraco-commerce-common/umbraco-commerce-common-models/valueobjectbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### FormattedValue<TValue> + +```csharp +public FormattedValue(TValue value, string valueFormatted) +``` + + +### Properties + +#### Value + +```csharp +public TValue Value { get; } +``` + + +--- + +#### ValueFormatted + +```csharp +public string ValueFormatted { get; } +``` + + +### Methods + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + +--- + +#### ToString + +```csharp +public override string ToString() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/freezableprice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/freezableprice.md new file mode 100644 index 00000000000..3c33d2a0700 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/freezableprice.md @@ -0,0 +1,114 @@ +--- +title: FreezablePrice +description: API reference for FreezablePrice in Umbraco Commerce +--- +## FreezablePrice + +```csharp +public class FreezablePrice : ValueObjectBase +``` + +**Inheritance** + +* Class [ValueObjectBase](../../umbraco-commerce-common/umbraco-commerce-common-models/valueobjectbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### FreezablePrice (1 of 2) + +```csharp +public FreezablePrice(decimal value, Guid currencyId) +``` + +--- + +#### FreezablePrice (2 of 2) + +```csharp +public FreezablePrice(decimal value, Guid currencyId, Guid? countryId, + Guid? regionId = default(Guid?)) +``` + + +### Properties + +#### CountryId + +```csharp +public Guid? CountryId { get; } +``` + + +--- + +#### CurrencyId + +```csharp +public Guid CurrencyId { get; } +``` + + +--- + +#### RegionId + +```csharp +public Guid? RegionId { get; } +``` + + +--- + +#### Value + +```csharp +public decimal Value { get; } +``` + + +### Methods + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + +### Operators + +#### FreezablePrice Implicit (1 of 4) + +```csharp +public static implicit operator FreezablePrice(ProductPrice p) +``` + +--- + +#### FreezablePrice Implicit (2 of 4) + +```csharp +public static implicit operator ProductPrice(FreezablePrice p) +``` + +--- + +#### FreezablePrice Implicit (3 of 4) + +```csharp +public static implicit operator FreezablePrice(ServicePrice p) +``` + +--- + +#### FreezablePrice Implicit (4 of 4) + +```csharp +public static implicit operator ServicePrice(FreezablePrice p) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/frozenprice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/frozenprice.md new file mode 100644 index 00000000000..94c6ce60d3d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/frozenprice.md @@ -0,0 +1,89 @@ +--- +title: FrozenPrice +description: API reference for FrozenPrice in Umbraco Commerce +--- +## FrozenPrice + +```csharp +public class FrozenPrice : EntityBase +``` + +**Inheritance** + +* Class [EntityBase](entitybase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### FrozenPrice (1 of 2) + +```csharp +public FrozenPrice(Guid orderId, string key, FreezablePrice price) +``` + +--- + +#### FrozenPrice (2 of 2) + +```csharp +public FrozenPrice(Guid id, Guid orderId, string key, FreezablePrice price, DateTime created) +``` + + +### Properties + +#### CreateDate + +```csharp +public DateTime CreateDate { get; set; } +``` + + +--- + +#### Id + +```csharp +public override Guid Id { get; } +``` + + +--- + +#### Key + +```csharp +public string Key { get; } +``` + + +--- + +#### OrderId + +```csharp +public Guid OrderId { get; } +``` + + +--- + +#### Price + +```csharp +public FreezablePrice Price { get; set; } +``` + + +### Methods + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/fulfilleddiscount.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/fulfilleddiscount.md new file mode 100644 index 00000000000..ed3084e8fc4 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/fulfilleddiscount.md @@ -0,0 +1,62 @@ +--- +title: FulfilledDiscount +description: API reference for FulfilledDiscount in Umbraco Commerce +--- +## FulfilledDiscount + +```csharp +public class FulfilledDiscount : ValueObjectBase +``` + +**Inheritance** + +* Class [ValueObjectBase](../../umbraco-commerce-common/umbraco-commerce-common-models/valueobjectbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### FulfilledDiscount (1 of 2) + +```csharp +public FulfilledDiscount(DiscountReadOnly discount) +``` + +--- + +#### FulfilledDiscount (2 of 2) + +```csharp +public FulfilledDiscount(Guid discountId, string discountName) +``` + + +### Properties + +#### DiscountId + +```csharp +public Guid DiscountId { get; } +``` + + +--- + +#### DiscountName + +```csharp +public string DiscountName { get; } +``` + + +### Methods + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/giftcard.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/giftcard.md new file mode 100644 index 00000000000..b3455b37386 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/giftcard.md @@ -0,0 +1,246 @@ +--- +title: GiftCard +description: API reference for GiftCard in Umbraco Commerce +--- +## GiftCard + +```csharp +public class GiftCard : GiftCardReadOnly +``` + +**Inheritance** + +* Class [GiftCardReadOnly](giftcardreadonly.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### Create (1 of 2) + +```csharp +public static GiftCard Create(IUnitOfWork uow, Guid storeId, string code, Guid currencyId, + decimal originalAmount, Guid? orderId = default(Guid?)) +``` + +--- + +#### Create (2 of 2) + +```csharp +public static GiftCard Create(IUnitOfWork uow, Guid id, Guid storeId, string code, Guid currencyId, + decimal originalAmount, Guid? orderId = default(Guid?)) +``` + + +--- + +#### RemoveProperties + +Removes a series of properties from the order + +```csharp +public GiftCard RemoveProperties(IEnumerable aliases) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| aliases | The aliases of the properties to remove | + +**Returns** + +The updated [`GiftCard`](giftcard.md) entity + + +--- + +#### RemoveProperty + +Removes a property from the order + +```csharp +public GiftCard RemoveProperty(string alias) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| alias | The alias of the property to remove | + +**Returns** + +The updated [`GiftCard`](giftcard.md) entity + + +--- + +#### SetActive + +```csharp +public GiftCard SetActive(bool isActive) +``` + + +--- + +#### SetCode + +```csharp +public GiftCard SetCode(string code) +``` + + +--- + +#### SetCurrency (1 of 2) + +```csharp +public GiftCard SetCurrency(CurrencyReadOnly currency) +``` + +--- + +#### SetCurrency (2 of 2) + +```csharp +public GiftCard SetCurrency(Guid currencyId) +``` + + +--- + +#### SetExpiryDate + +```csharp +public GiftCard SetExpiryDate(DateTime? expiryDate) +``` + + +--- + +#### SetOrder (1 of 2) + +```csharp +public GiftCard SetOrder(OrderReadOnly order) +``` + +--- + +#### SetOrder (2 of 2) + +```csharp +public GiftCard SetOrder(Guid? orderId) +``` + + +--- + +#### SetOriginalAmount + +```csharp +public GiftCard SetOriginalAmount(decimal amount, bool resetRemainingAmount = false) +``` + + +--- + +#### SetProperties (1 of 2) + +Sets a series of properties on the order + +```csharp +public GiftCard SetProperties(IDictionary properties, + SetBehavior setBehavior = SetBehavior.Merge) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| properties | The properties to set | +| setBehavior | The behavior of the set operation, whether to `Merge` the properties into the orders existing properties collection or `Replace` the orders property collection entirely | + +**Returns** + +The updated [`GiftCard`](giftcard.md) entity + +--- + +#### SetProperties (2 of 2) + +Sets a series of properties on the order + +```csharp +public GiftCard SetProperties(IDictionary properties, + SetBehavior setBehavior = SetBehavior.Merge) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| properties | The properties to set | +| setBehavior | The behavior of the set operation, whether to `Merge` the properties into the orders existing properties collection or `Replace` the orders property collection entirely | + +**Returns** + +The updated [`GiftCard`](giftcard.md) entity + + +--- + +#### SetProperty (1 of 2) + +Sets a property on the order + +```csharp +public GiftCard SetProperty(string alias, string value) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| alias | The alias of the property to set | +| value | The value of the property | + +**Returns** + +The updated [`GiftCard`](giftcard.md) entity + +--- + +#### SetProperty (2 of 2) + +Sets a property on the order + +```csharp +public GiftCard SetProperty(string alias, PropertyValue value) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| alias | The alias of the property to set | +| value | The [`PropertyValue`](propertyvalue.md) of the property | + +**Returns** + +The updated [`GiftCard`](giftcard.md) entity + + +--- + +#### SetRemainingAmount + +```csharp +public GiftCard SetRemainingAmount(decimal amount) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/giftcardactivationmethod.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/giftcardactivationmethod.md new file mode 100644 index 00000000000..c04066b90c7 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/giftcardactivationmethod.md @@ -0,0 +1,22 @@ +--- +title: GiftCardActivationMethod +description: API reference for GiftCardActivationMethod in Umbraco Commerce +--- +## GiftCardActivationMethod + +```csharp +public enum GiftCardActivationMethod +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +**Values** + +| Name | Value | Description | +| --- | --- | --- | +| Manual | `0` | | +| Automatic | `1` | | +| OrderStatus | `2` | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/giftcardadjustment.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/giftcardadjustment.md new file mode 100644 index 00000000000..43ebe827641 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/giftcardadjustment.md @@ -0,0 +1,64 @@ +--- +title: GiftCardAdjustment +description: API reference for GiftCardAdjustment in Umbraco Commerce +--- +## GiftCardAdjustment + +```csharp +public class GiftCardAdjustment : AmountAdjustment +``` + +**Inheritance** + +* Class [AmountAdjustment<TSelf>](amountadjustment-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### GiftCardAdjustment + +The default constructor. + +```csharp +public GiftCardAdjustment() +``` + + +--- + +#### GiftCardAdjustment (1 of 2) + +```csharp +public GiftCardAdjustment(GiftCardReadOnly giftCard, Amount amount) +``` + +--- + +#### GiftCardAdjustment (2 of 2) + +```csharp +public GiftCardAdjustment(Guid giftCardId, string giftCardCode, Amount amount) +``` + + +### Properties + +#### GiftCardCode + +```csharp +public string GiftCardCode { get; } +``` + + +--- + +#### GiftCardId + +```csharp +public Guid GiftCardId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/giftcardreadonly.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/giftcardreadonly.md new file mode 100644 index 00000000000..97e388ce58c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/giftcardreadonly.md @@ -0,0 +1,128 @@ +--- +title: GiftCardReadOnly +description: API reference for GiftCardReadOnly in Umbraco Commerce +--- +## GiftCardReadOnly + +```csharp +public class GiftCardReadOnly : StoreAggregateBase, + IHasReadableProperties +``` + +**Inheritance** + +* Class [StoreAggregateBase<TReadOnlySelf,TWritableSelf,TState>](storeaggregatebase-3.md) +* interface [IHasReadableProperties](ihasreadableproperties.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Code + +```csharp +public string Code { get; } +``` + + +--- + +#### CreateDate + +```csharp +public DateTime CreateDate { get; } +``` + + +--- + +#### CurrencyId + +```csharp +public Guid CurrencyId { get; } +``` + + +--- + +#### ExpiryDate + +```csharp +public DateTime? ExpiryDate { get; } +``` + + +--- + +#### IsActive + +```csharp +public bool IsActive { get; } +``` + + +--- + +#### IsDeleted + +```csharp +public bool IsDeleted { get; } +``` + + +--- + +#### OrderId + +```csharp +public Guid? OrderId { get; } +``` + + +--- + +#### OrderNumber + +```csharp +public string OrderNumber { get; } +``` + + +--- + +#### OriginalAmount + +```csharp +public Amount OriginalAmount { get; } +``` + + +--- + +#### Properties + +```csharp +public IReadOnlyDictionary Properties { get; } +``` + + +--- + +#### RemainingAmount + +```csharp +public Amount RemainingAmount { get; } +``` + + +--- + +#### Status + +```csharp +public GiftCardStatus Status { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/giftcardstatus.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/giftcardstatus.md new file mode 100644 index 00000000000..0ac312eef80 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/giftcardstatus.md @@ -0,0 +1,23 @@ +--- +title: GiftCardStatus +description: API reference for GiftCardStatus in Umbraco Commerce +--- +## GiftCardStatus + +```csharp +public enum GiftCardStatus +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +**Values** + +| Name | Value | Description | +| --- | --- | --- | +| Active | `0` | | +| Inactive | `1` | | +| Expired | `2` | | +| Redeemed | `3` | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/iamount.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/iamount.md new file mode 100644 index 00000000000..448d5cdf258 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/iamount.md @@ -0,0 +1,32 @@ +--- +title: IAmount +description: API reference for IAmount in Umbraco Commerce +--- +## IAmount + +```csharp +public interface IAmount +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### CurrencyId + +```csharp +public Guid CurrencyId { get; } +``` + + +--- + +#### Value + +```csharp +public decimal Value { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihasalias.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihasalias.md new file mode 100644 index 00000000000..b594e5b8e66 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihasalias.md @@ -0,0 +1,23 @@ +--- +title: IHasAlias +description: API reference for IHasAlias in Umbraco Commerce +--- +## IHasAlias + +```csharp +public interface IHasAlias +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Alias + +```csharp +public string Alias { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihascode.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihascode.md new file mode 100644 index 00000000000..4f16536390a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihascode.md @@ -0,0 +1,23 @@ +--- +title: IHasCode +description: API reference for IHasCode in Umbraco Commerce +--- +## IHasCode + +```csharp +public interface IHasCode +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Code + +```csharp +public string Code { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihasname.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihasname.md new file mode 100644 index 00000000000..26705b8dc32 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihasname.md @@ -0,0 +1,23 @@ +--- +title: IHasName +description: API reference for IHasName in Umbraco Commerce +--- +## IHasName + +```csharp +public interface IHasName +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Name + +```csharp +public string Name { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihasreadableallowedcountries.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihasreadableallowedcountries.md new file mode 100644 index 00000000000..736188d0265 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihasreadableallowedcountries.md @@ -0,0 +1,31 @@ +--- +title: IHasReadableAllowedCountries +description: API reference for IHasReadableAllowedCountries in Umbraco Commerce +--- +## IHasReadableAllowedCountries + +```csharp +public interface IHasReadableAllowedCountries +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### IsAllowedInCountry (1 of 2) + +```csharp +public bool IsAllowedInCountry(CountryReadOnly country) +``` + +--- + +#### IsAllowedInCountry (2 of 2) + +```csharp +public bool IsAllowedInCountry(Guid countryId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihasreadableallowedcountryregions.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihasreadableallowedcountryregions.md new file mode 100644 index 00000000000..569ee068b49 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihasreadableallowedcountryregions.md @@ -0,0 +1,35 @@ +--- +title: IHasReadableAllowedCountryRegions +description: API reference for IHasReadableAllowedCountryRegions in Umbraco Commerce +--- +## IHasReadableAllowedCountryRegions + +```csharp +public interface IHasReadableAllowedCountryRegions : IHasReadableAllowedCountries +``` + +**Inheritance** + +* interface [IHasReadableAllowedCountries](ihasreadableallowedcountries.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### IsAllowedInRegion (1 of 2) + +```csharp +public bool IsAllowedInRegion(RegionReadOnly region) +``` + +--- + +#### IsAllowedInRegion (2 of 2) + +```csharp +public bool IsAllowedInRegion(Guid countryId, Guid regionId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihasreadableorderlines-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihasreadableorderlines-1.md new file mode 100644 index 00000000000..3452c0f0381 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihasreadableorderlines-1.md @@ -0,0 +1,24 @@ +--- +title: IHasReadableOrderLines +description: API reference for IHasReadableOrderLines in Umbraco Commerce +--- +## IHasReadableOrderLines<T> + +```csharp +public interface IHasReadableOrderLines + where T : OrderLineReadOnly +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### OrderLines + +```csharp +public IReadOnlyCollection OrderLines { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihasreadableorderlines.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihasreadableorderlines.md new file mode 100644 index 00000000000..7a1c65aee80 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihasreadableorderlines.md @@ -0,0 +1,18 @@ +--- +title: IHasReadableOrderLines +description: API reference for IHasReadableOrderLines in Umbraco Commerce +--- +## IHasReadableOrderLines + +```csharp +public interface IHasReadableOrderLines : IHasReadableOrderLines +``` + +**Inheritance** + +* interface [IHasReadableOrderLines<T>](ihasreadableorderlines-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihasreadableproperties.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihasreadableproperties.md new file mode 100644 index 00000000000..09f4c4a5274 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihasreadableproperties.md @@ -0,0 +1,23 @@ +--- +title: IHasReadableProperties +description: API reference for IHasReadableProperties in Umbraco Commerce +--- +## IHasReadableProperties + +```csharp +public interface IHasReadableProperties +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Properties + +```csharp +public IReadOnlyDictionary Properties { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihasreadableserviceprices.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihasreadableserviceprices.md new file mode 100644 index 00000000000..c10466c33bd --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihasreadableserviceprices.md @@ -0,0 +1,65 @@ +--- +title: IHasReadableServicePrices +description: API reference for IHasReadableServicePrices in Umbraco Commerce +--- +## IHasReadableServicePrices + +```csharp +public interface IHasReadableServicePrices +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### GetCountryPriceForCurrency (1 of 2) + +```csharp +public decimal GetCountryPriceForCurrency(CountryReadOnly country, CurrencyReadOnly currency) +``` + +--- + +#### GetCountryPriceForCurrency (2 of 2) + +```csharp +public decimal GetCountryPriceForCurrency(Guid countryId, Guid currencyId) +``` + + +--- + +#### GetDefaultPriceForCurrency (1 of 2) + +```csharp +public decimal GetDefaultPriceForCurrency(CurrencyReadOnly currency) +``` + +--- + +#### GetDefaultPriceForCurrency (2 of 2) + +```csharp +public decimal GetDefaultPriceForCurrency(Guid currencyId) +``` + + +--- + +#### GetRegionPriceForCurrency (1 of 2) + +```csharp +public decimal GetRegionPriceForCurrency(RegionReadOnly region, CurrencyReadOnly currency) +``` + +--- + +#### GetRegionPriceForCurrency (2 of 2) + +```csharp +public decimal GetRegionPriceForCurrency(Guid countryId, Guid regionId, Guid currencyId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihassortorder.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihassortorder.md new file mode 100644 index 00000000000..56f3089d861 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihassortorder.md @@ -0,0 +1,23 @@ +--- +title: IHasSortOrder +description: API reference for IHasSortOrder in Umbraco Commerce +--- +## IHasSortOrder + +```csharp +public interface IHasSortOrder +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### SortOrder + +```csharp +public int SortOrder { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihasstore.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihasstore.md new file mode 100644 index 00000000000..d782d9d66fa --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihasstore.md @@ -0,0 +1,23 @@ +--- +title: IHasStore +description: API reference for IHasStore in Umbraco Commerce +--- +## IHasStore + +```csharp +public interface IHasStore +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### StoreId + +```csharp +public Guid StoreId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihaswritableserviceprices-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihaswritableserviceprices-1.md new file mode 100644 index 00000000000..0ccf8c24753 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihaswritableserviceprices-1.md @@ -0,0 +1,175 @@ +--- +title: IHasWritableServicePrices +description: API reference for IHasWritableServicePrices in Umbraco Commerce +--- +## IHasWritableServicePrices<TAggregate> + +```csharp +public interface IHasWritableServicePrices : IHasReadableServicePrices +``` + +**Inheritance** + +* interface [IHasReadableServicePrices](ihasreadableserviceprices.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### ClearCountryPriceForCurrency (1 of 2) + +```csharp +public TAggregate ClearCountryPriceForCurrency(CountryReadOnly country, CurrencyReadOnly currency) +``` + +--- + +#### ClearCountryPriceForCurrency (2 of 2) + +```csharp +public TAggregate ClearCountryPriceForCurrency(Guid countryId, Guid currencyId) +``` + + +--- + +#### ClearDefaultPriceForCurrency (1 of 2) + +```csharp +public TAggregate ClearDefaultPriceForCurrency(CurrencyReadOnly currency) +``` + +--- + +#### ClearDefaultPriceForCurrency (2 of 2) + +```csharp +public TAggregate ClearDefaultPriceForCurrency(Guid currencyId) +``` + + +--- + +#### ClearPricesForCountry (1 of 2) + +```csharp +public TAggregate ClearPricesForCountry(CountryReadOnly country, CurrencyReadOnly currency = null) +``` + +--- + +#### ClearPricesForCountry (2 of 2) + +```csharp +public TAggregate ClearPricesForCountry(Guid countryId, Guid? currencyId = default(Guid?)) +``` + + +--- + +#### ClearPricesForCurrency (1 of 2) + +```csharp +public TAggregate ClearPricesForCurrency(CurrencyReadOnly currency) +``` + +--- + +#### ClearPricesForCurrency (2 of 2) + +```csharp +public TAggregate ClearPricesForCurrency(Guid currencyId) +``` + + +--- + +#### ClearPricesForRegion (1 of 2) + +```csharp +public TAggregate ClearPricesForRegion(RegionReadOnly region, CurrencyReadOnly currency = null) +``` + +--- + +#### ClearPricesForRegion (2 of 2) + +```csharp +public TAggregate ClearPricesForRegion(Guid countryId, Guid regionId, + Guid? currencyId = default(Guid?)) +``` + + +--- + +#### ClearRegionPriceForCurrency (1 of 2) + +```csharp +public TAggregate ClearRegionPriceForCurrency(RegionReadOnly region, CurrencyReadOnly currency) +``` + +--- + +#### ClearRegionPriceForCurrency (2 of 2) + +```csharp +public TAggregate ClearRegionPriceForCurrency(Guid countryId, Guid regionId, Guid currencyId) +``` + + +--- + +#### SetCountryPriceForCurrency (1 of 2) + +```csharp +public TAggregate SetCountryPriceForCurrency(CountryReadOnly country, CurrencyReadOnly currency, + decimal value) +``` + +--- + +#### SetCountryPriceForCurrency (2 of 2) + +```csharp +public TAggregate SetCountryPriceForCurrency(Guid countryId, Guid currencyId, decimal value) +``` + + +--- + +#### SetDefaultPriceForCurrency (1 of 2) + +```csharp +public TAggregate SetDefaultPriceForCurrency(CurrencyReadOnly currency, decimal value) +``` + +--- + +#### SetDefaultPriceForCurrency (2 of 2) + +```csharp +public TAggregate SetDefaultPriceForCurrency(Guid currencyId, decimal value) +``` + + +--- + +#### SetRegionPriceForCurrency (1 of 2) + +```csharp +public TAggregate SetRegionPriceForCurrency(RegionReadOnly region, CurrencyReadOnly currency, + decimal value) +``` + +--- + +#### SetRegionPriceForCurrency (2 of 2) + +```csharp +public TAggregate SetRegionPriceForCurrency(Guid countryId, Guid regionId, Guid currencyId, + decimal value) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihaswrtiableallowedcountries-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihaswrtiableallowedcountries-1.md new file mode 100644 index 00000000000..c6987e3f94f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihaswrtiableallowedcountries-1.md @@ -0,0 +1,52 @@ +--- +title: IHasWrtiableAllowedCountries +description: API reference for IHasWrtiableAllowedCountries in Umbraco Commerce +--- +## IHasWrtiableAllowedCountries<TAggregate> + +```csharp +public interface IHasWrtiableAllowedCountries : IHasReadableAllowedCountries +``` + +**Inheritance** + +* interface [IHasReadableAllowedCountries](ihasreadableallowedcountries.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### AllowInCountry (1 of 2) + +```csharp +public TAggregate AllowInCountry(CountryReadOnly country) +``` + +--- + +#### AllowInCountry (2 of 2) + +```csharp +public TAggregate AllowInCountry(Guid countryId) +``` + + +--- + +#### DisallowInCountry (1 of 2) + +```csharp +public TAggregate DisallowInCountry(CountryReadOnly country) +``` + +--- + +#### DisallowInCountry (2 of 2) + +```csharp +public TAggregate DisallowInCountry(Guid countryId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihaswrtiableallowedcountryregions-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihaswrtiableallowedcountryregions-1.md new file mode 100644 index 00000000000..1472875c12c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ihaswrtiableallowedcountryregions-1.md @@ -0,0 +1,54 @@ +--- +title: IHasWrtiableAllowedCountryRegions +description: API reference for IHasWrtiableAllowedCountryRegions in Umbraco Commerce +--- +## IHasWrtiableAllowedCountryRegions<TAggregate> + +```csharp +public interface IHasWrtiableAllowedCountryRegions : IHasReadableAllowedCountryRegions, + IHasWrtiableAllowedCountries +``` + +**Inheritance** + +* interface [IHasReadableAllowedCountryRegions](ihasreadableallowedcountryregions.md) +* interface [IHasWrtiableAllowedCountries<TAggregate>](ihaswrtiableallowedcountries-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### AllowInRegion (1 of 2) + +```csharp +public TAggregate AllowInRegion(RegionReadOnly region) +``` + +--- + +#### AllowInRegion (2 of 2) + +```csharp +public TAggregate AllowInRegion(Guid countryId, Guid regionId) +``` + + +--- + +#### DisallowInRegion (1 of 2) + +```csharp +public TAggregate DisallowInRegion(RegionReadOnly region) +``` + +--- + +#### DisallowInRegion (2 of 2) + +```csharp +public TAggregate DisallowInRegion(Guid countryId, Guid regionId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/inuseproductattribute.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/inuseproductattribute.md new file mode 100644 index 00000000000..7a376bd2d02 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/inuseproductattribute.md @@ -0,0 +1,41 @@ +--- +title: InUseProductAttribute +description: API reference for InUseProductAttribute in Umbraco Commerce +--- +## InUseProductAttribute + +```csharp +public class InUseProductAttribute +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Alias + +```csharp +public string Alias { get; } +``` + + +--- + +#### Name + +```csharp +public ReadOnlyTranslatedValue Name { get; } +``` + + +--- + +#### Values + +```csharp +public IReadOnlyCollection Values { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/inuseproductattributevalue.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/inuseproductattributevalue.md new file mode 100644 index 00000000000..0601a9048b9 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/inuseproductattributevalue.md @@ -0,0 +1,32 @@ +--- +title: InUseProductAttributeValue +description: API reference for InUseProductAttributeValue in Umbraco Commerce +--- +## InUseProductAttributeValue + +```csharp +public class InUseProductAttributeValue +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Alias + +```csharp +public string Alias { get; } +``` + + +--- + +#### Name + +```csharp +public ReadOnlyTranslatedValue Name { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/iprice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/iprice.md new file mode 100644 index 00000000000..2905a9d3a5c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/iprice.md @@ -0,0 +1,50 @@ +--- +title: IPrice +description: API reference for IPrice in Umbraco Commerce +--- +## IPrice + +```csharp +public interface IPrice +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### CurrencyId + +```csharp +public Guid CurrencyId { get; } +``` + + +--- + +#### Tax + +```csharp +public decimal Tax { get; } +``` + + +--- + +#### WithoutTax + +```csharp +public decimal WithoutTax { get; } +``` + + +--- + +#### WithTax + +```csharp +public decimal WithTax { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/iproductsnapshot.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/iproductsnapshot.md new file mode 100644 index 00000000000..0a6e265d7dd --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/iproductsnapshot.md @@ -0,0 +1,104 @@ +--- +title: IProductSnapshot +description: API reference for IProductSnapshot in Umbraco Commerce +--- +## IProductSnapshot + +```csharp +public interface IProductSnapshot +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Attributes + +```csharp +public IEnumerable Attributes { get; } +``` + + +--- + +#### IsGiftCard + +```csharp +public bool IsGiftCard { get; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; } +``` + + +--- + +#### Prices + +```csharp +public IEnumerable Prices { get; } +``` + + +--- + +#### ProductReference + +```csharp +public string ProductReference { get; } +``` + + +--- + +#### ProductVariantReference + +```csharp +public string ProductVariantReference { get; } +``` + + +--- + +#### Properties + +```csharp +public IDictionary Properties { get; } +``` + + +--- + +#### Sku + +```csharp +public string Sku { get; } +``` + + +--- + +#### StoreId + +```csharp +public Guid StoreId { get; } +``` + + +--- + +#### TaxClassId + +```csharp +public Guid? TaxClassId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/iproductsummary.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/iproductsummary.md new file mode 100644 index 00000000000..23ead24cb0b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/iproductsummary.md @@ -0,0 +1,27 @@ +--- +title: IProductSummary +description: API reference for IProductSummary in Umbraco Commerce +--- +## IProductSummary + +```csharp +public interface IProductSummary : IProductSummaryCommon +``` + +**Inheritance** + +* interface [IProductSummaryCommon](iproductsummarycommon.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### HasVariants + +```csharp +public bool HasVariants { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/iproductsummarycommon.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/iproductsummarycommon.md new file mode 100644 index 00000000000..802feab57d8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/iproductsummarycommon.md @@ -0,0 +1,50 @@ +--- +title: IProductSummaryCommon +description: API reference for IProductSummaryCommon in Umbraco Commerce +--- +## IProductSummaryCommon + +```csharp +public interface IProductSummaryCommon +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Name + +```csharp +public string Name { get; } +``` + + +--- + +#### Prices + +```csharp +public IEnumerable Prices { get; } +``` + + +--- + +#### Reference + +```csharp +public string Reference { get; } +``` + + +--- + +#### Sku + +```csharp +public string Sku { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/iproductvariantsummary.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/iproductvariantsummary.md new file mode 100644 index 00000000000..c422529993f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/iproductvariantsummary.md @@ -0,0 +1,27 @@ +--- +title: IProductVariantSummary +description: API reference for IProductVariantSummary in Umbraco Commerce +--- +## IProductVariantSummary + +```csharp +public interface IProductVariantSummary : IProductSummaryCommon +``` + +**Inheritance** + +* interface [IProductSummaryCommon](iproductsummarycommon.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Attributes + +```csharp +public IReadOnlyDictionary Attributes { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/iso3166country.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/iso3166country.md new file mode 100644 index 00000000000..ffc73672ca0 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/iso3166country.md @@ -0,0 +1,52 @@ +--- +title: Iso3166Country +description: API reference for Iso3166Country in Umbraco Commerce +--- +## Iso3166Country + +```csharp +public class Iso3166Country +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### Iso3166Country + +The default constructor. + +```csharp +public Iso3166Country() +``` + + +### Properties + +#### Code + +```csharp +public string Code { get; set; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; set; } +``` + + +--- + +#### Regions + +```csharp +public Iso3166CountryRegion[] Regions { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/iso3166countryregion.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/iso3166countryregion.md new file mode 100644 index 00000000000..a9073be1309 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/iso3166countryregion.md @@ -0,0 +1,43 @@ +--- +title: Iso3166CountryRegion +description: API reference for Iso3166CountryRegion in Umbraco Commerce +--- +## Iso3166CountryRegion + +```csharp +public class Iso3166CountryRegion +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### Iso3166CountryRegion + +The default constructor. + +```csharp +public Iso3166CountryRegion() +``` + + +### Properties + +#### Code + +```csharp +public string Code { get; set; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/iso4217.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/iso4217.md new file mode 100644 index 00000000000..fa61d491822 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/iso4217.md @@ -0,0 +1,23 @@ +--- +title: Iso4217 +description: API reference for Iso4217 in Umbraco Commerce +--- +## Iso4217 + +```csharp +public static class Iso4217 +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Fields + +#### CurrencyCodes + +```csharp +public static IReadOnlyDictionary CurrencyCodes; +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/isoftdeletable.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/isoftdeletable.md new file mode 100644 index 00000000000..568e68f27e5 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/isoftdeletable.md @@ -0,0 +1,23 @@ +--- +title: ISoftDeletable +description: API reference for ISoftDeletable in Umbraco Commerce +--- +## ISoftDeletable + +```csharp +public interface ISoftDeletable +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### DeletedTimestamp + +```csharp +public long DeletedTimestamp { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/isortable.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/isortable.md new file mode 100644 index 00000000000..ae7f296b4a2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/isortable.md @@ -0,0 +1,23 @@ +--- +title: ISortable +description: API reference for ISortable in Umbraco Commerce +--- +## ISortable + +```csharp +public interface ISortable +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### SortOrder + +```csharp +public int SortOrder { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/itaggablereadonlyentity.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/itaggablereadonlyentity.md new file mode 100644 index 00000000000..c9d257d1c53 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/itaggablereadonlyentity.md @@ -0,0 +1,23 @@ +--- +title: ITaggableReadOnlyEntity +description: API reference for ITaggableReadOnlyEntity in Umbraco Commerce +--- +## ITaggableReadOnlyEntity + +```csharp +public interface ITaggableReadOnlyEntity +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Tags + +```csharp +public IReadOnlyCollection Tags { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/itaggablewritableentity-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/itaggablewritableentity-1.md new file mode 100644 index 00000000000..caed4e66551 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/itaggablewritableentity-1.md @@ -0,0 +1,68 @@ +--- +title: ITaggableWritableEntity +description: API reference for ITaggableWritableEntity in Umbraco Commerce +--- +## ITaggableWritableEntity<TEntity> + +```csharp +public interface ITaggableWritableEntity +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### AddTag + +```csharp +public TEntity AddTag(string tag) +``` + + +--- + +#### AddTags + +```csharp +public TEntity AddTags(IEnumerable tags) +``` + + +--- + +#### ClearTags + +```csharp +public TEntity ClearTags() +``` + + +--- + +#### RemoveTag + +```csharp +public TEntity RemoveTag(string tag) +``` + + +--- + +#### RemoveTags + +```csharp +public TEntity RemoveTags(IEnumerable tags) +``` + + +--- + +#### SetTags + +```csharp +public TEntity SetTags(IEnumerable tags, SetBehavior setBehavior = SetBehavior.Replace) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/lazyproperty.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/lazyproperty.md new file mode 100644 index 00000000000..8b78cc2ba25 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/lazyproperty.md @@ -0,0 +1,66 @@ +--- +title: LazyProperty +description: API reference for LazyProperty in Umbraco Commerce +--- +## LazyProperty + +```csharp +public class LazyProperty +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### LazyProperty (1 of 2) + +```csharp +public LazyProperty(Func getter) +``` + +--- + +#### LazyProperty (2 of 2) + +```csharp +public LazyProperty(Lazy getter) +``` + + +### Properties + +#### HasSetValue + +```csharp +public bool HasSetValue { get; } +``` + + +--- + +#### Value + +```csharp +public object Value { get; set; } +``` + + +### Methods + +#### Reset (1 of 2) + +```csharp +public void Reset(Func getter) +``` + +--- + +#### Reset (2 of 2) + +```csharp +public void Reset(Lazy getter) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/matchtype.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/matchtype.md new file mode 100644 index 00000000000..157a8d74748 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/matchtype.md @@ -0,0 +1,21 @@ +--- +title: MatchType +description: API reference for MatchType in Umbraco Commerce +--- +## MatchType + +```csharp +public enum MatchType +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +**Values** + +| Name | Value | Description | +| --- | --- | --- | +| All | `0` | | +| Any | `1` | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/order.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/order.md new file mode 100644 index 00000000000..f7454c04db0 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/order.md @@ -0,0 +1,1433 @@ +--- +title: Order +description: API reference for Order in Umbraco Commerce +--- +## Order + +A writable Order entity + +```csharp +public class Order : OrderReadOnly, ITaggableWritableEntity +``` + +**Inheritance** + +* Class [OrderReadOnly](orderreadonly.md) +* interface [ITaggableWritableEntity<TEntity>](itaggablewritableentity-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### IsFinalized + +```csharp +public override bool IsFinalized { get; } +``` + + +--- + +#### IsFinalizing + +```csharp +public override bool IsFinalizing { get; } +``` + + +### Methods + +#### Create (1 of 2) + +Creates a new instance of an [`Order`](order.md) + +```csharp +public static Order Create(IUnitOfWork uow, Guid storeId, string languageIsoCode, Guid currencyId, + Guid taxClassId, Guid orderStatusId, Guid? paymentMethodId = default(Guid?), + Guid? paymentCountryId = default(Guid?), Guid? paymentRegionId = default(Guid?), + Guid? shippingMethodId = default(Guid?), Guid? shippingCountryId = default(Guid?), + Guid? shippingRegionId = default(Guid?), string customerReference = null) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| uow | An active IUnitOfWork to use for write operations | +| storeId | The ID of the [`Store`](store.md) the order belongs to | +| languageIsoCode | The ISO Code of the language of the order | +| currencyId | The ID of the [`Currency`](currency.md) of the order | +| taxClassId | The ID of the [`TaxClass`](taxclass.md) of the order | +| orderStatusId | The ID of the [`OrderStatus`](orderstatus.md) of the order | +| paymentMethodId | The ID of the [`PaymentMethod`](paymentmethod.md) of the order | +| paymentCountryId | The ID of the payment [`Country`](country.md) of the order | +| paymentRegionId | The ID of the payment [`Region`](region.md) of the order | +| shippingMethodId | The ID of the [`ShippingMethod`](shippingmethod.md) of the order | +| shippingCountryId | The ID of the shipping [`Country`](country.md) of the order | +| shippingRegionId | The ID of the shipping [`Region`](region.md) of the order | +| customerReference | The unique reference of the customer the order belongs to | + +**Returns** + +A new [`Order`](order.md) instance + +--- + +#### Create (2 of 2) + +Creates a new instance of an [`Order`](order.md) + +```csharp +public static Order Create(IUnitOfWork uow, Guid id, Guid storeId, string languageIsoCode, + Guid currencyId, Guid taxClassId, Guid orderStatusId, Guid? paymentMethodId = default(Guid?), + Guid? paymentCountryId = default(Guid?), Guid? paymentRegionId = default(Guid?), + Guid? shippingMethodId = default(Guid?), Guid? shippingCountryId = default(Guid?), + Guid? shippingRegionId = default(Guid?), string customerReference = null) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| uow | An active IUnitOfWork to use for write operations | +| id | And explicit ID to assign to the [`Order`](order.md) | +| storeId | The ID of the [`Store`](store.md) the order belongs to | +| languageIsoCode | The ISO Code of the language of the order | +| currencyId | The ID of the [`Currency`](currency.md) of the order | +| taxClassId | The ID of the [`TaxClass`](taxclass.md) of the order | +| orderStatusId | The ID of the [`OrderStatus`](orderstatus.md) of the order | +| paymentMethodId | The ID of the [`PaymentMethod`](paymentmethod.md) of the order | +| paymentCountryId | The ID of the payment [`Country`](country.md) of the order | +| paymentRegionId | The ID of the payment [`Region`](region.md) of the order | +| shippingMethodId | The ID of the [`ShippingMethod`](shippingmethod.md) of the order | +| shippingCountryId | The ID of the shipping [`Country`](country.md) of the order | +| shippingRegionId | The ID of the shipping [`Region`](region.md) of the order | +| customerReference | The unique reference of the customer the order belongs to | + +**Returns** + +A new [`Order`](order.md) instance + + +--- + +#### AddProduct (1 of 3) + +Adds a product to the order + +```csharp +public Order AddProduct(string productReference, decimal qty, + IDictionary properties, string bundleId, string parentBundleId, + IEnumerable uniquenessPropertyAliases, IProductService productService) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| productReference | The unique reference of the product | +| qty | The quantity of the product to add to the order | +| properties | A collection of properties to assign to the product order line | +| bundleId | A bundle ID to assign to the product order line to identify it as a bundle | +| parentBundleId | The bundle ID of an existing bundle to assign the product order line to as a bundle item | +| uniquenessPropertyAliases | A collection of property aliases to use to identify product uniqueness when adding the product to the order | +| productService | A [`IProductService`](../umbraco-commerce-core-services/iproductservice.md) instance to fetch the product information from | + +**Returns** + +The updated [`Order`](order.md) entity + +--- + +#### AddProduct (2 of 3) + +Adds a product variant to the order + +```csharp +public Order AddProduct(string productReference, string productVariantReference, decimal qty, + IDictionary properties, string bundleId, string parentBundleId, + IEnumerable uniquenessPropertyAliases, IProductService productService) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| productReference | The unique reference of the product | +| productVariantReference | The unique reference of the product variant | +| qty | The quantity of the product to add to the order | +| properties | A collection of properties to assign to the product order line | +| bundleId | A bundle ID to assign to the product order line to identify it as a bundle | +| parentBundleId | The bundle ID of an existing bundle to assign the product order line to as a bundle item | +| uniquenessPropertyAliases | A collection of property aliases to use to identify product uniqueness when adding the product to the order | +| productService | A [`IProductService`](../umbraco-commerce-core-services/iproductservice.md) instance to fetch the product information from | + +**Returns** + +The updated [`Order`](order.md) entity + +--- + +#### AddProduct (3 of 3) + +Adds a product to the order + +```csharp +public Order AddProduct(IProductSnapshot productSnapshot, decimal qty, + IDictionary properties, string bundleId, string parentBundleId, + IEnumerable uniquenessPropertyAliases) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| productSnapshot | A snapshot of the product to add | +| qty | The quantity of the product to add to the order | +| properties | A collection of properties to assign to the product order line | +| bundleId | A bundle ID to assign to the product order line to identify it as a bundle | +| parentBundleId | The bundle ID of an existing bundle order line to assign the product order line to as a bundle item | +| uniquenessPropertyAliases | A collection of property aliases to use to identify product uniqueness when adding the product to the order | + +**Returns** + +The updated [`Order`](order.md) entity + + +--- + +#### AddTag + +Adds a tag to the order + +```csharp +public Order AddTag(string tag) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| tag | The tag to add | + +**Returns** + +The updated [`Order`](order.md) entity + + +--- + +#### AddTags + +Adds a series of tag to the order + +```csharp +public Order AddTags(IEnumerable tags) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| tags | The tags to add | + +**Returns** + +The updated [`Order`](order.md) entity + + +--- + +#### AssignToCustomer + +Assigns the order to a customer + +```csharp +public Order AssignToCustomer(string customerReference) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| customerReference | The unique reference of the customer to assign the order to, for Umbraco members this should be `member.Key.ToString()` | + +**Returns** + +The updated [`Order`](order.md) entity + + +--- + +#### ClearPaymentCountryRegion + +Clears the payment [`Country`](country.md) and [`Region`](region.md) of the order + +```csharp +public Order ClearPaymentCountryRegion() +``` + +**Returns** + +The updated [`Order`](order.md) entity + + +--- + +#### ClearPaymentMethod + +Clears the current [`PaymentMethod`](paymentmethod.md) of the order + +```csharp +public Order ClearPaymentMethod() +``` + +**Returns** + +The updated [`Order`](order.md) entity + + +--- + +#### ClearShippingCountryRegion + +Clears the shipping [`Country`](country.md) and [`Region`](region.md) of the order + +```csharp +public Order ClearShippingCountryRegion() +``` + +**Returns** + +The updated [`Order`](order.md) entity + + +--- + +#### ClearShippingMethod + +Clears the current [`ShippingMethod`](shippingmethod.md) of the order + +```csharp +public Order ClearShippingMethod() +``` + +**Returns** + +The updated [`Order`](order.md) entity + + +--- + +#### ClearTags + +Clears all the tags assigned to this order + +```csharp +public Order ClearTags() +``` + +**Returns** + +The updated [`Order`](order.md) entity + + +--- + +#### Finalize (1 of 2) + +Finalizes the order + +```csharp +public Order Finalize(decimal amountAuthorized, string transactionId, PaymentStatus paymentStatus) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| amountAuthorized | The amount authorized by the payment gateway | +| transactionId | The ID of the transaction from the payment gateway | +| paymentStatus | The status of the payment | + +**Returns** + +The updated [`Order`](order.md) entity + +--- + +#### Finalize (2 of 2) + +Finalizes the order + +```csharp +public Order Finalize(decimal amountAuthorized, decimal transactionFee, string transactionId, + PaymentStatus paymentStatus) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| amountAuthorized | The amount authorized by the payment gateway | +| transactionFee | The transaction fee charged by the payment gateway | +| transactionId | The ID of the transaction from the payment gateway | +| paymentStatus | The status of the payment | + +**Returns** + +The updated [`Order`](order.md) entity + + +--- + +#### InitializeTransaction + +Initializes a transaction ready to send to the payment gateway + +```csharp +public Order InitializeTransaction(IOrderNumberGenerator orderNumberGenerator) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| orderNumberGenerator | The [`IOrderNumberGenerator`](../umbraco-commerce-core-generators/iordernumbergenerator.md) to use to generate and order number with | + +**Returns** + +The updated [`Order`](order.md) entity + + +--- + +#### Recalculate (1 of 2) + +Recalculates the order + +```csharp +public Order Recalculate(IOrderCalculator orderCalculator) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| orderCalculator | A [`IOrderCalculator`](../umbraco-commerce-core-calculators/iordercalculator.md) instance to use for the calculation | + +**Returns** + +The updated [`Order`](order.md) entity + +--- + +#### Recalculate (2 of 2) + +Recalculates the order + +```csharp +public Order Recalculate(bool force, IOrderCalculator orderCalculator) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| force | A boolean flag indicating whether to force recalculation whether the order needs recalculating or not | +| orderCalculator | A [`IOrderCalculator`](../umbraco-commerce-core-calculators/iordercalculator.md) instance to use for the calculation | + +**Returns** + +The updated [`Order`](order.md) entity + + +--- + +#### Redeem + +Redeems a [`Discount`](discount.md) or [`GiftCard`](giftcard.md) against the order + +```csharp +public Order Redeem(string discountOrGiftCardCode, IDiscountService discountService, + IGiftCardService giftCardService) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| discountOrGiftCardCode | The [`Discount`](discount.md) or [`GiftCard`](giftcard.md) code | +| discountService | A [`IDiscountService`](../umbraco-commerce-core-services/idiscountservice.md) instance to fetch discounts from | +| giftCardService | A [`IGiftCardService`](../umbraco-commerce-core-services/igiftcardservice.md) instance to fetch gift cards from | + +**Returns** + +The updated [`Order`](order.md) entity + + +--- + +#### RemoveOrderLine (1 of 2) + +Removes an order line from the order + +```csharp +public Order RemoveOrderLine(OrderLineReadOnly orderLine) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| orderLine | The order line to remove | + +**Returns** + +The updated [`Order`](order.md) entity + +--- + +#### RemoveOrderLine (2 of 2) + +Removes an order line from the order + +```csharp +public Order RemoveOrderLine(Guid orderLineId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| orderLineId | The ID of the order line to remove | + +**Returns** + +The updated [`Order`](order.md) entity + + +--- + +#### RemoveProperties + +Removes a series of properties from the order + +```csharp +public Order RemoveProperties(IEnumerable aliases) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| aliases | The aliases of the properties to remove | + +**Returns** + +The updated [`Order`](order.md) entity + + +--- + +#### RemoveProperty + +Removes a property from the order + +```csharp +public Order RemoveProperty(string alias) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| alias | The alias of the property to remove | + +**Returns** + +The updated [`Order`](order.md) entity + + +--- + +#### RemoveTag + +Removes a tag from the order + +```csharp +public Order RemoveTag(string tag) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| tag | The tags to remove | + +**Returns** + +The updated [`Order`](order.md) entity + + +--- + +#### RemoveTags + +Removes a series of from the order + +```csharp +public Order RemoveTags(IEnumerable tags) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| tags | The tags to remove | + +**Returns** + +The updated [`Order`](order.md) entity + + +--- + +#### SetCurrency (1 of 2) + +Sets the [`Currency`](currency.md) of the order + +```csharp +public Order SetCurrency(CurrencyReadOnly currency) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| currency | The [`Currency`](currency.md) to set the order to | + +**Returns** + +The updated [`Order`](order.md) entity + +--- + +#### SetCurrency (2 of 2) + +Sets the [`Currency`](currency.md) of the order + +```csharp +public Order SetCurrency(Guid currencyId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| currencyId | The ID of the [`Currency`](currency.md) to set the order to | + +**Returns** + +The updated [`Order`](order.md) entity + + +--- + +#### SetLanguage + +Sets the language of the order + +```csharp +public Order SetLanguage(string languageIsoCode) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| languageIsoCode | The ISO Code of the language to set the order to | + +**Returns** + +The updated [`Order`](order.md) entity + + +--- + +#### SetOrderStatus (1 of 4) + +Sets the [`OrderStatus`](orderstatus.md) of the order + +```csharp +public Order SetOrderStatus(OrderStatusReadOnly orderStatus) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| orderStatus | The [`OrderStatus`](orderstatus.md) to set the order to | + +**Returns** + +The updated [`Order`](order.md) entity + +--- + +#### SetOrderStatus (2 of 4) + +Sets the [`OrderStatus`](orderstatus.md) of the order + +```csharp +public Order SetOrderStatus(Guid orderStatusId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| orderStatusId | The ID of the [`OrderStatus`](orderstatus.md) to set the order to | + +**Returns** + +The updated [`Order`](order.md) entity + +--- + +#### SetOrderStatus (3 of 4) + +Sets the [`OrderStatus`](orderstatus.md) of the order + +```csharp +public Order SetOrderStatus(OrderStatusReadOnly orderStatus, OrderStatusCode orderStatusCode) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| orderStatus | The [`OrderStatus`](orderstatus.md) to set the order to | +| orderStatusCode | An [`OrderStatusCode`](orderstatuscode.md) to set on the order for additional order status context | + +**Returns** + +The updated [`Order`](order.md) entity + +--- + +#### SetOrderStatus (4 of 4) + +Sets the [`OrderStatus`](orderstatus.md) of the order + +```csharp +public Order SetOrderStatus(Guid orderStatusId, OrderStatusCode orderStatusCode) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| orderStatusId | The ID of the [`OrderStatus`](orderstatus.md) to set the order to | +| orderStatusCode | An [`OrderStatusCode`](orderstatuscode.md) to set on the order for additional order status context | + +**Returns** + +The updated [`Order`](order.md) entity + + +--- + +#### SetPaymentCountryRegion (1 of 2) + +Sets the payment [`Country`](country.md) and [`Region`](region.md) of the order + +```csharp +public Order SetPaymentCountryRegion(CountryReadOnly country, RegionReadOnly region = null) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| country | The payment [`Country`](country.md) to set the order to | +| region | The payment [`Region`](region.md) to set the order to | + +**Returns** + +The updated [`Order`](order.md) entity + +--- + +#### SetPaymentCountryRegion (2 of 2) + +Sets the payment [`Country`](country.md) and [`Region`](region.md) of the order + +```csharp +public Order SetPaymentCountryRegion(Guid? countryId, Guid? regionId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| countryId | The ID of the payment [`Country`](country.md) to set the order to | +| regionId | The ID of the payment [`Region`](region.md) to set the order to | + +**Returns** + +The updated [`Order`](order.md) entity + + +--- + +#### SetPaymentMethod (1 of 2) + +Sets the [`PaymentMethod`](paymentmethod.md) of the order + +```csharp +public Order SetPaymentMethod(PaymentMethodReadOnly paymentMethod) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| paymentMethod | The [`PaymentMethod`](paymentmethod.md) to set the order to | + +**Returns** + +The updated [`Order`](order.md) entity + +--- + +#### SetPaymentMethod (2 of 2) + +Sets the [`PaymentMethod`](paymentmethod.md) of the order + +```csharp +public Order SetPaymentMethod(Guid? paymentMethodId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| paymentMethodId | The ID of the [`PaymentMethod`](paymentmethod.md) to set the order to | + +**Returns** + +The updated [`Order`](order.md) entity + + +--- + +#### SetProperties (1 of 2) + +Sets a series of properties on the order + +```csharp +public Order SetProperties(IDictionary properties, + SetBehavior setBehavior = SetBehavior.Merge) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| properties | The properties to set | +| setBehavior | The behavior of the set operation, whether to `Merge` the properties into the orders existing properties collection or `Replace` the orders property collection entirely | + +**Returns** + +The updated [`Order`](order.md) entity + +--- + +#### SetProperties (2 of 2) + +Sets a series of properties on the order + +```csharp +public Order SetProperties(IDictionary properties, + SetBehavior setBehavior = SetBehavior.Merge) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| properties | The properties to set | +| setBehavior | The behavior of the set operation, whether to `Merge` the properties into the orders existing properties collection or `Replace` the orders property collection entirely | + +**Returns** + +The updated [`Order`](order.md) entity + + +--- + +#### SetProperty (1 of 2) + +Sets a property on the order + +```csharp +public Order SetProperty(string alias, string value) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| alias | The alias of the property to set | +| value | The value of the property | + +**Returns** + +The updated [`Order`](order.md) entity + +--- + +#### SetProperty (2 of 2) + +Sets a property on the order + +```csharp +public Order SetProperty(string alias, PropertyValue value) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| alias | The alias of the property to set | +| value | The [`PropertyValue`](propertyvalue.md) of the property | + +**Returns** + +The updated [`Order`](order.md) entity + + +--- + +#### SetShippingCountryRegion (1 of 2) + +Sets the shipping [`Country`](country.md) and [`Region`](region.md) of the order + +```csharp +public Order SetShippingCountryRegion(CountryReadOnly country, RegionReadOnly region = null) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| country | The shipping [`Country`](country.md) to set the order to | +| region | The shipping [`Region`](region.md) to set the order to | + +**Returns** + +The updated [`Order`](order.md) entity + +--- + +#### SetShippingCountryRegion (2 of 2) + +Sets the shipping [`Country`](country.md) and [`Region`](region.md) of the order + +```csharp +public Order SetShippingCountryRegion(Guid? countryId, Guid? regionId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| countryId | The ID of the shipping [`Country`](country.md) to set the order to | +| regionId | The ID of the shipping [`Region`](region.md) to set the order to | + +**Returns** + +The updated [`Order`](order.md) entity + + +--- + +#### SetShippingMethod (1 of 2) + +Sets the [`ShippingMethod`](shippingmethod.md) of the order + +```csharp +public Order SetShippingMethod(ShippingMethodReadOnly shippingMethod) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| shippingMethod | The [`ShippingMethod`](shippingmethod.md) to set the order to | + +**Returns** + +The updated [`Order`](order.md) entity + +--- + +#### SetShippingMethod (2 of 2) + +Sets the [`ShippingMethod`](shippingmethod.md) of the order + +```csharp +public Order SetShippingMethod(Guid? shippingMethodId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| shippingMethodId | The ID of the [`ShippingMethod`](shippingmethod.md) to set the order to | + +**Returns** + +The updated [`Order`](order.md) entity + + +--- + +#### SetTags + +Sets the rags of the order + +```csharp +public Order SetTags(IEnumerable tags, SetBehavior setBehavior = SetBehavior.Replace) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| tags | The tags to remove | +| setBehavior | The behavior of the set operation, whether to `Merge` the tags into the orders existing tags collection or `Replace` the orders tags collection entirely | + +**Returns** + +The updated [`Order`](order.md) entity + + +--- + +#### SetTaxClass (1 of 2) + +Sets the [`TaxClass`](taxclass.md) of the order + +```csharp +public Order SetTaxClass(TaxClassReadOnly taxClass) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| taxClass | The [`TaxClass`](taxclass.md) to set the order to | + +**Returns** + +The updated [`Order`](order.md) entity + +--- + +#### SetTaxClass (2 of 2) + +Sets the [`TaxClass`](taxclass.md) of the order + +```csharp +public Order SetTaxClass(Guid taxClassId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| taxClassId | The ID of the [`TaxClass`](taxclass.md) to set the order to | + +**Returns** + +The updated [`Order`](order.md) entity + + +--- + +#### UnassignFromCustomer + +Unassigns the order from a customer + +```csharp +public Order UnassignFromCustomer() +``` + +**Returns** + +The updated [`Order`](order.md) entity + + +--- + +#### Unredeem + +Unredeems a [`Discount`](discount.md) or [`GiftCard`](giftcard.md) from the order + +```csharp +public Order Unredeem(string discountOrGiftCardCode) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| discountOrGiftCardCode | The [`Discount`](discount.md) or [`GiftCard`](giftcard.md) code | + +**Returns** + +The updated [`Order`](order.md) entity + + +--- + +#### UpdateTransaction (1 of 2) + +Updates the transaction info of the order + +```csharp +public Order UpdateTransaction(decimal amountAuthorized, string transactionId, + PaymentStatus paymentStatus) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| amountAuthorized | The amount authorized by the payment gateway | +| transactionId | The ID of the transaction from the payment gateway | +| paymentStatus | The status of the payment | + +**Returns** + +The updated [`Order`](order.md) entity + +--- + +#### UpdateTransaction (2 of 2) + +Updates the transaction info of the order + +```csharp +public Order UpdateTransaction(decimal amountAuthorized, decimal transactionFee, + string transactionId, PaymentStatus paymentStatus) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| amountAuthorized | The amount authorized by the payment gateway | +| transactionFee | The transaction fee charged by the payment gateway | +| transactionId | The ID of the transaction from the payment gateway | +| paymentStatus | The status of the payment | + +**Returns** + +The updated [`Order`](order.md) entity + + +--- + +#### WithOrderLine (1 of 2) + +Gets the fluent write context of an order line + +```csharp +public OrderLineContext WithOrderLine(OrderLineReadOnly orderLine) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| orderLine | The order line to get the fluent write context for | + +**Returns** + +An [`OrderLineContext`](order-orderlinecontext.md) + +--- + +#### WithOrderLine (2 of 2) + +Gets the fluent write context of an order line + +```csharp +public OrderLineContext WithOrderLine(Guid orderLineId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| orderLineId | The ID of an order line to get the fluent write context for | + +**Returns** + +An [`OrderLineContext`](order-orderlinecontext.md) + + +### Classes + +#### Order.OrderLineContext + +The fluent write context for an order line + +```csharp +public class OrderLineContext +``` + +##### Methods + +#### DecrementQuantity + +Decrements the quantity of the order line + +```csharp +public OrderLineContext DecrementQuantity(decimal qty) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| qty | The amount to decrement the order line quantity by | + +**Returns** + +The updated [`OrderLineContext`](order-orderlinecontext.md) instance + + +--- + +#### IncrementQuantity + +Increments the quantity of the order line + +```csharp +public OrderLineContext IncrementQuantity(decimal qty) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| qty | The amount to increment the order line quantity by | + +**Returns** + +The updated [`OrderLineContext`](order-orderlinecontext.md) instance + + +--- + +#### RemoveProperties + +Removes a series of properties from the order line + +```csharp +public OrderLineContext RemoveProperties(IEnumerable aliases) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| aliases | The aliases of the properties to remove | + +**Returns** + +The updated [`OrderLineContext`](order-orderlinecontext.md) instance + + +--- + +#### RemoveProperty + +Removes a property from the order line + +```csharp +public OrderLineContext RemoveProperty(string alias) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| alias | The alias of the property to remove | + +**Returns** + +The updated [`OrderLineContext`](order-orderlinecontext.md) instance + + +--- + +#### SetProperties (1 of 2) + +Sets a series of properties on the order line + +```csharp +public OrderLineContext SetProperties(IDictionary properties, + SetBehavior setBehavior = SetBehavior.Merge) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| properties | The properties to set | +| setBehavior | The behavior of the set operation, whether to `Merge` the properties into the orders existing properties collection or `Replace` the orders property collection entirely | + +**Returns** + +The updated [`OrderLineContext`](order-orderlinecontext.md) instance + +--- + +#### SetProperties (2 of 2) + +Sets a series of properties on the order line + +```csharp +public OrderLineContext SetProperties(IDictionary properties, + SetBehavior setBehavior = SetBehavior.Merge) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| properties | The properties to set | +| setBehavior | The behavior of the set operation, whether to `Merge` the properties into the orders existing properties collection or `Replace` the orders property collection entirely | + +**Returns** + +The updated [`OrderLineContext`](order-orderlinecontext.md) instance + + +--- + +#### SetProperty (1 of 2) + +Sets a property on the order line + +```csharp +public OrderLineContext SetProperty(string alias, string value) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| alias | The alias of the property to set | +| value | The value of the property | + +**Returns** + +The updated [`OrderLineContext`](order-orderlinecontext.md) instance + +--- + +#### SetProperty (2 of 2) + +Sets a property on the order line + +```csharp +public OrderLineContext SetProperty(string alias, PropertyValue value) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| alias | The alias of the property to set | +| value | The [`PropertyValue`](propertyvalue.md) of the property | + +**Returns** + +The updated [`OrderLineContext`](order-orderlinecontext.md) instance + + +--- + +#### SetQuantity + +Sets the quantity of the order line + +```csharp +public OrderLineContext SetQuantity(decimal qty) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| qty | The amount to set the order line quantity to | + +**Returns** + +The updated [`OrderLineContext`](order-orderlinecontext.md) instance + + +--- + +#### SetTaxClass (1 of 2) + +Sets the [`TaxClass`](taxclass.md) of the order line + +```csharp +public OrderLineContext SetTaxClass(TaxClassReadOnly taxClass) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| taxClass | The [`TaxClass`](taxclass.md) to set the order to | + +**Returns** + +The updated [`OrderLineContext`](order-orderlinecontext.md) instance + +--- + +#### SetTaxClass (2 of 2) + +Sets the [`TaxClass`](taxclass.md) of the order line + +```csharp +public OrderLineContext SetTaxClass(Guid taxClassId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| taxClassId | The ID of the [`TaxClass`](taxclass.md) to set the order to | + +**Returns** + +The updated [`OrderLineContext`](order-orderlinecontext.md) instance + + + +**Remarks** + +See [`OrderExtensions`](../umbraco-commerce-extensions/orderextensions.md) for additional Order methods + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ordercalculation.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ordercalculation.md new file mode 100644 index 00000000000..8206ee93b4a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ordercalculation.md @@ -0,0 +1,104 @@ +--- +title: OrderCalculation +description: API reference for OrderCalculation in Umbraco Commerce +--- +## OrderCalculation + +```csharp +public class OrderCalculation +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### OrderCalculation + +```csharp +public OrderCalculation(Guid currencyId) +``` + + +### Properties + +#### OrderLines + +```csharp +public Dictionary OrderLines { get; } +``` + + +--- + +#### PaymentTaxRate + +```csharp +public TaxRate PaymentTaxRate { get; set; } +``` + + +--- + +#### PaymentTotalPrice + +```csharp +public TotalPrice PaymentTotalPrice { get; set; } +``` + + +--- + +#### ShippingTaxRate + +```csharp +public TaxRate ShippingTaxRate { get; set; } +``` + + +--- + +#### ShippingTotalPrice + +```csharp +public TotalPrice ShippingTotalPrice { get; set; } +``` + + +--- + +#### SubtotalPrice + +```csharp +public OrderSubtotalPrice SubtotalPrice { get; set; } +``` + + +--- + +#### TaxRate + +```csharp +public TaxRate TaxRate { get; set; } +``` + + +--- + +#### TotalPrice + +```csharp +public OrderTotalPrice TotalPrice { get; set; } +``` + + +--- + +#### TransactionAmount + +```csharp +public OrderTransactionAmount TransactionAmount { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ordercustomerinfo.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ordercustomerinfo.md new file mode 100644 index 00000000000..fffeade5759 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ordercustomerinfo.md @@ -0,0 +1,60 @@ +--- +title: OrderCustomerInfo +description: API reference for OrderCustomerInfo in Umbraco Commerce +--- +## OrderCustomerInfo + +The customer information for an order + +```csharp +public class OrderCustomerInfo +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### CustomerReference + +Gets the unique reference of the customer of the order + +```csharp +public string CustomerReference { get; } +``` + + +--- + +#### Email + +Gets the email address of the customer of the order + +```csharp +public string Email { get; } +``` + + +--- + +#### FirstName + +Gets the first name of the customer of the order + +```csharp +public string FirstName { get; } +``` + + +--- + +#### LastName + +Gets the last name of the customer of the order + +```csharp +public string LastName { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderexchangeratelookup.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderexchangeratelookup.md new file mode 100644 index 00000000000..3128202e81a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderexchangeratelookup.md @@ -0,0 +1,61 @@ +--- +title: OrderExchangeRateLookup +description: API reference for OrderExchangeRateLookup in Umbraco Commerce +--- +## OrderExchangeRateLookup + +```csharp +public class OrderExchangeRateLookup +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### OrderExchangeRateLookup + +The default constructor. + +```csharp +public OrderExchangeRateLookup() +``` + + +### Properties + +#### BaseCurrencyCode + +```csharp +public string BaseCurrencyCode { get; set; } +``` + + +--- + +#### CurrencyCode + +```csharp +public string CurrencyCode { get; set; } +``` + + +--- + +#### FinalizedDate + +```csharp +public DateTime FinalizedDate { get; set; } +``` + + +--- + +#### Id + +```csharp +public Guid Id { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderlinebaseprice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderlinebaseprice.md new file mode 100644 index 00000000000..e89609b14cd --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderlinebaseprice.md @@ -0,0 +1,54 @@ +--- +title: OrderLineBasePrice +description: API reference for OrderLineBasePrice in Umbraco Commerce +--- +## OrderLineBasePrice + +```csharp +public class OrderLineBasePrice : AdjustedPrice +``` + +**Inheritance** + +* Class [AdjustedPrice](adjustedprice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### ZeroValue + +```csharp +public static OrderLineBasePrice ZeroValue(Guid currencyId) +``` + + +--- + +#### AsReadOnly + +```csharp +public virtual ReadOnlyOrderLineBasePrice AsReadOnly() +``` + + +--- + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + +--- + +#### GetHashCode + +```csharp +public override int GetHashCode() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderlinecalculation.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderlinecalculation.md new file mode 100644 index 00000000000..fb71be5380e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderlinecalculation.md @@ -0,0 +1,86 @@ +--- +title: OrderLineCalculation +description: API reference for OrderLineCalculation in Umbraco Commerce +--- +## OrderLineCalculation + +```csharp +public class OrderLineCalculation +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### OrderLineCalculation + +```csharp +public OrderLineCalculation(Guid currencyId) +``` + + +### Properties + +#### BasePrice + +```csharp +public OrderLineBasePrice BasePrice { get; set; } +``` + + +--- + +#### OrderLines + +```csharp +public Dictionary OrderLines { get; } +``` + + +--- + +#### RollingSubOrderLinesTotalAdjustedPrice + +```csharp +public Price RollingSubOrderLinesTotalAdjustedPrice { get; set; } +``` + + +--- + +#### RollingSubOrderLinesTotalPrice + +```csharp +public Price RollingSubOrderLinesTotalPrice { get; set; } +``` + + +--- + +#### TaxRate + +```csharp +public TaxRate TaxRate { get; set; } +``` + + +--- + +#### TotalPrice + +```csharp +public OrderLineTotalPrice TotalPrice { get; set; } +``` + + +--- + +#### UnitPrice + +```csharp +public OrderLineUnitPrice UnitPrice { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderlinepricetype.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderlinepricetype.md new file mode 100644 index 00000000000..cb53d5349b6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderlinepricetype.md @@ -0,0 +1,22 @@ +--- +title: OrderLinePriceType +description: API reference for OrderLinePriceType in Umbraco Commerce +--- +## OrderLinePriceType + +```csharp +public enum OrderLinePriceType +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +**Values** + +| Name | Value | Description | +| --- | --- | --- | +| BasePrice | `0` | | +| UnitPrice | `10` | | +| TotalPrice | `20` | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderlinereadonly.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderlinereadonly.md new file mode 100644 index 00000000000..c90aff17e53 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderlinereadonly.md @@ -0,0 +1,234 @@ +--- +title: OrderLineReadOnly +description: API reference for OrderLineReadOnly in Umbraco Commerce +--- +## OrderLineReadOnly + +A read only Order Line entity + +```csharp +public class OrderLineReadOnly : EntityBase, IHasReadableOrderLines, + IHasReadableOrderLines, IHasReadableProperties +``` + +**Inheritance** + +* Class [EntityBase<TState>](entitybase-1.md) +* interface [IHasReadableOrderLines](ihasreadableorderlines.md) +* interface [IHasReadableOrderLines<T>](ihasreadableorderlines-1.md) +* interface [IHasReadableProperties](ihasreadableproperties.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Attributes + +Gets the attributes of the order line + +```csharp +public IReadOnlyCollection Attributes { get; } +``` + + +--- + +#### BasePrice + +Gets the base price of the order line + +```csharp +public ReadOnlyOrderLineBasePrice BasePrice { get; } +``` + + +--- + +#### CopiedFromOrderLineId + +Gets the ID of a parent order line this order line was copied from + +```csharp +public Guid? CopiedFromOrderLineId { get; } +``` + + +--- + +#### Name + +Gets the name of the product of the order line + +```csharp +public string Name { get; } +``` + + +--- + +#### OrderId + +Gets the ID of the [`Order`](order.md) this entity belongs to + +```csharp +public Guid OrderId { get; } +``` + + +--- + +#### ProductReference + +Gets the unique product reference of the product of the order line + +```csharp +public string ProductReference { get; } +``` + + +--- + +#### ProductVariantReference + +Gets the unique product variant reference of the product of the order line, if it is a product variant order line + +```csharp +public string ProductVariantReference { get; } +``` + + +--- + +#### Properties + +Gets the properties of the order line + +```csharp +public IReadOnlyDictionary Properties { get; } +``` + + +--- + +#### Quantity + +Gets the quantity of the product of the order line + +```csharp +public decimal Quantity { get; } +``` + + +--- + +#### Sku + +Gets the unique SKU of the product of the order line + +```csharp +public string Sku { get; } +``` + + +--- + +#### StoreId + +Gets the ID of the [`Store`](store.md) this entity belongs to + +```csharp +public Guid StoreId { get; } +``` + + +--- + +#### TaxClassId + +Gets ID of the [`TaxClass`](taxclass.md) of the order line + +```csharp +public Guid? TaxClassId { get; } +``` + + +--- + +#### TaxRate + +Gets the `TaxRate` of the order line + +```csharp +public TaxRate TaxRate { get; } +``` + + +--- + +#### TotalPrice + +Gets the total price of the order line + +```csharp +public ReadOnlyOrderLineTotalPrice TotalPrice { get; } +``` + + +--- + +#### UnitPrice + +Gets the unit price of the order line + +```csharp +public ReadOnlyOrderLineUnitPrice UnitPrice { get; } +``` + + +### Methods + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + +--- + +#### IsBundle + +Gets a flag indicating if this order line is a bundle order line or not. + +```csharp +public bool IsBundle() +``` + +**Returns** + +True if the order line is a bundle, otherwise False + + +--- + +#### IsBundle + +Gets a flag indicating if this order line is a bundle order line or not. + +```csharp +public bool IsBundle(out BundleOrderLineReadOnly bundle) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| bundle | The [`BundleOrderLineReadOnly`](bundleorderlinereadonly.md) instance if the order line is a bundle | + +**Returns** + +True if the order line is a bundle, otherwise False + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderlinesource.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderlinesource.md new file mode 100644 index 00000000000..795cfabe977 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderlinesource.md @@ -0,0 +1,21 @@ +--- +title: OrderLineSource +description: API reference for OrderLineSource in Umbraco Commerce +--- +## OrderLineSource + +```csharp +public enum OrderLineSource +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +**Values** + +| Name | Value | Description | +| --- | --- | --- | +| MatchingRules | `0` | | +| WholeOrder | `1` | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderlinetotalprice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderlinetotalprice.md new file mode 100644 index 00000000000..f3acb4ec0c6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderlinetotalprice.md @@ -0,0 +1,45 @@ +--- +title: OrderLineTotalPrice +description: API reference for OrderLineTotalPrice in Umbraco Commerce +--- +## OrderLineTotalPrice + +```csharp +public class OrderLineTotalPrice : TotalPriceWithPreviousAdjustment +``` + +**Inheritance** + +* Class [TotalPriceWithPreviousAdjustment](totalpricewithpreviousadjustment.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### ZeroValue + +```csharp +public static OrderLineTotalPrice ZeroValue(Guid currencyId) +``` + + +--- + +#### AsReadOnly + +```csharp +public virtual ReadOnlyOrderLineTotalPrice AsReadOnly() +``` + + +--- + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderlineunitprice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderlineunitprice.md new file mode 100644 index 00000000000..38edc2715f9 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderlineunitprice.md @@ -0,0 +1,54 @@ +--- +title: OrderLineUnitPrice +description: API reference for OrderLineUnitPrice in Umbraco Commerce +--- +## OrderLineUnitPrice + +```csharp +public class OrderLineUnitPrice : TotalPriceWithPreviousAdjustment +``` + +**Inheritance** + +* Class [TotalPriceWithPreviousAdjustment](totalpricewithpreviousadjustment.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### ZeroValue + +```csharp +public static OrderLineUnitPrice ZeroValue(Guid currencyId) +``` + + +--- + +#### AsReadOnly + +```csharp +public virtual ReadOnlyOrderLineUnitPrice AsReadOnly() +``` + + +--- + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + +--- + +#### GetHashCode + +```csharp +public override int GetHashCode() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderpaymentinfo.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderpaymentinfo.md new file mode 100644 index 00000000000..e1579cdcbfb --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderpaymentinfo.md @@ -0,0 +1,71 @@ +--- +title: OrderPaymentInfo +description: API reference for OrderPaymentInfo in Umbraco Commerce +--- +## OrderPaymentInfo + +The payment information for an order + +```csharp +public class OrderPaymentInfo +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### CountryId + +Gets the ID of the payment [`Country`](country.md) of the order + +```csharp +public Guid? CountryId { get; } +``` + + +--- + +#### PaymentMethodId + +Gets the ID of the [`PaymentMethod`](paymentmethod.md) of the order + +```csharp +public Guid? PaymentMethodId { get; } +``` + + +--- + +#### RegionId + +Gets the ID of the payment [`Region`](region.md) of the order + +```csharp +public Guid? RegionId { get; } +``` + + +--- + +#### TaxRate + +Gets the `TaxRate` of the payment of the order + +```csharp +public TaxRate TaxRate { get; } +``` + + +--- + +#### TotalPrice + +Gets the total price of the payment of the order + +```csharp +public ReadOnlyTotalPrice TotalPrice { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderpricetype.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderpricetype.md new file mode 100644 index 00000000000..46b6440c712 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderpricetype.md @@ -0,0 +1,23 @@ +--- +title: OrderPriceType +description: API reference for OrderPriceType in Umbraco Commerce +--- +## OrderPriceType + +```csharp +public enum OrderPriceType +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +**Values** + +| Name | Value | Description | +| --- | --- | --- | +| SubtotalPrice | `0` | | +| ShipmentPrice | `1` | | +| PaymentPrice | `2` | | +| TotalPrice | `3` | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderreadonly.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderreadonly.md new file mode 100644 index 00000000000..2909a2dd5db --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderreadonly.md @@ -0,0 +1,402 @@ +--- +title: OrderReadOnly +description: API reference for OrderReadOnly in Umbraco Commerce +--- +## OrderReadOnly + +A read only Order entity + +```csharp +public class OrderReadOnly : StoreAggregateBase, + IHasReadableOrderLines, IHasReadableOrderLines, IHasReadableProperties, + ITaggableReadOnlyEntity +``` + +**Inheritance** + +* Class [StoreAggregateBase<TReadOnlySelf,TWritableSelf,TState>](storeaggregatebase-3.md) +* interface [IHasReadableOrderLines](ihasreadableorderlines.md) +* interface [IHasReadableOrderLines<T>](ihasreadableorderlines-1.md) +* interface [IHasReadableProperties](ihasreadableproperties.md) +* interface [ITaggableReadOnlyEntity](itaggablereadonlyentity.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### CartNumber + +Gets the Cart Number of the order + +```csharp +public string CartNumber { get; } +``` + + +--- + +#### CopiedFromOrderId + +Gets the ID of a parent order this order was copied from + +```csharp +public Guid? CopiedFromOrderId { get; } +``` + + +--- + +#### CreateDate + +Gets the DateTime the order was created + +```csharp +public DateTime CreateDate { get; } +``` + + +--- + +#### CurrencyId + +Gets the ID of the [`Currency`](currency.md) of the order + +```csharp +public Guid CurrencyId { get; } +``` + + +--- + +#### CustomerInfo + +Gets the [`OrderCustomerInfo`](ordercustomerinfo.md) of the order + +```csharp +public OrderCustomerInfo CustomerInfo { get; } +``` + + +--- + +#### DiscountCodes + +Gets a list of discount codes applied to the order + +```csharp +public IReadOnlyCollection DiscountCodes { get; } +``` + + +--- + +#### Discounts + +Gets a list of discounts applies to the order + +```csharp +public IReadOnlyCollection Discounts { get; } +``` + + +--- + +#### FinalizedDate + +Gets the DateTime the order was finalized + +```csharp +public DateTime? FinalizedDate { get; } +``` + + +--- + +#### GiftCards + +Gets a list of gift cards applied to the order + +```csharp +public IReadOnlyCollection GiftCards { get; } +``` + + +--- + +#### IsFinalized + +Gets a boolean flag indicating whether the order is finalized + +```csharp +public virtual bool IsFinalized { get; } +``` + + +--- + +#### IsFinalizing + +Gets a boolean flag indicating whether the order is currently being finalized + +```csharp +public virtual bool IsFinalizing { get; } +``` + + +--- + +#### IsProcessing + +Gets a boolean flag indicating whether the order is currently being processed by a payment gateway + +```csharp +public virtual bool IsProcessing { get; } +``` + + +--- + +#### LanguageIsoCode + +Gets the ISO Code of the Language of the order + +```csharp +public string LanguageIsoCode { get; } +``` + + +--- + +#### OrderLines + +Gets the order lines of the order + +```csharp +public IReadOnlyCollection OrderLines { get; } +``` + + +--- + +#### OrderNumber + +Gets the order Number of the order + +```csharp +public string OrderNumber { get; } +``` + + +--- + +#### OrderStatusCode + +Gets the `OrderStatusCode` of the [`OrderStatus`](orderstatus.md) of the order + +```csharp +public OrderStatusCode OrderStatusCode { get; } +``` + + +--- + +#### OrderStatusId + +Gets the ID of the [`OrderStatus`](orderstatus.md) of the order + +```csharp +public Guid OrderStatusId { get; } +``` + + +--- + +#### PaymentInfo + +Gets the [`OrderPaymentInfo`](orderpaymentinfo.md) of the order + +```csharp +public OrderPaymentInfo PaymentInfo { get; } +``` + + +--- + +#### Properties + +Gets the properties collection of the order + +```csharp +public IReadOnlyDictionary Properties { get; } +``` + + +--- + +#### ShippingInfo + +Gets the [`OrderShippingInfo`](ordershippinginfo.md) of the order + +```csharp +public OrderShippingInfo ShippingInfo { get; } +``` + + +--- + +#### SubtotalPrice + +Gets the subtotal price of the order + +```csharp +public ReadOnlyOrderSubtotalPrice SubtotalPrice { get; } +``` + + +--- + +#### Tags + +Gets the list of tags assigned to this order + +```csharp +public virtual IReadOnlyCollection Tags { get; } +``` + + +--- + +#### TaxClassId + +Gets the ID of the [`TaxClass`](taxclass.md) of the order + +```csharp +public Guid TaxClassId { get; } +``` + + +--- + +#### TaxRate + +Gets the `TaxRate` of the order + +```csharp +public TaxRate TaxRate { get; } +``` + + +--- + +#### TotalPrice + +Gets the total price of the order + +```csharp +public ReadOnlyOrderTotalPrice TotalPrice { get; } +``` + + +--- + +#### TotalQuantity + +Gets the total quantity of all order line items in the order + +```csharp +public decimal TotalQuantity { get; } +``` + + +--- + +#### TransactionAmount + +Gets the calculated transaction amount for the order + +```csharp +public ReadOnlyOrderTransactionAmount TransactionAmount { get; } +``` + + +--- + +#### TransactionInfo + +Gets the [`OrderTransactionInfo`](ordertransactioninfo.md) of the order + +```csharp +public OrderTransactionInfo TransactionInfo { get; } +``` + + +--- + +#### UpdateDate + +Gets the DateTime the order was last updated + +```csharp +public DateTime UpdateDate { get; } +``` + + +### Methods + +#### GetBundle + +Gets a bundle order line by bundle ID + +```csharp +public BundleOrderLineReadOnly GetBundle(string bundleId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| bundleId | The bundle ID of the order line to fetch | + +**Returns** + +An [`BundleOrderLineReadOnly`](bundleorderlinereadonly.md) entity for the order line + + +--- + +#### GetBundles + +Gets a collection of all the bundle order lines present in this order + +```csharp +public IReadOnlyCollection GetBundles() +``` + +**Returns** + +An IReadOnlyCollection entity for the order line + + +--- + +#### GetOrderLine + +Get an order line by ID + +```csharp +public OrderLineReadOnly GetOrderLine(Guid orderLineId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| orderLineId | The ID of the order line to fetch | + +**Returns** + +An [`OrderLineReadOnly`](orderlinereadonly.md) entity for the order line + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderreference.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderreference.md new file mode 100644 index 00000000000..0040761063c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderreference.md @@ -0,0 +1,90 @@ +--- +title: OrderReference +description: API reference for OrderReference in Umbraco Commerce +--- +## OrderReference + +```csharp +public class OrderReference : ValueObjectBase +``` + +**Inheritance** + +* Class [ValueObjectBase](../../umbraco-commerce-common/umbraco-commerce-common-models/valueobjectbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### OrderReference + +```csharp +public OrderReference(Guid orderId, string orderNumber) +``` + + +### Properties + +#### OrderId + +```csharp +public Guid OrderId { get; } +``` + + +--- + +#### OrderNumber + +```csharp +public string OrderNumber { get; } +``` + + +### Methods + +#### Parse + +```csharp +public static OrderReference Parse(string input) +``` + + +--- + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + +--- + +#### ToString + +```csharp +public override string ToString() +``` + + +--- + +#### TryParse + +```csharp +public static bool TryParse(string input, out OrderReference orderReference) +``` + + +### Operators + +#### OrderReference Implicit + +```csharp +public static implicit operator string(OrderReference or) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderroundingmethod.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderroundingmethod.md new file mode 100644 index 00000000000..2fcefc4fc1c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderroundingmethod.md @@ -0,0 +1,22 @@ +--- +title: OrderRoundingMethod +description: API reference for OrderRoundingMethod in Umbraco Commerce +--- +## OrderRoundingMethod + +```csharp +public enum OrderRoundingMethod +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +**Values** + +| Name | Value | Description | +| --- | --- | --- | +| Unit | `0` | | +| Line | `1` | | +| Total | `2` | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ordershippinginfo.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ordershippinginfo.md new file mode 100644 index 00000000000..57ded09b3b2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ordershippinginfo.md @@ -0,0 +1,71 @@ +--- +title: OrderShippingInfo +description: API reference for OrderShippingInfo in Umbraco Commerce +--- +## OrderShippingInfo + +The shipping information for an order + +```csharp +public class OrderShippingInfo +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### CountryId + +Gets the ID of the shipping [`Country`](country.md) of the order + +```csharp +public Guid? CountryId { get; } +``` + + +--- + +#### RegionId + +Gets the ID of the shipping [`Region`](region.md) of the order + +```csharp +public Guid? RegionId { get; } +``` + + +--- + +#### ShippingMethodId + +Gets the ID of the [`ShippingMethod`](shippingmethod.md) of the order + +```csharp +public Guid? ShippingMethodId { get; } +``` + + +--- + +#### TaxRate + +Gets the `TaxRate` of the shipping of the order + +```csharp +public TaxRate TaxRate { get; } +``` + + +--- + +#### TotalPrice + +Gets the total price of the shipping of the order + +```csharp +public ReadOnlyTotalPrice TotalPrice { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderstatus.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderstatus.md new file mode 100644 index 00000000000..bfab259a754 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderstatus.md @@ -0,0 +1,79 @@ +--- +title: OrderStatus +description: API reference for OrderStatus in Umbraco Commerce +--- +## OrderStatus + +```csharp +public class OrderStatus : OrderStatusReadOnly +``` + +**Inheritance** + +* Class [OrderStatusReadOnly](orderstatusreadonly.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### Create (1 of 2) + +```csharp +public static OrderStatus Create(IUnitOfWork uow, Guid storeId, string alias, string name) +``` + +--- + +#### Create (2 of 2) + +```csharp +public static OrderStatus Create(IUnitOfWork uow, Guid id, Guid storeId, string alias, string name) +``` + + +--- + +#### SetAlias + +```csharp +public OrderStatus SetAlias(string alias) +``` + + +--- + +#### SetColor + +```csharp +public OrderStatus SetColor(string color) +``` + + +--- + +#### SetName (1 of 2) + +```csharp +public OrderStatus SetName(string name) +``` + +--- + +#### SetName (2 of 2) + +```csharp +public OrderStatus SetName(string name, string alias) +``` + + +--- + +#### SetSortOrder + +```csharp +public OrderStatus SetSortOrder(int sortOrder) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderstatuscode.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderstatuscode.md new file mode 100644 index 00000000000..2d8fb63ba5e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderstatuscode.md @@ -0,0 +1,23 @@ +--- +title: OrderStatusCode +description: API reference for OrderStatusCode in Umbraco Commerce +--- +## OrderStatusCode + +```csharp +public enum OrderStatusCode +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +**Values** + +| Name | Value | Description | +| --- | --- | --- | +| Ok | `200` | | +| InconsistentOrderReference | `401` | | +| InconsistentPayment | `402` | | +| ErrorAtPaymentGateway | `403` | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderstatusreadonly.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderstatusreadonly.md new file mode 100644 index 00000000000..9b756ac7426 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/orderstatusreadonly.md @@ -0,0 +1,65 @@ +--- +title: OrderStatusReadOnly +description: API reference for OrderStatusReadOnly in Umbraco Commerce +--- +## OrderStatusReadOnly + +```csharp +public class OrderStatusReadOnly : + StoreAggregateBase, IHasName +``` + +**Inheritance** + +* Class [StoreAggregateBase<TReadOnlySelf,TWritableSelf,TState>](storeaggregatebase-3.md) +* interface [IHasName](ihasname.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Alias + +```csharp +public string Alias { get; } +``` + + +--- + +#### Color + +```csharp +public string Color { get; } +``` + + +--- + +#### IsDeleted + +```csharp +public bool IsDeleted { get; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; } +``` + + +--- + +#### SortOrder + +```csharp +public int SortOrder { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ordersubtotalprice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ordersubtotalprice.md new file mode 100644 index 00000000000..cb6638e02ef --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ordersubtotalprice.md @@ -0,0 +1,45 @@ +--- +title: OrderSubtotalPrice +description: API reference for OrderSubtotalPrice in Umbraco Commerce +--- +## OrderSubtotalPrice + +```csharp +public class OrderSubtotalPrice : TotalPriceWithPreviousAdjustment +``` + +**Inheritance** + +* Class [TotalPriceWithPreviousAdjustment](totalpricewithpreviousadjustment.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### ZeroValue + +```csharp +public static OrderSubtotalPrice ZeroValue(Guid currencyId) +``` + + +--- + +#### AsReadOnly + +```csharp +public virtual ReadOnlyOrderSubtotalPrice AsReadOnly() +``` + + +--- + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ordertotalprice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ordertotalprice.md new file mode 100644 index 00000000000..e27baae9996 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ordertotalprice.md @@ -0,0 +1,45 @@ +--- +title: OrderTotalPrice +description: API reference for OrderTotalPrice in Umbraco Commerce +--- +## OrderTotalPrice + +```csharp +public class OrderTotalPrice : OrderSubtotalPrice +``` + +**Inheritance** + +* Class [OrderSubtotalPrice](ordersubtotalprice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### ZeroValue + +```csharp +public static OrderTotalPrice ZeroValue(Guid currencyId) +``` + + +--- + +#### AsReadOnly + +```csharp +public virtual ReadOnlyOrderTotalPrice AsReadOnly() +``` + + +--- + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ordertransactionamount.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ordertransactionamount.md new file mode 100644 index 00000000000..782ba83da02 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ordertransactionamount.md @@ -0,0 +1,45 @@ +--- +title: OrderTransactionAmount +description: API reference for OrderTransactionAmount in Umbraco Commerce +--- +## OrderTransactionAmount + +```csharp +public class OrderTransactionAmount : AdjustedAmount +``` + +**Inheritance** + +* Class [AdjustedAmount](adjustedamount.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### ZeroValue + +```csharp +public static OrderTransactionAmount ZeroValue(Guid currencyId) +``` + + +--- + +#### AsReadOnly + +```csharp +public virtual ReadOnlyOrderTransactionAmount AsReadOnly() +``` + + +--- + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ordertransactioninfo.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ordertransactioninfo.md new file mode 100644 index 00000000000..475e95111dd --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/ordertransactioninfo.md @@ -0,0 +1,71 @@ +--- +title: OrderTransactionInfo +description: API reference for OrderTransactionInfo in Umbraco Commerce +--- +## OrderTransactionInfo + +The transaction information for an order + +```csharp +public class OrderTransactionInfo +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### AmountAuthorized + +Gets the amount authorized by the payment gateway for the order + +```csharp +public Amount AmountAuthorized { get; } +``` + + +--- + +#### BaseCurrencyExchangeRate + +Gets the base currency exchange rate the order transaction amount + +```csharp +public decimal? BaseCurrencyExchangeRate { get; } +``` + + +--- + +#### PaymentStatus + +Gets the `PaymentStatus` of the transaction for the order + +```csharp +public PaymentStatus? PaymentStatus { get; } +``` + + +--- + +#### TransactionFee + +Gets the transaction fee amount charged by the payment gateway for the order + +```csharp +public Amount TransactionFee { get; } +``` + + +--- + +#### TransactionId + +Gets the Transaction ID returned by the payment gateway for the order + +```csharp +public string TransactionId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/paymentmethod.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/paymentmethod.md new file mode 100644 index 00000000000..987f61e0ae2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/paymentmethod.md @@ -0,0 +1,385 @@ +--- +title: PaymentMethod +description: API reference for PaymentMethod in Umbraco Commerce +--- +## PaymentMethod + +```csharp +public class PaymentMethod : PaymentMethodReadOnly, IHasWritableServicePrices, + IHasWrtiableAllowedCountries, IHasWrtiableAllowedCountryRegions +``` + +**Inheritance** + +* Class [PaymentMethodReadOnly](paymentmethodreadonly.md) +* interface [IHasWritableServicePrices<TAggregate>](ihaswritableserviceprices-1.md) +* interface [IHasWrtiableAllowedCountries<TAggregate>](ihaswrtiableallowedcountries-1.md) +* interface [IHasWrtiableAllowedCountryRegions<TAggregate>](ihaswrtiableallowedcountryregions-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### Create (1 of 2) + +```csharp +public static PaymentMethod Create(IUnitOfWork uow, Guid storeId, string alias, string name, + string paymentProviderAlias) +``` + +--- + +#### Create (2 of 2) + +```csharp +public static PaymentMethod Create(IUnitOfWork uow, Guid id, Guid storeId, string alias, + string name, string paymentProviderAlias) +``` + + +--- + +#### AllowInCountry (1 of 2) + +```csharp +public PaymentMethod AllowInCountry(CountryReadOnly country) +``` + +--- + +#### AllowInCountry (2 of 2) + +```csharp +public PaymentMethod AllowInCountry(Guid countryId) +``` + + +--- + +#### AllowInRegion (1 of 2) + +```csharp +public PaymentMethod AllowInRegion(RegionReadOnly region) +``` + +--- + +#### AllowInRegion (2 of 2) + +```csharp +public PaymentMethod AllowInRegion(Guid countryId, Guid regionId) +``` + + +--- + +#### ClearCountryPriceForCurrency (1 of 2) + +```csharp +public PaymentMethod ClearCountryPriceForCurrency(CountryReadOnly country, + CurrencyReadOnly currency) +``` + +--- + +#### ClearCountryPriceForCurrency (2 of 2) + +```csharp +public PaymentMethod ClearCountryPriceForCurrency(Guid countryId, Guid currencyId) +``` + + +--- + +#### ClearDefaultPriceForCurrency (1 of 2) + +```csharp +public PaymentMethod ClearDefaultPriceForCurrency(CurrencyReadOnly currency) +``` + +--- + +#### ClearDefaultPriceForCurrency (2 of 2) + +```csharp +public PaymentMethod ClearDefaultPriceForCurrency(Guid currencyId) +``` + + +--- + +#### ClearPricesForCountry (1 of 2) + +```csharp +public PaymentMethod ClearPricesForCountry(CountryReadOnly country, + CurrencyReadOnly currency = null) +``` + +--- + +#### ClearPricesForCountry (2 of 2) + +```csharp +public PaymentMethod ClearPricesForCountry(Guid countryId, Guid? currencyId = default(Guid?)) +``` + + +--- + +#### ClearPricesForCurrency (1 of 2) + +```csharp +public PaymentMethod ClearPricesForCurrency(CurrencyReadOnly currency) +``` + +--- + +#### ClearPricesForCurrency (2 of 2) + +```csharp +public PaymentMethod ClearPricesForCurrency(Guid currencyId) +``` + + +--- + +#### ClearPricesForRegion (1 of 2) + +```csharp +public PaymentMethod ClearPricesForRegion(RegionReadOnly region, CurrencyReadOnly currency = null) +``` + +--- + +#### ClearPricesForRegion (2 of 2) + +```csharp +public PaymentMethod ClearPricesForRegion(Guid countryId, Guid regionId, + Guid? currencyId = default(Guid?)) +``` + + +--- + +#### ClearRegionPriceForCurrency (1 of 2) + +```csharp +public PaymentMethod ClearRegionPriceForCurrency(RegionReadOnly region, CurrencyReadOnly currency) +``` + +--- + +#### ClearRegionPriceForCurrency (2 of 2) + +```csharp +public PaymentMethod ClearRegionPriceForCurrency(Guid countryId, Guid regionId, Guid currencyId) +``` + + +--- + +#### ClearTaxClass + +```csharp +public PaymentMethod ClearTaxClass() +``` + + +--- + +#### DisallowInCountry (1 of 2) + +```csharp +public PaymentMethod DisallowInCountry(CountryReadOnly country) +``` + +--- + +#### DisallowInCountry (2 of 2) + +```csharp +public PaymentMethod DisallowInCountry(Guid countryId) +``` + + +--- + +#### DisallowInRegion (1 of 2) + +```csharp +public PaymentMethod DisallowInRegion(RegionReadOnly region) +``` + +--- + +#### DisallowInRegion (2 of 2) + +```csharp +public PaymentMethod DisallowInRegion(Guid countryId, Guid regionId) +``` + + +--- + +#### RemoveSetting + +```csharp +public PaymentMethod RemoveSetting(string alias) +``` + + +--- + +#### SetAlias + +```csharp +public PaymentMethod SetAlias(string alias) +``` + + +--- + +#### SetCountryPriceForCurrency (1 of 2) + +```csharp +public PaymentMethod SetCountryPriceForCurrency(CountryReadOnly country, CurrencyReadOnly currency, + decimal value) +``` + +--- + +#### SetCountryPriceForCurrency (2 of 2) + +```csharp +public PaymentMethod SetCountryPriceForCurrency(Guid countryId, Guid currencyId, decimal value) +``` + + +--- + +#### SetDefaultPriceForCurrency (1 of 2) + +```csharp +public PaymentMethod SetDefaultPriceForCurrency(CurrencyReadOnly currency, decimal value) +``` + +--- + +#### SetDefaultPriceForCurrency (2 of 2) + +```csharp +public PaymentMethod SetDefaultPriceForCurrency(Guid currencyId, decimal value) +``` + + +--- + +#### SetImage + +```csharp +public PaymentMethod SetImage(string id) +``` + + +--- + +#### SetName (1 of 2) + +```csharp +public PaymentMethod SetName(string name) +``` + +--- + +#### SetName (2 of 2) + +```csharp +public PaymentMethod SetName(string name, string alias) +``` + + +--- + +#### SetRegionPriceForCurrency (1 of 2) + +```csharp +public PaymentMethod SetRegionPriceForCurrency(RegionReadOnly region, CurrencyReadOnly currency, + decimal value) +``` + +--- + +#### SetRegionPriceForCurrency (2 of 2) + +```csharp +public PaymentMethod SetRegionPriceForCurrency(Guid countryId, Guid regionId, Guid currencyId, + decimal value) +``` + + +--- + +#### SetSetting + +```csharp +public PaymentMethod SetSetting(string alias, string value) +``` + + +--- + +#### SetSettings + +```csharp +public PaymentMethod SetSettings(IDictionary settings, + SetBehavior setBehavior = SetBehavior.Merge) +``` + + +--- + +#### SetSku + +```csharp +public PaymentMethod SetSku(string sku) +``` + + +--- + +#### SetSortOrder + +```csharp +public PaymentMethod SetSortOrder(int sortOrder) +``` + + +--- + +#### SetTaxClass (1 of 2) + +```csharp +public PaymentMethod SetTaxClass(TaxClass taxClass) +``` + +--- + +#### SetTaxClass (2 of 2) + +```csharp +public PaymentMethod SetTaxClass(Guid? taxClassId) +``` + + +--- + +#### ToggleFeatures + +```csharp +public PaymentMethod ToggleFeatures(bool fetchPaymentStatuses, bool capturePayments, + bool cancelPayments, bool refundPayments) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/paymentmethodreadonly.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/paymentmethodreadonly.md new file mode 100644 index 00000000000..b2dd4d4e195 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/paymentmethodreadonly.md @@ -0,0 +1,253 @@ +--- +title: PaymentMethodReadOnly +description: API reference for PaymentMethodReadOnly in Umbraco Commerce +--- +## PaymentMethodReadOnly + +```csharp +public class PaymentMethodReadOnly : + StoreAggregateBase, IHasName, + IHasReadableAllowedCountryRegions, IHasReadableServicePrices +``` + +**Inheritance** + +* Class [StoreAggregateBase<TReadOnlySelf,TWritableSelf,TState>](storeaggregatebase-3.md) +* interface [IHasName](ihasname.md) +* interface [IHasReadableAllowedCountryRegions](ihasreadableallowedcountryregions.md) +* interface [IHasReadableServicePrices](ihasreadableserviceprices.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Alias + +```csharp +public string Alias { get; } +``` + + +--- + +#### AllowedCountryRegions + +```csharp +public IReadOnlyList AllowedCountryRegions { get; } +``` + + +--- + +#### CanCancelPayments + +```csharp +public bool CanCancelPayments { get; } +``` + + +--- + +#### CanCapturePayments + +```csharp +public bool CanCapturePayments { get; } +``` + + +--- + +#### CanFetchPaymentStatuses + +```csharp +public bool CanFetchPaymentStatuses { get; } +``` + + +--- + +#### CanRefundPayments + +```csharp +public bool CanRefundPayments { get; } +``` + + +--- + +#### ImageId + +```csharp +public string ImageId { get; } +``` + + +--- + +#### IsDeleted + +```csharp +public bool IsDeleted { get; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; } +``` + + +--- + +#### PaymentProviderAlias + +```csharp +public string PaymentProviderAlias { get; } +``` + + +--- + +#### PaymentProviderSettings + +```csharp +public IReadOnlyDictionary PaymentProviderSettings { get; } +``` + + +--- + +#### Prices + +```csharp +public IReadOnlyList Prices { get; } +``` + + +--- + +#### Sku + +```csharp +public string Sku { get; } +``` + + +--- + +#### SortOrder + +```csharp +public int SortOrder { get; } +``` + + +--- + +#### TaxClassId + +```csharp +public Guid? TaxClassId { get; } +``` + + +### Methods + +#### GetCountryPriceForCurrency (1 of 2) + +```csharp +public decimal GetCountryPriceForCurrency(CountryReadOnly country, CurrencyReadOnly currency) +``` + +--- + +#### GetCountryPriceForCurrency (2 of 2) + +```csharp +public decimal GetCountryPriceForCurrency(Guid countryId, Guid currencyId) +``` + + +--- + +#### GetDefaultPriceForCurrency (1 of 2) + +```csharp +public decimal GetDefaultPriceForCurrency(CurrencyReadOnly currency) +``` + +--- + +#### GetDefaultPriceForCurrency (2 of 2) + +```csharp +public decimal GetDefaultPriceForCurrency(Guid currencyId) +``` + + +--- + +#### GetPrice + +```csharp +public decimal GetPrice(Guid currencyId, Guid? countryId = default(Guid?), + Guid? regionId = default(Guid?)) +``` + + +--- + +#### GetRegionPriceForCurrency (1 of 2) + +```csharp +public decimal GetRegionPriceForCurrency(RegionReadOnly region, CurrencyReadOnly currency) +``` + +--- + +#### GetRegionPriceForCurrency (2 of 2) + +```csharp +public decimal GetRegionPriceForCurrency(Guid countryId, Guid regionId, Guid currencyId) +``` + + +--- + +#### IsAllowedInCountry (1 of 2) + +```csharp +public bool IsAllowedInCountry(CountryReadOnly country) +``` + +--- + +#### IsAllowedInCountry (2 of 2) + +```csharp +public bool IsAllowedInCountry(Guid countryId) +``` + + +--- + +#### IsAllowedInRegion (1 of 2) + +```csharp +public bool IsAllowedInRegion(RegionReadOnly region) +``` + +--- + +#### IsAllowedInRegion (2 of 2) + +```csharp +public bool IsAllowedInRegion(Guid countryId, Guid regionId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/paymentresult.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/paymentresult.md new file mode 100644 index 00000000000..f6c3e18b152 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/paymentresult.md @@ -0,0 +1,52 @@ +--- +title: PaymentResult +description: API reference for PaymentResult in Umbraco Commerce +--- +## PaymentResult + +```csharp +public class PaymentResult +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### PaymentResult + +The default constructor. + +```csharp +public PaymentResult() +``` + + +### Properties + +#### MetaData + +```csharp +public IDictionary MetaData { get; set; } +``` + + +--- + +#### Success + +```csharp +public bool Success { get; set; } +``` + + +--- + +#### TransactionInfo + +```csharp +public PaymentResultTransactionInfo TransactionInfo { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/paymentresulttransactioninfo.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/paymentresulttransactioninfo.md new file mode 100644 index 00000000000..688a9294cf9 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/paymentresulttransactioninfo.md @@ -0,0 +1,43 @@ +--- +title: PaymentResultTransactionInfo +description: API reference for PaymentResultTransactionInfo in Umbraco Commerce +--- +## PaymentResultTransactionInfo + +```csharp +public class PaymentResultTransactionInfo +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### PaymentResultTransactionInfo + +The default constructor. + +```csharp +public PaymentResultTransactionInfo() +``` + + +### Properties + +#### PaymentStatus + +```csharp +public PaymentStatus PaymentStatus { get; set; } +``` + + +--- + +#### TransactionId + +```csharp +public string TransactionId { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/paymentstatus.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/paymentstatus.md new file mode 100644 index 00000000000..b5b540b97c8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/paymentstatus.md @@ -0,0 +1,26 @@ +--- +title: PaymentStatus +description: API reference for PaymentStatus in Umbraco Commerce +--- +## PaymentStatus + +```csharp +public enum PaymentStatus +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +**Values** + +| Name | Value | Description | +| --- | --- | --- | +| Initialized | `0` | | +| Authorized | `1` | | +| Captured | `2` | | +| Cancelled | `3` | | +| Refunded | `4` | | +| PendingExternalSystem | `5` | | +| Error | `200` | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/price.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/price.md new file mode 100644 index 00000000000..0fcedf1312e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/price.md @@ -0,0 +1,255 @@ +--- +title: Price +description: API reference for Price in Umbraco Commerce +--- +## Price + +A price object + +```csharp +public sealed class Price : ValueObjectBase, IPrice +``` + +**Inheritance** + +* Class [ValueObjectBase](../../umbraco-commerce-common/umbraco-commerce-common-models/valueobjectbase.md) +* interface [IPrice](iprice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### Price (1 of 2) + +Instantiates a new [`Price`](price.md) instance + +```csharp +public Price(decimal valueWithoutTax, decimal tax, Guid currencyId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| valueWithoutTax | The value of the price without tax | +| tax | The tax value of the price | +| currencyId | The ID of the [`Currency`](currency.md) of the price | + +--- + +#### Price (2 of 2) + +Instantiates a new [`Price`](price.md) instance + +```csharp +public Price(decimal value, decimal tax, CurrencyReadOnly currency) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| value | The value of the price | +| tax | The tax value of the price | +| currency | The [`Currency`](currency.md) of the price | + + +### Properties + +#### CurrencyId + +Gets the ID of the [`Currency`](currency.md) of the price + +```csharp +public Guid CurrencyId { get; } +``` + + +--- + +#### Tax + +Gets the tax value of the price + +```csharp +public decimal Tax { get; } +``` + + +--- + +#### WithoutTax + +Gets the value of the price without tax + +```csharp +public decimal WithoutTax { get; } +``` + + +--- + +#### WithTax + +Gets the value of the price with tax + +```csharp +public decimal WithTax { get; } +``` + + +### Methods + +#### Calculate (1 of 2) + +Calculates a price from the given [`TaxRate`](taxrate.md) + +```csharp +public static Price Calculate(decimal value, TaxRate taxRate, Guid currencyId, + bool valueIncludesTax = false) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| value | The value of the price | +| taxRate | The [`TaxRate`](taxrate.md) of the price | +| currencyId | The ID of the [`Currency`](currency.md) of the price | +| valueIncludesTax | A boolean flag indicating whether the supplied price already includes tax | + +**Returns** + +A new [`Price`](price.md) instance + +--- + +#### Calculate (2 of 2) + +Calculates a price from the given [`TaxRate`](taxrate.md) + +```csharp +public static Price Calculate(decimal value, TaxRate taxRate, CurrencyReadOnly currency, + bool valueIncludesTax = false) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| value | The value of the price | +| taxRate | The [`TaxRate`](taxrate.md) of the price | +| currency | The [`Currency`](currency.md) of the price | +| valueIncludesTax | A boolean flag indicating whether the supplied price already includes tax | + +**Returns** + +A new [`Price`](price.md) instance + + +--- + +#### OfSameCurrency + +Create a new [`Price`](price.md) of the same [`Currency`](currency.md) as an existing price + +```csharp +public static Price OfSameCurrency(Price existingPrice, decimal valueWithoutTax, decimal tax) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| existingPrice | The existing [`Price`](price.md) instance | +| valueWithoutTax | The value of the new price without tax | +| tax | The tax value of the new price | + +**Returns** + +A new [`Price`](price.md) instance + + +--- + +#### ZeroValue + +Instantiates a new [`Price`](price.md) instance with a zero value + +```csharp +public static Price ZeroValue(Guid currencyId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| currencyId | The ID of the [`Currency`](currency.md) of the price | + +**Returns** + +A zero value [`Price`](price.md) instance + + +--- + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + +--- + +#### Rounded + +Round the price to the given preceission + +```csharp +public Price Rounded(int decimalPlaces) +``` + +**Returns** + +A rounded price value + + +### Operators + +#### Price Addition + +```csharp +public static Price operator +(Price price1, Price price2) +``` + + +--- + +#### Price Implicit + +```csharp +public static implicit operator decimal(Price price) +``` + + +--- + +#### Price Multiply + +```csharp +public static Price operator *(Price price, int multiplier) +``` + + +--- + +#### Price Subtraction + +```csharp +public static Price operator -(Price price1, Price price2) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/priceadjustment-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/priceadjustment-1.md new file mode 100644 index 00000000000..4c1e48002eb --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/priceadjustment-1.md @@ -0,0 +1,37 @@ +--- +title: PriceAdjustment +description: API reference for PriceAdjustment in Umbraco Commerce +--- +## PriceAdjustment<TSelf> + +```csharp +public abstract class PriceAdjustment : PriceAdjustment + where TSelf : PriceAdjustment, new() +``` + +**Inheritance** + +* Class [PriceAdjustment](priceadjustment.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### CreateDerivativeAdjustment + +```csharp +public override PriceAdjustment CreateDerivativeAdjustment(Price limitedPrice) +``` + + +--- + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/priceadjustment.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/priceadjustment.md new file mode 100644 index 00000000000..3a93203c2f6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/priceadjustment.md @@ -0,0 +1,63 @@ +--- +title: PriceAdjustment +description: API reference for PriceAdjustment in Umbraco Commerce +--- +## PriceAdjustment + +```csharp +public abstract class PriceAdjustment : ValueObjectBase +``` + +**Inheritance** + +* Class [ValueObjectBase](../../umbraco-commerce-common/umbraco-commerce-common-models/valueobjectbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Name + +```csharp +public string Name { get; } +``` + + +--- + +#### OriginalPrice + +```csharp +public Price OriginalPrice { get; } +``` + + +--- + +#### Price + +```csharp +public Price Price { get; } +``` + + +--- + +#### Type + +```csharp +public Type Type { get; } +``` + + +### Methods + +#### CreateDerivativeAdjustment + +```csharp +public abstract PriceAdjustment CreateDerivativeAdjustment(Price limitedPrice) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/priceamounttype.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/priceamounttype.md new file mode 100644 index 00000000000..b6357e37850 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/priceamounttype.md @@ -0,0 +1,21 @@ +--- +title: PriceAmountType +description: API reference for PriceAmountType in Umbraco Commerce +--- +## PriceAmountType + +```csharp +public enum PriceAmountType +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +**Values** + +| Name | Value | Description | +| --- | --- | --- | +| PreTaxAmount | `0` | | +| PostTaxAmount | `1` | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/printtemplate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/printtemplate.md new file mode 100644 index 00000000000..ea8d909e14f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/printtemplate.md @@ -0,0 +1,89 @@ +--- +title: PrintTemplate +description: API reference for PrintTemplate in Umbraco Commerce +--- +## PrintTemplate + +```csharp +public class PrintTemplate : PrintTemplateReadOnly +``` + +**Inheritance** + +* Class [PrintTemplateReadOnly](printtemplatereadonly.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### Create (1 of 2) + +```csharp +public static PrintTemplate Create(IUnitOfWork uow, Guid storeId, string alias, string name) +``` + +--- + +#### Create (2 of 2) + +```csharp +public static PrintTemplate Create(IUnitOfWork uow, Guid id, Guid storeId, string alias, + string name) +``` + + +--- + +#### SetAlias + +```csharp +public PrintTemplate SetAlias(string alias) +``` + + +--- + +#### SetCategory + +```csharp +public PrintTemplate SetCategory(TemplateCategory category) +``` + + +--- + +#### SetName (1 of 2) + +```csharp +public PrintTemplate SetName(string name) +``` + +--- + +#### SetName (2 of 2) + +```csharp +public PrintTemplate SetName(string name, string alias) +``` + + +--- + +#### SetSortOrder + +```csharp +public PrintTemplate SetSortOrder(int sortOrder) +``` + + +--- + +#### SetTemplateView + +```csharp +public PrintTemplate SetTemplateView(string templateViewPath) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/printtemplatereadonly.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/printtemplatereadonly.md new file mode 100644 index 00000000000..86f01f1e715 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/printtemplatereadonly.md @@ -0,0 +1,74 @@ +--- +title: PrintTemplateReadOnly +description: API reference for PrintTemplateReadOnly in Umbraco Commerce +--- +## PrintTemplateReadOnly + +```csharp +public class PrintTemplateReadOnly : + StoreAggregateBase, IHasName +``` + +**Inheritance** + +* Class [StoreAggregateBase<TReadOnlySelf,TWritableSelf,TState>](storeaggregatebase-3.md) +* interface [IHasName](ihasname.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Alias + +```csharp +public string Alias { get; } +``` + + +--- + +#### Category + +```csharp +public TemplateCategory Category { get; } +``` + + +--- + +#### IsDeleted + +```csharp +public bool IsDeleted { get; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; } +``` + + +--- + +#### SortOrder + +```csharp +public int SortOrder { get; } +``` + + +--- + +#### TemplateView + +```csharp +public string TemplateView { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/productattribute.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/productattribute.md new file mode 100644 index 00000000000..f97ed699c9e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/productattribute.md @@ -0,0 +1,251 @@ +--- +title: ProductAttribute +description: API reference for ProductAttribute in Umbraco Commerce +--- +## ProductAttribute + +A Product Attribute entity + +```csharp +public class ProductAttribute : ProductAttributeReadOnly +``` + +**Inheritance** + +* Class [ProductAttributeReadOnly](productattributereadonly.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### Create (1 of 2) + +```csharp +public static ProductAttribute Create(IUnitOfWork uow, Guid storeId, string alias, string name) +``` + +--- + +#### Create (2 of 2) + +```csharp +public static ProductAttribute Create(IUnitOfWork uow, Guid id, Guid storeId, string alias, + string name) +``` + + +--- + +#### AddValue (1 of 2) + +Adds a Value with a default Name to the Product Attribute + +```csharp +public ProductAttribute AddValue(string alias, string name) +``` + +--- + +#### AddValue (2 of 2) + +Adds a Value with a translated Name to the Product Attribute + +```csharp +public ProductAttribute AddValue(string alias, TranslatedValue name) +``` + + +--- + +#### ClearValues + +Clears all Values from the Product Attribute + +```csharp +public ProductAttribute ClearValues() +``` + + +--- + +#### InsertValue (1 of 2) + +Inserts a Value with a default Name into the Product Attribute + +```csharp +public ProductAttribute InsertValue(int index, string alias, string name) +``` + +--- + +#### InsertValue (2 of 2) + +Inserts a Value with a translated Name into the Product Attribute + +```csharp +public ProductAttribute InsertValue(int index, string alias, TranslatedValue name) +``` + + +--- + +#### RemoveValue + +Removes a Value with the given Alias from the Product Attribute + +```csharp +public ProductAttribute RemoveValue(string alias) +``` + + +--- + +#### RemoveValueAt + +Removes a Value at the given index from the Product Attribute + +```csharp +public ProductAttribute RemoveValueAt(int index) +``` + + +--- + +#### SetAlias + +Sets the Alias of the Product Attribute + +```csharp +public ProductAttribute SetAlias(string alias) +``` + + +--- + +#### SetName (1 of 3) + +Sets the default Name of the Product Attribute + +```csharp +public ProductAttribute SetName(string name) +``` + +--- + +#### SetName (2 of 3) + +Sets the Name of the Product Attribute for the given language + +```csharp +public ProductAttribute SetName(string languageIsoCode, string name) +``` + +--- + +#### SetName (3 of 3) + +Sets the translated Name of the Product Attribute + +```csharp +public ProductAttribute SetName(TranslatedValue name, + SetBehavior setBehavior = SetBehavior.Merge) +``` + + +--- + +#### SetSortOrder + +Sets the sort order of the product attribute + +```csharp +public ProductAttribute SetSortOrder(int sortOrder) +``` + + +--- + +#### SetValues (1 of 2) + +Sets the Values of the Product Attribute + +```csharp +public ProductAttribute SetValues(IEnumerable> values) +``` + +--- + +#### SetValues (2 of 2) + +Sets the Values of the Product Attribute + +```csharp +public ProductAttribute SetValues(IEnumerable>> values) +``` + + +--- + +#### WithValue + +Gets the product attribute value context for the value with the given alias + +```csharp +public ProductAttributeValueContext WithValue(string alias) +``` + + +--- + +#### WithValueAt + +Gets the product attribute value context for the value at the given index + +```csharp +public ProductAttributeValueContext WithValueAt(int index) +``` + + +### Classes + +#### ProductAttribute.ProductAttributeValueContext + +```csharp +public class ProductAttributeValueContext +``` + +##### Methods + +#### SetName (1 of 3) + +Sets the default Name of the Product Attribute Value + +```csharp +public ProductAttributeValueContext SetName(string name) +``` + +--- + +#### SetName (2 of 3) + +Sets the Name of the Product Attribute Value for the given language + +```csharp +public ProductAttributeValueContext SetName(string languageIsoCode, string name) +``` + +--- + +#### SetName (3 of 3) + +Sets the translated Name of the Product Attribute Value + +```csharp +public ProductAttributeValueContext SetName(TranslatedValue name, + SetBehavior setBehavior = SetBehavior.Merge) +``` + + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/productattributepreset.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/productattributepreset.md new file mode 100644 index 00000000000..7a0486c771c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/productattributepreset.md @@ -0,0 +1,137 @@ +--- +title: ProductAttributePreset +description: API reference for ProductAttributePreset in Umbraco Commerce +--- +## ProductAttributePreset + +```csharp +public class ProductAttributePreset : ProductAttributePresetReadOnly +``` + +**Inheritance** + +* Class [ProductAttributePresetReadOnly](productattributepresetreadonly.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### Create (1 of 4) + +```csharp +public static ProductAttributePreset Create(IUnitOfWork uow, Guid storeId, string alias, + string name) +``` + +--- + +#### Create (2 of 4) + +```csharp +public static ProductAttributePreset Create(IUnitOfWork uow, Guid storeId, string alias, + string name, string description) +``` + +--- + +#### Create (3 of 4) + +```csharp +public static ProductAttributePreset Create(IUnitOfWork uow, Guid id, Guid storeId, string alias, + string name) +``` + +--- + +#### Create (4 of 4) + +```csharp +public static ProductAttributePreset Create(IUnitOfWork uow, Guid id, Guid storeId, string alias, + string name, string description) +``` + + +--- + +#### AllowAttribute + +```csharp +public ProductAttributePreset AllowAttribute(string alias, IEnumerable valueAliases) +``` + + +--- + +#### DisallowAttribute + +```csharp +public ProductAttributePreset DisallowAttribute(string alias) +``` + + +--- + +#### SetAlias + +```csharp +public ProductAttributePreset SetAlias(string alias) +``` + + +--- + +#### SetAllowedAttributes + +```csharp +public ProductAttributePreset SetAllowedAttributes( + IEnumerable allowedAttributes, + SetBehavior setBehavior = SetBehavior.Merge) +``` + + +--- + +#### SetDescription + +```csharp +public ProductAttributePreset SetDescription(string description) +``` + + +--- + +#### SetIcon + +```csharp +public ProductAttributePreset SetIcon(string icon) +``` + + +--- + +#### SetName (1 of 2) + +```csharp +public ProductAttributePreset SetName(string name) +``` + +--- + +#### SetName (2 of 2) + +```csharp +public ProductAttributePreset SetName(string name, string alias) +``` + + +--- + +#### SetSortOrder + +```csharp +public ProductAttributePreset SetSortOrder(int sortOrder) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/productattributepresetreadonly.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/productattributepresetreadonly.md new file mode 100644 index 00000000000..1079b6cc273 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/productattributepresetreadonly.md @@ -0,0 +1,100 @@ +--- +title: ProductAttributePresetReadOnly +description: API reference for ProductAttributePresetReadOnly in Umbraco Commerce +--- +## ProductAttributePresetReadOnly + +A read only Product Attribute Preset entity + +```csharp +public class ProductAttributePresetReadOnly : + StoreAggregateBase, + IHasName +``` + +**Inheritance** + +* Class [StoreAggregateBase<TReadOnlySelf,TWritableSelf,TState>](storeaggregatebase-3.md) +* interface [IHasName](ihasname.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Alias + +Gets the Alias of the Product Attribute Preset + +```csharp +public string Alias { get; } +``` + + +--- + +#### AllowedAttributes + +Gets the list of allowed Product Attribtues for this Product Attribute Preset + +```csharp +public IReadOnlyCollection AllowedAttributes { get; } +``` + + +--- + +#### Description + +Gets the Description of the Product Attribute Preset + +```csharp +public string Description { get; } +``` + + +--- + +#### Icon + +Gets the Icon of the Product Attribute Preset + +```csharp +public string Icon { get; } +``` + + +--- + +#### IsDeleted + +Gets a flag indicating whether the Product Attribute Preset is deleted or not + +```csharp +public bool IsDeleted { get; } +``` + + +--- + +#### Name + +Gets the Name of the Product Attribute Preset + +```csharp +public string Name { get; } +``` + + +--- + +#### SortOrder + +Gets the Sort Order of the Product Attribute Preset + +```csharp +public int SortOrder { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/productattributereadonly.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/productattributereadonly.md new file mode 100644 index 00000000000..aa1c128f307 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/productattributereadonly.md @@ -0,0 +1,76 @@ +--- +title: ProductAttributeReadOnly +description: API reference for ProductAttributeReadOnly in Umbraco Commerce +--- +## ProductAttributeReadOnly + +A read only Product Attribute entity + +```csharp +public class ProductAttributeReadOnly : + StoreAggregateBase +``` + +**Inheritance** + +* Class [StoreAggregateBase<TReadOnlySelf,TWritableSelf,TState>](storeaggregatebase-3.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Alias + +Gets the Alias of the Product Attribute + +```csharp +public string Alias { get; } +``` + + +--- + +#### IsDeleted + +Gets a flag indicating whether the Product Attribute is deleted or not + +```csharp +public bool IsDeleted { get; } +``` + + +--- + +#### Name + +Gets the Name of the Product Attribute + +```csharp +public ReadOnlyTranslatedValue Name { get; } +``` + + +--- + +#### SortOrder + +Gets the Sort Order of the Product Attribute + +```csharp +public int SortOrder { get; } +``` + + +--- + +#### Values + +Gets the Values of the Product Attribute + +```csharp +public IReadOnlyCollection Values { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/productattributevaluereadonly.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/productattributevaluereadonly.md new file mode 100644 index 00000000000..057a9944d77 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/productattributevaluereadonly.md @@ -0,0 +1,62 @@ +--- +title: ProductAttributeValueReadOnly +description: API reference for ProductAttributeValueReadOnly in Umbraco Commerce +--- +## ProductAttributeValueReadOnly + +```csharp +public class ProductAttributeValueReadOnly : EntityBase +``` + +**Inheritance** + +* Class [EntityBase<TState>](entitybase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Alias + +Gets the Alias of the Product Attribute + +```csharp +public string Alias { get; } +``` + + +--- + +#### Name + +Gets the Name of the Product Attribute + +```csharp +public ReadOnlyTranslatedValue Name { get; } +``` + + +--- + +#### ProductAttributeId + +Gets the ID of the [`ProductAttribute`](productattribute.md) this entity belongs to + +```csharp +public Guid ProductAttributeId { get; } +``` + + +--- + +#### StoreId + +Gets the ID of the [`Store`](store.md) this entity belongs to + +```csharp +public Guid StoreId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/productprice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/productprice.md new file mode 100644 index 00000000000..9e520a1a89e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/productprice.md @@ -0,0 +1,64 @@ +--- +title: ProductPrice +description: API reference for ProductPrice in Umbraco Commerce +--- +## ProductPrice + +```csharp +public class ProductPrice : ValueObjectBase, IAmount +``` + +**Inheritance** + +* Class [ValueObjectBase](../../umbraco-commerce-common/umbraco-commerce-common-models/valueobjectbase.md) +* interface [IAmount](iamount.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### ProductPrice + +```csharp +public ProductPrice(decimal value, Guid currencyId) +``` + + +### Properties + +#### CurrencyId + +```csharp +public Guid CurrencyId { get; } +``` + + +--- + +#### Value + +```csharp +public decimal Value { get; } +``` + + +### Methods + +#### ZeroValue + +```csharp +public static ProductPrice ZeroValue(Guid currencyId) +``` + + +--- + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/productsnapshotbase.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/productsnapshotbase.md new file mode 100644 index 00000000000..ae46c1dfb28 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/productsnapshotbase.md @@ -0,0 +1,119 @@ +--- +title: ProductSnapshotBase +description: API reference for ProductSnapshotBase in Umbraco Commerce +--- +## ProductSnapshotBase + +```csharp +public abstract class ProductSnapshotBase : IProductSnapshot +``` + +**Inheritance** + +* interface [IProductSnapshot](iproductsnapshot.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### ProductSnapshotBase + +The default constructor. + +```csharp +public ProductSnapshotBase() +``` + + +### Properties + +#### Attributes + +```csharp +public virtual IEnumerable Attributes { get; } +``` + + +--- + +#### IsGiftCard + +```csharp +public abstract bool IsGiftCard { get; } +``` + + +--- + +#### Name + +```csharp +public abstract string Name { get; } +``` + + +--- + +#### Prices + +```csharp +public abstract IEnumerable Prices { get; } +``` + + +--- + +#### ProductReference + +```csharp +public abstract string ProductReference { get; } +``` + + +--- + +#### ProductVariantReference + +```csharp +public abstract string ProductVariantReference { get; } +``` + + +--- + +#### Properties + +```csharp +public abstract IDictionary Properties { get; } +``` + + +--- + +#### Sku + +```csharp +public abstract string Sku { get; } +``` + + +--- + +#### StoreId + +```csharp +public abstract Guid StoreId { get; } +``` + + +--- + +#### TaxClassId + +```csharp +public abstract Guid? TaxClassId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/productsummarybase.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/productsummarybase.md new file mode 100644 index 00000000000..8bd9df9a913 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/productsummarybase.md @@ -0,0 +1,28 @@ +--- +title: ProductSummaryBase +description: API reference for ProductSummaryBase in Umbraco Commerce +--- +## ProductSummaryBase + +```csharp +public abstract class ProductSummaryBase : ProductSummaryCommonBase, IProductSummary +``` + +**Inheritance** + +* Class [ProductSummaryCommonBase](productsummarycommonbase.md) +* interface [IProductSummary](iproductsummary.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### HasVariants + +```csharp +public abstract bool HasVariants { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/productsummarycommonbase.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/productsummarycommonbase.md new file mode 100644 index 00000000000..b8a99039a21 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/productsummarycommonbase.md @@ -0,0 +1,54 @@ +--- +title: ProductSummaryCommonBase +description: API reference for ProductSummaryCommonBase in Umbraco Commerce +--- +## ProductSummaryCommonBase + +```csharp +public abstract class ProductSummaryCommonBase : IProductSummaryCommon +``` + +**Inheritance** + +* interface [IProductSummaryCommon](iproductsummarycommon.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Name + +```csharp +public abstract string Name { get; } +``` + + +--- + +#### Prices + +```csharp +public abstract IEnumerable Prices { get; } +``` + + +--- + +#### Reference + +```csharp +public abstract string Reference { get; } +``` + + +--- + +#### Sku + +```csharp +public abstract string Sku { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/productvariantsummarybase.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/productvariantsummarybase.md new file mode 100644 index 00000000000..a978aec6002 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/productvariantsummarybase.md @@ -0,0 +1,28 @@ +--- +title: ProductVariantSummaryBase +description: API reference for ProductVariantSummaryBase in Umbraco Commerce +--- +## ProductVariantSummaryBase + +```csharp +public abstract class ProductVariantSummaryBase : ProductSummaryCommonBase, IProductVariantSummary +``` + +**Inheritance** + +* Class [ProductSummaryCommonBase](productsummarycommonbase.md) +* interface [IProductVariantSummary](iproductvariantsummary.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Attributes + +```csharp +public abstract IReadOnlyDictionary Attributes { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/property.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/property.md new file mode 100644 index 00000000000..f600660ae8e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/property.md @@ -0,0 +1,80 @@ +--- +title: Property +description: API reference for Property in Umbraco Commerce +--- +## Property + +```csharp +public class Property : ValueObjectBase +``` + +**Inheritance** + +* Class [ValueObjectBase](../../umbraco-commerce-common/umbraco-commerce-common-models/valueobjectbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### Property (1 of 2) + +```csharp +public Property(string alias, string name, string value) +``` + +--- + +#### Property (2 of 2) + +```csharp +public Property(string alias, string name, string description, string value) +``` + + +### Properties + +#### Alias + +```csharp +public string Alias { get; } +``` + + +--- + +#### Description + +```csharp +public string Description { get; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; } +``` + + +--- + +#### Value + +```csharp +public string Value { get; } +``` + + +### Methods + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/propertysource.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/propertysource.md new file mode 100644 index 00000000000..ba039c66562 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/propertysource.md @@ -0,0 +1,21 @@ +--- +title: PropertySource +description: API reference for PropertySource in Umbraco Commerce +--- +## PropertySource + +```csharp +public enum PropertySource +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +**Values** + +| Name | Value | Description | +| --- | --- | --- | +| Order | `0` | | +| OrderLine | `1` | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/propertyvalue.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/propertyvalue.md new file mode 100644 index 00000000000..8b31db77cc6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/propertyvalue.md @@ -0,0 +1,81 @@ +--- +title: PropertyValue +description: API reference for PropertyValue in Umbraco Commerce +--- +## PropertyValue + +```csharp +public sealed class PropertyValue : ValueObjectBase +``` + +**Inheritance** + +* Class [ValueObjectBase](../../umbraco-commerce-common/umbraco-commerce-common-models/valueobjectbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### PropertyValue + +```csharp +public PropertyValue(string value, bool isServerSideOnly = false, bool isReadOnly = false) +``` + + +### Properties + +#### IsReadOnly + +```csharp +public bool IsReadOnly { get; } +``` + + +--- + +#### IsServerSideOnly + +```csharp +public bool IsServerSideOnly { get; } +``` + + +--- + +#### Value + +```csharp +public string Value { get; } +``` + + +### Methods + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + +--- + +#### ToString + +```csharp +public override string ToString() +``` + + +### Operators + +#### PropertyValue Implicit + +```csharp +public static implicit operator string(PropertyValue propertyValue) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/readonlyadjustedamount.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/readonlyadjustedamount.md new file mode 100644 index 00000000000..8497e0cadc8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/readonlyadjustedamount.md @@ -0,0 +1,107 @@ +--- +title: ReadOnlyAdjustedAmount +description: API reference for ReadOnlyAdjustedAmount in Umbraco Commerce +--- +## ReadOnlyAdjustedAmount + +```csharp +public class ReadOnlyAdjustedAmount : IDeepCloneable +``` + +**Inheritance** + +* interface [IDeepCloneable](../../umbraco-commerce-common/umbraco-commerce-common/ideepcloneable.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Adjustment + +```csharp +public virtual Amount Adjustment { get; } +``` + + +--- + +#### Adjustments + +```csharp +public virtual IReadOnlyCollection Adjustments { get; } +``` + + +--- + +#### Value + +```csharp +public virtual Amount Value { get; } +``` + + +--- + +#### WithoutAdjustments + +```csharp +public virtual Amount WithoutAdjustments { get; } +``` + + +### Methods + +#### ZeroValue + +```csharp +public static ReadOnlyAdjustedAmount ZeroValue(Guid currencyId) +``` + + +--- + +#### DeepClone + +```csharp +public virtual object DeepClone() +``` + + +--- + +#### GetHashCode + +```csharp +public override int GetHashCode() +``` + + +--- + +#### ToString + +```csharp +public override string ToString() +``` + + +### Operators + +#### ReadOnlyAdjustedAmount Implicit (1 of 2) + +```csharp +public static implicit operator Amount(ReadOnlyAdjustedAmount adjustedAmount) +``` + +--- + +#### ReadOnlyAdjustedAmount Implicit (2 of 2) + +```csharp +public static implicit operator decimal(ReadOnlyAdjustedAmount adjustedAmount) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/readonlyadjustedprice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/readonlyadjustedprice.md new file mode 100644 index 00000000000..2bf7659b16b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/readonlyadjustedprice.md @@ -0,0 +1,107 @@ +--- +title: ReadOnlyAdjustedPrice +description: API reference for ReadOnlyAdjustedPrice in Umbraco Commerce +--- +## ReadOnlyAdjustedPrice + +```csharp +public class ReadOnlyAdjustedPrice : IDeepCloneable +``` + +**Inheritance** + +* interface [IDeepCloneable](../../umbraco-commerce-common/umbraco-commerce-common/ideepcloneable.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Adjustment + +```csharp +public virtual Price Adjustment { get; } +``` + + +--- + +#### Adjustments + +```csharp +public virtual IReadOnlyCollection Adjustments { get; } +``` + + +--- + +#### Value + +```csharp +public virtual Price Value { get; } +``` + + +--- + +#### WithoutAdjustments + +```csharp +public virtual Price WithoutAdjustments { get; } +``` + + +### Methods + +#### ZeroValue + +```csharp +public static ReadOnlyAdjustedPrice ZeroValue(Guid currencyId) +``` + + +--- + +#### DeepClone + +```csharp +public virtual object DeepClone() +``` + + +--- + +#### GetHashCode + +```csharp +public override int GetHashCode() +``` + + +--- + +#### ToString + +```csharp +public override string ToString() +``` + + +### Operators + +#### ReadOnlyAdjustedPrice Implicit (1 of 2) + +```csharp +public static implicit operator Price(ReadOnlyAdjustedPrice adjustedPrice) +``` + +--- + +#### ReadOnlyAdjustedPrice Implicit (2 of 2) + +```csharp +public static implicit operator decimal(ReadOnlyAdjustedPrice adjustedPrice) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/readonlyorderlinebaseprice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/readonlyorderlinebaseprice.md new file mode 100644 index 00000000000..143ad0be3d6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/readonlyorderlinebaseprice.md @@ -0,0 +1,45 @@ +--- +title: ReadOnlyOrderLineBasePrice +description: API reference for ReadOnlyOrderLineBasePrice in Umbraco Commerce +--- +## ReadOnlyOrderLineBasePrice + +```csharp +public class ReadOnlyOrderLineBasePrice : ReadOnlyAdjustedPrice +``` + +**Inheritance** + +* Class [ReadOnlyAdjustedPrice](readonlyadjustedprice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### ZeroValue + +```csharp +public static ReadOnlyOrderLineBasePrice ZeroValue(Guid currencyId) +``` + + +--- + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + +--- + +#### GetHashCode + +```csharp +public override int GetHashCode() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/readonlyorderlinetotalprice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/readonlyorderlinetotalprice.md new file mode 100644 index 00000000000..29408d42d1a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/readonlyorderlinetotalprice.md @@ -0,0 +1,45 @@ +--- +title: ReadOnlyOrderLineTotalPrice +description: API reference for ReadOnlyOrderLineTotalPrice in Umbraco Commerce +--- +## ReadOnlyOrderLineTotalPrice + +```csharp +public class ReadOnlyOrderLineTotalPrice : ReadOnlyTotalPriceWithPreviousAdjustment +``` + +**Inheritance** + +* Class [ReadOnlyTotalPriceWithPreviousAdjustment](readonlytotalpricewithpreviousadjustment.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### ZeroValue + +```csharp +public static ReadOnlyOrderLineTotalPrice ZeroValue(Guid currencyId) +``` + + +--- + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + +--- + +#### GetHashCode + +```csharp +public override int GetHashCode() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/readonlyorderlineunitprice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/readonlyorderlineunitprice.md new file mode 100644 index 00000000000..075f4ab8ad8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/readonlyorderlineunitprice.md @@ -0,0 +1,45 @@ +--- +title: ReadOnlyOrderLineUnitPrice +description: API reference for ReadOnlyOrderLineUnitPrice in Umbraco Commerce +--- +## ReadOnlyOrderLineUnitPrice + +```csharp +public class ReadOnlyOrderLineUnitPrice : ReadOnlyTotalPriceWithPreviousAdjustment +``` + +**Inheritance** + +* Class [ReadOnlyTotalPriceWithPreviousAdjustment](readonlytotalpricewithpreviousadjustment.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### ZeroValue + +```csharp +public static ReadOnlyOrderLineUnitPrice ZeroValue(Guid currencyId) +``` + + +--- + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + +--- + +#### GetHashCode + +```csharp +public override int GetHashCode() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/readonlyordersubtotalprice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/readonlyordersubtotalprice.md new file mode 100644 index 00000000000..1c8588f94a8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/readonlyordersubtotalprice.md @@ -0,0 +1,45 @@ +--- +title: ReadOnlyOrderSubtotalPrice +description: API reference for ReadOnlyOrderSubtotalPrice in Umbraco Commerce +--- +## ReadOnlyOrderSubtotalPrice + +```csharp +public class ReadOnlyOrderSubtotalPrice : ReadOnlyTotalPriceWithPreviousAdjustment +``` + +**Inheritance** + +* Class [ReadOnlyTotalPriceWithPreviousAdjustment](readonlytotalpricewithpreviousadjustment.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### ZeroValue + +```csharp +public static ReadOnlyOrderSubtotalPrice ZeroValue(Guid currencyId) +``` + + +--- + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + +--- + +#### GetHashCode + +```csharp +public override int GetHashCode() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/readonlyordertotalprice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/readonlyordertotalprice.md new file mode 100644 index 00000000000..ae9b1eeee4a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/readonlyordertotalprice.md @@ -0,0 +1,45 @@ +--- +title: ReadOnlyOrderTotalPrice +description: API reference for ReadOnlyOrderTotalPrice in Umbraco Commerce +--- +## ReadOnlyOrderTotalPrice + +```csharp +public class ReadOnlyOrderTotalPrice : ReadOnlyOrderSubtotalPrice +``` + +**Inheritance** + +* Class [ReadOnlyOrderSubtotalPrice](readonlyordersubtotalprice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### ZeroValue + +```csharp +public static ReadOnlyOrderTotalPrice ZeroValue(Guid currencyId) +``` + + +--- + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + +--- + +#### GetHashCode + +```csharp +public override int GetHashCode() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/readonlyordertransactionamount.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/readonlyordertransactionamount.md new file mode 100644 index 00000000000..1aa3836213f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/readonlyordertransactionamount.md @@ -0,0 +1,36 @@ +--- +title: ReadOnlyOrderTransactionAmount +description: API reference for ReadOnlyOrderTransactionAmount in Umbraco Commerce +--- +## ReadOnlyOrderTransactionAmount + +```csharp +public class ReadOnlyOrderTransactionAmount : ReadOnlyAdjustedAmount +``` + +**Inheritance** + +* Class [ReadOnlyAdjustedAmount](readonlyadjustedamount.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### ZeroValue + +```csharp +public static ReadOnlyOrderTransactionAmount ZeroValue(Guid currencyId) +``` + + +--- + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/readonlytotalprice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/readonlytotalprice.md new file mode 100644 index 00000000000..19c166693ea --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/readonlytotalprice.md @@ -0,0 +1,36 @@ +--- +title: ReadOnlyTotalPrice +description: API reference for ReadOnlyTotalPrice in Umbraco Commerce +--- +## ReadOnlyTotalPrice + +```csharp +public class ReadOnlyTotalPrice : ReadOnlyAdjustedPrice +``` + +**Inheritance** + +* Class [ReadOnlyAdjustedPrice](readonlyadjustedprice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### ZeroValue + +```csharp +public static ReadOnlyTotalPrice ZeroValue(Guid currencyId) +``` + + +--- + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/readonlytotalpricewithpreviousadjustment.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/readonlytotalpricewithpreviousadjustment.md new file mode 100644 index 00000000000..3f7f73a8195 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/readonlytotalpricewithpreviousadjustment.md @@ -0,0 +1,72 @@ +--- +title: ReadOnlyTotalPriceWithPreviousAdjustment +description: API reference for ReadOnlyTotalPriceWithPreviousAdjustment in Umbraco Commerce +--- +## ReadOnlyTotalPriceWithPreviousAdjustment + +```csharp +public class ReadOnlyTotalPriceWithPreviousAdjustment : ReadOnlyTotalPrice +``` + +**Inheritance** + +* Class [ReadOnlyTotalPrice](readonlytotalprice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### PreviousAdjustments + +```csharp +public Price PreviousAdjustments { get; } +``` + + +--- + +#### TotalAdjustment + +```csharp +public Price TotalAdjustment { get; } +``` + + +--- + +#### WithPreviousAdjustments + +```csharp +public Price WithPreviousAdjustments { get; } +``` + + +### Methods + +#### ZeroValue + +```csharp +public static ReadOnlyTotalPriceWithPreviousAdjustment ZeroValue(Guid currencyId) +``` + + +--- + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + +--- + +#### GetHashCode + +```csharp +public override int GetHashCode() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/readonlytranslatedvalue-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/readonlytranslatedvalue-1.md new file mode 100644 index 00000000000..3bcdb779e6e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/readonlytranslatedvalue-1.md @@ -0,0 +1,99 @@ +--- +title: ReadOnlyTranslatedValue +description: API reference for ReadOnlyTranslatedValue in Umbraco Commerce +--- +## ReadOnlyTranslatedValue<T> + +```csharp +public class ReadOnlyTranslatedValue : ValueObjectBase +``` + +**Inheritance** + +* Class [ValueObjectBase](../../umbraco-commerce-common/umbraco-commerce-common-models/valueobjectbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Indexers + +#### ReadOnlyTranslatedValue<T> + +```csharp +public T this[string languageIsoCode] { get; } +``` + + +### Methods + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + +--- + +#### GetDefaultValue + +```csharp +public T GetDefaultValue() +``` + + +--- + +#### GetTranslatedValues + +```csharp +public IReadOnlyDictionary GetTranslatedValues() +``` + + +--- + +#### GetValue + +```csharp +public T GetValue(string languageIsoCode, bool fallbackToDefault = true) +``` + + +--- + +#### HasValue + +```csharp +public bool HasValue(string languageIsoCode) +``` + + +--- + +#### ToString + +```csharp +public override string ToString() +``` + + +--- + +#### TryGetValue + +```csharp +public bool TryGetValue(string languageIsoCode, out T value) +``` + + +### Operators + +#### ReadOnlyTranslatedValue<T> Implicit + +```csharp +public static implicit operator T(ReadOnlyTranslatedValue value) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/region.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/region.md new file mode 100644 index 00000000000..e6a48e00487 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/region.md @@ -0,0 +1,99 @@ +--- +title: Region +description: API reference for Region in Umbraco Commerce +--- +## Region + +```csharp +public class Region : RegionReadOnly +``` + +**Inheritance** + +* Class [RegionReadOnly](regionreadonly.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### Create (1 of 2) + +```csharp +public static Region Create(IUnitOfWork uow, Guid storeId, Guid countryId, string code, string name) +``` + +--- + +#### Create (2 of 2) + +```csharp +public static Region Create(IUnitOfWork uow, Guid id, Guid storeId, Guid countryId, string code, + string name) +``` + + +--- + +#### ClearDefaultPaymentMethod + +```csharp +public Region ClearDefaultPaymentMethod() +``` + + +--- + +#### ClearDefaultShippingMethod + +```csharp +public Region ClearDefaultShippingMethod() +``` + + +--- + +#### SetCode + +```csharp +public Region SetCode(string code) +``` + + +--- + +#### SetDefaultPaymentMethod + +```csharp +public Region SetDefaultPaymentMethod(Guid? paymentMethodId) +``` + + +--- + +#### SetDefaultShippingMethod + +```csharp +public Region SetDefaultShippingMethod(Guid? shippingMethodId) +``` + + +--- + +#### SetName + +```csharp +public Region SetName(string name) +``` + + +--- + +#### SetSortOrder + +```csharp +public Region SetSortOrder(int sortOrder) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/regionreadonly.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/regionreadonly.md new file mode 100644 index 00000000000..474cae92441 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/regionreadonly.md @@ -0,0 +1,82 @@ +--- +title: RegionReadOnly +description: API reference for RegionReadOnly in Umbraco Commerce +--- +## RegionReadOnly + +```csharp +public class RegionReadOnly : StoreAggregateBase, IHasName +``` + +**Inheritance** + +* Class [StoreAggregateBase<TReadOnlySelf,TWritableSelf,TState>](storeaggregatebase-3.md) +* interface [IHasName](ihasname.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Code + +```csharp +public string Code { get; } +``` + + +--- + +#### CountryId + +```csharp +public Guid CountryId { get; } +``` + + +--- + +#### DefaultPaymentMethodId + +```csharp +public Guid? DefaultPaymentMethodId { get; } +``` + + +--- + +#### DefaultShippingMethodId + +```csharp +public Guid? DefaultShippingMethodId { get; } +``` + + +--- + +#### IsDeleted + +```csharp +public bool IsDeleted { get; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; } +``` + + +--- + +#### SortOrder + +```csharp +public int SortOrder { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/registeredcustomerinfo.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/registeredcustomerinfo.md new file mode 100644 index 00000000000..a2c9860281d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/registeredcustomerinfo.md @@ -0,0 +1,32 @@ +--- +title: RegisteredCustomerInfo +description: API reference for RegisteredCustomerInfo in Umbraco Commerce +--- +## RegisteredCustomerInfo + +```csharp +public class RegisteredCustomerInfo +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### IsUmbracoMember + +```csharp +public bool IsUmbracoMember { get; } +``` + + +--- + +#### Properties + +```csharp +public IEnumerable Properties { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/registeredcustomerinfobuilder.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/registeredcustomerinfobuilder.md new file mode 100644 index 00000000000..d1c10660b6c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/registeredcustomerinfobuilder.md @@ -0,0 +1,60 @@ +--- +title: RegisteredCustomerInfoBuilder +description: API reference for RegisteredCustomerInfoBuilder in Umbraco Commerce +--- +## RegisteredCustomerInfoBuilder + +```csharp +public class RegisteredCustomerInfoBuilder +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### RegisteredCustomerInfoBuilder + +The default constructor. + +```csharp +public RegisteredCustomerInfoBuilder() +``` + + +### Methods + +#### AddProperty (1 of 3) + +```csharp +public RegisteredCustomerInfoBuilder AddProperty(string alias, string name, string value) +``` + +--- + +#### AddProperty (2 of 3) + +```csharp +public RegisteredCustomerInfoBuilder AddProperty(string alias, string name, string description, + string value) +``` + +--- + +#### AddProperty (3 of 3) + +```csharp +public RegisteredCustomerInfoBuilder AddProperty(Property property) +``` + + +--- + +#### Build + +```csharp +public RegisteredCustomerInfo Build() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/serviceprice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/serviceprice.md new file mode 100644 index 00000000000..5be9581fbe2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/serviceprice.md @@ -0,0 +1,100 @@ +--- +title: ServicePrice +description: API reference for ServicePrice in Umbraco Commerce +--- +## ServicePrice + +```csharp +public class ServicePrice : ValueObjectBase, IAmount +``` + +**Inheritance** + +* Class [ValueObjectBase](../../umbraco-commerce-common/umbraco-commerce-common-models/valueobjectbase.md) +* interface [IAmount](iamount.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### ServicePrice (1 of 2) + +```csharp +public ServicePrice(decimal value, Guid currencyId) +``` + +--- + +#### ServicePrice (2 of 2) + +```csharp +public ServicePrice(decimal value, Guid currencyId, Guid? countryId, + Guid? regionId = default(Guid?)) +``` + + +### Properties + +#### CountryId + +```csharp +public Guid? CountryId { get; } +``` + + +--- + +#### CurrencyId + +```csharp +public Guid CurrencyId { get; } +``` + + +--- + +#### RegionId + +```csharp +public Guid? RegionId { get; } +``` + + +--- + +#### Value + +```csharp +public decimal Value { get; } +``` + + +### Methods + +#### ZeroValue (1 of 2) + +```csharp +public static ServicePrice ZeroValue(Guid currencyId) +``` + +--- + +#### ZeroValue (2 of 2) + +```csharp +public static ServicePrice ZeroValue(Guid currencyId, Guid? countryId, + Guid? regionId = default(Guid?)) +``` + + +--- + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/setbehavior.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/setbehavior.md new file mode 100644 index 00000000000..d0b18b8e67b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/setbehavior.md @@ -0,0 +1,21 @@ +--- +title: SetBehavior +description: API reference for SetBehavior in Umbraco Commerce +--- +## SetBehavior + +```csharp +public enum SetBehavior +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +**Values** + +| Name | Value | Description | +| --- | --- | --- | +| Merge | `0` | | +| Replace | `1` | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/shippingmethod.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/shippingmethod.md new file mode 100644 index 00000000000..1d8a8233421 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/shippingmethod.md @@ -0,0 +1,346 @@ +--- +title: ShippingMethod +description: API reference for ShippingMethod in Umbraco Commerce +--- +## ShippingMethod + +```csharp +public class ShippingMethod : ShippingMethodReadOnly, IHasWritableServicePrices, + IHasWrtiableAllowedCountries, IHasWrtiableAllowedCountryRegions +``` + +**Inheritance** + +* Class [ShippingMethodReadOnly](shippingmethodreadonly.md) +* interface [IHasWritableServicePrices<TAggregate>](ihaswritableserviceprices-1.md) +* interface [IHasWrtiableAllowedCountries<TAggregate>](ihaswrtiableallowedcountries-1.md) +* interface [IHasWrtiableAllowedCountryRegions<TAggregate>](ihaswrtiableallowedcountryregions-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### Create (1 of 2) + +```csharp +public static ShippingMethod Create(IUnitOfWork uow, Guid storeId, string alias, string name) +``` + +--- + +#### Create (2 of 2) + +```csharp +public static ShippingMethod Create(IUnitOfWork uow, Guid id, Guid storeId, string alias, + string name) +``` + + +--- + +#### AllowInCountry (1 of 2) + +```csharp +public ShippingMethod AllowInCountry(CountryReadOnly country) +``` + +--- + +#### AllowInCountry (2 of 2) + +```csharp +public ShippingMethod AllowInCountry(Guid countryId) +``` + + +--- + +#### AllowInRegion (1 of 2) + +```csharp +public ShippingMethod AllowInRegion(RegionReadOnly region) +``` + +--- + +#### AllowInRegion (2 of 2) + +```csharp +public ShippingMethod AllowInRegion(Guid countryId, Guid regionId) +``` + + +--- + +#### ClearCountryPriceForCurrency (1 of 2) + +```csharp +public ShippingMethod ClearCountryPriceForCurrency(CountryReadOnly country, + CurrencyReadOnly currency) +``` + +--- + +#### ClearCountryPriceForCurrency (2 of 2) + +```csharp +public ShippingMethod ClearCountryPriceForCurrency(Guid countryId, Guid currencyId) +``` + + +--- + +#### ClearDefaultPriceForCurrency (1 of 2) + +```csharp +public ShippingMethod ClearDefaultPriceForCurrency(CurrencyReadOnly currency) +``` + +--- + +#### ClearDefaultPriceForCurrency (2 of 2) + +```csharp +public ShippingMethod ClearDefaultPriceForCurrency(Guid currencyId) +``` + + +--- + +#### ClearPricesForCountry (1 of 2) + +```csharp +public ShippingMethod ClearPricesForCountry(CountryReadOnly country, + CurrencyReadOnly currency = null) +``` + +--- + +#### ClearPricesForCountry (2 of 2) + +```csharp +public ShippingMethod ClearPricesForCountry(Guid countryId, Guid? currencyId = default(Guid?)) +``` + + +--- + +#### ClearPricesForCurrency (1 of 2) + +```csharp +public ShippingMethod ClearPricesForCurrency(CurrencyReadOnly currency) +``` + +--- + +#### ClearPricesForCurrency (2 of 2) + +```csharp +public ShippingMethod ClearPricesForCurrency(Guid currencyId) +``` + + +--- + +#### ClearPricesForRegion (1 of 2) + +```csharp +public ShippingMethod ClearPricesForRegion(RegionReadOnly region, CurrencyReadOnly currency = null) +``` + +--- + +#### ClearPricesForRegion (2 of 2) + +```csharp +public ShippingMethod ClearPricesForRegion(Guid countryId, Guid regionId, + Guid? currencyId = default(Guid?)) +``` + + +--- + +#### ClearRegionPriceForCurrency (1 of 2) + +```csharp +public ShippingMethod ClearRegionPriceForCurrency(RegionReadOnly region, CurrencyReadOnly currency) +``` + +--- + +#### ClearRegionPriceForCurrency (2 of 2) + +```csharp +public ShippingMethod ClearRegionPriceForCurrency(Guid countryId, Guid regionId, Guid currencyId) +``` + + +--- + +#### ClearTaxClass + +```csharp +public ShippingMethod ClearTaxClass() +``` + + +--- + +#### DisallowInCountry (1 of 2) + +```csharp +public ShippingMethod DisallowInCountry(CountryReadOnly country) +``` + +--- + +#### DisallowInCountry (2 of 2) + +```csharp +public ShippingMethod DisallowInCountry(Guid countryId) +``` + + +--- + +#### DisallowInRegion (1 of 2) + +```csharp +public ShippingMethod DisallowInRegion(RegionReadOnly region) +``` + +--- + +#### DisallowInRegion (2 of 2) + +```csharp +public ShippingMethod DisallowInRegion(Guid countryId, Guid regionId) +``` + + +--- + +#### SetAlias + +```csharp +public ShippingMethod SetAlias(string alias) +``` + + +--- + +#### SetCountryPriceForCurrency (1 of 2) + +```csharp +public ShippingMethod SetCountryPriceForCurrency(CountryReadOnly country, + CurrencyReadOnly currency, decimal value) +``` + +--- + +#### SetCountryPriceForCurrency (2 of 2) + +```csharp +public ShippingMethod SetCountryPriceForCurrency(Guid countryId, Guid currencyId, decimal value) +``` + + +--- + +#### SetDefaultPriceForCurrency (1 of 2) + +```csharp +public ShippingMethod SetDefaultPriceForCurrency(CurrencyReadOnly currency, decimal value) +``` + +--- + +#### SetDefaultPriceForCurrency (2 of 2) + +```csharp +public ShippingMethod SetDefaultPriceForCurrency(Guid currencyId, decimal value) +``` + + +--- + +#### SetImage + +```csharp +public ShippingMethod SetImage(string id) +``` + + +--- + +#### SetName (1 of 2) + +```csharp +public ShippingMethod SetName(string name) +``` + +--- + +#### SetName (2 of 2) + +```csharp +public ShippingMethod SetName(string name, string alias) +``` + + +--- + +#### SetRegionPriceForCurrency (1 of 2) + +```csharp +public ShippingMethod SetRegionPriceForCurrency(RegionReadOnly region, CurrencyReadOnly currency, + decimal value) +``` + +--- + +#### SetRegionPriceForCurrency (2 of 2) + +```csharp +public ShippingMethod SetRegionPriceForCurrency(Guid countryId, Guid regionId, Guid currencyId, + decimal value) +``` + + +--- + +#### SetSku + +```csharp +public ShippingMethod SetSku(string sku) +``` + + +--- + +#### SetSortOrder + +```csharp +public ShippingMethod SetSortOrder(int sortOrder) +``` + + +--- + +#### SetTaxClass (1 of 2) + +```csharp +public ShippingMethod SetTaxClass(TaxClass taxClass) +``` + +--- + +#### SetTaxClass (2 of 2) + +```csharp +public ShippingMethod SetTaxClass(Guid? taxClassId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/shippingmethodreadonly.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/shippingmethodreadonly.md new file mode 100644 index 00000000000..46b39125901 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/shippingmethodreadonly.md @@ -0,0 +1,199 @@ +--- +title: ShippingMethodReadOnly +description: API reference for ShippingMethodReadOnly in Umbraco Commerce +--- +## ShippingMethodReadOnly + +```csharp +public class ShippingMethodReadOnly : + StoreAggregateBase, IHasName, + IHasReadableAllowedCountryRegions, IHasReadableServicePrices +``` + +**Inheritance** + +* Class [StoreAggregateBase<TReadOnlySelf,TWritableSelf,TState>](storeaggregatebase-3.md) +* interface [IHasName](ihasname.md) +* interface [IHasReadableAllowedCountryRegions](ihasreadableallowedcountryregions.md) +* interface [IHasReadableServicePrices](ihasreadableserviceprices.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Alias + +```csharp +public string Alias { get; } +``` + + +--- + +#### AllowedCountryRegions + +```csharp +public IReadOnlyList AllowedCountryRegions { get; } +``` + + +--- + +#### ImageId + +```csharp +public string ImageId { get; } +``` + + +--- + +#### IsDeleted + +```csharp +public bool IsDeleted { get; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; } +``` + + +--- + +#### Prices + +```csharp +public IReadOnlyList Prices { get; } +``` + + +--- + +#### Sku + +```csharp +public string Sku { get; } +``` + + +--- + +#### SortOrder + +```csharp +public int SortOrder { get; } +``` + + +--- + +#### TaxClassId + +```csharp +public Guid? TaxClassId { get; } +``` + + +### Methods + +#### GetCountryPriceForCurrency (1 of 2) + +```csharp +public decimal GetCountryPriceForCurrency(CountryReadOnly country, CurrencyReadOnly currency) +``` + +--- + +#### GetCountryPriceForCurrency (2 of 2) + +```csharp +public decimal GetCountryPriceForCurrency(Guid countryId, Guid currencyId) +``` + + +--- + +#### GetDefaultPriceForCurrency (1 of 2) + +```csharp +public decimal GetDefaultPriceForCurrency(CurrencyReadOnly currency) +``` + +--- + +#### GetDefaultPriceForCurrency (2 of 2) + +```csharp +public decimal GetDefaultPriceForCurrency(Guid currencyId) +``` + + +--- + +#### GetPrice + +```csharp +public decimal GetPrice(Guid currencyId, Guid? countryId = default(Guid?), + Guid? regionId = default(Guid?)) +``` + + +--- + +#### GetRegionPriceForCurrency (1 of 2) + +```csharp +public decimal GetRegionPriceForCurrency(RegionReadOnly region, CurrencyReadOnly currency) +``` + +--- + +#### GetRegionPriceForCurrency (2 of 2) + +```csharp +public decimal GetRegionPriceForCurrency(Guid countryId, Guid regionId, Guid currencyId) +``` + + +--- + +#### IsAllowedInCountry (1 of 2) + +```csharp +public bool IsAllowedInCountry(CountryReadOnly country) +``` + +--- + +#### IsAllowedInCountry (2 of 2) + +```csharp +public bool IsAllowedInCountry(Guid countryId) +``` + + +--- + +#### IsAllowedInRegion (1 of 2) + +```csharp +public bool IsAllowedInRegion(RegionReadOnly region) +``` + +--- + +#### IsAllowedInRegion (2 of 2) + +```csharp +public bool IsAllowedInRegion(Guid countryId, Guid regionId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/store.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/store.md new file mode 100644 index 00000000000..9279046302f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/store.md @@ -0,0 +1,590 @@ +--- +title: Store +description: API reference for Store in Umbraco Commerce +--- +## Store + +```csharp +public class Store : StoreReadOnly +``` + +**Inheritance** + +* Class [StoreReadOnly](storereadonly.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### Create (1 of 2) + +```csharp +public static Store Create(IUnitOfWork uow, string alias, string name, + bool autoPopulateStore = true) +``` + +--- + +#### Create (2 of 2) + +```csharp +public static Store Create(IUnitOfWork uow, Guid id, string alias, string name, + bool autoPopulateStore = true) +``` + + +--- + +#### AddGiftCardPropertyAlias + +```csharp +public Store AddGiftCardPropertyAlias(string alias) +``` + + +--- + +#### AddProductPropertyAlias + +```csharp +public Store AddProductPropertyAlias(string alias) +``` + + +--- + +#### AddProductUniquenessPropertyAlias + +```csharp +public Store AddProductUniquenessPropertyAlias(string alias) +``` + + +--- + +#### AllowUser + +```csharp +public Store AllowUser(string userId) +``` + + +--- + +#### AllowUserRole + +```csharp +public Store AllowUserRole(string role) +``` + + +--- + +#### AllowUserRoles + +```csharp +public Store AllowUserRoles(IEnumerable roles) +``` + + +--- + +#### AllowUsers + +```csharp +public Store AllowUsers(IEnumerable userIds) +``` + + +--- + +#### ClearGiftCardPropertyAliases + +```csharp +public Store ClearGiftCardPropertyAliases() +``` + + +--- + +#### ClearProductPropertyAliases + +```csharp +public Store ClearProductPropertyAliases() +``` + + +--- + +#### ClearProductUniquenessPropertyAliases + +```csharp +public Store ClearProductUniquenessPropertyAliases() +``` + + +--- + +#### DisableCookies + +```csharp +public Store DisableCookies() +``` + + +--- + +#### DisallowUser + +```csharp +public Store DisallowUser(string userId) +``` + + +--- + +#### DisallowUserRole + +```csharp +public Store DisallowUserRole(string role) +``` + + +--- + +#### DisallowUserRoles + +```csharp +public Store DisallowUserRoles(IEnumerable roles) +``` + + +--- + +#### DisallowUsers + +```csharp +public Store DisallowUsers(IEnumerable userIds) +``` + + +--- + +#### EnableCookies + +```csharp +public Store EnableCookies(TimeSpan cookieTimeout) +``` + + +--- + +#### RemoveGiftCardPropertyAlias + +```csharp +public Store RemoveGiftCardPropertyAlias(string alias) +``` + + +--- + +#### RemoveProductPropertyAlias + +```csharp +public Store RemoveProductPropertyAlias(string alias) +``` + + +--- + +#### RemoveProductUniquenessPropertyAlias + +```csharp +public Store RemoveProductUniquenessPropertyAlias(string alias) +``` + + +--- + +#### SetAlias + +```csharp +public Store SetAlias(string alias) +``` + + +--- + +#### SetAllowedUserRoles + +```csharp +public Store SetAllowedUserRoles(IEnumerable roles, + SetBehavior setBehavior = SetBehavior.Merge) +``` + + +--- + +#### SetAllowedUsers + +```csharp +public Store SetAllowedUsers(IEnumerable userIds, + SetBehavior setBehavior = SetBehavior.Merge) +``` + + +--- + +#### SetBaseCurrency (1 of 2) + +```csharp +public Store SetBaseCurrency(CurrencyReadOnly currency) +``` + +--- + +#### SetBaseCurrency (2 of 2) + +```csharp +public Store SetBaseCurrency(Guid? currencyId) +``` + + +--- + +#### SetCartNumberTemplate + +```csharp +public Store SetCartNumberTemplate(string template) +``` + + +--- + +#### SetConfirmationEmailTemplate (1 of 2) + +```csharp +public Store SetConfirmationEmailTemplate(EmailTemplateReadOnly emailTemplate) +``` + +--- + +#### SetConfirmationEmailTemplate (2 of 2) + +```csharp +public Store SetConfirmationEmailTemplate(Guid? emailTemplateId) +``` + + +--- + +#### SetDefaultCountry (1 of 2) + +```csharp +public Store SetDefaultCountry(CountryReadOnly country) +``` + +--- + +#### SetDefaultCountry (2 of 2) + +```csharp +public Store SetDefaultCountry(Guid? countryId) +``` + + +--- + +#### SetDefaultGiftCardEmailTemplate (1 of 2) + +```csharp +public Store SetDefaultGiftCardEmailTemplate(EmailTemplateReadOnly emailTemplate) +``` + +--- + +#### SetDefaultGiftCardEmailTemplate (2 of 2) + +```csharp +public Store SetDefaultGiftCardEmailTemplate(Guid? emailTemplateId) +``` + + +--- + +#### SetDefaultOrderStatus (1 of 2) + +```csharp +public Store SetDefaultOrderStatus(OrderStatusReadOnly orderStatus) +``` + +--- + +#### SetDefaultOrderStatus (2 of 2) + +```csharp +public Store SetDefaultOrderStatus(Guid? orderStatusId) +``` + + +--- + +#### SetDefaultTaxClass (1 of 2) + +```csharp +public Store SetDefaultTaxClass(TaxClassReadOnly taxClass) +``` + +--- + +#### SetDefaultTaxClass (2 of 2) + +```csharp +public Store SetDefaultTaxClass(Guid? taxClassId) +``` + + +--- + +#### SetErrorEmailTemplate (1 of 2) + +```csharp +public Store SetErrorEmailTemplate(EmailTemplateReadOnly emailTemplate) +``` + +--- + +#### SetErrorEmailTemplate (2 of 2) + +```csharp +public Store SetErrorEmailTemplate(Guid? emailTemplateId) +``` + + +--- + +#### SetErrorOrderStatus (1 of 2) + +```csharp +public Store SetErrorOrderStatus(OrderStatusReadOnly orderStatus) +``` + +--- + +#### SetErrorOrderStatus (2 of 2) + +```csharp +public Store SetErrorOrderStatus(Guid? orderStatusId) +``` + + +--- + +#### SetGiftCardActivationMethod + +```csharp +public Store SetGiftCardActivationMethod(GiftCardActivationMethod activationMethod) +``` + + +--- + +#### SetGiftCardActivationOrderStatus (1 of 2) + +```csharp +public Store SetGiftCardActivationOrderStatus(OrderStatusReadOnly orderStatus) +``` + +--- + +#### SetGiftCardActivationOrderStatus (2 of 2) + +```csharp +public Store SetGiftCardActivationOrderStatus(Guid? orderStatusId) +``` + + +--- + +#### SetGiftCardCodeLength + +```csharp +public Store SetGiftCardCodeLength(int length) +``` + + +--- + +#### SetGiftCardCodeTemplate + +```csharp +public Store SetGiftCardCodeTemplate(string codeTemplate) +``` + + +--- + +#### SetGiftCardPropertyAliases + +```csharp +public Store SetGiftCardPropertyAliases(IEnumerable aliases, + SetBehavior setBehavior = SetBehavior.Merge) +``` + + +--- + +#### SetGiftCardValidityTimeframe + +```csharp +public Store SetGiftCardValidityTimeframe(int numberOfDays) +``` + + +--- + +#### SetName (1 of 2) + +```csharp +public Store SetName(string name) +``` + +--- + +#### SetName (2 of 2) + +```csharp +public Store SetName(string name, string alias) +``` + + +--- + +#### SetNotificationEmailTemplates (1 of 2) + +```csharp +public Store SetNotificationEmailTemplates(EmailTemplateReadOnly confirmationEmailTemplate, + EmailTemplateReadOnly errorEmailTemplate) +``` + +--- + +#### SetNotificationEmailTemplates (2 of 2) + +```csharp +public Store SetNotificationEmailTemplates(Guid? confirmationEmailTemplateId, + Guid? errorEmailTemplateId) +``` + + +--- + +#### SetOrderNumberTemplate + +```csharp +public Store SetOrderNumberTemplate(string template) +``` + + +--- + +#### SetOrderNumberTemplates + +```csharp +public Store SetOrderNumberTemplates(string cartNumberTemplate, string orderNumberTemplate) +``` + + +--- + +#### SetOrderRoundingMethod + +```csharp +public Store SetOrderRoundingMethod(OrderRoundingMethod orderRoundingMethod) +``` + + +--- + +#### SetOrderStatuses (1 of 2) + +```csharp +public Store SetOrderStatuses(OrderStatusReadOnly defaultOrderStatus, + OrderStatusReadOnly errorOrderStatus) +``` + +--- + +#### SetOrderStatuses (2 of 2) + +```csharp +public Store SetOrderStatuses(Guid? defaultOrderStatusId, Guid? errorOrderStatusId) +``` + + +--- + +#### SetPriceTaxInclusivity + +```csharp +public Store SetPriceTaxInclusivity(bool pricesIncludeTax) +``` + + +--- + +#### SetProductPropertyAliases + +```csharp +public Store SetProductPropertyAliases(IEnumerable aliases, + SetBehavior setBehavior = SetBehavior.Merge) +``` + + +--- + +#### SetProductUniquenessPropertyAliases + +```csharp +public Store SetProductUniquenessPropertyAliases(IEnumerable aliases, + SetBehavior setBehavior = SetBehavior.Merge) +``` + + +--- + +#### SetSortOrder + +```csharp +public Store SetSortOrder(int order) +``` + + +--- + +#### ShareStockFrom (1 of 2) + +```csharp +public Store ShareStockFrom(StoreReadOnly store) +``` + +--- + +#### ShareStockFrom (2 of 2) + +```csharp +public Store ShareStockFrom(Guid storeId) +``` + + +--- + +#### StopSharingStock + +```csharp +public Store StopSharingStock() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/storeaggregatebase-3.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/storeaggregatebase-3.md new file mode 100644 index 00000000000..b6b54f3464c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/storeaggregatebase-3.md @@ -0,0 +1,44 @@ +--- +title: StoreAggregateBase +description: API reference for StoreAggregateBase in Umbraco Commerce +--- +## StoreAggregateBase<TReadOnlySelf,TWritableSelf,TState> + +The base class of [`Store`](store.md) based aggregate entity + +```csharp +public abstract class StoreAggregateBase : + AggregateBase, IHasStore + where TReadOnlySelf : StoreAggregateBase + where TWritableSelf : TReadOnlySelf + where TState : StoreAggregateStateBase +``` + +**Inheritance** + +* Class [AggregateBase<TReadOnlySelf,TWritableSelf,TState>](aggregatebase-3.md) +* interface [IHasStore](ihasstore.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +**Parameters** + +| Parameter | Description | +| --- | --- | +| TReadOnlySelf | The Type of the read only aggregate entity | +| TWritableSelf | The Type of the writable aggregate entity | +| TState | The Type of the shared state of the aggregate entities | + +### Properties + +#### StoreId + +Gets the ID of the [`Store`](store.md) this entity belongs to + +```csharp +public Guid StoreId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/storeaggregatestatebase.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/storeaggregatestatebase.md new file mode 100644 index 00000000000..5645ad344ce --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/storeaggregatestatebase.md @@ -0,0 +1,27 @@ +--- +title: StoreAggregateStateBase +description: API reference for StoreAggregateStateBase in Umbraco Commerce +--- +## StoreAggregateStateBase + +```csharp +public abstract class StoreAggregateStateBase : AggregateStateBase +``` + +**Inheritance** + +* Class [AggregateStateBase](aggregatestatebase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### StoreId + +```csharp +public Guid StoreId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/storeentitystatebase.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/storeentitystatebase.md new file mode 100644 index 00000000000..46173a77957 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/storeentitystatebase.md @@ -0,0 +1,27 @@ +--- +title: StoreEntityStateBase +description: API reference for StoreEntityStateBase in Umbraco Commerce +--- +## StoreEntityStateBase + +```csharp +public abstract class StoreEntityStateBase : EntityStateBase +``` + +**Inheritance** + +* Class [EntityStateBase](entitystatebase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### StoreId + +```csharp +public Guid StoreId { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/storereadonly.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/storereadonly.md new file mode 100644 index 00000000000..c35e4dc8aea --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/storereadonly.md @@ -0,0 +1,289 @@ +--- +title: StoreReadOnly +description: API reference for StoreReadOnly in Umbraco Commerce +--- +## StoreReadOnly + +```csharp +public class StoreReadOnly : AggregateBase, IHasName +``` + +**Inheritance** + +* Class [AggregateBase<TReadOnlySelf,TWritableSelf,TState>](aggregatebase-3.md) +* interface [IHasName](ihasname.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Alias + +```csharp +public string Alias { get; } +``` + + +--- + +#### AllowedUserRoles + +```csharp +public IReadOnlyList AllowedUserRoles { get; } +``` + + +--- + +#### AllowedUsers + +```csharp +public IReadOnlyList AllowedUsers { get; } +``` + + +--- + +#### BaseCurrencyId + +```csharp +public Guid? BaseCurrencyId { get; } +``` + + +--- + +#### CartNumberTemplate + +```csharp +public string CartNumberTemplate { get; } +``` + + +--- + +#### ConfirmationEmailTemplateId + +```csharp +public Guid? ConfirmationEmailTemplateId { get; } +``` + + +--- + +#### CookieTimeout + +```csharp +public TimeSpan? CookieTimeout { get; } +``` + + +--- + +#### DefaultCountryId + +```csharp +public Guid? DefaultCountryId { get; } +``` + + +--- + +#### DefaultGiftCardEmailTemplateId + +```csharp +public Guid? DefaultGiftCardEmailTemplateId { get; } +``` + + +--- + +#### DefaultOrderStatusId + +```csharp +public Guid? DefaultOrderStatusId { get; } +``` + + +--- + +#### DefaultTaxClassId + +```csharp +public Guid? DefaultTaxClassId { get; } +``` + + +--- + +#### ErrorEmailTemplateId + +```csharp +public Guid? ErrorEmailTemplateId { get; } +``` + + +--- + +#### ErrorOrderStatusId + +```csharp +public Guid? ErrorOrderStatusId { get; } +``` + + +--- + +#### GiftCardActivationMethod + +```csharp +public GiftCardActivationMethod GiftCardActivationMethod { get; } +``` + + +--- + +#### GiftCardActivationOrderStatusId + +```csharp +public Guid? GiftCardActivationOrderStatusId { get; } +``` + + +--- + +#### GiftCardCodeLength + +```csharp +public int GiftCardCodeLength { get; } +``` + + +--- + +#### GiftCardCodeTemplate + +```csharp +public string GiftCardCodeTemplate { get; } +``` + + +--- + +#### GiftCardDaysValid + +```csharp +public int GiftCardDaysValid { get; } +``` + + +--- + +#### GiftCardPropertyAliases + +```csharp +public IReadOnlyList GiftCardPropertyAliases { get; } +``` + + +--- + +#### IsDeleted + +```csharp +public bool IsDeleted { get; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; } +``` + + +--- + +#### OrderNumberTemplate + +```csharp +public string OrderNumberTemplate { get; } +``` + + +--- + +#### OrderRoundingMethod + +```csharp +public OrderRoundingMethod OrderRoundingMethod { get; } +``` + + +--- + +#### PricesIncludeTax + +```csharp +public bool PricesIncludeTax { get; } +``` + + +--- + +#### ProductPropertyAliases + +```csharp +public IReadOnlyList ProductPropertyAliases { get; } +``` + + +--- + +#### ProductUniquenessPropertyAliases + +```csharp +public IReadOnlyList ProductUniquenessPropertyAliases { get; } +``` + + +--- + +#### ShareStockFromStoreId + +```csharp +public Guid? ShareStockFromStoreId { get; } +``` + + +--- + +#### SortOrder + +```csharp +public int SortOrder { get; } +``` + + +--- + +#### UseCookies + +```csharp +public bool UseCookies { get; } +``` + + +### Methods + +#### IsAllowed + +```csharp +public bool IsAllowed(string userId, IEnumerable roles) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/storestats.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/storestats.md new file mode 100644 index 00000000000..ca0a3e32af7 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/storestats.md @@ -0,0 +1,90 @@ +--- +title: StoreStats +description: API reference for StoreStats in Umbraco Commerce +--- +## StoreStats + +```csharp +public class StoreStats : ValueObjectBase +``` + +**Inheritance** + +* Class [ValueObjectBase](../../umbraco-commerce-common/umbraco-commerce-common-models/valueobjectbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### TotalAuthorizedOrders + +```csharp +public long TotalAuthorizedOrders { get; } +``` + + +--- + +#### TotalCapturedOrders + +```csharp +public long TotalCapturedOrders { get; } +``` + + +--- + +#### TotalErroredOrders + +```csharp +public long TotalErroredOrders { get; } +``` + + +--- + +#### TotalNewOrders + +```csharp +public long TotalNewOrders { get; } +``` + + +--- + +#### TotalOrders + +```csharp +public long TotalOrders { get; } +``` + + +--- + +#### TotalRefundedOrders + +```csharp +public long TotalRefundedOrders { get; } +``` + + +--- + +#### TotalRevenue + +```csharp +public Amount TotalRevenue { get; } +``` + + +### Methods + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/storesummary.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/storesummary.md new file mode 100644 index 00000000000..40ef7108ef9 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/storesummary.md @@ -0,0 +1,108 @@ +--- +title: StoreSummary +description: API reference for StoreSummary in Umbraco Commerce +--- +## StoreSummary + +```csharp +public class StoreSummary : ValueObjectBase +``` + +**Inheritance** + +* Class [ValueObjectBase](../../umbraco-commerce-common/umbraco-commerce-common-models/valueobjectbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### BaseCurrencyCode + +```csharp +public string BaseCurrencyCode { get; } +``` + + +--- + +#### BaseCurrencyId + +```csharp +public Guid? BaseCurrencyId { get; } +``` + + +--- + +#### BaseCurrencyName + +```csharp +public string BaseCurrencyName { get; } +``` + + +--- + +#### DefaultCountryId + +```csharp +public Guid? DefaultCountryId { get; } +``` + + +--- + +#### DefaultCountryName + +```csharp +public string DefaultCountryName { get; } +``` + + +--- + +#### Id + +```csharp +public Guid Id { get; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; } +``` + + +--- + +#### TotalOrdersToDate + +```csharp +public long TotalOrdersToDate { get; } +``` + + +--- + +#### TotalRevenueToDate + +```csharp +public Amount TotalRevenueToDate { get; } +``` + + +### Methods + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/taxclass.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/taxclass.md new file mode 100644 index 00000000000..06472d232cb --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/taxclass.md @@ -0,0 +1,175 @@ +--- +title: TaxClass +description: API reference for TaxClass in Umbraco Commerce +--- +## TaxClass + +```csharp +public class TaxClass : TaxClassReadOnly +``` + +**Inheritance** + +* Class [TaxClassReadOnly](taxclassreadonly.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### Create (1 of 2) + +```csharp +public static TaxClass Create(IUnitOfWork uow, Guid storeId, string alias, string name, + TaxRate defaultTaxRate) +``` + +--- + +#### Create (2 of 2) + +```csharp +public static TaxClass Create(IUnitOfWork uow, Guid id, Guid storeId, string alias, string name, + TaxRate defaultTaxRate) +``` + + +--- + +#### ClearCountryTaxRate (1 of 2) + +```csharp +public TaxClass ClearCountryTaxRate(CountryReadOnly country) +``` + +--- + +#### ClearCountryTaxRate (2 of 2) + +```csharp +public TaxClass ClearCountryTaxRate(Guid countryId) +``` + + +--- + +#### ClearDefaultTaxRate + +```csharp +public TaxClass ClearDefaultTaxRate() +``` + + +--- + +#### ClearRegionTaxRate (1 of 2) + +```csharp +public TaxClass ClearRegionTaxRate(RegionReadOnly region) +``` + +--- + +#### ClearRegionTaxRate (2 of 2) + +```csharp +public TaxClass ClearRegionTaxRate(Guid countryId, Guid regionId) +``` + + +--- + +#### ClearTaxRatesForCountry (1 of 2) + +```csharp +public TaxClass ClearTaxRatesForCountry(CountryReadOnly country) +``` + +--- + +#### ClearTaxRatesForCountry (2 of 2) + +```csharp +public TaxClass ClearTaxRatesForCountry(Guid countryId) +``` + + +--- + +#### SetAlias + +```csharp +public TaxClass SetAlias(string alias) +``` + + +--- + +#### SetCountryTaxRate (1 of 2) + +```csharp +public TaxClass SetCountryTaxRate(CountryReadOnly country, TaxRate taxRate) +``` + +--- + +#### SetCountryTaxRate (2 of 2) + +```csharp +public TaxClass SetCountryTaxRate(Guid countryId, TaxRate taxRate) +``` + + +--- + +#### SetDefaultTaxRate + +```csharp +public TaxClass SetDefaultTaxRate(TaxRate taxRate) +``` + + +--- + +#### SetName (1 of 2) + +```csharp +public TaxClass SetName(string name) +``` + +--- + +#### SetName (2 of 2) + +```csharp +public TaxClass SetName(string name, string alias) +``` + + +--- + +#### SetRegionTaxRate (1 of 2) + +```csharp +public TaxClass SetRegionTaxRate(RegionReadOnly region, TaxRate taxRate) +``` + +--- + +#### SetRegionTaxRate (2 of 2) + +```csharp +public TaxClass SetRegionTaxRate(Guid countryId, Guid regionId, TaxRate taxRate) +``` + + +--- + +#### SetSortOrder + +```csharp +public TaxClass SetSortOrder(int sortOrder) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/taxclassreadonly.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/taxclassreadonly.md new file mode 100644 index 00000000000..ef71b7100da --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/taxclassreadonly.md @@ -0,0 +1,83 @@ +--- +title: TaxClassReadOnly +description: API reference for TaxClassReadOnly in Umbraco Commerce +--- +## TaxClassReadOnly + +```csharp +public class TaxClassReadOnly : StoreAggregateBase, + IHasName +``` + +**Inheritance** + +* Class [StoreAggregateBase<TReadOnlySelf,TWritableSelf,TState>](storeaggregatebase-3.md) +* interface [IHasName](ihasname.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### Alias + +```csharp +public string Alias { get; } +``` + + +--- + +#### CountryRegionTaxRates + +```csharp +public IReadOnlyCollection CountryRegionTaxRates { get; } +``` + + +--- + +#### DefaultTaxRate + +```csharp +public TaxRate DefaultTaxRate { get; } +``` + + +--- + +#### IsDeleted + +```csharp +public bool IsDeleted { get; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; } +``` + + +--- + +#### SortOrder + +```csharp +public int SortOrder { get; } +``` + + +### Methods + +#### GetTaxRate + +```csharp +public TaxRate GetTaxRate(TaxSource taxSource) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/taxrate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/taxrate.md new file mode 100644 index 00000000000..2eda9772418 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/taxrate.md @@ -0,0 +1,114 @@ +--- +title: TaxRate +description: API reference for TaxRate in Umbraco Commerce +--- +## TaxRate + +```csharp +public class TaxRate : ValueObjectBase +``` + +**Inheritance** + +* Class [ValueObjectBase](../../umbraco-commerce-common/umbraco-commerce-common-models/valueobjectbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### TaxRate + +```csharp +public TaxRate(decimal value) +``` + + +### Fields + +#### ZeroValue + +```csharp +public static TaxRate ZeroValue; +``` + + +### Properties + +#### Value + +```csharp +public decimal Value { get; } +``` + + +### Methods + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + +--- + +#### ToString + +```csharp +public override string ToString() +``` + + +### Operators + +#### TaxRate Addition (1 of 2) + +```csharp +public static decimal operator +(decimal value, TaxRate taxRate) +``` + +--- + +#### TaxRate Addition (2 of 2) + +```csharp +public static decimal operator +(TaxRate taxRate, decimal value) +``` + + +--- + +#### TaxRate Implicit (1 of 2) + +```csharp +public static implicit operator TaxRate(decimal value) +``` + +--- + +#### TaxRate Implicit (2 of 2) + +```csharp +public static implicit operator decimal(TaxRate taxRate) +``` + + +--- + +#### TaxRate Multiply (1 of 2) + +```csharp +public static decimal operator *(decimal value, TaxRate taxRate) +``` + +--- + +#### TaxRate Multiply (2 of 2) + +```csharp +public static decimal operator *(TaxRate taxRate, decimal value) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/taxsource.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/taxsource.md new file mode 100644 index 00000000000..c410a7d8e85 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/taxsource.md @@ -0,0 +1,54 @@ +--- +title: TaxSource +description: API reference for TaxSource in Umbraco Commerce +--- +## TaxSource + +```csharp +public class TaxSource : ValueObjectBase +``` + +**Inheritance** + +* Class [ValueObjectBase](../../umbraco-commerce-common/umbraco-commerce-common-models/valueobjectbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### TaxSource + +```csharp +public TaxSource(Guid countryId, Guid? regionId = default(Guid?)) +``` + + +### Properties + +#### CountryId + +```csharp +public Guid CountryId { get; } +``` + + +--- + +#### RegionId + +```csharp +public Guid? RegionId { get; } +``` + + +### Methods + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/templatecategory.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/templatecategory.md new file mode 100644 index 00000000000..69346d0c1a9 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/templatecategory.md @@ -0,0 +1,24 @@ +--- +title: TemplateCategory +description: API reference for TemplateCategory in Umbraco Commerce +--- +## TemplateCategory + +```csharp +public enum TemplateCategory +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +**Values** + +| Name | Value | Description | +| --- | --- | --- | +| Cart | `3` | | +| Order | `0` | | +| GiftCard | `1` | | +| Discount | `2` | | +| Custom | `999` | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/totalprice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/totalprice.md new file mode 100644 index 00000000000..63f0e091268 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/totalprice.md @@ -0,0 +1,45 @@ +--- +title: TotalPrice +description: API reference for TotalPrice in Umbraco Commerce +--- +## TotalPrice + +```csharp +public class TotalPrice : AdjustedPrice +``` + +**Inheritance** + +* Class [AdjustedPrice](adjustedprice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Methods + +#### ZeroValue + +```csharp +public static TotalPrice ZeroValue(Guid currencyId) +``` + + +--- + +#### AsReadOnly + +```csharp +public virtual ReadOnlyTotalPrice AsReadOnly() +``` + + +--- + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/totalpricewithpreviousadjustment.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/totalpricewithpreviousadjustment.md new file mode 100644 index 00000000000..a508992e238 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/totalpricewithpreviousadjustment.md @@ -0,0 +1,81 @@ +--- +title: TotalPriceWithPreviousAdjustment +description: API reference for TotalPriceWithPreviousAdjustment in Umbraco Commerce +--- +## TotalPriceWithPreviousAdjustment + +```csharp +public class TotalPriceWithPreviousAdjustment : TotalPrice +``` + +**Inheritance** + +* Class [TotalPrice](totalprice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Properties + +#### PreviousAdjustments + +```csharp +public Price PreviousAdjustments { get; set; } +``` + + +--- + +#### TotalAdjustment + +```csharp +public Price TotalAdjustment { get; set; } +``` + + +--- + +#### WithPreviousAdjustments + +```csharp +public Price WithPreviousAdjustments { get; set; } +``` + + +### Methods + +#### ZeroValue + +```csharp +public static TotalPriceWithPreviousAdjustment ZeroValue(Guid currencyId) +``` + + +--- + +#### AsReadOnly + +```csharp +public virtual ReadOnlyTotalPriceWithPreviousAdjustment AsReadOnly() +``` + + +--- + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + +--- + +#### GetHashCode + +```csharp +public override int GetHashCode() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/translatedvalue-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/translatedvalue-1.md new file mode 100644 index 00000000000..c90201557ac --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/translatedvalue-1.md @@ -0,0 +1,83 @@ +--- +title: TranslatedValue +description: API reference for TranslatedValue in Umbraco Commerce +--- +## TranslatedValue<T> + +```csharp +public class TranslatedValue : ReadOnlyTranslatedValue, IDeepCloneable +``` + +**Inheritance** + +* Class [ReadOnlyTranslatedValue<T>](readonlytranslatedvalue-1.md) +* interface [IDeepCloneable](../../umbraco-commerce-common/umbraco-commerce-common/ideepcloneable.md) + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### TranslatedValue<T> + +The default constructor. + +```csharp +public TranslatedValue() +``` + + +--- + +#### TranslatedValue<T> (1 of 2) + +```csharp +public TranslatedValue(T defaultValue) +``` + +--- + +#### TranslatedValue<T> (2 of 2) + +```csharp +public TranslatedValue(T defaultValue, IDictionary translatedValues) +``` + + +### Methods + +#### DeepClone + +```csharp +public override object DeepClone() +``` + + +--- + +#### SetDefaultValue + +```csharp +public TranslatedValue SetDefaultValue(T value) +``` + + +--- + +#### SetValue + +```csharp +public TranslatedValue SetValue(string languageIsoCode, T value) +``` + + +### Operators + +#### TranslatedValue<T> Implicit + +```csharp +public static implicit operator T(TranslatedValue value) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/umbracocommercesettingdefinition.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/umbracocommercesettingdefinition.md new file mode 100644 index 00000000000..5c2ebdeba9d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-models/umbracocommercesettingdefinition.md @@ -0,0 +1,115 @@ +--- +title: UmbracoCommerceSettingDefinition +description: API reference for UmbracoCommerceSettingDefinition in Umbraco Commerce +--- +## UmbracoCommerceSettingDefinition + +```csharp +public abstract class UmbracoCommerceSettingDefinition +``` + +**Namespace** +* [Umbraco.Commerce.Core.Models](README.md) + +### Constructors + +#### UmbracoCommerceSettingDefinition + +The default constructor. + +```csharp +public UmbracoCommerceSettingDefinition() +``` + + +--- + +#### UmbracoCommerceSettingDefinition + +```csharp +public UmbracoCommerceSettingDefinition(string key, string name, string description = null) +``` + + +### Properties + +#### Config + +```csharp +public object Config { get; set; } +``` + + +--- + +#### DefaultValue + +```csharp +public object DefaultValue { get; set; } +``` + + +--- + +#### Description + +```csharp +public string Description { get; set; } +``` + + +--- + +#### Key + +```csharp +public string Key { get; set; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; set; } +``` + + +--- + +#### PropertyName + +```csharp +public string PropertyName { get; set; } +``` + + +--- + +#### PropertyType + +```csharp +public Type PropertyType { get; set; } +``` + + +--- + +#### SortOrder + +```csharp +public int SortOrder { get; set; } +``` + + +--- + +#### View + +```csharp +public string View { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/README.md new file mode 100644 index 00000000000..8b23ceba58e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/README.md @@ -0,0 +1,38 @@ +--- +title: Umbraco.Commerce.Core.PaymentProviders +description: API reference for Umbraco.Commerce.Core.PaymentProviders in Umbraco Commerce +--- +## Umbraco.Commerce.Core.PaymentProviders namespace + +| Public Type | Description | +| --- | --- | +| class [ApiResult](apiresult.md) | | +| class [CallbackResult](callbackresult.md) | | +| abstract class [CommonPaymentProviderBase](commonpaymentproviderbase.md) | | +| class [InvoicingPaymentProvider](invoicingpaymentprovider.md) | | +| class [InvoicingSettings](invoicingsettings.md) | | +| interface [IPaymentProvider](ipaymentprovider.md) | | +| interface [IPaymentProviderUriResolver](ipaymentprovideruriresolver.md) | | +| class [PaymentForm](paymentform.md) | | +| enum [PaymentFormMethod](paymentformmethod.md) | | +| class [PaymentFormResult](paymentformresult.md) | | +| class [PaymentProviderAttribute](paymentproviderattribute.md) | | +| abstract class [PaymentProviderBase<TSettingsModel>](paymentproviderbase-1.md) | | +| abstract class [PaymentProviderBase](paymentproviderbase.md) | | +| class [PaymentProviderCollection](paymentprovidercollection.md) | | +| class [PaymentProviderContext<TSettings>](paymentprovidercontext-1.md) | | +| class [PaymentProviderContext](paymentprovidercontext.md) | | +| class [PaymentProviderContextFactory](paymentprovidercontextfactory.md) | | +| class [PaymentProviderDefinition](paymentproviderdefinition.md) | | +| class [PaymentProviderFactory](paymentproviderfactory.md) | | +| class [PaymentProviderScaffold](paymentproviderscaffold.md) | | +| class [PaymentProviderSettingAttribute](paymentprovidersettingattribute.md) | | +| class [PaymentProviderSettingDefinition](paymentprovidersettingdefinition.md) | | +| class [PaymentProviderUrlsContext](paymentproviderurlscontext.md) | | +| class [TransactionInfo](transactioninfo.md) | | +| class [TransactionInfoUpdate](transactioninfoupdate.md) | | +| class [TransactionMetaDataDefinition](transactionmetadatadefinition.md) | | +| class [ZeroValuePaymentProvider](zerovaluepaymentprovider.md) | | +| class [ZeroValuePaymentProviderSettings](zerovaluepaymentprovidersettings.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/apiresult.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/apiresult.md new file mode 100644 index 00000000000..4f517ef0932 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/apiresult.md @@ -0,0 +1,52 @@ +--- +title: ApiResult +description: API reference for ApiResult in Umbraco Commerce +--- +## ApiResult + +```csharp +public class ApiResult +``` + +**Namespace** +* [Umbraco.Commerce.Core.PaymentProviders](README.md) + +### Constructors + +#### ApiResult + +The default constructor. + +```csharp +public ApiResult() +``` + + +### Properties + +#### Empty + +```csharp +public static ApiResult Empty { get; } +``` + + +--- + +#### MetaData + +```csharp +public IDictionary MetaData { get; set; } +``` + + +--- + +#### TransactionInfo + +```csharp +public TransactionInfoUpdate TransactionInfo { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/callbackresult.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/callbackresult.md new file mode 100644 index 00000000000..bc959417abc --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/callbackresult.md @@ -0,0 +1,81 @@ +--- +title: CallbackResult +description: API reference for CallbackResult in Umbraco Commerce +--- +## CallbackResult + +```csharp +public class CallbackResult +``` + +**Namespace** +* [Umbraco.Commerce.Core.PaymentProviders](README.md) + +### Constructors + +#### CallbackResult + +The default constructor. + +```csharp +public CallbackResult() +``` + + +### Properties + +#### Empty + +```csharp +public static CallbackResult Empty { get; } +``` + + +--- + +#### HttpResponse + +```csharp +public HttpResponseMessage HttpResponse { get; set; } +``` + + +--- + +#### MetaData + +```csharp +public IDictionary MetaData { get; set; } +``` + + +--- + +#### TransactionInfo + +```csharp +public TransactionInfo TransactionInfo { get; set; } +``` + + +### Methods + +#### BadRequest + +```csharp +public static CallbackResult BadRequest(TransactionInfo transactionInfo = null, + IDictionary metaData = null) +``` + + +--- + +#### Ok + +```csharp +public static CallbackResult Ok(TransactionInfo transactionInfo = null, + IDictionary metaData = null) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/commonpaymentproviderbase.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/commonpaymentproviderbase.md new file mode 100644 index 00000000000..a35fbeed9ad --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/commonpaymentproviderbase.md @@ -0,0 +1,140 @@ +--- +title: CommonPaymentProviderBase +description: API reference for CommonPaymentProviderBase in Umbraco Commerce +--- +## CommonPaymentProviderBase + +```csharp +public abstract class CommonPaymentProviderBase +``` + +**Namespace** +* [Umbraco.Commerce.Core.PaymentProviders](README.md) + +### Properties + +#### Alias + +```csharp +public string Alias { get; } +``` + + +--- + +#### CanCancelPayments + +```csharp +public virtual bool CanCancelPayments { get; } +``` + + +--- + +#### CanCapturePayments + +```csharp +public virtual bool CanCapturePayments { get; } +``` + + +--- + +#### CanFetchPaymentStatus + +```csharp +public virtual bool CanFetchPaymentStatus { get; } +``` + + +--- + +#### CanRefundPayments + +```csharp +public virtual bool CanRefundPayments { get; } +``` + + +--- + +#### Description + +```csharp +public string Description { get; } +``` + + +--- + +#### FinalizeAtContinueUrl + +```csharp +public virtual bool FinalizeAtContinueUrl { get; } +``` + + +--- + +#### Icon + +```csharp +public string Icon { get; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; } +``` + + +--- + +#### SettingDefinitions + +```csharp +public virtual IEnumerable SettingDefinitions { get; } +``` + + +--- + +#### TransactionMetaDataDefinitions + +```csharp +public virtual IEnumerable TransactionMetaDataDefinitions { get; } +``` + + +### Methods + +#### GetCancelUrl + +```csharp +public abstract string GetCancelUrl(PaymentProviderContext context) +``` + + +--- + +#### GetContinueUrl + +```csharp +public abstract string GetContinueUrl(PaymentProviderContext context) +``` + + +--- + +#### GetErrorUrl + +```csharp +public abstract string GetErrorUrl(PaymentProviderContext context) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/invoicingpaymentprovider.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/invoicingpaymentprovider.md new file mode 100644 index 00000000000..32292bd63d2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/invoicingpaymentprovider.md @@ -0,0 +1,125 @@ +--- +title: InvoicingPaymentProvider +description: API reference for InvoicingPaymentProvider in Umbraco Commerce +--- +## InvoicingPaymentProvider + +```csharp +public class InvoicingPaymentProvider : PaymentProviderBase +``` + +**Inheritance** + +* Class [PaymentProviderBase<TSettingsModel>](paymentproviderbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.PaymentProviders](README.md) + +### Constructors + +#### InvoicingPaymentProvider + +```csharp +public InvoicingPaymentProvider(UmbracoCommerceContext ctx) +``` + + +### Properties + +#### CanCancelPayments + +```csharp +public override bool CanCancelPayments { get; } +``` + + +--- + +#### CanCapturePayments + +```csharp +public override bool CanCapturePayments { get; } +``` + + +--- + +#### FinalizeAtContinueUrl + +```csharp +public override bool FinalizeAtContinueUrl { get; } +``` + + +### Methods + +#### CancelPaymentAsync + +```csharp +public override Task CancelPaymentAsync( + PaymentProviderContext context, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + +--- + +#### CapturePaymentAsync + +```csharp +public override Task CapturePaymentAsync( + PaymentProviderContext context, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + +--- + +#### GenerateFormAsync + +```csharp +public override Task GenerateFormAsync( + PaymentProviderContext context, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + +--- + +#### GetCancelUrl + +```csharp +public override string GetCancelUrl(PaymentProviderContext context) +``` + + +--- + +#### GetContinueUrl + +```csharp +public override string GetContinueUrl(PaymentProviderContext context) +``` + + +--- + +#### GetErrorUrl + +```csharp +public override string GetErrorUrl(PaymentProviderContext context) +``` + + +--- + +#### ProcessCallbackAsync + +```csharp +public override Task ProcessCallbackAsync( + PaymentProviderContext context, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/invoicingsettings.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/invoicingsettings.md new file mode 100644 index 00000000000..671f2ccfb4d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/invoicingsettings.md @@ -0,0 +1,34 @@ +--- +title: InvoicingSettings +description: API reference for InvoicingSettings in Umbraco Commerce +--- +## InvoicingSettings + +```csharp +public class InvoicingSettings +``` + +**Namespace** +* [Umbraco.Commerce.Core.PaymentProviders](README.md) + +### Constructors + +#### InvoicingSettings + +The default constructor. + +```csharp +public InvoicingSettings() +``` + + +### Properties + +#### ContinueUrl + +```csharp +public string ContinueUrl { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/ipaymentprovider.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/ipaymentprovider.md new file mode 100644 index 00000000000..af5594866af --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/ipaymentprovider.md @@ -0,0 +1,210 @@ +--- +title: IPaymentProvider +description: API reference for IPaymentProvider in Umbraco Commerce +--- +## IPaymentProvider + +```csharp +public interface IPaymentProvider +``` + +**Namespace** +* [Umbraco.Commerce.Core.PaymentProviders](README.md) + +### Properties + +#### Alias + +```csharp +public string Alias { get; } +``` + + +--- + +#### CanCancelPayments + +```csharp +public bool CanCancelPayments { get; } +``` + + +--- + +#### CanCapturePayments + +```csharp +public bool CanCapturePayments { get; } +``` + + +--- + +#### CanFetchPaymentStatus + +```csharp +public bool CanFetchPaymentStatus { get; } +``` + + +--- + +#### CanRefundPayments + +```csharp +public bool CanRefundPayments { get; } +``` + + +--- + +#### Description + +```csharp +public string Description { get; } +``` + + +--- + +#### FinalizeAtContinueUrl + +```csharp +public bool FinalizeAtContinueUrl { get; } +``` + + +--- + +#### Icon + +```csharp +public string Icon { get; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; } +``` + + +--- + +#### SettingDefinitions + +```csharp +public IEnumerable SettingDefinitions { get; } +``` + + +--- + +#### TransactionMetaDataDefinitions + +```csharp +public IEnumerable TransactionMetaDataDefinitions { get; } +``` + + +### Methods + +#### CancelPaymentAsync + +```csharp +public Task CancelPaymentAsync(PaymentProviderContext context, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + +--- + +#### CapturePaymentAsync + +```csharp +public Task CapturePaymentAsync(PaymentProviderContext context, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + +--- + +#### FetchPaymentStatusAsync + +```csharp +public Task FetchPaymentStatusAsync(PaymentProviderContext context, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + +--- + +#### GenerateFormAsync + +```csharp +public Task GenerateFormAsync(PaymentProviderContext context, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + +--- + +#### GetCancelUrl + +```csharp +public string GetCancelUrl(PaymentProviderContext context) +``` + + +--- + +#### GetContinueUrl + +```csharp +public string GetContinueUrl(PaymentProviderContext context) +``` + + +--- + +#### GetErrorUrl + +```csharp +public string GetErrorUrl(PaymentProviderContext context) +``` + + +--- + +#### GetOrderReferenceAsync + +```csharp +public Task GetOrderReferenceAsync(PaymentProviderContext context, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + +--- + +#### ProcessCallbackAsync + +```csharp +public Task ProcessCallbackAsync(PaymentProviderContext context, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + +--- + +#### RefundPaymentAsync + +```csharp +public Task RefundPaymentAsync(PaymentProviderContext context, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/ipaymentprovideruriresolver.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/ipaymentprovideruriresolver.md new file mode 100644 index 00000000000..bbc9a8336bf --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/ipaymentprovideruriresolver.md @@ -0,0 +1,90 @@ +--- +title: IPaymentProviderUriResolver +description: API reference for IPaymentProviderUriResolver in Umbraco Commerce +--- +## IPaymentProviderUriResolver + +```csharp +public interface IPaymentProviderUriResolver +``` + +**Namespace** +* [Umbraco.Commerce.Core.PaymentProviders](README.md) + +### Methods + +#### GetCallbackUrl (1 of 2) + +```csharp +public string GetCallbackUrl(string paymentProviderAlias, OrderReference orderReference, + IHashProvider hashProvider) +``` + +--- + +#### GetCallbackUrl (2 of 2) + +```csharp +public string GetCallbackUrl(string paymentProviderAlias, OrderReference orderReference, + IHashProvider hashProvider, out string hash) +``` + + +--- + +#### GetCancelUrl (1 of 2) + +```csharp +public string GetCancelUrl(string paymentProviderAlias, OrderReference orderReference, + IHashProvider hashProvider) +``` + +--- + +#### GetCancelUrl (2 of 2) + +```csharp +public string GetCancelUrl(string paymentProviderAlias, OrderReference orderReference, + IHashProvider hashProvider, out string hash) +``` + + +--- + +#### GetContinueUrl (1 of 2) + +```csharp +public string GetContinueUrl(string paymentProviderAlias, OrderReference orderReference, + IHashProvider hashProvider) +``` + +--- + +#### GetContinueUrl (2 of 2) + +```csharp +public string GetContinueUrl(string paymentProviderAlias, OrderReference orderReference, + IHashProvider hashProvider, out string hash) +``` + + +--- + +#### GetErrorUrl (1 of 2) + +```csharp +public string GetErrorUrl(string paymentProviderAlias, OrderReference orderReference, + IHashProvider hashProvider) +``` + +--- + +#### GetErrorUrl (2 of 2) + +```csharp +public string GetErrorUrl(string paymentProviderAlias, OrderReference orderReference, + IHashProvider hashProvider, out string hash) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentform.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentform.md new file mode 100644 index 00000000000..b6d92da289f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentform.md @@ -0,0 +1,195 @@ +--- +title: PaymentForm +description: API reference for PaymentForm in Umbraco Commerce +--- +## PaymentForm + +```csharp +public class PaymentForm +``` + +**Namespace** +* [Umbraco.Commerce.Core.PaymentProviders](README.md) + +### Constructors + +#### PaymentForm (1 of 2) + +```csharp +public PaymentForm(string action) +``` + +--- + +#### PaymentForm (2 of 2) + +```csharp +public PaymentForm(string action, PaymentFormMethod method) +``` + + +### Properties + +#### Action + +```csharp +public string Action { get; set; } +``` + + +--- + +#### Attributes + +```csharp +public IDictionary Attributes { get; set; } +``` + + +--- + +#### Css + +```csharp +public string Css { get; set; } +``` + + +--- + +#### CssFiles + +```csharp +public IList CssFiles { get; set; } +``` + + +--- + +#### Inputs + +```csharp +public IDictionary Inputs { get; set; } +``` + + +--- + +#### Js + +```csharp +public string Js { get; set; } +``` + + +--- + +#### JsFiles + +```csharp +public IList JsFiles { get; set; } +``` + + +--- + +#### Method + +```csharp +public PaymentFormMethod Method { get; set; } +``` + + +### Methods + +#### WithAttribute + +```csharp +public PaymentForm WithAttribute(string key, string value) +``` + + +--- + +#### WithAttributeIf (1 of 2) + +```csharp +public PaymentForm WithAttributeIf(string key, Func predicate, string valueIfTrue, + string valueIfFalse = null) +``` + +--- + +#### WithAttributeIf (2 of 2) + +```csharp +public PaymentForm WithAttributeIf(string key, bool predicate, string valueIfTrue, + string valueIfFalse = null) +``` + + +--- + +#### WithCss + +```csharp +public PaymentForm WithCss(string styles) +``` + + +--- + +#### WithCssFile + +```csharp +public PaymentForm WithCssFile(string url) +``` + + +--- + +#### WithInput + +```csharp +public PaymentForm WithInput(string key, string value) +``` + + +--- + +#### WithInputIf (1 of 2) + +```csharp +public PaymentForm WithInputIf(string key, Func predicate, string valueIfTrue, + string valueIfFalse = null) +``` + +--- + +#### WithInputIf (2 of 2) + +```csharp +public PaymentForm WithInputIf(string key, bool predicate, string valueIfTrue, + string valueIfFalse = null) +``` + + +--- + +#### WithJs + +```csharp +public PaymentForm WithJs(string script) +``` + + +--- + +#### WithJsFile + +```csharp +public PaymentForm WithJsFile(string url) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentformmethod.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentformmethod.md new file mode 100644 index 00000000000..46b3f0c8dab --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentformmethod.md @@ -0,0 +1,21 @@ +--- +title: PaymentFormMethod +description: API reference for PaymentFormMethod in Umbraco Commerce +--- +## PaymentFormMethod + +```csharp +public enum PaymentFormMethod +``` + +**Namespace** +* [Umbraco.Commerce.Core.PaymentProviders](README.md) + +**Values** + +| Name | Value | Description | +| --- | --- | --- | +| Get | `0` | | +| Post | `1` | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentformresult.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentformresult.md new file mode 100644 index 00000000000..89ffb6a9730 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentformresult.md @@ -0,0 +1,43 @@ +--- +title: PaymentFormResult +description: API reference for PaymentFormResult in Umbraco Commerce +--- +## PaymentFormResult + +```csharp +public class PaymentFormResult +``` + +**Namespace** +* [Umbraco.Commerce.Core.PaymentProviders](README.md) + +### Constructors + +#### PaymentFormResult + +The default constructor. + +```csharp +public PaymentFormResult() +``` + + +### Properties + +#### Form + +```csharp +public PaymentForm Form { get; set; } +``` + + +--- + +#### MetaData + +```csharp +public IDictionary MetaData { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentproviderattribute.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentproviderattribute.md new file mode 100644 index 00000000000..b51edb217bb --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentproviderattribute.md @@ -0,0 +1,68 @@ +--- +title: PaymentProviderAttribute +description: API reference for PaymentProviderAttribute in Umbraco Commerce +--- +## PaymentProviderAttribute + +```csharp +[AttributeUsage(AttributeTargets.Class)] +public class PaymentProviderAttribute : Attribute +``` + +**Namespace** +* [Umbraco.Commerce.Core.PaymentProviders](README.md) + +### Constructors + +#### PaymentProviderAttribute (1 of 2) + +```csharp +public PaymentProviderAttribute(string alias, string name) +``` + +--- + +#### PaymentProviderAttribute (2 of 2) + +```csharp +public PaymentProviderAttribute(string alias, string name, string description) +``` + + +### Properties + +#### Alias + +```csharp +public string Alias { get; } +``` + + +--- + +#### Description + +```csharp +public string Description { get; } +``` + + +--- + +#### Icon + +```csharp +public string Icon { get; set; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentproviderbase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentproviderbase-1.md new file mode 100644 index 00000000000..79c0d127e41 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentproviderbase-1.md @@ -0,0 +1,226 @@ +--- +title: PaymentProviderBase +description: API reference for PaymentProviderBase in Umbraco Commerce +--- +## PaymentProviderBase<TSettingsModel> + +```csharp +public abstract class PaymentProviderBase : PaymentProviderBase + where TSettingsModel : new() +``` + +**Inheritance** + +* Class [PaymentProviderBase](paymentproviderbase.md) + +**Namespace** +* [Umbraco.Commerce.Core.PaymentProviders](README.md) + +### Properties + +#### SettingDefinitions + +```csharp +public override IEnumerable SettingDefinitions { get; } +``` + + +### Methods + +#### CancelPaymentAsync + +```csharp +public override Task CancelPaymentAsync(PaymentProviderContext context, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + +--- + +#### CancelPaymentAsync + +```csharp +public virtual Task CancelPaymentAsync(PaymentProviderContext context, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + +--- + +#### CapturePaymentAsync + +```csharp +public override Task CapturePaymentAsync(PaymentProviderContext context, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + +--- + +#### CapturePaymentAsync + +```csharp +public virtual Task CapturePaymentAsync(PaymentProviderContext context, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + +--- + +#### FetchPaymentStatusAsync + +```csharp +public override Task FetchPaymentStatusAsync(PaymentProviderContext context, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + +--- + +#### FetchPaymentStatusAsync + +```csharp +public virtual Task FetchPaymentStatusAsync( + PaymentProviderContext context, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + +--- + +#### GenerateFormAsync + +```csharp +public override Task GenerateFormAsync(PaymentProviderContext context, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + +--- + +#### GenerateFormAsync + +```csharp +public abstract Task GenerateFormAsync( + PaymentProviderContext context, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + +--- + +#### GetCancelUrl + +```csharp +public override string GetCancelUrl(PaymentProviderContext context) +``` + + +--- + +#### GetCancelUrl + +```csharp +public abstract string GetCancelUrl(PaymentProviderContext context) +``` + + +--- + +#### GetContinueUrl + +```csharp +public override string GetContinueUrl(PaymentProviderContext context) +``` + + +--- + +#### GetContinueUrl + +```csharp +public abstract string GetContinueUrl(PaymentProviderContext context) +``` + + +--- + +#### GetErrorUrl + +```csharp +public override string GetErrorUrl(PaymentProviderContext context) +``` + + +--- + +#### GetErrorUrl + +```csharp +public abstract string GetErrorUrl(PaymentProviderContext context) +``` + + +--- + +#### GetOrderReferenceAsync + +```csharp +public override Task GetOrderReferenceAsync(PaymentProviderContext context, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + +--- + +#### GetOrderReferenceAsync + +```csharp +public virtual Task GetOrderReferenceAsync( + PaymentProviderContext context, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + +--- + +#### ProcessCallbackAsync + +```csharp +public override Task ProcessCallbackAsync(PaymentProviderContext context, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + +--- + +#### ProcessCallbackAsync + +```csharp +public abstract Task ProcessCallbackAsync( + PaymentProviderContext context, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + +--- + +#### RefundPaymentAsync + +```csharp +public override Task RefundPaymentAsync(PaymentProviderContext context, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + +--- + +#### RefundPaymentAsync + +```csharp +public virtual Task RefundPaymentAsync(PaymentProviderContext context, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentproviderbase.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentproviderbase.md new file mode 100644 index 00000000000..d97668442c0 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentproviderbase.md @@ -0,0 +1,89 @@ +--- +title: PaymentProviderBase +description: API reference for PaymentProviderBase in Umbraco Commerce +--- +## PaymentProviderBase + +```csharp +public abstract class PaymentProviderBase : CommonPaymentProviderBase, IPaymentProvider +``` + +**Inheritance** + +* Class [CommonPaymentProviderBase](commonpaymentproviderbase.md) +* interface [IPaymentProvider](ipaymentprovider.md) + +**Namespace** +* [Umbraco.Commerce.Core.PaymentProviders](README.md) + +### Methods + +#### CancelPaymentAsync + +```csharp +public virtual Task CancelPaymentAsync(PaymentProviderContext context, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + +--- + +#### CapturePaymentAsync + +```csharp +public virtual Task CapturePaymentAsync(PaymentProviderContext context, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + +--- + +#### FetchPaymentStatusAsync + +```csharp +public virtual Task FetchPaymentStatusAsync(PaymentProviderContext context, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + +--- + +#### GenerateFormAsync + +```csharp +public abstract Task GenerateFormAsync(PaymentProviderContext context, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + +--- + +#### GetOrderReferenceAsync + +```csharp +public virtual Task GetOrderReferenceAsync(PaymentProviderContext context, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + +--- + +#### ProcessCallbackAsync + +```csharp +public abstract Task ProcessCallbackAsync(PaymentProviderContext context, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + +--- + +#### RefundPaymentAsync + +```csharp +public virtual Task RefundPaymentAsync(PaymentProviderContext context, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentprovidercollection.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentprovidercollection.md new file mode 100644 index 00000000000..d245b31246e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentprovidercollection.md @@ -0,0 +1,36 @@ +--- +title: PaymentProviderCollection +description: API reference for PaymentProviderCollection in Umbraco Commerce +--- +## PaymentProviderCollection + +```csharp +public class PaymentProviderCollection : ComposedCollection +``` + +**Inheritance** + +* Class [ComposedCollection<!0>](../../umbraco-commerce-common/umbraco-commerce-common-composing/composedcollection-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.PaymentProviders](README.md) + +### Constructors + +#### PaymentProviderCollection + +```csharp +public PaymentProviderCollection(Func> itemsFactory) +``` + + +### Indexers + +#### PaymentProviderCollection + +```csharp +public IPaymentProvider this[string alias] { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentprovidercontext-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentprovidercontext-1.md new file mode 100644 index 00000000000..b9252ec342d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentprovidercontext-1.md @@ -0,0 +1,27 @@ +--- +title: PaymentProviderContext +description: API reference for PaymentProviderContext in Umbraco Commerce +--- +## PaymentProviderContext<TSettings> + +```csharp +public class PaymentProviderContext : PaymentProviderContext +``` + +**Inheritance** + +* Class [PaymentProviderContext](paymentprovidercontext.md) + +**Namespace** +* [Umbraco.Commerce.Core.PaymentProviders](README.md) + +### Properties + +#### Settings + +```csharp +public TSettings Settings { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentprovidercontext.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentprovidercontext.md new file mode 100644 index 00000000000..0b060cbb944 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentprovidercontext.md @@ -0,0 +1,59 @@ +--- +title: PaymentProviderContext +description: API reference for PaymentProviderContext in Umbraco Commerce +--- +## PaymentProviderContext + +```csharp +public class PaymentProviderContext +``` + +**Namespace** +* [Umbraco.Commerce.Core.PaymentProviders](README.md) + +### Properties + +#### AdditionalData + +```csharp +public IDictionary AdditionalData { get; } +``` + + +--- + +#### Order + +```csharp +public OrderReadOnly Order { get; } +``` + + +--- + +#### Request + +```csharp +public HttpRequestMessage Request { get; } +``` + + +--- + +#### Settings + +```csharp +public IReadOnlyDictionary Settings { get; } +``` + + +--- + +#### Urls + +```csharp +public PaymentProviderUrlsContext Urls { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentprovidercontextfactory.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentprovidercontextfactory.md new file mode 100644 index 00000000000..cec8e0265f2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentprovidercontextfactory.md @@ -0,0 +1,44 @@ +--- +title: PaymentProviderContextFactory +description: API reference for PaymentProviderContextFactory in Umbraco Commerce +--- +## PaymentProviderContextFactory + +```csharp +public class PaymentProviderContextFactory +``` + +**Namespace** +* [Umbraco.Commerce.Core.PaymentProviders](README.md) + +### Constructors + +#### PaymentProviderContextFactory + +```csharp +public PaymentProviderContextFactory(IPaymentProviderUriResolver uriResolver, + ITranslationService translationService, IHashProvider hashProvider) +``` + + +### Methods + +#### CreateContext + +```csharp +public PaymentProviderContext CreateContext(OrderReadOnly order, + PaymentMethodReadOnly paymentMethod, HttpRequestMessage request = null) +``` + + +--- + +#### UpdateContext + +```csharp +public PaymentProviderContext UpdateContext(PaymentProviderContext context, OrderReadOnly order, + PaymentMethodReadOnly paymentMethod, HttpRequestMessage request = null) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentproviderdefinition.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentproviderdefinition.md new file mode 100644 index 00000000000..43aaa0ea881 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentproviderdefinition.md @@ -0,0 +1,70 @@ +--- +title: PaymentProviderDefinition +description: API reference for PaymentProviderDefinition in Umbraco Commerce +--- +## PaymentProviderDefinition + +```csharp +public class PaymentProviderDefinition +``` + +**Namespace** +* [Umbraco.Commerce.Core.PaymentProviders](README.md) + +### Constructors + +#### PaymentProviderDefinition + +The default constructor. + +```csharp +public PaymentProviderDefinition() +``` + + +### Properties + +#### Alias + +```csharp +public string Alias { get; set; } +``` + + +--- + +#### Description + +```csharp +public string Description { get; set; } +``` + + +--- + +#### Icon + +```csharp +public string Icon { get; set; } +``` + + +--- + +#### IsObsolete + +```csharp +public bool IsObsolete { get; set; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentproviderfactory.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentproviderfactory.md new file mode 100644 index 00000000000..24b2ba2c689 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentproviderfactory.md @@ -0,0 +1,32 @@ +--- +title: PaymentProviderFactory +description: API reference for PaymentProviderFactory in Umbraco Commerce +--- +## PaymentProviderFactory + +```csharp +public class PaymentProviderFactory +``` + +**Namespace** +* [Umbraco.Commerce.Core.PaymentProviders](README.md) + +### Constructors + +#### PaymentProviderFactory + +```csharp +public PaymentProviderFactory(PaymentProviderCollection paymentProviders) +``` + + +### Methods + +#### GetPaymentProvider + +```csharp +public IPaymentProvider GetPaymentProvider(string alias) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentproviderscaffold.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentproviderscaffold.md new file mode 100644 index 00000000000..0667c421546 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentproviderscaffold.md @@ -0,0 +1,38 @@ +--- +title: PaymentProviderScaffold +description: API reference for PaymentProviderScaffold in Umbraco Commerce +--- +## PaymentProviderScaffold + +```csharp +public class PaymentProviderScaffold : PaymentProviderDefinition +``` + +**Inheritance** + +* Class [PaymentProviderDefinition](paymentproviderdefinition.md) + +**Namespace** +* [Umbraco.Commerce.Core.PaymentProviders](README.md) + +### Constructors + +#### PaymentProviderScaffold + +The default constructor. + +```csharp +public PaymentProviderScaffold() +``` + + +### Properties + +#### SettingDefinitions + +```csharp +public IEnumerable SettingDefinitions { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentprovidersettingattribute.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentprovidersettingattribute.md new file mode 100644 index 00000000000..8852d888b9c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentprovidersettingattribute.md @@ -0,0 +1,39 @@ +--- +title: PaymentProviderSettingAttribute +description: API reference for PaymentProviderSettingAttribute in Umbraco Commerce +--- +## PaymentProviderSettingAttribute + +```csharp +[AttributeUsage(AttributeTargets.Property)] +public class PaymentProviderSettingAttribute : UmbracoCommerceSettingAttribute +``` + +**Inheritance** + +* Class [UmbracoCommerceSettingAttribute](../umbraco-commerce-core-attributes/umbracocommercesettingattribute.md) + +**Namespace** +* [Umbraco.Commerce.Core.PaymentProviders](README.md) + +### Constructors + +#### PaymentProviderSettingAttribute + +The default constructor. + +```csharp +public PaymentProviderSettingAttribute() +``` + + +### Properties + +#### IsAdvanced + +```csharp +public bool IsAdvanced { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentprovidersettingdefinition.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentprovidersettingdefinition.md new file mode 100644 index 00000000000..596c03acfe2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentprovidersettingdefinition.md @@ -0,0 +1,47 @@ +--- +title: PaymentProviderSettingDefinition +description: API reference for PaymentProviderSettingDefinition in Umbraco Commerce +--- +## PaymentProviderSettingDefinition + +```csharp +public class PaymentProviderSettingDefinition : UmbracoCommerceSettingDefinition +``` + +**Inheritance** + +* Class [UmbracoCommerceSettingDefinition](../umbraco-commerce-core-models/umbracocommercesettingdefinition.md) + +**Namespace** +* [Umbraco.Commerce.Core.PaymentProviders](README.md) + +### Constructors + +#### PaymentProviderSettingDefinition + +The default constructor. + +```csharp +public PaymentProviderSettingDefinition() +``` + + +--- + +#### PaymentProviderSettingDefinition + +```csharp +public PaymentProviderSettingDefinition(string key, string name, string description = null) +``` + + +### Properties + +#### IsAdvanced + +```csharp +public bool IsAdvanced { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentproviderurlscontext.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentproviderurlscontext.md new file mode 100644 index 00000000000..c5c8c8ae35d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/paymentproviderurlscontext.md @@ -0,0 +1,50 @@ +--- +title: PaymentProviderUrlsContext +description: API reference for PaymentProviderUrlsContext in Umbraco Commerce +--- +## PaymentProviderUrlsContext + +```csharp +public class PaymentProviderUrlsContext +``` + +**Namespace** +* [Umbraco.Commerce.Core.PaymentProviders](README.md) + +### Properties + +#### CallbackUrl + +```csharp +public string CallbackUrl { get; } +``` + + +--- + +#### CancelUrl + +```csharp +public string CancelUrl { get; } +``` + + +--- + +#### ContinueUrl + +```csharp +public string ContinueUrl { get; } +``` + + +--- + +#### ErrorUrl + +```csharp +public string ErrorUrl { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/transactioninfo.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/transactioninfo.md new file mode 100644 index 00000000000..186cbd73c96 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/transactioninfo.md @@ -0,0 +1,61 @@ +--- +title: TransactionInfo +description: API reference for TransactionInfo in Umbraco Commerce +--- +## TransactionInfo + +```csharp +public class TransactionInfo +``` + +**Namespace** +* [Umbraco.Commerce.Core.PaymentProviders](README.md) + +### Constructors + +#### TransactionInfo + +The default constructor. + +```csharp +public TransactionInfo() +``` + + +### Properties + +#### AmountAuthorized + +```csharp +public decimal AmountAuthorized { get; set; } +``` + + +--- + +#### PaymentStatus + +```csharp +public PaymentStatus PaymentStatus { get; set; } +``` + + +--- + +#### TransactionFee + +```csharp +public decimal? TransactionFee { get; set; } +``` + + +--- + +#### TransactionId + +```csharp +public string TransactionId { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/transactioninfoupdate.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/transactioninfoupdate.md new file mode 100644 index 00000000000..1f861afa18b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/transactioninfoupdate.md @@ -0,0 +1,43 @@ +--- +title: TransactionInfoUpdate +description: API reference for TransactionInfoUpdate in Umbraco Commerce +--- +## TransactionInfoUpdate + +```csharp +public class TransactionInfoUpdate +``` + +**Namespace** +* [Umbraco.Commerce.Core.PaymentProviders](README.md) + +### Constructors + +#### TransactionInfoUpdate + +The default constructor. + +```csharp +public TransactionInfoUpdate() +``` + + +### Properties + +#### PaymentStatus + +```csharp +public PaymentStatus PaymentStatus { get; set; } +``` + + +--- + +#### TransactionId + +```csharp +public string TransactionId { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/transactionmetadatadefinition.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/transactionmetadatadefinition.md new file mode 100644 index 00000000000..805500313bf --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/transactionmetadatadefinition.md @@ -0,0 +1,61 @@ +--- +title: TransactionMetaDataDefinition +description: API reference for TransactionMetaDataDefinition in Umbraco Commerce +--- +## TransactionMetaDataDefinition + +```csharp +public class TransactionMetaDataDefinition +``` + +**Namespace** +* [Umbraco.Commerce.Core.PaymentProviders](README.md) + +### Constructors + +#### TransactionMetaDataDefinition + +The default constructor. + +```csharp +public TransactionMetaDataDefinition() +``` + + +--- + +#### TransactionMetaDataDefinition + +```csharp +public TransactionMetaDataDefinition(string propertyAlias, string name, string description = null) +``` + + +### Properties + +#### Description + +```csharp +public string Description { get; set; } +``` + + +--- + +#### Name + +```csharp +public string Name { get; set; } +``` + + +--- + +#### PropertyAlias + +```csharp +public string PropertyAlias { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/zerovaluepaymentprovider.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/zerovaluepaymentprovider.md new file mode 100644 index 00000000000..99c63206d68 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/zerovaluepaymentprovider.md @@ -0,0 +1,87 @@ +--- +title: ZeroValuePaymentProvider +description: API reference for ZeroValuePaymentProvider in Umbraco Commerce +--- +## ZeroValuePaymentProvider + +```csharp +public class ZeroValuePaymentProvider : PaymentProviderBase +``` + +**Inheritance** + +* Class [PaymentProviderBase<TSettingsModel>](paymentproviderbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.PaymentProviders](README.md) + +### Constructors + +#### ZeroValuePaymentProvider + +```csharp +public ZeroValuePaymentProvider(UmbracoCommerceContext ctx) +``` + + +### Properties + +#### FinalizeAtContinueUrl + +```csharp +public override bool FinalizeAtContinueUrl { get; } +``` + + +### Methods + +#### GenerateFormAsync + +```csharp +public override Task GenerateFormAsync( + PaymentProviderContext context, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + +--- + +#### GetCancelUrl + +```csharp +public override string GetCancelUrl( + PaymentProviderContext context) +``` + + +--- + +#### GetContinueUrl + +```csharp +public override string GetContinueUrl( + PaymentProviderContext context) +``` + + +--- + +#### GetErrorUrl + +```csharp +public override string GetErrorUrl(PaymentProviderContext context) +``` + + +--- + +#### ProcessCallbackAsync + +```csharp +public override Task ProcessCallbackAsync( + PaymentProviderContext context, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/zerovaluepaymentprovidersettings.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/zerovaluepaymentprovidersettings.md new file mode 100644 index 00000000000..e1edca4568c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-paymentproviders/zerovaluepaymentprovidersettings.md @@ -0,0 +1,34 @@ +--- +title: ZeroValuePaymentProviderSettings +description: API reference for ZeroValuePaymentProviderSettings in Umbraco Commerce +--- +## ZeroValuePaymentProviderSettings + +```csharp +public class ZeroValuePaymentProviderSettings +``` + +**Namespace** +* [Umbraco.Commerce.Core.PaymentProviders](README.md) + +### Constructors + +#### ZeroValuePaymentProviderSettings + +The default constructor. + +```csharp +public ZeroValuePaymentProviderSettings() +``` + + +### Properties + +#### ContinueUrl + +```csharp +public string ContinueUrl { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-email-tasks/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-email-tasks/README.md new file mode 100644 index 00000000000..ff9370336d1 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-email-tasks/README.md @@ -0,0 +1,17 @@ +--- +title: Umbraco.Commerce.Core.Pipelines.Email.Tasks +description: API reference for Umbraco.Commerce.Core.Pipelines.Email.Tasks in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Pipelines.Email.Tasks namespace + +| Public Type | Description | +| --- | --- | +| class [ConstructEmailMessageTask](constructemailmessagetask.md) | | +| class [RaiseFailedEventTask](raisefailedeventtask.md) | | +| class [RaiseSendingEventTask](raisesendingeventtask.md) | | +| class [RaiseSentEventTask](raisesenteventtask.md) | | +| class [RenderEmailTemplateTask](renderemailtemplatetask.md) | | +| class [ReplaceEmailTokens](replaceemailtokens.md) | | +| class [SendEmailTask](sendemailtask.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-email-tasks/constructemailmessagetask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-email-tasks/constructemailmessagetask.md new file mode 100644 index 00000000000..fd2b5bb8dc5 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-email-tasks/constructemailmessagetask.md @@ -0,0 +1,37 @@ +--- +title: ConstructEmailMessageTask +description: API reference for ConstructEmailMessageTask in Umbraco Commerce +--- +## ConstructEmailMessageTask + +```csharp +public class ConstructEmailMessageTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Email.Tasks](README.md) + +### Constructors + +#### ConstructEmailMessageTask + +```csharp +public ConstructEmailMessageTask(ITranslationService translationService) +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(EmailSendPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-email-tasks/raisefailedeventtask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-email-tasks/raisefailedeventtask.md new file mode 100644 index 00000000000..2e254bf4da1 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-email-tasks/raisefailedeventtask.md @@ -0,0 +1,29 @@ +--- +title: RaiseFailedEventTask +description: API reference for RaiseFailedEventTask in Umbraco Commerce +--- +## RaiseFailedEventTask + +```csharp +public class RaiseFailedEventTask : NotificationEventTaskBase +``` + +**Inheritance** + +* Class [NotificationEventTaskBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/notificationeventtaskbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Email.Tasks](README.md) + +### Constructors + +#### RaiseFailedEventTask + +The default constructor. + +```csharp +public RaiseFailedEventTask() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-email-tasks/raisesendingeventtask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-email-tasks/raisesendingeventtask.md new file mode 100644 index 00000000000..3b0a34faea2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-email-tasks/raisesendingeventtask.md @@ -0,0 +1,30 @@ +--- +title: RaiseSendingEventTask +description: API reference for RaiseSendingEventTask in Umbraco Commerce +--- +## RaiseSendingEventTask + +```csharp +public class RaiseSendingEventTask : + NotificationEventTaskBase +``` + +**Inheritance** + +* Class [NotificationEventTaskBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/notificationeventtaskbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Email.Tasks](README.md) + +### Constructors + +#### RaiseSendingEventTask + +The default constructor. + +```csharp +public RaiseSendingEventTask() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-email-tasks/raisesenteventtask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-email-tasks/raisesenteventtask.md new file mode 100644 index 00000000000..3241102a449 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-email-tasks/raisesenteventtask.md @@ -0,0 +1,29 @@ +--- +title: RaiseSentEventTask +description: API reference for RaiseSentEventTask in Umbraco Commerce +--- +## RaiseSentEventTask + +```csharp +public class RaiseSentEventTask : NotificationEventTaskBase +``` + +**Inheritance** + +* Class [NotificationEventTaskBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/notificationeventtaskbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Email.Tasks](README.md) + +### Constructors + +#### RaiseSentEventTask + +The default constructor. + +```csharp +public RaiseSentEventTask() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-email-tasks/renderemailtemplatetask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-email-tasks/renderemailtemplatetask.md new file mode 100644 index 00000000000..b1b3f3ba17c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-email-tasks/renderemailtemplatetask.md @@ -0,0 +1,38 @@ +--- +title: RenderEmailTemplateTask +description: API reference for RenderEmailTemplateTask in Umbraco Commerce +--- +## RenderEmailTemplateTask + +```csharp +public class RenderEmailTemplateTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Email.Tasks](README.md) + +### Constructors + +#### RenderEmailTemplateTask + +```csharp +public RenderEmailTemplateTask(ITranslationService translationService, + ITemplateEngine templateEngine) +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(EmailSendPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-email-tasks/replaceemailtokens.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-email-tasks/replaceemailtokens.md new file mode 100644 index 00000000000..cc0c8379c65 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-email-tasks/replaceemailtokens.md @@ -0,0 +1,38 @@ +--- +title: ReplaceEmailTokens +description: API reference for ReplaceEmailTokens in Umbraco Commerce +--- +## ReplaceEmailTokens + +```csharp +public class ReplaceEmailTokens : PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Email.Tasks](README.md) + +### Constructors + +#### ReplaceEmailTokens + +The default constructor. + +```csharp +public ReplaceEmailTokens() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(EmailSendPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-email-tasks/sendemailtask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-email-tasks/sendemailtask.md new file mode 100644 index 00000000000..864583a5baf --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-email-tasks/sendemailtask.md @@ -0,0 +1,36 @@ +--- +title: SendEmailTask +description: API reference for SendEmailTask in Umbraco Commerce +--- +## SendEmailTask + +```csharp +public class SendEmailTask : PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Email.Tasks](README.md) + +### Constructors + +#### SendEmailTask + +```csharp +public SendEmailTask(IEmailSender emailSender, ILogger logger) +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(EmailSendPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-email/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-email/README.md new file mode 100644 index 00000000000..3760e33503c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-email/README.md @@ -0,0 +1,12 @@ +--- +title: Umbraco.Commerce.Core.Pipelines.Email +description: API reference for Umbraco.Commerce.Core.Pipelines.Email in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Pipelines.Email namespace + +| Public Type | Description | +| --- | --- | +| class [EmailSendPipelineArgs](emailsendpipelineargs.md) | | +| class [SendEmailPipeline](sendemailpipeline.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-email/emailsendpipelineargs.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-email/emailsendpipelineargs.md new file mode 100644 index 00000000000..7f720243389 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-email/emailsendpipelineargs.md @@ -0,0 +1,36 @@ +--- +title: EmailSendPipelineArgs +description: API reference for EmailSendPipelineArgs in Umbraco Commerce +--- +## EmailSendPipelineArgs + +```csharp +public class EmailSendPipelineArgs : PipelineArgs +``` + +**Inheritance** + +* Class [PipelineArgs<!0>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelineargs-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Email](README.md) + +### Constructors + +#### EmailSendPipelineArgs + +```csharp +public EmailSendPipelineArgs(IUnitOfWork uow, EmailContext model) +``` + + +### Properties + +#### EmailContext + +```csharp +public EmailContext EmailContext { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-email/sendemailpipeline.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-email/sendemailpipeline.md new file mode 100644 index 00000000000..cc6275756c1 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-email/sendemailpipeline.md @@ -0,0 +1,27 @@ +--- +title: SendEmailPipeline +description: API reference for SendEmailPipeline in Umbraco Commerce +--- +## SendEmailPipeline + +```csharp +public class SendEmailPipeline : PipelineTaskCollection +``` + +**Inheritance** + +* Class [PipelineTaskCollection<!0>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskcollection-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Email](README.md) + +### Constructors + +#### SendEmailPipeline + +```csharp +public SendEmailPipeline(Func>> itemsFactory) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/README.md new file mode 100644 index 00000000000..d02e2e6ae26 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/README.md @@ -0,0 +1,54 @@ +--- +title: Umbraco.Commerce.Core.Pipelines.Order.Tasks +description: API reference for Umbraco.Commerce.Core.Pipelines.Order.Tasks in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Pipelines.Order.Tasks namespace + +| Public Type | Description | +| --- | --- | +| class [ApplyOrderAmountAdjustmentsTask](applyorderamountadjustmentstask.md) | | +| class [ApplyOrderPriceAdjustmentsTask](applyorderpriceadjustmentstask.md) | | +| class [CalculateOrderAdjustedPricesTask](calculateorderadjustedpricestask.md) | | +| class [CalculateOrderAdjustedTransactionAmountTask](calculateorderadjustedtransactionamounttask.md) | | +| class [CalculateOrderLineAdjustedPricesTask](calculateorderlineadjustedpricestask.md) | | +| class [CalculateOrderLinePricesTask](calculateorderlinepricestask.md) | | +| class [CalculateOrderLineTaxRatesTask](calculateorderlinetaxratestask.md) | | +| class [CalculateOrderPaymentTaxRateTask](calculateorderpaymenttaxratetask.md) | | +| class [CalculateOrderPaymentTotalPriceAdjustmentTask](calculateorderpaymenttotalpriceadjustmenttask.md) | | +| class [CalculateOrderPaymentTotalPriceValueTask](calculateorderpaymenttotalpricevaluetask.md) | | +| class [CalculateOrderPaymentTotalPriceWithoutAdjustmentsTask](calculateorderpaymenttotalpricewithoutadjustmentstask.md) | | +| class [CalculateOrderPricesTask](calculateorderpricestask.md) | | +| class [CalculateOrderShippingTaxRateTask](calculateordershippingtaxratetask.md) | | +| class [CalculateOrderShippingTotalPriceAdjustmentTask](calculateordershippingtotalpriceadjustmenttask.md) | | +| class [CalculateOrderShippingTotalPriceValueTask](calculateordershippingtotalpricevaluetask.md) | | +| class [CalculateOrderShippingTotalPriceWithoutAdjustmentsTask](calculateordershippingtotalpricewithoutadjustmentstask.md) | | +| class [CalculateOrderSubtotalPriceAdjustmentTask](calculateordersubtotalpriceadjustmenttask.md) | | +| class [CalculateOrderSubtotalPricePreviousAdjustmentsTask](calculateordersubtotalpricepreviousadjustmentstask.md) | | +| class [CalculateOrderSubtotalPriceTotalAdjustmentTask](calculateordersubtotalpricetotaladjustmenttask.md) | | +| class [CalculateOrderSubtotalPriceValueTask](calculateordersubtotalpricevaluetask.md) | | +| class [CalculateOrderSubtotalPriceWithoutAdjustmentsTask](calculateordersubtotalpricewithoutadjustmentstask.md) | | +| class [CalculateOrderSubtotalPriceWithPreviousAdjustmentsTask](calculateordersubtotalpricewithpreviousadjustmentstask.md) | | +| class [CalculateOrderTaxRatesTask](calculateordertaxratestask.md) | | +| class [CalculateOrderTaxRateTask](calculateordertaxratetask.md) | | +| class [CalculateOrderTotalPriceAdjustmentTask](calculateordertotalpriceadjustmenttask.md) | | +| class [CalculateOrderTotalPricePreviousAdjustmentTask](calculateordertotalpricepreviousadjustmenttask.md) | | +| class [CalculateOrderTotalPriceTask](calculateordertotalpricetask.md) | | +| class [CalculateOrderTotalPriceTotalAdjustmentTask](calculateordertotalpricetotaladjustmenttask.md) | | +| class [CalculateOrderTotalPriceValueTask](calculateordertotalpricevaluetask.md) | | +| class [CalculateOrderTotalPriceWithoutAdjustmentsTask](calculateordertotalpricewithoutadjustmentstask.md) | | +| class [CalculateOrderTotalPriceWithPreviousAdjustmentsTask](calculateordertotalpricewithpreviousadjustmentstask.md) | | +| class [CalculateOrderTotalTransactionAmountTask](calculateordertotaltransactionamounttask.md) | | +| class [CalculateOrderTransactionAmountAdjustmentTask](calculateordertransactionamountadjustmenttask.md) | | +| class [CalculateOrderTransactionAmountTask](calculateordertransactionamounttask.md) | | +| class [CalculateOrderTransactionAmountValueTask](calculateordertransactionamountvaluetask.md) | | +| class [CalculateOrderTransactionAmountWithoutAdjustmentsTask](calculateordertransactionamountwithoutadjustmentstask.md) | | +| class [LimitOrderAdjustmentsTask](limitorderadjustmentstask.md) | | +| class [LimitOrderPaymentTotalPriceAdjustmentsTask](limitorderpaymenttotalpriceadjustmentstask.md) | | +| class [LimitOrderShippingTotalPriceAdjustmentsTask](limitordershippingtotalpriceadjustmentstask.md) | | +| class [LimitOrderSubtotalPriceAdjustmentsTask](limitordersubtotalpriceadjustmentstask.md) | | +| class [LimitOrderTotalPriceAdjustmentsTask](limitordertotalpriceadjustmentstask.md) | | +| class [LimitOrderTransactionAmountAdjustmentsTask](limitordertransactionamountadjustmentstask.md) | | +| abstract class [OrderLinesCalculationPipelineTaskBase<TSelf,TOrderLinePipeline>](orderlinescalculationpipelinetaskbase-2.md) | | +| class [ResovleOrderCalculationDependenciesTask](resovleordercalculationdependenciestask.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/applyorderamountadjustmentstask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/applyorderamountadjustmentstask.md new file mode 100644 index 00000000000..e5feeab267d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/applyorderamountadjustmentstask.md @@ -0,0 +1,37 @@ +--- +title: ApplyOrderAmountAdjustmentsTask +description: API reference for ApplyOrderAmountAdjustmentsTask in Umbraco Commerce +--- +## ApplyOrderAmountAdjustmentsTask + +```csharp +public class ApplyOrderAmountAdjustmentsTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### ApplyOrderAmountAdjustmentsTask + +```csharp +public ApplyOrderAmountAdjustmentsTask(AmountAdjusterCollection amountAdjusters) +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/applyorderpriceadjustmentstask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/applyorderpriceadjustmentstask.md new file mode 100644 index 00000000000..2ca0c1235e8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/applyorderpriceadjustmentstask.md @@ -0,0 +1,37 @@ +--- +title: ApplyOrderPriceAdjustmentsTask +description: API reference for ApplyOrderPriceAdjustmentsTask in Umbraco Commerce +--- +## ApplyOrderPriceAdjustmentsTask + +```csharp +public class ApplyOrderPriceAdjustmentsTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### ApplyOrderPriceAdjustmentsTask + +```csharp +public ApplyOrderPriceAdjustmentsTask(PriceAdjusterCollection priceAdjusters) +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateorderadjustedpricestask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateorderadjustedpricestask.md new file mode 100644 index 00000000000..431026f7952 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateorderadjustedpricestask.md @@ -0,0 +1,30 @@ +--- +title: CalculateOrderAdjustedPricesTask +description: API reference for CalculateOrderAdjustedPricesTask in Umbraco Commerce +--- +## CalculateOrderAdjustedPricesTask + +```csharp +public class CalculateOrderAdjustedPricesTask : + SubPipelineTaskBase +``` + +**Inheritance** + +* Class [SubPipelineTaskBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/subpipelinetaskbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### CalculateOrderAdjustedPricesTask + +The default constructor. + +```csharp +public CalculateOrderAdjustedPricesTask() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateorderadjustedtransactionamounttask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateorderadjustedtransactionamounttask.md new file mode 100644 index 00000000000..ab094d898ed --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateorderadjustedtransactionamounttask.md @@ -0,0 +1,30 @@ +--- +title: CalculateOrderAdjustedTransactionAmountTask +description: API reference for CalculateOrderAdjustedTransactionAmountTask in Umbraco Commerce +--- +## CalculateOrderAdjustedTransactionAmountTask + +```csharp +public class CalculateOrderAdjustedTransactionAmountTask : + SubPipelineTaskBase +``` + +**Inheritance** + +* Class [SubPipelineTaskBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/subpipelinetaskbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### CalculateOrderAdjustedTransactionAmountTask + +The default constructor. + +```csharp +public CalculateOrderAdjustedTransactionAmountTask() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateorderlineadjustedpricestask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateorderlineadjustedpricestask.md new file mode 100644 index 00000000000..ba80759e699 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateorderlineadjustedpricestask.md @@ -0,0 +1,28 @@ +--- +title: CalculateOrderLineAdjustedPricesTask +description: API reference for CalculateOrderLineAdjustedPricesTask in Umbraco Commerce +--- +## CalculateOrderLineAdjustedPricesTask + +```csharp +public class CalculateOrderLineAdjustedPricesTask : + OrderLinesCalculationPipelineTaskBase +``` + +**Inheritance** + +* Class [OrderLinesCalculationPipelineTaskBase<TSelf,TOrderLinePipeline>](orderlinescalculationpipelinetaskbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### CalculateOrderLineAdjustedPricesTask + +```csharp +public CalculateOrderLineAdjustedPricesTask(ILogger logger) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateorderlinepricestask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateorderlinepricestask.md new file mode 100644 index 00000000000..cc40af08c04 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateorderlinepricestask.md @@ -0,0 +1,28 @@ +--- +title: CalculateOrderLinePricesTask +description: API reference for CalculateOrderLinePricesTask in Umbraco Commerce +--- +## CalculateOrderLinePricesTask + +```csharp +public class CalculateOrderLinePricesTask : + OrderLinesCalculationPipelineTaskBase +``` + +**Inheritance** + +* Class [OrderLinesCalculationPipelineTaskBase<TSelf,TOrderLinePipeline>](orderlinescalculationpipelinetaskbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### CalculateOrderLinePricesTask + +```csharp +public CalculateOrderLinePricesTask(ILogger logger) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateorderlinetaxratestask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateorderlinetaxratestask.md new file mode 100644 index 00000000000..d5096f26492 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateorderlinetaxratestask.md @@ -0,0 +1,28 @@ +--- +title: CalculateOrderLineTaxRatesTask +description: API reference for CalculateOrderLineTaxRatesTask in Umbraco Commerce +--- +## CalculateOrderLineTaxRatesTask + +```csharp +public class CalculateOrderLineTaxRatesTask : + OrderLinesCalculationPipelineTaskBase +``` + +**Inheritance** + +* Class [OrderLinesCalculationPipelineTaskBase<TSelf,TOrderLinePipeline>](orderlinescalculationpipelinetaskbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### CalculateOrderLineTaxRatesTask + +```csharp +public CalculateOrderLineTaxRatesTask(ILogger logger) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateorderpaymenttaxratetask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateorderpaymenttaxratetask.md new file mode 100644 index 00000000000..37acf162895 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateorderpaymenttaxratetask.md @@ -0,0 +1,37 @@ +--- +title: CalculateOrderPaymentTaxRateTask +description: API reference for CalculateOrderPaymentTaxRateTask in Umbraco Commerce +--- +## CalculateOrderPaymentTaxRateTask + +```csharp +public class CalculateOrderPaymentTaxRateTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### CalculateOrderPaymentTaxRateTask + +```csharp +public CalculateOrderPaymentTaxRateTask(IPaymentCalculator paymentCalculator) +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateorderpaymenttotalpriceadjustmenttask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateorderpaymenttotalpriceadjustmenttask.md new file mode 100644 index 00000000000..fd480406f49 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateorderpaymenttotalpriceadjustmenttask.md @@ -0,0 +1,39 @@ +--- +title: CalculateOrderPaymentTotalPriceAdjustmentTask +description: API reference for CalculateOrderPaymentTotalPriceAdjustmentTask in Umbraco Commerce +--- +## CalculateOrderPaymentTotalPriceAdjustmentTask + +```csharp +public class CalculateOrderPaymentTotalPriceAdjustmentTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### CalculateOrderPaymentTotalPriceAdjustmentTask + +The default constructor. + +```csharp +public CalculateOrderPaymentTotalPriceAdjustmentTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateorderpaymenttotalpricevaluetask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateorderpaymenttotalpricevaluetask.md new file mode 100644 index 00000000000..93d038aaf96 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateorderpaymenttotalpricevaluetask.md @@ -0,0 +1,39 @@ +--- +title: CalculateOrderPaymentTotalPriceValueTask +description: API reference for CalculateOrderPaymentTotalPriceValueTask in Umbraco Commerce +--- +## CalculateOrderPaymentTotalPriceValueTask + +```csharp +public class CalculateOrderPaymentTotalPriceValueTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### CalculateOrderPaymentTotalPriceValueTask + +The default constructor. + +```csharp +public CalculateOrderPaymentTotalPriceValueTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateorderpaymenttotalpricewithoutadjustmentstask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateorderpaymenttotalpricewithoutadjustmentstask.md new file mode 100644 index 00000000000..af18d45fe93 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateorderpaymenttotalpricewithoutadjustmentstask.md @@ -0,0 +1,37 @@ +--- +title: CalculateOrderPaymentTotalPriceWithoutAdjustmentsTask +description: API reference for CalculateOrderPaymentTotalPriceWithoutAdjustmentsTask in Umbraco Commerce +--- +## CalculateOrderPaymentTotalPriceWithoutAdjustmentsTask + +```csharp +public class CalculateOrderPaymentTotalPriceWithoutAdjustmentsTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### CalculateOrderPaymentTotalPriceWithoutAdjustmentsTask + +```csharp +public CalculateOrderPaymentTotalPriceWithoutAdjustmentsTask(IPaymentCalculator paymentCalculator) +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateorderpricestask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateorderpricestask.md new file mode 100644 index 00000000000..d8681262d27 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateorderpricestask.md @@ -0,0 +1,30 @@ +--- +title: CalculateOrderPricesTask +description: API reference for CalculateOrderPricesTask in Umbraco Commerce +--- +## CalculateOrderPricesTask + +```csharp +public class CalculateOrderPricesTask : + SubPipelineTaskBase +``` + +**Inheritance** + +* Class [SubPipelineTaskBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/subpipelinetaskbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### CalculateOrderPricesTask + +The default constructor. + +```csharp +public CalculateOrderPricesTask() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordershippingtaxratetask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordershippingtaxratetask.md new file mode 100644 index 00000000000..4bf2283cc65 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordershippingtaxratetask.md @@ -0,0 +1,37 @@ +--- +title: CalculateOrderShippingTaxRateTask +description: API reference for CalculateOrderShippingTaxRateTask in Umbraco Commerce +--- +## CalculateOrderShippingTaxRateTask + +```csharp +public class CalculateOrderShippingTaxRateTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### CalculateOrderShippingTaxRateTask + +```csharp +public CalculateOrderShippingTaxRateTask(IShippingCalculator shippingCalculator) +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordershippingtotalpriceadjustmenttask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordershippingtotalpriceadjustmenttask.md new file mode 100644 index 00000000000..ef5d6760f6e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordershippingtotalpriceadjustmenttask.md @@ -0,0 +1,39 @@ +--- +title: CalculateOrderShippingTotalPriceAdjustmentTask +description: API reference for CalculateOrderShippingTotalPriceAdjustmentTask in Umbraco Commerce +--- +## CalculateOrderShippingTotalPriceAdjustmentTask + +```csharp +public class CalculateOrderShippingTotalPriceAdjustmentTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### CalculateOrderShippingTotalPriceAdjustmentTask + +The default constructor. + +```csharp +public CalculateOrderShippingTotalPriceAdjustmentTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordershippingtotalpricevaluetask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordershippingtotalpricevaluetask.md new file mode 100644 index 00000000000..709781c562a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordershippingtotalpricevaluetask.md @@ -0,0 +1,39 @@ +--- +title: CalculateOrderShippingTotalPriceValueTask +description: API reference for CalculateOrderShippingTotalPriceValueTask in Umbraco Commerce +--- +## CalculateOrderShippingTotalPriceValueTask + +```csharp +public class CalculateOrderShippingTotalPriceValueTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### CalculateOrderShippingTotalPriceValueTask + +The default constructor. + +```csharp +public CalculateOrderShippingTotalPriceValueTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordershippingtotalpricewithoutadjustmentstask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordershippingtotalpricewithoutadjustmentstask.md new file mode 100644 index 00000000000..049fc517944 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordershippingtotalpricewithoutadjustmentstask.md @@ -0,0 +1,38 @@ +--- +title: CalculateOrderShippingTotalPriceWithoutAdjustmentsTask +description: API reference for CalculateOrderShippingTotalPriceWithoutAdjustmentsTask in Umbraco Commerce +--- +## CalculateOrderShippingTotalPriceWithoutAdjustmentsTask + +```csharp +public class CalculateOrderShippingTotalPriceWithoutAdjustmentsTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### CalculateOrderShippingTotalPriceWithoutAdjustmentsTask + +```csharp +public CalculateOrderShippingTotalPriceWithoutAdjustmentsTask( + IShippingCalculator shippingCalculator) +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordersubtotalpriceadjustmenttask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordersubtotalpriceadjustmenttask.md new file mode 100644 index 00000000000..37cd34f7215 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordersubtotalpriceadjustmenttask.md @@ -0,0 +1,39 @@ +--- +title: CalculateOrderSubtotalPriceAdjustmentTask +description: API reference for CalculateOrderSubtotalPriceAdjustmentTask in Umbraco Commerce +--- +## CalculateOrderSubtotalPriceAdjustmentTask + +```csharp +public class CalculateOrderSubtotalPriceAdjustmentTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### CalculateOrderSubtotalPriceAdjustmentTask + +The default constructor. + +```csharp +public CalculateOrderSubtotalPriceAdjustmentTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordersubtotalpricepreviousadjustmentstask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordersubtotalpricepreviousadjustmentstask.md new file mode 100644 index 00000000000..5a57b181ad8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordersubtotalpricepreviousadjustmentstask.md @@ -0,0 +1,39 @@ +--- +title: CalculateOrderSubtotalPricePreviousAdjustmentsTask +description: API reference for CalculateOrderSubtotalPricePreviousAdjustmentsTask in Umbraco Commerce +--- +## CalculateOrderSubtotalPricePreviousAdjustmentsTask + +```csharp +public class CalculateOrderSubtotalPricePreviousAdjustmentsTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### CalculateOrderSubtotalPricePreviousAdjustmentsTask + +The default constructor. + +```csharp +public CalculateOrderSubtotalPricePreviousAdjustmentsTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordersubtotalpricetotaladjustmenttask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordersubtotalpricetotaladjustmenttask.md new file mode 100644 index 00000000000..76f369d58f3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordersubtotalpricetotaladjustmenttask.md @@ -0,0 +1,39 @@ +--- +title: CalculateOrderSubtotalPriceTotalAdjustmentTask +description: API reference for CalculateOrderSubtotalPriceTotalAdjustmentTask in Umbraco Commerce +--- +## CalculateOrderSubtotalPriceTotalAdjustmentTask + +```csharp +public class CalculateOrderSubtotalPriceTotalAdjustmentTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### CalculateOrderSubtotalPriceTotalAdjustmentTask + +The default constructor. + +```csharp +public CalculateOrderSubtotalPriceTotalAdjustmentTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordersubtotalpricevaluetask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordersubtotalpricevaluetask.md new file mode 100644 index 00000000000..ba4533cc79f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordersubtotalpricevaluetask.md @@ -0,0 +1,39 @@ +--- +title: CalculateOrderSubtotalPriceValueTask +description: API reference for CalculateOrderSubtotalPriceValueTask in Umbraco Commerce +--- +## CalculateOrderSubtotalPriceValueTask + +```csharp +public class CalculateOrderSubtotalPriceValueTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### CalculateOrderSubtotalPriceValueTask + +The default constructor. + +```csharp +public CalculateOrderSubtotalPriceValueTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordersubtotalpricewithoutadjustmentstask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordersubtotalpricewithoutadjustmentstask.md new file mode 100644 index 00000000000..7c9fbdf19f0 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordersubtotalpricewithoutadjustmentstask.md @@ -0,0 +1,39 @@ +--- +title: CalculateOrderSubtotalPriceWithoutAdjustmentsTask +description: API reference for CalculateOrderSubtotalPriceWithoutAdjustmentsTask in Umbraco Commerce +--- +## CalculateOrderSubtotalPriceWithoutAdjustmentsTask + +```csharp +public class CalculateOrderSubtotalPriceWithoutAdjustmentsTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### CalculateOrderSubtotalPriceWithoutAdjustmentsTask + +The default constructor. + +```csharp +public CalculateOrderSubtotalPriceWithoutAdjustmentsTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordersubtotalpricewithpreviousadjustmentstask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordersubtotalpricewithpreviousadjustmentstask.md new file mode 100644 index 00000000000..3df2918a267 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordersubtotalpricewithpreviousadjustmentstask.md @@ -0,0 +1,39 @@ +--- +title: CalculateOrderSubtotalPriceWithPreviousAdjustmentsTask +description: API reference for CalculateOrderSubtotalPriceWithPreviousAdjustmentsTask in Umbraco Commerce +--- +## CalculateOrderSubtotalPriceWithPreviousAdjustmentsTask + +```csharp +public class CalculateOrderSubtotalPriceWithPreviousAdjustmentsTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### CalculateOrderSubtotalPriceWithPreviousAdjustmentsTask + +The default constructor. + +```csharp +public CalculateOrderSubtotalPriceWithPreviousAdjustmentsTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertaxratestask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertaxratestask.md new file mode 100644 index 00000000000..d856c18ae2c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertaxratestask.md @@ -0,0 +1,30 @@ +--- +title: CalculateOrderTaxRatesTask +description: API reference for CalculateOrderTaxRatesTask in Umbraco Commerce +--- +## CalculateOrderTaxRatesTask + +```csharp +public class CalculateOrderTaxRatesTask : + SubPipelineTaskBase +``` + +**Inheritance** + +* Class [SubPipelineTaskBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/subpipelinetaskbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### CalculateOrderTaxRatesTask + +The default constructor. + +```csharp +public CalculateOrderTaxRatesTask() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertaxratetask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertaxratetask.md new file mode 100644 index 00000000000..64c235bf4ba --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertaxratetask.md @@ -0,0 +1,39 @@ +--- +title: CalculateOrderTaxRateTask +description: API reference for CalculateOrderTaxRateTask in Umbraco Commerce +--- +## CalculateOrderTaxRateTask + +```csharp +public class CalculateOrderTaxRateTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### CalculateOrderTaxRateTask + +The default constructor. + +```csharp +public CalculateOrderTaxRateTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertotalpriceadjustmenttask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertotalpriceadjustmenttask.md new file mode 100644 index 00000000000..0689612c121 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertotalpriceadjustmenttask.md @@ -0,0 +1,39 @@ +--- +title: CalculateOrderTotalPriceAdjustmentTask +description: API reference for CalculateOrderTotalPriceAdjustmentTask in Umbraco Commerce +--- +## CalculateOrderTotalPriceAdjustmentTask + +```csharp +public class CalculateOrderTotalPriceAdjustmentTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### CalculateOrderTotalPriceAdjustmentTask + +The default constructor. + +```csharp +public CalculateOrderTotalPriceAdjustmentTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertotalpricepreviousadjustmenttask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertotalpricepreviousadjustmenttask.md new file mode 100644 index 00000000000..c204522ac80 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertotalpricepreviousadjustmenttask.md @@ -0,0 +1,39 @@ +--- +title: CalculateOrderTotalPricePreviousAdjustmentTask +description: API reference for CalculateOrderTotalPricePreviousAdjustmentTask in Umbraco Commerce +--- +## CalculateOrderTotalPricePreviousAdjustmentTask + +```csharp +public class CalculateOrderTotalPricePreviousAdjustmentTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### CalculateOrderTotalPricePreviousAdjustmentTask + +The default constructor. + +```csharp +public CalculateOrderTotalPricePreviousAdjustmentTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertotalpricetask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertotalpricetask.md new file mode 100644 index 00000000000..756fcfa5f7e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertotalpricetask.md @@ -0,0 +1,30 @@ +--- +title: CalculateOrderTotalPriceTask +description: API reference for CalculateOrderTotalPriceTask in Umbraco Commerce +--- +## CalculateOrderTotalPriceTask + +```csharp +public class CalculateOrderTotalPriceTask : + SubPipelineTaskBase +``` + +**Inheritance** + +* Class [SubPipelineTaskBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/subpipelinetaskbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### CalculateOrderTotalPriceTask + +The default constructor. + +```csharp +public CalculateOrderTotalPriceTask() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertotalpricetotaladjustmenttask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertotalpricetotaladjustmenttask.md new file mode 100644 index 00000000000..8ef8b7c644c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertotalpricetotaladjustmenttask.md @@ -0,0 +1,39 @@ +--- +title: CalculateOrderTotalPriceTotalAdjustmentTask +description: API reference for CalculateOrderTotalPriceTotalAdjustmentTask in Umbraco Commerce +--- +## CalculateOrderTotalPriceTotalAdjustmentTask + +```csharp +public class CalculateOrderTotalPriceTotalAdjustmentTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### CalculateOrderTotalPriceTotalAdjustmentTask + +The default constructor. + +```csharp +public CalculateOrderTotalPriceTotalAdjustmentTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertotalpricevaluetask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertotalpricevaluetask.md new file mode 100644 index 00000000000..3fa1332897b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertotalpricevaluetask.md @@ -0,0 +1,39 @@ +--- +title: CalculateOrderTotalPriceValueTask +description: API reference for CalculateOrderTotalPriceValueTask in Umbraco Commerce +--- +## CalculateOrderTotalPriceValueTask + +```csharp +public class CalculateOrderTotalPriceValueTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### CalculateOrderTotalPriceValueTask + +The default constructor. + +```csharp +public CalculateOrderTotalPriceValueTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertotalpricewithoutadjustmentstask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertotalpricewithoutadjustmentstask.md new file mode 100644 index 00000000000..8bb95e50f74 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertotalpricewithoutadjustmentstask.md @@ -0,0 +1,39 @@ +--- +title: CalculateOrderTotalPriceWithoutAdjustmentsTask +description: API reference for CalculateOrderTotalPriceWithoutAdjustmentsTask in Umbraco Commerce +--- +## CalculateOrderTotalPriceWithoutAdjustmentsTask + +```csharp +public class CalculateOrderTotalPriceWithoutAdjustmentsTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### CalculateOrderTotalPriceWithoutAdjustmentsTask + +The default constructor. + +```csharp +public CalculateOrderTotalPriceWithoutAdjustmentsTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertotalpricewithpreviousadjustmentstask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertotalpricewithpreviousadjustmentstask.md new file mode 100644 index 00000000000..eaae5b8c957 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertotalpricewithpreviousadjustmentstask.md @@ -0,0 +1,39 @@ +--- +title: CalculateOrderTotalPriceWithPreviousAdjustmentsTask +description: API reference for CalculateOrderTotalPriceWithPreviousAdjustmentsTask in Umbraco Commerce +--- +## CalculateOrderTotalPriceWithPreviousAdjustmentsTask + +```csharp +public class CalculateOrderTotalPriceWithPreviousAdjustmentsTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### CalculateOrderTotalPriceWithPreviousAdjustmentsTask + +The default constructor. + +```csharp +public CalculateOrderTotalPriceWithPreviousAdjustmentsTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertotaltransactionamounttask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertotaltransactionamounttask.md new file mode 100644 index 00000000000..8c38e09d2b8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertotaltransactionamounttask.md @@ -0,0 +1,30 @@ +--- +title: CalculateOrderTotalTransactionAmountTask +description: API reference for CalculateOrderTotalTransactionAmountTask in Umbraco Commerce +--- +## CalculateOrderTotalTransactionAmountTask + +```csharp +public class CalculateOrderTotalTransactionAmountTask : + SubPipelineTaskBase +``` + +**Inheritance** + +* Class [SubPipelineTaskBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/subpipelinetaskbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### CalculateOrderTotalTransactionAmountTask + +The default constructor. + +```csharp +public CalculateOrderTotalTransactionAmountTask() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertransactionamountadjustmenttask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertransactionamountadjustmenttask.md new file mode 100644 index 00000000000..63204805125 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertransactionamountadjustmenttask.md @@ -0,0 +1,39 @@ +--- +title: CalculateOrderTransactionAmountAdjustmentTask +description: API reference for CalculateOrderTransactionAmountAdjustmentTask in Umbraco Commerce +--- +## CalculateOrderTransactionAmountAdjustmentTask + +```csharp +public class CalculateOrderTransactionAmountAdjustmentTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### CalculateOrderTransactionAmountAdjustmentTask + +The default constructor. + +```csharp +public CalculateOrderTransactionAmountAdjustmentTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertransactionamounttask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertransactionamounttask.md new file mode 100644 index 00000000000..6068530c71a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertransactionamounttask.md @@ -0,0 +1,30 @@ +--- +title: CalculateOrderTransactionAmountTask +description: API reference for CalculateOrderTransactionAmountTask in Umbraco Commerce +--- +## CalculateOrderTransactionAmountTask + +```csharp +public class CalculateOrderTransactionAmountTask : + SubPipelineTaskBase +``` + +**Inheritance** + +* Class [SubPipelineTaskBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/subpipelinetaskbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### CalculateOrderTransactionAmountTask + +The default constructor. + +```csharp +public CalculateOrderTransactionAmountTask() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertransactionamountvaluetask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertransactionamountvaluetask.md new file mode 100644 index 00000000000..fae60bfa67a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertransactionamountvaluetask.md @@ -0,0 +1,39 @@ +--- +title: CalculateOrderTransactionAmountValueTask +description: API reference for CalculateOrderTransactionAmountValueTask in Umbraco Commerce +--- +## CalculateOrderTransactionAmountValueTask + +```csharp +public class CalculateOrderTransactionAmountValueTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### CalculateOrderTransactionAmountValueTask + +The default constructor. + +```csharp +public CalculateOrderTransactionAmountValueTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertransactionamountwithoutadjustmentstask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertransactionamountwithoutadjustmentstask.md new file mode 100644 index 00000000000..31804e2ff57 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/calculateordertransactionamountwithoutadjustmentstask.md @@ -0,0 +1,39 @@ +--- +title: CalculateOrderTransactionAmountWithoutAdjustmentsTask +description: API reference for CalculateOrderTransactionAmountWithoutAdjustmentsTask in Umbraco Commerce +--- +## CalculateOrderTransactionAmountWithoutAdjustmentsTask + +```csharp +public class CalculateOrderTransactionAmountWithoutAdjustmentsTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### CalculateOrderTransactionAmountWithoutAdjustmentsTask + +The default constructor. + +```csharp +public CalculateOrderTransactionAmountWithoutAdjustmentsTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/limitorderadjustmentstask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/limitorderadjustmentstask.md new file mode 100644 index 00000000000..5cf8e7b0e08 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/limitorderadjustmentstask.md @@ -0,0 +1,30 @@ +--- +title: LimitOrderAdjustmentsTask +description: API reference for LimitOrderAdjustmentsTask in Umbraco Commerce +--- +## LimitOrderAdjustmentsTask + +```csharp +public class LimitOrderAdjustmentsTask : + SubPipelineTaskBase +``` + +**Inheritance** + +* Class [SubPipelineTaskBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/subpipelinetaskbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### LimitOrderAdjustmentsTask + +The default constructor. + +```csharp +public LimitOrderAdjustmentsTask() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/limitorderpaymenttotalpriceadjustmentstask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/limitorderpaymenttotalpriceadjustmentstask.md new file mode 100644 index 00000000000..ab6db9f96d0 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/limitorderpaymenttotalpriceadjustmentstask.md @@ -0,0 +1,39 @@ +--- +title: LimitOrderPaymentTotalPriceAdjustmentsTask +description: API reference for LimitOrderPaymentTotalPriceAdjustmentsTask in Umbraco Commerce +--- +## LimitOrderPaymentTotalPriceAdjustmentsTask + +```csharp +public class LimitOrderPaymentTotalPriceAdjustmentsTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### LimitOrderPaymentTotalPriceAdjustmentsTask + +The default constructor. + +```csharp +public LimitOrderPaymentTotalPriceAdjustmentsTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/limitordershippingtotalpriceadjustmentstask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/limitordershippingtotalpriceadjustmentstask.md new file mode 100644 index 00000000000..f808b5b21f2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/limitordershippingtotalpriceadjustmentstask.md @@ -0,0 +1,39 @@ +--- +title: LimitOrderShippingTotalPriceAdjustmentsTask +description: API reference for LimitOrderShippingTotalPriceAdjustmentsTask in Umbraco Commerce +--- +## LimitOrderShippingTotalPriceAdjustmentsTask + +```csharp +public class LimitOrderShippingTotalPriceAdjustmentsTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### LimitOrderShippingTotalPriceAdjustmentsTask + +The default constructor. + +```csharp +public LimitOrderShippingTotalPriceAdjustmentsTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/limitordersubtotalpriceadjustmentstask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/limitordersubtotalpriceadjustmentstask.md new file mode 100644 index 00000000000..de20022d09a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/limitordersubtotalpriceadjustmentstask.md @@ -0,0 +1,39 @@ +--- +title: LimitOrderSubtotalPriceAdjustmentsTask +description: API reference for LimitOrderSubtotalPriceAdjustmentsTask in Umbraco Commerce +--- +## LimitOrderSubtotalPriceAdjustmentsTask + +```csharp +public class LimitOrderSubtotalPriceAdjustmentsTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### LimitOrderSubtotalPriceAdjustmentsTask + +The default constructor. + +```csharp +public LimitOrderSubtotalPriceAdjustmentsTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/limitordertotalpriceadjustmentstask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/limitordertotalpriceadjustmentstask.md new file mode 100644 index 00000000000..24b6ba4a521 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/limitordertotalpriceadjustmentstask.md @@ -0,0 +1,39 @@ +--- +title: LimitOrderTotalPriceAdjustmentsTask +description: API reference for LimitOrderTotalPriceAdjustmentsTask in Umbraco Commerce +--- +## LimitOrderTotalPriceAdjustmentsTask + +```csharp +public class LimitOrderTotalPriceAdjustmentsTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### LimitOrderTotalPriceAdjustmentsTask + +The default constructor. + +```csharp +public LimitOrderTotalPriceAdjustmentsTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/limitordertransactionamountadjustmentstask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/limitordertransactionamountadjustmentstask.md new file mode 100644 index 00000000000..c52887d7c36 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/limitordertransactionamountadjustmentstask.md @@ -0,0 +1,39 @@ +--- +title: LimitOrderTransactionAmountAdjustmentsTask +description: API reference for LimitOrderTransactionAmountAdjustmentsTask in Umbraco Commerce +--- +## LimitOrderTransactionAmountAdjustmentsTask + +```csharp +public class LimitOrderTransactionAmountAdjustmentsTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### LimitOrderTransactionAmountAdjustmentsTask + +The default constructor. + +```csharp +public LimitOrderTransactionAmountAdjustmentsTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/orderlinescalculationpipelinetaskbase-2.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/orderlinescalculationpipelinetaskbase-2.md new file mode 100644 index 00000000000..24a35a8e9e1 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/orderlinescalculationpipelinetaskbase-2.md @@ -0,0 +1,39 @@ +--- +title: OrderLinesCalculationPipelineTaskBase +description: API reference for OrderLinesCalculationPipelineTaskBase in Umbraco Commerce +--- +## OrderLinesCalculationPipelineTaskBase<TSelf,TOrderLinePipeline> + +```csharp +public abstract class OrderLinesCalculationPipelineTaskBase : + PipelineTaskWithTypedArgsBase + where TSelf : OrderLinesCalculationPipelineTaskBase + where TOrderLinePipeline : IEnumerable, IPipelineTaskCollection +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### OrderLinesCalculationPipelineTaskBase<TSelf,TOrderLinePipeline> + +```csharp +public OrderLinesCalculationPipelineTaskBase(ILogger logger) +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/resovleordercalculationdependenciestask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/resovleordercalculationdependenciestask.md new file mode 100644 index 00000000000..8f8134660be --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order-tasks/resovleordercalculationdependenciestask.md @@ -0,0 +1,40 @@ +--- +title: ResovleOrderCalculationDependenciesTask +description: API reference for ResovleOrderCalculationDependenciesTask in Umbraco Commerce +--- +## ResovleOrderCalculationDependenciesTask + +```csharp +public class ResovleOrderCalculationDependenciesTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order.Tasks](README.md) + +### Constructors + +#### ResovleOrderCalculationDependenciesTask + +```csharp +public ResovleOrderCalculationDependenciesTask(IStoreService storeService, + ICurrencyService currencyService, ITaxService taxService, ICountryService countryService, + IPaymentMethodService paymentMethodService, IShippingMethodService shippingMethodService, + ITaxSourceFactory taxSourceFactory) +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order/README.md new file mode 100644 index 00000000000..f7876e8f553 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order/README.md @@ -0,0 +1,20 @@ +--- +title: Umbraco.Commerce.Core.Pipelines.Order +description: API reference for Umbraco.Commerce.Core.Pipelines.Order in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Pipelines.Order namespace + +| Public Type | Description | +| --- | --- | +| class [CalculateOrderAdjustedPricesPipeline](calculateorderadjustedpricespipeline.md) | | +| class [CalculateOrderAdjustedTransactionAmountPipeline](calculateorderadjustedtransactionamountpipeline.md) | | +| class [CalculateOrderPipeline](calculateorderpipeline.md) | | +| class [CalculateOrderPricesPipeline](calculateorderpricespipeline.md) | | +| class [CalculateOrderTaxRatesPipeline](calculateordertaxratespipeline.md) | | +| class [CalculateOrderTotalPricePipeline](calculateordertotalpricepipeline.md) | | +| class [CalculateOrderTotalTransactionAmountPipeline](calculateordertotaltransactionamountpipeline.md) | | +| class [CalculateOrderTransactionAmountPipeline](calculateordertransactionamountpipeline.md) | | +| class [LimitOrderDiscountsPipeline](limitorderdiscountspipeline.md) | | +| class [OrderCalculationPipelineArgs](ordercalculationpipelineargs.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order/calculateorderadjustedpricespipeline.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order/calculateorderadjustedpricespipeline.md new file mode 100644 index 00000000000..78a6f4b727e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order/calculateorderadjustedpricespipeline.md @@ -0,0 +1,28 @@ +--- +title: CalculateOrderAdjustedPricesPipeline +description: API reference for CalculateOrderAdjustedPricesPipeline in Umbraco Commerce +--- +## CalculateOrderAdjustedPricesPipeline + +```csharp +public class CalculateOrderAdjustedPricesPipeline : PipelineTaskCollection +``` + +**Inheritance** + +* Class [PipelineTaskCollection<!0>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskcollection-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order](README.md) + +### Constructors + +#### CalculateOrderAdjustedPricesPipeline + +```csharp +public CalculateOrderAdjustedPricesPipeline( + Func>> tasks) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order/calculateorderadjustedtransactionamountpipeline.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order/calculateorderadjustedtransactionamountpipeline.md new file mode 100644 index 00000000000..f85e85f398c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order/calculateorderadjustedtransactionamountpipeline.md @@ -0,0 +1,29 @@ +--- +title: CalculateOrderAdjustedTransactionAmountPipeline +description: API reference for CalculateOrderAdjustedTransactionAmountPipeline in Umbraco Commerce +--- +## CalculateOrderAdjustedTransactionAmountPipeline + +```csharp +public class CalculateOrderAdjustedTransactionAmountPipeline : + PipelineTaskCollection +``` + +**Inheritance** + +* Class [PipelineTaskCollection<!0>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskcollection-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order](README.md) + +### Constructors + +#### CalculateOrderAdjustedTransactionAmountPipeline + +```csharp +public CalculateOrderAdjustedTransactionAmountPipeline( + Func>> tasks) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order/calculateorderpipeline.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order/calculateorderpipeline.md new file mode 100644 index 00000000000..01a06a4cc33 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order/calculateorderpipeline.md @@ -0,0 +1,27 @@ +--- +title: CalculateOrderPipeline +description: API reference for CalculateOrderPipeline in Umbraco Commerce +--- +## CalculateOrderPipeline + +```csharp +public class CalculateOrderPipeline : PipelineTaskCollection +``` + +**Inheritance** + +* Class [PipelineTaskCollection<!0>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskcollection-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order](README.md) + +### Constructors + +#### CalculateOrderPipeline + +```csharp +public CalculateOrderPipeline(Func>> tasks) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order/calculateorderpricespipeline.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order/calculateorderpricespipeline.md new file mode 100644 index 00000000000..4058de72967 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order/calculateorderpricespipeline.md @@ -0,0 +1,27 @@ +--- +title: CalculateOrderPricesPipeline +description: API reference for CalculateOrderPricesPipeline in Umbraco Commerce +--- +## CalculateOrderPricesPipeline + +```csharp +public class CalculateOrderPricesPipeline : PipelineTaskCollection +``` + +**Inheritance** + +* Class [PipelineTaskCollection<!0>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskcollection-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order](README.md) + +### Constructors + +#### CalculateOrderPricesPipeline + +```csharp +public CalculateOrderPricesPipeline(Func>> tasks) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order/calculateordertaxratespipeline.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order/calculateordertaxratespipeline.md new file mode 100644 index 00000000000..0e654632508 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order/calculateordertaxratespipeline.md @@ -0,0 +1,27 @@ +--- +title: CalculateOrderTaxRatesPipeline +description: API reference for CalculateOrderTaxRatesPipeline in Umbraco Commerce +--- +## CalculateOrderTaxRatesPipeline + +```csharp +public class CalculateOrderTaxRatesPipeline : PipelineTaskCollection +``` + +**Inheritance** + +* Class [PipelineTaskCollection<!0>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskcollection-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order](README.md) + +### Constructors + +#### CalculateOrderTaxRatesPipeline + +```csharp +public CalculateOrderTaxRatesPipeline(Func>> tasks) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order/calculateordertotalpricepipeline.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order/calculateordertotalpricepipeline.md new file mode 100644 index 00000000000..25db6ae67a6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order/calculateordertotalpricepipeline.md @@ -0,0 +1,27 @@ +--- +title: CalculateOrderTotalPricePipeline +description: API reference for CalculateOrderTotalPricePipeline in Umbraco Commerce +--- +## CalculateOrderTotalPricePipeline + +```csharp +public class CalculateOrderTotalPricePipeline : PipelineTaskCollection +``` + +**Inheritance** + +* Class [PipelineTaskCollection<!0>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskcollection-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order](README.md) + +### Constructors + +#### CalculateOrderTotalPricePipeline + +```csharp +public CalculateOrderTotalPricePipeline(Func>> tasks) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order/calculateordertotaltransactionamountpipeline.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order/calculateordertotaltransactionamountpipeline.md new file mode 100644 index 00000000000..06a003fa916 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order/calculateordertotaltransactionamountpipeline.md @@ -0,0 +1,28 @@ +--- +title: CalculateOrderTotalTransactionAmountPipeline +description: API reference for CalculateOrderTotalTransactionAmountPipeline in Umbraco Commerce +--- +## CalculateOrderTotalTransactionAmountPipeline + +```csharp +public class CalculateOrderTotalTransactionAmountPipeline : PipelineTaskCollection +``` + +**Inheritance** + +* Class [PipelineTaskCollection<!0>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskcollection-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order](README.md) + +### Constructors + +#### CalculateOrderTotalTransactionAmountPipeline + +```csharp +public CalculateOrderTotalTransactionAmountPipeline( + Func>> tasks) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order/calculateordertransactionamountpipeline.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order/calculateordertransactionamountpipeline.md new file mode 100644 index 00000000000..01222c576b2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order/calculateordertransactionamountpipeline.md @@ -0,0 +1,28 @@ +--- +title: CalculateOrderTransactionAmountPipeline +description: API reference for CalculateOrderTransactionAmountPipeline in Umbraco Commerce +--- +## CalculateOrderTransactionAmountPipeline + +```csharp +public class CalculateOrderTransactionAmountPipeline : PipelineTaskCollection +``` + +**Inheritance** + +* Class [PipelineTaskCollection<!0>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskcollection-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order](README.md) + +### Constructors + +#### CalculateOrderTransactionAmountPipeline + +```csharp +public CalculateOrderTransactionAmountPipeline( + Func>> tasks) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order/limitorderdiscountspipeline.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order/limitorderdiscountspipeline.md new file mode 100644 index 00000000000..fceed1e4b69 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order/limitorderdiscountspipeline.md @@ -0,0 +1,27 @@ +--- +title: LimitOrderDiscountsPipeline +description: API reference for LimitOrderDiscountsPipeline in Umbraco Commerce +--- +## LimitOrderDiscountsPipeline + +```csharp +public class LimitOrderDiscountsPipeline : PipelineTaskCollection +``` + +**Inheritance** + +* Class [PipelineTaskCollection<!0>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskcollection-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order](README.md) + +### Constructors + +#### LimitOrderDiscountsPipeline + +```csharp +public LimitOrderDiscountsPipeline(Func>> tasks) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order/ordercalculationpipelineargs.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order/ordercalculationpipelineargs.md new file mode 100644 index 00000000000..504bf9657a2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-order/ordercalculationpipelineargs.md @@ -0,0 +1,135 @@ +--- +title: OrderCalculationPipelineArgs +description: API reference for OrderCalculationPipelineArgs in Umbraco Commerce +--- +## OrderCalculationPipelineArgs + +```csharp +public class OrderCalculationPipelineArgs : PipelineArgs +``` + +**Inheritance** + +* Class [PipelineArgs<!0>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelineargs-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Order](README.md) + +### Constructors + +#### OrderCalculationPipelineArgs + +```csharp +public OrderCalculationPipelineArgs(IUnitOfWork uow, OrderCalculation model, OrderReadOnly order) +``` + + +### Properties + +#### Calculation + +```csharp +public OrderCalculation Calculation { get; } +``` + + +--- + +#### Currency + +```csharp +public CurrencyReadOnly Currency { get; } +``` + + +--- + +#### Order + +```csharp +public OrderReadOnly Order { get; } +``` + + +--- + +#### PaymentCountry + +```csharp +public CountryReadOnly PaymentCountry { get; } +``` + + +--- + +#### PaymentMethod + +```csharp +public PaymentMethodReadOnly PaymentMethod { get; } +``` + + +--- + +#### PaymentRegion + +```csharp +public RegionReadOnly PaymentRegion { get; } +``` + + +--- + +#### ShippingCountry + +```csharp +public CountryReadOnly ShippingCountry { get; } +``` + + +--- + +#### ShippingMethod + +```csharp +public ShippingMethodReadOnly ShippingMethod { get; } +``` + + +--- + +#### ShippingRegion + +```csharp +public RegionReadOnly ShippingRegion { get; } +``` + + +--- + +#### Store + +```csharp +public StoreReadOnly Store { get; } +``` + + +--- + +#### TaxClass + +```csharp +public TaxClassReadOnly TaxClass { get; } +``` + + +--- + +#### TaxSource + +```csharp +public TaxSource TaxSource { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/README.md new file mode 100644 index 00000000000..03242aef06c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/README.md @@ -0,0 +1,35 @@ +--- +title: Umbraco.Commerce.Core.Pipelines.OrderLine.Tasks +description: API reference for Umbraco.Commerce.Core.Pipelines.OrderLine.Tasks in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Pipelines.OrderLine.Tasks namespace + +| Public Type | Description | +| --- | --- | +| class [CalculateOrderLineAdjustedPricesTask](calculateorderlineadjustedpricestask.md) | | +| class [CalculateOrderLineBasePriceAdjustmentTask](calculateorderlinebasepriceadjustmenttask.md) | | +| class [CalculateOrderLineBasePriceValueTask](calculateorderlinebasepricevaluetask.md) | | +| class [CalculateOrderLineBasePriceWithoutAdjustmentsTask](calculateorderlinebasepricewithoutadjustmentstask.md) | | +| class [CalculateOrderLineTaxRateTask](calculateorderlinetaxratetask.md) | | +| class [CalculateOrderLineTotalPriceAdjustmentTask](calculateorderlinetotalpriceadjustmenttask.md) | | +| class [CalculateOrderLineTotalPricePreviousAdjustmentsTask](calculateorderlinetotalpricepreviousadjustmentstask.md) | | +| class [CalculateOrderLineTotalPriceTotalAdjustmentTask](calculateorderlinetotalpricetotaladjustmenttask.md) | | +| class [CalculateOrderLineTotalPriceValueTask](calculateorderlinetotalpricevaluetask.md) | | +| class [CalculateOrderLineTotalPriceWithoutAdjustmentsTask](calculateorderlinetotalpricewithoutadjustmentstask.md) | | +| class [CalculateOrderLineTotalPriceWithPreviousAdjustmentsTask](calculateorderlinetotalpricewithpreviousadjustmentstask.md) | | +| class [CalculateOrderLineUnitPriceAdjustmentTask](calculateorderlineunitpriceadjustmenttask.md) | | +| class [CalculateOrderLineUnitPricePreviousAdjustmentsTask](calculateorderlineunitpricepreviousadjustmentstask.md) | | +| class [CalculateOrderLineUnitPriceTotalAdjustmentTask](calculateorderlineunitpricetotaladjustmenttask.md) | | +| class [CalculateOrderLineUnitPriceValueTask](calculateorderlineunitpricevaluetask.md) | | +| class [CalculateOrderLineUnitPriceWithoutAdjustmentsTask](calculateorderlineunitpricewithoutadjustmentstask.md) | | +| class [CalculateOrderLineUnitPriceWithPreviousAdjustmentsTask](calculateorderlineunitpricewithpreviousadjustmentstask.md) | | +| class [CalculateSubOrderLineAdjustedPricesTask](calculatesuborderlineadjustedpricestask.md) | | +| class [CalculateSubOrderLinePricesTask](calculatesuborderlinepricestask.md) | | +| class [CalculateSubOrderLineTaxRatesTask](calculatesuborderlinetaxratestask.md) | | +| class [LimitOrderLineBasePriceAdjustmentsTask](limitorderlinebasepriceadjustmentstask.md) | | +| class [LimitOrderLineTotalPriceAdjustmentsTask](limitorderlinetotalpriceadjustmentstask.md) | | +| class [LimitOrderLineUnitPriceAdjustmentsTask](limitorderlineunitpriceadjustmentstask.md) | | +| class [LimitSubOrderLineAdjustmentsTask](limitsuborderlineadjustmentstask.md) | | +| class [SubOrderLinesCalculationPipelineBase<TSelf,TSubOrderLinePipeline>](suborderlinescalculationpipelinebase-2.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlineadjustedpricestask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlineadjustedpricestask.md new file mode 100644 index 00000000000..86f5ce04465 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlineadjustedpricestask.md @@ -0,0 +1,30 @@ +--- +title: CalculateOrderLineAdjustedPricesTask +description: API reference for CalculateOrderLineAdjustedPricesTask in Umbraco Commerce +--- +## CalculateOrderLineAdjustedPricesTask + +```csharp +public class CalculateOrderLineAdjustedPricesTask : + SubPipelineTaskBase +``` + +**Inheritance** + +* Class [SubPipelineTaskBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/subpipelinetaskbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.OrderLine.Tasks](README.md) + +### Constructors + +#### CalculateOrderLineAdjustedPricesTask + +The default constructor. + +```csharp +public CalculateOrderLineAdjustedPricesTask() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlinebasepriceadjustmenttask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlinebasepriceadjustmenttask.md new file mode 100644 index 00000000000..ddf6bad451c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlinebasepriceadjustmenttask.md @@ -0,0 +1,39 @@ +--- +title: CalculateOrderLineBasePriceAdjustmentTask +description: API reference for CalculateOrderLineBasePriceAdjustmentTask in Umbraco Commerce +--- +## CalculateOrderLineBasePriceAdjustmentTask + +```csharp +public class CalculateOrderLineBasePriceAdjustmentTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.OrderLine.Tasks](README.md) + +### Constructors + +#### CalculateOrderLineBasePriceAdjustmentTask + +The default constructor. + +```csharp +public CalculateOrderLineBasePriceAdjustmentTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderLineCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlinebasepricevaluetask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlinebasepricevaluetask.md new file mode 100644 index 00000000000..03b4058a116 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlinebasepricevaluetask.md @@ -0,0 +1,39 @@ +--- +title: CalculateOrderLineBasePriceValueTask +description: API reference for CalculateOrderLineBasePriceValueTask in Umbraco Commerce +--- +## CalculateOrderLineBasePriceValueTask + +```csharp +public class CalculateOrderLineBasePriceValueTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.OrderLine.Tasks](README.md) + +### Constructors + +#### CalculateOrderLineBasePriceValueTask + +The default constructor. + +```csharp +public CalculateOrderLineBasePriceValueTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderLineCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlinebasepricewithoutadjustmentstask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlinebasepricewithoutadjustmentstask.md new file mode 100644 index 00000000000..97f4b11d83d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlinebasepricewithoutadjustmentstask.md @@ -0,0 +1,37 @@ +--- +title: CalculateOrderLineBasePriceWithoutAdjustmentsTask +description: API reference for CalculateOrderLineBasePriceWithoutAdjustmentsTask in Umbraco Commerce +--- +## CalculateOrderLineBasePriceWithoutAdjustmentsTask + +```csharp +public class CalculateOrderLineBasePriceWithoutAdjustmentsTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.OrderLine.Tasks](README.md) + +### Constructors + +#### CalculateOrderLineBasePriceWithoutAdjustmentsTask + +```csharp +public CalculateOrderLineBasePriceWithoutAdjustmentsTask(IOrderLineCalculator orderLineCalculator) +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderLineCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlinetaxratetask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlinetaxratetask.md new file mode 100644 index 00000000000..958e8bf4a02 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlinetaxratetask.md @@ -0,0 +1,37 @@ +--- +title: CalculateOrderLineTaxRateTask +description: API reference for CalculateOrderLineTaxRateTask in Umbraco Commerce +--- +## CalculateOrderLineTaxRateTask + +```csharp +public class CalculateOrderLineTaxRateTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.OrderLine.Tasks](README.md) + +### Constructors + +#### CalculateOrderLineTaxRateTask + +```csharp +public CalculateOrderLineTaxRateTask(IOrderLineCalculator orderLineCalculator) +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderLineCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlinetotalpriceadjustmenttask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlinetotalpriceadjustmenttask.md new file mode 100644 index 00000000000..5190deceb9b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlinetotalpriceadjustmenttask.md @@ -0,0 +1,39 @@ +--- +title: CalculateOrderLineTotalPriceAdjustmentTask +description: API reference for CalculateOrderLineTotalPriceAdjustmentTask in Umbraco Commerce +--- +## CalculateOrderLineTotalPriceAdjustmentTask + +```csharp +public class CalculateOrderLineTotalPriceAdjustmentTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.OrderLine.Tasks](README.md) + +### Constructors + +#### CalculateOrderLineTotalPriceAdjustmentTask + +The default constructor. + +```csharp +public CalculateOrderLineTotalPriceAdjustmentTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderLineCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlinetotalpricepreviousadjustmentstask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlinetotalpricepreviousadjustmentstask.md new file mode 100644 index 00000000000..5fe6c6325f8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlinetotalpricepreviousadjustmentstask.md @@ -0,0 +1,39 @@ +--- +title: CalculateOrderLineTotalPricePreviousAdjustmentsTask +description: API reference for CalculateOrderLineTotalPricePreviousAdjustmentsTask in Umbraco Commerce +--- +## CalculateOrderLineTotalPricePreviousAdjustmentsTask + +```csharp +public class CalculateOrderLineTotalPricePreviousAdjustmentsTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.OrderLine.Tasks](README.md) + +### Constructors + +#### CalculateOrderLineTotalPricePreviousAdjustmentsTask + +The default constructor. + +```csharp +public CalculateOrderLineTotalPricePreviousAdjustmentsTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderLineCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlinetotalpricetotaladjustmenttask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlinetotalpricetotaladjustmenttask.md new file mode 100644 index 00000000000..efe6d3394db --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlinetotalpricetotaladjustmenttask.md @@ -0,0 +1,39 @@ +--- +title: CalculateOrderLineTotalPriceTotalAdjustmentTask +description: API reference for CalculateOrderLineTotalPriceTotalAdjustmentTask in Umbraco Commerce +--- +## CalculateOrderLineTotalPriceTotalAdjustmentTask + +```csharp +public class CalculateOrderLineTotalPriceTotalAdjustmentTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.OrderLine.Tasks](README.md) + +### Constructors + +#### CalculateOrderLineTotalPriceTotalAdjustmentTask + +The default constructor. + +```csharp +public CalculateOrderLineTotalPriceTotalAdjustmentTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderLineCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlinetotalpricevaluetask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlinetotalpricevaluetask.md new file mode 100644 index 00000000000..ff90ebec445 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlinetotalpricevaluetask.md @@ -0,0 +1,39 @@ +--- +title: CalculateOrderLineTotalPriceValueTask +description: API reference for CalculateOrderLineTotalPriceValueTask in Umbraco Commerce +--- +## CalculateOrderLineTotalPriceValueTask + +```csharp +public class CalculateOrderLineTotalPriceValueTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.OrderLine.Tasks](README.md) + +### Constructors + +#### CalculateOrderLineTotalPriceValueTask + +The default constructor. + +```csharp +public CalculateOrderLineTotalPriceValueTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderLineCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlinetotalpricewithoutadjustmentstask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlinetotalpricewithoutadjustmentstask.md new file mode 100644 index 00000000000..5e8b8afa72c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlinetotalpricewithoutadjustmentstask.md @@ -0,0 +1,39 @@ +--- +title: CalculateOrderLineTotalPriceWithoutAdjustmentsTask +description: API reference for CalculateOrderLineTotalPriceWithoutAdjustmentsTask in Umbraco Commerce +--- +## CalculateOrderLineTotalPriceWithoutAdjustmentsTask + +```csharp +public class CalculateOrderLineTotalPriceWithoutAdjustmentsTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.OrderLine.Tasks](README.md) + +### Constructors + +#### CalculateOrderLineTotalPriceWithoutAdjustmentsTask + +The default constructor. + +```csharp +public CalculateOrderLineTotalPriceWithoutAdjustmentsTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderLineCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlinetotalpricewithpreviousadjustmentstask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlinetotalpricewithpreviousadjustmentstask.md new file mode 100644 index 00000000000..949d69d0ee5 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlinetotalpricewithpreviousadjustmentstask.md @@ -0,0 +1,39 @@ +--- +title: CalculateOrderLineTotalPriceWithPreviousAdjustmentsTask +description: API reference for CalculateOrderLineTotalPriceWithPreviousAdjustmentsTask in Umbraco Commerce +--- +## CalculateOrderLineTotalPriceWithPreviousAdjustmentsTask + +```csharp +public class CalculateOrderLineTotalPriceWithPreviousAdjustmentsTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.OrderLine.Tasks](README.md) + +### Constructors + +#### CalculateOrderLineTotalPriceWithPreviousAdjustmentsTask + +The default constructor. + +```csharp +public CalculateOrderLineTotalPriceWithPreviousAdjustmentsTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderLineCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlineunitpriceadjustmenttask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlineunitpriceadjustmenttask.md new file mode 100644 index 00000000000..02798905855 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlineunitpriceadjustmenttask.md @@ -0,0 +1,39 @@ +--- +title: CalculateOrderLineUnitPriceAdjustmentTask +description: API reference for CalculateOrderLineUnitPriceAdjustmentTask in Umbraco Commerce +--- +## CalculateOrderLineUnitPriceAdjustmentTask + +```csharp +public class CalculateOrderLineUnitPriceAdjustmentTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.OrderLine.Tasks](README.md) + +### Constructors + +#### CalculateOrderLineUnitPriceAdjustmentTask + +The default constructor. + +```csharp +public CalculateOrderLineUnitPriceAdjustmentTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderLineCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlineunitpricepreviousadjustmentstask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlineunitpricepreviousadjustmentstask.md new file mode 100644 index 00000000000..e386070067b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlineunitpricepreviousadjustmentstask.md @@ -0,0 +1,39 @@ +--- +title: CalculateOrderLineUnitPricePreviousAdjustmentsTask +description: API reference for CalculateOrderLineUnitPricePreviousAdjustmentsTask in Umbraco Commerce +--- +## CalculateOrderLineUnitPricePreviousAdjustmentsTask + +```csharp +public class CalculateOrderLineUnitPricePreviousAdjustmentsTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.OrderLine.Tasks](README.md) + +### Constructors + +#### CalculateOrderLineUnitPricePreviousAdjustmentsTask + +The default constructor. + +```csharp +public CalculateOrderLineUnitPricePreviousAdjustmentsTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderLineCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlineunitpricetotaladjustmenttask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlineunitpricetotaladjustmenttask.md new file mode 100644 index 00000000000..fe5fbc1d4e8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlineunitpricetotaladjustmenttask.md @@ -0,0 +1,39 @@ +--- +title: CalculateOrderLineUnitPriceTotalAdjustmentTask +description: API reference for CalculateOrderLineUnitPriceTotalAdjustmentTask in Umbraco Commerce +--- +## CalculateOrderLineUnitPriceTotalAdjustmentTask + +```csharp +public class CalculateOrderLineUnitPriceTotalAdjustmentTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.OrderLine.Tasks](README.md) + +### Constructors + +#### CalculateOrderLineUnitPriceTotalAdjustmentTask + +The default constructor. + +```csharp +public CalculateOrderLineUnitPriceTotalAdjustmentTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderLineCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlineunitpricevaluetask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlineunitpricevaluetask.md new file mode 100644 index 00000000000..d1aa6a26cd4 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlineunitpricevaluetask.md @@ -0,0 +1,39 @@ +--- +title: CalculateOrderLineUnitPriceValueTask +description: API reference for CalculateOrderLineUnitPriceValueTask in Umbraco Commerce +--- +## CalculateOrderLineUnitPriceValueTask + +```csharp +public class CalculateOrderLineUnitPriceValueTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.OrderLine.Tasks](README.md) + +### Constructors + +#### CalculateOrderLineUnitPriceValueTask + +The default constructor. + +```csharp +public CalculateOrderLineUnitPriceValueTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderLineCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlineunitpricewithoutadjustmentstask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlineunitpricewithoutadjustmentstask.md new file mode 100644 index 00000000000..547424fd5c8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlineunitpricewithoutadjustmentstask.md @@ -0,0 +1,39 @@ +--- +title: CalculateOrderLineUnitPriceWithoutAdjustmentsTask +description: API reference for CalculateOrderLineUnitPriceWithoutAdjustmentsTask in Umbraco Commerce +--- +## CalculateOrderLineUnitPriceWithoutAdjustmentsTask + +```csharp +public class CalculateOrderLineUnitPriceWithoutAdjustmentsTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.OrderLine.Tasks](README.md) + +### Constructors + +#### CalculateOrderLineUnitPriceWithoutAdjustmentsTask + +The default constructor. + +```csharp +public CalculateOrderLineUnitPriceWithoutAdjustmentsTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderLineCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlineunitpricewithpreviousadjustmentstask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlineunitpricewithpreviousadjustmentstask.md new file mode 100644 index 00000000000..ab3dfc56479 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculateorderlineunitpricewithpreviousadjustmentstask.md @@ -0,0 +1,39 @@ +--- +title: CalculateOrderLineUnitPriceWithPreviousAdjustmentsTask +description: API reference for CalculateOrderLineUnitPriceWithPreviousAdjustmentsTask in Umbraco Commerce +--- +## CalculateOrderLineUnitPriceWithPreviousAdjustmentsTask + +```csharp +public class CalculateOrderLineUnitPriceWithPreviousAdjustmentsTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.OrderLine.Tasks](README.md) + +### Constructors + +#### CalculateOrderLineUnitPriceWithPreviousAdjustmentsTask + +The default constructor. + +```csharp +public CalculateOrderLineUnitPriceWithPreviousAdjustmentsTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderLineCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculatesuborderlineadjustedpricestask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculatesuborderlineadjustedpricestask.md new file mode 100644 index 00000000000..d34347f1ff5 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculatesuborderlineadjustedpricestask.md @@ -0,0 +1,39 @@ +--- +title: CalculateSubOrderLineAdjustedPricesTask +description: API reference for CalculateSubOrderLineAdjustedPricesTask in Umbraco Commerce +--- +## CalculateSubOrderLineAdjustedPricesTask + +```csharp +public class CalculateSubOrderLineAdjustedPricesTask : + SubOrderLinesCalculationPipelineBase +``` + +**Inheritance** + +* Class [SubOrderLinesCalculationPipelineBase<TSelf,TSubOrderLinePipeline>](suborderlinescalculationpipelinebase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.OrderLine.Tasks](README.md) + +### Constructors + +#### CalculateSubOrderLineAdjustedPricesTask + +```csharp +public CalculateSubOrderLineAdjustedPricesTask( + ILogger logger) +``` + + +### Methods + +#### AdditionalProcessing + +```csharp +public override void AdditionalProcessing(OrderLineCalculationPipelineArgs args, + OrderLineCalculation orderLineCalculation) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculatesuborderlinepricestask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculatesuborderlinepricestask.md new file mode 100644 index 00000000000..291b0807ee1 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculatesuborderlinepricestask.md @@ -0,0 +1,38 @@ +--- +title: CalculateSubOrderLinePricesTask +description: API reference for CalculateSubOrderLinePricesTask in Umbraco Commerce +--- +## CalculateSubOrderLinePricesTask + +```csharp +public class CalculateSubOrderLinePricesTask : + SubOrderLinesCalculationPipelineBase +``` + +**Inheritance** + +* Class [SubOrderLinesCalculationPipelineBase<TSelf,TSubOrderLinePipeline>](suborderlinescalculationpipelinebase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.OrderLine.Tasks](README.md) + +### Constructors + +#### CalculateSubOrderLinePricesTask + +```csharp +public CalculateSubOrderLinePricesTask(ILogger logger) +``` + + +### Methods + +#### AdditionalProcessing + +```csharp +public override void AdditionalProcessing(OrderLineCalculationPipelineArgs parentPipelineArgs, + OrderLineCalculation orderLineCalculation) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculatesuborderlinetaxratestask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculatesuborderlinetaxratestask.md new file mode 100644 index 00000000000..baf7b54a55c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/calculatesuborderlinetaxratestask.md @@ -0,0 +1,28 @@ +--- +title: CalculateSubOrderLineTaxRatesTask +description: API reference for CalculateSubOrderLineTaxRatesTask in Umbraco Commerce +--- +## CalculateSubOrderLineTaxRatesTask + +```csharp +public class CalculateSubOrderLineTaxRatesTask : + SubOrderLinesCalculationPipelineBase +``` + +**Inheritance** + +* Class [SubOrderLinesCalculationPipelineBase<TSelf,TSubOrderLinePipeline>](suborderlinescalculationpipelinebase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.OrderLine.Tasks](README.md) + +### Constructors + +#### CalculateSubOrderLineTaxRatesTask + +```csharp +public CalculateSubOrderLineTaxRatesTask(ILogger logger) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/limitorderlinebasepriceadjustmentstask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/limitorderlinebasepriceadjustmentstask.md new file mode 100644 index 00000000000..a77f67c5521 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/limitorderlinebasepriceadjustmentstask.md @@ -0,0 +1,39 @@ +--- +title: LimitOrderLineBasePriceAdjustmentsTask +description: API reference for LimitOrderLineBasePriceAdjustmentsTask in Umbraco Commerce +--- +## LimitOrderLineBasePriceAdjustmentsTask + +```csharp +public class LimitOrderLineBasePriceAdjustmentsTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.OrderLine.Tasks](README.md) + +### Constructors + +#### LimitOrderLineBasePriceAdjustmentsTask + +The default constructor. + +```csharp +public LimitOrderLineBasePriceAdjustmentsTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderLineCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/limitorderlinetotalpriceadjustmentstask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/limitorderlinetotalpriceadjustmentstask.md new file mode 100644 index 00000000000..ee8cac91ce3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/limitorderlinetotalpriceadjustmentstask.md @@ -0,0 +1,39 @@ +--- +title: LimitOrderLineTotalPriceAdjustmentsTask +description: API reference for LimitOrderLineTotalPriceAdjustmentsTask in Umbraco Commerce +--- +## LimitOrderLineTotalPriceAdjustmentsTask + +```csharp +public class LimitOrderLineTotalPriceAdjustmentsTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.OrderLine.Tasks](README.md) + +### Constructors + +#### LimitOrderLineTotalPriceAdjustmentsTask + +The default constructor. + +```csharp +public LimitOrderLineTotalPriceAdjustmentsTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderLineCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/limitorderlineunitpriceadjustmentstask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/limitorderlineunitpriceadjustmentstask.md new file mode 100644 index 00000000000..365cc81dc1a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/limitorderlineunitpriceadjustmentstask.md @@ -0,0 +1,39 @@ +--- +title: LimitOrderLineUnitPriceAdjustmentsTask +description: API reference for LimitOrderLineUnitPriceAdjustmentsTask in Umbraco Commerce +--- +## LimitOrderLineUnitPriceAdjustmentsTask + +```csharp +public class LimitOrderLineUnitPriceAdjustmentsTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.OrderLine.Tasks](README.md) + +### Constructors + +#### LimitOrderLineUnitPriceAdjustmentsTask + +The default constructor. + +```csharp +public LimitOrderLineUnitPriceAdjustmentsTask() +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(OrderLineCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/limitsuborderlineadjustmentstask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/limitsuborderlineadjustmentstask.md new file mode 100644 index 00000000000..4dc1fe8b80b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/limitsuborderlineadjustmentstask.md @@ -0,0 +1,28 @@ +--- +title: LimitSubOrderLineAdjustmentsTask +description: API reference for LimitSubOrderLineAdjustmentsTask in Umbraco Commerce +--- +## LimitSubOrderLineAdjustmentsTask + +```csharp +public class LimitSubOrderLineAdjustmentsTask : + SubOrderLinesCalculationPipelineBase +``` + +**Inheritance** + +* Class [SubOrderLinesCalculationPipelineBase<TSelf,TSubOrderLinePipeline>](suborderlinescalculationpipelinebase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.OrderLine.Tasks](README.md) + +### Constructors + +#### LimitSubOrderLineAdjustmentsTask + +```csharp +public LimitSubOrderLineAdjustmentsTask(ILogger logger) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/suborderlinescalculationpipelinebase-2.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/suborderlinescalculationpipelinebase-2.md new file mode 100644 index 00000000000..5b035dcf52d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline-tasks/suborderlinescalculationpipelinebase-2.md @@ -0,0 +1,49 @@ +--- +title: SubOrderLinesCalculationPipelineBase +description: API reference for SubOrderLinesCalculationPipelineBase in Umbraco Commerce +--- +## SubOrderLinesCalculationPipelineBase<TSelf,TSubOrderLinePipeline> + +```csharp +public class SubOrderLinesCalculationPipelineBase : + PipelineTaskWithTypedArgsBase + where TSelf : SubOrderLinesCalculationPipelineBase + where TSubOrderLinePipeline : IEnumerable, IPipelineTaskCollection +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.OrderLine.Tasks](README.md) + +### Constructors + +#### SubOrderLinesCalculationPipelineBase<TSelf,TSubOrderLinePipeline> + +```csharp +public SubOrderLinesCalculationPipelineBase(ILogger logger) +``` + + +### Methods + +#### AdditionalProcessing + +```csharp +public virtual void AdditionalProcessing(OrderLineCalculationPipelineArgs parentPipelineArgs, + OrderLineCalculation orderLineCalculation) +``` + + +--- + +#### Execute + +```csharp +public override PipelineResult Execute(OrderLineCalculationPipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline/README.md new file mode 100644 index 00000000000..6e5ff2e7ba0 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline/README.md @@ -0,0 +1,15 @@ +--- +title: Umbraco.Commerce.Core.Pipelines.OrderLine +description: API reference for Umbraco.Commerce.Core.Pipelines.OrderLine in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Pipelines.OrderLine namespace + +| Public Type | Description | +| --- | --- | +| class [CalculateOrderLineAdjustedPricesPipeline](calculateorderlineadjustedpricespipeline.md) | | +| class [CalculateOrderLinePricesPipeline](calculateorderlinepricespipeline.md) | | +| class [CalculateOrderLineTaxRatesPipeline](calculateorderlinetaxratespipeline.md) | | +| class [LimitOrderLineAdjustmentsPipeline](limitorderlineadjustmentspipeline.md) | | +| class [OrderLineCalculationPipelineArgs](orderlinecalculationpipelineargs.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline/calculateorderlineadjustedpricespipeline.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline/calculateorderlineadjustedpricespipeline.md new file mode 100644 index 00000000000..37cd0dc977a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline/calculateorderlineadjustedpricespipeline.md @@ -0,0 +1,28 @@ +--- +title: CalculateOrderLineAdjustedPricesPipeline +description: API reference for CalculateOrderLineAdjustedPricesPipeline in Umbraco Commerce +--- +## CalculateOrderLineAdjustedPricesPipeline + +```csharp +public class CalculateOrderLineAdjustedPricesPipeline : PipelineTaskCollection +``` + +**Inheritance** + +* Class [PipelineTaskCollection<!0>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskcollection-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.OrderLine](README.md) + +### Constructors + +#### CalculateOrderLineAdjustedPricesPipeline + +```csharp +public CalculateOrderLineAdjustedPricesPipeline( + Func>> tasks) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline/calculateorderlinepricespipeline.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline/calculateorderlinepricespipeline.md new file mode 100644 index 00000000000..3596030c4a5 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline/calculateorderlinepricespipeline.md @@ -0,0 +1,28 @@ +--- +title: CalculateOrderLinePricesPipeline +description: API reference for CalculateOrderLinePricesPipeline in Umbraco Commerce +--- +## CalculateOrderLinePricesPipeline + +```csharp +public class CalculateOrderLinePricesPipeline : PipelineTaskCollection +``` + +**Inheritance** + +* Class [PipelineTaskCollection<!0>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskcollection-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.OrderLine](README.md) + +### Constructors + +#### CalculateOrderLinePricesPipeline + +```csharp +public CalculateOrderLinePricesPipeline( + Func>> tasks) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline/calculateorderlinetaxratespipeline.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline/calculateorderlinetaxratespipeline.md new file mode 100644 index 00000000000..b944a2c76b2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline/calculateorderlinetaxratespipeline.md @@ -0,0 +1,28 @@ +--- +title: CalculateOrderLineTaxRatesPipeline +description: API reference for CalculateOrderLineTaxRatesPipeline in Umbraco Commerce +--- +## CalculateOrderLineTaxRatesPipeline + +```csharp +public class CalculateOrderLineTaxRatesPipeline : PipelineTaskCollection +``` + +**Inheritance** + +* Class [PipelineTaskCollection<!0>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskcollection-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.OrderLine](README.md) + +### Constructors + +#### CalculateOrderLineTaxRatesPipeline + +```csharp +public CalculateOrderLineTaxRatesPipeline( + Func>> tasks) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline/limitorderlineadjustmentspipeline.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline/limitorderlineadjustmentspipeline.md new file mode 100644 index 00000000000..2a6e331ffd7 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline/limitorderlineadjustmentspipeline.md @@ -0,0 +1,28 @@ +--- +title: LimitOrderLineAdjustmentsPipeline +description: API reference for LimitOrderLineAdjustmentsPipeline in Umbraco Commerce +--- +## LimitOrderLineAdjustmentsPipeline + +```csharp +public class LimitOrderLineAdjustmentsPipeline : PipelineTaskCollection +``` + +**Inheritance** + +* Class [PipelineTaskCollection<!0>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskcollection-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.OrderLine](README.md) + +### Constructors + +#### LimitOrderLineAdjustmentsPipeline + +```csharp +public LimitOrderLineAdjustmentsPipeline( + Func>> tasks) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline/orderlinecalculationpipelineargs.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline/orderlinecalculationpipelineargs.md new file mode 100644 index 00000000000..da5a017d6f0 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-orderline/orderlinecalculationpipelineargs.md @@ -0,0 +1,92 @@ +--- +title: OrderLineCalculationPipelineArgs +description: API reference for OrderLineCalculationPipelineArgs in Umbraco Commerce +--- +## OrderLineCalculationPipelineArgs + +```csharp +public class OrderLineCalculationPipelineArgs : PipelineArgs +``` + +**Inheritance** + +* Class [PipelineArgs<!0>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelineargs-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.OrderLine](README.md) + +### Constructors + +#### OrderLineCalculationPipelineArgs + +```csharp +public OrderLineCalculationPipelineArgs(IUnitOfWork uow, OrderLineCalculation model, + StoreReadOnly store, OrderReadOnly order, OrderLineReadOnly orderLine, + CurrencyReadOnly currency, TaxSource taxSource, TaxRate fallbackTaxRate) +``` + + +### Properties + +#### Calculation + +```csharp +public OrderLineCalculation Calculation { get; } +``` + + +--- + +#### Currency + +```csharp +public CurrencyReadOnly Currency { get; set; } +``` + + +--- + +#### FallbackTaxRate + +```csharp +public TaxRate FallbackTaxRate { get; set; } +``` + + +--- + +#### Order + +```csharp +public OrderReadOnly Order { get; set; } +``` + + +--- + +#### OrderLine + +```csharp +public OrderLineReadOnly OrderLine { get; set; } +``` + + +--- + +#### Store + +```csharp +public StoreReadOnly Store { get; set; } +``` + + +--- + +#### TaxSource + +```csharp +public TaxSource TaxSource { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store-tasks/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store-tasks/README.md new file mode 100644 index 00000000000..584fdedbd44 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store-tasks/README.md @@ -0,0 +1,20 @@ +--- +title: Umbraco.Commerce.Core.Pipelines.Store.Tasks +description: API reference for Umbraco.Commerce.Core.Pipelines.Store.Tasks in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Pipelines.Store.Tasks namespace + +| Public Type | Description | +| --- | --- | +| class [CreateDefaultCountryTask](createdefaultcountrytask.md) | | +| class [CreateDefaultCurrencyTask](createdefaultcurrencytask.md) | | +| class [CreateDefaultEmailTemplatesTask](createdefaultemailtemplatestask.md) | | +| class [CreateDefaultExportTemplatesTask](createdefaultexporttemplatestask.md) | | +| class [CreateDefaultOrderStatusesTask](createdefaultorderstatusestask.md) | | +| class [CreateDefaultPaymentMethodTask](createdefaultpaymentmethodtask.md) | | +| class [CreateDefaultPrintTemplatesTask](createdefaultprinttemplatestask.md) | | +| class [CreateDefaultShippingMethodTask](createdefaultshippingmethodtask.md) | | +| class [CreateDefaultTaxClassTask](createdefaulttaxclasstask.md) | | +| class [SetDefaultCountryDefaultsTask](setdefaultcountrydefaultstask.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store-tasks/createdefaultcountrytask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store-tasks/createdefaultcountrytask.md new file mode 100644 index 00000000000..2c0d2618088 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store-tasks/createdefaultcountrytask.md @@ -0,0 +1,36 @@ +--- +title: CreateDefaultCountryTask +description: API reference for CreateDefaultCountryTask in Umbraco Commerce +--- +## CreateDefaultCountryTask + +```csharp +public class CreateDefaultCountryTask : PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Store.Tasks](README.md) + +### Constructors + +#### CreateDefaultCountryTask + +```csharp +public CreateDefaultCountryTask(ICountryService countryService) +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(InitStorePipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store-tasks/createdefaultcurrencytask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store-tasks/createdefaultcurrencytask.md new file mode 100644 index 00000000000..242936c3d97 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store-tasks/createdefaultcurrencytask.md @@ -0,0 +1,36 @@ +--- +title: CreateDefaultCurrencyTask +description: API reference for CreateDefaultCurrencyTask in Umbraco Commerce +--- +## CreateDefaultCurrencyTask + +```csharp +public class CreateDefaultCurrencyTask : PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Store.Tasks](README.md) + +### Constructors + +#### CreateDefaultCurrencyTask + +```csharp +public CreateDefaultCurrencyTask(ICurrencyService currencyService) +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(InitStorePipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store-tasks/createdefaultemailtemplatestask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store-tasks/createdefaultemailtemplatestask.md new file mode 100644 index 00000000000..2fa677e67e0 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store-tasks/createdefaultemailtemplatestask.md @@ -0,0 +1,37 @@ +--- +title: CreateDefaultEmailTemplatesTask +description: API reference for CreateDefaultEmailTemplatesTask in Umbraco Commerce +--- +## CreateDefaultEmailTemplatesTask + +```csharp +public class CreateDefaultEmailTemplatesTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Store.Tasks](README.md) + +### Constructors + +#### CreateDefaultEmailTemplatesTask + +```csharp +public CreateDefaultEmailTemplatesTask(IEmailTemplateService emailTemplateService) +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(InitStorePipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store-tasks/createdefaultexporttemplatestask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store-tasks/createdefaultexporttemplatestask.md new file mode 100644 index 00000000000..2411a08d18f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store-tasks/createdefaultexporttemplatestask.md @@ -0,0 +1,37 @@ +--- +title: CreateDefaultExportTemplatesTask +description: API reference for CreateDefaultExportTemplatesTask in Umbraco Commerce +--- +## CreateDefaultExportTemplatesTask + +```csharp +public class CreateDefaultExportTemplatesTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Store.Tasks](README.md) + +### Constructors + +#### CreateDefaultExportTemplatesTask + +```csharp +public CreateDefaultExportTemplatesTask(IExportTemplateService exportTemplateService) +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(InitStorePipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store-tasks/createdefaultorderstatusestask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store-tasks/createdefaultorderstatusestask.md new file mode 100644 index 00000000000..9fe826395b0 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store-tasks/createdefaultorderstatusestask.md @@ -0,0 +1,37 @@ +--- +title: CreateDefaultOrderStatusesTask +description: API reference for CreateDefaultOrderStatusesTask in Umbraco Commerce +--- +## CreateDefaultOrderStatusesTask + +```csharp +public class CreateDefaultOrderStatusesTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Store.Tasks](README.md) + +### Constructors + +#### CreateDefaultOrderStatusesTask + +```csharp +public CreateDefaultOrderStatusesTask(IOrderStatusService orderStatusService) +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(InitStorePipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store-tasks/createdefaultpaymentmethodtask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store-tasks/createdefaultpaymentmethodtask.md new file mode 100644 index 00000000000..27892d5dc77 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store-tasks/createdefaultpaymentmethodtask.md @@ -0,0 +1,37 @@ +--- +title: CreateDefaultPaymentMethodTask +description: API reference for CreateDefaultPaymentMethodTask in Umbraco Commerce +--- +## CreateDefaultPaymentMethodTask + +```csharp +public class CreateDefaultPaymentMethodTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Store.Tasks](README.md) + +### Constructors + +#### CreateDefaultPaymentMethodTask + +```csharp +public CreateDefaultPaymentMethodTask(IPaymentMethodService paymentMethodService) +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(InitStorePipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store-tasks/createdefaultprinttemplatestask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store-tasks/createdefaultprinttemplatestask.md new file mode 100644 index 00000000000..1a809fb4855 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store-tasks/createdefaultprinttemplatestask.md @@ -0,0 +1,37 @@ +--- +title: CreateDefaultPrintTemplatesTask +description: API reference for CreateDefaultPrintTemplatesTask in Umbraco Commerce +--- +## CreateDefaultPrintTemplatesTask + +```csharp +public class CreateDefaultPrintTemplatesTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Store.Tasks](README.md) + +### Constructors + +#### CreateDefaultPrintTemplatesTask + +```csharp +public CreateDefaultPrintTemplatesTask(IPrintTemplateService printTemplateService) +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(InitStorePipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store-tasks/createdefaultshippingmethodtask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store-tasks/createdefaultshippingmethodtask.md new file mode 100644 index 00000000000..d01925a3938 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store-tasks/createdefaultshippingmethodtask.md @@ -0,0 +1,37 @@ +--- +title: CreateDefaultShippingMethodTask +description: API reference for CreateDefaultShippingMethodTask in Umbraco Commerce +--- +## CreateDefaultShippingMethodTask + +```csharp +public class CreateDefaultShippingMethodTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Store.Tasks](README.md) + +### Constructors + +#### CreateDefaultShippingMethodTask + +```csharp +public CreateDefaultShippingMethodTask(IShippingMethodService shippingMethodService) +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(InitStorePipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store-tasks/createdefaulttaxclasstask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store-tasks/createdefaulttaxclasstask.md new file mode 100644 index 00000000000..9b8ab7d6246 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store-tasks/createdefaulttaxclasstask.md @@ -0,0 +1,36 @@ +--- +title: CreateDefaultTaxClassTask +description: API reference for CreateDefaultTaxClassTask in Umbraco Commerce +--- +## CreateDefaultTaxClassTask + +```csharp +public class CreateDefaultTaxClassTask : PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Store.Tasks](README.md) + +### Constructors + +#### CreateDefaultTaxClassTask + +```csharp +public CreateDefaultTaxClassTask(ITaxService taxService) +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(InitStorePipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store-tasks/setdefaultcountrydefaultstask.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store-tasks/setdefaultcountrydefaultstask.md new file mode 100644 index 00000000000..5ddd6641a37 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store-tasks/setdefaultcountrydefaultstask.md @@ -0,0 +1,37 @@ +--- +title: SetDefaultCountryDefaultsTask +description: API reference for SetDefaultCountryDefaultsTask in Umbraco Commerce +--- +## SetDefaultCountryDefaultsTask + +```csharp +public class SetDefaultCountryDefaultsTask : + PipelineTaskWithTypedArgsBase +``` + +**Inheritance** + +* Class [PipelineTaskWithTypedArgsBase<!0,!1>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskwithtypedargsbase-2.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Store.Tasks](README.md) + +### Constructors + +#### SetDefaultCountryDefaultsTask + +```csharp +public SetDefaultCountryDefaultsTask(ICountryService countryService) +``` + + +### Methods + +#### Execute + +```csharp +public override PipelineResult Execute(InitStorePipelineArgs args) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store/README.md new file mode 100644 index 00000000000..d368e6d0e40 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store/README.md @@ -0,0 +1,12 @@ +--- +title: Umbraco.Commerce.Core.Pipelines.Store +description: API reference for Umbraco.Commerce.Core.Pipelines.Store in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Pipelines.Store namespace + +| Public Type | Description | +| --- | --- | +| class [InitStorePipeline](initstorepipeline.md) | | +| class [InitStorePipelineArgs](initstorepipelineargs.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store/initstorepipeline.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store/initstorepipeline.md new file mode 100644 index 00000000000..a0faf76b3cb --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store/initstorepipeline.md @@ -0,0 +1,27 @@ +--- +title: InitStorePipeline +description: API reference for InitStorePipeline in Umbraco Commerce +--- +## InitStorePipeline + +```csharp +public class InitStorePipeline : PipelineTaskCollection +``` + +**Inheritance** + +* Class [PipelineTaskCollection<!0>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelinetaskcollection-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Store](README.md) + +### Constructors + +#### InitStorePipeline + +```csharp +public InitStorePipeline(Func>> items) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store/initstorepipelineargs.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store/initstorepipelineargs.md new file mode 100644 index 00000000000..b406f7f33d6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-pipelines-store/initstorepipelineargs.md @@ -0,0 +1,72 @@ +--- +title: InitStorePipelineArgs +description: API reference for InitStorePipelineArgs in Umbraco Commerce +--- +## InitStorePipelineArgs + +```csharp +public class InitStorePipelineArgs : PipelineArgs +``` + +**Inheritance** + +* Class [PipelineArgs<!0>](../../umbraco-commerce-common/umbraco-commerce-common-pipelines/pipelineargs-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Pipelines.Store](README.md) + +### Constructors + +#### InitStorePipelineArgs + +```csharp +public InitStorePipelineArgs(IUnitOfWork uow, Store data) +``` + + +### Properties + +#### DefaultCountry + +```csharp +public Country DefaultCountry { get; } +``` + + +--- + +#### DefaultCurrency + +```csharp +public Currency DefaultCurrency { get; } +``` + + +--- + +#### DefaultPaymentMethod + +```csharp +public PaymentMethod DefaultPaymentMethod { get; } +``` + + +--- + +#### DefaultShippingMethod + +```csharp +public ShippingMethod DefaultShippingMethod { get; } +``` + + +--- + +#### Store + +```csharp +public Store Store { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-providers/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-providers/README.md new file mode 100644 index 00000000000..5a73cc5b515 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-providers/README.md @@ -0,0 +1,12 @@ +--- +title: Umbraco.Commerce.Core.Providers +description: API reference for Umbraco.Commerce.Core.Providers in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Providers namespace + +| Public Type | Description | +| --- | --- | +| interface [IRegisteredCustomerInfoProvider](iregisteredcustomerinfoprovider.md) | | +| class [RegisteredCustomerInfoProviderCollection](registeredcustomerinfoprovidercollection.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-providers/iregisteredcustomerinfoprovider.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-providers/iregisteredcustomerinfoprovider.md new file mode 100644 index 00000000000..9f2be907f7d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-providers/iregisteredcustomerinfoprovider.md @@ -0,0 +1,32 @@ +--- +title: IRegisteredCustomerInfoProvider +description: API reference for IRegisteredCustomerInfoProvider in Umbraco Commerce +--- +## IRegisteredCustomerInfoProvider + +```csharp +public interface IRegisteredCustomerInfoProvider +``` + +**Namespace** +* [Umbraco.Commerce.Core.Providers](README.md) + +### Methods + +#### GetRegisteredCustomerInfo + +```csharp +public RegisteredCustomerInfo GetRegisteredCustomerInfo(string customerReference) +``` + + +--- + +#### HasRegisteredCustomerInfo + +```csharp +public bool HasRegisteredCustomerInfo(string customerReference) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-providers/registeredcustomerinfoprovidercollection.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-providers/registeredcustomerinfoprovidercollection.md new file mode 100644 index 00000000000..5fe16bf355a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-providers/registeredcustomerinfoprovidercollection.md @@ -0,0 +1,29 @@ +--- +title: RegisteredCustomerInfoProviderCollection +description: API reference for RegisteredCustomerInfoProviderCollection in Umbraco Commerce +--- +## RegisteredCustomerInfoProviderCollection + +```csharp +public class RegisteredCustomerInfoProviderCollection : + ComposedCollection +``` + +**Inheritance** + +* Class [ComposedCollection<!0>](../../umbraco-commerce-common/umbraco-commerce-common-composing/composedcollection-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Providers](README.md) + +### Constructors + +#### RegisteredCustomerInfoProviderCollection + +```csharp +public RegisteredCustomerInfoProviderCollection( + Func> items) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-security/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-security/README.md new file mode 100644 index 00000000000..74fa8e1f9c2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-security/README.md @@ -0,0 +1,13 @@ +--- +title: Umbraco.Commerce.Core.Security +description: API reference for Umbraco.Commerce.Core.Security in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Security namespace + +| Public Type | Description | +| --- | --- | +| interface [IMembershipHelper](imembershiphelper.md) | | +| interface [IUserHelper](iuserhelper.md) | | +| class [UmbracoCommerceSecurityContext](umbracocommercesecuritycontext.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-security/imembershiphelper.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-security/imembershiphelper.md new file mode 100644 index 00000000000..1e95c1bb495 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-security/imembershiphelper.md @@ -0,0 +1,23 @@ +--- +title: IMembershipHelper +description: API reference for IMembershipHelper in Umbraco Commerce +--- +## IMembershipHelper + +```csharp +public interface IMembershipHelper +``` + +**Namespace** +* [Umbraco.Commerce.Core.Security](README.md) + +### Methods + +#### GetCurrentMemberId + +```csharp +public string GetCurrentMemberId() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-security/iuserhelper.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-security/iuserhelper.md new file mode 100644 index 00000000000..98cdcedcb0e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-security/iuserhelper.md @@ -0,0 +1,32 @@ +--- +title: IUserHelper +description: API reference for IUserHelper in Umbraco Commerce +--- +## IUserHelper + +```csharp +public interface IUserHelper +``` + +**Namespace** +* [Umbraco.Commerce.Core.Security](README.md) + +### Methods + +#### GetCurrentUserId + +```csharp +public int GetCurrentUserId() +``` + + +--- + +#### GetUserName + +```csharp +public string GetUserName(int id) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-security/umbracocommercesecuritycontext.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-security/umbracocommercesecuritycontext.md new file mode 100644 index 00000000000..d7ee1f5a785 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-security/umbracocommercesecuritycontext.md @@ -0,0 +1,34 @@ +--- +title: UmbracoCommerceSecurityContext +description: API reference for UmbracoCommerceSecurityContext in Umbraco Commerce +--- +## UmbracoCommerceSecurityContext + +```csharp +public class UmbracoCommerceSecurityContext +``` + +**Namespace** +* [Umbraco.Commerce.Core.Security](README.md) + +### Constructors + +#### UmbracoCommerceSecurityContext + +```csharp +public UmbracoCommerceSecurityContext(Lazy hashProvider) +``` + + +### Properties + +#### HashProvider + +Gets the IHashProvider + +```csharp +public IHashProvider HashProvider { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/README.md new file mode 100644 index 00000000000..858c4a3d290 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/README.md @@ -0,0 +1,68 @@ +--- +title: Umbraco.Commerce.Core.Services +description: API reference for Umbraco.Commerce.Core.Services in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Services namespace + +| Public Type | Description | +| --- | --- | +| class [ActivityLogService](activitylogservice.md) | | +| class [AnalyticsService](analyticsservice.md) | | +| class [CountryService](countryservice.md) | | +| class [CurrencyService](currencyservice.md) | | +| class [DiscountService](discountservice.md) | | +| class [EmailTemplateService](emailtemplateservice.md) | | +| class [EntityService](entityservice.md) | | +| class [ExportTemplateService](exporttemplateservice.md) | | +| class [GiftCardService](giftcardservice.md) | | +| interface [IActivityLogService](iactivitylogservice.md) | | +| interface [IAnalyticsService](ianalyticsservice.md) | | +| interface [ICachedEntityService<TEntityType>](icachedentityservice-1.md) | Defines a service that supports cached entities | +| interface [ICountryService](icountryservice.md) | Defines the Country service | +| interface [ICurrencyExchangeRateService](icurrencyexchangerateservice.md) | | +| interface [ICurrencyService](icurrencyservice.md) | Defines the Currency service | +| interface [IDiscountService](idiscountservice.md) | Defines the Discount service | +| interface [IEmailTemplateService](iemailtemplateservice.md) | Defines the Email Template service | +| interface [IEntityService](ientityservice.md) | | +| interface [IExportTemplateService](iexporttemplateservice.md) | Defines the Export Template service | +| interface [IGiftCardService](igiftcardservice.md) | | +| interface [IOrderFinderService](iorderfinderservice.md) | | +| interface [IOrderService](iorderservice.md) | Defines the Order service | +| interface [IOrderStatusService](iorderstatusservice.md) | Defines the Order Status service | +| interface [IPaymentMethodService](ipaymentmethodservice.md) | Defines the Payment Method service | +| interface [IPaymentProviderService](ipaymentproviderservice.md) | | +| interface [IPaymentService](ipaymentservice.md) | | +| interface [IPriceFreezerService](ipricefreezerservice.md) | Defines the Price Freezer service | +| interface [IPrintTemplateService](iprinttemplateservice.md) | Defines the Print Template service | +| interface [IProductAttributeService](iproductattributeservice.md) | Defines the Order Status service | +| interface [IProductPriceFreezerService](iproductpricefreezerservice.md) | Defines the Product Price Freezer service | +| interface [IProductService](iproductservice.md) | Defines the Product service | +| interface [IRegisteredCustomerInfoService](iregisteredcustomerinfoservice.md) | | +| interface [IService](iservice.md) | Marker interface for services | +| interface [IShippingMethodService](ishippingmethodservice.md) | Defines the Shipping Method service | +| interface [IStockService](istockservice.md) | | +| interface [IStoreAnalyticsService](istoreanalyticsservice.md) | | +| interface [IStoreService](istoreservice.md) | Define the Store service | +| interface [ITagService](itagservice.md) | | +| interface [ITaxService](itaxservice.md) | Defines the Tax service | +| interface [ITranslationService](itranslationservice.md) | Defines the Translation service | +| class [OrderService](orderservice.md) | | +| class [OrderStatusService](orderstatusservice.md) | | +| class [PaymentMethodService](paymentmethodservice.md) | | +| class [PaymentProviderService](paymentproviderservice.md) | | +| class [PaymentService](paymentservice.md) | | +| class [PriceFreezerService](pricefreezerservice.md) | | +| class [PrintTemplateService](printtemplateservice.md) | | +| class [ProductAttributeService](productattributeservice.md) | | +| class [ProductPriceFreezerService](productpricefreezerservice.md) | | +| class [ProductService](productservice.md) | | +| class [RegisteredCustomerInfoService](registeredcustomerinfoservice.md) | | +| abstract class [ServiceBase<TSelf>](servicebase-1.md) | | +| class [ShippingMethodService](shippingmethodservice.md) | | +| class [StoreService](storeservice.md) | | +| class [TagService](tagservice.md) | | +| class [TaxService](taxservice.md) | | +| class [UmbracoCommerceServiceContext](umbracocommerceservicecontext.md) | A central service context for easy access to all of Umbraco Commerce's services | +| abstract class [UmbracoCommerceStockServiceBase<TSelf>](umbracocommercestockservicebase-1.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/activitylogservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/activitylogservice.md new file mode 100644 index 00000000000..9ea35e62cc2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/activitylogservice.md @@ -0,0 +1,85 @@ +--- +title: ActivityLogService +description: API reference for ActivityLogService in Umbraco Commerce +--- +## ActivityLogService + +```csharp +public class ActivityLogService : IActivityLogService +``` + +**Inheritance** + +* interface [IActivityLogService](iactivitylogservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Constructors + +#### ActivityLogService + +```csharp +public ActivityLogService(IRepositoryFactory repositoryFactory, IUnitOfWorkProvider uowProvider, + ILogger logger) +``` + + +### Methods + +#### GetActivityLogs + +```csharp +public PagedResult GetActivityLogs(Guid storeId, long currentPage, + long itemsPerPage) +``` + + +--- + +#### GetActivityLogsByEntity + +```csharp +public PagedResult GetActivityLogsByEntity(Guid entityId, string entityType, + long currentPage, long itemsPerPage) +``` + + +--- + +#### LogActivity (1 of 4) + +```csharp +public void LogActivity(Guid storeId, Guid entityId, string entityType, string entitySummary, + string eventType, string eventSummary) +``` + +--- + +#### LogActivity (2 of 4) + +```csharp +public void LogActivity(Guid storeId, Guid entityId, string entityType, string entitySummary, + string eventType, string eventSummary, int userId) +``` + +--- + +#### LogActivity (3 of 4) + +```csharp +public void LogActivity(Guid storeId, Guid entityId, string entityType, string entitySummary, + string eventType, string eventSummary, DateTime eventDateUtc) +``` + +--- + +#### LogActivity (4 of 4) + +```csharp +public void LogActivity(Guid storeId, Guid entityId, string entityType, string entitySummary, + string eventType, string eventSummary, DateTime eventDateUtc, int userId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/analyticsservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/analyticsservice.md new file mode 100644 index 00000000000..d55d132d128 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/analyticsservice.md @@ -0,0 +1,90 @@ +--- +title: AnalyticsService +description: API reference for AnalyticsService in Umbraco Commerce +--- +## AnalyticsService + +```csharp +public class AnalyticsService : ServiceBase, IAnalyticsService +``` + +**Inheritance** + +* Class [ServiceBase<TSelf>](servicebase-1.md) +* interface [IAnalyticsService](ianalyticsservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Constructors + +#### AnalyticsService + +```csharp +public AnalyticsService(IRepositoryFactory repositoryFactory, IUnitOfWorkProvider uowProvider, + ILogger logger, ICacheAccessor cacheAccessor, IStoreService storeService, + IProductService productService, ICurrencyService currencyService) +``` + + +### Methods + +#### GetAverageOrderValueReport + +```csharp +public DateReportData GetAverageOrderValueReport(Guid storeId, DateTime fromUtc, + DateTime toUtc, DateTime? compareFromUtc, DateTime? compareToUtc, int localTimezoneOffset) +``` + + +--- + +#### GetCartConversionRatesReport + +```csharp +public CartConversionRatesReportData GetCartConversionRatesReport(Guid storeId, DateTime fromUtc, + DateTime toUtc, DateTime? compareFromUtc, DateTime? compareToUtc, int localTimezoneOffset) +``` + + +--- + +#### GetRepeatCustomerRatesReport + +```csharp +public RepeatCustomerRatesReportData GetRepeatCustomerRatesReport(Guid storeId, DateTime fromUtc, + DateTime toUtc, DateTime? compareFromUtc, DateTime? compareToUtc, int localTimezoneOffset) +``` + + +--- + +#### GetTopSellingProducts + +```csharp +public ProductSalesReportData GetTopSellingProducts(Guid storeId, DateTime fromUtc, DateTime toUtc, + DateTime? compareFromUtc, DateTime? compareToUtc, int localTimezoneOffset) +``` + + +--- + +#### GetTotalOrdersReport + +```csharp +public DateReportData GetTotalOrdersReport(Guid storeId, DateTime fromUtc, DateTime toUtc, + DateTime? compareFromUtc, DateTime? compareToUtc, int localTimezoneOffset) +``` + + +--- + +#### GetTotalRevenueReport + +```csharp +public DateReportData GetTotalRevenueReport(Guid storeId, DateTime fromUtc, DateTime toUtc, + DateTime? compareFromUtc, DateTime? compareToUtc, int localTimezoneOffset) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/countryservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/countryservice.md new file mode 100644 index 00000000000..695254ba102 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/countryservice.md @@ -0,0 +1,213 @@ +--- +title: CountryService +description: API reference for CountryService in Umbraco Commerce +--- +## CountryService + +```csharp +public class CountryService : ServiceBase, ICachedEntityService, + ICachedEntityService, ICountryService +``` + +**Inheritance** + +* Class [ServiceBase<TSelf>](servicebase-1.md) +* interface [ICachedEntityService<TEntityType>](icachedentityservice-1.md) +* interface [ICountryService](icountryservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Constructors + +#### CountryService + +```csharp +public CountryService(IRepositoryFactory repositoryFactory, IUnitOfWorkProvider uowProvider, + ILogger logger, ICacheAccessor cacheAccessor) +``` + + +### Methods + +#### CountryExists + +```csharp +public bool CountryExists(Guid storeId, string code) +``` + + +--- + +#### CreateAllCountryRegions + +```csharp +public void CreateAllCountryRegions(Guid storeId, Guid defaultCurrencyId) +``` + + +--- + +#### DeleteCountry (1 of 2) + +```csharp +public void DeleteCountry(Guid id) +``` + +--- + +#### DeleteCountry (2 of 2) + +```csharp +public void DeleteCountry(Country entity) +``` + + +--- + +#### DeleteRegion (1 of 2) + +```csharp +public void DeleteRegion(Guid id) +``` + +--- + +#### DeleteRegion (2 of 2) + +```csharp +public void DeleteRegion(Region entity) +``` + + +--- + +#### GetCountries (1 of 2) + +```csharp +public IEnumerable GetCountries(Guid storeId) +``` + +--- + +#### GetCountries (2 of 2) + +```csharp +public IEnumerable GetCountries(Guid[] ids) +``` + + +--- + +#### GetCountry (1 of 2) + +```csharp +public CountryReadOnly GetCountry(Guid id) +``` + +--- + +#### GetCountry (2 of 2) + +```csharp +public CountryReadOnly GetCountry(Guid storeId, string code) +``` + + +--- + +#### GetIso3166CountryRegions + +```csharp +public IEnumerable GetIso3166CountryRegions() +``` + + +--- + +#### GetRegion (1 of 2) + +```csharp +public RegionReadOnly GetRegion(Guid id) +``` + +--- + +#### GetRegion (2 of 2) + +```csharp +public RegionReadOnly GetRegion(Guid storeId, Guid countryId, string code) +``` + + +--- + +#### GetRegions (1 of 3) + +```csharp +public IEnumerable GetRegions(Guid storeId) +``` + +--- + +#### GetRegions (2 of 3) + +```csharp +public IEnumerable GetRegions(Guid[] ids) +``` + +--- + +#### GetRegions (3 of 3) + +```csharp +public IEnumerable GetRegions(Guid storeId, Guid countryId) +``` + + +--- + +#### RegionExists + +```csharp +public bool RegionExists(Guid storeId, Guid countryId, string code) +``` + + +--- + +#### SaveCountry + +```csharp +public void SaveCountry(Country entity) +``` + + +--- + +#### SaveRegion + +```csharp +public void SaveRegion(Region entity) +``` + + +--- + +#### SortCountries + +```csharp +public void SortCountries(Guid[] sortedIds) +``` + + +--- + +#### SortRegions + +```csharp +public void SortRegions(Guid[] sortedIds) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/currencyservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/currencyservice.md new file mode 100644 index 00000000000..284e5fb1d91 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/currencyservice.md @@ -0,0 +1,118 @@ +--- +title: CurrencyService +description: API reference for CurrencyService in Umbraco Commerce +--- +## CurrencyService + +```csharp +public class CurrencyService : ServiceBase, + ICachedEntityService, ICurrencyService +``` + +**Inheritance** + +* Class [ServiceBase<TSelf>](servicebase-1.md) +* interface [ICachedEntityService<TEntityType>](icachedentityservice-1.md) +* interface [ICurrencyService](icurrencyservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Constructors + +#### CurrencyService + +```csharp +public CurrencyService(IRepositoryFactory repositoryFactory, IUnitOfWorkProvider uowProvider, + ILogger logger, ICacheAccessor cacheAccessor) +``` + + +### Methods + +#### CurrencyExists + +```csharp +public bool CurrencyExists(Guid storeId, string code) +``` + + +--- + +#### DeleteCurrency (1 of 2) + +```csharp +public void DeleteCurrency(Guid id) +``` + +--- + +#### DeleteCurrency (2 of 2) + +```csharp +public void DeleteCurrency(Currency entity) +``` + + +--- + +#### GetCurrencies (1 of 2) + +```csharp +public IEnumerable GetCurrencies(Guid storeId) +``` + +--- + +#### GetCurrencies (2 of 2) + +```csharp +public IEnumerable GetCurrencies(Guid[] ids) +``` + + +--- + +#### GetCurrenciesAllowedIn + +```csharp +public IEnumerable GetCurrenciesAllowedIn(Guid countryId) +``` + + +--- + +#### GetCurrency (1 of 2) + +```csharp +public CurrencyReadOnly GetCurrency(Guid id) +``` + +--- + +#### GetCurrency (2 of 2) + +```csharp +public CurrencyReadOnly GetCurrency(Guid storeId, string code) +``` + + +--- + +#### SaveCurrency + +```csharp +public void SaveCurrency(Currency entity) +``` + + +--- + +#### SortCurrencies + +```csharp +public void SortCurrencies(Guid[] sortedIds) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/discountservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/discountservice.md new file mode 100644 index 00000000000..d650411d99d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/discountservice.md @@ -0,0 +1,183 @@ +--- +title: DiscountService +description: API reference for DiscountService in Umbraco Commerce +--- +## DiscountService + +```csharp +public class DiscountService : ServiceBase, + ICachedEntityService, IDiscountService +``` + +**Inheritance** + +* Class [ServiceBase<TSelf>](servicebase-1.md) +* interface [ICachedEntityService<TEntityType>](icachedentityservice-1.md) +* interface [IDiscountService](idiscountservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Constructors + +#### DiscountService + +```csharp +public DiscountService(IRepositoryFactory repositoryFactory, IUnitOfWorkProvider uowProvider, + ILogger logger, ICacheAccessor cacheAccessor, + DiscountRuleProviderCollection discountRuleProviders, + DiscountRewardProviderCollection discountRewardProviders) +``` + + +### Methods + +#### DeleteDiscount (1 of 2) + +```csharp +public void DeleteDiscount(Guid id) +``` + +--- + +#### DeleteDiscount (2 of 2) + +```csharp +public void DeleteDiscount(Discount entity) +``` + + +--- + +#### DiscountCodeExists + +```csharp +public bool DiscountCodeExists(Guid storeId, string code) +``` + + +--- + +#### DiscountExists + +```csharp +public bool DiscountExists(Guid storeId, string alias) +``` + + +--- + +#### GetActiveDiscounts + +```csharp +public IEnumerable GetActiveDiscounts(Guid storeId) +``` + + +--- + +#### GetDiscount (1 of 2) + +```csharp +public DiscountReadOnly GetDiscount(Guid id) +``` + +--- + +#### GetDiscount (2 of 2) + +```csharp +public DiscountReadOnly GetDiscount(Guid storeId, string alias) +``` + + +--- + +#### GetDiscountByCode + +```csharp +public DiscountReadOnly GetDiscountByCode(Guid storeId, string code) +``` + + +--- + +#### GetDiscountRewardProviderDefinitions + +```csharp +public IEnumerable GetDiscountRewardProviderDefinitions() +``` + + +--- + +#### GetDiscountRewardProviderScaffold + +```csharp +public DiscountRewardProviderScaffold GetDiscountRewardProviderScaffold(string alias) +``` + + +--- + +#### GetDiscountRuleProviderDefinitions + +```csharp +public IEnumerable GetDiscountRuleProviderDefinitions() +``` + + +--- + +#### GetDiscountRuleProviderScaffold + +```csharp +public DiscountRuleProviderScaffold GetDiscountRuleProviderScaffold(string alias) +``` + + +--- + +#### GetDiscounts (1 of 2) + +```csharp +public IEnumerable GetDiscounts(Guid storeId) +``` + +--- + +#### GetDiscounts (2 of 2) + +```csharp +public IEnumerable GetDiscounts(Guid[] ids) +``` + + +--- + +#### SaveDiscount + +```csharp +public void SaveDiscount(Discount entity) +``` + + +--- + +#### SortDiscounts + +```csharp +public void SortDiscounts(Guid[] sortedIds) +``` + + +--- + +#### ValidateDiscountCode + +```csharp +public bool ValidateDiscountCode(Guid storeId, string code) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/emailtemplateservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/emailtemplateservice.md new file mode 100644 index 00000000000..8185e06c357 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/emailtemplateservice.md @@ -0,0 +1,128 @@ +--- +title: EmailTemplateService +description: API reference for EmailTemplateService in Umbraco Commerce +--- +## EmailTemplateService + +```csharp +public class EmailTemplateService : ServiceBase, + ICachedEntityService, IEmailTemplateService +``` + +**Inheritance** + +* Class [ServiceBase<TSelf>](servicebase-1.md) +* interface [ICachedEntityService<TEntityType>](icachedentityservice-1.md) +* interface [IEmailTemplateService](iemailtemplateservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Constructors + +#### EmailTemplateService + +```csharp +public EmailTemplateService(IRepositoryFactory repositoryFactory, IUnitOfWorkProvider uowProvider, + ILogger logger, ICacheAccessor cacheAccessor) +``` + + +### Methods + +#### DeleteEmailTemplate (1 of 2) + +```csharp +public void DeleteEmailTemplate(Guid id) +``` + +--- + +#### DeleteEmailTemplate (2 of 2) + +```csharp +public void DeleteEmailTemplate(EmailTemplate entity) +``` + + +--- + +#### EmailTemplateExists + +```csharp +public bool EmailTemplateExists(Guid storeId, string alias) +``` + + +--- + +#### GetEmailTemplate (1 of 2) + +```csharp +public EmailTemplateReadOnly GetEmailTemplate(Guid id) +``` + +--- + +#### GetEmailTemplate (2 of 2) + +```csharp +public EmailTemplateReadOnly GetEmailTemplate(Guid storeId, string alias) +``` + + +--- + +#### GetEmailTemplates (1 of 2) + +```csharp +public IEnumerable GetEmailTemplates(Guid storeId) +``` + +--- + +#### GetEmailTemplates (2 of 2) + +```csharp +public IEnumerable GetEmailTemplates(Guid[] ids) +``` + + +--- + +#### SaveEmailTemplate + +```csharp +public void SaveEmailTemplate(EmailTemplate entity) +``` + + +--- + +#### SendEmail + +```csharp +public bool SendEmail(EmailTemplateReadOnly emailTemplate, OrderReadOnly order) +``` + + +--- + +#### SendEmail<TModel> + +```csharp +public bool SendEmail(EmailTemplateReadOnly emailTemplate, TModel model, + string toEmailAddress, string languageIsoCode) +``` + + +--- + +#### SortEmailTemplates + +```csharp +public void SortEmailTemplates(Guid[] sortedIds) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/entityservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/entityservice.md new file mode 100644 index 00000000000..02aeb0cd4d3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/entityservice.md @@ -0,0 +1,87 @@ +--- +title: EntityService +description: API reference for EntityService in Umbraco Commerce +--- +## EntityService + +```csharp +public class EntityService : IEntityService +``` + +**Inheritance** + +* interface [IEntityService](ientityservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Constructors + +#### EntityService + +```csharp +public EntityService(IStoreService storeService, IOrderStatusService orderStatusService, + IShippingMethodService shippingMethodService, IPaymentMethodService paymentMethodService, + ICountryService countryService, ICurrencyService currencyService, ITaxService taxService, + IEmailTemplateService emailTemplateService, IPrintTemplateService printTemplateService, + IExportTemplateService exportTemplateService, IDiscountService discountService, + IGiftCardService giftCardService, IProductAttributeService productAttributeService, + IOrderService orderService) +``` + + +### Methods + +#### DeleteEntity + +```csharp +public void DeleteEntity(string entityType, Guid entityId) +``` + + +--- + +#### GetEntities (1 of 2) + +```csharp +public IEnumerable GetEntities(string entityType, Guid? storeId = default(Guid?), + Guid? parentId = default(Guid?)) +``` + +--- + +#### GetEntities (2 of 2) + +```csharp +public IEnumerable GetEntities(string entityType, Guid[] entityIds) +``` + + +--- + +#### GetEntity + +```csharp +public EntityBase GetEntity(string entityType, Guid entityId) +``` + + +--- + +#### GetEntityStoreId + +```csharp +public Guid GetEntityStoreId(string entityType, Guid entityId) +``` + + +--- + +#### SortEntities + +```csharp +public void SortEntities(string entityType, Guid[] entityIds) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/exporttemplateservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/exporttemplateservice.md new file mode 100644 index 00000000000..ae657135dda --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/exporttemplateservice.md @@ -0,0 +1,109 @@ +--- +title: ExportTemplateService +description: API reference for ExportTemplateService in Umbraco Commerce +--- +## ExportTemplateService + +```csharp +public class ExportTemplateService : ServiceBase, + ICachedEntityService, IExportTemplateService +``` + +**Inheritance** + +* Class [ServiceBase<TSelf>](servicebase-1.md) +* interface [ICachedEntityService<TEntityType>](icachedentityservice-1.md) +* interface [IExportTemplateService](iexporttemplateservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Constructors + +#### ExportTemplateService + +```csharp +public ExportTemplateService(IRepositoryFactory repositoryFactory, IUnitOfWorkProvider uowProvider, + ILogger logger, ICacheAccessor cacheAccessor) +``` + + +### Methods + +#### DeleteExportTemplate (1 of 2) + +```csharp +public void DeleteExportTemplate(Guid id) +``` + +--- + +#### DeleteExportTemplate (2 of 2) + +```csharp +public void DeleteExportTemplate(ExportTemplate entity) +``` + + +--- + +#### ExportTemplateExists + +```csharp +public bool ExportTemplateExists(Guid storeId, string alias) +``` + + +--- + +#### GetExportTemplate (1 of 2) + +```csharp +public ExportTemplateReadOnly GetExportTemplate(Guid id) +``` + +--- + +#### GetExportTemplate (2 of 2) + +```csharp +public ExportTemplateReadOnly GetExportTemplate(Guid storeId, string alias) +``` + + +--- + +#### GetExportTemplates (1 of 2) + +```csharp +public IEnumerable GetExportTemplates(Guid storeId) +``` + +--- + +#### GetExportTemplates (2 of 2) + +```csharp +public IEnumerable GetExportTemplates(Guid[] ids) +``` + + +--- + +#### SaveExportTemplate + +```csharp +public void SaveExportTemplate(ExportTemplate entity) +``` + + +--- + +#### SortExportTemplates + +```csharp +public void SortExportTemplates(Guid[] sortedIds) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/giftcardservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/giftcardservice.md new file mode 100644 index 00000000000..2c47384f682 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/giftcardservice.md @@ -0,0 +1,179 @@ +--- +title: GiftCardService +description: API reference for GiftCardService in Umbraco Commerce +--- +## GiftCardService + +```csharp +public class GiftCardService : ServiceBase, + ICachedEntityService, IGiftCardService +``` + +**Inheritance** + +* Class [ServiceBase<TSelf>](servicebase-1.md) +* interface [ICachedEntityService<TEntityType>](icachedentityservice-1.md) +* interface [IGiftCardService](igiftcardservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Constructors + +#### GiftCardService + +```csharp +public GiftCardService(IRepositoryFactory repositoryFactory, IUnitOfWorkProvider uowProvider, + ILogger logger, ICacheAccessor cacheAccessor, + IGiftCardCodeGenerator giftCardCodeGenerator, + IGiftCardQuerySpecificationFactory giftCardQuerySpecificationFactory, + IGiftCardSortSpecificationFactory giftCardSortSpecificationFactory) +``` + + +### Methods + +#### DeleteGiftCard (1 of 2) + +```csharp +public void DeleteGiftCard(Guid id) +``` + +--- + +#### DeleteGiftCard (2 of 2) + +```csharp +public void DeleteGiftCard(GiftCard entity) +``` + + +--- + +#### GenerateGiftCardCode + +```csharp +public string GenerateGiftCardCode(Guid storeId) +``` + + +--- + +#### GetActiveGiftCards + +```csharp +public IEnumerable GetActiveGiftCards(Guid storeId) +``` + + +--- + +#### GetGiftCard (1 of 2) + +```csharp +public GiftCardReadOnly GetGiftCard(Guid id) +``` + +--- + +#### GetGiftCard (2 of 2) + +```csharp +public GiftCardReadOnly GetGiftCard(Guid storeId, string code) +``` + + +--- + +#### GetGiftCards (1 of 2) + +```csharp +public IEnumerable GetGiftCards(Guid storeId) +``` + +--- + +#### GetGiftCards (2 of 2) + +```csharp +public IEnumerable GetGiftCards(Guid[] ids) +``` + + +--- + +#### GetGiftCardsByOrder + +```csharp +public IEnumerable GetGiftCardsByOrder(Guid orderId) +``` + + +--- + +#### GiftCardExists + +```csharp +public bool GiftCardExists(Guid storeId, string code) +``` + + +--- + +#### SaveGiftCard + +```csharp +public void SaveGiftCard(GiftCard entity) +``` + + +--- + +#### SearchGiftCards (1 of 4) + +```csharp +public PagedResult SearchGiftCards( + Func> query, + long currentPage = 1, long itemsPerPage = 50) +``` + +--- + +#### SearchGiftCards (2 of 4) + +```csharp +public PagedResult SearchGiftCards( + Func> query, + Func> sort, + long currentPage = 1, long itemsPerPage = 50) +``` + +--- + +#### SearchGiftCards (3 of 4) + +```csharp +public PagedResult SearchGiftCards(IQuerySpecification query, + long currentPage = 1, long itemsPerPage = 50) +``` + +--- + +#### SearchGiftCards (4 of 4) + +```csharp +public PagedResult SearchGiftCards(IQuerySpecification query, + ISortSpecification sort, long currentPage = 1, long itemsPerPage = 50) +``` + + +--- + +#### ValidateGiftCard + +```csharp +public bool ValidateGiftCard(Guid storeId, string code, Guid currencyId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/iactivitylogservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/iactivitylogservice.md new file mode 100644 index 00000000000..3f12f9b055f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/iactivitylogservice.md @@ -0,0 +1,71 @@ +--- +title: IActivityLogService +description: API reference for IActivityLogService in Umbraco Commerce +--- +## IActivityLogService + +```csharp +public interface IActivityLogService +``` + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Methods + +#### GetActivityLogs + +```csharp +public PagedResult GetActivityLogs(Guid storeId, long curentPage, + long itemsPerPage) +``` + + +--- + +#### GetActivityLogsByEntity + +```csharp +public PagedResult GetActivityLogsByEntity(Guid entityId, string entityType, + long curentPage, long itemsPerPage) +``` + + +--- + +#### LogActivity (1 of 4) + +```csharp +public void LogActivity(Guid storeId, Guid entityId, string entityType, string entitySummary, + string eventType, string eventSummary) +``` + +--- + +#### LogActivity (2 of 4) + +```csharp +public void LogActivity(Guid storeId, Guid entityId, string entityType, string entitySummary, + string eventType, string eventSummary, int userId) +``` + +--- + +#### LogActivity (3 of 4) + +```csharp +public void LogActivity(Guid storeId, Guid entityId, string entityType, string entitySummary, + string eventType, string eventSummary, DateTime eventDateUtc) +``` + +--- + +#### LogActivity (4 of 4) + +```csharp +public void LogActivity(Guid storeId, Guid entityId, string entityType, string entitySummary, + string eventType, string eventSummary, DateTime eventDateUtc, int userId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/ianalyticsservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/ianalyticsservice.md new file mode 100644 index 00000000000..0b6d181283c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/ianalyticsservice.md @@ -0,0 +1,78 @@ +--- +title: IAnalyticsService +description: API reference for IAnalyticsService in Umbraco Commerce +--- +## IAnalyticsService + +```csharp +public interface IAnalyticsService : IService +``` + +**Inheritance** + +* interface [IService](iservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Methods + +#### GetAverageOrderValueReport + +```csharp +public DateReportData GetAverageOrderValueReport(Guid storeId, DateTime from, DateTime to, + DateTime? compareFrom, DateTime? compareTo, int localTimezoneOffset) +``` + + +--- + +#### GetCartConversionRatesReport + +```csharp +public CartConversionRatesReportData GetCartConversionRatesReport(Guid storeId, DateTime from, + DateTime to, DateTime? compareFrom, DateTime? compareTo, int localTimezoneOffset) +``` + + +--- + +#### GetRepeatCustomerRatesReport + +```csharp +public RepeatCustomerRatesReportData GetRepeatCustomerRatesReport(Guid storeId, DateTime from, + DateTime to, DateTime? compareFrom, DateTime? compareTo, int localTimezoneOffset) +``` + + +--- + +#### GetTopSellingProducts + +```csharp +public ProductSalesReportData GetTopSellingProducts(Guid storeId, DateTime from, DateTime to, + DateTime? compareFrom, DateTime? compareTo, int localTimezoneOffset) +``` + + +--- + +#### GetTotalOrdersReport + +```csharp +public DateReportData GetTotalOrdersReport(Guid storeId, DateTime from, DateTime to, + DateTime? compareFrom, DateTime? compareTo, int localTimezoneOffset) +``` + + +--- + +#### GetTotalRevenueReport + +```csharp +public DateReportData GetTotalRevenueReport(Guid storeId, DateTime from, DateTime to, + DateTime? compareFrom, DateTime? compareTo, int localTimezoneOffset) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/icachedentityservice-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/icachedentityservice-1.md new file mode 100644 index 00000000000..5f6d3ce6070 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/icachedentityservice-1.md @@ -0,0 +1,63 @@ +--- +title: ICachedEntityService +description: API reference for ICachedEntityService in Umbraco Commerce +--- +## ICachedEntityService<TEntityType> + +Defines a service that supports cached entities + +```csharp +public interface ICachedEntityService + where TEntityType : EntityBase +``` + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +**Parameters** + +| Parameter | Description | +| --- | --- | +| TEntityType | The Type of the entity | + +### Methods + +#### CheckEntityCacheIntegrity + +Checks/fixes the integrity of the entity cache + +```csharp +public EntityCacheIntegrityCheckResult CheckEntityCacheIntegrity( + EntityCacheIntegrityCheckOptions options) +``` + + +--- + +#### InvalidateEntityCache + +Invalidates the entire services entity cache + +```csharp +public void InvalidateEntityCache() +``` + + +--- + +#### InvalidateEntityCache + +Invalidates the services entity cache for a given entity + +```csharp +public void InvalidateEntityCache(Guid entityId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| entityId | The ID of the entity to invalidate | + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/icountryservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/icountryservice.md new file mode 100644 index 00000000000..0825082f2ec --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/icountryservice.md @@ -0,0 +1,422 @@ +--- +title: ICountryService +description: API reference for ICountryService in Umbraco Commerce +--- +## ICountryService + +Defines the Country service + +```csharp +public interface ICountryService : ICachedEntityService, + ICachedEntityService, IService +``` + +**Inheritance** + +* interface [ICachedEntityService<TEntityType>](icachedentityservice-1.md) +* interface [IService](iservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Methods + +#### CountryExists + +Check to see if a [`CountryReadOnly`](../umbraco-commerce-core-models/countryreadonly.md) exists in the given [`Store`](../umbraco-commerce-core-models/store.md) with the given ISO Code + +```csharp +public bool CountryExists(Guid storeId, string code) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`CountryReadOnly`](../umbraco-commerce-core-models/countryreadonly.md) entity belongs to | +| code | The ISO Code of the [`CountryReadOnly`](../umbraco-commerce-core-models/countryreadonly.md) entity to check | + +**Returns** + +Returns `true` if the [`CountryReadOnly`](../umbraco-commerce-core-models/countryreadonly.md) exists, otherwise returns `false`. + + +--- + +#### CreateAllCountryRegions + +Creates all [`CountryReadOnly`](../umbraco-commerce-core-models/countryreadonly.md) and [`RegionReadOnly`](../umbraco-commerce-core-models/regionreadonly.md) entities for a store based on IS03166 country list + +```csharp +public void CreateAllCountryRegions(Guid storeId, Guid defaultCurrencyId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`RegionReadOnly`](../umbraco-commerce-core-models/regionreadonly.md) entity belongs to | +| defaultCurrencyId | The ID of the [`CurrencyReadOnly`](../umbraco-commerce-core-models/currencyreadonly.md) to use as the default currency | + + +--- + +#### DeleteCountry (1 of 2) + +Deletes a [`Country`](../umbraco-commerce-core-models/country.md) + +```csharp +public void DeleteCountry(Guid id) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| id | The ID of the [`Country`](../umbraco-commerce-core-models/country.md) to delete | + +--- + +#### DeleteCountry (2 of 2) + +Deletes a [`Country`](../umbraco-commerce-core-models/country.md) + +```csharp +public void DeleteCountry(Country entity) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| entity | The [`Country`](../umbraco-commerce-core-models/country.md) to delete | + + +--- + +#### DeleteRegion (1 of 2) + +Deletes a [`Region`](../umbraco-commerce-core-models/region.md) + +```csharp +public void DeleteRegion(Guid id) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| id | The ID of the [`Region`](../umbraco-commerce-core-models/region.md) to delete | + +--- + +#### DeleteRegion (2 of 2) + +Deletes a [`Region`](../umbraco-commerce-core-models/region.md) + +```csharp +public void DeleteRegion(Region entity) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| entity | The [`Region`](../umbraco-commerce-core-models/region.md) to delete | + + +--- + +#### GetCountries (1 of 2) + +Get a list of all [`CountryReadOnly`](../umbraco-commerce-core-models/countryreadonly.md) entities from the given [`Store`](../umbraco-commerce-core-models/store.md) + +```csharp +public IEnumerable GetCountries(Guid storeId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`CountryReadOnly`](../umbraco-commerce-core-models/countryreadonly.md) entities belong to | + +**Returns** + +A list of [`CountryReadOnly`](../umbraco-commerce-core-models/countryreadonly.md) entities + +--- + +#### GetCountries (2 of 2) + +Get a list of [`CountryReadOnly`](../umbraco-commerce-core-models/countryreadonly.md) entities with the given IDs + +```csharp +public IEnumerable GetCountries(Guid[] ids) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| ids | The IDs of the [`CountryReadOnly`](../umbraco-commerce-core-models/countryreadonly.md) entities to fetch | + +**Returns** + +A list of [`CountryReadOnly`](../umbraco-commerce-core-models/countryreadonly.md) entities + + +--- + +#### GetCountry (1 of 2) + +Get a [`CountryReadOnly`](../umbraco-commerce-core-models/countryreadonly.md) entity by ID + +```csharp +public CountryReadOnly GetCountry(Guid id) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| id | The ID of the [`CountryReadOnly`](../umbraco-commerce-core-models/countryreadonly.md) entity to fetch | + +**Returns** + +A [`CountryReadOnly`](../umbraco-commerce-core-models/countryreadonly.md) entity + +--- + +#### GetCountry (2 of 2) + +Get a [`CountryReadOnly`](../umbraco-commerce-core-models/countryreadonly.md) entity by [`Store`](../umbraco-commerce-core-models/store.md) and ISO Code + +```csharp +public CountryReadOnly GetCountry(Guid storeId, string code) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`CountryReadOnly`](../umbraco-commerce-core-models/countryreadonly.md) entity belongs to | +| code | The ISO Code of the [`CountryReadOnly`](../umbraco-commerce-core-models/countryreadonly.md) entity to fetch | + +**Returns** + +A [`CountryReadOnly`](../umbraco-commerce-core-models/countryreadonly.md) entity + + +--- + +#### GetIso3166CountryRegions + +Get a list of [`Iso3166Country`](../umbraco-commerce-core-models/iso3166country.md) entities + +```csharp +public IEnumerable GetIso3166CountryRegions() +``` + +**Returns** + +A list of [`Iso3166Country`](../umbraco-commerce-core-models/iso3166country.md) entities + + +--- + +#### GetRegion (1 of 2) + +Get a [`RegionReadOnly`](../umbraco-commerce-core-models/regionreadonly.md) entity by ID + +```csharp +public RegionReadOnly GetRegion(Guid id) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| id | The ID of the [`RegionReadOnly`](../umbraco-commerce-core-models/regionreadonly.md) entity to fetch | + +**Returns** + +A [`RegionReadOnly`](../umbraco-commerce-core-models/regionreadonly.md) entity + +--- + +#### GetRegion (2 of 2) + +Get a [`RegionReadOnly`](../umbraco-commerce-core-models/regionreadonly.md) entity by [`Store`](../umbraco-commerce-core-models/store.md) and Code + +```csharp +public RegionReadOnly GetRegion(Guid storeId, Guid countryId, string code) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`RegionReadOnly`](../umbraco-commerce-core-models/regionreadonly.md) entity belongs to | +| countryId | The ID of the [`Country`](../umbraco-commerce-core-models/country.md) the [`RegionReadOnly`](../umbraco-commerce-core-models/regionreadonly.md) entity belongs to | +| code | The Code of the [`RegionReadOnly`](../umbraco-commerce-core-models/regionreadonly.md) entity to fetch | + +**Returns** + +A [`RegionReadOnly`](../umbraco-commerce-core-models/regionreadonly.md) entity + + +--- + +#### GetRegions (1 of 3) + +Get a list of all [`RegionReadOnly`](../umbraco-commerce-core-models/regionreadonly.md) entities from the given [`Store`](../umbraco-commerce-core-models/store.md) + +```csharp +public IEnumerable GetRegions(Guid storeId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`RegionReadOnly`](../umbraco-commerce-core-models/regionreadonly.md) entities belong to | + +**Returns** + +A list of [`RegionReadOnly`](../umbraco-commerce-core-models/regionreadonly.md) entities + +--- + +#### GetRegions (2 of 3) + +Get a list of [`RegionReadOnly`](../umbraco-commerce-core-models/regionreadonly.md) entities with the given IDs + +```csharp +public IEnumerable GetRegions(Guid[] ids) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| ids | The IDs of the [`RegionReadOnly`](../umbraco-commerce-core-models/regionreadonly.md) entities to fetch | + +**Returns** + +A list of [`RegionReadOnly`](../umbraco-commerce-core-models/regionreadonly.md) entities + +--- + +#### GetRegions (3 of 3) + +Get a list of all [`RegionReadOnly`](../umbraco-commerce-core-models/regionreadonly.md) entities from the given [`Store`](../umbraco-commerce-core-models/store.md) and [`Country`](../umbraco-commerce-core-models/country.md) + +```csharp +public IEnumerable GetRegions(Guid storeId, Guid countryId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`RegionReadOnly`](../umbraco-commerce-core-models/regionreadonly.md) entities belong to | +| countryId | The ID of the [`Country`](../umbraco-commerce-core-models/country.md) the [`RegionReadOnly`](../umbraco-commerce-core-models/regionreadonly.md) entities belong to | + +**Returns** + +A list of [`RegionReadOnly`](../umbraco-commerce-core-models/regionreadonly.md) entities + + +--- + +#### RegionExists + +Check to see if a [`RegionReadOnly`](../umbraco-commerce-core-models/regionreadonly.md) exists in the given [`Store`](../umbraco-commerce-core-models/store.md) / [`CountryReadOnly`](../umbraco-commerce-core-models/countryreadonly.md) with the given Code + +```csharp +public bool RegionExists(Guid storeId, Guid countryId, string code) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`RegionReadOnly`](../umbraco-commerce-core-models/regionreadonly.md) entity belongs to | +| countryId | The ID of the [`CountryReadOnly`](../umbraco-commerce-core-models/countryreadonly.md) the [`RegionReadOnly`](../umbraco-commerce-core-models/regionreadonly.md) entity belongs to | +| code | The Code of the [`RegionReadOnly`](../umbraco-commerce-core-models/regionreadonly.md) entity to check | + +**Returns** + +Returns `true` if the [`RegionReadOnly`](../umbraco-commerce-core-models/regionreadonly.md) exists, otherwise returns `false`. + + +--- + +#### SaveCountry + +Saves a [`Country`](../umbraco-commerce-core-models/country.md) + +```csharp +public void SaveCountry(Country entity) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| entity | The [`Country`](../umbraco-commerce-core-models/country.md) to save | + + +--- + +#### SaveRegion + +Saves a [`Region`](../umbraco-commerce-core-models/region.md) + +```csharp +public void SaveRegion(Region entity) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| entity | The [`Region`](../umbraco-commerce-core-models/region.md) to save | + + +--- + +#### SortCountries + +Sorts a list of [`Country`](../umbraco-commerce-core-models/country.md) entities by ID according to the order of those IDs + +```csharp +public void SortCountries(Guid[] sortedIds) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| sortedIds | The IDs of the [`Country`](../umbraco-commerce-core-models/country.md) entities to sort, in the order by which to sort them | + + +--- + +#### SortRegions + +Sorts a list of [`Region`](../umbraco-commerce-core-models/region.md) entities by ID according to the order of those IDs + +```csharp +public void SortRegions(Guid[] sortedIds) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| sortedIds | The IDs of the [`Region`](../umbraco-commerce-core-models/region.md) entities to sort, in the order by which to sort them | + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/icurrencyexchangerateservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/icurrencyexchangerateservice.md new file mode 100644 index 00000000000..a4011ff5d3f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/icurrencyexchangerateservice.md @@ -0,0 +1,62 @@ +--- +title: ICurrencyExchangeRateService +description: API reference for ICurrencyExchangeRateService in Umbraco Commerce +--- +## ICurrencyExchangeRateService + +```csharp +public interface ICurrencyExchangeRateService +``` + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Methods + +#### GetExchangeRate + +Gets the exchange between the given currencies on the supplied date + +```csharp +public decimal GetExchangeRate(string fromCurrencyIsoCode, string toCurrencyIsoCode, DateTime date) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| fromCurrencyIsoCode | The currency ISO code to exchange from | +| toCurrencyIsoCode | The currency ISO code to exchange to | +| date | The date | + +**Returns** + +The exchange rate between the two currencies for the given date + + +--- + +#### GetExchangeRates + +Gets a list of currency exchange rates from the given currency, to the list of target currencies between two dates + +```csharp +public Dictionary> GetExchangeRates(string fromCurrencyIsoCode, + string[] toCurrencyIsoCodes, DateTime dateFrom, DateTime dateTo) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| fromCurrencyIsoCode | The currency ISO code to exchange from | +| toCurrencyIsoCodes | The currency ISO codes to exchange to | +| dateFrom | The from date | +| dateTo | The to date | + +**Returns** + +A dictionary of dictionaries where the first dictionary is keyed by the day and the second dictionary is keyed by the target currency code + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/icurrencyservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/icurrencyservice.md new file mode 100644 index 00000000000..a8941b4c407 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/icurrencyservice.md @@ -0,0 +1,214 @@ +--- +title: ICurrencyService +description: API reference for ICurrencyService in Umbraco Commerce +--- +## ICurrencyService + +Defines the Currency service + +```csharp +public interface ICurrencyService : ICachedEntityService, IService +``` + +**Inheritance** + +* interface [ICachedEntityService<TEntityType>](icachedentityservice-1.md) +* interface [IService](iservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Methods + +#### CurrencyExists + +Check to see if a [`CurrencyReadOnly`](../umbraco-commerce-core-models/currencyreadonly.md) exists in the given [`Store`](../umbraco-commerce-core-models/store.md) with the given ISO Code + +```csharp +public bool CurrencyExists(Guid storeId, string code) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`CurrencyReadOnly`](../umbraco-commerce-core-models/currencyreadonly.md) entity belongs to | +| code | The ISO Code of the [`CurrencyReadOnly`](../umbraco-commerce-core-models/currencyreadonly.md) entity to check | + +**Returns** + +Returns `true` if the [`CurrencyReadOnly`](../umbraco-commerce-core-models/currencyreadonly.md) exists, otherwise returns `false`. + + +--- + +#### DeleteCurrency (1 of 2) + +Deletes a [`Currency`](../umbraco-commerce-core-models/currency.md) + +```csharp +public void DeleteCurrency(Guid id) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| id | The ID of the [`Currency`](../umbraco-commerce-core-models/currency.md) to delete | + +--- + +#### DeleteCurrency (2 of 2) + +Deletes a [`Currency`](../umbraco-commerce-core-models/currency.md) + +```csharp +public void DeleteCurrency(Currency entity) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| entity | The [`Currency`](../umbraco-commerce-core-models/currency.md) to delete | + + +--- + +#### GetCurrencies (1 of 2) + +Get a list of all [`CurrencyReadOnly`](../umbraco-commerce-core-models/currencyreadonly.md) entities from the given [`Store`](../umbraco-commerce-core-models/store.md) + +```csharp +public IEnumerable GetCurrencies(Guid storeId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`CurrencyReadOnly`](../umbraco-commerce-core-models/currencyreadonly.md) entities belong to | + +**Returns** + +A list of [`CurrencyReadOnly`](../umbraco-commerce-core-models/currencyreadonly.md) entities + +--- + +#### GetCurrencies (2 of 2) + +Get a list of [`CurrencyReadOnly`](../umbraco-commerce-core-models/currencyreadonly.md) entities with the given IDs + +```csharp +public IEnumerable GetCurrencies(Guid[] ids) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| ids | The IDs of the [`CurrencyReadOnly`](../umbraco-commerce-core-models/currencyreadonly.md) entities to fetch | + +**Returns** + +A list of [`CurrencyReadOnly`](../umbraco-commerce-core-models/currencyreadonly.md) entities + + +--- + +#### GetCurrenciesAllowedIn + +Get a list of all [`CurrencyReadOnly`](../umbraco-commerce-core-models/currencyreadonly.md) entities allowed in the given [`Country`](../umbraco-commerce-core-models/country.md) + +```csharp +public IEnumerable GetCurrenciesAllowedIn(Guid countryId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| countryId | The ID of the [`Country`](../umbraco-commerce-core-models/country.md) the [`CurrencyReadOnly`](../umbraco-commerce-core-models/currencyreadonly.md) entity should be allowed in | + +**Returns** + +A list of [`CurrencyReadOnly`](../umbraco-commerce-core-models/currencyreadonly.md) entities + + +--- + +#### GetCurrency (1 of 2) + +Get a [`CurrencyReadOnly`](../umbraco-commerce-core-models/currencyreadonly.md) entity by ID + +```csharp +public CurrencyReadOnly GetCurrency(Guid id) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| id | The ID of the [`CurrencyReadOnly`](../umbraco-commerce-core-models/currencyreadonly.md) entity to fetch | + +**Returns** + +A [`CurrencyReadOnly`](../umbraco-commerce-core-models/currencyreadonly.md) entity + +--- + +#### GetCurrency (2 of 2) + +Get a [`CurrencyReadOnly`](../umbraco-commerce-core-models/currencyreadonly.md) entity by [`Store`](../umbraco-commerce-core-models/store.md) and ISO Code + +```csharp +public CurrencyReadOnly GetCurrency(Guid storeId, string code) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`CurrencyReadOnly`](../umbraco-commerce-core-models/currencyreadonly.md) entity belongs to | +| code | The ISO Code of the [`CurrencyReadOnly`](../umbraco-commerce-core-models/currencyreadonly.md) entity to fetch | + +**Returns** + +A [`CurrencyReadOnly`](../umbraco-commerce-core-models/currencyreadonly.md) entity + + +--- + +#### SaveCurrency + +Saves a [`Currency`](../umbraco-commerce-core-models/currency.md) + +```csharp +public void SaveCurrency(Currency entity) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| entity | The [`Currency`](../umbraco-commerce-core-models/currency.md) to save | + + +--- + +#### SortCurrencies + +Sorts a list of [`Currency`](../umbraco-commerce-core-models/currency.md) entities by ID according to the order of those IDs + +```csharp +public void SortCurrencies(Guid[] sortedIds) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| sortedIds | The IDs of the [`Currency`](../umbraco-commerce-core-models/currency.md) entities to sort, in the order by which to sort them | + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/idiscountservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/idiscountservice.md new file mode 100644 index 00000000000..9bb9f1c6861 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/idiscountservice.md @@ -0,0 +1,360 @@ +--- +title: IDiscountService +description: API reference for IDiscountService in Umbraco Commerce +--- +## IDiscountService + +Defines the Discount service + +```csharp +public interface IDiscountService : ICachedEntityService, IService +``` + +**Inheritance** + +* interface [ICachedEntityService<TEntityType>](icachedentityservice-1.md) +* interface [IService](iservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Methods + +#### DeleteDiscount (1 of 2) + +Deletes a [`Discount`](../umbraco-commerce-core-models/discount.md) + +```csharp +public void DeleteDiscount(Guid id) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| id | The ID of the [`Discount`](../umbraco-commerce-core-models/discount.md) to delete | + +--- + +#### DeleteDiscount (2 of 2) + +Deletes a [`Discount`](../umbraco-commerce-core-models/discount.md) + +```csharp +public void DeleteDiscount(Discount entity) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| entity | The [`Discount`](../umbraco-commerce-core-models/discount.md) to delete | + + +--- + +#### DiscountCodeExists + +Check to see if a Discount Code already exists in the given [`Store`](../umbraco-commerce-core-models/store.md) + +```csharp +public bool DiscountCodeExists(Guid storeId, string code) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`DiscountReadOnly`](../umbraco-commerce-core-models/discountreadonly.md) entity belongs to | +| code | The Discount Code to check | + +**Returns** + +Returns `true` if the Discount Code exists, otherwise returns `false`. + + +--- + +#### DiscountExists + +Check to see if a [`DiscountReadOnly`](../umbraco-commerce-core-models/discountreadonly.md) exists in the given [`Store`](../umbraco-commerce-core-models/store.md) with the given Alias + +```csharp +public bool DiscountExists(Guid storeId, string alias) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`DiscountReadOnly`](../umbraco-commerce-core-models/discountreadonly.md) entity belongs to | +| alias | The Alias of the [`DiscountReadOnly`](../umbraco-commerce-core-models/discountreadonly.md) entity to check | + +**Returns** + +Returns `true` if the [`DiscountReadOnly`](../umbraco-commerce-core-models/discountreadonly.md) exists, otherwise returns `false`. + + +--- + +#### GetActiveDiscounts + +Get a list of currently active [`DiscountReadOnly`](../umbraco-commerce-core-models/discountreadonly.md) entities from the given [`Store`](../umbraco-commerce-core-models/store.md) + +```csharp +public IEnumerable GetActiveDiscounts(Guid storeId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`DiscountReadOnly`](../umbraco-commerce-core-models/discountreadonly.md) entities belong to | + +**Returns** + +A list of [`DiscountReadOnly`](../umbraco-commerce-core-models/discountreadonly.md) entities + +**Remarks** + +A discount is active if it's Active status is `true` and it's StartDate and ExpiryDate are either `null`, or the current UTC Date Time is between these two dates + + +--- + +#### GetDiscount (1 of 2) + +Get a [`DiscountReadOnly`](../umbraco-commerce-core-models/discountreadonly.md) entity by ID + +```csharp +public DiscountReadOnly GetDiscount(Guid id) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| id | The ID of the [`DiscountReadOnly`](../umbraco-commerce-core-models/discountreadonly.md) entity to fetch | + +**Returns** + +A [`DiscountReadOnly`](../umbraco-commerce-core-models/discountreadonly.md) entity + +--- + +#### GetDiscount (2 of 2) + +Get a [`DiscountReadOnly`](../umbraco-commerce-core-models/discountreadonly.md) entity by [`Store`](../umbraco-commerce-core-models/store.md) and Alias + +```csharp +public DiscountReadOnly GetDiscount(Guid storeId, string alias) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`DiscountReadOnly`](../umbraco-commerce-core-models/discountreadonly.md) entity belongs to | +| alias | The Alias of the [`DiscountReadOnly`](../umbraco-commerce-core-models/discountreadonly.md) entity to fetch | + +**Returns** + +A [`DiscountReadOnly`](../umbraco-commerce-core-models/discountreadonly.md) entity + + +--- + +#### GetDiscountByCode + +Get a [`DiscountReadOnly`](../umbraco-commerce-core-models/discountreadonly.md) entity by [`Store`](../umbraco-commerce-core-models/store.md) and Discount Code + +```csharp +public DiscountReadOnly GetDiscountByCode(Guid storeId, string code) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`DiscountReadOnly`](../umbraco-commerce-core-models/discountreadonly.md) entity belongs to | +| code | A Discount Code associated with the [`DiscountReadOnly`](../umbraco-commerce-core-models/discountreadonly.md) entity to fetch | + +**Returns** + +A [`DiscountReadOnly`](../umbraco-commerce-core-models/discountreadonly.md) entity + + +--- + +#### GetDiscountRewardProviderDefinitions + +Get a list of [`DiscountRewardProviderDefinition`](../umbraco-commerce-core-discounts-rewards/discountrewardproviderdefinition.md) entities for all [`IDiscountRewardProvider`](../umbraco-commerce-core-discounts-rewards/idiscountrewardprovider.md) instances + +```csharp +public IEnumerable GetDiscountRewardProviderDefinitions() +``` + +**Returns** + +A list of [`DiscountRewardProviderDefinition`](../umbraco-commerce-core-discounts-rewards/discountrewardproviderdefinition.md) entities + + +--- + +#### GetDiscountRewardProviderScaffold + +Get a [`DiscountRewardProviderScaffold`](../umbraco-commerce-core-discounts-rewards/discountrewardproviderscaffold.md) by [`IDiscountRewardProvider`](../umbraco-commerce-core-discounts-rewards/idiscountrewardprovider.md) Alias + +```csharp +public DiscountRewardProviderScaffold GetDiscountRewardProviderScaffold(string alias) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| alias | The Alias of the [`IDiscountRewardProvider`](../umbraco-commerce-core-discounts-rewards/idiscountrewardprovider.md) to create a [`DiscountRewardProviderScaffold`](../umbraco-commerce-core-discounts-rewards/discountrewardproviderscaffold.md) for | + +**Returns** + +A [`DiscountRewardProviderScaffold`](../umbraco-commerce-core-discounts-rewards/discountrewardproviderscaffold.md) + + +--- + +#### GetDiscountRuleProviderDefinitions + +Get a list of [`DiscountRuleProviderDefinition`](../umbraco-commerce-core-discounts-rules/discountruleproviderdefinition.md) entities for all [`IDiscountRuleProvider`](../umbraco-commerce-core-discounts-rules/idiscountruleprovider.md) instances + +```csharp +public IEnumerable GetDiscountRuleProviderDefinitions() +``` + +**Returns** + +A list of [`DiscountRuleProviderDefinition`](../umbraco-commerce-core-discounts-rules/discountruleproviderdefinition.md) entities + + +--- + +#### GetDiscountRuleProviderScaffold + +Get a [`DiscountRuleProviderScaffold`](../umbraco-commerce-core-discounts-rules/discountruleproviderscaffold.md) by [`IDiscountRuleProvider`](../umbraco-commerce-core-discounts-rules/idiscountruleprovider.md) Alias + +```csharp +public DiscountRuleProviderScaffold GetDiscountRuleProviderScaffold(string alias) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| alias | The Alias of the [`IDiscountRuleProvider`](../umbraco-commerce-core-discounts-rules/idiscountruleprovider.md) to create a [`DiscountRuleProviderScaffold`](../umbraco-commerce-core-discounts-rules/discountruleproviderscaffold.md) for | + +**Returns** + +A [`DiscountRuleProviderScaffold`](../umbraco-commerce-core-discounts-rules/discountruleproviderscaffold.md) + + +--- + +#### GetDiscounts (1 of 2) + +Get a list of all [`DiscountReadOnly`](../umbraco-commerce-core-models/discountreadonly.md) entities from the given [`Store`](../umbraco-commerce-core-models/store.md) + +```csharp +public IEnumerable GetDiscounts(Guid storeId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`DiscountReadOnly`](../umbraco-commerce-core-models/discountreadonly.md) entities belong to | + +**Returns** + +A list of [`DiscountReadOnly`](../umbraco-commerce-core-models/discountreadonly.md) entities + +--- + +#### GetDiscounts (2 of 2) + +Get a list of [`DiscountReadOnly`](../umbraco-commerce-core-models/discountreadonly.md) entities with the given IDs + +```csharp +public IEnumerable GetDiscounts(Guid[] ids) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| ids | The IDs of the [`DiscountReadOnly`](../umbraco-commerce-core-models/discountreadonly.md) entities to fetch | + +**Returns** + +A list of [`DiscountReadOnly`](../umbraco-commerce-core-models/discountreadonly.md) entities + + +--- + +#### SaveDiscount + +Saves a [`Discount`](../umbraco-commerce-core-models/discount.md) + +```csharp +public void SaveDiscount(Discount entity) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| entity | The [`Discount`](../umbraco-commerce-core-models/discount.md) to save | + + +--- + +#### SortDiscounts + +Sorts a list of [`Discount`](../umbraco-commerce-core-models/discount.md) entities by ID according to the order of those IDs + +```csharp +public void SortDiscounts(Guid[] sortedIds) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| sortedIds | The IDs of the [`Discount`](../umbraco-commerce-core-models/discount.md) entities to sort, in the order by which to sort them | + + +--- + +#### ValidateDiscountCode + +Check whether a Discount Code is valid + +```csharp +public bool ValidateDiscountCode(Guid storeId, string code) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`DiscountReadOnly`](../umbraco-commerce-core-models/discountreadonly.md) entity belongs to | +| code | The Discount Code to validate | + +**Returns** + +Returns `true` if the Discount Code is valid, otherwise returns `false`. + +**Remarks** + +A Discount Code is valid if it's associated Discount has an Active status of `true` and it's StartDate and ExpiryDate are either `null`, or the current UTC Date Time is between these two dates, and the given Discount Code has not yet reached it's usage limit + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/iemailtemplateservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/iemailtemplateservice.md new file mode 100644 index 00000000000..9db66d8580c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/iemailtemplateservice.md @@ -0,0 +1,241 @@ +--- +title: IEmailTemplateService +description: API reference for IEmailTemplateService in Umbraco Commerce +--- +## IEmailTemplateService + +Defines the Email Template service + +```csharp +public interface IEmailTemplateService : ICachedEntityService, IService +``` + +**Inheritance** + +* interface [ICachedEntityService<TEntityType>](icachedentityservice-1.md) +* interface [IService](iservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Methods + +#### DeleteEmailTemplate (1 of 2) + +Deletes a [`EmailTemplate`](../umbraco-commerce-core-models/emailtemplate.md) + +```csharp +public void DeleteEmailTemplate(Guid id) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| id | The ID of the [`EmailTemplate`](../umbraco-commerce-core-models/emailtemplate.md) to delete | + +--- + +#### DeleteEmailTemplate (2 of 2) + +Deletes a [`EmailTemplate`](../umbraco-commerce-core-models/emailtemplate.md) + +```csharp +public void DeleteEmailTemplate(EmailTemplate entity) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| entity | The [`EmailTemplate`](../umbraco-commerce-core-models/emailtemplate.md) to delete | + + +--- + +#### EmailTemplateExists + +Check to see if a [`EmailTemplateReadOnly`](../umbraco-commerce-core-models/emailtemplatereadonly.md) exists in the given [`Store`](../umbraco-commerce-core-models/store.md) with the given Alias + +```csharp +public bool EmailTemplateExists(Guid storeId, string alias) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`EmailTemplateReadOnly`](../umbraco-commerce-core-models/emailtemplatereadonly.md) entity belongs to | +| alias | The Alias of the [`EmailTemplateReadOnly`](../umbraco-commerce-core-models/emailtemplatereadonly.md) entity to check | + +**Returns** + +Returns `true` if the [`EmailTemplateReadOnly`](../umbraco-commerce-core-models/emailtemplatereadonly.md) exists, otherwise returns `false`. + + +--- + +#### GetEmailTemplate (1 of 2) + +Get a [`EmailTemplateReadOnly`](../umbraco-commerce-core-models/emailtemplatereadonly.md) entity by ID + +```csharp +public EmailTemplateReadOnly GetEmailTemplate(Guid id) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| id | The ID of the [`EmailTemplateReadOnly`](../umbraco-commerce-core-models/emailtemplatereadonly.md) entity to fetch | + +**Returns** + +A [`EmailTemplateReadOnly`](../umbraco-commerce-core-models/emailtemplatereadonly.md) entity + +--- + +#### GetEmailTemplate (2 of 2) + +Get a [`EmailTemplateReadOnly`](../umbraco-commerce-core-models/emailtemplatereadonly.md) entity by [`Store`](../umbraco-commerce-core-models/store.md) and Alias + +```csharp +public EmailTemplateReadOnly GetEmailTemplate(Guid storeId, string alias) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`EmailTemplateReadOnly`](../umbraco-commerce-core-models/emailtemplatereadonly.md) entity belongs to | +| alias | The Alias of the [`EmailTemplateReadOnly`](../umbraco-commerce-core-models/emailtemplatereadonly.md) entity to fetch | + +**Returns** + +A [`EmailTemplateReadOnly`](../umbraco-commerce-core-models/emailtemplatereadonly.md) entity + + +--- + +#### GetEmailTemplates (1 of 2) + +Get a list of all [`EmailTemplateReadOnly`](../umbraco-commerce-core-models/emailtemplatereadonly.md) entities from the given [`Store`](../umbraco-commerce-core-models/store.md) + +```csharp +public IEnumerable GetEmailTemplates(Guid storeId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`EmailTemplateReadOnly`](../umbraco-commerce-core-models/emailtemplatereadonly.md) entities belong to | + +**Returns** + +A list of [`EmailTemplateReadOnly`](../umbraco-commerce-core-models/emailtemplatereadonly.md) entities + +--- + +#### GetEmailTemplates (2 of 2) + +Get a list of [`EmailTemplateReadOnly`](../umbraco-commerce-core-models/emailtemplatereadonly.md) entities with the given IDs + +```csharp +public IEnumerable GetEmailTemplates(Guid[] ids) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| ids | The IDs of the [`EmailTemplateReadOnly`](../umbraco-commerce-core-models/emailtemplatereadonly.md) entities to fetch | + +**Returns** + +A list of [`EmailTemplateReadOnly`](../umbraco-commerce-core-models/emailtemplatereadonly.md) entities + + +--- + +#### SaveEmailTemplate + +Saves a [`EmailTemplate`](../umbraco-commerce-core-models/emailtemplate.md) + +```csharp +public void SaveEmailTemplate(EmailTemplate entity) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| entity | The [`EmailTemplate`](../umbraco-commerce-core-models/emailtemplate.md) to save | + + +--- + +#### SendEmail + +Sends an email using the given [`EmailTemplate`](../umbraco-commerce-core-models/emailtemplate.md) to an [`Order`](../umbraco-commerce-core-models/order.md) customer using the [`Order`](../umbraco-commerce-core-models/order.md) as the [`EmailTemplate`](../umbraco-commerce-core-models/emailtemplate.md) model + +```csharp +public bool SendEmail(EmailTemplateReadOnly emailTemplate, OrderReadOnly order) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| emailTemplate | The [`EmailTemplate`](../umbraco-commerce-core-models/emailtemplate.md) to send | +| order | The [`Order`](../umbraco-commerce-core-models/order.md) to use as the [`EmailTemplate`](../umbraco-commerce-core-models/emailtemplate.md) model and from which to access the Customer email address to send the email to | + +**Returns** + +Returns `true` if the send was successful, otherwise returns `false`. + + +--- + +#### SendEmail<TModel> + +Sends an email using the given [`EmailTemplate`](../umbraco-commerce-core-models/emailtemplate.md) to the given email address, using the given model + +```csharp +public bool SendEmail(EmailTemplateReadOnly emailTemplate, TModel model, + string toEmailAddress, string languageIsoCode) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| TModel | The Type of the model for the [`EmailTemplate`](../umbraco-commerce-core-models/emailtemplate.md) | +| emailTemplate | The [`EmailTemplate`](../umbraco-commerce-core-models/emailtemplate.md) to send | +| model | The model instance for the [`EmailTemplate`](../umbraco-commerce-core-models/emailtemplate.md) | +| toEmailAddress | The email address to send the email to | +| languageIsoCode | The ISO Code of the language to send the email in | + +**Returns** + +Returns `true` if the send was successful, otherwise returns `false`. + + +--- + +#### SortEmailTemplates + +Sorts a list of [`EmailTemplate`](../umbraco-commerce-core-models/emailtemplate.md) entities by ID according to the order of those IDs + +```csharp +public void SortEmailTemplates(Guid[] sortedIds) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| sortedIds | The IDs of the [`EmailTemplate`](../umbraco-commerce-core-models/emailtemplate.md) entities to sort, in the order by which to sort them | + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/ientityservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/ientityservice.md new file mode 100644 index 00000000000..27779ddb191 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/ientityservice.md @@ -0,0 +1,68 @@ +--- +title: IEntityService +description: API reference for IEntityService in Umbraco Commerce +--- +## IEntityService + +```csharp +public interface IEntityService +``` + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Methods + +#### DeleteEntity + +```csharp +public void DeleteEntity(string entityType, Guid entityId) +``` + + +--- + +#### GetEntities (1 of 2) + +```csharp +public IEnumerable GetEntities(string entityType, Guid? storeId = default(Guid?), + Guid? parentId = default(Guid?)) +``` + +--- + +#### GetEntities (2 of 2) + +```csharp +public IEnumerable GetEntities(string entityType, Guid[] entityIds) +``` + + +--- + +#### GetEntity + +```csharp +public EntityBase GetEntity(string entityType, Guid entityId) +``` + + +--- + +#### GetEntityStoreId + +```csharp +public Guid GetEntityStoreId(string entityType, Guid entityId) +``` + + +--- + +#### SortEntities + +```csharp +public void SortEntities(string entityType, Guid[] entityIds) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/iexporttemplateservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/iexporttemplateservice.md new file mode 100644 index 00000000000..dcf83ffa98c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/iexporttemplateservice.md @@ -0,0 +1,193 @@ +--- +title: IExportTemplateService +description: API reference for IExportTemplateService in Umbraco Commerce +--- +## IExportTemplateService + +Defines the Export Template service + +```csharp +public interface IExportTemplateService : ICachedEntityService, IService +``` + +**Inheritance** + +* interface [ICachedEntityService<TEntityType>](icachedentityservice-1.md) +* interface [IService](iservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Methods + +#### DeleteExportTemplate (1 of 2) + +Deletes a [`ExportTemplate`](../umbraco-commerce-core-models/exporttemplate.md) + +```csharp +public void DeleteExportTemplate(Guid id) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| id | The ID of the [`ExportTemplate`](../umbraco-commerce-core-models/exporttemplate.md) to delete | + +--- + +#### DeleteExportTemplate (2 of 2) + +Deletes a [`ExportTemplate`](../umbraco-commerce-core-models/exporttemplate.md) + +```csharp +public void DeleteExportTemplate(ExportTemplate entity) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| entity | The [`ExportTemplate`](../umbraco-commerce-core-models/exporttemplate.md) to delete | + + +--- + +#### ExportTemplateExists + +Check to see if a [`ExportTemplateReadOnly`](../umbraco-commerce-core-models/exporttemplatereadonly.md) exists in the given [`Store`](../umbraco-commerce-core-models/store.md) with the given Alias + +```csharp +public bool ExportTemplateExists(Guid storeId, string alias) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`ExportTemplateReadOnly`](../umbraco-commerce-core-models/exporttemplatereadonly.md) entity belongs to | +| alias | The Alias of the [`ExportTemplateReadOnly`](../umbraco-commerce-core-models/exporttemplatereadonly.md) entity to check | + +**Returns** + +Returns `true` if the [`ExportTemplateReadOnly`](../umbraco-commerce-core-models/exporttemplatereadonly.md) exists, otherwise returns `false`. + + +--- + +#### GetExportTemplate (1 of 2) + +Get a [`ExportTemplateReadOnly`](../umbraco-commerce-core-models/exporttemplatereadonly.md) entity by ID + +```csharp +public ExportTemplateReadOnly GetExportTemplate(Guid id) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| id | The ID of the [`ExportTemplateReadOnly`](../umbraco-commerce-core-models/exporttemplatereadonly.md) entity to fetch | + +**Returns** + +A [`ExportTemplateReadOnly`](../umbraco-commerce-core-models/exporttemplatereadonly.md) entity + +--- + +#### GetExportTemplate (2 of 2) + +Get a [`ExportTemplateReadOnly`](../umbraco-commerce-core-models/exporttemplatereadonly.md) entity by [`Store`](../umbraco-commerce-core-models/store.md) and Alias + +```csharp +public ExportTemplateReadOnly GetExportTemplate(Guid storeId, string alias) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`ExportTemplateReadOnly`](../umbraco-commerce-core-models/exporttemplatereadonly.md) entity belongs to | +| alias | The Alias of the [`ExportTemplateReadOnly`](../umbraco-commerce-core-models/exporttemplatereadonly.md) entity to fetch | + +**Returns** + +A [`ExportTemplateReadOnly`](../umbraco-commerce-core-models/exporttemplatereadonly.md) entity + + +--- + +#### GetExportTemplates (1 of 2) + +Get a list of all [`ExportTemplateReadOnly`](../umbraco-commerce-core-models/exporttemplatereadonly.md) entities from the given [`Store`](../umbraco-commerce-core-models/store.md) + +```csharp +public IEnumerable GetExportTemplates(Guid storeId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`ExportTemplateReadOnly`](../umbraco-commerce-core-models/exporttemplatereadonly.md) entities belong to | + +**Returns** + +A list of [`ExportTemplateReadOnly`](../umbraco-commerce-core-models/exporttemplatereadonly.md) entities + +--- + +#### GetExportTemplates (2 of 2) + +Get a list of [`ExportTemplateReadOnly`](../umbraco-commerce-core-models/exporttemplatereadonly.md) entities with the given IDs + +```csharp +public IEnumerable GetExportTemplates(Guid[] ids) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| ids | The IDs of the [`ExportTemplateReadOnly`](../umbraco-commerce-core-models/exporttemplatereadonly.md) entities to fetch | + +**Returns** + +A list of [`ExportTemplateReadOnly`](../umbraco-commerce-core-models/exporttemplatereadonly.md) entities + + +--- + +#### SaveExportTemplate + +Saves a [`ExportTemplate`](../umbraco-commerce-core-models/exporttemplate.md) + +```csharp +public void SaveExportTemplate(ExportTemplate entity) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| entity | The [`ExportTemplate`](../umbraco-commerce-core-models/exporttemplate.md) to save | + + +--- + +#### SortExportTemplates + +Sorts a list of [`ExportTemplate`](../umbraco-commerce-core-models/exporttemplate.md) entities by ID according to the order of those IDs + +```csharp +public void SortExportTemplates(Guid[] sortedIds) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| sortedIds | The IDs of the [`ExportTemplate`](../umbraco-commerce-core-models/exporttemplate.md) entities to sort, in the order by which to sort them | + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/igiftcardservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/igiftcardservice.md new file mode 100644 index 00000000000..9efc3e68560 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/igiftcardservice.md @@ -0,0 +1,164 @@ +--- +title: IGiftCardService +description: API reference for IGiftCardService in Umbraco Commerce +--- +## IGiftCardService + +```csharp +public interface IGiftCardService : ICachedEntityService, IService +``` + +**Inheritance** + +* interface [ICachedEntityService<TEntityType>](icachedentityservice-1.md) +* interface [IService](iservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Methods + +#### DeleteGiftCard (1 of 2) + +```csharp +public void DeleteGiftCard(Guid id) +``` + +--- + +#### DeleteGiftCard (2 of 2) + +```csharp +public void DeleteGiftCard(GiftCard entity) +``` + + +--- + +#### GenerateGiftCardCode + +```csharp +public string GenerateGiftCardCode(Guid storeId) +``` + + +--- + +#### GetActiveGiftCards + +```csharp +public IEnumerable GetActiveGiftCards(Guid storeId) +``` + + +--- + +#### GetGiftCard (1 of 2) + +```csharp +public GiftCardReadOnly GetGiftCard(Guid id) +``` + +--- + +#### GetGiftCard (2 of 2) + +```csharp +public GiftCardReadOnly GetGiftCard(Guid storeId, string code) +``` + + +--- + +#### GetGiftCards (1 of 2) + +```csharp +public IEnumerable GetGiftCards(Guid storeId) +``` + +--- + +#### GetGiftCards (2 of 2) + +```csharp +public IEnumerable GetGiftCards(Guid[] ids) +``` + + +--- + +#### GetGiftCardsByOrder + +```csharp +public IEnumerable GetGiftCardsByOrder(Guid orderId) +``` + + +--- + +#### GiftCardExists + +```csharp +public bool GiftCardExists(Guid storeId, string code) +``` + + +--- + +#### SaveGiftCard + +```csharp +public void SaveGiftCard(GiftCard entity) +``` + + +--- + +#### SearchGiftCards (1 of 4) + +```csharp +public PagedResult SearchGiftCards(IQuerySpecification query, + long currentPage = 1, long itemsPerPage = 50) +``` + +--- + +#### SearchGiftCards (2 of 4) + +```csharp +public PagedResult SearchGiftCards(IQuerySpecification query, + ISortSpecification sort, long currentPage = 1, long itemsPerPage = 50) +``` + +--- + +#### SearchGiftCards (3 of 4) + +```csharp +public PagedResult SearchGiftCards( + Func> query, + long currentPage = 1, long itemsPerPage = 50) +``` + +--- + +#### SearchGiftCards (4 of 4) + +```csharp +public PagedResult SearchGiftCards( + Func> query, + Func> sort, + long currentPage = 1, long itemsPerPage = 50) +``` + + +--- + +#### ValidateGiftCard + +```csharp +public bool ValidateGiftCard(Guid storeId, string code, Guid currencyId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/iorderfinderservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/iorderfinderservice.md new file mode 100644 index 00000000000..ed9ec663b27 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/iorderfinderservice.md @@ -0,0 +1,32 @@ +--- +title: IOrderFinderService +description: API reference for IOrderFinderService in Umbraco Commerce +--- +## IOrderFinderService + +```csharp +public interface IOrderFinderService +``` + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Methods + +#### FindOrder + +Find an active order for the given customer. + +```csharp +public OrderReadOnly FindOrder(Guid storeId, string customerReference) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The store id associated with the order | +| customerReference | The reference of the customer to find the order of | + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/iorderservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/iorderservice.md new file mode 100644 index 00000000000..4676cb02b3a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/iorderservice.md @@ -0,0 +1,357 @@ +--- +title: IOrderService +description: API reference for IOrderService in Umbraco Commerce +--- +## IOrderService + +Defines the Order service + +```csharp +public interface IOrderService : ICachedEntityService, IOrderFinderService, IService +``` + +**Inheritance** + +* interface [ICachedEntityService<TEntityType>](icachedentityservice-1.md) +* interface [IOrderFinderService](iorderfinderservice.md) +* interface [IService](iservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Methods + +#### DeleteOrder (1 of 4) + +Deletes a [`Order`](../umbraco-commerce-core-models/order.md) + +```csharp +public void DeleteOrder(Guid orderId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| orderId | The ID of the [`Order`](../umbraco-commerce-core-models/order.md) to delete | + +--- + +#### DeleteOrder (2 of 4) + +Deletes a [`Order`](../umbraco-commerce-core-models/order.md) + +```csharp +public void DeleteOrder(Order entity) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| entity | The [`Order`](../umbraco-commerce-core-models/order.md) to delete | + +--- + +#### DeleteOrder (3 of 4) + +Deletes a [`Order`](../umbraco-commerce-core-models/order.md) + +```csharp +public void DeleteOrder(Guid orderId, bool revertFinalized) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| orderId | The ID of the [`Order`](../umbraco-commerce-core-models/order.md) to delete | +| revertFinalized | A boolean flag indicating whether to reverse the order finalization, undoing any stock reductions, discount code usages or gift card deductions | + +--- + +#### DeleteOrder (4 of 4) + +Deletes a [`Order`](../umbraco-commerce-core-models/order.md) + +```csharp +public void DeleteOrder(Order entity, bool revertFinalized) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| entity | The [`Order`](../umbraco-commerce-core-models/order.md) to delete | +| revertFinalized | A boolean flag indicating whether to reverse the order finalization, undoing any stock reductions, discount code usages or gift card deductions | + + +--- + +#### GetAllOrdersForCustomer + +Gets a list of all open or finalized [`OrderReadOnly`](../umbraco-commerce-core-models/orderreadonly.md) entities for a given customer + +```csharp +public IEnumerable GetAllOrdersForCustomer(Guid storeId, + string customerReferenceOrEmail) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`OrderReadOnly`](../umbraco-commerce-core-models/orderreadonly.md) entities belong to | +| customerReferenceOrEmail | The unique reference or email address of the customer associated with the [`OrderReadOnly`](../umbraco-commerce-core-models/orderreadonly.md) entities | + +**Returns** + +A list of [`OrderReadOnly`](../umbraco-commerce-core-models/orderreadonly.md) entities + + +--- + +#### GetFinalizedOrderCount + +Get the total number of finalized [`Order`](../umbraco-commerce-core-models/order.md) entities in a given [`Store`](../umbraco-commerce-core-models/store.md) + +```csharp +public long GetFinalizedOrderCount(Guid storeId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) to count from | + +**Returns** + +A count of the number of finalized [`Order`](../umbraco-commerce-core-models/order.md) entities in the given [`Store`](../umbraco-commerce-core-models/store.md) + + +--- + +#### GetFinalizedOrdersForCustomer + +Gets a list of finalized [`OrderReadOnly`](../umbraco-commerce-core-models/orderreadonly.md) entities for a given customer + +```csharp +public IEnumerable GetFinalizedOrdersForCustomer(Guid storeId, + string customerReferenceOrEmail) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`OrderReadOnly`](../umbraco-commerce-core-models/orderreadonly.md) entities belong to | +| customerReferenceOrEmail | The unique reference or email address of the customer associated with the [`OrderReadOnly`](../umbraco-commerce-core-models/orderreadonly.md) entities | + +**Returns** + +A list of [`OrderReadOnly`](../umbraco-commerce-core-models/orderreadonly.md) entities + + +--- + +#### GetOpenOrdersForCustomer + +Gets a list of open [`OrderReadOnly`](../umbraco-commerce-core-models/orderreadonly.md) entities for a given customer + +```csharp +public IEnumerable GetOpenOrdersForCustomer(Guid storeId, + string customerReferenceOrEmail) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`OrderReadOnly`](../umbraco-commerce-core-models/orderreadonly.md) entities belong to | +| customerReferenceOrEmail | The unique reference or email address of the customer associated with the [`OrderReadOnly`](../umbraco-commerce-core-models/orderreadonly.md) entities | + +**Returns** + +A list of [`OrderReadOnly`](../umbraco-commerce-core-models/orderreadonly.md) entities + + +--- + +#### GetOrder (1 of 2) + +Get an [`OrderReadOnly`](../umbraco-commerce-core-models/orderreadonly.md) entity by ID + +```csharp +public OrderReadOnly GetOrder(Guid orderId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| orderId | The ID of the [`OrderReadOnly`](../umbraco-commerce-core-models/orderreadonly.md) entity to fetch | + +**Returns** + +An [`OrderReadOnly`](../umbraco-commerce-core-models/orderreadonly.md) entity + +--- + +#### GetOrder (2 of 2) + +Get a [`OrderReadOnly`](../umbraco-commerce-core-models/orderreadonly.md) entity by [`Store`](../umbraco-commerce-core-models/store.md) and cart or order number + +```csharp +public OrderReadOnly GetOrder(Guid storeId, string cartOrOrderNumber) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`OrderReadOnly`](../umbraco-commerce-core-models/orderreadonly.md) entity belongs to | +| cartOrOrderNumber | The cart or order number to search for | + +**Returns** + +A [`OrderReadOnly`](../umbraco-commerce-core-models/orderreadonly.md) entity + + +--- + +#### GetOrders + +Gets a list of [`OrderReadOnly`](../umbraco-commerce-core-models/orderreadonly.md) entities matching the given IDs + +```csharp +public IEnumerable GetOrders(Guid[] ids) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| ids | The IDs of the [`OrderReadOnly`](../umbraco-commerce-core-models/orderreadonly.md) entities to fetch | + +**Returns** + +A list of [`OrderReadOnly`](../umbraco-commerce-core-models/orderreadonly.md) entities + + +--- + +#### SaveOrder + +Saves a [`Order`](../umbraco-commerce-core-models/order.md) + +```csharp +public void SaveOrder(Order entity) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| entity | The [`Order`](../umbraco-commerce-core-models/order.md) to save | + + +--- + +#### SearchOrders (1 of 4) + +Search for [`OrderReadOnly`](../umbraco-commerce-core-models/orderreadonly.md) entities + +```csharp +public PagedResult SearchOrders(IQuerySpecification query, + long currentPage = 1, long itemsPerPage = 50) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| query | The query specification to perform | +| currentPage | The page of results of which to retrieve | +| itemsPerPage | The number of items per page to return | + +**Returns** + +A paginated list of [`OrderReadOnly`](../umbraco-commerce-core-models/orderreadonly.md) entities + +--- + +#### SearchOrders (2 of 4) + +Search for [`OrderReadOnly`](../umbraco-commerce-core-models/orderreadonly.md) entities + +```csharp +public PagedResult SearchOrders(IQuerySpecification query, + ISortSpecification sort, long currentPage = 1, long itemsPerPage = 50) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| query | The query specification to perform | +| sort | The sort order specification describinng the sort order in which to return the results | +| currentPage | The page of results of which to retrieve | +| itemsPerPage | The number of items per page to return | + +**Returns** + +A paginated list of [`OrderReadOnly`](../umbraco-commerce-core-models/orderreadonly.md) entities + +--- + +#### SearchOrders (3 of 4) + +Search for [`OrderReadOnly`](../umbraco-commerce-core-models/orderreadonly.md) entities + +```csharp +public PagedResult SearchOrders( + Func> query, + long currentPage = 1, long itemsPerPage = 50) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| query | The factory method to generate the query specification to perform | +| currentPage | The page of results of which to retrieve | +| itemsPerPage | The number of items per page to return | + +**Returns** + +A paginated list of [`OrderReadOnly`](../umbraco-commerce-core-models/orderreadonly.md) entities + +--- + +#### SearchOrders (4 of 4) + +Search for [`OrderReadOnly`](../umbraco-commerce-core-models/orderreadonly.md) entities + +```csharp +public PagedResult SearchOrders( + Func> query, + Func> sort, + long currentPage = 1, long itemsPerPage = 50) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| query | The factory method to generate the query specification to perform | +| sort | The factory method to generate the sort order specification describinng the sort order in which to return the results | +| currentPage | The page of results of which to retrieve | +| itemsPerPage | The number of items per page to return | + +**Returns** + +A paginated list of [`OrderReadOnly`](../umbraco-commerce-core-models/orderreadonly.md) entities + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/iorderstatusservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/iorderstatusservice.md new file mode 100644 index 00000000000..d4fcd2425cb --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/iorderstatusservice.md @@ -0,0 +1,193 @@ +--- +title: IOrderStatusService +description: API reference for IOrderStatusService in Umbraco Commerce +--- +## IOrderStatusService + +Defines the Order Status service + +```csharp +public interface IOrderStatusService : ICachedEntityService, IService +``` + +**Inheritance** + +* interface [ICachedEntityService<TEntityType>](icachedentityservice-1.md) +* interface [IService](iservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Methods + +#### DeleteOrderStatus (1 of 2) + +Deletes a [`OrderStatus`](../umbraco-commerce-core-models/orderstatus.md) + +```csharp +public void DeleteOrderStatus(Guid id) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| id | The ID of the [`OrderStatus`](../umbraco-commerce-core-models/orderstatus.md) to delete | + +--- + +#### DeleteOrderStatus (2 of 2) + +Deletes a [`OrderStatus`](../umbraco-commerce-core-models/orderstatus.md) + +```csharp +public void DeleteOrderStatus(OrderStatus entity) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| entity | The [`OrderStatus`](../umbraco-commerce-core-models/orderstatus.md) to delete | + + +--- + +#### GetOrderStatus (1 of 2) + +Get a [`OrderStatusReadOnly`](../umbraco-commerce-core-models/orderstatusreadonly.md) entity by ID + +```csharp +public OrderStatusReadOnly GetOrderStatus(Guid id) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| id | The ID of the [`OrderStatusReadOnly`](../umbraco-commerce-core-models/orderstatusreadonly.md) entity to fetch | + +**Returns** + +A [`OrderStatusReadOnly`](../umbraco-commerce-core-models/orderstatusreadonly.md) entity + +--- + +#### GetOrderStatus (2 of 2) + +Get a [`OrderStatusReadOnly`](../umbraco-commerce-core-models/orderstatusreadonly.md) entity by [`Store`](../umbraco-commerce-core-models/store.md) and Alias + +```csharp +public OrderStatusReadOnly GetOrderStatus(Guid storeId, string alias) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`OrderStatusReadOnly`](../umbraco-commerce-core-models/orderstatusreadonly.md) entity belongs to | +| alias | The Alias of the [`OrderStatusReadOnly`](../umbraco-commerce-core-models/orderstatusreadonly.md) entity to fetch | + +**Returns** + +A [`OrderStatusReadOnly`](../umbraco-commerce-core-models/orderstatusreadonly.md) entity + + +--- + +#### GetOrderStatuses (1 of 2) + +Get a list of all [`OrderStatusReadOnly`](../umbraco-commerce-core-models/orderstatusreadonly.md) entities from the given [`Store`](../umbraco-commerce-core-models/store.md) + +```csharp +public IEnumerable GetOrderStatuses(Guid storeId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`OrderStatusReadOnly`](../umbraco-commerce-core-models/orderstatusreadonly.md) entities belong to | + +**Returns** + +A list of [`OrderStatusReadOnly`](../umbraco-commerce-core-models/orderstatusreadonly.md) entities + +--- + +#### GetOrderStatuses (2 of 2) + +Get a list of [`OrderStatusReadOnly`](../umbraco-commerce-core-models/orderstatusreadonly.md) entities with the given IDs + +```csharp +public IEnumerable GetOrderStatuses(Guid[] ids) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| ids | The IDs of the [`OrderStatusReadOnly`](../umbraco-commerce-core-models/orderstatusreadonly.md) entities to fetch | + +**Returns** + +A list of [`OrderStatusReadOnly`](../umbraco-commerce-core-models/orderstatusreadonly.md) entities + + +--- + +#### OrderStatusExists + +Check to see if a [`OrderStatusReadOnly`](../umbraco-commerce-core-models/orderstatusreadonly.md) exists in the given [`Store`](../umbraco-commerce-core-models/store.md) with the given Alias + +```csharp +public bool OrderStatusExists(Guid storeId, string alias) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`OrderStatusReadOnly`](../umbraco-commerce-core-models/orderstatusreadonly.md) entity belongs to | +| alias | The Alias of the [`OrderStatusReadOnly`](../umbraco-commerce-core-models/orderstatusreadonly.md) entity to check | + +**Returns** + +Returns `true` if the [`OrderStatusReadOnly`](../umbraco-commerce-core-models/orderstatusreadonly.md) exists, otherwise returns `false`. + + +--- + +#### SaveOrderStatus + +Saves a [`OrderStatus`](../umbraco-commerce-core-models/orderstatus.md) + +```csharp +public void SaveOrderStatus(OrderStatus entity) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| entity | The [`OrderStatus`](../umbraco-commerce-core-models/orderstatus.md) to save | + + +--- + +#### SortOrderStatuses + +Sorts a list of [`OrderStatus`](../umbraco-commerce-core-models/orderstatus.md) entities by ID according to the order of those IDs + +```csharp +public void SortOrderStatuses(Guid[] sortedIds) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| sortedIds | The IDs of the [`OrderStatus`](../umbraco-commerce-core-models/orderstatus.md) entities to sort, in the order by which to sort them | + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/ipaymentmethodservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/ipaymentmethodservice.md new file mode 100644 index 00000000000..5539aeb58e8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/ipaymentmethodservice.md @@ -0,0 +1,216 @@ +--- +title: IPaymentMethodService +description: API reference for IPaymentMethodService in Umbraco Commerce +--- +## IPaymentMethodService + +Defines the Payment Method service + +```csharp +public interface IPaymentMethodService : ICachedEntityService, IService +``` + +**Inheritance** + +* interface [ICachedEntityService<TEntityType>](icachedentityservice-1.md) +* interface [IService](iservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Methods + +#### DeletePaymentMethod (1 of 2) + +Deletes a [`PaymentMethod`](../umbraco-commerce-core-models/paymentmethod.md) + +```csharp +public void DeletePaymentMethod(Guid id) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| id | The ID of the [`PaymentMethod`](../umbraco-commerce-core-models/paymentmethod.md) to delete | + +--- + +#### DeletePaymentMethod (2 of 2) + +Deletes a [`PaymentMethod`](../umbraco-commerce-core-models/paymentmethod.md) + +```csharp +public void DeletePaymentMethod(PaymentMethod entity) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| entity | The [`PaymentMethod`](../umbraco-commerce-core-models/paymentmethod.md) to delete | + + +--- + +#### GetPaymentMethod (1 of 2) + +Get a [`PaymentMethodReadOnly`](../umbraco-commerce-core-models/paymentmethodreadonly.md) entity by ID + +```csharp +public PaymentMethodReadOnly GetPaymentMethod(Guid id) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| id | The ID of the [`PaymentMethodReadOnly`](../umbraco-commerce-core-models/paymentmethodreadonly.md) entity to fetch | + +**Returns** + +A [`PaymentMethodReadOnly`](../umbraco-commerce-core-models/paymentmethodreadonly.md) entity + +--- + +#### GetPaymentMethod (2 of 2) + +Get a [`PaymentMethodReadOnly`](../umbraco-commerce-core-models/paymentmethodreadonly.md) entity by [`Store`](../umbraco-commerce-core-models/store.md) and Alias + +```csharp +public PaymentMethodReadOnly GetPaymentMethod(Guid storeId, string alias) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`PaymentMethodReadOnly`](../umbraco-commerce-core-models/paymentmethodreadonly.md) entity belongs to | +| alias | The Alias of the [`PaymentMethodReadOnly`](../umbraco-commerce-core-models/paymentmethodreadonly.md) entity to fetch | + +**Returns** + +A [`PaymentMethodReadOnly`](../umbraco-commerce-core-models/paymentmethodreadonly.md) entity + + +--- + +#### GetPaymentMethods (1 of 2) + +Get a list of all [`PaymentMethodReadOnly`](../umbraco-commerce-core-models/paymentmethodreadonly.md) entities from the given [`Store`](../umbraco-commerce-core-models/store.md) + +```csharp +public IEnumerable GetPaymentMethods(Guid storeId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`PaymentMethodReadOnly`](../umbraco-commerce-core-models/paymentmethodreadonly.md) entities belong to | + +**Returns** + +A list of [`PaymentMethodReadOnly`](../umbraco-commerce-core-models/paymentmethodreadonly.md) entities + +--- + +#### GetPaymentMethods (2 of 2) + +Get a list of [`PaymentMethodReadOnly`](../umbraco-commerce-core-models/paymentmethodreadonly.md) entities with the given IDs + +```csharp +public IEnumerable GetPaymentMethods(Guid[] ids) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| ids | The IDs of the [`PaymentMethodReadOnly`](../umbraco-commerce-core-models/paymentmethodreadonly.md) entities to fetch | + +**Returns** + +A list of [`PaymentMethodReadOnly`](../umbraco-commerce-core-models/paymentmethodreadonly.md) entities + + +--- + +#### GetPaymentMethodsAllowedIn + +Get a list of all [`PaymentMethodReadOnly`](../umbraco-commerce-core-models/paymentmethodreadonly.md) entities allowed in the given [`Country`](../umbraco-commerce-core-models/country.md) and [`Region`](../umbraco-commerce-core-models/region.md) + +```csharp +public IEnumerable GetPaymentMethodsAllowedIn(Guid countryId, + Guid? regionId = default(Guid?)) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| countryId | The ID of the [`Country`](../umbraco-commerce-core-models/country.md) the [`PaymentMethodReadOnly`](../umbraco-commerce-core-models/paymentmethodreadonly.md) entities should be allowed in | +| regionId | The ID of the [`Region`](../umbraco-commerce-core-models/region.md) the [`PaymentMethodReadOnly`](../umbraco-commerce-core-models/paymentmethodreadonly.md) entities should be allowed in | + +**Returns** + +A list of [`PaymentMethodReadOnly`](../umbraco-commerce-core-models/paymentmethodreadonly.md) entities + + +--- + +#### PaymentMethodExists + +Check to see if a [`PaymentMethodReadOnly`](../umbraco-commerce-core-models/paymentmethodreadonly.md) exists in the given [`Store`](../umbraco-commerce-core-models/store.md) with the given Alias + +```csharp +public bool PaymentMethodExists(Guid storeId, string alias) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`PaymentMethodReadOnly`](../umbraco-commerce-core-models/paymentmethodreadonly.md) entity belongs to | +| alias | The Alias of the [`PaymentMethodReadOnly`](../umbraco-commerce-core-models/paymentmethodreadonly.md) entity to check | + +**Returns** + +Returns `true` if the [`PaymentMethodReadOnly`](../umbraco-commerce-core-models/paymentmethodreadonly.md) exists, otherwise returns `false`. + + +--- + +#### SavePaymentMethod + +Saves a [`PaymentMethod`](../umbraco-commerce-core-models/paymentmethod.md) + +```csharp +public void SavePaymentMethod(PaymentMethod entity) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| entity | The [`PaymentMethod`](../umbraco-commerce-core-models/paymentmethod.md) to save | + + +--- + +#### SortPaymentMethods + +Sorts a list of [`PaymentMethod`](../umbraco-commerce-core-models/paymentmethod.md) entities by ID according to the order of those IDs + +```csharp +public void SortPaymentMethods(Guid[] sortedIds) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| sortedIds | The IDs of the [`PaymentMethod`](../umbraco-commerce-core-models/paymentmethod.md) entities to sort, in the order by which to sort them | + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/ipaymentproviderservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/ipaymentproviderservice.md new file mode 100644 index 00000000000..94193a2b7cb --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/ipaymentproviderservice.md @@ -0,0 +1,45 @@ +--- +title: IPaymentProviderService +description: API reference for IPaymentProviderService in Umbraco Commerce +--- +## IPaymentProviderService + +```csharp +public interface IPaymentProviderService : IService +``` + +**Inheritance** + +* interface [IService](iservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Methods + +#### GetPaymentProvider + +```csharp +public IPaymentProvider GetPaymentProvider(string alias) +``` + + +--- + +#### GetPaymentProviderDefinitions + +```csharp +public IEnumerable GetPaymentProviderDefinitions() +``` + + +--- + +#### GetPaymentProviderScaffold + +```csharp +public PaymentProviderScaffold GetPaymentProviderScaffold(string alias) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/ipaymentservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/ipaymentservice.md new file mode 100644 index 00000000000..4e12dbb743d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/ipaymentservice.md @@ -0,0 +1,54 @@ +--- +title: IPaymentService +description: API reference for IPaymentService in Umbraco Commerce +--- +## IPaymentService + +```csharp +public interface IPaymentService +``` + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Methods + +#### CancelOrderPaymentAsync + +```csharp +public Task CancelOrderPaymentAsync(OrderReadOnly order, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + +--- + +#### CaptureOrderPaymentAsync + +```csharp +public Task CaptureOrderPaymentAsync(OrderReadOnly order, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + +--- + +#### FetchOrderPaymentStatusAsync + +```csharp +public Task FetchOrderPaymentStatusAsync(OrderReadOnly order, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + +--- + +#### RefundOrderPaymentAsync + +```csharp +public Task RefundOrderPaymentAsync(OrderReadOnly order, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/ipricefreezerservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/ipricefreezerservice.md new file mode 100644 index 00000000000..4fdd43605ac --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/ipricefreezerservice.md @@ -0,0 +1,81 @@ +--- +title: IPriceFreezerService +description: API reference for IPriceFreezerService in Umbraco Commerce +--- +## IPriceFreezerService + +Defines the Price Freezer service + +```csharp +public interface IPriceFreezerService +``` + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Methods + +#### FreezePrice + +Freezes the given price + +```csharp +public void FreezePrice(Guid orderId, string key, FreezablePrice price) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| orderId | The ID of the [`Order`](../umbraco-commerce-core-models/order.md) the price is associated with | +| key | The key to assign the frozen price to | +| price | The price to freeze | + + +--- + +#### GetFrozenPrice + +Gets a frozen prices that matches the given criteria + +```csharp +public FreezablePrice GetFrozenPrice(Guid orderId, string key, Guid currencyId, + Guid? countryId = default(Guid?), Guid? regiondId = default(Guid?)) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| orderId | The ID of the [`Order`](../umbraco-commerce-core-models/order.md) the price is associated with | +| key | The key or partial key of the frozen price | +| currencyId | The ID of the [`Currency`](../umbraco-commerce-core-models/currency.md) of the frozen price | +| countryId | The ID of the [`Country`](../umbraco-commerce-core-models/country.md) of the frozen price | +| regiondId | The ID of the [`Region`](../umbraco-commerce-core-models/region.md) of the frozen price | + + +--- + +#### ThawPrices + +Thaws any frozen prices that match the given criteria + +```csharp +public void ThawPrices(Guid? orderId = default(Guid?), string partialKey = null, + Guid? currencyId = default(Guid?), Guid? countryId = default(Guid?), + Guid? regiondId = default(Guid?), DateTime? olderThan = default(DateTime?)) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| orderId | The ID of the [`Order`](../umbraco-commerce-core-models/order.md) the prices are associated with | +| partialKey | A partial key of the frozen prices | +| currencyId | The ID of the [`Currency`](../umbraco-commerce-core-models/currency.md) of the frozen prices | +| countryId | The ID of the [`Country`](../umbraco-commerce-core-models/country.md) of the frozen prices | +| regiondId | The ID of the [`Region`](../umbraco-commerce-core-models/region.md) of the frozen price | +| olderThan | A Date representing the maximum age of the frozen prices | + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/iprinttemplateservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/iprinttemplateservice.md new file mode 100644 index 00000000000..1937d80a2a3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/iprinttemplateservice.md @@ -0,0 +1,193 @@ +--- +title: IPrintTemplateService +description: API reference for IPrintTemplateService in Umbraco Commerce +--- +## IPrintTemplateService + +Defines the Print Template service + +```csharp +public interface IPrintTemplateService : ICachedEntityService, IService +``` + +**Inheritance** + +* interface [ICachedEntityService<TEntityType>](icachedentityservice-1.md) +* interface [IService](iservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Methods + +#### DeletePrintTemplate (1 of 2) + +Deletes a [`PrintTemplate`](../umbraco-commerce-core-models/printtemplate.md) + +```csharp +public void DeletePrintTemplate(Guid id) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| id | The ID of the [`PrintTemplate`](../umbraco-commerce-core-models/printtemplate.md) to delete | + +--- + +#### DeletePrintTemplate (2 of 2) + +Deletes a [`PrintTemplate`](../umbraco-commerce-core-models/printtemplate.md) + +```csharp +public void DeletePrintTemplate(PrintTemplate entity) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| entity | The [`PrintTemplate`](../umbraco-commerce-core-models/printtemplate.md) to delete | + + +--- + +#### GetPrintTemplate (1 of 2) + +Get a [`PrintTemplateReadOnly`](../umbraco-commerce-core-models/printtemplatereadonly.md) entity by ID + +```csharp +public PrintTemplateReadOnly GetPrintTemplate(Guid id) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| id | The ID of the [`PrintTemplateReadOnly`](../umbraco-commerce-core-models/printtemplatereadonly.md) entity to fetch | + +**Returns** + +A [`PrintTemplateReadOnly`](../umbraco-commerce-core-models/printtemplatereadonly.md) entity + +--- + +#### GetPrintTemplate (2 of 2) + +Get a [`PrintTemplateReadOnly`](../umbraco-commerce-core-models/printtemplatereadonly.md) entity by [`Store`](../umbraco-commerce-core-models/store.md) and Alias + +```csharp +public PrintTemplateReadOnly GetPrintTemplate(Guid storeId, string alias) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`PrintTemplateReadOnly`](../umbraco-commerce-core-models/printtemplatereadonly.md) entity belongs to | +| alias | The Alias of the [`PrintTemplateReadOnly`](../umbraco-commerce-core-models/printtemplatereadonly.md) entity to fetch | + +**Returns** + +A [`PrintTemplateReadOnly`](../umbraco-commerce-core-models/printtemplatereadonly.md) entity + + +--- + +#### GetPrintTemplates (1 of 2) + +Get a list of all [`PrintTemplateReadOnly`](../umbraco-commerce-core-models/printtemplatereadonly.md) entities from the given [`Store`](../umbraco-commerce-core-models/store.md) + +```csharp +public IEnumerable GetPrintTemplates(Guid storeId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`PrintTemplateReadOnly`](../umbraco-commerce-core-models/printtemplatereadonly.md) entities belong to | + +**Returns** + +A list of [`PrintTemplateReadOnly`](../umbraco-commerce-core-models/printtemplatereadonly.md) entities + +--- + +#### GetPrintTemplates (2 of 2) + +Get a list of [`PrintTemplateReadOnly`](../umbraco-commerce-core-models/printtemplatereadonly.md) entities with the given IDs + +```csharp +public IEnumerable GetPrintTemplates(Guid[] ids) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| ids | The IDs of the [`PrintTemplateReadOnly`](../umbraco-commerce-core-models/printtemplatereadonly.md) entities to fetch | + +**Returns** + +A list of [`PrintTemplateReadOnly`](../umbraco-commerce-core-models/printtemplatereadonly.md) entities + + +--- + +#### PrintTemplateExists + +Check to see if a [`PrintTemplateReadOnly`](../umbraco-commerce-core-models/printtemplatereadonly.md) exists in the given [`Store`](../umbraco-commerce-core-models/store.md) with the given Alias + +```csharp +public bool PrintTemplateExists(Guid storeId, string alias) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`PrintTemplateReadOnly`](../umbraco-commerce-core-models/printtemplatereadonly.md) entity belongs to | +| alias | The Alias of the [`PrintTemplateReadOnly`](../umbraco-commerce-core-models/printtemplatereadonly.md) entity to check | + +**Returns** + +Returns `true` if the [`PrintTemplateReadOnly`](../umbraco-commerce-core-models/printtemplatereadonly.md) exists, otherwise returns `false`. + + +--- + +#### SavePrintTemplate + +Saves a [`PrintTemplate`](../umbraco-commerce-core-models/printtemplate.md) + +```csharp +public void SavePrintTemplate(PrintTemplate entity) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| entity | The [`PrintTemplate`](../umbraco-commerce-core-models/printtemplate.md) to save | + + +--- + +#### SortPrintTemplates + +Sorts a list of [`PrintTemplate`](../umbraco-commerce-core-models/printtemplate.md) entities by ID according to the order of those IDs + +```csharp +public void SortPrintTemplates(Guid[] sortedIds) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| sortedIds | The IDs of the [`PrintTemplate`](../umbraco-commerce-core-models/printtemplate.md) entities to sort, in the order by which to sort them | + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/iproductattributeservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/iproductattributeservice.md new file mode 100644 index 00000000000..6d681212519 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/iproductattributeservice.md @@ -0,0 +1,366 @@ +--- +title: IProductAttributeService +description: API reference for IProductAttributeService in Umbraco Commerce +--- +## IProductAttributeService + +Defines the Order Status service + +```csharp +public interface IProductAttributeService : ICachedEntityService, + ICachedEntityService, IService +``` + +**Inheritance** + +* interface [ICachedEntityService<TEntityType>](icachedentityservice-1.md) +* interface [IService](iservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Methods + +#### DeleteProductAttribute (1 of 2) + +Deletes a [`ProductAttribute`](../umbraco-commerce-core-models/productattribute.md) + +```csharp +public void DeleteProductAttribute(Guid id) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| id | The ID of the [`ProductAttribute`](../umbraco-commerce-core-models/productattribute.md) to delete | + +--- + +#### DeleteProductAttribute (2 of 2) + +Deletes a [`ProductAttribute`](../umbraco-commerce-core-models/productattribute.md) + +```csharp +public void DeleteProductAttribute(ProductAttribute entity) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| entity | The [`ProductAttribute`](../umbraco-commerce-core-models/productattribute.md) to delete | + + +--- + +#### DeleteProductAttributePreset (1 of 2) + +Deletes a [`ProductAttributePreset`](../umbraco-commerce-core-models/productattributepreset.md) + +```csharp +public void DeleteProductAttributePreset(Guid id) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| id | The ID of the [`ProductAttributePreset`](../umbraco-commerce-core-models/productattributepreset.md) to delete | + +--- + +#### DeleteProductAttributePreset (2 of 2) + +Deletes a [`ProductAttributePreset`](../umbraco-commerce-core-models/productattributepreset.md) + +```csharp +public void DeleteProductAttributePreset(ProductAttributePreset entity) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| entity | The [`ProductAttributePreset`](../umbraco-commerce-core-models/productattributepreset.md) to delete | + + +--- + +#### GetProductAttribute (1 of 2) + +Get a [`ProductAttributeReadOnly`](../umbraco-commerce-core-models/productattributereadonly.md) entity by ID + +```csharp +public ProductAttributeReadOnly GetProductAttribute(Guid id) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| id | The ID of the [`ProductAttributeReadOnly`](../umbraco-commerce-core-models/productattributereadonly.md) entity to fetch | + +**Returns** + +A [`ProductAttributeReadOnly`](../umbraco-commerce-core-models/productattributereadonly.md) entity + +--- + +#### GetProductAttribute (2 of 2) + +Get a [`ProductAttributeReadOnly`](../umbraco-commerce-core-models/productattributereadonly.md) entity by [`Store`](../umbraco-commerce-core-models/store.md) and Alias + +```csharp +public ProductAttributeReadOnly GetProductAttribute(Guid storeId, string alias) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`ProductAttributeReadOnly`](../umbraco-commerce-core-models/productattributereadonly.md) entity belongs to | +| alias | The Alias of the [`ProductAttributeReadOnly`](../umbraco-commerce-core-models/productattributereadonly.md) entity to fetch | + +**Returns** + +A [`ProductAttributeReadOnly`](../umbraco-commerce-core-models/productattributereadonly.md) entity + + +--- + +#### GetProductAttributePreset (1 of 2) + +Get a [`ProductAttributePresetReadOnly`](../umbraco-commerce-core-models/productattributepresetreadonly.md) entity by ID + +```csharp +public ProductAttributePresetReadOnly GetProductAttributePreset(Guid id) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| id | The ID of the [`ProductAttributePresetReadOnly`](../umbraco-commerce-core-models/productattributepresetreadonly.md) entity to fetch | + +**Returns** + +A [`ProductAttributePresetReadOnly`](../umbraco-commerce-core-models/productattributepresetreadonly.md) entity + +--- + +#### GetProductAttributePreset (2 of 2) + +Get a [`ProductAttributePresetReadOnly`](../umbraco-commerce-core-models/productattributepresetreadonly.md) entity by [`Store`](../umbraco-commerce-core-models/store.md) and Alias + +```csharp +public ProductAttributePresetReadOnly GetProductAttributePreset(Guid storeId, string alias) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`ProductAttributePresetReadOnly`](../umbraco-commerce-core-models/productattributepresetreadonly.md) entity belongs to | +| alias | The Alias of the [`ProductAttributePresetReadOnly`](../umbraco-commerce-core-models/productattributepresetreadonly.md) entity to fetch | + +**Returns** + +A [`ProductAttributePresetReadOnly`](../umbraco-commerce-core-models/productattributepresetreadonly.md) entity + + +--- + +#### GetProductAttributePresets (1 of 2) + +Get a list of all [`ProductAttributePresetReadOnly`](../umbraco-commerce-core-models/productattributepresetreadonly.md) entities from the given [`Store`](../umbraco-commerce-core-models/store.md) + +```csharp +public IEnumerable GetProductAttributePresets(Guid storeId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`ProductAttributePresetReadOnly`](../umbraco-commerce-core-models/productattributepresetreadonly.md) entities belong to | + +**Returns** + +A list of [`ProductAttributePresetReadOnly`](../umbraco-commerce-core-models/productattributepresetreadonly.md) entities + +--- + +#### GetProductAttributePresets (2 of 2) + +Get a list of [`ProductAttributePresetReadOnly`](../umbraco-commerce-core-models/productattributepresetreadonly.md) entities with the given IDs + +```csharp +public IEnumerable GetProductAttributePresets(Guid[] ids) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| ids | The IDs of the [`ProductAttributePresetReadOnly`](../umbraco-commerce-core-models/productattributepresetreadonly.md) entities to fetch | + +**Returns** + +A list of [`ProductAttributePresetReadOnly`](../umbraco-commerce-core-models/productattributepresetreadonly.md) entities + + +--- + +#### GetProductAttributes (1 of 2) + +Get a list of all [`ProductAttributeReadOnly`](../umbraco-commerce-core-models/productattributereadonly.md) entities from the given [`Store`](../umbraco-commerce-core-models/store.md) + +```csharp +public IEnumerable GetProductAttributes(Guid storeId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`ProductAttributeReadOnly`](../umbraco-commerce-core-models/productattributereadonly.md) entities belong to | + +**Returns** + +A list of [`ProductAttributeReadOnly`](../umbraco-commerce-core-models/productattributereadonly.md) entities + +--- + +#### GetProductAttributes (2 of 2) + +Get a list of [`ProductAttributeReadOnly`](../umbraco-commerce-core-models/productattributereadonly.md) entities with the given IDs + +```csharp +public IEnumerable GetProductAttributes(Guid[] ids) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| ids | The IDs of the [`ProductAttributeReadOnly`](../umbraco-commerce-core-models/productattributereadonly.md) entities to fetch | + +**Returns** + +A list of [`ProductAttributeReadOnly`](../umbraco-commerce-core-models/productattributereadonly.md) entities + + +--- + +#### ProductAttributeExists + +Check to see if a [`ProductAttributeReadOnly`](../umbraco-commerce-core-models/productattributereadonly.md) exists in the given [`Store`](../umbraco-commerce-core-models/store.md) with the given Alias + +```csharp +public bool ProductAttributeExists(Guid storeId, string alias) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`ProductAttributeReadOnly`](../umbraco-commerce-core-models/productattributereadonly.md) entity belongs to | +| alias | The Alias of the [`ProductAttributeReadOnly`](../umbraco-commerce-core-models/productattributereadonly.md) entity to check | + +**Returns** + +Returns `true` if the [`ProductAttributeReadOnly`](../umbraco-commerce-core-models/productattributereadonly.md) exists, otherwise returns `false`. + + +--- + +#### ProductAttributePresetExists + +Check to see if a [`ProductAttributePresetReadOnly`](../umbraco-commerce-core-models/productattributepresetreadonly.md) exists in the given [`Store`](../umbraco-commerce-core-models/store.md) with the given Alias + +```csharp +public bool ProductAttributePresetExists(Guid storeId, string alias) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`ProductAttributePresetReadOnly`](../umbraco-commerce-core-models/productattributepresetreadonly.md) entity belongs to | +| alias | The Alias of the [`ProductAttributePresetReadOnly`](../umbraco-commerce-core-models/productattributepresetreadonly.md) entity to check | + +**Returns** + +Returns `true` if the [`ProductAttributePresetReadOnly`](../umbraco-commerce-core-models/productattributepresetreadonly.md) exists, otherwise returns `false`. + + +--- + +#### SaveProductAttribute + +Saves a [`ProductAttribute`](../umbraco-commerce-core-models/productattribute.md) + +```csharp +public void SaveProductAttribute(ProductAttribute entity) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| entity | The [`ProductAttribute`](../umbraco-commerce-core-models/productattribute.md) to save | + + +--- + +#### SaveProductAttributePreset + +Saves a [`ProductAttributePreset`](../umbraco-commerce-core-models/productattributepreset.md) + +```csharp +public void SaveProductAttributePreset(ProductAttributePreset entity) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| entity | The [`ProductAttributePreset`](../umbraco-commerce-core-models/productattributepreset.md) to save | + + +--- + +#### SortProductAttributePresets + +Sorts a list of [`ProductAttributePreset`](../umbraco-commerce-core-models/productattributepreset.md) entities by ID according to the order of those IDs + +```csharp +public void SortProductAttributePresets(Guid[] sortedIds) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| sortedIds | The IDs of the [`ProductAttributePreset`](../umbraco-commerce-core-models/productattributepreset.md) entities to sort, in the order by which to sort them | + + +--- + +#### SortProductAttributes + +Sorts a list of [`ProductAttribute`](../umbraco-commerce-core-models/productattribute.md) entities by ID according to the order of those IDs + +```csharp +public void SortProductAttributes(Guid[] sortedIds) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| sortedIds | The IDs of the [`ProductAttribute`](../umbraco-commerce-core-models/productattribute.md) entities to sort, in the order by which to sort them | + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/iproductpricefreezerservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/iproductpricefreezerservice.md new file mode 100644 index 00000000000..3fe8ce18854 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/iproductpricefreezerservice.md @@ -0,0 +1,301 @@ +--- +title: IProductPriceFreezerService +description: API reference for IProductPriceFreezerService in Umbraco Commerce +--- +## IProductPriceFreezerService + +Defines the Product Price Freezer service + +```csharp +public interface IProductPriceFreezerService +``` + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Methods + +#### FreezeProductPrice (1 of 2) + +Freezes a products price + +```csharp +public void FreezeProductPrice(Guid storeId, Guid orderId, string productReference, + ProductPrice price) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the price is associated with | +| orderId | The ID of the [`Order`](../umbraco-commerce-core-models/order.md) the price is associated with | +| productReference | The unique reference of the Product the price is associated with | +| price | The [`ProductPrice`](../umbraco-commerce-core-models/productprice.md) to freeze | + +--- + +#### FreezeProductPrice (2 of 2) + +Freezes a products price + +```csharp +public void FreezeProductPrice(Guid storeId, Guid orderId, string productReference, + string productVariantReference, ProductPrice price) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the price is associated with | +| orderId | The ID of the [`Order`](../umbraco-commerce-core-models/order.md) the price is associated with | +| productReference | The unique reference of the Product the price is associated with | +| productVariantReference | The unique reference of the Product variant the price is associated with | +| price | The [`ProductPrice`](../umbraco-commerce-core-models/productprice.md) to freeze | + + +--- + +#### GetOrCreateFrozenProductPrice (1 of 2) + +Get or creates a frozen price for a given product + +```csharp +public ProductPrice GetOrCreateFrozenProductPrice(Guid storeId, Guid orderId, + string productReference, Guid currencyId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the price is associated with | +| orderId | The ID of the [`Order`](../umbraco-commerce-core-models/order.md) the price is associated with | +| productReference | The unique reference of the Product the price is associated with | +| currencyId | The ID of the [`Currency`](../umbraco-commerce-core-models/currency.md) of the price | + +**Returns** + +A frozen [`ProductPrice`](../umbraco-commerce-core-models/productprice.md) + +--- + +#### GetOrCreateFrozenProductPrice (2 of 2) + +Get or creates a frozen price for a given product + +```csharp +public ProductPrice GetOrCreateFrozenProductPrice(Guid storeId, Guid orderId, + string productReference, string productVariantReference, Guid currencyId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the price is associated with | +| orderId | The ID of the [`Order`](../umbraco-commerce-core-models/order.md) the price is associated with | +| productReference | The unique reference of the Product the price is associated with | +| productVariantReference | The unique reference of the Product variant the price is associated with | +| currencyId | The ID of the [`Currency`](../umbraco-commerce-core-models/currency.md) of the price | + +**Returns** + +A frozen [`ProductPrice`](../umbraco-commerce-core-models/productprice.md) + + +--- + +#### GetProductPrice (1 of 4) + +Get the price of a product, either frozen if one exists, otherwise direct from the product source + +```csharp +public ProductPrice GetProductPrice(Guid storeId, Guid orderId, string productReference, + Guid currencyId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the price is associated with | +| orderId | The ID of the [`Order`](../umbraco-commerce-core-models/order.md) the price is associated with | +| productReference | The unique reference of the Product the price is associated with | +| currencyId | The ID of the [`Currency`](../umbraco-commerce-core-models/currency.md) of the price to freeze | + +**Returns** + +A [`ProductPrice`](../umbraco-commerce-core-models/productprice.md) + +--- + +#### GetProductPrice (2 of 4) + +Get the price of a product, either frozen if one exists, otherwise direct from the product source + +```csharp +public ProductPrice GetProductPrice(Guid storeId, Guid orderId, string productReference, + string productVariantReference, Guid currencyId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the price is associated with | +| orderId | The ID of the [`Order`](../umbraco-commerce-core-models/order.md) the price is associated with | +| productReference | The unique reference of the Product the price is associated with | +| productVariantReference | The unique reference of the Product variant the price is associated with | +| currencyId | The ID of the [`Currency`](../umbraco-commerce-core-models/currency.md) of the price to freeze | + +**Returns** + +A [`ProductPrice`](../umbraco-commerce-core-models/productprice.md) + +--- + +#### GetProductPrice (3 of 4) + +Get the price of a product, either frozen if one exists, otherwise direct from the product source + +```csharp +public ProductPrice GetProductPrice(Guid storeId, Guid orderId, string productReference, + Guid currencyId, out bool isFrozen) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the price is associated with | +| orderId | The ID of the [`Order`](../umbraco-commerce-core-models/order.md) the price is associated with | +| productReference | The unique reference of the Product the price is associated with | +| currencyId | The ID of the [`Currency`](../umbraco-commerce-core-models/currency.md) of the price to freeze | +| isFrozen | Boolean indicating if the price returned is a frozen price or not | + +**Returns** + +A [`ProductPrice`](../umbraco-commerce-core-models/productprice.md) + +--- + +#### GetProductPrice (4 of 4) + +Get the price of a product, either frozen if one exists, otherwise direct from the product source + +```csharp +public ProductPrice GetProductPrice(Guid storeId, Guid orderId, string productReference, + string productVariantReference, Guid currencyId, out bool isFrozen) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the price is associated with | +| orderId | The ID of the [`Order`](../umbraco-commerce-core-models/order.md) the price is associated with | +| productReference | The unique reference of the Product the price is associated with | +| productVariantReference | The unique reference of the Product variant the price is associated with | +| currencyId | The ID of the [`Currency`](../umbraco-commerce-core-models/currency.md) of the price to freeze | +| isFrozen | Boolean indicating if the price returned is a frozen price or not | + +**Returns** + +A [`ProductPrice`](../umbraco-commerce-core-models/productprice.md) + + +--- + +#### HasFrozenProductPrice (1 of 2) + +Checks to see if there is a frozen product price for the given reference + +```csharp +public bool HasFrozenProductPrice(Guid storeId, Guid orderId, string productReference, + Guid currencyId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the price is associated with | +| orderId | The ID of the [`Order`](../umbraco-commerce-core-models/order.md) the price is associated with | +| productReference | The unique reference of the Product the price is associated with | +| currencyId | The ID of the [`Currency`](../umbraco-commerce-core-models/currency.md) of the price to freeze | + +**Returns** + +True if a frozen price exists, otherwise false + +--- + +#### HasFrozenProductPrice (2 of 2) + +Checks to see if there is a frozen product price for the given reference + +```csharp +public bool HasFrozenProductPrice(Guid storeId, Guid orderId, string productReference, + string productVariantReference, Guid currencyId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the price is associated with | +| orderId | The ID of the [`Order`](../umbraco-commerce-core-models/order.md) the price is associated with | +| productReference | The unique reference of the Product the price is associated with | +| productVariantReference | The unique reference of the Product variant the price is associated with | +| currencyId | The ID of the [`Currency`](../umbraco-commerce-core-models/currency.md) of the price to freeze | + +**Returns** + +True if a frozen price exists, otherwise false + + +--- + +#### ThawFrozenProductPrice (1 of 2) + +Thaws a frozen price for a given product + +```csharp +public void ThawFrozenProductPrice(Guid storeId, Guid orderId, string productReference, + Guid currencyId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the price is associated with | +| orderId | The ID of the [`Order`](../umbraco-commerce-core-models/order.md) the price is associated with | +| productReference | The unique reference of the Product the price is associated with | +| currencyId | The ID of the [`Currency`](../umbraco-commerce-core-models/currency.md) of the price | + +--- + +#### ThawFrozenProductPrice (2 of 2) + +Thaws a frozen price for a given product + +```csharp +public void ThawFrozenProductPrice(Guid storeId, Guid orderId, string productReference, + string productVariantReference, Guid currencyId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the price is associated with | +| orderId | The ID of the [`Order`](../umbraco-commerce-core-models/order.md) the price is associated with | +| productReference | The unique reference of the Product the price is associated with | +| productVariantReference | The unique reference of the Product variant the price is associated with | +| currencyId | The ID of the [`Currency`](../umbraco-commerce-core-models/currency.md) of the price | + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/iproductservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/iproductservice.md new file mode 100644 index 00000000000..4b8ab407978 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/iproductservice.md @@ -0,0 +1,485 @@ +--- +title: IProductService +description: API reference for IProductService in Umbraco Commerce +--- +## IProductService + +Defines the Product service + +```csharp +public interface IProductService +``` + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Methods + +#### GetProduct (1 of 2) + +Get a [`IProductSnapshot`](../umbraco-commerce-core-models/iproductsnapshot.md) of a given product + +```csharp +public IProductSnapshot GetProduct(Guid storeId, string productReference, string languageIsoCode) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the product belongs to | +| productReference | The unique reference of the product to snapshot | +| languageIsoCode | The ISO Code of the language of the snapshot to create | + +**Returns** + +An [`IProductSnapshot`](../umbraco-commerce-core-models/iproductsnapshot.md) of the given product + +--- + +#### GetProduct (2 of 2) + +Get a [`IProductSnapshot`](../umbraco-commerce-core-models/iproductsnapshot.md) of a given product + +```csharp +public IProductSnapshot GetProduct(Guid storeId, string productReference, + string productVariantReference, string languageIsoCode) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the product belongs to | +| productReference | The unique reference of the product to snapshot | +| productVariantReference | The unique reference of the variant of the product to snapshot | +| languageIsoCode | The ISO Code of the language of the snapshot to create | + +**Returns** + +An [`IProductSnapshot`](../umbraco-commerce-core-models/iproductsnapshot.md) of the given product + + +--- + +#### GetProductStock (1 of 2) + +Gets the stock level of a given product + +```csharp +public decimal? GetProductStock(Guid storeId, string productReference) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the product belongs to | +| productReference | The unique reference of the product who's stock level to retrieve | + +**Returns** + +The stock level of the product + +--- + +#### GetProductStock (2 of 2) + +Gets the stock level of a given product + +```csharp +public decimal? GetProductStock(Guid storeId, string productReference, + string productVariantReference) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the product belongs to | +| productReference | The unique reference of the product who's stock level to retrieve | +| productVariantReference | The unique reference of the variant of the product who's stock level to retrieve | + +**Returns** + +The stock level of the product + + +--- + +#### GetProductVariantAttributes + +Gets a list of attributes in use by the product variants of the given primary product. + +```csharp +public IEnumerable GetProductVariantAttributes(Guid storeId, string productReference, + string languageIsoCode) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store this product belongs to | +| productReference | The product reference of the product | +| languageIsoCode | The language ISO code of the culture | + + +--- + +#### IncreaseProductStock (1 of 2) + +Increases the stock level of a given product + +```csharp +public void IncreaseProductStock(Guid storeId, string productReference, decimal increaseBy) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the product belongs to | +| productReference | The unique reference of the product who's stock level to increase | +| increaseBy | The amount to increase the stock level by | + +--- + +#### IncreaseProductStock (2 of 2) + +Increases the stock level of a given product + +```csharp +public void IncreaseProductStock(Guid storeId, string productReference, + string productVariantReference, decimal increaseBy) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the product belongs to | +| productReference | The unique reference of the product who's stock level to increase | +| productVariantReference | The unique reference of variant of the product who's stock level to increase | +| increaseBy | The amount to increase the stock level by | + + +--- + +#### ReduceProductStock (1 of 2) + +Reduces the stock level of a given product + +```csharp +public void ReduceProductStock(Guid storeId, string productReference, decimal reduceBy) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the product belongs to | +| productReference | The unique reference of the product who's stock level to reduce | +| reduceBy | The amount to reduce the stock level by | + +--- + +#### ReduceProductStock (2 of 2) + +Reduces the stock level of a given product + +```csharp +public void ReduceProductStock(Guid storeId, string productReference, + string productVariantReference, decimal reduceBy) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the product belongs to | +| productReference | The unique reference of the product who's stock level to reduce | +| productVariantReference | The unique reference of the variant of the product who's stock level to reduce | +| reduceBy | The amount to reduce the stock level by | + + +--- + +#### SearchProductSummaries + +Searches for product summaries matching the given search term. + +```csharp +public PagedResult SearchProductSummaries(Guid storeId, string languageIsoCode, + string searchTerm, long currentPage = 1, long itemsPerPage = 50) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The id of the store to search in | +| languageIsoCode | The language ISO code of the culture | +| searchTerm | The term to search for | +| currentPage | The current page of items to return | +| itemsPerPage | The number of items per page to return | + +**Returns** + +A paged collection of product summaries + + +--- + +#### SearchProductVariantSummaries + +Searches for the product variant summaries of a primary product matching the given search term / attributes. + +```csharp +public PagedResult SearchProductVariantSummaries(Guid storeId, + string productReference, string languageIsoCode, string searchTerm, + IDictionary> attributes, long currentPage = 1, + long itemsPerPage = 50) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store this product belongs to | +| productReference | The product reference of the product | +| languageIsoCode | The language ISO code of the culture | +| searchTerm | The term to search for | +| attributes | The attributes of the product variant | +| currentPage | The current page of items to return | +| itemsPerPage | The number of items per page to return | + + +--- + +#### SetProductStock (1 of 2) + +Sets the stock level of a given product + +```csharp +public void SetProductStock(Guid storeId, string productReference, decimal value) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the product belongs to | +| productReference | The unique reference of the product who's stock level to set | +| value | The value to set the stock level to | + +--- + +#### SetProductStock (2 of 2) + +Sets the stock level of a given product + +```csharp +public void SetProductStock(Guid storeId, string productReference, string productVariantReference, + decimal value) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the product belongs to | +| productReference | The unique reference of the product who's stock level to set | +| productVariantReference | The unique reference of the variant of the product who's stock level to set | +| value | The value to set the stock level to | + + +--- + +#### TryGetProductStock (1 of 2) + +Try to get the stock level of a given product + +```csharp +public bool TryGetProductStock(Guid storeId, string productReference, out decimal? stock) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the product belongs to | +| productReference | The unique reference of the product who's stock level to retrieve | +| stock | The output stock level of the product | + +**Returns** + +True if the stock level was retrieved, false if not + +--- + +#### TryGetProductStock (2 of 2) + +Try to get the stock level of a given product + +```csharp +public bool TryGetProductStock(Guid storeId, string productReference, + string productVariantReference, out decimal? stock) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the product belongs to | +| productReference | The unique reference of the product who's stock level to retrieve | +| productVariantReference | The unique reference of the variant of the product who's stock level to retrieve | +| stock | The output stock level of the product | + +**Returns** + +True if the stock level was retrieved, false if not + + +--- + +#### TryIncreaseProductStock (1 of 2) + +Try to increase the stock level of a given product + +```csharp +public bool TryIncreaseProductStock(Guid storeId, string productReference, decimal increaseBy) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the product belongs to | +| productReference | The unique reference of the product who's stock level to retrieve | +| increaseBy | The amount to increase the stock level by | + +**Returns** + +True if the stock level was increased, false if not + +--- + +#### TryIncreaseProductStock (2 of 2) + +Try to increase the stock level of a given product + +```csharp +public bool TryIncreaseProductStock(Guid storeId, string productReference, + string productVariantReference, decimal increaseBy) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the product belongs to | +| productReference | The unique reference of the product who's stock level to retrieve | +| productVariantReference | The unique reference of variant of the product who's stock level to increase | +| increaseBy | The amount to increase the stock level by | + +**Returns** + +True if the stock level was increased, false if not + + +--- + +#### TryReduceProductStock (1 of 2) + +Try to reduce the stock level of a given product + +```csharp +public bool TryReduceProductStock(Guid storeId, string productReference, decimal reduceBy) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the product belongs to | +| productReference | The unique reference of the product who's stock level to retrieve | +| reduceBy | The amount to reduce the stock level by | + +**Returns** + +True if the stock level was reduced, false if not + +--- + +#### TryReduceProductStock (2 of 2) + +Try to reduce the stock level of a given product + +```csharp +public bool TryReduceProductStock(Guid storeId, string productReference, + string productVariantReference, decimal reduceBy) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the product belongs to | +| productReference | The unique reference of the product who's stock level to retrieve | +| productVariantReference | The unique reference of the variant of the product who's stock level to reduce | +| reduceBy | The amount to reduce the stock level by | + +**Returns** + +True if the stock level was reduced, false if not + + +--- + +#### TrySetProductStock (1 of 2) + +Try to set the stock level of a given product + +```csharp +public bool TrySetProductStock(Guid storeId, string productReference, decimal value) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the product belongs to | +| productReference | The unique reference of the product who's stock level to retrieve | +| value | The value to set the stock level to | + +**Returns** + +True if the stock level was set, false if not + +--- + +#### TrySetProductStock (2 of 2) + +Try to set the stock level of a given product + +```csharp +public bool TrySetProductStock(Guid storeId, string productReference, + string productVariantReference, decimal value) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the product belongs to | +| productReference | The unique reference of the product who's stock level to retrieve | +| productVariantReference | The unique reference of the variant of the product who's stock level to set | +| value | The value to set the stock level to | + +**Returns** + +True if the stock level was set, false if not + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/iregisteredcustomerinfoservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/iregisteredcustomerinfoservice.md new file mode 100644 index 00000000000..75b44e65697 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/iregisteredcustomerinfoservice.md @@ -0,0 +1,23 @@ +--- +title: IRegisteredCustomerInfoService +description: API reference for IRegisteredCustomerInfoService in Umbraco Commerce +--- +## IRegisteredCustomerInfoService + +```csharp +public interface IRegisteredCustomerInfoService +``` + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Methods + +#### GetRegisteredCustomerInfo + +```csharp +public RegisteredCustomerInfo GetRegisteredCustomerInfo(string customerReference) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/iservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/iservice.md new file mode 100644 index 00000000000..b59491cfe02 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/iservice.md @@ -0,0 +1,16 @@ +--- +title: IService +description: API reference for IService in Umbraco Commerce +--- +## IService + +Marker interface for services + +```csharp +public interface IService +``` + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/ishippingmethodservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/ishippingmethodservice.md new file mode 100644 index 00000000000..9abd5bad615 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/ishippingmethodservice.md @@ -0,0 +1,216 @@ +--- +title: IShippingMethodService +description: API reference for IShippingMethodService in Umbraco Commerce +--- +## IShippingMethodService + +Defines the Shipping Method service + +```csharp +public interface IShippingMethodService : ICachedEntityService, IService +``` + +**Inheritance** + +* interface [ICachedEntityService<TEntityType>](icachedentityservice-1.md) +* interface [IService](iservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Methods + +#### DeleteShippingMethod (1 of 2) + +Deletes a [`ShippingMethod`](../umbraco-commerce-core-models/shippingmethod.md) + +```csharp +public void DeleteShippingMethod(Guid id) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| id | The ID of the [`ShippingMethod`](../umbraco-commerce-core-models/shippingmethod.md) to delete | + +--- + +#### DeleteShippingMethod (2 of 2) + +Deletes a [`ShippingMethod`](../umbraco-commerce-core-models/shippingmethod.md) + +```csharp +public void DeleteShippingMethod(ShippingMethod entity) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| entity | The [`ShippingMethod`](../umbraco-commerce-core-models/shippingmethod.md) to delete | + + +--- + +#### GetShippingMethod (1 of 2) + +Get a [`ShippingMethodReadOnly`](../umbraco-commerce-core-models/shippingmethodreadonly.md) entity by ID + +```csharp +public ShippingMethodReadOnly GetShippingMethod(Guid id) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| id | The ID of the [`ShippingMethodReadOnly`](../umbraco-commerce-core-models/shippingmethodreadonly.md) entity to fetch | + +**Returns** + +A [`ShippingMethodReadOnly`](../umbraco-commerce-core-models/shippingmethodreadonly.md) entity + +--- + +#### GetShippingMethod (2 of 2) + +Get a [`ShippingMethodReadOnly`](../umbraco-commerce-core-models/shippingmethodreadonly.md) entity by [`Store`](../umbraco-commerce-core-models/store.md) and Alias + +```csharp +public ShippingMethodReadOnly GetShippingMethod(Guid storeId, string alias) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`ShippingMethodReadOnly`](../umbraco-commerce-core-models/shippingmethodreadonly.md) entity belongs to | +| alias | The Alias of the [`ShippingMethodReadOnly`](../umbraco-commerce-core-models/shippingmethodreadonly.md) entity to fetch | + +**Returns** + +A [`ShippingMethodReadOnly`](../umbraco-commerce-core-models/shippingmethodreadonly.md) entity + + +--- + +#### GetShippingMethods (1 of 2) + +Get a list of all [`ShippingMethodReadOnly`](../umbraco-commerce-core-models/shippingmethodreadonly.md) entities from the given [`Store`](../umbraco-commerce-core-models/store.md) + +```csharp +public IEnumerable GetShippingMethods(Guid storeId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`ShippingMethodReadOnly`](../umbraco-commerce-core-models/shippingmethodreadonly.md) entities belong to | + +**Returns** + +A list of [`ShippingMethodReadOnly`](../umbraco-commerce-core-models/shippingmethodreadonly.md) entities + +--- + +#### GetShippingMethods (2 of 2) + +Get a list of [`ShippingMethodReadOnly`](../umbraco-commerce-core-models/shippingmethodreadonly.md) entities with the given IDs + +```csharp +public IEnumerable GetShippingMethods(Guid[] ids) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| ids | The IDs of the [`ShippingMethodReadOnly`](../umbraco-commerce-core-models/shippingmethodreadonly.md) entities to fetch | + +**Returns** + +A list of [`ShippingMethodReadOnly`](../umbraco-commerce-core-models/shippingmethodreadonly.md) entities + + +--- + +#### GetShippingMethodsAllowedIn + +Get a list of all [`ShippingMethodReadOnly`](../umbraco-commerce-core-models/shippingmethodreadonly.md) entities allowed in the given [`Country`](../umbraco-commerce-core-models/country.md) and [`Region`](../umbraco-commerce-core-models/region.md) + +```csharp +public IEnumerable GetShippingMethodsAllowedIn(Guid countryId, + Guid? regionId = default(Guid?)) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| countryId | The ID of the [`Country`](../umbraco-commerce-core-models/country.md) the [`ShippingMethodReadOnly`](../umbraco-commerce-core-models/shippingmethodreadonly.md) entities should be allowed in | +| regionId | The ID of the [`Region`](../umbraco-commerce-core-models/region.md) the [`ShippingMethodReadOnly`](../umbraco-commerce-core-models/shippingmethodreadonly.md) entities should be allowed in | + +**Returns** + +A list of [`ShippingMethodReadOnly`](../umbraco-commerce-core-models/shippingmethodreadonly.md) entities + + +--- + +#### SaveShippingMethod + +Saves a [`ShippingMethod`](../umbraco-commerce-core-models/shippingmethod.md) + +```csharp +public void SaveShippingMethod(ShippingMethod entity) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| entity | The [`ShippingMethod`](../umbraco-commerce-core-models/shippingmethod.md) to save | + + +--- + +#### ShippingMethodExists + +Check to see if a [`ShippingMethodReadOnly`](../umbraco-commerce-core-models/shippingmethodreadonly.md) exists in the given [`Store`](../umbraco-commerce-core-models/store.md) with the given Alias + +```csharp +public bool ShippingMethodExists(Guid storeId, string alias) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`ShippingMethodReadOnly`](../umbraco-commerce-core-models/shippingmethodreadonly.md) entity belongs to | +| alias | The Alias of the [`ShippingMethodReadOnly`](../umbraco-commerce-core-models/shippingmethodreadonly.md) entity to check | + +**Returns** + +Returns `true` if the [`ShippingMethodReadOnly`](../umbraco-commerce-core-models/shippingmethodreadonly.md) exists, otherwise returns `false`. + + +--- + +#### SortShippingMethods + +Sorts a list of [`ShippingMethod`](../umbraco-commerce-core-models/shippingmethod.md) entities by ID according to the order of those IDs + +```csharp +public void SortShippingMethods(Guid[] sortedIds) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| sortedIds | The IDs of the [`ShippingMethod`](../umbraco-commerce-core-models/shippingmethod.md) entities to sort, in the order by which to sort them | + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/istockservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/istockservice.md new file mode 100644 index 00000000000..4d8d4109309 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/istockservice.md @@ -0,0 +1,394 @@ +--- +title: IStockService +description: API reference for IStockService in Umbraco Commerce +--- +## IStockService + +```csharp +public interface IStockService +``` + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Methods + +#### GetStock (1 of 2) + +Gets the stock level of a given product + +```csharp +public decimal? GetStock(Guid storeId, string productReference) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the product belongs to | +| productReference | The unique reference of the product who's stock level to retrieve | + +**Returns** + +The stock level of the product + +--- + +#### GetStock (2 of 2) + +Gets the stock level of a given product + +```csharp +public decimal? GetStock(Guid storeId, string productReference, string productVariantReference) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the product belongs to | +| productReference | The unique reference of the product who's stock level to retrieve | +| productVariantReference | The unique reference of the variant of the product who's stock level to retrieve | + +**Returns** + +The stock level of the product + + +--- + +#### IncreaseStock (1 of 2) + +Increases the stock level of a given product + +```csharp +public void IncreaseStock(Guid storeId, string productReference, decimal increaseBy) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the product belongs to | +| productReference | The unique reference of the product who's stock level to increase | +| increaseBy | The amount to increase the stock level by | + +--- + +#### IncreaseStock (2 of 2) + +Increases the stock level of a given product + +```csharp +public void IncreaseStock(Guid storeId, string productReference, string productVariantReference, + decimal increaseBy) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the product belongs to | +| productReference | The unique reference of the product who's stock level to increase | +| productVariantReference | The unique reference of variant of the product who's stock level to increase | +| increaseBy | The amount to increase the stock level by | + + +--- + +#### InvalidateStockCache + +Invalidate the whole stock cache + +```csharp +public void InvalidateStockCache() +``` + + +--- + +#### InvalidateStockCache + +Invalidates the stock cache for the given product / product variant + +```csharp +public void InvalidateStockCache(Guid storeId, string productReference, + string productVariantReference) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the product belongs to | +| productReference | The unique reference of the product who's stock level to increase | +| productVariantReference | The unique reference of variant of the product who's stock level to increase | + + +--- + +#### ReduceStock (1 of 2) + +Reduces the stock level of a given product + +```csharp +public void ReduceStock(Guid storeId, string productReference, decimal reduceBy) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the product belongs to | +| productReference | The unique reference of the product who's stock level to reduce | +| reduceBy | The amount to reduce the stock level by | + +--- + +#### ReduceStock (2 of 2) + +Reduces the stock level of a given product + +```csharp +public void ReduceStock(Guid storeId, string productReference, string productVariantReference, + decimal reduceBy) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the product belongs to | +| productReference | The unique reference of the product who's stock level to reduce | +| productVariantReference | The unique reference of the variant of the product who's stock level to reduce | +| reduceBy | The amount to reduce the stock level by | + + +--- + +#### SetStock (1 of 2) + +Sets the stock level of a given product + +```csharp +public void SetStock(Guid storeId, string productReference, decimal value) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the product belongs to | +| productReference | The unique reference of the product who's stock level to set | +| value | The value to set the stock level to | + +--- + +#### SetStock (2 of 2) + +Sets the stock level of a given product + +```csharp +public void SetStock(Guid storeId, string productReference, string productVariantReference, + decimal value) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the product belongs to | +| productReference | The unique reference of the product who's stock level to set | +| productVariantReference | The unique reference of the variant of the product who's stock level to set | +| value | The value to set the stock level to | + + +--- + +#### TryGetStock (1 of 2) + +Trys to get the stock level of a given product + +```csharp +public bool TryGetStock(Guid storeId, string productReference, out decimal? stock) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the product belongs to | +| productReference | The unique reference of the product who's stock level to retrieve | +| stock | The stock level of the product | + +**Returns** + +True if the stock level was retrieved, false if not + +--- + +#### TryGetStock (2 of 2) + +Trys to get the stock level of a given product + +```csharp +public bool TryGetStock(Guid storeId, string productReference, string productVariantReference, + out decimal? stock) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the product belongs to | +| productReference | The unique reference of the product who's stock level to retrieve | +| productVariantReference | The unique reference of the variant of the product who's stock level to retrieve | +| stock | The stock level of the product | + +**Returns** + +True if the stock level was retrieved, false if not + + +--- + +#### TryIncreaseStock (1 of 2) + +Trys to increase the stock level of a given product + +```csharp +public bool TryIncreaseStock(Guid storeId, string productReference, decimal increaseBy) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the product belongs to | +| productReference | The unique reference of the product who's stock level to retrieve | +| increaseBy | The amount to increase the stock level by | + +**Returns** + +True if the stock level was increased, false if not + +--- + +#### TryIncreaseStock (2 of 2) + +Trys to increase the stock level of a given product + +```csharp +public bool TryIncreaseStock(Guid storeId, string productReference, string productVariantReference, + decimal increaseBy) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the product belongs to | +| productReference | The unique reference of the product who's stock level to retrieve | +| productVariantReference | The unique reference of variant of the product who's stock level to increase | +| increaseBy | The amount to increase the stock level by | + +**Returns** + +True if the stock level was increased, false if not + + +--- + +#### TryReduceStock (1 of 2) + +Trys to reduce the stock level of a given product + +```csharp +public bool TryReduceStock(Guid storeId, string productReference, decimal reduceBy) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the product belongs to | +| productReference | The unique reference of the product who's stock level to retrieve | +| reduceBy | The amount to reduce the stock level by | + +**Returns** + +True if the stock level was reduced, false if not + +--- + +#### TryReduceStock (2 of 2) + +Trys to reduce the stock level of a given product + +```csharp +public bool TryReduceStock(Guid storeId, string productReference, string productVariantReference, + decimal reduceBy) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the product belongs to | +| productReference | The unique reference of the product who's stock level to retrieve | +| productVariantReference | The unique reference of the variant of the product who's stock level to reduce | +| reduceBy | The amount to reduce the stock level by | + +**Returns** + +True if the stock level was reduced, false if not + + +--- + +#### TrySetStock (1 of 2) + +Trys to set the stock level of a given product + +```csharp +public bool TrySetStock(Guid storeId, string productReference, decimal value) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the product belongs to | +| productReference | The unique reference of the product who's stock level to retrieve | +| value | The value to set the stock level to | + +**Returns** + +True if the stock level was set, false if not + +--- + +#### TrySetStock (2 of 2) + +Trys to set the stock level of a given product + +```csharp +public bool TrySetStock(Guid storeId, string productReference, string productVariantReference, + decimal value) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the product belongs to | +| productReference | The unique reference of the product who's stock level to retrieve | +| productVariantReference | The unique reference of the variant of the product who's stock level to set | +| value | The value to set the stock level to | + +**Returns** + +True if the stock level was set, false if not + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/istoreanalyticsservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/istoreanalyticsservice.md new file mode 100644 index 00000000000..e2d3fc5d3dd --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/istoreanalyticsservice.md @@ -0,0 +1,32 @@ +--- +title: IStoreAnalyticsService +description: API reference for IStoreAnalyticsService in Umbraco Commerce +--- +## IStoreAnalyticsService + +```csharp +public interface IStoreAnalyticsService +``` + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Methods + +#### GetStoreStatsForDateRange + +```csharp +public StoreStats GetStoreStatsForDateRange(Guid storeId, DateTime fromUtc, DateTime toUtc) +``` + + +--- + +#### GetStoreSummariesFor + +```csharp +public IEnumerable GetStoreSummariesFor(string userId, string[] roles) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/istoreservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/istoreservice.md new file mode 100644 index 00000000000..4e6aec7110b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/istoreservice.md @@ -0,0 +1,186 @@ +--- +title: IStoreService +description: API reference for IStoreService in Umbraco Commerce +--- +## IStoreService + +Define the Store service + +```csharp +public interface IStoreService : ICachedEntityService, IService +``` + +**Inheritance** + +* interface [ICachedEntityService<TEntityType>](icachedentityservice-1.md) +* interface [IService](iservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Methods + +#### DeleteStore (1 of 2) + +Deletes an [`Store`](../umbraco-commerce-core-models/store.md) + +```csharp +public void DeleteStore(Guid id) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| id | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) to delete | + +--- + +#### DeleteStore (2 of 2) + +Deletes an [`Store`](../umbraco-commerce-core-models/store.md) + +```csharp +public void DeleteStore(Store entity) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| entity | The [`Store`](../umbraco-commerce-core-models/store.md) to delete | + + +--- + +#### GetStore (1 of 2) + +Get an [`StoreReadOnly`](../umbraco-commerce-core-models/storereadonly.md) entity by ID + +```csharp +public StoreReadOnly GetStore(Guid id) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| id | The ID of the [`StoreReadOnly`](../umbraco-commerce-core-models/storereadonly.md) entity to fetch | + +**Returns** + +An [`StoreReadOnly`](../umbraco-commerce-core-models/storereadonly.md) entity + +--- + +#### GetStore (2 of 2) + +Get an [`StoreReadOnly`](../umbraco-commerce-core-models/storereadonly.md) entity by Alias + +```csharp +public StoreReadOnly GetStore(string alias) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| alias | The Alias of the [`StoreReadOnly`](../umbraco-commerce-core-models/storereadonly.md) entity to fetch | + +**Returns** + +An [`StoreReadOnly`](../umbraco-commerce-core-models/storereadonly.md) entity + + +--- + +#### GetStores + +Get a list of all [`StoreReadOnly`](../umbraco-commerce-core-models/storereadonly.md) entities + +```csharp +public IEnumerable GetStores() +``` + +**Returns** + +A list of [`StoreReadOnly`](../umbraco-commerce-core-models/storereadonly.md) entities + + +--- + +#### GetStores + +Get a list of [`StoreReadOnly`](../umbraco-commerce-core-models/storereadonly.md) entities with the given IDs + +```csharp +public IEnumerable GetStores(Guid[] ids) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| ids | The IDs of the [`StoreReadOnly`](../umbraco-commerce-core-models/storereadonly.md) entities to fetch | + +**Returns** + +A list of [`StoreReadOnly`](../umbraco-commerce-core-models/storereadonly.md) entities + + +--- + +#### SaveStore + +Saves an [`Store`](../umbraco-commerce-core-models/store.md) + +```csharp +public void SaveStore(Store entity) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| entity | The [`Store`](../umbraco-commerce-core-models/store.md) to save | + + +--- + +#### SortStores + +Sorts a list of [`Store`](../umbraco-commerce-core-models/store.md) entities by ID according to the order of those IDs + +```csharp +public void SortStores(Guid[] sortedIds) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| sortedIds | The IDs of the [`Store`](../umbraco-commerce-core-models/store.md) entities to sort, in the order by which to sort them | + + +--- + +#### StoreExists + +Check to see if a [`StoreReadOnly`](../umbraco-commerce-core-models/storereadonly.md) exists with the given Alias + +```csharp +public bool StoreExists(string alias) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| alias | The Alias of the [`StoreReadOnly`](../umbraco-commerce-core-models/storereadonly.md) entity to check | + +**Returns** + +Returns `true` if the [`StoreReadOnly`](../umbraco-commerce-core-models/storereadonly.md) exists, otherwise returns `false`. + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/itagservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/itagservice.md new file mode 100644 index 00000000000..556e3e47655 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/itagservice.md @@ -0,0 +1,83 @@ +--- +title: ITagService +description: API reference for ITagService in Umbraco Commerce +--- +## ITagService + +```csharp +public interface ITagService +``` + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Methods + +#### GetEntityTags + +Get a list of all the tags for a given entity + +```csharp +public IEnumerable GetEntityTags(Guid storeId, Guid entityId, string startsWith = null) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the tags belong to | +| entityId | The ID of the entity the tags belong to | +| startsWith | A string to use to find results that start with a given query | + +**Returns** + +A list of tags + + +--- + +#### GetTags + +Get a list of all tags for a given store + +```csharp +public IEnumerable GetTags(Guid storeId, string startsWith = null) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the tags belong to | +| startsWith | A string to use to find results that start with a given query | + +**Returns** + +A list of tags + + +--- + +#### GetTagsByEntityType + +Get a list of all tags for a given store / entity type + +```csharp +public IEnumerable GetTagsByEntityType(Guid storeId, string entityType, + string startsWith = null) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the store the tags belong to | +| entityType | The type of the entity | +| startsWith | A string to use to find results that start with a given query | + +**Returns** + +A list of tags + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/itaxservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/itaxservice.md new file mode 100644 index 00000000000..27f81ee2e2e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/itaxservice.md @@ -0,0 +1,193 @@ +--- +title: ITaxService +description: API reference for ITaxService in Umbraco Commerce +--- +## ITaxService + +Defines the Tax service + +```csharp +public interface ITaxService : ICachedEntityService, IService +``` + +**Inheritance** + +* interface [ICachedEntityService<TEntityType>](icachedentityservice-1.md) +* interface [IService](iservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Methods + +#### DeleteTaxClass (1 of 2) + +Deletes a [`TaxClass`](../umbraco-commerce-core-models/taxclass.md) + +```csharp +public void DeleteTaxClass(Guid id) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| id | The ID of the [`TaxClass`](../umbraco-commerce-core-models/taxclass.md) to delete | + +--- + +#### DeleteTaxClass (2 of 2) + +Deletes a [`TaxClass`](../umbraco-commerce-core-models/taxclass.md) + +```csharp +public void DeleteTaxClass(TaxClass entity) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| entity | The [`TaxClass`](../umbraco-commerce-core-models/taxclass.md) to delete | + + +--- + +#### GetTaxClass (1 of 2) + +Get a [`TaxClassReadOnly`](../umbraco-commerce-core-models/taxclassreadonly.md) entity by ID + +```csharp +public TaxClassReadOnly GetTaxClass(Guid id) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| id | The ID of the [`TaxClassReadOnly`](../umbraco-commerce-core-models/taxclassreadonly.md) entity to fetch | + +**Returns** + +A [`TaxClassReadOnly`](../umbraco-commerce-core-models/taxclassreadonly.md) entity + +--- + +#### GetTaxClass (2 of 2) + +Get a [`TaxClassReadOnly`](../umbraco-commerce-core-models/taxclassreadonly.md) entity by [`Store`](../umbraco-commerce-core-models/store.md) and Alias + +```csharp +public TaxClassReadOnly GetTaxClass(Guid storeId, string alias) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`TaxClassReadOnly`](../umbraco-commerce-core-models/taxclassreadonly.md) entity belongs to | +| alias | The Alias of the [`TaxClassReadOnly`](../umbraco-commerce-core-models/taxclassreadonly.md) entity to fetch | + +**Returns** + +A [`TaxClassReadOnly`](../umbraco-commerce-core-models/taxclassreadonly.md) entity + + +--- + +#### GetTaxClasses (1 of 2) + +Get a list of all [`TaxClassReadOnly`](../umbraco-commerce-core-models/taxclassreadonly.md) entities from the given [`Store`](../umbraco-commerce-core-models/store.md) + +```csharp +public IEnumerable GetTaxClasses(Guid storeId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`TaxClassReadOnly`](../umbraco-commerce-core-models/taxclassreadonly.md) entities belong to | + +**Returns** + +A list of [`TaxClassReadOnly`](../umbraco-commerce-core-models/taxclassreadonly.md) entities + +--- + +#### GetTaxClasses (2 of 2) + +Get a list of [`TaxClassReadOnly`](../umbraco-commerce-core-models/taxclassreadonly.md) entities with the given IDs + +```csharp +public IEnumerable GetTaxClasses(Guid[] ids) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| ids | The IDs of the [`TaxClassReadOnly`](../umbraco-commerce-core-models/taxclassreadonly.md) entities to fetch | + +**Returns** + +A list of [`TaxClassReadOnly`](../umbraco-commerce-core-models/taxclassreadonly.md) entities + + +--- + +#### SaveTaxClass + +Saves a [`TaxClass`](../umbraco-commerce-core-models/taxclass.md) + +```csharp +public void SaveTaxClass(TaxClass entity) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| entity | The [`TaxClass`](../umbraco-commerce-core-models/taxclass.md) to save | + + +--- + +#### SortTaxClasses + +Sorts a list of [`TaxClass`](../umbraco-commerce-core-models/taxclass.md) entities by ID according to the order of those IDs + +```csharp +public void SortTaxClasses(Guid[] sortedIds) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| sortedIds | The IDs of the [`TaxClass`](../umbraco-commerce-core-models/taxclass.md) entities to sort, in the order by which to sort them | + + +--- + +#### TaxClassExists + +Check to see if a [`TaxClassReadOnly`](../umbraco-commerce-core-models/taxclassreadonly.md) exists in the given [`Store`](../umbraco-commerce-core-models/store.md) with the given Alias + +```csharp +public bool TaxClassExists(Guid storeId, string alias) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| storeId | The ID of the [`Store`](../umbraco-commerce-core-models/store.md) the [`TaxClassReadOnly`](../umbraco-commerce-core-models/taxclassreadonly.md) entity belongs to | +| alias | The Alias of the [`TaxClassReadOnly`](../umbraco-commerce-core-models/taxclassreadonly.md) entity to check | + +**Returns** + +Returns `true` if the [`TaxClassReadOnly`](../umbraco-commerce-core-models/taxclassreadonly.md) exists, otherwise returns `false`. + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/itranslationservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/itranslationservice.md new file mode 100644 index 00000000000..6b4c0ae94fe --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/itranslationservice.md @@ -0,0 +1,104 @@ +--- +title: ITranslationService +description: API reference for ITranslationService in Umbraco Commerce +--- +## ITranslationService + +Defines the Translation service + +```csharp +public interface ITranslationService +``` + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Methods + +#### TranslateValue (1 of 2) + +Translates a value to the given language + +```csharp +public object TranslateValue(object value, string languageIsoCode) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| value | The value to attempt to translate | +| languageIsoCode | The ISO Code of the language to attempt to translate to | + +**Returns** + +The translated value, or the original value if a translation was unsuccessful + +--- + +#### TranslateValue (2 of 2) + +Translates a value to the given language + +```csharp +public object TranslateValue(object value, string languageIsoCode, out string usedLanguageIsoCode) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| value | The value to attempt to translate | +| languageIsoCode | The ISO Code of the language to attempt to translate to | +| usedLanguageIsoCode | The ISO Code of the language that was used for the translation as it could differ from the requested language if a fallback language is in place | + +**Returns** + +The translated value, or the original value if a translation was unsuccessful + + +--- + +#### TranslateValues (1 of 2) + +Translates a series of values to the given language + +```csharp +public IEnumerable TranslateValues(IEnumerable values, string languageIsoCode) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| values | The values to attempt to translate | +| languageIsoCode | The ISO Code of the language to attempt to translate to | + +**Returns** + +A list of translated value, or the original value if a translation was unsuccessful + +--- + +#### TranslateValues (2 of 2) + +Translate a series of dictionary values to the given language + +```csharp +public IDictionary TranslateValues( + IEnumerable> values, string languageIsoCode) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| values | The values to attempt to translate | +| languageIsoCode | The ISO Code of the language to attempt to translate to | + +**Returns** + +A dictionary of translated values, or the original value if a translation was unsuccessful + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/orderservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/orderservice.md new file mode 100644 index 00000000000..c09af6704fb --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/orderservice.md @@ -0,0 +1,191 @@ +--- +title: OrderService +description: API reference for OrderService in Umbraco Commerce +--- +## OrderService + +```csharp +public class OrderService : ServiceBase, ICachedEntityService, + IOrderService +``` + +**Inheritance** + +* Class [ServiceBase<TSelf>](servicebase-1.md) +* interface [ICachedEntityService<TEntityType>](icachedentityservice-1.md) +* interface [IOrderService](iorderservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Constructors + +#### OrderService + +```csharp +public OrderService(IRepositoryFactory repositoryFactory, IUnitOfWorkProvider uowProvider, + ILogger logger, ICacheAccessor cacheAccessor, + IOrderNumberGenerator orderNumberGenerator, ICurrencyExchangeRateService exchangeRateService, + IOrderQuerySpecificationFactory orderQuerySpecificationFactory, + IOrderSortSpecificationFactory orderSortSpecificationFactory, + OrderFinderCollection orderFinderCollection) +``` + + +### Methods + +#### DeleteOrder (1 of 4) + +```csharp +public void DeleteOrder(Guid id) +``` + +--- + +#### DeleteOrder (2 of 4) + +```csharp +public void DeleteOrder(Guid id, bool revertFinalized) +``` + +--- + +#### DeleteOrder (3 of 4) + +```csharp +public void DeleteOrder(Order entity) +``` + +--- + +#### DeleteOrder (4 of 4) + +```csharp +public void DeleteOrder(Order entity, bool revertFinalized) +``` + + +--- + +#### FindOrder + +```csharp +public OrderReadOnly FindOrder(Guid storeId, string customerReference) +``` + + +--- + +#### GetAllOrdersForCustomer + +```csharp +public IEnumerable GetAllOrdersForCustomer(Guid storeId, + string customerReferenceOrEmail) +``` + + +--- + +#### GetFinalizedOrderCount + +```csharp +public long GetFinalizedOrderCount(Guid storeId) +``` + + +--- + +#### GetFinalizedOrdersForCustomer + +```csharp +public IEnumerable GetFinalizedOrdersForCustomer(Guid storeId, + string customerReferenceOrEmail) +``` + + +--- + +#### GetOpenOrdersForCustomer + +```csharp +public IEnumerable GetOpenOrdersForCustomer(Guid storeId, + string customerReferenceOrEmail) +``` + + +--- + +#### GetOrder (1 of 2) + +```csharp +public OrderReadOnly GetOrder(Guid id) +``` + +--- + +#### GetOrder (2 of 2) + +```csharp +public OrderReadOnly GetOrder(Guid storeId, string cartOrOrderNumber) +``` + + +--- + +#### GetOrders + +```csharp +public IEnumerable GetOrders(Guid[] ids) +``` + + +--- + +#### SaveOrder + +```csharp +public void SaveOrder(Order entity) +``` + + +--- + +#### SearchOrders (1 of 4) + +```csharp +public PagedResult SearchOrders( + Func> query, + long currentPage = 1, long itemsPerPage = 50) +``` + +--- + +#### SearchOrders (2 of 4) + +```csharp +public PagedResult SearchOrders( + Func> query, + Func> sort, + long currentPage = 1, long itemsPerPage = 50) +``` + +--- + +#### SearchOrders (3 of 4) + +```csharp +public PagedResult SearchOrders(IQuerySpecification query, + long currentPage = 1, long itemsPerPage = 50) +``` + +--- + +#### SearchOrders (4 of 4) + +```csharp +public PagedResult SearchOrders(IQuerySpecification query, + ISortSpecification sort, long currentPage = 1, long itemsPerPage = 50) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/orderstatusservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/orderstatusservice.md new file mode 100644 index 00000000000..51a36e9d2be --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/orderstatusservice.md @@ -0,0 +1,109 @@ +--- +title: OrderStatusService +description: API reference for OrderStatusService in Umbraco Commerce +--- +## OrderStatusService + +```csharp +public class OrderStatusService : ServiceBase, + ICachedEntityService, IOrderStatusService +``` + +**Inheritance** + +* Class [ServiceBase<TSelf>](servicebase-1.md) +* interface [ICachedEntityService<TEntityType>](icachedentityservice-1.md) +* interface [IOrderStatusService](iorderstatusservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Constructors + +#### OrderStatusService + +```csharp +public OrderStatusService(IRepositoryFactory repositoryFactory, IUnitOfWorkProvider uowProvider, + ILogger logger, ICacheAccessor cacheAccessor) +``` + + +### Methods + +#### DeleteOrderStatus (1 of 2) + +```csharp +public void DeleteOrderStatus(Guid id) +``` + +--- + +#### DeleteOrderStatus (2 of 2) + +```csharp +public void DeleteOrderStatus(OrderStatus entity) +``` + + +--- + +#### GetOrderStatus (1 of 2) + +```csharp +public OrderStatusReadOnly GetOrderStatus(Guid id) +``` + +--- + +#### GetOrderStatus (2 of 2) + +```csharp +public OrderStatusReadOnly GetOrderStatus(Guid storeId, string alias) +``` + + +--- + +#### GetOrderStatuses (1 of 2) + +```csharp +public IEnumerable GetOrderStatuses(Guid storeId) +``` + +--- + +#### GetOrderStatuses (2 of 2) + +```csharp +public IEnumerable GetOrderStatuses(Guid[] ids) +``` + + +--- + +#### OrderStatusExists + +```csharp +public bool OrderStatusExists(Guid storeId, string alias) +``` + + +--- + +#### SaveOrderStatus + +```csharp +public void SaveOrderStatus(OrderStatus entity) +``` + + +--- + +#### SortOrderStatuses + +```csharp +public void SortOrderStatuses(Guid[] sortedIds) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/paymentmethodservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/paymentmethodservice.md new file mode 100644 index 00000000000..b247b59ed86 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/paymentmethodservice.md @@ -0,0 +1,118 @@ +--- +title: PaymentMethodService +description: API reference for PaymentMethodService in Umbraco Commerce +--- +## PaymentMethodService + +```csharp +public class PaymentMethodService : ServiceBase, + ICachedEntityService, IPaymentMethodService +``` + +**Inheritance** + +* Class [ServiceBase<TSelf>](servicebase-1.md) +* interface [ICachedEntityService<TEntityType>](icachedentityservice-1.md) +* interface [IPaymentMethodService](ipaymentmethodservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Constructors + +#### PaymentMethodService + +```csharp +public PaymentMethodService(IRepositoryFactory repositoryFactory, IUnitOfWorkProvider uowProvider, + ILogger logger, ICacheAccessor cacheAccessor) +``` + + +### Methods + +#### DeletePaymentMethod (1 of 2) + +```csharp +public void DeletePaymentMethod(Guid id) +``` + +--- + +#### DeletePaymentMethod (2 of 2) + +```csharp +public void DeletePaymentMethod(PaymentMethod entity) +``` + + +--- + +#### GetPaymentMethod (1 of 2) + +```csharp +public PaymentMethodReadOnly GetPaymentMethod(Guid id) +``` + +--- + +#### GetPaymentMethod (2 of 2) + +```csharp +public PaymentMethodReadOnly GetPaymentMethod(Guid storeId, string alias) +``` + + +--- + +#### GetPaymentMethods (1 of 2) + +```csharp +public IEnumerable GetPaymentMethods(Guid storeId) +``` + +--- + +#### GetPaymentMethods (2 of 2) + +```csharp +public IEnumerable GetPaymentMethods(Guid[] ids) +``` + + +--- + +#### GetPaymentMethodsAllowedIn + +```csharp +public IEnumerable GetPaymentMethodsAllowedIn(Guid countryId, Guid? regionId) +``` + + +--- + +#### PaymentMethodExists + +```csharp +public bool PaymentMethodExists(Guid storeId, string alias) +``` + + +--- + +#### SavePaymentMethod + +```csharp +public void SavePaymentMethod(PaymentMethod entity) +``` + + +--- + +#### SortPaymentMethods + +```csharp +public void SortPaymentMethods(Guid[] sortedIds) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/paymentproviderservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/paymentproviderservice.md new file mode 100644 index 00000000000..07845e1fdd8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/paymentproviderservice.md @@ -0,0 +1,54 @@ +--- +title: PaymentProviderService +description: API reference for PaymentProviderService in Umbraco Commerce +--- +## PaymentProviderService + +```csharp +public class PaymentProviderService : IPaymentProviderService +``` + +**Inheritance** + +* interface [IPaymentProviderService](ipaymentproviderservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Constructors + +#### PaymentProviderService + +```csharp +public PaymentProviderService(PaymentProviderCollection paymentProviders) +``` + + +### Methods + +#### GetPaymentProvider + +```csharp +public IPaymentProvider GetPaymentProvider(string alias) +``` + + +--- + +#### GetPaymentProviderDefinitions + +```csharp +public IEnumerable GetPaymentProviderDefinitions() +``` + + +--- + +#### GetPaymentProviderScaffold + +```csharp +public PaymentProviderScaffold GetPaymentProviderScaffold(string alias) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/paymentservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/paymentservice.md new file mode 100644 index 00000000000..d5326151605 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/paymentservice.md @@ -0,0 +1,71 @@ +--- +title: PaymentService +description: API reference for PaymentService in Umbraco Commerce +--- +## PaymentService + +```csharp +public class PaymentService : ServiceBase, IPaymentService +``` + +**Inheritance** + +* Class [ServiceBase<TSelf>](servicebase-1.md) +* interface [IPaymentService](ipaymentservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Constructors + +#### PaymentService + +```csharp +public PaymentService(IRepositoryFactory repositoryFactory, IUnitOfWorkProvider uowProvider, + ILogger logger, ICacheAccessor cacheAccessor, + IPaymentMethodService paymentMethodService, IPaymentProviderService paymentProviderService, + PaymentProviderContextFactory paymentProviderContextFactory) +``` + + +### Methods + +#### CancelOrderPaymentAsync + +```csharp +public Task CancelOrderPaymentAsync(OrderReadOnly order, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + +--- + +#### CaptureOrderPaymentAsync + +```csharp +public Task CaptureOrderPaymentAsync(OrderReadOnly order, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + +--- + +#### FetchOrderPaymentStatusAsync + +```csharp +public Task FetchOrderPaymentStatusAsync(OrderReadOnly order, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + +--- + +#### RefundOrderPaymentAsync + +```csharp +public Task RefundOrderPaymentAsync(OrderReadOnly order, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/pricefreezerservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/pricefreezerservice.md new file mode 100644 index 00000000000..f5c076d8f3a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/pricefreezerservice.md @@ -0,0 +1,59 @@ +--- +title: PriceFreezerService +description: API reference for PriceFreezerService in Umbraco Commerce +--- +## PriceFreezerService + +```csharp +public class PriceFreezerService : ServiceBase, IPriceFreezerService +``` + +**Inheritance** + +* Class [ServiceBase<TSelf>](servicebase-1.md) +* interface [IPriceFreezerService](ipricefreezerservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Constructors + +#### PriceFreezerService + +```csharp +public PriceFreezerService(IRepositoryFactory repositoryFactory, IUnitOfWorkProvider uowProvider, + ILogger logger, ICacheAccessor cacheAccessor) +``` + + +### Methods + +#### FreezePrice + +```csharp +public void FreezePrice(Guid orderId, string key, FreezablePrice price) +``` + + +--- + +#### GetFrozenPrice + +```csharp +public FreezablePrice GetFrozenPrice(Guid orderId, string key, Guid currencyId, + Guid? countryId = default(Guid?), Guid? regiondId = default(Guid?)) +``` + + +--- + +#### ThawPrices + +```csharp +public void ThawPrices(Guid? orderId = default(Guid?), string partialKey = null, + Guid? currencyId = default(Guid?), Guid? countryId = default(Guid?), + Guid? regiondId = default(Guid?), DateTime? olderThan = default(DateTime?)) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/printtemplateservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/printtemplateservice.md new file mode 100644 index 00000000000..a432a946b41 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/printtemplateservice.md @@ -0,0 +1,109 @@ +--- +title: PrintTemplateService +description: API reference for PrintTemplateService in Umbraco Commerce +--- +## PrintTemplateService + +```csharp +public class PrintTemplateService : ServiceBase, + ICachedEntityService, IPrintTemplateService +``` + +**Inheritance** + +* Class [ServiceBase<TSelf>](servicebase-1.md) +* interface [ICachedEntityService<TEntityType>](icachedentityservice-1.md) +* interface [IPrintTemplateService](iprinttemplateservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Constructors + +#### PrintTemplateService + +```csharp +public PrintTemplateService(IRepositoryFactory repositoryFactory, IUnitOfWorkProvider uowProvider, + ILogger logger, ICacheAccessor cacheAccessor) +``` + + +### Methods + +#### DeletePrintTemplate (1 of 2) + +```csharp +public void DeletePrintTemplate(Guid id) +``` + +--- + +#### DeletePrintTemplate (2 of 2) + +```csharp +public void DeletePrintTemplate(PrintTemplate entity) +``` + + +--- + +#### GetPrintTemplate (1 of 2) + +```csharp +public PrintTemplateReadOnly GetPrintTemplate(Guid id) +``` + +--- + +#### GetPrintTemplate (2 of 2) + +```csharp +public PrintTemplateReadOnly GetPrintTemplate(Guid storeId, string alias) +``` + + +--- + +#### GetPrintTemplates (1 of 2) + +```csharp +public IEnumerable GetPrintTemplates(Guid storeId) +``` + +--- + +#### GetPrintTemplates (2 of 2) + +```csharp +public IEnumerable GetPrintTemplates(Guid[] ids) +``` + + +--- + +#### PrintTemplateExists + +```csharp +public bool PrintTemplateExists(Guid storeId, string alias) +``` + + +--- + +#### SavePrintTemplate + +```csharp +public void SavePrintTemplate(PrintTemplate entity) +``` + + +--- + +#### SortPrintTemplates + +```csharp +public void SortPrintTemplates(Guid[] sortedIds) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/productattributeservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/productattributeservice.md new file mode 100644 index 00000000000..82827db9264 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/productattributeservice.md @@ -0,0 +1,189 @@ +--- +title: ProductAttributeService +description: API reference for ProductAttributeService in Umbraco Commerce +--- +## ProductAttributeService + +```csharp +public class ProductAttributeService : ServiceBase, + ICachedEntityService, + ICachedEntityService, IProductAttributeService +``` + +**Inheritance** + +* Class [ServiceBase<TSelf>](servicebase-1.md) +* interface [ICachedEntityService<TEntityType>](icachedentityservice-1.md) +* interface [IProductAttributeService](iproductattributeservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Constructors + +#### ProductAttributeService + +```csharp +public ProductAttributeService(IRepositoryFactory repositoryFactory, + IUnitOfWorkProvider uowProvider, ILogger logger, + ICacheAccessor cacheAccessor) +``` + + +### Methods + +#### DeleteProductAttribute (1 of 2) + +```csharp +public void DeleteProductAttribute(Guid id) +``` + +--- + +#### DeleteProductAttribute (2 of 2) + +```csharp +public void DeleteProductAttribute(ProductAttribute entity) +``` + + +--- + +#### DeleteProductAttributePreset (1 of 2) + +```csharp +public void DeleteProductAttributePreset(Guid id) +``` + +--- + +#### DeleteProductAttributePreset (2 of 2) + +```csharp +public void DeleteProductAttributePreset(ProductAttributePreset entity) +``` + + +--- + +#### GetProductAttribute (1 of 2) + +```csharp +public ProductAttributeReadOnly GetProductAttribute(Guid id) +``` + +--- + +#### GetProductAttribute (2 of 2) + +```csharp +public ProductAttributeReadOnly GetProductAttribute(Guid storeId, string alias) +``` + + +--- + +#### GetProductAttributePreset (1 of 2) + +```csharp +public ProductAttributePresetReadOnly GetProductAttributePreset(Guid id) +``` + +--- + +#### GetProductAttributePreset (2 of 2) + +```csharp +public ProductAttributePresetReadOnly GetProductAttributePreset(Guid storeId, string alias) +``` + + +--- + +#### GetProductAttributePresets (1 of 2) + +```csharp +public IEnumerable GetProductAttributePresets(Guid storeId) +``` + +--- + +#### GetProductAttributePresets (2 of 2) + +```csharp +public IEnumerable GetProductAttributePresets(Guid[] ids) +``` + + +--- + +#### GetProductAttributes (1 of 2) + +```csharp +public IEnumerable GetProductAttributes(Guid storeId) +``` + +--- + +#### GetProductAttributes (2 of 2) + +```csharp +public IEnumerable GetProductAttributes(Guid[] ids) +``` + + +--- + +#### ProductAttributeExists + +```csharp +public bool ProductAttributeExists(Guid storeId, string alias) +``` + + +--- + +#### ProductAttributePresetExists + +```csharp +public bool ProductAttributePresetExists(Guid storeId, string alias) +``` + + +--- + +#### SaveProductAttribute + +```csharp +public void SaveProductAttribute(ProductAttribute entity) +``` + + +--- + +#### SaveProductAttributePreset + +```csharp +public void SaveProductAttributePreset(ProductAttributePreset entity) +``` + + +--- + +#### SortProductAttributePresets + +```csharp +public void SortProductAttributePresets(Guid[] sortedIds) +``` + + +--- + +#### SortProductAttributes + +```csharp +public void SortProductAttributes(Guid[] sortedIds) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/productpricefreezerservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/productpricefreezerservice.md new file mode 100644 index 00000000000..87388ac49ee --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/productpricefreezerservice.md @@ -0,0 +1,141 @@ +--- +title: ProductPriceFreezerService +description: API reference for ProductPriceFreezerService in Umbraco Commerce +--- +## ProductPriceFreezerService + +```csharp +public class ProductPriceFreezerService : IProductPriceFreezerService +``` + +**Inheritance** + +* interface [IProductPriceFreezerService](iproductpricefreezerservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Constructors + +#### ProductPriceFreezerService + +```csharp +public ProductPriceFreezerService(IProductService productService, + IPriceFreezerService priceFreezerService) +``` + + +### Methods + +#### FreezeProductPrice (1 of 2) + +```csharp +public void FreezeProductPrice(Guid storeId, Guid orderId, string productReference, + ProductPrice price) +``` + +--- + +#### FreezeProductPrice (2 of 2) + +```csharp +public void FreezeProductPrice(Guid storeId, Guid orderId, string productReference, + string productVariantReference, ProductPrice price) +``` + + +--- + +#### GetOrCreateFrozenProductPrice (1 of 2) + +```csharp +public ProductPrice GetOrCreateFrozenProductPrice(Guid storeId, Guid orderId, + string productReference, Guid currencyId) +``` + +--- + +#### GetOrCreateFrozenProductPrice (2 of 2) + +```csharp +public ProductPrice GetOrCreateFrozenProductPrice(Guid storeId, Guid orderId, + string productReference, string productVariantReference, Guid currencyId) +``` + + +--- + +#### GetProductPrice (1 of 4) + +```csharp +public ProductPrice GetProductPrice(Guid storeId, Guid orderId, string productReference, + Guid currencyId) +``` + +--- + +#### GetProductPrice (2 of 4) + +```csharp +public ProductPrice GetProductPrice(Guid storeId, Guid orderId, string productReference, + string productVariantReference, Guid currencyId) +``` + +--- + +#### GetProductPrice (3 of 4) + +```csharp +public ProductPrice GetProductPrice(Guid storeId, Guid orderId, string productReference, + Guid currencyId, out bool isFrozen) +``` + +--- + +#### GetProductPrice (4 of 4) + +```csharp +public ProductPrice GetProductPrice(Guid storeId, Guid orderId, string productReference, + string productVariantReference, Guid currencyId, out bool isFrozen) +``` + + +--- + +#### HasFrozenProductPrice (1 of 2) + +```csharp +public bool HasFrozenProductPrice(Guid storeId, Guid orderId, string productReference, + Guid currencyId) +``` + +--- + +#### HasFrozenProductPrice (2 of 2) + +```csharp +public bool HasFrozenProductPrice(Guid storeId, Guid orderId, string productReference, + string productVariantReference, Guid currencyId) +``` + + +--- + +#### ThawFrozenProductPrice (1 of 2) + +```csharp +public void ThawFrozenProductPrice(Guid storeId, Guid orderId, string productReference, + Guid currencyId) +``` + +--- + +#### ThawFrozenProductPrice (2 of 2) + +```csharp +public void ThawFrozenProductPrice(Guid storeId, Guid orderId, string productReference, + string productVariantReference, Guid currencyId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/productservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/productservice.md new file mode 100644 index 00000000000..7ed971100a8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/productservice.md @@ -0,0 +1,224 @@ +--- +title: ProductService +description: API reference for ProductService in Umbraco Commerce +--- +## ProductService + +```csharp +public class ProductService : ServiceBase, IProductService +``` + +**Inheritance** + +* Class [ServiceBase<TSelf>](servicebase-1.md) +* interface [IProductService](iproductservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Constructors + +#### ProductService + +```csharp +public ProductService(IRepositoryFactory repositoryFactory, IUnitOfWorkProvider uowProvider, + ILogger logger, ICacheAccessor cacheAccessor, IProductAdapter productAdapter, + IStockService stockService) +``` + + +### Methods + +#### GetProduct (1 of 2) + +```csharp +public IProductSnapshot GetProduct(Guid storeId, string productReference, string languageIsoCode) +``` + +--- + +#### GetProduct (2 of 2) + +```csharp +public IProductSnapshot GetProduct(Guid storeId, string productReference, + string productVariantRefernce, string languageIsoCode) +``` + + +--- + +#### GetProductStock (1 of 2) + +```csharp +public decimal? GetProductStock(Guid storeId, string productReference) +``` + +--- + +#### GetProductStock (2 of 2) + +```csharp +public decimal? GetProductStock(Guid storeId, string productReference, + string productVariantReference) +``` + + +--- + +#### GetProductVariantAttributes + +```csharp +public IEnumerable GetProductVariantAttributes(Guid storeId, string productReference, + string languageIsoCode) +``` + + +--- + +#### IncreaseProductStock (1 of 2) + +```csharp +public void IncreaseProductStock(Guid storeId, string productReference, decimal increaseBy) +``` + +--- + +#### IncreaseProductStock (2 of 2) + +```csharp +public void IncreaseProductStock(Guid storeId, string productReference, + string productVariantReference, decimal increaseBy) +``` + + +--- + +#### ReduceProductStock (1 of 2) + +```csharp +public void ReduceProductStock(Guid storeId, string productReference, decimal reduceBy) +``` + +--- + +#### ReduceProductStock (2 of 2) + +```csharp +public void ReduceProductStock(Guid storeId, string productReference, + string productVariantReference, decimal reduceBy) +``` + + +--- + +#### SearchProductSummaries + +```csharp +public PagedResult SearchProductSummaries(Guid storeId, string languageIsoCode, + string term, long currentPage = 1, long itemsPerPage = 50) +``` + + +--- + +#### SearchProductVariantSummaries + +```csharp +public PagedResult SearchProductVariantSummaries(Guid storeId, + string productReference, string languageIsoCode, string searchTerm, + IDictionary> attributes, long currentPage = 1, + long itemsPerPage = 50) +``` + + +--- + +#### SetProductStock (1 of 2) + +```csharp +public void SetProductStock(Guid storeId, string productReference, decimal value) +``` + +--- + +#### SetProductStock (2 of 2) + +```csharp +public void SetProductStock(Guid storeId, string productReference, string productVariantReference, + decimal value) +``` + + +--- + +#### TryGetProductStock (1 of 2) + +```csharp +public bool TryGetProductStock(Guid storeId, string productReference, out decimal? stock) +``` + +--- + +#### TryGetProductStock (2 of 2) + +```csharp +public bool TryGetProductStock(Guid storeId, string productReference, + string productVariantReference, out decimal? stock) +``` + + +--- + +#### TryIncreaseProductStock (1 of 2) + +```csharp +public bool TryIncreaseProductStock(Guid storeId, string productReference, decimal increaseBy) +``` + +--- + +#### TryIncreaseProductStock (2 of 2) + +```csharp +public bool TryIncreaseProductStock(Guid storeId, string productReference, + string productVariantReference, decimal increaseBy) +``` + + +--- + +#### TryReduceProductStock (1 of 2) + +```csharp +public bool TryReduceProductStock(Guid storeId, string productReference, decimal reduceBy) +``` + +--- + +#### TryReduceProductStock (2 of 2) + +```csharp +public bool TryReduceProductStock(Guid storeId, string productReference, + string productVariantReference, decimal reduceBy) +``` + + +--- + +#### TrySetProductStock (1 of 2) + +```csharp +public bool TrySetProductStock(Guid storeId, string productReference, decimal value) +``` + +--- + +#### TrySetProductStock (2 of 2) + +```csharp +public bool TrySetProductStock(Guid storeId, string productReference, + string productVariantReference, decimal value) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/registeredcustomerinfoservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/registeredcustomerinfoservice.md new file mode 100644 index 00000000000..2b62676d3ec --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/registeredcustomerinfoservice.md @@ -0,0 +1,37 @@ +--- +title: RegisteredCustomerInfoService +description: API reference for RegisteredCustomerInfoService in Umbraco Commerce +--- +## RegisteredCustomerInfoService + +```csharp +public class RegisteredCustomerInfoService : IRegisteredCustomerInfoService +``` + +**Inheritance** + +* interface [IRegisteredCustomerInfoService](iregisteredcustomerinfoservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Constructors + +#### RegisteredCustomerInfoService + +```csharp +public RegisteredCustomerInfoService( + RegisteredCustomerInfoProviderCollection registeredCustomerInfoProviders) +``` + + +### Methods + +#### GetRegisteredCustomerInfo + +```csharp +public RegisteredCustomerInfo GetRegisteredCustomerInfo(string customerReference) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/servicebase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/servicebase-1.md new file mode 100644 index 00000000000..1d386705799 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/servicebase-1.md @@ -0,0 +1,15 @@ +--- +title: ServiceBase +description: API reference for ServiceBase in Umbraco Commerce +--- +## ServiceBase<TSelf> + +```csharp +public abstract class ServiceBase + where TSelf : ServiceBase +``` + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/shippingmethodservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/shippingmethodservice.md new file mode 100644 index 00000000000..49ba8c159d7 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/shippingmethodservice.md @@ -0,0 +1,119 @@ +--- +title: ShippingMethodService +description: API reference for ShippingMethodService in Umbraco Commerce +--- +## ShippingMethodService + +```csharp +public class ShippingMethodService : ServiceBase, + ICachedEntityService, IShippingMethodService +``` + +**Inheritance** + +* Class [ServiceBase<TSelf>](servicebase-1.md) +* interface [ICachedEntityService<TEntityType>](icachedentityservice-1.md) +* interface [IShippingMethodService](ishippingmethodservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Constructors + +#### ShippingMethodService + +```csharp +public ShippingMethodService(IRepositoryFactory repositoryFactory, IUnitOfWorkProvider uowProvider, + ILogger logger, ICacheAccessor cacheAccessor) +``` + + +### Methods + +#### DeleteShippingMethod (1 of 2) + +```csharp +public void DeleteShippingMethod(Guid id) +``` + +--- + +#### DeleteShippingMethod (2 of 2) + +```csharp +public void DeleteShippingMethod(ShippingMethod entity) +``` + + +--- + +#### GetShippingMethod (1 of 2) + +```csharp +public ShippingMethodReadOnly GetShippingMethod(Guid id) +``` + +--- + +#### GetShippingMethod (2 of 2) + +```csharp +public ShippingMethodReadOnly GetShippingMethod(Guid storeId, string alias) +``` + + +--- + +#### GetShippingMethods (1 of 2) + +```csharp +public IEnumerable GetShippingMethods(Guid storeId) +``` + +--- + +#### GetShippingMethods (2 of 2) + +```csharp +public IEnumerable GetShippingMethods(Guid[] ids) +``` + + +--- + +#### GetShippingMethodsAllowedIn + +```csharp +public IEnumerable GetShippingMethodsAllowedIn(Guid countryId, + Guid? regionId) +``` + + +--- + +#### SaveShippingMethod + +```csharp +public void SaveShippingMethod(ShippingMethod entity) +``` + + +--- + +#### ShippingMethodExists + +```csharp +public bool ShippingMethodExists(Guid storeId, string alias) +``` + + +--- + +#### SortShippingMethods + +```csharp +public void SortShippingMethods(Guid[] sortedIds) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/storeservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/storeservice.md new file mode 100644 index 00000000000..2d4c48240fd --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/storeservice.md @@ -0,0 +1,129 @@ +--- +title: StoreService +description: API reference for StoreService in Umbraco Commerce +--- +## StoreService + +```csharp +public class StoreService : ServiceBase, ICachedEntityService, + IStoreAnalyticsService, IStoreService +``` + +**Inheritance** + +* Class [ServiceBase<TSelf>](servicebase-1.md) +* interface [ICachedEntityService<TEntityType>](icachedentityservice-1.md) +* interface [IStoreAnalyticsService](istoreanalyticsservice.md) +* interface [IStoreService](istoreservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Constructors + +#### StoreService + +```csharp +public StoreService(IRepositoryFactory repositoryFactory, IUnitOfWorkProvider uowProvider, + ILogger logger, ICacheAccessor cacheAccessor) +``` + + +### Methods + +#### DeleteStore (1 of 2) + +```csharp +public void DeleteStore(Guid entityId) +``` + +--- + +#### DeleteStore (2 of 2) + +```csharp +public void DeleteStore(Store entity) +``` + + +--- + +#### GetStore (1 of 2) + +```csharp +public StoreReadOnly GetStore(Guid id) +``` + +--- + +#### GetStore (2 of 2) + +```csharp +public StoreReadOnly GetStore(string alias) +``` + + +--- + +#### GetStores + +```csharp +public IEnumerable GetStores() +``` + + +--- + +#### GetStores + +```csharp +public IEnumerable GetStores(Guid[] ids) +``` + + +--- + +#### GetStoreStatsForDateRange + +```csharp +public StoreStats GetStoreStatsForDateRange(Guid storeId, DateTime fromUtc, DateTime toUtc) +``` + + +--- + +#### GetStoreSummariesFor + +```csharp +public IEnumerable GetStoreSummariesFor(string userId, string[] userRoles) +``` + + +--- + +#### SaveStore + +```csharp +public void SaveStore(Store entity) +``` + + +--- + +#### SortStores + +```csharp +public void SortStores(Guid[] sortedIds) +``` + + +--- + +#### StoreExists + +```csharp +public bool StoreExists(string alias) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/tagservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/tagservice.md new file mode 100644 index 00000000000..75dcce95783 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/tagservice.md @@ -0,0 +1,57 @@ +--- +title: TagService +description: API reference for TagService in Umbraco Commerce +--- +## TagService + +```csharp +public class TagService : ServiceBase, ITagService +``` + +**Inheritance** + +* Class [ServiceBase<TSelf>](servicebase-1.md) +* interface [ITagService](itagservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Constructors + +#### TagService + +```csharp +public TagService(IRepositoryFactory repositoryFactory, IUnitOfWorkProvider uowProvider, + ILogger logger, ICacheAccessor cacheAccessor) +``` + + +### Methods + +#### GetEntityTags + +```csharp +public IEnumerable GetEntityTags(Guid storeId, Guid entityId, string startsWith = null) +``` + + +--- + +#### GetTags + +```csharp +public IEnumerable GetTags(Guid storeId, string startsWith = null) +``` + + +--- + +#### GetTagsByEntityType + +```csharp +public IEnumerable GetTagsByEntityType(Guid storeId, string entityType, + string startsWith = null) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/taxservice.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/taxservice.md new file mode 100644 index 00000000000..2f6b9d5f108 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/taxservice.md @@ -0,0 +1,109 @@ +--- +title: TaxService +description: API reference for TaxService in Umbraco Commerce +--- +## TaxService + +```csharp +public class TaxService : ServiceBase, ICachedEntityService, + ITaxService +``` + +**Inheritance** + +* Class [ServiceBase<TSelf>](servicebase-1.md) +* interface [ICachedEntityService<TEntityType>](icachedentityservice-1.md) +* interface [ITaxService](itaxservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Constructors + +#### TaxService + +```csharp +public TaxService(IRepositoryFactory repositoryFactory, IUnitOfWorkProvider uowProvider, + ILogger logger, ICacheAccessor cacheAccessor) +``` + + +### Methods + +#### DeleteTaxClass (1 of 2) + +```csharp +public void DeleteTaxClass(Guid id) +``` + +--- + +#### DeleteTaxClass (2 of 2) + +```csharp +public void DeleteTaxClass(TaxClass entity) +``` + + +--- + +#### GetTaxClass (1 of 2) + +```csharp +public TaxClassReadOnly GetTaxClass(Guid id) +``` + +--- + +#### GetTaxClass (2 of 2) + +```csharp +public TaxClassReadOnly GetTaxClass(Guid storeId, string alias) +``` + + +--- + +#### GetTaxClasses (1 of 2) + +```csharp +public IEnumerable GetTaxClasses(Guid storeId) +``` + +--- + +#### GetTaxClasses (2 of 2) + +```csharp +public IEnumerable GetTaxClasses(Guid[] ids) +``` + + +--- + +#### SaveTaxClass + +```csharp +public void SaveTaxClass(TaxClass entity) +``` + + +--- + +#### SortTaxClasses + +```csharp +public void SortTaxClasses(Guid[] sortedIds) +``` + + +--- + +#### TaxClassExists + +```csharp +public bool TaxClassExists(Guid storeId, string alias) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/umbracocommerceservicecontext.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/umbracocommerceservicecontext.md new file mode 100644 index 00000000000..30999821002 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/umbracocommerceservicecontext.md @@ -0,0 +1,321 @@ +--- +title: UmbracoCommerceServiceContext +description: API reference for UmbracoCommerceServiceContext in Umbraco Commerce +--- +## UmbracoCommerceServiceContext + +A central service context for easy access to all of Umbraco Commerce's services + +```csharp +public class UmbracoCommerceServiceContext +``` + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Constructors + +#### UmbracoCommerceServiceContext + +Instantiates a new UmbracoCommerceServiceContext instance + +```csharp +public UmbracoCommerceServiceContext(Lazy countryService, + Lazy currencyService, Lazy emailTemplateService, + Lazy printTemplateService, + Lazy exportTemplateService, Lazy orderService, + Lazy orderStatusService, Lazy paymentMethodService, + Lazy paymentService, Lazy paymentProviderService, + Lazy shippingMethodService, Lazy storeService, + Lazy taxService, Lazy productService, + Lazy discountService, Lazy giftCardService, + Lazy translationService, + Lazy productAttributeService, Lazy entityService, + Lazy activityLogService, Lazy analyticsService, + Lazy registeredCustomerInfoService, + Lazy tagService) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| countryService | | +| currencyService | | +| emailTemplateService | | +| printTemplateService | | +| exportTemplateService | | +| orderService | | +| orderStatusService | | +| paymentMethodService | | +| paymentService | | +| paymentProviderService | | +| shippingMethodService | | +| storeService | | +| taxService | | +| productService | | +| discountService | | +| giftCardService | | +| translationService | | +| productAttributeService | | +| entityService | | +| activityLogService | | +| analyticsService | | +| registeredCustomerInfoService | | +| tagService | | + + +### Properties + +#### ActivityLogService + +Gets the [`IActivityLogService`](iactivitylogservice.md) + +```csharp +public IActivityLogService ActivityLogService { get; } +``` + + +--- + +#### AnalyticsService + +Gets the [`IAnalyticsService`](ianalyticsservice.md) + +```csharp +public IAnalyticsService AnalyticsService { get; } +``` + + +--- + +#### CountryService + +Gets the [`ICountryService`](icountryservice.md) + +```csharp +public ICountryService CountryService { get; } +``` + + +--- + +#### CurrencyService + +Gets the [`ICurrencyService`](icurrencyservice.md) + +```csharp +public ICurrencyService CurrencyService { get; } +``` + + +--- + +#### DiscountService + +Gets the [`IDiscountService`](idiscountservice.md) + +```csharp +public IDiscountService DiscountService { get; } +``` + + +--- + +#### EmailTemplateService + +Gets the [`IEmailTemplateService`](iemailtemplateservice.md) + +```csharp +public IEmailTemplateService EmailTemplateService { get; } +``` + + +--- + +#### EntityService + +Gets the [`IEntityService`](ientityservice.md) + +```csharp +public IEntityService EntityService { get; } +``` + + +--- + +#### ExportTemplateService + +Gets the [`IExportTemplateService`](iexporttemplateservice.md) + +```csharp +public IExportTemplateService ExportTemplateService { get; } +``` + + +--- + +#### GiftCardService + +Gets the [`IGiftCardService`](igiftcardservice.md) + +```csharp +public IGiftCardService GiftCardService { get; } +``` + + +--- + +#### OrderService + +Gets the [`IOrderService`](iorderservice.md) + +```csharp +public IOrderService OrderService { get; } +``` + + +--- + +#### OrderStatusService + +Gets the [`IOrderStatusService`](iorderstatusservice.md) + +```csharp +public IOrderStatusService OrderStatusService { get; } +``` + + +--- + +#### PaymentMethodService + +Gets the [`IPaymentMethodService`](ipaymentmethodservice.md) + +```csharp +public IPaymentMethodService PaymentMethodService { get; } +``` + + +--- + +#### PaymentProviderService + +Gets the [`IPaymentProviderService`](ipaymentproviderservice.md) + +```csharp +public IPaymentProviderService PaymentProviderService { get; } +``` + + +--- + +#### PaymentService + +Gets the [`IPaymentService`](ipaymentservice.md) + +```csharp +public IPaymentService PaymentService { get; } +``` + + +--- + +#### PrintTemplateService + +Gets the [`IPrintTemplateService`](iprinttemplateservice.md) + +```csharp +public IPrintTemplateService PrintTemplateService { get; } +``` + + +--- + +#### ProductAttributeService + +Gets the [`IProductAttributeService`](iproductattributeservice.md) + +```csharp +public IProductAttributeService ProductAttributeService { get; } +``` + + +--- + +#### ProductService + +Gets the [`IProductService`](iproductservice.md) + +```csharp +public IProductService ProductService { get; } +``` + + +--- + +#### RegisteredCustomerInfoService + +Gets the [`IRegisteredCustomerInfoService`](iregisteredcustomerinfoservice.md) + +```csharp +public IRegisteredCustomerInfoService RegisteredCustomerInfoService { get; } +``` + + +--- + +#### ShippingMethodService + +Gets the [`IShippingMethodService`](ishippingmethodservice.md) + +```csharp +public IShippingMethodService ShippingMethodService { get; } +``` + + +--- + +#### StoreService + +Gets the [`IStoreService`](istoreservice.md) + +```csharp +public IStoreService StoreService { get; } +``` + + +--- + +#### TagService + +Gets the [`ITagService`](itagservice.md) + +```csharp +public ITagService TagService { get; } +``` + + +--- + +#### TaxService + +Gets the [`ITaxService`](itaxservice.md) + +```csharp +public ITaxService TaxService { get; } +``` + + +--- + +#### TranslationService + +Gets the [`ITranslationService`](itranslationservice.md) + +```csharp +public ITranslationService TranslationService { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/umbracocommercestockservicebase-1.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/umbracocommercestockservicebase-1.md new file mode 100644 index 00000000000..9bb33c80b16 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-services/umbracocommercestockservicebase-1.md @@ -0,0 +1,193 @@ +--- +title: UmbracoCommerceStockServiceBase +description: API reference for UmbracoCommerceStockServiceBase in Umbraco Commerce +--- +## UmbracoCommerceStockServiceBase<TSelf> + +```csharp +public abstract class UmbracoCommerceStockServiceBase : ServiceBase, IStockService + where TSelf : UmbracoCommerceStockServiceBase +``` + +**Inheritance** + +* Class [ServiceBase<TSelf>](servicebase-1.md) +* interface [IStockService](istockservice.md) + +**Namespace** +* [Umbraco.Commerce.Core.Services](README.md) + +### Constructors + +#### UmbracoCommerceStockServiceBase<TSelf> + +```csharp +public UmbracoCommerceStockServiceBase(IRepositoryFactory repositoryFactory, + IUnitOfWorkProvider uowProvider, ILogger logger, ICacheAccessor cacheAccessor) +``` + + +### Methods + +#### GetStock (1 of 2) + +```csharp +public virtual decimal? GetStock(Guid storeId, string productReference) +``` + +--- + +#### GetStock (2 of 2) + +```csharp +public virtual decimal? GetStock(Guid storeId, string productReference, + string productVariantReference) +``` + + +--- + +#### IncreaseStock (1 of 2) + +```csharp +public virtual void IncreaseStock(Guid storeId, string productReference, decimal increaseBy) +``` + +--- + +#### IncreaseStock (2 of 2) + +```csharp +public virtual void IncreaseStock(Guid storeId, string productReference, + string productVariantReference, decimal increaseBy) +``` + + +--- + +#### InvalidateStockCache + +```csharp +public void InvalidateStockCache() +``` + + +--- + +#### InvalidateStockCache + +```csharp +public void InvalidateStockCache(Guid storeId, string productReference, + string productVariantReference) +``` + + +--- + +#### ReduceStock (1 of 2) + +```csharp +public virtual void ReduceStock(Guid storeId, string productReference, decimal reduceBy) +``` + +--- + +#### ReduceStock (2 of 2) + +```csharp +public virtual void ReduceStock(Guid storeId, string productReference, + string productVariantReference, decimal reduceBy) +``` + + +--- + +#### SetStock (1 of 2) + +```csharp +public virtual void SetStock(Guid storeId, string productReference, decimal value) +``` + +--- + +#### SetStock (2 of 2) + +```csharp +public virtual void SetStock(Guid storeId, string productReference, string productVariantReference, + decimal value) +``` + + +--- + +#### TryGetStock (1 of 2) + +```csharp +public virtual bool TryGetStock(Guid storeId, string productReference, out decimal? stock) +``` + +--- + +#### TryGetStock (2 of 2) + +```csharp +public virtual bool TryGetStock(Guid storeId, string productReference, + string productVariantReference, out decimal? stock) +``` + + +--- + +#### TryIncreaseStock (1 of 2) + +```csharp +public virtual bool TryIncreaseStock(Guid storeId, string productReference, decimal increaseBy) +``` + +--- + +#### TryIncreaseStock (2 of 2) + +```csharp +public virtual bool TryIncreaseStock(Guid storeId, string productReference, + string productVariantReference, decimal increaseBy) +``` + + +--- + +#### TryReduceStock (1 of 2) + +```csharp +public virtual bool TryReduceStock(Guid storeId, string productReference, decimal reduceBy) +``` + +--- + +#### TryReduceStock (2 of 2) + +```csharp +public virtual bool TryReduceStock(Guid storeId, string productReference, + string productVariantReference, decimal reduceBy) +``` + + +--- + +#### TrySetStock (1 of 2) + +```csharp +public virtual bool TrySetStock(Guid storeId, string productReference, decimal value) +``` + +--- + +#### TrySetStock (2 of 2) + +```csharp +public virtual bool TrySetStock(Guid storeId, string productReference, + string productVariantReference, decimal value) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-session/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-session/README.md new file mode 100644 index 00000000000..d2e10fdfc6f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-session/README.md @@ -0,0 +1,15 @@ +--- +title: Umbraco.Commerce.Core.Session +description: API reference for Umbraco.Commerce.Core.Session in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Session namespace + +| Public Type | Description | +| --- | --- | +| interface [ISessionManager](isessionmanager.md) | | +| interface [ISessionStore](isessionstore.md) | | +| interface [ITempStore](itempstore.md) | | +| class [SessionManager](sessionmanager.md) | | +| class [SessionManagerAccessor](sessionmanageraccessor.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-session/isessionmanager.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-session/isessionmanager.md new file mode 100644 index 00000000000..db311391b72 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-session/isessionmanager.md @@ -0,0 +1,382 @@ +--- +title: ISessionManager +description: API reference for ISessionManager in Umbraco Commerce +--- +## ISessionManager + +```csharp +public interface ISessionManager +``` + +**Namespace** +* [Umbraco.Commerce.Core.Session](README.md) + +### Methods + +#### CheckAndMoveSessionOrders + +```csharp +public void CheckAndMoveSessionOrders() +``` + + +--- + +#### ClearCurrentOrder + +```csharp +public void ClearCurrentOrder(Guid storeId) +``` + + +--- + +#### ClearDefaultCurrency + +```csharp +public void ClearDefaultCurrency(Guid storeId) +``` + + +--- + +#### ClearDefaultPaymentCountry + +```csharp +public void ClearDefaultPaymentCountry(Guid storeId) +``` + + +--- + +#### ClearDefaultPaymentMethod + +```csharp +public void ClearDefaultPaymentMethod(Guid storeId) +``` + + +--- + +#### ClearDefaultPaymentRegion + +```csharp +public void ClearDefaultPaymentRegion(Guid storeId) +``` + + +--- + +#### ClearDefaultShippingCountry + +```csharp +public void ClearDefaultShippingCountry(Guid storeId) +``` + + +--- + +#### ClearDefaultShippingMethod + +```csharp +public void ClearDefaultShippingMethod(Guid storeId) +``` + + +--- + +#### ClearDefaultShippingRegion + +```csharp +public void ClearDefaultShippingRegion(Guid storeId) +``` + + +--- + +#### ClearDefaultTaxClass + +```csharp +public void ClearDefaultTaxClass(Guid storeId) +``` + + +--- + +#### GetCurrentFinalizedOrder + +```csharp +public OrderReadOnly GetCurrentFinalizedOrder(Guid storeId) +``` + + +--- + +#### GetCurrentOrder (1 of 2) + +```csharp +public OrderReadOnly GetCurrentOrder(Guid storeId) +``` + +--- + +#### GetCurrentOrder (2 of 2) + +```csharp +public OrderReadOnly GetCurrentOrder(Guid storeId, string customerReference) +``` + + +--- + +#### GetDefaultCurrency + +```csharp +public CurrencyReadOnly GetDefaultCurrency(Guid storeId) +``` + + +--- + +#### GetDefaultPaymentCountry + +```csharp +public CountryReadOnly GetDefaultPaymentCountry(Guid storeId) +``` + + +--- + +#### GetDefaultPaymentMethod + +```csharp +public PaymentMethodReadOnly GetDefaultPaymentMethod(Guid storeId) +``` + + +--- + +#### GetDefaultPaymentRegion + +```csharp +public RegionReadOnly GetDefaultPaymentRegion(Guid storeId) +``` + + +--- + +#### GetDefaultShippingCountry + +```csharp +public CountryReadOnly GetDefaultShippingCountry(Guid storeId) +``` + + +--- + +#### GetDefaultShippingMethod + +```csharp +public ShippingMethodReadOnly GetDefaultShippingMethod(Guid storeId) +``` + + +--- + +#### GetDefaultShippingRegion + +```csharp +public RegionReadOnly GetDefaultShippingRegion(Guid storeId) +``` + + +--- + +#### GetDefaultTaxClass + +```csharp +public TaxClassReadOnly GetDefaultTaxClass(Guid storeId) +``` + + +--- + +#### GetOrCreateCurrentOrder (1 of 2) + +```csharp +public OrderReadOnly GetOrCreateCurrentOrder(Guid storeId) +``` + +--- + +#### GetOrCreateCurrentOrder (2 of 2) + +```csharp +public OrderReadOnly GetOrCreateCurrentOrder(Guid storeId, string customerReference) +``` + + +--- + +#### SetCurrentOrder (1 of 2) + +```csharp +public void SetCurrentOrder(Guid storeId, Guid id) +``` + +--- + +#### SetCurrentOrder (2 of 2) + +```csharp +public void SetCurrentOrder(Guid storeId, OrderReadOnly entity) +``` + + +--- + +#### SetDefaultCurrency (1 of 2) + +```csharp +public void SetDefaultCurrency(Guid storeId, Guid id, bool applyToCurrentOrder = false) +``` + +--- + +#### SetDefaultCurrency (2 of 2) + +```csharp +public void SetDefaultCurrency(Guid storeId, CurrencyReadOnly entity, + bool applyToCurrentOrder = false) +``` + + +--- + +#### SetDefaultPaymentCountry (1 of 2) + +```csharp +public void SetDefaultPaymentCountry(Guid storeId, Guid id, bool applyToCurrentOrder = false) +``` + +--- + +#### SetDefaultPaymentCountry (2 of 2) + +```csharp +public void SetDefaultPaymentCountry(Guid storeId, CountryReadOnly entity, + bool applyToCurrentOrder = false) +``` + + +--- + +#### SetDefaultPaymentMethod (1 of 2) + +```csharp +public void SetDefaultPaymentMethod(Guid storeId, Guid id, bool applyToCurrentOrder = false) +``` + +--- + +#### SetDefaultPaymentMethod (2 of 2) + +```csharp +public void SetDefaultPaymentMethod(Guid storeId, PaymentMethodReadOnly entity, + bool applyToCurrentOrder = false) +``` + + +--- + +#### SetDefaultPaymentRegion (1 of 2) + +```csharp +public void SetDefaultPaymentRegion(Guid storeId, Guid countryId, Guid id, + bool applyToCurrentOrder = false) +``` + +--- + +#### SetDefaultPaymentRegion (2 of 2) + +```csharp +public void SetDefaultPaymentRegion(Guid storeId, RegionReadOnly entity, + bool applyToCurrentOrder = false) +``` + + +--- + +#### SetDefaultShippingCountry (1 of 2) + +```csharp +public void SetDefaultShippingCountry(Guid storeId, Guid id, bool applyToCurrentOrder = false) +``` + +--- + +#### SetDefaultShippingCountry (2 of 2) + +```csharp +public void SetDefaultShippingCountry(Guid storeId, CountryReadOnly entity, + bool applyToCurrentOrder = false) +``` + + +--- + +#### SetDefaultShippingMethod (1 of 2) + +```csharp +public void SetDefaultShippingMethod(Guid storeId, Guid id, bool applyToCurrentOrder = false) +``` + +--- + +#### SetDefaultShippingMethod (2 of 2) + +```csharp +public void SetDefaultShippingMethod(Guid storeId, ShippingMethodReadOnly entity, + bool applyToCurrentOrder = false) +``` + + +--- + +#### SetDefaultShippingRegion (1 of 2) + +```csharp +public void SetDefaultShippingRegion(Guid storeId, Guid countryId, Guid id, + bool applyToCurrentOrder = false) +``` + +--- + +#### SetDefaultShippingRegion (2 of 2) + +```csharp +public void SetDefaultShippingRegion(Guid storeId, RegionReadOnly entity, + bool applyToCurrentOrder = false) +``` + + +--- + +#### SetDefaultTaxClass (1 of 2) + +```csharp +public void SetDefaultTaxClass(Guid storeId, Guid id, bool applyToCurrentOrder = false) +``` + +--- + +#### SetDefaultTaxClass (2 of 2) + +```csharp +public void SetDefaultTaxClass(Guid storeId, TaxClassReadOnly entity, + bool applyToCurrentOrder = false) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-session/isessionstore.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-session/isessionstore.md new file mode 100644 index 00000000000..55c084408a2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-session/isessionstore.md @@ -0,0 +1,53 @@ +--- +title: ISessionStore +description: API reference for ISessionStore in Umbraco Commerce +--- +## ISessionStore + +```csharp +public interface ISessionStore +``` + +**Namespace** +* [Umbraco.Commerce.Core.Session](README.md) + +### Methods + +#### GetStoreIds + +```csharp +public Guid[] GetStoreIds() +``` + + +--- + +#### GetValue<T> + +```csharp +public T? GetValue(Guid storeId, string key) + where T : struct +``` + + +--- + +#### SetValue<T> + +```csharp +public void SetValue(Guid storeId, string key, T? value) + where T : struct +``` + + +--- + +#### TrySetValue<T> + +```csharp +public bool TrySetValue(Guid storeId, string key, T? value) + where T : struct +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-session/itempstore.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-session/itempstore.md new file mode 100644 index 00000000000..0905032db9b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-session/itempstore.md @@ -0,0 +1,53 @@ +--- +title: ITempStore +description: API reference for ITempStore in Umbraco Commerce +--- +## ITempStore + +```csharp +public interface ITempStore +``` + +**Namespace** +* [Umbraco.Commerce.Core.Session](README.md) + +### Methods + +#### GetStoreIds + +```csharp +public Guid[] GetStoreIds() +``` + + +--- + +#### GetValue<T> + +```csharp +public T? GetValue(Guid storeId, string key) + where T : struct +``` + + +--- + +#### SetValue<T> + +```csharp +public void SetValue(Guid storeId, string key, T? value) + where T : struct +``` + + +--- + +#### TrySetValue<T> + +```csharp +public bool TrySetValue(Guid storeId, string key, T? value) + where T : struct +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-session/sessionmanager.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-session/sessionmanager.md new file mode 100644 index 00000000000..8fbc0002a38 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-session/sessionmanager.md @@ -0,0 +1,454 @@ +--- +title: SessionManager +description: API reference for SessionManager in Umbraco Commerce +--- +## SessionManager + +```csharp +public class SessionManager : ISessionManager +``` + +**Inheritance** + +* interface [ISessionManager](isessionmanager.md) + +**Namespace** +* [Umbraco.Commerce.Core.Session](README.md) + +### Constructors + +#### SessionManager + +```csharp +public SessionManager(IStoreService storeService, IOrderService orderService, + ICurrencyService currencyService, ICountryService countryService, + IPaymentMethodService paymentMethodService, IShippingMethodService shippingMethodService, + ITaxService taxService, ISessionStore sessionStore, ITempStore tempStore, + IUnitOfWorkProvider uowProvider) +``` + + +### Methods + +#### CheckAndMoveSessionOrders + +```csharp +public void CheckAndMoveSessionOrders() +``` + + +--- + +#### ClearCurrentAdminOrder + +```csharp +public void ClearCurrentAdminOrder(Guid storeId) +``` + + +--- + +#### ClearCurrentFinalizedOrder + +```csharp +public void ClearCurrentFinalizedOrder(Guid storeId) +``` + + +--- + +#### ClearCurrentOrder + +```csharp +public void ClearCurrentOrder(Guid storeId) +``` + + +--- + +#### ClearDefaultCurrency + +```csharp +public void ClearDefaultCurrency(Guid storeId) +``` + + +--- + +#### ClearDefaultPaymentCountry + +```csharp +public void ClearDefaultPaymentCountry(Guid storeId) +``` + + +--- + +#### ClearDefaultPaymentMethod + +```csharp +public void ClearDefaultPaymentMethod(Guid storeId) +``` + + +--- + +#### ClearDefaultPaymentRegion + +```csharp +public void ClearDefaultPaymentRegion(Guid storeId) +``` + + +--- + +#### ClearDefaultShippingCountry + +```csharp +public void ClearDefaultShippingCountry(Guid storeId) +``` + + +--- + +#### ClearDefaultShippingMethod + +```csharp +public void ClearDefaultShippingMethod(Guid storeId) +``` + + +--- + +#### ClearDefaultShippingRegion + +```csharp +public void ClearDefaultShippingRegion(Guid storeId) +``` + + +--- + +#### ClearDefaultTaxClass + +```csharp +public void ClearDefaultTaxClass(Guid storeId) +``` + + +--- + +#### GetCurrentAdminOrder + +```csharp +public OrderReadOnly GetCurrentAdminOrder(Guid storeId) +``` + + +--- + +#### GetCurrentFinalizedOrder + +```csharp +public OrderReadOnly GetCurrentFinalizedOrder(Guid storeId) +``` + + +--- + +#### GetCurrentOrder (1 of 2) + +```csharp +public OrderReadOnly GetCurrentOrder(Guid storeId) +``` + +--- + +#### GetCurrentOrder (2 of 2) + +```csharp +public OrderReadOnly GetCurrentOrder(Guid storeId, string customerReference) +``` + + +--- + +#### GetDefaultCurrency + +```csharp +public CurrencyReadOnly GetDefaultCurrency(Guid storeId) +``` + + +--- + +#### GetDefaultPaymentCountry + +```csharp +public CountryReadOnly GetDefaultPaymentCountry(Guid storeId) +``` + + +--- + +#### GetDefaultPaymentMethod + +```csharp +public PaymentMethodReadOnly GetDefaultPaymentMethod(Guid storeId) +``` + + +--- + +#### GetDefaultPaymentRegion + +```csharp +public RegionReadOnly GetDefaultPaymentRegion(Guid storeId) +``` + + +--- + +#### GetDefaultShippingCountry + +```csharp +public CountryReadOnly GetDefaultShippingCountry(Guid storeId) +``` + + +--- + +#### GetDefaultShippingMethod + +```csharp +public ShippingMethodReadOnly GetDefaultShippingMethod(Guid storeId) +``` + + +--- + +#### GetDefaultShippingRegion + +```csharp +public RegionReadOnly GetDefaultShippingRegion(Guid storeId) +``` + + +--- + +#### GetDefaultTaxClass + +```csharp +public TaxClassReadOnly GetDefaultTaxClass(Guid storeId) +``` + + +--- + +#### GetOrCreateCurrentOrder (1 of 2) + +```csharp +public OrderReadOnly GetOrCreateCurrentOrder(Guid storeId) +``` + +--- + +#### GetOrCreateCurrentOrder (2 of 2) + +```csharp +public OrderReadOnly GetOrCreateCurrentOrder(Guid storeId, string customerReference) +``` + + +--- + +#### SetCurrentAdminOrder (1 of 2) + +```csharp +public void SetCurrentAdminOrder(Guid storeId, Guid orderId, string currentUserId, + IEnumerable currentUserRoles) +``` + +--- + +#### SetCurrentAdminOrder (2 of 2) + +```csharp +public void SetCurrentAdminOrder(Guid storeId, OrderReadOnly order, string currentUserId, + IEnumerable currentUserRoles) +``` + + +--- + +#### SetCurrentFinalizedOrder + +```csharp +public void SetCurrentFinalizedOrder(Guid storeId, Guid id) +``` + + +--- + +#### SetCurrentOrder (1 of 2) + +```csharp +public void SetCurrentOrder(Guid storeId, Guid orderId) +``` + +--- + +#### SetCurrentOrder (2 of 2) + +```csharp +public void SetCurrentOrder(Guid storeId, OrderReadOnly entity) +``` + + +--- + +#### SetDefaultCurrency (1 of 2) + +```csharp +public void SetDefaultCurrency(Guid storeId, Guid currencyId, bool applyToCurrentOrder = false) +``` + +--- + +#### SetDefaultCurrency (2 of 2) + +```csharp +public void SetDefaultCurrency(Guid storeId, CurrencyReadOnly entity, + bool applyToCurrentOrder = false) +``` + + +--- + +#### SetDefaultPaymentCountry (1 of 2) + +```csharp +public void SetDefaultPaymentCountry(Guid storeId, Guid id, bool applyToCurrentOrder = false) +``` + +--- + +#### SetDefaultPaymentCountry (2 of 2) + +```csharp +public void SetDefaultPaymentCountry(Guid storeId, CountryReadOnly entity, + bool applyToCurrentOrder = false) +``` + + +--- + +#### SetDefaultPaymentMethod (1 of 2) + +```csharp +public void SetDefaultPaymentMethod(Guid storeId, Guid id, bool applyToCurrentOrder = false) +``` + +--- + +#### SetDefaultPaymentMethod (2 of 2) + +```csharp +public void SetDefaultPaymentMethod(Guid storeId, PaymentMethodReadOnly entity, + bool applyToCurrentOrder = false) +``` + + +--- + +#### SetDefaultPaymentRegion (1 of 2) + +```csharp +public void SetDefaultPaymentRegion(Guid storeId, Guid countryId, Guid id, + bool applyToCurrentOrder = false) +``` + +--- + +#### SetDefaultPaymentRegion (2 of 2) + +```csharp +public void SetDefaultPaymentRegion(Guid storeId, RegionReadOnly entity, + bool applyToCurrentOrder = false) +``` + + +--- + +#### SetDefaultShippingCountry (1 of 2) + +```csharp +public void SetDefaultShippingCountry(Guid storeId, Guid id, bool applyToCurrentOrder = false) +``` + +--- + +#### SetDefaultShippingCountry (2 of 2) + +```csharp +public void SetDefaultShippingCountry(Guid storeId, CountryReadOnly entity, + bool applyToCurrentOrder = false) +``` + + +--- + +#### SetDefaultShippingMethod (1 of 2) + +```csharp +public void SetDefaultShippingMethod(Guid storeId, Guid id, bool applyToCurrentOrder = false) +``` + +--- + +#### SetDefaultShippingMethod (2 of 2) + +```csharp +public void SetDefaultShippingMethod(Guid storeId, ShippingMethodReadOnly entity, + bool applyToCurrentOrder = false) +``` + + +--- + +#### SetDefaultShippingRegion (1 of 2) + +```csharp +public void SetDefaultShippingRegion(Guid storeId, Guid countryId, Guid id, + bool applyToCurrentOrder = false) +``` + +--- + +#### SetDefaultShippingRegion (2 of 2) + +```csharp +public void SetDefaultShippingRegion(Guid storeId, RegionReadOnly entity, + bool applyToCurrentOrder = false) +``` + + +--- + +#### SetDefaultTaxClass (1 of 2) + +```csharp +public void SetDefaultTaxClass(Guid storeId, Guid id, bool applyToCurrentOrder = false) +``` + +--- + +#### SetDefaultTaxClass (2 of 2) + +```csharp +public void SetDefaultTaxClass(Guid storeId, TaxClassReadOnly entity, + bool applyToCurrentOrder = false) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-session/sessionmanageraccessor.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-session/sessionmanageraccessor.md new file mode 100644 index 00000000000..bdbdcc6d99a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-session/sessionmanageraccessor.md @@ -0,0 +1,27 @@ +--- +title: SessionManagerAccessor +description: API reference for SessionManagerAccessor in Umbraco Commerce +--- +## SessionManagerAccessor + +```csharp +public class SessionManagerAccessor : AccessorBase +``` + +**Inheritance** + +* Class [AccessorBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common/accessorbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Session](README.md) + +### Constructors + +#### SessionManagerAccessor + +```csharp +public SessionManagerAccessor(IScopedFactoryAccessor scopedFactoryAccessor) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/README.md new file mode 100644 index 00000000000..2fb1e86417d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/README.md @@ -0,0 +1,24 @@ +--- +title: Umbraco.Commerce.Core.Specifications.GiftCard +description: API reference for Umbraco.Commerce.Core.Specifications.GiftCard in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Specifications.GiftCard namespace + +| Public Type | Description | +| --- | --- | +| class [GiftCardCreatedBetweenSpecification](giftcardcreatedbetweenspecification.md) | | +| class [GiftCardFromOrderSpecification](giftcardfromorderspecification.md) | | +| class [GiftCardFromStoreSpecification](giftcardfromstorespecification.md) | | +| class [GiftCardHasCodeSpecification](giftcardhascodespecification.md) | | +| class [GiftCardHasPropertySpecification](giftcardhaspropertyspecification.md) | | +| class [GiftCardInCurrencySpecification](giftcardincurrencyspecification.md) | | +| class [GiftCardQuerySpecificationFactory](giftcardqueryspecificationfactory.md) | | +| class [GiftCardSearchableFieldsMatchSpecification](giftcardsearchablefieldsmatchspecification.md) | | +| class [GiftCardSortByCreateDateSpecification](giftcardsortbycreatedatespecification.md) | | +| class [GiftCardSortByOrderNumberSpecification](giftcardsortbyordernumberspecification.md) | | +| class [GiftCardSortSpecificationFactory](giftcardsortspecificationfactory.md) | | +| interface [IGiftCardQuerySpecificationFactory](igiftcardqueryspecificationfactory.md) | | +| interface [IGiftCardSortSpecificationFactory](igiftcardsortspecificationfactory.md) | | +| interface [IGiftCardSpecificationVisitor](igiftcardspecificationvisitor.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/giftcardcreatedbetweenspecification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/giftcardcreatedbetweenspecification.md new file mode 100644 index 00000000000..b12cca9c494 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/giftcardcreatedbetweenspecification.md @@ -0,0 +1,65 @@ +--- +title: GiftCardCreatedBetweenSpecification +description: API reference for GiftCardCreatedBetweenSpecification in Umbraco Commerce +--- +## GiftCardCreatedBetweenSpecification + +```csharp +public class GiftCardCreatedBetweenSpecification : IQuerySpecification, + ISpecification +``` + +**Inheritance** + +* interface [IQuerySpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecification-1.md) +* interface [ISpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.GiftCard](README.md) + +### Constructors + +#### GiftCardCreatedBetweenSpecification + +```csharp +public GiftCardCreatedBetweenSpecification(DateTime? fromDate, DateTime? toDate) +``` + + +### Fields + +#### FromDate + +```csharp +public DateTime? FromDate; +``` + + +--- + +#### ToDate + +```csharp +public DateTime? ToDate; +``` + + +### Methods + +#### Accept + +```csharp +public void Accept(IVisitor visitor) +``` + + +--- + +#### IsSatisfiedBy + +```csharp +public bool IsSatisfiedBy(GiftCardReadOnly item) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/giftcardfromorderspecification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/giftcardfromorderspecification.md new file mode 100644 index 00000000000..71231532079 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/giftcardfromorderspecification.md @@ -0,0 +1,73 @@ +--- +title: GiftCardFromOrderSpecification +description: API reference for GiftCardFromOrderSpecification in Umbraco Commerce +--- +## GiftCardFromOrderSpecification + +```csharp +public class GiftCardFromOrderSpecification : IQuerySpecification, + ISpecification +``` + +**Inheritance** + +* interface [IQuerySpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecification-1.md) +* interface [ISpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.GiftCard](README.md) + +### Constructors + +#### GiftCardFromOrderSpecification (1 of 2) + +```csharp +public GiftCardFromOrderSpecification(Guid orderId) +``` + +--- + +#### GiftCardFromOrderSpecification (2 of 2) + +```csharp +public GiftCardFromOrderSpecification(string orderNumber) +``` + + +### Properties + +#### OrderId + +```csharp +public Guid? OrderId { get; } +``` + + +--- + +#### OrderNumber + +```csharp +public string OrderNumber { get; } +``` + + +### Methods + +#### Accept + +```csharp +public void Accept(IVisitor visitor) +``` + + +--- + +#### IsSatisfiedBy + +```csharp +public bool IsSatisfiedBy(GiftCardReadOnly item) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/giftcardfromstorespecification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/giftcardfromstorespecification.md new file mode 100644 index 00000000000..8dd763d8f75 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/giftcardfromstorespecification.md @@ -0,0 +1,56 @@ +--- +title: GiftCardFromStoreSpecification +description: API reference for GiftCardFromStoreSpecification in Umbraco Commerce +--- +## GiftCardFromStoreSpecification + +```csharp +public class GiftCardFromStoreSpecification : IQuerySpecification, + ISpecification +``` + +**Inheritance** + +* interface [IQuerySpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecification-1.md) +* interface [ISpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.GiftCard](README.md) + +### Constructors + +#### GiftCardFromStoreSpecification + +```csharp +public GiftCardFromStoreSpecification(Guid storeId) +``` + + +### Properties + +#### StoreId + +```csharp +public Guid StoreId { get; } +``` + + +### Methods + +#### Accept + +```csharp +public void Accept(IVisitor visitor) +``` + + +--- + +#### IsSatisfiedBy + +```csharp +public bool IsSatisfiedBy(GiftCardReadOnly item) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/giftcardhascodespecification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/giftcardhascodespecification.md new file mode 100644 index 00000000000..14e137255a2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/giftcardhascodespecification.md @@ -0,0 +1,64 @@ +--- +title: GiftCardHasCodeSpecification +description: API reference for GiftCardHasCodeSpecification in Umbraco Commerce +--- +## GiftCardHasCodeSpecification + +```csharp +public class GiftCardHasCodeSpecification : IQuerySpecification, + ISpecification +``` + +**Inheritance** + +* interface [IQuerySpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecification-1.md) +* interface [ISpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.GiftCard](README.md) + +### Constructors + +#### GiftCardHasCodeSpecification (1 of 2) + +```csharp +public GiftCardHasCodeSpecification(string code) +``` + +--- + +#### GiftCardHasCodeSpecification (2 of 2) + +```csharp +public GiftCardHasCodeSpecification(IEnumerable codes) +``` + + +### Properties + +#### Codes + +```csharp +public IEnumerable Codes { get; } +``` + + +### Methods + +#### Accept + +```csharp +public void Accept(IVisitor visitor) +``` + + +--- + +#### IsSatisfiedBy + +```csharp +public bool IsSatisfiedBy(GiftCardReadOnly item) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/giftcardhaspropertyspecification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/giftcardhaspropertyspecification.md new file mode 100644 index 00000000000..f06aea94c2f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/giftcardhaspropertyspecification.md @@ -0,0 +1,75 @@ +--- +title: GiftCardHasPropertySpecification +description: API reference for GiftCardHasPropertySpecification in Umbraco Commerce +--- +## GiftCardHasPropertySpecification + +```csharp +public class GiftCardHasPropertySpecification : IQuerySpecification, + ISpecification +``` + +**Inheritance** + +* interface [IQuerySpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecification-1.md) +* interface [ISpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.GiftCard](README.md) + +### Constructors + +#### GiftCardHasPropertySpecification (1 of 2) + +```csharp +public GiftCardHasPropertySpecification(string key, string value, + StringComparisonType comparisonType) +``` + +--- + +#### GiftCardHasPropertySpecification (2 of 2) + +```csharp +public GiftCardHasPropertySpecification(KeyValuePair property, + StringComparisonType comparisonType) +``` + + +### Properties + +#### ComparisonType + +```csharp +public StringComparisonType ComparisonType { get; } +``` + + +--- + +#### Property + +```csharp +public KeyValuePair Property { get; } +``` + + +### Methods + +#### Accept + +```csharp +public void Accept(IVisitor visitor) +``` + + +--- + +#### IsSatisfiedBy + +```csharp +public bool IsSatisfiedBy(GiftCardReadOnly item) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/giftcardincurrencyspecification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/giftcardincurrencyspecification.md new file mode 100644 index 00000000000..637612e1c60 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/giftcardincurrencyspecification.md @@ -0,0 +1,64 @@ +--- +title: GiftCardInCurrencySpecification +description: API reference for GiftCardInCurrencySpecification in Umbraco Commerce +--- +## GiftCardInCurrencySpecification + +```csharp +public class GiftCardInCurrencySpecification : IQuerySpecification, + ISpecification +``` + +**Inheritance** + +* interface [IQuerySpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecification-1.md) +* interface [ISpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.GiftCard](README.md) + +### Constructors + +#### GiftCardInCurrencySpecification (1 of 2) + +```csharp +public GiftCardInCurrencySpecification(Guid currencyId) +``` + +--- + +#### GiftCardInCurrencySpecification (2 of 2) + +```csharp +public GiftCardInCurrencySpecification(IEnumerable currencyIds) +``` + + +### Properties + +#### CurrencyIds + +```csharp +public IEnumerable CurrencyIds { get; } +``` + + +### Methods + +#### Accept + +```csharp +public void Accept(IVisitor visitor) +``` + + +--- + +#### IsSatisfiedBy + +```csharp +public bool IsSatisfiedBy(GiftCardReadOnly item) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/giftcardqueryspecificationfactory.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/giftcardqueryspecificationfactory.md new file mode 100644 index 00000000000..7c91e46e9bf --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/giftcardqueryspecificationfactory.md @@ -0,0 +1,145 @@ +--- +title: GiftCardQuerySpecificationFactory +description: API reference for GiftCardQuerySpecificationFactory in Umbraco Commerce +--- +## GiftCardQuerySpecificationFactory + +```csharp +public class GiftCardQuerySpecificationFactory : IGiftCardQuerySpecificationFactory +``` + +**Inheritance** + +* interface [IGiftCardQuerySpecificationFactory](igiftcardqueryspecificationfactory.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.GiftCard](README.md) + +### Constructors + +#### GiftCardQuerySpecificationFactory + +The default constructor. + +```csharp +public GiftCardQuerySpecificationFactory() +``` + + +### Methods + +#### CreatedAfter + +```csharp +public IQuerySpecification CreatedAfter(DateTime date) +``` + + +--- + +#### CreatedBefore + +```csharp +public IQuerySpecification CreatedBefore(DateTime date) +``` + + +--- + +#### CreatedBetween + +```csharp +public IQuerySpecification CreatedBetween(DateTime fromDate, DateTime toDate) +``` + + +--- + +#### FromOrder (1 of 2) + +```csharp +public IQuerySpecification FromOrder(Guid orderId) +``` + +--- + +#### FromOrder (2 of 2) + +```csharp +public IQuerySpecification FromOrder(string orderNumber) +``` + + +--- + +#### FromStore + +```csharp +public IQuerySpecification FromStore(Guid storeId) +``` + + +--- + +#### HasCode (1 of 2) + +```csharp +public IQuerySpecification HasCode(string code) +``` + +--- + +#### HasCode (2 of 2) + +```csharp +public IQuerySpecification HasCode(IEnumerable codes) +``` + + +--- + +#### HasProperty (1 of 2) + +```csharp +public IQuerySpecification HasProperty(string key, string value, + StringComparisonType comparisonType = StringComparisonType.Equals) +``` + +--- + +#### HasProperty (2 of 2) + +```csharp +public IQuerySpecification HasProperty(KeyValuePair property, + StringComparisonType comparisonType = StringComparisonType.Equals) +``` + + +--- + +#### InCurrency (1 of 2) + +```csharp +public IQuerySpecification InCurrency(Guid currencyId) +``` + +--- + +#### InCurrency (2 of 2) + +```csharp +public IQuerySpecification InCurrency(IEnumerable currencyIds) +``` + + +--- + +#### SearchableFieldsMatch + +```csharp +public IQuerySpecification SearchableFieldsMatch(string searchTerm, + StringComparisonType comparisonType = StringComparisonType.Contains) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/giftcardsearchablefieldsmatchspecification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/giftcardsearchablefieldsmatchspecification.md new file mode 100644 index 00000000000..1590bd5ebb2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/giftcardsearchablefieldsmatchspecification.md @@ -0,0 +1,66 @@ +--- +title: GiftCardSearchableFieldsMatchSpecification +description: API reference for GiftCardSearchableFieldsMatchSpecification in Umbraco Commerce +--- +## GiftCardSearchableFieldsMatchSpecification + +```csharp +public class GiftCardSearchableFieldsMatchSpecification : IQuerySpecification, + ISpecification +``` + +**Inheritance** + +* interface [IQuerySpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecification-1.md) +* interface [ISpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.GiftCard](README.md) + +### Constructors + +#### GiftCardSearchableFieldsMatchSpecification + +```csharp +public GiftCardSearchableFieldsMatchSpecification(string searchTerm, + StringComparisonType comparisonType) +``` + + +### Properties + +#### ComparisonType + +```csharp +public StringComparisonType ComparisonType { get; } +``` + + +--- + +#### SearchTerm + +```csharp +public string SearchTerm { get; } +``` + + +### Methods + +#### Accept + +```csharp +public void Accept(IVisitor visitor) +``` + + +--- + +#### IsSatisfiedBy + +```csharp +public bool IsSatisfiedBy(GiftCardReadOnly item) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/giftcardsortbycreatedatespecification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/giftcardsortbycreatedatespecification.md new file mode 100644 index 00000000000..031abc3302b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/giftcardsortbycreatedatespecification.md @@ -0,0 +1,55 @@ +--- +title: GiftCardSortByCreateDateSpecification +description: API reference for GiftCardSortByCreateDateSpecification in Umbraco Commerce +--- +## GiftCardSortByCreateDateSpecification + +```csharp +public class GiftCardSortByCreateDateSpecification : SortSpecificationBase +``` + +**Inheritance** + +* Class [SortSpecificationBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/sortspecificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.GiftCard](README.md) + +### Constructors + +#### GiftCardSortByCreateDateSpecification + +```csharp +public GiftCardSortByCreateDateSpecification(Sort sort = Sort.Ascending) +``` + + +### Methods + +#### Accept + +```csharp +public override void Accept(IVisitor visitor) +``` + + +--- + +#### InvokeSort (1 of 2) + +```csharp +public override IOrderedEnumerable InvokeSort( + IEnumerable collection) +``` + +--- + +#### InvokeSort (2 of 2) + +```csharp +public override IOrderedEnumerable InvokeSort( + IOrderedEnumerable collection) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/giftcardsortbyordernumberspecification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/giftcardsortbyordernumberspecification.md new file mode 100644 index 00000000000..9c9b9fdd12d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/giftcardsortbyordernumberspecification.md @@ -0,0 +1,55 @@ +--- +title: GiftCardSortByOrderNumberSpecification +description: API reference for GiftCardSortByOrderNumberSpecification in Umbraco Commerce +--- +## GiftCardSortByOrderNumberSpecification + +```csharp +public class GiftCardSortByOrderNumberSpecification : SortSpecificationBase +``` + +**Inheritance** + +* Class [SortSpecificationBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/sortspecificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.GiftCard](README.md) + +### Constructors + +#### GiftCardSortByOrderNumberSpecification + +```csharp +public GiftCardSortByOrderNumberSpecification(Sort sort = Sort.Ascending) +``` + + +### Methods + +#### Accept + +```csharp +public override void Accept(IVisitor visitor) +``` + + +--- + +#### InvokeSort (1 of 2) + +```csharp +public override IOrderedEnumerable InvokeSort( + IEnumerable collection) +``` + +--- + +#### InvokeSort (2 of 2) + +```csharp +public override IOrderedEnumerable InvokeSort( + IOrderedEnumerable collection) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/giftcardsortspecificationfactory.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/giftcardsortspecificationfactory.md new file mode 100644 index 00000000000..997fab4be7e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/giftcardsortspecificationfactory.md @@ -0,0 +1,47 @@ +--- +title: GiftCardSortSpecificationFactory +description: API reference for GiftCardSortSpecificationFactory in Umbraco Commerce +--- +## GiftCardSortSpecificationFactory + +```csharp +public class GiftCardSortSpecificationFactory : IGiftCardSortSpecificationFactory +``` + +**Inheritance** + +* interface [IGiftCardSortSpecificationFactory](igiftcardsortspecificationfactory.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.GiftCard](README.md) + +### Constructors + +#### GiftCardSortSpecificationFactory + +The default constructor. + +```csharp +public GiftCardSortSpecificationFactory() +``` + + +### Methods + +#### ByCreateDate + +```csharp +public ISortSpecification ByCreateDate(Sort sort = Sort.Ascending) +``` + + +--- + +#### ByOrderNumber + +```csharp +public ISortSpecification ByOrderNumber(Sort sort = Sort.Ascending) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/igiftcardqueryspecificationfactory.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/igiftcardqueryspecificationfactory.md new file mode 100644 index 00000000000..0c6109cf20f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/igiftcardqueryspecificationfactory.md @@ -0,0 +1,130 @@ +--- +title: IGiftCardQuerySpecificationFactory +description: API reference for IGiftCardQuerySpecificationFactory in Umbraco Commerce +--- +## IGiftCardQuerySpecificationFactory + +```csharp +public interface IGiftCardQuerySpecificationFactory +``` + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.GiftCard](README.md) + +### Methods + +#### CreatedAfter + +```csharp +public IQuerySpecification CreatedAfter(DateTime date) +``` + + +--- + +#### CreatedBefore + +```csharp +public IQuerySpecification CreatedBefore(DateTime date) +``` + + +--- + +#### CreatedBetween + +```csharp +public IQuerySpecification CreatedBetween(DateTime fromDate, DateTime toDate) +``` + + +--- + +#### FromOrder (1 of 2) + +```csharp +public IQuerySpecification FromOrder(Guid orderId) +``` + +--- + +#### FromOrder (2 of 2) + +```csharp +public IQuerySpecification FromOrder(string orderNumber) +``` + + +--- + +#### FromStore + +```csharp +public IQuerySpecification FromStore(Guid storeId) +``` + + +--- + +#### HasCode (1 of 2) + +```csharp +public IQuerySpecification HasCode(string code) +``` + +--- + +#### HasCode (2 of 2) + +```csharp +public IQuerySpecification HasCode(IEnumerable codes) +``` + + +--- + +#### HasProperty (1 of 2) + +```csharp +public IQuerySpecification HasProperty(string key, string value, + StringComparisonType comparisonType = StringComparisonType.Equals) +``` + +--- + +#### HasProperty (2 of 2) + +```csharp +public IQuerySpecification HasProperty(KeyValuePair property, + StringComparisonType comparisonType = StringComparisonType.Equals) +``` + + +--- + +#### InCurrency (1 of 2) + +```csharp +public IQuerySpecification InCurrency(Guid currencyId) +``` + +--- + +#### InCurrency (2 of 2) + +```csharp +public IQuerySpecification InCurrency(IEnumerable currencyIds) +``` + + +--- + +#### SearchableFieldsMatch + +```csharp +public IQuerySpecification SearchableFieldsMatch(string searchTerm, + StringComparisonType comparisonType = StringComparisonType.Contains) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/igiftcardsortspecificationfactory.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/igiftcardsortspecificationfactory.md new file mode 100644 index 00000000000..410d39873c9 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/igiftcardsortspecificationfactory.md @@ -0,0 +1,32 @@ +--- +title: IGiftCardSortSpecificationFactory +description: API reference for IGiftCardSortSpecificationFactory in Umbraco Commerce +--- +## IGiftCardSortSpecificationFactory + +```csharp +public interface IGiftCardSortSpecificationFactory +``` + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.GiftCard](README.md) + +### Methods + +#### ByCreateDate + +```csharp +public ISortSpecification ByCreateDate(Sort sort = Sort.Ascending) +``` + + +--- + +#### ByOrderNumber + +```csharp +public ISortSpecification ByOrderNumber(Sort sort = Sort.Ascending) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/igiftcardspecificationvisitor.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/igiftcardspecificationvisitor.md new file mode 100644 index 00000000000..418e907a3d1 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-giftcard/igiftcardspecificationvisitor.md @@ -0,0 +1,28 @@ +--- +title: IGiftCardSpecificationVisitor +description: API reference for IGiftCardSpecificationVisitor in Umbraco Commerce +--- +## IGiftCardSpecificationVisitor + +```csharp +public interface IGiftCardSpecificationVisitor : IQuerySpecificationVisitor, + ISortSpecificationVisitor, IVisitor>, + IVisitor, IVisitor, + IVisitor, IVisitor, + IVisitor, IVisitor, + IVisitor, + IVisitor, + IVisitor, IVisitor>, + IVisitor>, IVisitor> +``` + +**Inheritance** + +* interface [IQuerySpecificationVisitor<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecificationvisitor-1.md) +* interface [ISortSpecificationVisitor<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/isortspecificationvisitor-1.md) +* interface [IVisitor<!0>](../../umbraco-commerce-common/umbraco-commerce-common-visitors/ivisitor-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.GiftCard](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/README.md new file mode 100644 index 00000000000..a273bc1edde --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/README.md @@ -0,0 +1,42 @@ +--- +title: Umbraco.Commerce.Core.Specifications.Order +description: API reference for Umbraco.Commerce.Core.Specifications.Order in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Specifications.Order namespace + +| Public Type | Description | +| --- | --- | +| interface [IOrderQuerySpecificationFactory](iorderqueryspecificationfactory.md) | | +| interface [IOrderSortSpecificationFactory](iordersortspecificationfactory.md) | | +| interface [IOrderSpecificationVisitor](iorderspecificationvisitor.md) | | +| class [OrderByCustomerSpecification](orderbycustomerspecification.md) | | +| class [OrderCreatedBetweenSpecification](ordercreatedbetweenspecification.md) | | +| class [OrderFromStoreSpecification](orderfromstorespecification.md) | | +| class [OrderHasCartNumberSpecification](orderhascartnumberspecification.md) | | +| class [OrderHasCustomerEmailAddressSpecification](orderhascustomeremailaddressspecification.md) | | +| class [OrderHasCustomerFirstNameSpecification](orderhascustomerfirstnamespecification.md) | | +| class [OrderHasCustomerLastNameSpecification](orderhascustomerlastnamespecification.md) | | +| class [OrderHasOrderLinesSpecification](orderhasorderlinesspecification.md) | | +| class [OrderHasOrderLineWithProductSpecification](orderhasorderlinewithproductspecification.md) | | +| class [OrderHasOrderLineWithPropertySpecification](orderhasorderlinewithpropertyspecification.md) | | +| class [OrderHasOrderNumberSpecification](orderhasordernumberspecification.md) | | +| class [OrderHasOrderStatusSpecification](orderhasorderstatusspecification.md) | | +| class [OrderHasPaymentMethodSpecification](orderhaspaymentmethodspecification.md) | | +| class [OrderHasPaymentStatusSpecification](orderhaspaymentstatusspecification.md) | | +| class [OrderHasPropertySpecification](orderhaspropertyspecification.md) | | +| class [OrderHasShippingMethodSpecification](orderhasshippingmethodspecification.md) | | +| class [OrderHasTagSpecification](orderhastagspecification.md) | | +| class [OrderInCurrencySpecification](orderincurrencyspecification.md) | | +| class [OrderIsDiscountedSpecification](orderisdiscountedspecification.md) | | +| class [OrderIsFinalizedSpecification](orderisfinalizedspecification.md) | | +| class [OrderLastUpdatedBetweenSpecification](orderlastupdatedbetweenspecification.md) | | +| class [OrderPlacedBetweenSpecification](orderplacedbetweenspecification.md) | | +| class [OrderQuerySpecificationFactory](orderqueryspecificationfactory.md) | | +| class [OrderRedeemsSpecification](orderredeemsspecification.md) | | +| class [OrderSearchableFieldsMatchSpecification](ordersearchablefieldsmatchspecification.md) | | +| class [OrderSortByCreateDateSpecification](ordersortbycreatedatespecification.md) | | +| class [OrderSortByFinalizedDateSpecification](ordersortbyfinalizeddatespecification.md) | | +| class [OrderSortByOrderNumberSpecification](ordersortbyordernumberspecification.md) | | +| class [OrderSortSpecificationFactory](ordersortspecificationfactory.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/iorderqueryspecificationfactory.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/iorderqueryspecificationfactory.md new file mode 100644 index 00000000000..f3876217982 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/iorderqueryspecificationfactory.md @@ -0,0 +1,395 @@ +--- +title: IOrderQuerySpecificationFactory +description: API reference for IOrderQuerySpecificationFactory in Umbraco Commerce +--- +## IOrderQuerySpecificationFactory + +```csharp +public interface IOrderQuerySpecificationFactory +``` + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.Order](README.md) + +### Methods + +#### ByCustomer + +```csharp +public IQuerySpecification ByCustomer(string customerReferenceOrEmail) +``` + + +--- + +#### CreatedAfter + +```csharp +public IQuerySpecification CreatedAfter(DateTime date) +``` + + +--- + +#### CreatedBefore + +```csharp +public IQuerySpecification CreatedBefore(DateTime date) +``` + + +--- + +#### CreatedBetween + +```csharp +public IQuerySpecification CreatedBetween(DateTime fromDate, DateTime toDate) +``` + + +--- + +#### FromStore + +```csharp +public IQuerySpecification FromStore(Guid storeId) +``` + + +--- + +#### HasCartNumber + +```csharp +public IQuerySpecification HasCartNumber(string cartNumber, + StringComparisonType comparisonType = StringComparisonType.Equals) +``` + + +--- + +#### HasCustomerEmailAddress + +```csharp +public IQuerySpecification HasCustomerEmailAddress() +``` + + +--- + +#### HasCustomerEmailAddress + +```csharp +public IQuerySpecification HasCustomerEmailAddress(string email, + StringComparisonType comparisonType = StringComparisonType.Equals) +``` + + +--- + +#### HasCustomerFirstName + +```csharp +public IQuerySpecification HasCustomerFirstName(string firstName, + StringComparisonType comparisonType = StringComparisonType.Equals) +``` + + +--- + +#### HasCustomerLastName + +```csharp +public IQuerySpecification HasCustomerLastName(string lastName, + StringComparisonType comparisonType = StringComparisonType.Equals) +``` + + +--- + +#### HasOrderLines + +```csharp +public IQuerySpecification HasOrderLines() +``` + + +--- + +#### HasOrderLineWithProduct (1 of 2) + +```csharp +public IQuerySpecification HasOrderLineWithProduct(string productReferenceOrSku) +``` + +--- + +#### HasOrderLineWithProduct (2 of 2) + +```csharp +public IQuerySpecification HasOrderLineWithProduct(string productReferenceOrSku, + string productVariantReferenceOrSku) +``` + + +--- + +#### HasOrderLineWithProperty (1 of 2) + +```csharp +public IQuerySpecification HasOrderLineWithProperty(string key, string value, + StringComparisonType comparisonType = StringComparisonType.Equals) +``` + +--- + +#### HasOrderLineWithProperty (2 of 2) + +```csharp +public IQuerySpecification HasOrderLineWithProperty( + KeyValuePair property, + StringComparisonType comparisonType = StringComparisonType.Equals) +``` + + +--- + +#### HasOrderNumber + +```csharp +public IQuerySpecification HasOrderNumber(string orderNumber, + StringComparisonType comparisonType = StringComparisonType.Equals) +``` + + +--- + +#### HasOrderStatus (1 of 2) + +```csharp +public IQuerySpecification HasOrderStatus(Guid orderStatusId) +``` + +--- + +#### HasOrderStatus (2 of 2) + +```csharp +public IQuerySpecification HasOrderStatus(IEnumerable orderStatusIds) +``` + + +--- + +#### HasPaymentMethod (1 of 2) + +```csharp +public IQuerySpecification HasPaymentMethod(Guid paymentMethodId) +``` + +--- + +#### HasPaymentMethod (2 of 2) + +```csharp +public IQuerySpecification HasPaymentMethod(IEnumerable paymentMethodIds) +``` + + +--- + +#### HasPaymentStatus (1 of 2) + +```csharp +public IQuerySpecification HasPaymentStatus(PaymentStatus paymentStatus) +``` + +--- + +#### HasPaymentStatus (2 of 2) + +```csharp +public IQuerySpecification HasPaymentStatus( + IEnumerable paymentStatuses) +``` + + +--- + +#### HasProperty (1 of 2) + +```csharp +public IQuerySpecification HasProperty(string key, string value, + StringComparisonType comparisonType = StringComparisonType.Equals) +``` + +--- + +#### HasProperty (2 of 2) + +```csharp +public IQuerySpecification HasProperty(KeyValuePair property, + StringComparisonType comparisonType = StringComparisonType.Equals) +``` + + +--- + +#### HasShippingMethod (1 of 2) + +```csharp +public IQuerySpecification HasShippingMethod(Guid paymentMethodId) +``` + +--- + +#### HasShippingMethod (2 of 2) + +```csharp +public IQuerySpecification HasShippingMethod(IEnumerable paymentMethodIds) +``` + + +--- + +#### HasTag + +```csharp +public IQuerySpecification HasTag(string tag) +``` + + +--- + +#### HasTags + +```csharp +public IQuerySpecification HasTags(IEnumerable tags) +``` + + +--- + +#### InCurrency (1 of 2) + +```csharp +public IQuerySpecification InCurrency(Guid currencyId) +``` + +--- + +#### InCurrency (2 of 2) + +```csharp +public IQuerySpecification InCurrency(IEnumerable currencyIds) +``` + + +--- + +#### IsDiscounted (1 of 2) + +```csharp +public IQuerySpecification IsDiscounted(Guid discountId) +``` + +--- + +#### IsDiscounted (2 of 2) + +```csharp +public IQuerySpecification IsDiscounted(IEnumerable discountIds) +``` + + +--- + +#### IsFinalized + +```csharp +public IQuerySpecification IsFinalized() +``` + + +--- + +#### LastUpdatedAfter + +```csharp +public IQuerySpecification LastUpdatedAfter(DateTime date) +``` + + +--- + +#### LastUpdatedBefore + +```csharp +public IQuerySpecification LastUpdatedBefore(DateTime date) +``` + + +--- + +#### LastUpdatedBetween + +```csharp +public IQuerySpecification LastUpdatedBetween(DateTime fromDate, DateTime toDate) +``` + + +--- + +#### PlacedAfter + +```csharp +public IQuerySpecification PlacedAfter(DateTime date) +``` + + +--- + +#### PlacedBefore + +```csharp +public IQuerySpecification PlacedBefore(DateTime date) +``` + + +--- + +#### PlacedBetween + +```csharp +public IQuerySpecification PlacedBetween(DateTime fromDate, DateTime toDate) +``` + + +--- + +#### Redeems (1 of 2) + +```csharp +public IQuerySpecification Redeems(string discountOrGiftCardCode) +``` + +--- + +#### Redeems (2 of 2) + +```csharp +public IQuerySpecification Redeems(IEnumerable discountOrGiftCardCodes) +``` + + +--- + +#### SearchableFieldsMatch + +```csharp +public IQuerySpecification SearchableFieldsMatch(string searchTerm, + StringComparisonType comparisonType = StringComparisonType.Contains) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/iordersortspecificationfactory.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/iordersortspecificationfactory.md new file mode 100644 index 00000000000..08e02820ce7 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/iordersortspecificationfactory.md @@ -0,0 +1,41 @@ +--- +title: IOrderSortSpecificationFactory +description: API reference for IOrderSortSpecificationFactory in Umbraco Commerce +--- +## IOrderSortSpecificationFactory + +```csharp +public interface IOrderSortSpecificationFactory +``` + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.Order](README.md) + +### Methods + +#### ByCreateDate + +```csharp +public ISortSpecification ByCreateDate(Sort sort = Sort.Ascending) +``` + + +--- + +#### ByFinalizedDate + +```csharp +public ISortSpecification ByFinalizedDate(Sort sort = Sort.Ascending) +``` + + +--- + +#### ByOrderNumber + +```csharp +public ISortSpecification ByOrderNumber(Sort sort = Sort.Ascending) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/iorderspecificationvisitor.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/iorderspecificationvisitor.md new file mode 100644 index 00000000000..2d72ee5fee1 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/iorderspecificationvisitor.md @@ -0,0 +1,38 @@ +--- +title: IOrderSpecificationVisitor +description: API reference for IOrderSpecificationVisitor in Umbraco Commerce +--- +## IOrderSpecificationVisitor + +```csharp +public interface IOrderSpecificationVisitor : IQuerySpecificationVisitor, + ISortSpecificationVisitor, IVisitor>, + IVisitor>, IVisitor, + IVisitor, IVisitor, + IVisitor, IVisitor, + IVisitor, + IVisitor, IVisitor, + IVisitor, + IVisitor, + IVisitor, IVisitor, + IVisitor, IVisitor, + IVisitor, IVisitor, + IVisitor, IVisitor, + IVisitor, IVisitor, + IVisitor, IVisitor, + IVisitor, IVisitor, + IVisitor, IVisitor, + IVisitor, IVisitor>, + IVisitor> +``` + +**Inheritance** + +* interface [IQuerySpecificationVisitor<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecificationvisitor-1.md) +* interface [ISortSpecificationVisitor<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/isortspecificationvisitor-1.md) +* interface [IVisitor<!0>](../../umbraco-commerce-common/umbraco-commerce-common-visitors/ivisitor-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.Order](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderbycustomerspecification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderbycustomerspecification.md new file mode 100644 index 00000000000..426206f2c69 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderbycustomerspecification.md @@ -0,0 +1,56 @@ +--- +title: OrderByCustomerSpecification +description: API reference for OrderByCustomerSpecification in Umbraco Commerce +--- +## OrderByCustomerSpecification + +```csharp +public class OrderByCustomerSpecification : IQuerySpecification, + ISpecification +``` + +**Inheritance** + +* interface [IQuerySpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecification-1.md) +* interface [ISpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.Order](README.md) + +### Constructors + +#### OrderByCustomerSpecification + +```csharp +public OrderByCustomerSpecification(string customerReferenceOrEmail) +``` + + +### Properties + +#### CustomerReferenceOrEmail + +```csharp +public string CustomerReferenceOrEmail { get; } +``` + + +### Methods + +#### Accept + +```csharp +public void Accept(IVisitor visitor) +``` + + +--- + +#### IsSatisfiedBy + +```csharp +public bool IsSatisfiedBy(OrderReadOnly item) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/ordercreatedbetweenspecification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/ordercreatedbetweenspecification.md new file mode 100644 index 00000000000..d19aada6759 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/ordercreatedbetweenspecification.md @@ -0,0 +1,65 @@ +--- +title: OrderCreatedBetweenSpecification +description: API reference for OrderCreatedBetweenSpecification in Umbraco Commerce +--- +## OrderCreatedBetweenSpecification + +```csharp +public class OrderCreatedBetweenSpecification : IQuerySpecification, + ISpecification +``` + +**Inheritance** + +* interface [IQuerySpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecification-1.md) +* interface [ISpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.Order](README.md) + +### Constructors + +#### OrderCreatedBetweenSpecification + +```csharp +public OrderCreatedBetweenSpecification(DateTime? fromDate, DateTime? toDate) +``` + + +### Fields + +#### FromDate + +```csharp +public DateTime? FromDate; +``` + + +--- + +#### ToDate + +```csharp +public DateTime? ToDate; +``` + + +### Methods + +#### Accept + +```csharp +public void Accept(IVisitor visitor) +``` + + +--- + +#### IsSatisfiedBy + +```csharp +public bool IsSatisfiedBy(OrderReadOnly item) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderfromstorespecification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderfromstorespecification.md new file mode 100644 index 00000000000..07aebfde30b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderfromstorespecification.md @@ -0,0 +1,56 @@ +--- +title: OrderFromStoreSpecification +description: API reference for OrderFromStoreSpecification in Umbraco Commerce +--- +## OrderFromStoreSpecification + +```csharp +public class OrderFromStoreSpecification : IQuerySpecification, + ISpecification +``` + +**Inheritance** + +* interface [IQuerySpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecification-1.md) +* interface [ISpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.Order](README.md) + +### Constructors + +#### OrderFromStoreSpecification + +```csharp +public OrderFromStoreSpecification(Guid storeId) +``` + + +### Properties + +#### StoreId + +```csharp +public Guid StoreId { get; } +``` + + +### Methods + +#### Accept + +```csharp +public void Accept(IVisitor visitor) +``` + + +--- + +#### IsSatisfiedBy + +```csharp +public bool IsSatisfiedBy(OrderReadOnly item) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhascartnumberspecification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhascartnumberspecification.md new file mode 100644 index 00000000000..a347b9e8fc4 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhascartnumberspecification.md @@ -0,0 +1,65 @@ +--- +title: OrderHasCartNumberSpecification +description: API reference for OrderHasCartNumberSpecification in Umbraco Commerce +--- +## OrderHasCartNumberSpecification + +```csharp +public class OrderHasCartNumberSpecification : IQuerySpecification, + ISpecification +``` + +**Inheritance** + +* interface [IQuerySpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecification-1.md) +* interface [ISpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.Order](README.md) + +### Constructors + +#### OrderHasCartNumberSpecification + +```csharp +public OrderHasCartNumberSpecification(string cartNumber, StringComparisonType comparisonType) +``` + + +### Properties + +#### CartNumber + +```csharp +public string CartNumber { get; } +``` + + +--- + +#### ComparisonType + +```csharp +public StringComparisonType ComparisonType { get; } +``` + + +### Methods + +#### Accept + +```csharp +public void Accept(IVisitor visitor) +``` + + +--- + +#### IsSatisfiedBy + +```csharp +public bool IsSatisfiedBy(OrderReadOnly item) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhascustomeremailaddressspecification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhascustomeremailaddressspecification.md new file mode 100644 index 00000000000..83b155ed901 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhascustomeremailaddressspecification.md @@ -0,0 +1,76 @@ +--- +title: OrderHasCustomerEmailAddressSpecification +description: API reference for OrderHasCustomerEmailAddressSpecification in Umbraco Commerce +--- +## OrderHasCustomerEmailAddressSpecification + +```csharp +public class OrderHasCustomerEmailAddressSpecification : IQuerySpecification, + ISpecification +``` + +**Inheritance** + +* interface [IQuerySpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecification-1.md) +* interface [ISpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.Order](README.md) + +### Constructors + +#### OrderHasCustomerEmailAddressSpecification + +The default constructor. + +```csharp +public OrderHasCustomerEmailAddressSpecification() +``` + + +--- + +#### OrderHasCustomerEmailAddressSpecification + +```csharp +public OrderHasCustomerEmailAddressSpecification(string email, StringComparisonType comparisonType) +``` + + +### Properties + +#### ComparisonType + +```csharp +public StringComparisonType ComparisonType { get; } +``` + + +--- + +#### Email + +```csharp +public string Email { get; } +``` + + +### Methods + +#### Accept + +```csharp +public void Accept(IVisitor visitor) +``` + + +--- + +#### IsSatisfiedBy + +```csharp +public bool IsSatisfiedBy(OrderReadOnly item) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhascustomerfirstnamespecification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhascustomerfirstnamespecification.md new file mode 100644 index 00000000000..6682a3e4b70 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhascustomerfirstnamespecification.md @@ -0,0 +1,65 @@ +--- +title: OrderHasCustomerFirstNameSpecification +description: API reference for OrderHasCustomerFirstNameSpecification in Umbraco Commerce +--- +## OrderHasCustomerFirstNameSpecification + +```csharp +public class OrderHasCustomerFirstNameSpecification : IQuerySpecification, + ISpecification +``` + +**Inheritance** + +* interface [IQuerySpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecification-1.md) +* interface [ISpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.Order](README.md) + +### Constructors + +#### OrderHasCustomerFirstNameSpecification + +```csharp +public OrderHasCustomerFirstNameSpecification(string firstName, StringComparisonType comparisonType) +``` + + +### Properties + +#### ComparisonType + +```csharp +public StringComparisonType ComparisonType { get; } +``` + + +--- + +#### FirstName + +```csharp +public string FirstName { get; } +``` + + +### Methods + +#### Accept + +```csharp +public void Accept(IVisitor visitor) +``` + + +--- + +#### IsSatisfiedBy + +```csharp +public bool IsSatisfiedBy(OrderReadOnly item) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhascustomerlastnamespecification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhascustomerlastnamespecification.md new file mode 100644 index 00000000000..2ac734d27c3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhascustomerlastnamespecification.md @@ -0,0 +1,65 @@ +--- +title: OrderHasCustomerLastNameSpecification +description: API reference for OrderHasCustomerLastNameSpecification in Umbraco Commerce +--- +## OrderHasCustomerLastNameSpecification + +```csharp +public class OrderHasCustomerLastNameSpecification : IQuerySpecification, + ISpecification +``` + +**Inheritance** + +* interface [IQuerySpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecification-1.md) +* interface [ISpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.Order](README.md) + +### Constructors + +#### OrderHasCustomerLastNameSpecification + +```csharp +public OrderHasCustomerLastNameSpecification(string lastName, StringComparisonType comparisonType) +``` + + +### Properties + +#### ComparisonType + +```csharp +public StringComparisonType ComparisonType { get; } +``` + + +--- + +#### LastName + +```csharp +public string LastName { get; } +``` + + +### Methods + +#### Accept + +```csharp +public void Accept(IVisitor visitor) +``` + + +--- + +#### IsSatisfiedBy + +```csharp +public bool IsSatisfiedBy(OrderReadOnly item) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhasorderlinesspecification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhasorderlinesspecification.md new file mode 100644 index 00000000000..3d2159c101e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhasorderlinesspecification.md @@ -0,0 +1,49 @@ +--- +title: OrderHasOrderLinesSpecification +description: API reference for OrderHasOrderLinesSpecification in Umbraco Commerce +--- +## OrderHasOrderLinesSpecification + +```csharp +public class OrderHasOrderLinesSpecification : IQuerySpecification, + ISpecification +``` + +**Inheritance** + +* interface [IQuerySpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecification-1.md) +* interface [ISpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.Order](README.md) + +### Constructors + +#### OrderHasOrderLinesSpecification + +The default constructor. + +```csharp +public OrderHasOrderLinesSpecification() +``` + + +### Methods + +#### Accept + +```csharp +public void Accept(IVisitor visitor) +``` + + +--- + +#### IsSatisfiedBy + +```csharp +public bool IsSatisfiedBy(OrderReadOnly item) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhasorderlinewithproductspecification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhasorderlinewithproductspecification.md new file mode 100644 index 00000000000..e543c170f71 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhasorderlinewithproductspecification.md @@ -0,0 +1,74 @@ +--- +title: OrderHasOrderLineWithProductSpecification +description: API reference for OrderHasOrderLineWithProductSpecification in Umbraco Commerce +--- +## OrderHasOrderLineWithProductSpecification + +```csharp +public class OrderHasOrderLineWithProductSpecification : IQuerySpecification, + ISpecification +``` + +**Inheritance** + +* interface [IQuerySpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecification-1.md) +* interface [ISpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.Order](README.md) + +### Constructors + +#### OrderHasOrderLineWithProductSpecification (1 of 2) + +```csharp +public OrderHasOrderLineWithProductSpecification(string productReferenceOrSku) +``` + +--- + +#### OrderHasOrderLineWithProductSpecification (2 of 2) + +```csharp +public OrderHasOrderLineWithProductSpecification(string productReferenceOrSku, + string productVariantReferenceOrSku) +``` + + +### Properties + +#### ProductReferenceOrSku + +```csharp +public string ProductReferenceOrSku { get; } +``` + + +--- + +#### ProductVariantReferenceOrSku + +```csharp +public string ProductVariantReferenceOrSku { get; } +``` + + +### Methods + +#### Accept + +```csharp +public void Accept(IVisitor visitor) +``` + + +--- + +#### IsSatisfiedBy + +```csharp +public bool IsSatisfiedBy(OrderReadOnly item) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhasorderlinewithpropertyspecification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhasorderlinewithpropertyspecification.md new file mode 100644 index 00000000000..9c30a23813c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhasorderlinewithpropertyspecification.md @@ -0,0 +1,75 @@ +--- +title: OrderHasOrderLineWithPropertySpecification +description: API reference for OrderHasOrderLineWithPropertySpecification in Umbraco Commerce +--- +## OrderHasOrderLineWithPropertySpecification + +```csharp +public class OrderHasOrderLineWithPropertySpecification : IQuerySpecification, + ISpecification +``` + +**Inheritance** + +* interface [IQuerySpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecification-1.md) +* interface [ISpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.Order](README.md) + +### Constructors + +#### OrderHasOrderLineWithPropertySpecification (1 of 2) + +```csharp +public OrderHasOrderLineWithPropertySpecification(string key, string value, + StringComparisonType comparisonType) +``` + +--- + +#### OrderHasOrderLineWithPropertySpecification (2 of 2) + +```csharp +public OrderHasOrderLineWithPropertySpecification(KeyValuePair property, + StringComparisonType comparisonType) +``` + + +### Properties + +#### ComparisonType + +```csharp +public StringComparisonType ComparisonType { get; } +``` + + +--- + +#### Property + +```csharp +public KeyValuePair Property { get; } +``` + + +### Methods + +#### Accept + +```csharp +public void Accept(IVisitor visitor) +``` + + +--- + +#### IsSatisfiedBy + +```csharp +public bool IsSatisfiedBy(OrderReadOnly item) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhasordernumberspecification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhasordernumberspecification.md new file mode 100644 index 00000000000..181a0d197c5 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhasordernumberspecification.md @@ -0,0 +1,65 @@ +--- +title: OrderHasOrderNumberSpecification +description: API reference for OrderHasOrderNumberSpecification in Umbraco Commerce +--- +## OrderHasOrderNumberSpecification + +```csharp +public class OrderHasOrderNumberSpecification : IQuerySpecification, + ISpecification +``` + +**Inheritance** + +* interface [IQuerySpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecification-1.md) +* interface [ISpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.Order](README.md) + +### Constructors + +#### OrderHasOrderNumberSpecification + +```csharp +public OrderHasOrderNumberSpecification(string orderNumber, StringComparisonType comparisonType) +``` + + +### Properties + +#### ComparisonType + +```csharp +public StringComparisonType ComparisonType { get; } +``` + + +--- + +#### OrderNumber + +```csharp +public string OrderNumber { get; } +``` + + +### Methods + +#### Accept + +```csharp +public void Accept(IVisitor visitor) +``` + + +--- + +#### IsSatisfiedBy + +```csharp +public bool IsSatisfiedBy(OrderReadOnly item) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhasorderstatusspecification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhasorderstatusspecification.md new file mode 100644 index 00000000000..7b2a4058f47 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhasorderstatusspecification.md @@ -0,0 +1,64 @@ +--- +title: OrderHasOrderStatusSpecification +description: API reference for OrderHasOrderStatusSpecification in Umbraco Commerce +--- +## OrderHasOrderStatusSpecification + +```csharp +public class OrderHasOrderStatusSpecification : IQuerySpecification, + ISpecification +``` + +**Inheritance** + +* interface [IQuerySpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecification-1.md) +* interface [ISpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.Order](README.md) + +### Constructors + +#### OrderHasOrderStatusSpecification (1 of 2) + +```csharp +public OrderHasOrderStatusSpecification(Guid orderStatusId) +``` + +--- + +#### OrderHasOrderStatusSpecification (2 of 2) + +```csharp +public OrderHasOrderStatusSpecification(IEnumerable orderStatusIds) +``` + + +### Properties + +#### OrderStatusIds + +```csharp +public IEnumerable OrderStatusIds { get; } +``` + + +### Methods + +#### Accept + +```csharp +public void Accept(IVisitor visitor) +``` + + +--- + +#### IsSatisfiedBy + +```csharp +public bool IsSatisfiedBy(OrderReadOnly item) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhaspaymentmethodspecification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhaspaymentmethodspecification.md new file mode 100644 index 00000000000..3926cfd93dc --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhaspaymentmethodspecification.md @@ -0,0 +1,64 @@ +--- +title: OrderHasPaymentMethodSpecification +description: API reference for OrderHasPaymentMethodSpecification in Umbraco Commerce +--- +## OrderHasPaymentMethodSpecification + +```csharp +public class OrderHasPaymentMethodSpecification : IQuerySpecification, + ISpecification +``` + +**Inheritance** + +* interface [IQuerySpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecification-1.md) +* interface [ISpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.Order](README.md) + +### Constructors + +#### OrderHasPaymentMethodSpecification (1 of 2) + +```csharp +public OrderHasPaymentMethodSpecification(Guid paymentMethodId) +``` + +--- + +#### OrderHasPaymentMethodSpecification (2 of 2) + +```csharp +public OrderHasPaymentMethodSpecification(IEnumerable paymentMethodIds) +``` + + +### Properties + +#### PaymentMethodIds + +```csharp +public IEnumerable PaymentMethodIds { get; } +``` + + +### Methods + +#### Accept + +```csharp +public void Accept(IVisitor visitor) +``` + + +--- + +#### IsSatisfiedBy + +```csharp +public bool IsSatisfiedBy(OrderReadOnly item) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhaspaymentstatusspecification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhaspaymentstatusspecification.md new file mode 100644 index 00000000000..d4e0874ea5c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhaspaymentstatusspecification.md @@ -0,0 +1,64 @@ +--- +title: OrderHasPaymentStatusSpecification +description: API reference for OrderHasPaymentStatusSpecification in Umbraco Commerce +--- +## OrderHasPaymentStatusSpecification + +```csharp +public class OrderHasPaymentStatusSpecification : IQuerySpecification, + ISpecification +``` + +**Inheritance** + +* interface [IQuerySpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecification-1.md) +* interface [ISpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.Order](README.md) + +### Constructors + +#### OrderHasPaymentStatusSpecification (1 of 2) + +```csharp +public OrderHasPaymentStatusSpecification(PaymentStatus paymentStatus) +``` + +--- + +#### OrderHasPaymentStatusSpecification (2 of 2) + +```csharp +public OrderHasPaymentStatusSpecification(IEnumerable paymentStatuses) +``` + + +### Properties + +#### PaymentStatuses + +```csharp +public IEnumerable PaymentStatuses { get; } +``` + + +### Methods + +#### Accept + +```csharp +public void Accept(IVisitor visitor) +``` + + +--- + +#### IsSatisfiedBy + +```csharp +public bool IsSatisfiedBy(OrderReadOnly item) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhaspropertyspecification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhaspropertyspecification.md new file mode 100644 index 00000000000..b950626a903 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhaspropertyspecification.md @@ -0,0 +1,74 @@ +--- +title: OrderHasPropertySpecification +description: API reference for OrderHasPropertySpecification in Umbraco Commerce +--- +## OrderHasPropertySpecification + +```csharp +public class OrderHasPropertySpecification : IQuerySpecification, + ISpecification +``` + +**Inheritance** + +* interface [IQuerySpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecification-1.md) +* interface [ISpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.Order](README.md) + +### Constructors + +#### OrderHasPropertySpecification (1 of 2) + +```csharp +public OrderHasPropertySpecification(string key, string value, StringComparisonType comparisonType) +``` + +--- + +#### OrderHasPropertySpecification (2 of 2) + +```csharp +public OrderHasPropertySpecification(KeyValuePair property, + StringComparisonType comparisonType) +``` + + +### Properties + +#### ComparisonType + +```csharp +public StringComparisonType ComparisonType { get; } +``` + + +--- + +#### Property + +```csharp +public KeyValuePair Property { get; } +``` + + +### Methods + +#### Accept + +```csharp +public void Accept(IVisitor visitor) +``` + + +--- + +#### IsSatisfiedBy + +```csharp +public bool IsSatisfiedBy(OrderReadOnly item) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhasshippingmethodspecification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhasshippingmethodspecification.md new file mode 100644 index 00000000000..070eeb61b60 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhasshippingmethodspecification.md @@ -0,0 +1,64 @@ +--- +title: OrderHasShippingMethodSpecification +description: API reference for OrderHasShippingMethodSpecification in Umbraco Commerce +--- +## OrderHasShippingMethodSpecification + +```csharp +public class OrderHasShippingMethodSpecification : IQuerySpecification, + ISpecification +``` + +**Inheritance** + +* interface [IQuerySpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecification-1.md) +* interface [ISpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.Order](README.md) + +### Constructors + +#### OrderHasShippingMethodSpecification (1 of 2) + +```csharp +public OrderHasShippingMethodSpecification(Guid shippingMethodId) +``` + +--- + +#### OrderHasShippingMethodSpecification (2 of 2) + +```csharp +public OrderHasShippingMethodSpecification(IEnumerable shippingMethodIds) +``` + + +### Properties + +#### ShippingMethodIds + +```csharp +public IEnumerable ShippingMethodIds { get; } +``` + + +### Methods + +#### Accept + +```csharp +public void Accept(IVisitor visitor) +``` + + +--- + +#### IsSatisfiedBy + +```csharp +public bool IsSatisfiedBy(OrderReadOnly item) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhastagspecification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhastagspecification.md new file mode 100644 index 00000000000..33f9071b385 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderhastagspecification.md @@ -0,0 +1,64 @@ +--- +title: OrderHasTagSpecification +description: API reference for OrderHasTagSpecification in Umbraco Commerce +--- +## OrderHasTagSpecification + +```csharp +public class OrderHasTagSpecification : IQuerySpecification, + ISpecification +``` + +**Inheritance** + +* interface [IQuerySpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecification-1.md) +* interface [ISpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.Order](README.md) + +### Constructors + +#### OrderHasTagSpecification (1 of 2) + +```csharp +public OrderHasTagSpecification(string tag) +``` + +--- + +#### OrderHasTagSpecification (2 of 2) + +```csharp +public OrderHasTagSpecification(IEnumerable tags) +``` + + +### Properties + +#### Tags + +```csharp +public IEnumerable Tags { get; } +``` + + +### Methods + +#### Accept + +```csharp +public void Accept(IVisitor visitor) +``` + + +--- + +#### IsSatisfiedBy + +```csharp +public bool IsSatisfiedBy(OrderReadOnly item) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderincurrencyspecification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderincurrencyspecification.md new file mode 100644 index 00000000000..9b2596f5e71 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderincurrencyspecification.md @@ -0,0 +1,64 @@ +--- +title: OrderInCurrencySpecification +description: API reference for OrderInCurrencySpecification in Umbraco Commerce +--- +## OrderInCurrencySpecification + +```csharp +public class OrderInCurrencySpecification : IQuerySpecification, + ISpecification +``` + +**Inheritance** + +* interface [IQuerySpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecification-1.md) +* interface [ISpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.Order](README.md) + +### Constructors + +#### OrderInCurrencySpecification (1 of 2) + +```csharp +public OrderInCurrencySpecification(Guid currencyId) +``` + +--- + +#### OrderInCurrencySpecification (2 of 2) + +```csharp +public OrderInCurrencySpecification(IEnumerable currencyIds) +``` + + +### Properties + +#### CurrencyIds + +```csharp +public IEnumerable CurrencyIds { get; } +``` + + +### Methods + +#### Accept + +```csharp +public void Accept(IVisitor visitor) +``` + + +--- + +#### IsSatisfiedBy + +```csharp +public bool IsSatisfiedBy(OrderReadOnly item) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderisdiscountedspecification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderisdiscountedspecification.md new file mode 100644 index 00000000000..b8a39189c0b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderisdiscountedspecification.md @@ -0,0 +1,64 @@ +--- +title: OrderIsDiscountedSpecification +description: API reference for OrderIsDiscountedSpecification in Umbraco Commerce +--- +## OrderIsDiscountedSpecification + +```csharp +public class OrderIsDiscountedSpecification : IQuerySpecification, + ISpecification +``` + +**Inheritance** + +* interface [IQuerySpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecification-1.md) +* interface [ISpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.Order](README.md) + +### Constructors + +#### OrderIsDiscountedSpecification (1 of 2) + +```csharp +public OrderIsDiscountedSpecification(Guid discountId) +``` + +--- + +#### OrderIsDiscountedSpecification (2 of 2) + +```csharp +public OrderIsDiscountedSpecification(IEnumerable discountIds) +``` + + +### Properties + +#### DiscountIds + +```csharp +public IEnumerable DiscountIds { get; } +``` + + +### Methods + +#### Accept + +```csharp +public void Accept(IVisitor visitor) +``` + + +--- + +#### IsSatisfiedBy + +```csharp +public bool IsSatisfiedBy(OrderReadOnly item) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderisfinalizedspecification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderisfinalizedspecification.md new file mode 100644 index 00000000000..c9234e79cef --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderisfinalizedspecification.md @@ -0,0 +1,49 @@ +--- +title: OrderIsFinalizedSpecification +description: API reference for OrderIsFinalizedSpecification in Umbraco Commerce +--- +## OrderIsFinalizedSpecification + +```csharp +public class OrderIsFinalizedSpecification : IQuerySpecification, + ISpecification +``` + +**Inheritance** + +* interface [IQuerySpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecification-1.md) +* interface [ISpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.Order](README.md) + +### Constructors + +#### OrderIsFinalizedSpecification + +The default constructor. + +```csharp +public OrderIsFinalizedSpecification() +``` + + +### Methods + +#### Accept + +```csharp +public void Accept(IVisitor visitor) +``` + + +--- + +#### IsSatisfiedBy + +```csharp +public bool IsSatisfiedBy(OrderReadOnly item) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderlastupdatedbetweenspecification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderlastupdatedbetweenspecification.md new file mode 100644 index 00000000000..09f1c982650 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderlastupdatedbetweenspecification.md @@ -0,0 +1,65 @@ +--- +title: OrderLastUpdatedBetweenSpecification +description: API reference for OrderLastUpdatedBetweenSpecification in Umbraco Commerce +--- +## OrderLastUpdatedBetweenSpecification + +```csharp +public class OrderLastUpdatedBetweenSpecification : IQuerySpecification, + ISpecification +``` + +**Inheritance** + +* interface [IQuerySpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecification-1.md) +* interface [ISpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.Order](README.md) + +### Constructors + +#### OrderLastUpdatedBetweenSpecification + +```csharp +public OrderLastUpdatedBetweenSpecification(DateTime? fromDate, DateTime? toDate) +``` + + +### Fields + +#### FromDate + +```csharp +public DateTime? FromDate; +``` + + +--- + +#### ToDate + +```csharp +public DateTime? ToDate; +``` + + +### Methods + +#### Accept + +```csharp +public void Accept(IVisitor visitor) +``` + + +--- + +#### IsSatisfiedBy + +```csharp +public bool IsSatisfiedBy(OrderReadOnly item) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderplacedbetweenspecification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderplacedbetweenspecification.md new file mode 100644 index 00000000000..ea830d64871 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderplacedbetweenspecification.md @@ -0,0 +1,65 @@ +--- +title: OrderPlacedBetweenSpecification +description: API reference for OrderPlacedBetweenSpecification in Umbraco Commerce +--- +## OrderPlacedBetweenSpecification + +```csharp +public class OrderPlacedBetweenSpecification : IQuerySpecification, + ISpecification +``` + +**Inheritance** + +* interface [IQuerySpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecification-1.md) +* interface [ISpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.Order](README.md) + +### Constructors + +#### OrderPlacedBetweenSpecification + +```csharp +public OrderPlacedBetweenSpecification(DateTime? fromDate, DateTime? toDate) +``` + + +### Fields + +#### FromDate + +```csharp +public DateTime? FromDate; +``` + + +--- + +#### ToDate + +```csharp +public DateTime? ToDate; +``` + + +### Methods + +#### Accept + +```csharp +public void Accept(IVisitor visitor) +``` + + +--- + +#### IsSatisfiedBy + +```csharp +public bool IsSatisfiedBy(OrderReadOnly item) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderqueryspecificationfactory.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderqueryspecificationfactory.md new file mode 100644 index 00000000000..14432a13e64 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderqueryspecificationfactory.md @@ -0,0 +1,410 @@ +--- +title: OrderQuerySpecificationFactory +description: API reference for OrderQuerySpecificationFactory in Umbraco Commerce +--- +## OrderQuerySpecificationFactory + +```csharp +public class OrderQuerySpecificationFactory : IOrderQuerySpecificationFactory +``` + +**Inheritance** + +* interface [IOrderQuerySpecificationFactory](iorderqueryspecificationfactory.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.Order](README.md) + +### Constructors + +#### OrderQuerySpecificationFactory + +The default constructor. + +```csharp +public OrderQuerySpecificationFactory() +``` + + +### Methods + +#### ByCustomer + +```csharp +public IQuerySpecification ByCustomer(string customerReferenceOrEmail) +``` + + +--- + +#### CreatedAfter + +```csharp +public IQuerySpecification CreatedAfter(DateTime date) +``` + + +--- + +#### CreatedBefore + +```csharp +public IQuerySpecification CreatedBefore(DateTime date) +``` + + +--- + +#### CreatedBetween + +```csharp +public IQuerySpecification CreatedBetween(DateTime fromDate, DateTime toDate) +``` + + +--- + +#### FromStore + +```csharp +public IQuerySpecification FromStore(Guid storeId) +``` + + +--- + +#### HasCartNumber + +```csharp +public IQuerySpecification HasCartNumber(string cartNumber, + StringComparisonType comparisonType = StringComparisonType.Equals) +``` + + +--- + +#### HasCustomerEmailAddress + +```csharp +public IQuerySpecification HasCustomerEmailAddress() +``` + + +--- + +#### HasCustomerEmailAddress + +```csharp +public IQuerySpecification HasCustomerEmailAddress(string email, + StringComparisonType comparisonType = StringComparisonType.Equals) +``` + + +--- + +#### HasCustomerFirstName + +```csharp +public IQuerySpecification HasCustomerFirstName(string firstName, + StringComparisonType comparisonType = StringComparisonType.Equals) +``` + + +--- + +#### HasCustomerLastName + +```csharp +public IQuerySpecification HasCustomerLastName(string lastName, + StringComparisonType comparisonType = StringComparisonType.Equals) +``` + + +--- + +#### HasOrderLines + +```csharp +public IQuerySpecification HasOrderLines() +``` + + +--- + +#### HasOrderLineWithProduct (1 of 2) + +```csharp +public IQuerySpecification HasOrderLineWithProduct(string productReferenceOrSku) +``` + +--- + +#### HasOrderLineWithProduct (2 of 2) + +```csharp +public IQuerySpecification HasOrderLineWithProduct(string productReferenceOrSku, + string productVariantReferenceOrSku) +``` + + +--- + +#### HasOrderLineWithProperty (1 of 2) + +```csharp +public IQuerySpecification HasOrderLineWithProperty(string key, string value, + StringComparisonType comparisonType = StringComparisonType.Equals) +``` + +--- + +#### HasOrderLineWithProperty (2 of 2) + +```csharp +public IQuerySpecification HasOrderLineWithProperty( + KeyValuePair property, + StringComparisonType comparisonType = StringComparisonType.Equals) +``` + + +--- + +#### HasOrderNumber + +```csharp +public IQuerySpecification HasOrderNumber(string orderNumber, + StringComparisonType comparisonType = StringComparisonType.Equals) +``` + + +--- + +#### HasOrderStatus (1 of 2) + +```csharp +public IQuerySpecification HasOrderStatus(Guid orderStatusId) +``` + +--- + +#### HasOrderStatus (2 of 2) + +```csharp +public IQuerySpecification HasOrderStatus(IEnumerable orderStatusIds) +``` + + +--- + +#### HasPaymentMethod (1 of 2) + +```csharp +public IQuerySpecification HasPaymentMethod(Guid paymentMethodId) +``` + +--- + +#### HasPaymentMethod (2 of 2) + +```csharp +public IQuerySpecification HasPaymentMethod(IEnumerable paymentMethodIds) +``` + + +--- + +#### HasPaymentStatus (1 of 2) + +```csharp +public IQuerySpecification HasPaymentStatus(PaymentStatus paymentStatus) +``` + +--- + +#### HasPaymentStatus (2 of 2) + +```csharp +public IQuerySpecification HasPaymentStatus( + IEnumerable paymentStatuses) +``` + + +--- + +#### HasProperty (1 of 2) + +```csharp +public IQuerySpecification HasProperty(string key, string value, + StringComparisonType comparisonType = StringComparisonType.Equals) +``` + +--- + +#### HasProperty (2 of 2) + +```csharp +public IQuerySpecification HasProperty(KeyValuePair property, + StringComparisonType comparisonType = StringComparisonType.Equals) +``` + + +--- + +#### HasShippingMethod (1 of 2) + +```csharp +public IQuerySpecification HasShippingMethod(Guid shippingMethodId) +``` + +--- + +#### HasShippingMethod (2 of 2) + +```csharp +public IQuerySpecification HasShippingMethod(IEnumerable shippingMethodIds) +``` + + +--- + +#### HasTag + +```csharp +public IQuerySpecification HasTag(string tag) +``` + + +--- + +#### HasTags + +```csharp +public IQuerySpecification HasTags(IEnumerable tags) +``` + + +--- + +#### InCurrency (1 of 2) + +```csharp +public IQuerySpecification InCurrency(Guid currencyId) +``` + +--- + +#### InCurrency (2 of 2) + +```csharp +public IQuerySpecification InCurrency(IEnumerable currencyIds) +``` + + +--- + +#### IsDiscounted (1 of 2) + +```csharp +public IQuerySpecification IsDiscounted(Guid discountId) +``` + +--- + +#### IsDiscounted (2 of 2) + +```csharp +public IQuerySpecification IsDiscounted(IEnumerable discountIds) +``` + + +--- + +#### IsFinalized + +```csharp +public IQuerySpecification IsFinalized() +``` + + +--- + +#### LastUpdatedAfter + +```csharp +public IQuerySpecification LastUpdatedAfter(DateTime date) +``` + + +--- + +#### LastUpdatedBefore + +```csharp +public IQuerySpecification LastUpdatedBefore(DateTime date) +``` + + +--- + +#### LastUpdatedBetween + +```csharp +public IQuerySpecification LastUpdatedBetween(DateTime fromDate, DateTime toDate) +``` + + +--- + +#### PlacedAfter + +```csharp +public IQuerySpecification PlacedAfter(DateTime date) +``` + + +--- + +#### PlacedBefore + +```csharp +public IQuerySpecification PlacedBefore(DateTime date) +``` + + +--- + +#### PlacedBetween + +```csharp +public IQuerySpecification PlacedBetween(DateTime fromDate, DateTime toDate) +``` + + +--- + +#### Redeems (1 of 2) + +```csharp +public IQuerySpecification Redeems(string discountOrGiftCardCode) +``` + +--- + +#### Redeems (2 of 2) + +```csharp +public IQuerySpecification Redeems(IEnumerable discountOrGiftCardCodes) +``` + + +--- + +#### SearchableFieldsMatch + +```csharp +public IQuerySpecification SearchableFieldsMatch(string searchTerm, + StringComparisonType comparisonType = StringComparisonType.Equals) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderredeemsspecification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderredeemsspecification.md new file mode 100644 index 00000000000..7a3546a25a3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/orderredeemsspecification.md @@ -0,0 +1,64 @@ +--- +title: OrderRedeemsSpecification +description: API reference for OrderRedeemsSpecification in Umbraco Commerce +--- +## OrderRedeemsSpecification + +```csharp +public class OrderRedeemsSpecification : IQuerySpecification, + ISpecification +``` + +**Inheritance** + +* interface [IQuerySpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecification-1.md) +* interface [ISpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.Order](README.md) + +### Constructors + +#### OrderRedeemsSpecification (1 of 2) + +```csharp +public OrderRedeemsSpecification(string discountOrGiftCardCode) +``` + +--- + +#### OrderRedeemsSpecification (2 of 2) + +```csharp +public OrderRedeemsSpecification(IEnumerable discountOrGiftCardCodes) +``` + + +### Properties + +#### DiscountOrGiftCardCodes + +```csharp +public IEnumerable DiscountOrGiftCardCodes { get; } +``` + + +### Methods + +#### Accept + +```csharp +public void Accept(IVisitor visitor) +``` + + +--- + +#### IsSatisfiedBy + +```csharp +public bool IsSatisfiedBy(OrderReadOnly item) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/ordersearchablefieldsmatchspecification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/ordersearchablefieldsmatchspecification.md new file mode 100644 index 00000000000..fc5ff4be0f3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/ordersearchablefieldsmatchspecification.md @@ -0,0 +1,66 @@ +--- +title: OrderSearchableFieldsMatchSpecification +description: API reference for OrderSearchableFieldsMatchSpecification in Umbraco Commerce +--- +## OrderSearchableFieldsMatchSpecification + +```csharp +public class OrderSearchableFieldsMatchSpecification : IQuerySpecification, + ISpecification +``` + +**Inheritance** + +* interface [IQuerySpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/iqueryspecification-1.md) +* interface [ISpecification<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/ispecification-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.Order](README.md) + +### Constructors + +#### OrderSearchableFieldsMatchSpecification + +```csharp +public OrderSearchableFieldsMatchSpecification(string searchTerm, + StringComparisonType comparisonType) +``` + + +### Properties + +#### ComparisonType + +```csharp +public StringComparisonType ComparisonType { get; } +``` + + +--- + +#### SearchTerm + +```csharp +public string SearchTerm { get; } +``` + + +### Methods + +#### Accept + +```csharp +public void Accept(IVisitor visitor) +``` + + +--- + +#### IsSatisfiedBy + +```csharp +public bool IsSatisfiedBy(OrderReadOnly item) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/ordersortbycreatedatespecification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/ordersortbycreatedatespecification.md new file mode 100644 index 00000000000..e85f426681b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/ordersortbycreatedatespecification.md @@ -0,0 +1,54 @@ +--- +title: OrderSortByCreateDateSpecification +description: API reference for OrderSortByCreateDateSpecification in Umbraco Commerce +--- +## OrderSortByCreateDateSpecification + +```csharp +public class OrderSortByCreateDateSpecification : SortSpecificationBase +``` + +**Inheritance** + +* Class [SortSpecificationBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/sortspecificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.Order](README.md) + +### Constructors + +#### OrderSortByCreateDateSpecification + +```csharp +public OrderSortByCreateDateSpecification(Sort sort = Sort.Ascending) +``` + + +### Methods + +#### Accept + +```csharp +public override void Accept(IVisitor visitor) +``` + + +--- + +#### InvokeSort (1 of 2) + +```csharp +public override IOrderedEnumerable InvokeSort(IEnumerable collection) +``` + +--- + +#### InvokeSort (2 of 2) + +```csharp +public override IOrderedEnumerable InvokeSort( + IOrderedEnumerable collection) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/ordersortbyfinalizeddatespecification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/ordersortbyfinalizeddatespecification.md new file mode 100644 index 00000000000..d650d8e485c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/ordersortbyfinalizeddatespecification.md @@ -0,0 +1,54 @@ +--- +title: OrderSortByFinalizedDateSpecification +description: API reference for OrderSortByFinalizedDateSpecification in Umbraco Commerce +--- +## OrderSortByFinalizedDateSpecification + +```csharp +public class OrderSortByFinalizedDateSpecification : SortSpecificationBase +``` + +**Inheritance** + +* Class [SortSpecificationBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/sortspecificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.Order](README.md) + +### Constructors + +#### OrderSortByFinalizedDateSpecification + +```csharp +public OrderSortByFinalizedDateSpecification(Sort sort = Sort.Ascending) +``` + + +### Methods + +#### Accept + +```csharp +public override void Accept(IVisitor visitor) +``` + + +--- + +#### InvokeSort (1 of 2) + +```csharp +public override IOrderedEnumerable InvokeSort(IEnumerable collection) +``` + +--- + +#### InvokeSort (2 of 2) + +```csharp +public override IOrderedEnumerable InvokeSort( + IOrderedEnumerable collection) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/ordersortbyordernumberspecification.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/ordersortbyordernumberspecification.md new file mode 100644 index 00000000000..6b9a0262240 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/ordersortbyordernumberspecification.md @@ -0,0 +1,54 @@ +--- +title: OrderSortByOrderNumberSpecification +description: API reference for OrderSortByOrderNumberSpecification in Umbraco Commerce +--- +## OrderSortByOrderNumberSpecification + +```csharp +public class OrderSortByOrderNumberSpecification : SortSpecificationBase +``` + +**Inheritance** + +* Class [SortSpecificationBase<!0>](../../umbraco-commerce-common/umbraco-commerce-common-specifications/sortspecificationbase-1.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.Order](README.md) + +### Constructors + +#### OrderSortByOrderNumberSpecification + +```csharp +public OrderSortByOrderNumberSpecification(Sort sort = Sort.Ascending) +``` + + +### Methods + +#### Accept + +```csharp +public override void Accept(IVisitor visitor) +``` + + +--- + +#### InvokeSort (1 of 2) + +```csharp +public override IOrderedEnumerable InvokeSort(IEnumerable collection) +``` + +--- + +#### InvokeSort (2 of 2) + +```csharp +public override IOrderedEnumerable InvokeSort( + IOrderedEnumerable collection) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/ordersortspecificationfactory.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/ordersortspecificationfactory.md new file mode 100644 index 00000000000..fffa842a871 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-specifications-order/ordersortspecificationfactory.md @@ -0,0 +1,56 @@ +--- +title: OrderSortSpecificationFactory +description: API reference for OrderSortSpecificationFactory in Umbraco Commerce +--- +## OrderSortSpecificationFactory + +```csharp +public class OrderSortSpecificationFactory : IOrderSortSpecificationFactory +``` + +**Inheritance** + +* interface [IOrderSortSpecificationFactory](iordersortspecificationfactory.md) + +**Namespace** +* [Umbraco.Commerce.Core.Specifications.Order](README.md) + +### Constructors + +#### OrderSortSpecificationFactory + +The default constructor. + +```csharp +public OrderSortSpecificationFactory() +``` + + +### Methods + +#### ByCreateDate + +```csharp +public ISortSpecification ByCreateDate(Sort sort = Sort.Ascending) +``` + + +--- + +#### ByFinalizedDate + +```csharp +public ISortSpecification ByFinalizedDate(Sort sort = Sort.Ascending) +``` + + +--- + +#### ByOrderNumber + +```csharp +public ISortSpecification ByOrderNumber(Sort sort = Sort.Ascending) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-tax/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-tax/README.md new file mode 100644 index 00000000000..8d4f0ba0e7b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-tax/README.md @@ -0,0 +1,14 @@ +--- +title: Umbraco.Commerce.Core.Tax +description: API reference for Umbraco.Commerce.Core.Tax in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Tax namespace + +| Public Type | Description | +| --- | --- | +| class [DestinationTaxSourceFactory](destinationtaxsourcefactory.md) | | +| interface [ITaxSourceFactory](itaxsourcefactory.md) | | +| class [OriginTaxSourceFactory](origintaxsourcefactory.md) | | +| abstract class [TaxSourceFactoryBase](taxsourcefactorybase.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-tax/destinationtaxsourcefactory.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-tax/destinationtaxsourcefactory.md new file mode 100644 index 00000000000..9ed02814306 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-tax/destinationtaxsourcefactory.md @@ -0,0 +1,39 @@ +--- +title: DestinationTaxSourceFactory +description: API reference for DestinationTaxSourceFactory in Umbraco Commerce +--- +## DestinationTaxSourceFactory + +```csharp +public class DestinationTaxSourceFactory : TaxSourceFactoryBase +``` + +**Inheritance** + +* Class [TaxSourceFactoryBase](taxsourcefactorybase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Tax](README.md) + +### Constructors + +#### DestinationTaxSourceFactory + +The default constructor. + +```csharp +public DestinationTaxSourceFactory() +``` + + +### Methods + +#### Create + +```csharp +public override TaxSource Create(Guid? paymentCountryId, Guid? paymentRegionId = default(Guid?), + Guid? shippingCountryId = default(Guid?), Guid? shippingRegionId = default(Guid?)) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-tax/itaxsourcefactory.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-tax/itaxsourcefactory.md new file mode 100644 index 00000000000..762eb889bf6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-tax/itaxsourcefactory.md @@ -0,0 +1,32 @@ +--- +title: ITaxSourceFactory +description: API reference for ITaxSourceFactory in Umbraco Commerce +--- +## ITaxSourceFactory + +```csharp +public interface ITaxSourceFactory +``` + +**Namespace** +* [Umbraco.Commerce.Core.Tax](README.md) + +### Methods + +#### Create (1 of 2) + +```csharp +public TaxSource Create(OrderReadOnly order) +``` + +--- + +#### Create (2 of 2) + +```csharp +public TaxSource Create(Guid? paymentCountryId, Guid? paymentRegionId = default(Guid?), + Guid? shippingCountryId = default(Guid?), Guid? shippingRegionId = default(Guid?)) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-tax/origintaxsourcefactory.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-tax/origintaxsourcefactory.md new file mode 100644 index 00000000000..8d1d0eab89e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-tax/origintaxsourcefactory.md @@ -0,0 +1,39 @@ +--- +title: OriginTaxSourceFactory +description: API reference for OriginTaxSourceFactory in Umbraco Commerce +--- +## OriginTaxSourceFactory + +```csharp +public class OriginTaxSourceFactory : TaxSourceFactoryBase +``` + +**Inheritance** + +* Class [TaxSourceFactoryBase](taxsourcefactorybase.md) + +**Namespace** +* [Umbraco.Commerce.Core.Tax](README.md) + +### Constructors + +#### OriginTaxSourceFactory + +The default constructor. + +```csharp +public OriginTaxSourceFactory() +``` + + +### Methods + +#### Create + +```csharp +public override TaxSource Create(Guid? paymentCountryId, Guid? paymentRegionId = default(Guid?), + Guid? shippingCountryId = default(Guid?), Guid? shippingRegionId = default(Guid?)) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-tax/taxsourcefactorybase.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-tax/taxsourcefactorybase.md new file mode 100644 index 00000000000..9c88ec0f548 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-tax/taxsourcefactorybase.md @@ -0,0 +1,37 @@ +--- +title: TaxSourceFactoryBase +description: API reference for TaxSourceFactoryBase in Umbraco Commerce +--- +## TaxSourceFactoryBase + +```csharp +public abstract class TaxSourceFactoryBase : ITaxSourceFactory +``` + +**Inheritance** + +* interface [ITaxSourceFactory](itaxsourcefactory.md) + +**Namespace** +* [Umbraco.Commerce.Core.Tax](README.md) + +### Methods + +#### Create + +```csharp +public TaxSource Create(OrderReadOnly order) +``` + + +--- + +#### Create + +```csharp +public abstract TaxSource Create(Guid? paymentCountryId, Guid? paymentRegionId = default(Guid?), + Guid? shippingCountryId = default(Guid?), Guid? shippingRegionId = default(Guid?)) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-templating/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-templating/README.md new file mode 100644 index 00000000000..c0d2e2da133 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-templating/README.md @@ -0,0 +1,12 @@ +--- +title: Umbraco.Commerce.Core.Templating +description: API reference for Umbraco.Commerce.Core.Templating in Umbraco Commerce +--- +## Umbraco.Commerce.Core.Templating namespace + +| Public Type | Description | +| --- | --- | +| interface [ITemplateEngine](itemplateengine.md) | | +| class [ViewTemplateEngine](viewtemplateengine.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-templating/itemplateengine.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-templating/itemplateengine.md new file mode 100644 index 00000000000..dc254f30f27 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-templating/itemplateengine.md @@ -0,0 +1,32 @@ +--- +title: ITemplateEngine +description: API reference for ITemplateEngine in Umbraco Commerce +--- +## ITemplateEngine + +```csharp +public interface ITemplateEngine +``` + +**Namespace** +* [Umbraco.Commerce.Core.Templating](README.md) + +### Methods + +#### GetTemplateViews + +```csharp +public IEnumerable GetTemplateViews() +``` + + +--- + +#### RenderTemplateView + +```csharp +public string RenderTemplateView(string templateViewPath, object model, string languageIsoCode) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-templating/viewtemplateengine.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-templating/viewtemplateengine.md new file mode 100644 index 00000000000..52a1343279a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-templating/viewtemplateengine.md @@ -0,0 +1,45 @@ +--- +title: ViewTemplateEngine +description: API reference for ViewTemplateEngine in Umbraco Commerce +--- +## ViewTemplateEngine + +```csharp +public class ViewTemplateEngine : ITemplateEngine +``` + +**Inheritance** + +* interface [ITemplateEngine](itemplateengine.md) + +**Namespace** +* [Umbraco.Commerce.Core.Templating](README.md) + +### Constructors + +#### ViewTemplateEngine + +```csharp +public ViewTemplateEngine(IViewEngine viewEngine) +``` + + +### Methods + +#### GetTemplateViews + +```csharp +public IEnumerable GetTemplateViews() +``` + + +--- + +#### RenderTemplateView + +```csharp +public string RenderTemplateView(string templateViewPath, object model, string languageIsoCode) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-viewengines/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-viewengines/README.md new file mode 100644 index 00000000000..36858383f8c --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-viewengines/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Core.ViewEngines +description: API reference for Umbraco.Commerce.Core.ViewEngines in Umbraco Commerce +--- +## Umbraco.Commerce.Core.ViewEngines namespace + +| Public Type | Description | +| --- | --- | +| interface [IViewEngine](iviewengine.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-viewengines/iviewengine.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-viewengines/iviewengine.md new file mode 100644 index 00000000000..8a6013af0cf --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core-viewengines/iviewengine.md @@ -0,0 +1,23 @@ +--- +title: IViewEngine +description: API reference for IViewEngine in Umbraco Commerce +--- +## IViewEngine + +```csharp +public interface IViewEngine +``` + +**Namespace** +* [Umbraco.Commerce.Core.ViewEngines](README.md) + +### Methods + +#### RenderView + +```csharp +public string RenderView(string viewPath, object model) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core/README.md new file mode 100644 index 00000000000..af326c245ec --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core/README.md @@ -0,0 +1,15 @@ +--- +title: Umbraco.Commerce.Core +description: API reference for Umbraco.Commerce.Core in Umbraco Commerce +--- +## Umbraco.Commerce.Core namespace + +| Public Type | Description | +| --- | --- | +| static class [Constants](constants.md) | Umbraco Commerce constant variables | +| interface [IUmbracoCommerceBuilder](iumbracocommercebuilder.md) | | +| class [SequentialGuidProvider](sequentialguidprovider.md) | | +| class [UmbracoCommerceUnitOfWorkDefaultOptions](umbracocommerceunitofworkdefaultoptions.md) | | +| class [UmbracoCommerceUnitOfWorkOptions](umbracocommerceunitofworkoptions.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core/constants.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core/constants.md new file mode 100644 index 00000000000..e2b3a05e09f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core/constants.md @@ -0,0 +1,493 @@ +--- +title: Constants +description: API reference for Constants in Umbraco Commerce +--- +## Constants + +Umbraco Commerce constant variables + +```csharp +public static class Constants +``` + +**Namespace** +* [Umbraco.Commerce.Core](README.md) + +### Fields + +#### DefaultMonetaryPrecision + +The default precision of monetary values + +```csharp +public static int DefaultMonetaryPrecision; +``` + + +--- + +#### InstanceId + +Defines a unique instance ID for this instance of Umbraco Commerce. + +```csharp +public static string InstanceId; +``` + + +### Classes + +#### Constants.Entities + +Entity related constants + +```csharp +public static class Entities +``` + +##### Classes + +#### Constants.Entities.EntityTypes + +Entity type constants + +```csharp +public static class EntityTypes +``` + +##### Fields + +#### Cart + +Cart entity type + +```csharp +public const string Cart; +``` + + +--- + +#### Country + +Country entity type + +```csharp +public const string Country; +``` + + +--- + +#### Currency + +Currency entity type + +```csharp +public const string Currency; +``` + + +--- + +#### Discount + +Discount entity type + +```csharp +public const string Discount; +``` + + +--- + +#### EmailTemplate + +Email Template entity type + +```csharp +public const string EmailTemplate; +``` + + +--- + +#### ExportTemplate + +Export Template entity type + +```csharp +public const string ExportTemplate; +``` + + +--- + +#### GiftCard + +Gift Card entity type + +```csharp +public const string GiftCard; +``` + + +--- + +#### Order + +Order entity type + +```csharp +public const string Order; +``` + + +--- + +#### OrderStatus + +Order Status entity type + +```csharp +public const string OrderStatus; +``` + + +--- + +#### PaymentMethod + +Payment Method entity type + +```csharp +public const string PaymentMethod; +``` + + +--- + +#### PrintTemplate + +Print Template entity type + +```csharp +public const string PrintTemplate; +``` + + +--- + +#### ProductAttribute + +Product Attribute entity type + +```csharp +public const string ProductAttribute; +``` + + +--- + +#### ProductAttributePreset + +Product Attribute Preset entity type + +```csharp +public const string ProductAttributePreset; +``` + + +--- + +#### ProductAttributeValue + +Product Attribute Value entity type + +```csharp +public const string ProductAttributeValue; +``` + + +--- + +#### Region + +Region entity type + +```csharp +public const string Region; +``` + + +--- + +#### ShippingMethod + +Shipping Method entity type + +```csharp +public const string ShippingMethod; +``` + + +--- + +#### Store + +Store entity type + +```csharp +public const string Store; +``` + + +--- + +#### TaxClass + +Tax Class entity type + +```csharp +public const string TaxClass; +``` + + + + +--- + +#### Constants.PaymentProviders + +Payment provider related constants + +```csharp +public static class PaymentProviders +``` + +##### Classes + +#### Constants.PaymentProviders.Aliases + +Payment provider aliases + +```csharp +public static class Aliases +``` + +##### Fields + +#### Invoicing + +The invoicing payment provider alias + +```csharp +public const string Invoicing; +``` + + +--- + +#### ZeroValue + +The zero value payment provider alias + +```csharp +public const string ZeroValue; +``` + + + + +--- + +#### Constants.Properties + +Property constants + +```csharp +public static class Properties +``` + +##### Classes + +#### Constants.Properties.Customer + +Customer property constants + +```csharp +public static class Customer +``` + +##### Fields + +#### EmailPropertyAlias + +The property alias of the customer Email property + +```csharp +public const string EmailPropertyAlias; +``` + + +--- + +#### FirstNamePropertyAlias + +The property alias of the customer First Name property + +```csharp +public const string FirstNamePropertyAlias; +``` + + +--- + +#### LastNamePropertyAlias + +The property alias of the customer Last Name property + +```csharp +public const string LastNamePropertyAlias; +``` + + + +--- + +#### Constants.Properties.Product + +Product property constants + +```csharp +public static class Product +``` + +##### Fields + +#### IsGiftCardPropertyAlias + +The property alias of the product Is Gift Card property + +```csharp +public const string IsGiftCardPropertyAlias; +``` + + +--- + +#### IsRecurringPropertyAlias + +The property alias of the product Is Recurring property + +```csharp +public const string IsRecurringPropertyAlias; +``` + + +--- + +#### NamePropertyAlias + +The property alias of the product Product Name property + +```csharp +public const string NamePropertyAlias; +``` + +**Remarks** + +If a productName property isn't present, the nodes Name will be used + + + + +--- + +#### Constants.System + +System constants + +```csharp +public static class System +``` + +##### Fields + +#### ConnectionStringName + +The connection string name for the Umbraco Commerce database + +```csharp +public const string ConnectionStringName; +``` + + +--- + +#### MigrationPlanName + +The Umbraco Commerce migration plan name + +```csharp +public const string MigrationPlanName; +``` + + +--- + +#### ProductAlias + +The UmbracoCommerce product alias + +```csharp +public const string ProductAlias; +``` + + +--- + +#### ProductId + +The Umbraco Commerce product ID + +```csharp +public const string ProductId; +``` + + +--- + +#### ProductName + +The Umbraco Commerce product name + +```csharp +public const string ProductName; +``` + + +##### Classes + +#### Constants.System.Messages + +System message constants + +```csharp +public static class Messages +``` + +##### Fields + +#### ScaffoldToWritableExceptionMessage + +Exception message to display if a scaffold entity is attempted to be made writable + +```csharp +public const string ScaffoldToWritableExceptionMessage; +``` + + + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core/iumbracocommercebuilder.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core/iumbracocommercebuilder.md new file mode 100644 index 00000000000..c41e9bf6808 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core/iumbracocommercebuilder.md @@ -0,0 +1,51 @@ +--- +title: IUmbracoCommerceBuilder +description: API reference for IUmbracoCommerceBuilder in Umbraco Commerce +--- +## IUmbracoCommerceBuilder + +```csharp +public interface IUmbracoCommerceBuilder +``` + +**Namespace** +* [Umbraco.Commerce.Core](README.md) + +### Properties + +#### Config + +```csharp +public IConfiguration Config { get; } +``` + + +--- + +#### Services + +```csharp +public IServiceCollection Services { get; } +``` + + +### Methods + +#### Build + +```csharp +public void Build() +``` + + +--- + +#### WithCollectionBuilder<TBuilder> + +```csharp +public TBuilder WithCollectionBuilder() + where TBuilder : IComposedCollectionBuilder, new() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core/sequentialguidprovider.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core/sequentialguidprovider.md new file mode 100644 index 00000000000..9808bad4922 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core/sequentialguidprovider.md @@ -0,0 +1,38 @@ +--- +title: SequentialGuidProvider +description: API reference for SequentialGuidProvider in Umbraco Commerce +--- +## SequentialGuidProvider + +```csharp +public class SequentialGuidProvider : IGuidProvider +``` + +**Inheritance** + +* interface [IGuidProvider](../../umbraco-commerce-common/umbraco-commerce-common/iguidprovider.md) + +**Namespace** +* [Umbraco.Commerce.Core](README.md) + +### Constructors + +#### SequentialGuidProvider + +The default constructor. + +```csharp +public SequentialGuidProvider() +``` + + +### Methods + +#### CreateGuid + +```csharp +public Guid CreateGuid() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core/umbracocommerceunitofworkdefaultoptions.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core/umbracocommerceunitofworkdefaultoptions.md new file mode 100644 index 00000000000..6e24feacd69 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core/umbracocommerceunitofworkdefaultoptions.md @@ -0,0 +1,52 @@ +--- +title: UmbracoCommerceUnitOfWorkDefaultOptions +description: API reference for UmbracoCommerceUnitOfWorkDefaultOptions in Umbraco Commerce +--- +## UmbracoCommerceUnitOfWorkDefaultOptions + +```csharp +public class UmbracoCommerceUnitOfWorkDefaultOptions +``` + +**Namespace** +* [Umbraco.Commerce.Core](README.md) + +### Constructors + +#### UmbracoCommerceUnitOfWorkDefaultOptions + +The default constructor. + +```csharp +public UmbracoCommerceUnitOfWorkDefaultOptions() +``` + + +### Properties + +#### AutoComplete + +```csharp +public bool? AutoComplete { get; set; } +``` + + +--- + +#### IsolationLevel + +```csharp +public IsolationLevel? IsolationLevel { get; set; } +``` + + +--- + +#### Timeout + +```csharp +public int? Timeout { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core/umbracocommerceunitofworkoptions.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core/umbracocommerceunitofworkoptions.md new file mode 100644 index 00000000000..67099aac90a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-core/umbracocommerceunitofworkoptions.md @@ -0,0 +1,78 @@ +--- +title: UmbracoCommerceUnitOfWorkOptions +description: API reference for UmbracoCommerceUnitOfWorkOptions in Umbraco Commerce +--- +## UmbracoCommerceUnitOfWorkOptions + +```csharp +public class UmbracoCommerceUnitOfWorkOptions : IUnitOfWorkOptions +``` + +**Inheritance** + +* interface [IUnitOfWorkOptions](../../umbraco-commerce-common/umbraco-commerce-common/iunitofworkoptions.md) + +**Namespace** +* [Umbraco.Commerce.Core](README.md) + +### Constructors + +#### UmbracoCommerceUnitOfWorkOptions + +The default constructor. + +```csharp +public UmbracoCommerceUnitOfWorkOptions() +``` + + +--- + +#### UmbracoCommerceUnitOfWorkOptions + +```csharp +public UmbracoCommerceUnitOfWorkOptions(IsolationLevel? isolationLevel = null, int? timeout = null, + bool? autoComplete = null) +``` + + +### Properties + +#### AutoComplete + +```csharp +public bool? AutoComplete { get; set; } +``` + + +--- + +#### IsolationLevel + +```csharp +public IsolationLevel? IsolationLevel { get; set; } +``` + + +--- + +#### Timeout + +Milliseconds + +```csharp +public int? Timeout { get; set; } +``` + + +### Methods + +#### CreateNormalizeClone + +```csharp +public static UmbracoCommerceUnitOfWorkOptions CreateNormalizeClone(IUnitOfWorkOptions options, + UmbracoCommerceUnitOfWorkDefaultOptions defaultOptions) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/README.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/README.md new file mode 100644 index 00000000000..96b2ea6f529 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/README.md @@ -0,0 +1,25 @@ +--- +title: Umbraco.Commerce.Extensions +description: API reference for Umbraco.Commerce.Extensions in Umbraco Commerce +--- +## Umbraco.Commerce.Extensions namespace + +| Public Type | Description | +| --- | --- | +| static class [AdjustedPriceExtensions](adjustedpriceextensions.md) | Extensions methods for !:DiscountedPrice entities | +| static class [AmountExtensions](amountextensions.md) | Extensions methods for [`IAmount`](umbraco-commerce-core-models/iamount.md) entities | +| static class [CompositionExtensions](compositionextensions.md) | | +| static class [CurrencyExtensions](currencyextensions.md) | | +| static class [DictionaryExtensions](dictionaryextensions.md) | Dictionary extension methods | +| static class [EnumerableExtensions](enumerableextensions.md) | Extensions for enumerable sources | +| static class [IProductServiceExtensions](iproductserviceextensions.md) | Extension methods for the Product service | +| static class [IProductSnapshotExtensions](iproductsnapshotextensions.md) | | +| static class [ITranslationServiceExtensions](itranslationserviceextensions.md) | Extension methods for the Translation service | +| static class [OrderExtensions](orderextensions.md) | Extension methods for an Order | +| static class [OrderReferenceExtensions](orderreferenceextensions.md) | | +| static class [PaymentMethodExtensions](paymentmethodextensions.md) | | +| static class [PriceExtensions](priceextensions.md) | Extensions methods for [`IPrice`](umbraco-commerce-core-models/iprice.md) entities | +| static class [ShippingMethodExtensions](shippingmethodextensions.md) | | +| static class [UmbracoCommerceBuilderExtensions](umbracocommercebuilderextensions.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/adjustedpriceextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/adjustedpriceextensions.md new file mode 100644 index 00000000000..8028c81b2ab --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/adjustedpriceextensions.md @@ -0,0 +1,37 @@ +--- +title: AdjustedPriceExtensions +description: API reference for AdjustedPriceExtensions in Umbraco Commerce +--- +## AdjustedPriceExtensions + +Extensions methods for !:DiscountedPrice entities + +```csharp +public static class AdjustedPriceExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + +### Methods + +#### Formatted + +Formats the [`AdjustedPrice`](../umbraco-commerce-core-models/adjustedprice.md) value for the given prices [`Currency`](../umbraco-commerce-core-models/currency.md) + +```csharp +public static FormattedPrice Formatted(this AdjustedPrice price) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| | The [`AdjustedPrice`](../umbraco-commerce-core-models/adjustedprice.md) to format | + +**Returns** + +A [`FormattedAmount`](../umbraco-commerce-core-models/formattedamount.md) instance + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/amountextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/amountextensions.md new file mode 100644 index 00000000000..8ceb3893a8e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/amountextensions.md @@ -0,0 +1,95 @@ +--- +title: AmountExtensions +description: API reference for AmountExtensions in Umbraco Commerce +--- +## AmountExtensions + +Extensions methods for [`IAmount`](../umbraco-commerce-core-models/iamount.md) entities + +```csharp +public static class AmountExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + +### Methods + +#### Formatted (1 of 2) + +Formats the [`IAmount`](../umbraco-commerce-core-models/iamount.md) value for the given amounts [`Currency`](../umbraco-commerce-core-models/currency.md) + +```csharp +public static FormattedAmount Formatted(this IAmount value) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| value | The [`IAmount`](../umbraco-commerce-core-models/iamount.md) to format | + +**Returns** + +A [`FormattedAmount`](../umbraco-commerce-core-models/formattedamount.md) instance + +--- + +#### Formatted (2 of 2) + +Formats the [`IAmount`](../umbraco-commerce-core-models/iamount.md) value for the given amounts [`Currency`](../umbraco-commerce-core-models/currency.md) + +```csharp +public static FormattedAmount Formatted(this IAmount value, int decimalPlaces) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| value | The [`IAmount`](../umbraco-commerce-core-models/iamount.md) to format | +| decimalPlaces | The number of decimal places to format to | + +**Returns** + +A [`FormattedAmount`](../umbraco-commerce-core-models/formattedamount.md) instance + + +--- + +#### Rounded + +Round the amount to the presission of the amounts culture number format + +```csharp +public static Amount Rounded(this Amount amount) +``` + +**Returns** + +A rounded amount value + + +--- + +#### RoundedIf + +Round the amount to the presission of the amounts culture number format if the given predicate is true + +```csharp +public static Amount RoundedIf(this Amount amount, Predicate test) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| amount | The amount to be rounded | +| test | The predicate to determine if the amount should be rounded or not | + +**Returns** + +A rounded amount value + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/compositionextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/compositionextensions.md new file mode 100644 index 00000000000..a72bbba70d7 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/compositionextensions.md @@ -0,0 +1,164 @@ +--- +title: CompositionExtensions +description: API reference for CompositionExtensions in Umbraco Commerce +--- +## CompositionExtensions + +```csharp +public static class CompositionExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + +### Methods + +#### WithCalculateOrderAdjustedPricesPipeline + +```csharp +public static PipelineTaskCollectionBuilder + WithCalculateOrderAdjustedPricesPipeline(this IUmbracoCommerceBuilder builder) +``` + + +--- + +#### WithCalculateOrderAdjustedTransactionAmountPipeline + +```csharp +public static PipelineTaskCollectionBuilder + WithCalculateOrderAdjustedTransactionAmountPipeline(this IUmbracoCommerceBuilder builder) +``` + + +--- + +#### WithCalculateOrderLineAdjustedPricesPipeline + +```csharp +public static PipelineTaskCollectionBuilder + WithCalculateOrderLineAdjustedPricesPipeline(this IUmbracoCommerceBuilder builder) +``` + + +--- + +#### WithCalculateOrderLinePricesPipeline + +```csharp +public static PipelineTaskCollectionBuilder + WithCalculateOrderLinePricesPipeline(this IUmbracoCommerceBuilder builder) +``` + + +--- + +#### WithCalculateOrderLineTaxRatesPipeline + +```csharp +public static PipelineTaskCollectionBuilder + WithCalculateOrderLineTaxRatesPipeline(this IUmbracoCommerceBuilder builder) +``` + + +--- + +#### WithCalculateOrderPipeline + +```csharp +public static PipelineTaskCollectionBuilder + WithCalculateOrderPipeline(this IUmbracoCommerceBuilder builder) +``` + + +--- + +#### WithCalculateOrderPricesPipeline + +```csharp +public static PipelineTaskCollectionBuilder + WithCalculateOrderPricesPipeline(this IUmbracoCommerceBuilder builder) +``` + + +--- + +#### WithCalculateOrderTaxRatesPipeline + +```csharp +public static PipelineTaskCollectionBuilder + WithCalculateOrderTaxRatesPipeline(this IUmbracoCommerceBuilder builder) +``` + + +--- + +#### WithCalculateOrderTotalPricePipeline + +```csharp +public static PipelineTaskCollectionBuilder + WithCalculateOrderTotalPricePipeline(this IUmbracoCommerceBuilder builder) +``` + + +--- + +#### WithCalculateOrderTotalTransactionAmountPipeline + +```csharp +public static PipelineTaskCollectionBuilder + WithCalculateOrderTotalTransactionAmountPipeline(this IUmbracoCommerceBuilder builder) +``` + + +--- + +#### WithCalculateOrderTransactionAmountPipeline + +```csharp +public static PipelineTaskCollectionBuilder + WithCalculateOrderTransactionAmountPipeline(this IUmbracoCommerceBuilder builder) +``` + + +--- + +#### WithInitStorePipeline + +```csharp +public static PipelineTaskCollectionBuilder WithInitStorePipeline( + this IUmbracoCommerceBuilder builder) +``` + + +--- + +#### WithLimitOrderDiscountsPipeline + +```csharp +public static PipelineTaskCollectionBuilder + WithLimitOrderDiscountsPipeline(this IUmbracoCommerceBuilder builder) +``` + + +--- + +#### WithSendEmailPipeline + +```csharp +public static PipelineTaskCollectionBuilder WithSendEmailPipeline( + this IUmbracoCommerceBuilder builder) +``` + + +--- + +#### WithTelemetryDataPipeline + +```csharp +public static PipelineTaskCollectionBuilder + WithTelemetryDataPipeline(this IUmbracoCommerceBuilder builder) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/currencyextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/currencyextensions.md new file mode 100644 index 00000000000..3f92c5191a6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/currencyextensions.md @@ -0,0 +1,42 @@ +--- +title: CurrencyExtensions +description: API reference for CurrencyExtensions in Umbraco Commerce +--- +## CurrencyExtensions + +```csharp +public static class CurrencyExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + +### Methods + +#### FormatValue (1 of 2) + +```csharp +public static string FormatValue(this CurrencyReadOnly currency, decimal value, + bool includeSymbol = true) +``` + +--- + +#### FormatValue (2 of 2) + +```csharp +public static string FormatValue(this CurrencyReadOnly currency, decimal value, int decimalPlaces, + bool includeSymbol = true) +``` + + +--- + +#### RoundValue + +```csharp +public static decimal RoundValue(this CurrencyReadOnly currency, decimal value) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/dictionaryextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/dictionaryextensions.md new file mode 100644 index 00000000000..f21048b4db7 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/dictionaryextensions.md @@ -0,0 +1,16 @@ +--- +title: DictionaryExtensions +description: API reference for DictionaryExtensions in Umbraco Commerce +--- +## DictionaryExtensions + +Dictionary extension methods + +```csharp +public static class DictionaryExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/enumerableextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/enumerableextensions.md new file mode 100644 index 00000000000..c02e27524ed --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/enumerableextensions.md @@ -0,0 +1,49 @@ +--- +title: EnumerableExtensions +description: API reference for EnumerableExtensions in Umbraco Commerce +--- +## EnumerableExtensions + +Extensions for enumerable sources + +```csharp +public static class EnumerableExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + +### Methods + +#### Sum (1 of 4) + +```csharp +public static Price Sum(this IEnumerable adjustments, Guid currencyId) +``` + +--- + +#### Sum (2 of 4) + +```csharp +public static Amount Sum(this IEnumerable adjustments, Guid currencyId) +``` + +--- + +#### Sum (3 of 4) + +```csharp +public static Amount Sum(this IEnumerable amounts, Guid currencyId) +``` + +--- + +#### Sum (4 of 4) + +```csharp +public static Price Sum(this IEnumerable prices, Guid currencyId) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/iproductserviceextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/iproductserviceextensions.md new file mode 100644 index 00000000000..ee621411bb5 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/iproductserviceextensions.md @@ -0,0 +1,16 @@ +--- +title: IProductServiceExtensions +description: API reference for IProductServiceExtensions in Umbraco Commerce +--- +## IProductServiceExtensions + +Extension methods for the Product service + +```csharp +public static class IProductServiceExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/iproductsnapshotextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/iproductsnapshotextensions.md new file mode 100644 index 00000000000..61ce0ae8f2b --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/iproductsnapshotextensions.md @@ -0,0 +1,50 @@ +--- +title: IProductSnapshotExtensions +description: API reference for IProductSnapshotExtensions in Umbraco Commerce +--- +## IProductSnapshotExtensions + +```csharp +public static class IProductSnapshotExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + +### Methods + +#### CalculatePrice (1 of 4) + +```csharp +public static Price CalculatePrice(this IProductSnapshot product) +``` + +--- + +#### CalculatePrice (2 of 4) + +```csharp +public static Price CalculatePrice(this IProductSnapshot product, OrderReadOnly currentOrder) +``` + +--- + +#### CalculatePrice (3 of 4) + +```csharp +public static Price CalculatePrice(this IProductSnapshot product, + SessionManagerAccessor sessionAccessor, IProductCalculator calculator, + ITaxSourceFactory taxSourceFactory) +``` + +--- + +#### CalculatePrice (4 of 4) + +```csharp +public static Price CalculatePrice(this IProductSnapshot product, OrderReadOnly currentOrder, + IProductCalculator calculator, ITaxSourceFactory taxSourceFactory) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/itranslationserviceextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/itranslationserviceextensions.md new file mode 100644 index 00000000000..717f1370254 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/itranslationserviceextensions.md @@ -0,0 +1,64 @@ +--- +title: ITranslationServiceExtensions +description: API reference for ITranslationServiceExtensions in Umbraco Commerce +--- +## ITranslationServiceExtensions + +Extension methods for the Translation service + +```csharp +public static class ITranslationServiceExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + +### Methods + +#### TranslateValues (1 of 2) + +Translates a series of values to the given language + +```csharp +public static IEnumerable TranslateValues(this ITranslationService translationService, + IEnumerable values, string languageIsoCode) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| translationService | The [`ITranslationService`](../umbraco-commerce-core-services/itranslationservice.md) instance | +| values | The values to attempt to translate | +| languageIsoCode | The ISO Code of the language to attempt to translate to | + +**Returns** + +A list of translated value, or the original value if a translation was unsuccessful + +--- + +#### TranslateValues (2 of 2) + +Translate a series of dictionary values to the given language + +```csharp +public static IDictionary TranslateValues( + this ITranslationService translationService, IEnumerable> values, + string languageIsoCode) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| translationService | The [`ITranslationService`](../umbraco-commerce-core-services/itranslationservice.md) instance | +| values | The values to attempt to translate | +| languageIsoCode | The ISO Code of the language to attempt to translate to | + +**Returns** + +A dictionary of translated values, or the original value if a translation was unsuccessful + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/orderextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/orderextensions.md new file mode 100644 index 00000000000..59a8b1620cd --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/orderextensions.md @@ -0,0 +1,865 @@ +--- +title: OrderExtensions +description: API reference for OrderExtensions in Umbraco Commerce +--- +## OrderExtensions + +Extension methods for an Order + +```csharp +public static class OrderExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + +### Methods + +#### AddProduct (1 of 12) + +Adds a product to the order + +```csharp +public static Order AddProduct(this Order order, string productReference, decimal qty) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| order | The [`Order`](../umbraco-commerce-core-models/order.md) instance | +| productReference | The unique reference of the product | +| qty | The quantity of the product to add to the order | + +**Returns** + +The updated [`Order`](../umbraco-commerce-core-models/order.md) entity + +--- + +#### AddProduct (2 of 12) + +Adds a product variant to the order + +```csharp +public static Order AddProduct(this Order order, string productReference, + string productVariantReference, decimal qty) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| order | The [`Order`](../umbraco-commerce-core-models/order.md) instance | +| productReference | The unique reference of the product | +| productVariantReference | The unique reference of the product variant | +| qty | The quantity of the product to add to the order | + +**Returns** + +The updated [`Order`](../umbraco-commerce-core-models/order.md) entity + +--- + +#### AddProduct (3 of 12) + +Adds a product to the order + +```csharp +public static Order AddProduct(this Order order, string productReference, decimal qty, + string bundleId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| order | The [`Order`](../umbraco-commerce-core-models/order.md) instance | +| productReference | The unique reference of the product | +| qty | The quantity of the product to add to the order | +| bundleId | A bundle ID to assign to the product order line to identify it as a bundle | + +**Returns** + +The updated [`Order`](../umbraco-commerce-core-models/order.md) entity + +--- + +#### AddProduct (4 of 12) + +Adds a product variant to the order + +```csharp +public static Order AddProduct(this Order order, string productReference, + string productVariantReference, decimal qty, string bundleId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| order | The [`Order`](../umbraco-commerce-core-models/order.md) instance | +| productReference | The unique reference of the product | +| productVariantReference | The unique reference of the product variant | +| qty | The quantity of the product to add to the order | +| bundleId | A bundle ID to assign to the product order line to identify it as a bundle | + +**Returns** + +The updated [`Order`](../umbraco-commerce-core-models/order.md) entity + +--- + +#### AddProduct (5 of 12) + +Adds a product to the order + +```csharp +public static Order AddProduct(this Order order, string productReference, decimal qty, + IDictionary properties) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| order | The [`Order`](../umbraco-commerce-core-models/order.md) instance | +| productReference | The unique reference of the product | +| qty | The quantity of the product to add to the order | +| properties | A collection of properties to assign to the product order line | + +**Returns** + +The updated [`Order`](../umbraco-commerce-core-models/order.md) entity + +--- + +#### AddProduct (6 of 12) + +Adds a product variant to the order + +```csharp +public static Order AddProduct(this Order order, string productReference, + string productVariantReference, decimal qty, IDictionary properties) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| order | The [`Order`](../umbraco-commerce-core-models/order.md) instance | +| productReference | The unique reference of the product | +| productVariantReference | The unique reference of the product variant | +| qty | The quantity of the product to add to the order | +| properties | A collection of properties to assign to the product order line | + +**Returns** + +The updated [`Order`](../umbraco-commerce-core-models/order.md) entity + +--- + +#### AddProduct (7 of 12) + +Adds a product to the order + +```csharp +public static Order AddProduct(this Order order, string productReference, decimal qty, + IDictionary properties, string bundleId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| order | The [`Order`](../umbraco-commerce-core-models/order.md) instance | +| productReference | The unique reference of the product | +| qty | The quantity of the product to add to the order | +| properties | A collection of properties to assign to the product order line | +| bundleId | A bundle ID to assign to the product order line to identify it as a bundle | + +**Returns** + +The updated [`Order`](../umbraco-commerce-core-models/order.md) entity + +--- + +#### AddProduct (8 of 12) + +Adds a product variant to the order + +```csharp +public static Order AddProduct(this Order order, string productReference, + string productVariantReference, decimal qty, IDictionary properties, + string bundleId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| order | The [`Order`](../umbraco-commerce-core-models/order.md) instance | +| productReference | The unique reference of the product | +| productVariantReference | The unique reference of the product variant | +| qty | The quantity of the product to add to the order | +| properties | A collection of properties to assign to the product order line | +| bundleId | A bundle ID to assign to the product order line to identify it as a bundle | + +**Returns** + +The updated [`Order`](../umbraco-commerce-core-models/order.md) entity + +--- + +#### AddProduct (9 of 12) + +Adds a product to the order + +```csharp +public static Order AddProduct(this Order order, IProductSnapshot productSnapshot, decimal qty) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| order | The [`Order`](../umbraco-commerce-core-models/order.md) instance | +| productSnapshot | A snapshot of the product to add | +| qty | The quantity of the product to add to the order | + +**Returns** + +The updated [`Order`](../umbraco-commerce-core-models/order.md) entity + +--- + +#### AddProduct (10 of 12) + +Adds a product to the order + +```csharp +public static Order AddProduct(this Order order, IProductSnapshot productSnapshot, decimal qty, + string bundleId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| order | The [`Order`](../umbraco-commerce-core-models/order.md) instance | +| productSnapshot | A snapshot of the product to add | +| qty | The quantity of the product to add to the order | +| bundleId | A bundle ID to assign to the product order line to identify it as a bundle | + +**Returns** + +The updated [`Order`](../umbraco-commerce-core-models/order.md) entity + +--- + +#### AddProduct (11 of 12) + +Adds a product to the order + +```csharp +public static Order AddProduct(this Order order, IProductSnapshot productSnapshot, decimal qty, + IDictionary properties) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| order | The [`Order`](../umbraco-commerce-core-models/order.md) instance | +| productSnapshot | A snapshot of the product to add | +| qty | The quantity of the product to add to the order | +| properties | A collection of properties to assign to the product order line | + +**Returns** + +The updated [`Order`](../umbraco-commerce-core-models/order.md) entity + +--- + +#### AddProduct (12 of 12) + +Adds a product to the order + +```csharp +public static Order AddProduct(this Order order, IProductSnapshot productSnapshot, decimal qty, + IDictionary properties, string bundleId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| order | The [`Order`](../umbraco-commerce-core-models/order.md) instance | +| productSnapshot | A snapshot of the product to add | +| qty | The quantity of the product to add to the order | +| properties | A collection of properties to assign to the product order line | +| bundleId | A bundle ID to assign to the product order line to identify it as a bundle | + +**Returns** + +The updated [`Order`](../umbraco-commerce-core-models/order.md) entity + + +--- + +#### AddProductToBundle (1 of 12) + +Adds a product to a bundle in the order + +```csharp +public static Order AddProductToBundle(this Order order, string parentBundleId, + string productReference, decimal qty) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| order | The [`Order`](../umbraco-commerce-core-models/order.md) instance | +| parentBundleId | The bundle ID of an existing bundle order line to assign the product order line to as a bundle item | +| productReference | The unique reference of the product | +| qty | The quantity of the product to add to the order | + +**Returns** + +The updated [`Order`](../umbraco-commerce-core-models/order.md) entity + +--- + +#### AddProductToBundle (2 of 12) + +Adds a product variant to a bundle in the order + +```csharp +public static Order AddProductToBundle(this Order order, string parentBundleId, + string productReference, string productVariantReference, decimal qty) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| order | The [`Order`](../umbraco-commerce-core-models/order.md) instance | +| parentBundleId | The bundle ID of an existing bundle order line to assign the product order line to as a bundle item | +| productReference | The unique reference of the product | +| productVariantReference | The unique reference of the product variant | +| qty | The quantity of the product to add to the order | + +**Returns** + +The updated [`Order`](../umbraco-commerce-core-models/order.md) entity + +--- + +#### AddProductToBundle (3 of 12) + +Adds a product to a bundle in the order + +```csharp +public static Order AddProductToBundle(this Order order, string parentBundleId, + string productReference, decimal qty, string bundleId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| order | The [`Order`](../umbraco-commerce-core-models/order.md) instance | +| parentBundleId | The bundle ID of an existing bundle order line to assign the product order line to as a bundle item | +| productReference | The unique reference of the product | +| qty | The quantity of the product to add to the order | +| bundleId | A bundle ID to assign to the product order line to identify it as a bundle | + +**Returns** + +The updated [`Order`](../umbraco-commerce-core-models/order.md) entity + +--- + +#### AddProductToBundle (4 of 12) + +Adds a product variant to a bundle in the order + +```csharp +public static Order AddProductToBundle(this Order order, string parentBundleId, + string productReference, string productVariantReference, decimal qty, string bundleId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| order | The [`Order`](../umbraco-commerce-core-models/order.md) instance | +| parentBundleId | The bundle ID of an existing bundle order line to assign the product order line to as a bundle item | +| productReference | The unique reference of the product | +| productVariantReference | The unique reference of the product variant | +| qty | The quantity of the product to add to the order | +| bundleId | A bundle ID to assign to the product order line to identify it as a bundle | + +**Returns** + +The updated [`Order`](../umbraco-commerce-core-models/order.md) entity + +--- + +#### AddProductToBundle (5 of 12) + +Adds a product to a bundle in the order + +```csharp +public static Order AddProductToBundle(this Order order, string parentBundleId, + string productReference, decimal qty, IDictionary properties) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| order | The [`Order`](../umbraco-commerce-core-models/order.md) instance | +| parentBundleId | The bundle ID of an existing bundle order line to assign the product order line to as a bundle item | +| productReference | The unique reference of the product | +| qty | The quantity of the product to add to the order | +| properties | A collection of properties to assign to the product order line | + +**Returns** + +The updated [`Order`](../umbraco-commerce-core-models/order.md) entity + +--- + +#### AddProductToBundle (6 of 12) + +Adds a product variant to a bundle in the order + +```csharp +public static Order AddProductToBundle(this Order order, string parentBundleId, + string productReference, string productVariantReference, decimal qty, + IDictionary properties) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| order | The [`Order`](../umbraco-commerce-core-models/order.md) instance | +| parentBundleId | The bundle ID of an existing bundle order line to assign the product order line to as a bundle item | +| productReference | The unique reference of the product | +| productVariantReference | The unique reference of the product variant | +| qty | The quantity of the product to add to the order | +| properties | A collection of properties to assign to the product order line | + +**Returns** + +The updated [`Order`](../umbraco-commerce-core-models/order.md) entity + +--- + +#### AddProductToBundle (7 of 12) + +Adds a product to a bundle in the order + +```csharp +public static Order AddProductToBundle(this Order order, string parentBundleId, + string productReference, decimal qty, IDictionary properties, string bundleId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| order | The [`Order`](../umbraco-commerce-core-models/order.md) instance | +| parentBundleId | The bundle ID of an existing bundle order line to assign the product order line to as a bundle item | +| productReference | The unique reference of the product | +| qty | The quantity of the product to add to the order | +| properties | A collection of properties to assign to the product order line | +| bundleId | A bundle ID to assign to the product order line to identify it as a bundle | + +**Returns** + +The updated [`Order`](../umbraco-commerce-core-models/order.md) entity + +--- + +#### AddProductToBundle (8 of 12) + +Adds a product variant to a bundle in the order + +```csharp +public static Order AddProductToBundle(this Order order, string parentBundleId, + string productReference, string productVariantReference, decimal qty, + IDictionary properties, string bundleId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| order | The [`Order`](../umbraco-commerce-core-models/order.md) instance | +| parentBundleId | The bundle ID of an existing bundle order line to assign the product order line to as a bundle item | +| productReference | The unique reference of the product | +| productVariantReference | The unique reference of the product variant | +| qty | The quantity of the product to add to the order | +| properties | A collection of properties to assign to the product order line | +| bundleId | A bundle ID to assign to the product order line to identify it as a bundle | + +**Returns** + +The updated [`Order`](../umbraco-commerce-core-models/order.md) entity + +--- + +#### AddProductToBundle (9 of 12) + +Adds a product to a bundle in the order + +```csharp +public static Order AddProductToBundle(this Order order, string parentBundleId, + IProductSnapshot productSnapshot, decimal qty) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| order | The [`Order`](../umbraco-commerce-core-models/order.md) instance | +| parentBundleId | The bundle ID of an existing bundle order line to assign the product order line to as a bundle item | +| productSnapshot | A snapshot of the product to add | +| qty | The quantity of the product to add to the order | + +**Returns** + +The updated [`Order`](../umbraco-commerce-core-models/order.md) entity + +--- + +#### AddProductToBundle (10 of 12) + +Adds a product to a bundle in the order + +```csharp +public static Order AddProductToBundle(this Order order, string parentBundleId, + IProductSnapshot productSnapshot, decimal qty, string bundleId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| order | The [`Order`](../umbraco-commerce-core-models/order.md) instance | +| parentBundleId | The bundle ID of an existing bundle order line to assign the product order line to as a bundle item | +| productSnapshot | A snapshot of the product to add | +| qty | The quantity of the product to add to the order | +| bundleId | A bundle ID to assign to the product order line to identify it as a bundle | + +**Returns** + +The updated [`Order`](../umbraco-commerce-core-models/order.md) entity + +--- + +#### AddProductToBundle (11 of 12) + +Adds a product to a bundle in the order + +```csharp +public static Order AddProductToBundle(this Order order, string parentBundleId, + IProductSnapshot productSnapshot, decimal qty, IDictionary properties) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| order | The [`Order`](../umbraco-commerce-core-models/order.md) instance | +| parentBundleId | The bundle ID of an existing bundle order line to assign the product order line to as a bundle item | +| productSnapshot | A snapshot of the product to add | +| qty | The quantity of the product to add to the order | +| properties | A collection of properties to assign to the product order line | + +**Returns** + +The updated [`Order`](../umbraco-commerce-core-models/order.md) entity + +--- + +#### AddProductToBundle (12 of 12) + +Adds a product to a bundle in the order + +```csharp +public static Order AddProductToBundle(this Order order, string parentBundleId, + IProductSnapshot productSnapshot, decimal qty, IDictionary properties, + string bundleId) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| order | The [`Order`](../umbraco-commerce-core-models/order.md) instance | +| parentBundleId | The bundle ID of an existing bundle order line to assign the product order line to as a bundle item | +| productSnapshot | A snapshot of the product to add | +| qty | The quantity of the product to add to the order | +| properties | A collection of properties to assign to the product order line | +| bundleId | A bundle ID to assign to the product order line to identify it as a bundle | + +**Returns** + +The updated [`Order`](../umbraco-commerce-core-models/order.md) entity + + +--- + +#### ApplyPaymentChanges + +Applies the changes from a Payment Result to an order + +```csharp +public static Order ApplyPaymentChanges(this Order order, PaymentResult result) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| order | The order to update | +| result | The payment result changes to apply | + +**Returns** + +The updated order + + +--- + +#### FinalizeOrUpdateTransaction (1 of 2) + +Finalizes or updates the transaction info of the order + +```csharp +public static Order FinalizeOrUpdateTransaction(this Order order, decimal amountAuthorized, + string transactionId, PaymentStatus paymentStatus) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| order | The [`Order`](../umbraco-commerce-core-models/order.md) instance | +| amountAuthorized | The amount authorized by the payment gateway | +| transactionId | The ID of the transaction from the payment gateway | +| paymentStatus | The status of the payment | + +**Returns** + +The updated [`Order`](../umbraco-commerce-core-models/order.md) entity + +--- + +#### FinalizeOrUpdateTransaction (2 of 2) + +Finalizes or updates the transaction info of the order + +```csharp +public static Order FinalizeOrUpdateTransaction(this Order order, decimal amountAuthorized, + decimal transactionFee, string transactionId, PaymentStatus paymentStatus) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| order | The [`Order`](../umbraco-commerce-core-models/order.md) instance | +| amountAuthorized | The amount authorized by the payment gateway | +| transactionFee | The transaction fee charged by the payment gateway | +| transactionId | The ID of the transaction from the payment gateway | +| paymentStatus | The status of the payment | + +**Returns** + +The updated [`Order`](../umbraco-commerce-core-models/order.md) entity + + +--- + +#### GetTotalAmountAdjustmentByType<T> + +Gets the total amount adjustment for a given amount adjustment type + +```csharp +public static Amount GetTotalAmountAdjustmentByType(this OrderReadOnly order) + where T : AmountAdjustment +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| T | The type of the amount adjustment | +| order | The order to fetch the amount adjustments from | + +**Returns** + +The amount of the amount adjustments + + +--- + +#### GetTotalAmountAdjustmentWhere + +Gets the total amount adjustment where amount adjustments match the supplied predicate + +```csharp +public static Amount GetTotalAmountAdjustmentWhere(this OrderReadOnly order, + Func predicate) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| order | The order to fetch the amount adjustments from | +| predicate | The predicate function to include/exclude the amount adjustment | + +**Returns** + +The amount of the amount adjustments + + +--- + +#### GetTotalPriceAdjustmentByType<T> + +Gets the total price adjustment for a given price adjustment type + +```csharp +public static Price GetTotalPriceAdjustmentByType(this OrderReadOnly order) + where T : PriceAdjustment +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| T | The type of the price adjustment | +| order | The order to fetch the price adjustments from | + +**Returns** + +The price of the price adjustments + + +--- + +#### GetTotalPriceAdjustmentWhere + +Gets the total price adjustment where price adjustments match the supplied predicate + +```csharp +public static Price GetTotalPriceAdjustmentWhere(this OrderReadOnly order, + Func predicate) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| order | The order to fetch the price adjustments from | +| predicate | The predicate function to include/exclude the price adjustment | + +**Returns** + +The price of the price adjustments + + +--- + +#### InitializeTransaction + +Initializes a transaction ready to send to the payment gateway + +```csharp +public static Order InitializeTransaction(this Order order) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| order | The [`Order`](../umbraco-commerce-core-models/order.md) instance | + +**Returns** + +The updated [`Order`](../umbraco-commerce-core-models/order.md) entity + + +--- + +#### Recalculate (1 of 2) + +Recalculates the order + +```csharp +public static Order Recalculate(this Order order) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| order | The [`Order`](../umbraco-commerce-core-models/order.md) instance | + +**Returns** + +The updated [`Order`](../umbraco-commerce-core-models/order.md) entity + +--- + +#### Recalculate (2 of 2) + +Recalculates the order + +```csharp +public static Order Recalculate(this Order order, bool force) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| order | The [`Order`](../umbraco-commerce-core-models/order.md) instance | +| force | A boolean flag indicating whether to force recalculation whether the order needs recalculating or not | + +**Returns** + +The updated [`Order`](../umbraco-commerce-core-models/order.md) entity + + +--- + +#### Redeem + +Redeems a [`Discount`](../umbraco-commerce-core-models/discount.md) or [`GiftCard`](../umbraco-commerce-core-models/giftcard.md) against the order + +```csharp +public static Order Redeem(this Order order, string discountOrGiftCardCode) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| order | The [`Order`](../umbraco-commerce-core-models/order.md) instance | +| discountOrGiftCardCode | The [`Discount`](../umbraco-commerce-core-models/discount.md) or [`GiftCard`](../umbraco-commerce-core-models/giftcard.md) code | + +**Returns** + +The updated [`Order`](../umbraco-commerce-core-models/order.md) entity + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/orderreferenceextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/orderreferenceextensions.md new file mode 100644 index 00000000000..7f631092288 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/orderreferenceextensions.md @@ -0,0 +1,23 @@ +--- +title: OrderReferenceExtensions +description: API reference for OrderReferenceExtensions in Umbraco Commerce +--- +## OrderReferenceExtensions + +```csharp +public static class OrderReferenceExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + +### Methods + +#### GenerateOrderReference + +```csharp +public static OrderReference GenerateOrderReference(this OrderReadOnly order) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/paymentmethodextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/paymentmethodextensions.md new file mode 100644 index 00000000000..4720704d6f8 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/paymentmethodextensions.md @@ -0,0 +1,33 @@ +--- +title: PaymentMethodExtensions +description: API reference for PaymentMethodExtensions in Umbraco Commerce +--- +## PaymentMethodExtensions + +```csharp +public static class PaymentMethodExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + +### Methods + +#### CalculatePrice (1 of 2) + +```csharp +public static Price CalculatePrice(this PaymentMethodReadOnly paymentMethod) +``` + +--- + +#### CalculatePrice (2 of 2) + +```csharp +public static Price CalculatePrice(this PaymentMethodReadOnly paymentMethod, + SessionManagerAccessor sessionAccessor, IPaymentCalculator calculator, + ITaxSourceFactory taxSourceFactory) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/priceextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/priceextensions.md new file mode 100644 index 00000000000..e129d6d6277 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/priceextensions.md @@ -0,0 +1,95 @@ +--- +title: PriceExtensions +description: API reference for PriceExtensions in Umbraco Commerce +--- +## PriceExtensions + +Extensions methods for [`IPrice`](../umbraco-commerce-core-models/iprice.md) entities + +```csharp +public static class PriceExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + +### Methods + +#### Formatted (1 of 2) + +Formats the [`IPrice`](../umbraco-commerce-core-models/iprice.md) values for the given prices [`Currency`](../umbraco-commerce-core-models/currency.md) + +```csharp +public static FormattedPrice Formatted(this IPrice value) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| value | The [`IPrice`](../umbraco-commerce-core-models/iprice.md) to format | + +**Returns** + +A [`FormattedPrice`](../umbraco-commerce-core-models/formattedprice.md) instance + +--- + +#### Formatted (2 of 2) + +Formats the [`IPrice`](../umbraco-commerce-core-models/iprice.md) values for the given prices [`Currency`](../umbraco-commerce-core-models/currency.md) + +```csharp +public static FormattedPrice Formatted(this IPrice value, int decimalPlaces) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| value | The [`IPrice`](../umbraco-commerce-core-models/iprice.md) to format | +| decimalPlaces | The number of decimal places to format to | + +**Returns** + +A [`FormattedPrice`](../umbraco-commerce-core-models/formattedprice.md) instance + + +--- + +#### Rounded + +Round the price to the presission of the prices culture number format + +```csharp +public static Price Rounded(this Price price) +``` + +**Returns** + +A rounded price value + + +--- + +#### RoundedIf + +Round the price to the presission of the prices culture number format if the given predicate is true + +```csharp +public static Price RoundedIf(this Price price, Predicate test) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| price | The price to be rounded | +| test | The predicate to determine if the price should be rounded or not | + +**Returns** + +A rounded price value + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/shippingmethodextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/shippingmethodextensions.md new file mode 100644 index 00000000000..ff6da570f32 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/shippingmethodextensions.md @@ -0,0 +1,33 @@ +--- +title: ShippingMethodExtensions +description: API reference for ShippingMethodExtensions in Umbraco Commerce +--- +## ShippingMethodExtensions + +```csharp +public static class ShippingMethodExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + +### Methods + +#### CalculatePrice (1 of 2) + +```csharp +public static Price CalculatePrice(this ShippingMethodReadOnly shippingMethod) +``` + +--- + +#### CalculatePrice (2 of 2) + +```csharp +public static Price CalculatePrice(this ShippingMethodReadOnly shippingMethod, + SessionManagerAccessor sessionAccessor, IShippingCalculator calculator, + ITaxSourceFactory taxSourceFactory) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/umbracocommercebuilderextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/umbracocommercebuilderextensions.md new file mode 100644 index 00000000000..40d91ad7be3 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-core/umbraco-commerce-extensions/umbracocommercebuilderextensions.md @@ -0,0 +1,97 @@ +--- +title: UmbracoCommerceBuilderExtensions +description: API reference for UmbracoCommerceBuilderExtensions in Umbraco Commerce +--- +## UmbracoCommerceBuilderExtensions + +```csharp +public static class UmbracoCommerceBuilderExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + +### Methods + +#### WithAmountAdjusters + +```csharp +public static AmountAdjusterCollectionBuilder WithAmountAdjusters( + this IUmbracoCommerceBuilder builder) +``` + + +--- + +#### WithDomainEvent<TEvent> + +```csharp +public static UmbracoCommerceEventHandlerComposer WithDomainEvent( + this IUmbracoCommerceBuilder builder) + where TEvent : IDomainEvent +``` + + +--- + +#### WithNotificationEvent<TEvent> + +```csharp +public static UmbracoCommerceEventHandlerComposer + WithNotificationEvent(this IUmbracoCommerceBuilder builder) + where TEvent : INotificationEvent +``` + + +--- + +#### WithOrderFinders + +```csharp +public static OrderFinderCollectionBuilder WithOrderFinders(this IUmbracoCommerceBuilder builder) +``` + + +--- + +#### WithPipeline<TCollection,TItem> + +```csharp +public static PipelineTaskCollectionBuilder WithPipeline( + this IUmbracoCommerceBuilder builder) + where TCollection : class, IPipelineTaskCollection +``` + + +--- + +#### WithPriceAdjusters + +```csharp +public static PriceAdjusterCollectionBuilder WithPriceAdjusters( + this IUmbracoCommerceBuilder builder) +``` + + +--- + +#### WithRegisteredCustomerInfoProviders + +```csharp +public static RegisteredCustomerInfoProviderCollectionBuilder WithRegisteredCustomerInfoProviders( + this IUmbracoCommerceBuilder builder) +``` + + +--- + +#### WithValidationEvent<TEvent> + +```csharp +public static UmbracoCommerceEventHandlerComposer + WithValidationEvent(this IUmbracoCommerceBuilder builder) + where TEvent : IValidationEvent +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/README.md b/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/README.md new file mode 100644 index 00000000000..e654ca4561f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/README.md @@ -0,0 +1,14 @@ +--- +title: Umbraco.Commerce.Infrastructure +description: API reference for Umbraco.Commerce.Infrastructure in Umbraco Commerce +--- +## Umbraco.Commerce.Infrastructure assembly + +| Namespace | +| --- | +| [Umbraco.Commerce.Infrastructure](umbraco-commerce-infrastructure/README.md) | +| [Umbraco.Commerce.Infrastructure.Logging](umbraco-commerce-infrastructure-logging/README.md) | +| [Umbraco.Commerce.Infrastructure.Resiliency](umbraco-commerce-infrastructure-resiliency/README.md) | +| [Umbraco.Commerce.Infrastructure.Services](umbraco-commerce-infrastructure-services/README.md) | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure-logging/README.md b/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure-logging/README.md new file mode 100644 index 00000000000..14ab10b5ef1 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure-logging/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Infrastructure.Logging +description: API reference for Umbraco.Commerce.Infrastructure.Logging in Umbraco Commerce +--- +## Umbraco.Commerce.Infrastructure.Logging namespace + +| Public Type | Description | +| --- | --- | +| class [MicrosoftLogger<T>](microsoftlogger-1.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure-logging/microsoftlogger-1.md b/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure-logging/microsoftlogger-1.md new file mode 100644 index 00000000000..094ca35851d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure-logging/microsoftlogger-1.md @@ -0,0 +1,202 @@ +--- +title: MicrosoftLogger +description: API reference for MicrosoftLogger in Umbraco Commerce +--- +## MicrosoftLogger<T> + +```csharp +public class MicrosoftLogger : ILogger +``` + +**Inheritance** + +* interface [ILogger<!0>](../../umbraco-commerce-common/umbraco-commerce-common-logging/ilogger-1.md) + +**Namespace** +* [Umbraco.Commerce.Infrastructure.Logging](README.md) + +### Constructors + +#### MicrosoftLogger<T> + +```csharp +public MicrosoftLogger(ILogger logger) +``` + + +### Methods + +#### Debug (1 of 2) + +```csharp +public void Debug(string message) +``` + +--- + +#### Debug (2 of 2) + +```csharp +public void Debug(string messageTemplate, params object[] propertyValues) +``` + + +--- + +#### Error (1 of 5) + +```csharp +public void Error(Exception exception, string message) +``` + +--- + +#### Error (2 of 5) + +```csharp +public void Error(Exception exception) +``` + +--- + +#### Error (3 of 5) + +```csharp +public void Error(string message) +``` + +--- + +#### Error (4 of 5) + +```csharp +public void Error(Exception exception, string messageTemplate, params object[] propertyValues) +``` + +--- + +#### Error (5 of 5) + +```csharp +public void Error(string messageTemplate, params object[] propertyValues) +``` + + +--- + +#### Fatal (1 of 5) + +```csharp +public void Fatal(Exception exception, string message) +``` + +--- + +#### Fatal (2 of 5) + +```csharp +public void Fatal(Exception exception) +``` + +--- + +#### Fatal (3 of 5) + +```csharp +public void Fatal(string message) +``` + +--- + +#### Fatal (4 of 5) + +```csharp +public void Fatal(Exception exception, string messageTemplate, params object[] propertyValues) +``` + +--- + +#### Fatal (5 of 5) + +```csharp +public void Fatal(string messageTemplate, params object[] propertyValues) +``` + + +--- + +#### Info (1 of 2) + +```csharp +public void Info(string message) +``` + +--- + +#### Info (2 of 2) + +```csharp +public void Info(string messageTemplate, params object[] propertyValues) +``` + + +--- + +#### IsEnabled + +```csharp +public bool IsEnabled(LogLevel level) +``` + + +--- + +#### Verbose (1 of 2) + +```csharp +public void Verbose(string message) +``` + +--- + +#### Verbose (2 of 2) + +```csharp +public void Verbose(string messageTemplate, params object[] propertyValues) +``` + + +--- + +#### Warn (1 of 4) + +```csharp +public void Warn(string message) +``` + +--- + +#### Warn (2 of 4) + +```csharp +public void Warn(string messageTemplate, params object[] propertyValues) +``` + +--- + +#### Warn (3 of 4) + +```csharp +public void Warn(Exception exception, string message) +``` + +--- + +#### Warn (4 of 4) + +```csharp +public void Warn(Exception exception, string messageTemplate, params object[] propertyValues) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure-resiliency/README.md b/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure-resiliency/README.md new file mode 100644 index 00000000000..3f7a599cc24 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure-resiliency/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Infrastructure.Resiliency +description: API reference for Umbraco.Commerce.Infrastructure.Resiliency in Umbraco Commerce +--- +## Umbraco.Commerce.Infrastructure.Resiliency namespace + +| Public Type | Description | +| --- | --- | +| abstract class [PollyExecutionStrategyBase](pollyexecutionstrategybase.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure-resiliency/pollyexecutionstrategybase.md b/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure-resiliency/pollyexecutionstrategybase.md new file mode 100644 index 00000000000..59a5f7a919f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure-resiliency/pollyexecutionstrategybase.md @@ -0,0 +1,39 @@ +--- +title: PollyExecutionStrategyBase +description: API reference for PollyExecutionStrategyBase in Umbraco Commerce +--- +## PollyExecutionStrategyBase + +```csharp +public abstract class PollyExecutionStrategyBase : IExecutionStrategy +``` + +**Inheritance** + +* interface [IExecutionStrategy](../../umbraco-commerce-common/umbraco-commerce-common-resiliency/iexecutionstrategy.md) + +**Namespace** +* [Umbraco.Commerce.Infrastructure.Resiliency](README.md) + +### Methods + +#### Execute<TResult> + +```csharp +public TResult Execute(Func operation, + Func> verifySucceeded = null) +``` + + +--- + +#### ExecuteAsync<TResult> + +```csharp +public Task ExecuteAsync(Func> operation, + Func>> verifySucceeded = null, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure-services/README.md b/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure-services/README.md new file mode 100644 index 00000000000..245365ed9d4 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure-services/README.md @@ -0,0 +1,16 @@ +--- +title: Umbraco.Commerce.Infrastructure.Services +description: API reference for Umbraco.Commerce.Infrastructure.Services in Umbraco Commerce +--- +## Umbraco.Commerce.Infrastructure.Services namespace + +| Public Type | Description | +| --- | --- | +| abstract class [CurrencyExchangeRateServiceBase](currencyexchangerateservicebase.md) | | +| class [CurrencyLayerCurrencyExchangeRateService](currencylayercurrencyexchangerateservice.md) | | +| class [ExchangeRateHostCurrencyExchangeRateService](exchangeratehostcurrencyexchangerateservice.md) | | +| class [ExchangeRatesApiCurrencyExchangeRateService](exchangeratesapicurrencyexchangerateservice.md) | | +| class [FixerCurrencyExchangeRateService](fixercurrencyexchangerateservice.md) | | +| class [OutfieldDigitalCurrencyExchangeRateService](outfielddigitalcurrencyexchangerateservice.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure-services/currencyexchangerateservicebase.md b/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure-services/currencyexchangerateservicebase.md new file mode 100644 index 00000000000..862bbc73409 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure-services/currencyexchangerateservicebase.md @@ -0,0 +1,57 @@ +--- +title: CurrencyExchangeRateServiceBase +description: API reference for CurrencyExchangeRateServiceBase in Umbraco Commerce +--- +## CurrencyExchangeRateServiceBase + +```csharp +public abstract class CurrencyExchangeRateServiceBase : ICurrencyExchangeRateService +``` + +**Inheritance** + +* interface [ICurrencyExchangeRateService](../../umbraco-commerce-core/umbraco-commerce-core-services/icurrencyexchangerateservice.md) + +**Namespace** +* [Umbraco.Commerce.Infrastructure.Services](README.md) + +### Methods + +#### FetchExchangeRate + +```csharp +public abstract decimal FetchExchangeRate(string fromCurrencyIsoCode, string toCurrencyIsoCode, + DateTime date) +``` + + +--- + +#### FetchExchangeRates + +```csharp +public abstract Dictionary> FetchExchangeRates( + string fromCurrencyIsoCode, string[] toCurrencyIsoCodes, DateTime dateFrom, DateTime dateTo) +``` + + +--- + +#### GetExchangeRate + +```csharp +public decimal GetExchangeRate(string fromCurrencyIsoCode, string toCurrencyIsoCode, DateTime date) +``` + + +--- + +#### GetExchangeRates + +```csharp +public Dictionary> GetExchangeRates(string fromCurrencyIsoCode, + string[] toCurrencyIsoCodes, DateTime dateFrom, DateTime dateTo) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure-services/currencylayercurrencyexchangerateservice.md b/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure-services/currencylayercurrencyexchangerateservice.md new file mode 100644 index 00000000000..8089f2e4da5 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure-services/currencylayercurrencyexchangerateservice.md @@ -0,0 +1,47 @@ +--- +title: CurrencyLayerCurrencyExchangeRateService +description: API reference for CurrencyLayerCurrencyExchangeRateService in Umbraco Commerce +--- +## CurrencyLayerCurrencyExchangeRateService + +```csharp +public class CurrencyLayerCurrencyExchangeRateService : CurrencyExchangeRateServiceBase +``` + +**Inheritance** + +* Class [CurrencyExchangeRateServiceBase](currencyexchangerateservicebase.md) + +**Namespace** +* [Umbraco.Commerce.Infrastructure.Services](README.md) + +### Constructors + +#### CurrencyLayerCurrencyExchangeRateService + +```csharp +public CurrencyLayerCurrencyExchangeRateService(string apiKey) +``` + + +### Methods + +#### FetchExchangeRate + +```csharp +public override decimal FetchExchangeRate(string fromCurrencyIsoCode, string toCurrencyIsoCode, + DateTime date) +``` + + +--- + +#### FetchExchangeRates + +```csharp +public override Dictionary> FetchExchangeRates( + string fromCurrencyIsoCode, string[] toCurrencyIsoCodes, DateTime dateFrom, DateTime dateTo) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure-services/exchangeratehostcurrencyexchangerateservice.md b/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure-services/exchangeratehostcurrencyexchangerateservice.md new file mode 100644 index 00000000000..4bd0824a3b2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure-services/exchangeratehostcurrencyexchangerateservice.md @@ -0,0 +1,49 @@ +--- +title: ExchangeRateHostCurrencyExchangeRateService +description: API reference for ExchangeRateHostCurrencyExchangeRateService in Umbraco Commerce +--- +## ExchangeRateHostCurrencyExchangeRateService + +```csharp +public class ExchangeRateHostCurrencyExchangeRateService : CurrencyExchangeRateServiceBase +``` + +**Inheritance** + +* Class [CurrencyExchangeRateServiceBase](currencyexchangerateservicebase.md) + +**Namespace** +* [Umbraco.Commerce.Infrastructure.Services](README.md) + +### Constructors + +#### ExchangeRateHostCurrencyExchangeRateService + +The default constructor. + +```csharp +public ExchangeRateHostCurrencyExchangeRateService() +``` + + +### Methods + +#### FetchExchangeRate + +```csharp +public override decimal FetchExchangeRate(string fromCurrencyIsoCode, string toCurrencyIsoCode, + DateTime date) +``` + + +--- + +#### FetchExchangeRates + +```csharp +public override Dictionary> FetchExchangeRates( + string fromCurrencyIsoCode, string[] toCurrencyIsoCodes, DateTime dateFrom, DateTime dateTo) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure-services/exchangeratesapicurrencyexchangerateservice.md b/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure-services/exchangeratesapicurrencyexchangerateservice.md new file mode 100644 index 00000000000..2333b099d53 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure-services/exchangeratesapicurrencyexchangerateservice.md @@ -0,0 +1,47 @@ +--- +title: ExchangeRatesApiCurrencyExchangeRateService +description: API reference for ExchangeRatesApiCurrencyExchangeRateService in Umbraco Commerce +--- +## ExchangeRatesApiCurrencyExchangeRateService + +```csharp +public class ExchangeRatesApiCurrencyExchangeRateService : CurrencyExchangeRateServiceBase +``` + +**Inheritance** + +* Class [CurrencyExchangeRateServiceBase](currencyexchangerateservicebase.md) + +**Namespace** +* [Umbraco.Commerce.Infrastructure.Services](README.md) + +### Constructors + +#### ExchangeRatesApiCurrencyExchangeRateService + +```csharp +public ExchangeRatesApiCurrencyExchangeRateService(string apiKey) +``` + + +### Methods + +#### FetchExchangeRate + +```csharp +public override decimal FetchExchangeRate(string fromCurrencyIsoCode, string toCurrencyIsoCode, + DateTime date) +``` + + +--- + +#### FetchExchangeRates + +```csharp +public override Dictionary> FetchExchangeRates( + string fromCurrencyIsoCode, string[] toCurrencyIsoCodes, DateTime dateFrom, DateTime dateTo) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure-services/fixercurrencyexchangerateservice.md b/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure-services/fixercurrencyexchangerateservice.md new file mode 100644 index 00000000000..7ba71d8a72d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure-services/fixercurrencyexchangerateservice.md @@ -0,0 +1,47 @@ +--- +title: FixerCurrencyExchangeRateService +description: API reference for FixerCurrencyExchangeRateService in Umbraco Commerce +--- +## FixerCurrencyExchangeRateService + +```csharp +public class FixerCurrencyExchangeRateService : CurrencyExchangeRateServiceBase +``` + +**Inheritance** + +* Class [CurrencyExchangeRateServiceBase](currencyexchangerateservicebase.md) + +**Namespace** +* [Umbraco.Commerce.Infrastructure.Services](README.md) + +### Constructors + +#### FixerCurrencyExchangeRateService + +```csharp +public FixerCurrencyExchangeRateService(string apiKey) +``` + + +### Methods + +#### FetchExchangeRate + +```csharp +public override decimal FetchExchangeRate(string fromCurrencyIsoCode, string toCurrencyIsoCode, + DateTime date) +``` + + +--- + +#### FetchExchangeRates + +```csharp +public override Dictionary> FetchExchangeRates( + string fromCurrencyIsoCode, string[] toCurrencyIsoCodes, DateTime dateFrom, DateTime dateTo) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure-services/outfielddigitalcurrencyexchangerateservice.md b/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure-services/outfielddigitalcurrencyexchangerateservice.md new file mode 100644 index 00000000000..65365c3ef19 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure-services/outfielddigitalcurrencyexchangerateservice.md @@ -0,0 +1,49 @@ +--- +title: OutfieldDigitalCurrencyExchangeRateService +description: API reference for OutfieldDigitalCurrencyExchangeRateService in Umbraco Commerce +--- +## OutfieldDigitalCurrencyExchangeRateService + +```csharp +public class OutfieldDigitalCurrencyExchangeRateService : CurrencyExchangeRateServiceBase +``` + +**Inheritance** + +* Class [CurrencyExchangeRateServiceBase](currencyexchangerateservicebase.md) + +**Namespace** +* [Umbraco.Commerce.Infrastructure.Services](README.md) + +### Constructors + +#### OutfieldDigitalCurrencyExchangeRateService + +The default constructor. + +```csharp +public OutfieldDigitalCurrencyExchangeRateService() +``` + + +### Methods + +#### FetchExchangeRate + +```csharp +public override decimal FetchExchangeRate(string fromCurrencyIsoCode, string toCurrencyIsoCode, + DateTime date) +``` + + +--- + +#### FetchExchangeRates + +```csharp +public override Dictionary> FetchExchangeRates( + string fromCurrencyIsoCode, string[] toCurrencyIsoCodes, DateTime dateFrom, DateTime dateTo) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure/README.md b/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure/README.md new file mode 100644 index 00000000000..e1a4af797bd --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure/README.md @@ -0,0 +1,15 @@ +--- +title: Umbraco.Commerce.Infrastructure +description: API reference for Umbraco.Commerce.Infrastructure in Umbraco Commerce +--- +## Umbraco.Commerce.Infrastructure namespace + +| Public Type | Description | +| --- | --- | +| abstract class [PollyUnitOfWorkExecutionStrategyBase](pollyunitofworkexecutionstrategybase.md) | | +| class [ScopedServiceProviderFactory](scopedserviceproviderfactory.md) | | +| class [ScopedServiceProviderFactoryAccessor](scopedserviceproviderfactoryaccessor.md) | | +| class [ServiceProviderFactory](serviceproviderfactory.md) | | +| abstract class [ServiceProviderFactoryBase](serviceproviderfactorybase.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure/pollyunitofworkexecutionstrategybase.md b/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure/pollyunitofworkexecutionstrategybase.md new file mode 100644 index 00000000000..167f5a47a69 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure/pollyunitofworkexecutionstrategybase.md @@ -0,0 +1,20 @@ +--- +title: PollyUnitOfWorkExecutionStrategyBase +description: API reference for PollyUnitOfWorkExecutionStrategyBase in Umbraco Commerce +--- +## PollyUnitOfWorkExecutionStrategyBase + +```csharp +public abstract class PollyUnitOfWorkExecutionStrategyBase : PollyExecutionStrategyBase, + IUnitOfWorkExecutionStrategy +``` + +**Inheritance** + +* Class [PollyExecutionStrategyBase](../umbraco-commerce-infrastructure-resiliency/pollyexecutionstrategybase.md) +* interface [IUnitOfWorkExecutionStrategy](../../umbraco-commerce-common/umbraco-commerce-common/iunitofworkexecutionstrategy.md) + +**Namespace** +* [Umbraco.Commerce.Infrastructure](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure/scopedserviceproviderfactory.md b/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure/scopedserviceproviderfactory.md new file mode 100644 index 00000000000..d643467d700 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure/scopedserviceproviderfactory.md @@ -0,0 +1,45 @@ +--- +title: ScopedServiceProviderFactory +description: API reference for ScopedServiceProviderFactory in Umbraco Commerce +--- +## ScopedServiceProviderFactory + +```csharp +public class ScopedServiceProviderFactory : ServiceProviderFactoryBase, IScopedFactory +``` + +**Inheritance** + +* Class [ServiceProviderFactoryBase](serviceproviderfactorybase.md) +* interface [IScopedFactory](../../umbraco-commerce-common/umbraco-commerce-common/iscopedfactory.md) + +**Namespace** +* [Umbraco.Commerce.Infrastructure](README.md) + +### Constructors + +#### ScopedServiceProviderFactory (1 of 2) + +```csharp +public ScopedServiceProviderFactory(IServiceScope scope) +``` + +--- + +#### ScopedServiceProviderFactory (2 of 2) + +```csharp +public ScopedServiceProviderFactory(IServiceProvider serviceProvider) +``` + + +### Methods + +#### Dispose + +```csharp +public void Dispose() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure/scopedserviceproviderfactoryaccessor.md b/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure/scopedserviceproviderfactoryaccessor.md new file mode 100644 index 00000000000..47a40a491ca --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure/scopedserviceproviderfactoryaccessor.md @@ -0,0 +1,37 @@ +--- +title: ScopedServiceProviderFactoryAccessor +description: API reference for ScopedServiceProviderFactoryAccessor in Umbraco Commerce +--- +## ScopedServiceProviderFactoryAccessor + +```csharp +public class ScopedServiceProviderFactoryAccessor : IScopedFactoryAccessor +``` + +**Inheritance** + +* interface [IScopedFactoryAccessor](../../umbraco-commerce-common/umbraco-commerce-common/iscopedfactoryaccessor.md) + +**Namespace** +* [Umbraco.Commerce.Infrastructure](README.md) + +### Constructors + +#### ScopedServiceProviderFactoryAccessor + +```csharp +public ScopedServiceProviderFactoryAccessor(IUnitOfWorkAccessor unitOfWorkAccessor, + IHttpContextAccessor httpContextAccessor) +``` + + +### Properties + +#### Factory + +```csharp +public IScopedFactory Factory { get; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure/serviceproviderfactory.md b/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure/serviceproviderfactory.md new file mode 100644 index 00000000000..bf455ec42bb --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure/serviceproviderfactory.md @@ -0,0 +1,37 @@ +--- +title: ServiceProviderFactory +description: API reference for ServiceProviderFactory in Umbraco Commerce +--- +## ServiceProviderFactory + +```csharp +public class ServiceProviderFactory : ServiceProviderFactoryBase, IFactory +``` + +**Inheritance** + +* Class [ServiceProviderFactoryBase](serviceproviderfactorybase.md) +* interface [IFactory](../../umbraco-commerce-common/umbraco-commerce-common/ifactory.md) + +**Namespace** +* [Umbraco.Commerce.Infrastructure](README.md) + +### Constructors + +#### ServiceProviderFactory + +```csharp +public ServiceProviderFactory(IServiceProvider services) +``` + + +### Methods + +#### CreateScoped + +```csharp +public IScopedFactory CreateScoped() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure/serviceproviderfactorybase.md b/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure/serviceproviderfactorybase.md new file mode 100644 index 00000000000..9588c12c00d --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-infrastructure/umbraco-commerce-infrastructure/serviceproviderfactorybase.md @@ -0,0 +1,81 @@ +--- +title: ServiceProviderFactoryBase +description: API reference for ServiceProviderFactoryBase in Umbraco Commerce +--- +## ServiceProviderFactoryBase + +```csharp +public abstract class ServiceProviderFactoryBase : IFactoryBase +``` + +**Inheritance** + +* interface [IFactoryBase](../../umbraco-commerce-common/umbraco-commerce-common/ifactorybase.md) + +**Namespace** +* [Umbraco.Commerce.Infrastructure](README.md) + +### Constructors + +#### ServiceProviderFactoryBase + +```csharp +public ServiceProviderFactoryBase(IServiceProvider services) +``` + + +### Methods + +#### GetAllInstances + +```csharp +public IEnumerable GetAllInstances(Type type) +``` + + +--- + +#### GetAllInstances<T> + +```csharp +public IEnumerable GetAllInstances() +``` + + +--- + +#### GetInstance + +```csharp +public object GetInstance(Type type) +``` + + +--- + +#### GetInstance<T> + +```csharp +public T GetInstance() +``` + + +--- + +#### TryGetInstance + +```csharp +public object TryGetInstance(Type type) +``` + + +--- + +#### TryGetInstance<T> + +```csharp +public T TryGetInstance() +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlite/README.md b/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlite/README.md new file mode 100644 index 00000000000..9856f4bcb2e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlite/README.md @@ -0,0 +1,12 @@ +--- +title: Umbraco.Commerce.Persistence.Sqlite +description: API reference for Umbraco.Commerce.Persistence.Sqlite in Umbraco Commerce +--- +## Umbraco.Commerce.Persistence.Sqlite assembly + +| Namespace | +| --- | +| [Umbraco.Commerce.Extensions](umbraco-commerce-extensions/README.md) | +| [Umbraco.Commerce.Persistence.Sqlite](umbraco-commerce-persistence-sqlite/README.md) | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlite/umbraco-commerce-extensions/README.md b/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlite/umbraco-commerce-extensions/README.md new file mode 100644 index 00000000000..97cccb93ddb --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlite/umbraco-commerce-extensions/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Extensions +description: API reference for Umbraco.Commerce.Extensions in Umbraco Commerce +--- +## Umbraco.Commerce.Extensions namespace + +| Public Type | Description | +| --- | --- | +| static class [UmbracoCommerceBuilderExtensions](umbracocommercebuilderextensions.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlite/umbraco-commerce-extensions/umbracocommercebuilderextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlite/umbraco-commerce-extensions/umbracocommercebuilderextensions.md new file mode 100644 index 00000000000..8badc892802 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlite/umbraco-commerce-extensions/umbracocommercebuilderextensions.md @@ -0,0 +1,23 @@ +--- +title: UmbracoCommerceBuilderExtensions +description: API reference for UmbracoCommerceBuilderExtensions in Umbraco Commerce +--- +## UmbracoCommerceBuilderExtensions + +```csharp +public static class UmbracoCommerceBuilderExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + +### Methods + +#### AddSQLite + +```csharp +public static IUmbracoCommerceBuilder AddSQLite(this IUmbracoCommerceBuilder builder) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlite/umbraco-commerce-persistence-sqlite/README.md b/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlite/umbraco-commerce-persistence-sqlite/README.md new file mode 100644 index 00000000000..b468ca77964 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlite/umbraco-commerce-persistence-sqlite/README.md @@ -0,0 +1,12 @@ +--- +title: Umbraco.Commerce.Persistence.Sqlite +description: API reference for Umbraco.Commerce.Persistence.Sqlite in Umbraco Commerce +--- +## Umbraco.Commerce.Persistence.Sqlite namespace + +| Public Type | Description | +| --- | --- | +| static class [Constants](constants.md) | | +| class [SqliteDatabaseCreator](sqlitedatabasecreator.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlite/umbraco-commerce-persistence-sqlite/constants.md b/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlite/umbraco-commerce-persistence-sqlite/constants.md new file mode 100644 index 00000000000..0275827a3e2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlite/umbraco-commerce-persistence-sqlite/constants.md @@ -0,0 +1,23 @@ +--- +title: Constants +description: API reference for Constants in Umbraco Commerce +--- +## Constants + +```csharp +public static class Constants +``` + +**Namespace** +* [Umbraco.Commerce.Persistence.Sqlite](README.md) + +### Fields + +#### ProviderName + +```csharp +public const string ProviderName; +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlite/umbraco-commerce-persistence-sqlite/sqlitedatabasecreator.md b/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlite/umbraco-commerce-persistence-sqlite/sqlitedatabasecreator.md new file mode 100644 index 00000000000..a11b0c87edb --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlite/umbraco-commerce-persistence-sqlite/sqlitedatabasecreator.md @@ -0,0 +1,57 @@ +--- +title: SqliteDatabaseCreator +description: API reference for SqliteDatabaseCreator in Umbraco Commerce +--- +## SqliteDatabaseCreator + +```csharp +public class SqliteDatabaseCreator : IDatabaseCreator +``` + +**Inheritance** + +* interface [IDatabaseCreator](../../umbraco-commerce-persistence/umbraco-commerce-persistence/idatabasecreator.md) + +**Namespace** +* [Umbraco.Commerce.Persistence.Sqlite](README.md) + +### Constructors + +#### SqliteDatabaseCreator + +```csharp +public SqliteDatabaseCreator(ILogger logger) +``` + + +### Properties + +#### ProviderName + +```csharp +public string ProviderName { get; } +``` + + +### Methods + +#### Create + +Creates a SQLite database file. + +```csharp +public void Create(string connectionString) +``` + +**Remarks** + +With journal_mode = wal we have snapshot isolation. + +Concurrent read/write can take occur, committing a write transaction will have no impact on open read transactions as they see only committed data from the point in time that they began reading. + +A write transaction still requires exclusive access to database files so concurrent writes are not possible. + +Read more [Isolation in SQLite](https://www.sqlite.org/isolation.html) Read more [Write-Ahead Logging](https://www.sqlite.org/wal.html) + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlserver/README.md b/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlserver/README.md new file mode 100644 index 00000000000..6387d0e5b10 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlserver/README.md @@ -0,0 +1,12 @@ +--- +title: Umbraco.Commerce.Persistence.SqlServer +description: API reference for Umbraco.Commerce.Persistence.SqlServer in Umbraco Commerce +--- +## Umbraco.Commerce.Persistence.SqlServer assembly + +| Namespace | +| --- | +| [Umbraco.Commerce.Extensions](umbraco-commerce-extensions/README.md) | +| [Umbraco.Commerce.Persistence.SqlServer](umbraco-commerce-persistence-sqlserver/README.md) | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlserver/umbraco-commerce-extensions/README.md b/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlserver/umbraco-commerce-extensions/README.md new file mode 100644 index 00000000000..592b6b7bb3f --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlserver/umbraco-commerce-extensions/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Extensions +description: API reference for Umbraco.Commerce.Extensions in Umbraco Commerce +--- +## Umbraco.Commerce.Extensions namespace + +| Public Type | Description | +| --- | --- | +| static class [UmbracoCommerceBuilderExtensions](umbracocommercebuilderextensions.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlserver/umbraco-commerce-extensions/umbracocommercebuilderextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlserver/umbraco-commerce-extensions/umbracocommercebuilderextensions.md new file mode 100644 index 00000000000..d7b1bedf815 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlserver/umbraco-commerce-extensions/umbracocommercebuilderextensions.md @@ -0,0 +1,23 @@ +--- +title: UmbracoCommerceBuilderExtensions +description: API reference for UmbracoCommerceBuilderExtensions in Umbraco Commerce +--- +## UmbracoCommerceBuilderExtensions + +```csharp +public static class UmbracoCommerceBuilderExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + +### Methods + +#### AddSqlServer + +```csharp +public static IUmbracoCommerceBuilder AddSqlServer(this IUmbracoCommerceBuilder builder) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlserver/umbraco-commerce-persistence-sqlserver/README.md b/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlserver/umbraco-commerce-persistence-sqlserver/README.md new file mode 100644 index 00000000000..f88596c65e6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlserver/umbraco-commerce-persistence-sqlserver/README.md @@ -0,0 +1,13 @@ +--- +title: Umbraco.Commerce.Persistence.SqlServer +description: API reference for Umbraco.Commerce.Persistence.SqlServer in Umbraco Commerce +--- +## Umbraco.Commerce.Persistence.SqlServer namespace + +| Public Type | Description | +| --- | --- | +| static class [Constants](constants.md) | | +| class [HybridSqlServerUnitOfWorkExecutionStrategy](hybridsqlserverunitofworkexecutionstrategy.md) | | +| class [SqlAzureUnitOfWorkExecutionStrategy](sqlazureunitofworkexecutionstrategy.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlserver/umbraco-commerce-persistence-sqlserver/constants.md b/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlserver/umbraco-commerce-persistence-sqlserver/constants.md new file mode 100644 index 00000000000..2f38e6974d6 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlserver/umbraco-commerce-persistence-sqlserver/constants.md @@ -0,0 +1,23 @@ +--- +title: Constants +description: API reference for Constants in Umbraco Commerce +--- +## Constants + +```csharp +public static class Constants +``` + +**Namespace** +* [Umbraco.Commerce.Persistence.SqlServer](README.md) + +### Fields + +#### ProviderName + +```csharp +public const string ProviderName; +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlserver/umbraco-commerce-persistence-sqlserver/hybridsqlserverunitofworkexecutionstrategy.md b/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlserver/umbraco-commerce-persistence-sqlserver/hybridsqlserverunitofworkexecutionstrategy.md new file mode 100644 index 00000000000..7f0e9428913 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlserver/umbraco-commerce-persistence-sqlserver/hybridsqlserverunitofworkexecutionstrategy.md @@ -0,0 +1,49 @@ +--- +title: HybridSqlServerUnitOfWorkExecutionStrategy +description: API reference for HybridSqlServerUnitOfWorkExecutionStrategy in Umbraco Commerce +--- +## HybridSqlServerUnitOfWorkExecutionStrategy + +```csharp +public class HybridSqlServerUnitOfWorkExecutionStrategy : IUnitOfWorkExecutionStrategy +``` + +**Inheritance** + +* interface [IUnitOfWorkExecutionStrategy](../../umbraco-commerce-common/umbraco-commerce-common/iunitofworkexecutionstrategy.md) + +**Namespace** +* [Umbraco.Commerce.Persistence.SqlServer](README.md) + +### Constructors + +#### HybridSqlServerUnitOfWorkExecutionStrategy + +```csharp +public HybridSqlServerUnitOfWorkExecutionStrategy( + IOptionsMonitor connectionString) +``` + + +### Methods + +#### Execute<TResult> + +```csharp +public TResult Execute(Func operation, + Func> verifySucceeded = null) +``` + + +--- + +#### ExecuteAsync<TResult> + +```csharp +public Task ExecuteAsync(Func> operation, + Func>> verifySucceeded = null, + CancellationToken cancellationToken = default(CancellationToken)) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlserver/umbraco-commerce-persistence-sqlserver/sqlazureunitofworkexecutionstrategy.md b/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlserver/umbraco-commerce-persistence-sqlserver/sqlazureunitofworkexecutionstrategy.md new file mode 100644 index 00000000000..f4938651e77 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-persistence-sqlserver/umbraco-commerce-persistence-sqlserver/sqlazureunitofworkexecutionstrategy.md @@ -0,0 +1,38 @@ +--- +title: SqlAzureUnitOfWorkExecutionStrategy +description: API reference for SqlAzureUnitOfWorkExecutionStrategy in Umbraco Commerce +--- +## SqlAzureUnitOfWorkExecutionStrategy + +```csharp +public class SqlAzureUnitOfWorkExecutionStrategy : PollyUnitOfWorkExecutionStrategyBase +``` + +**Inheritance** + +* Class [PollyUnitOfWorkExecutionStrategyBase](../../umbraco-commerce-infrastructure/umbraco-commerce-infrastructure/pollyunitofworkexecutionstrategybase.md) + +**Namespace** +* [Umbraco.Commerce.Persistence.SqlServer](README.md) + +### Constructors + +#### SqlAzureUnitOfWorkExecutionStrategy + +The default constructor. + +```csharp +public SqlAzureUnitOfWorkExecutionStrategy() +``` + + +### Properties + +#### RetryTimes + +```csharp +public static IEnumerable RetryTimes { get; set; } +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-web/README.md b/14/umbraco-commerce/reference/umbraco-commerce-web/README.md new file mode 100644 index 00000000000..42e80dae004 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-web/README.md @@ -0,0 +1,15 @@ +--- +title: Umbraco.Commerce.Web +description: API reference for Umbraco.Commerce.Web in Umbraco Commerce +--- +## Umbraco.Commerce.Web assembly + +| Namespace | +| --- | +| [Umbraco.Commerce.Extensions](umbraco-commerce-extensions/README.md) | +| [Umbraco.Commerce.Web.Attributes](umbraco-commerce-web-attributes/README.md) | +| [Umbraco.Commerce.Web.Mvc](umbraco-commerce-web-mvc/README.md) | +| [Umbraco.Commerce.Web.Session](umbraco-commerce-web-session/README.md) | +| [Umbraco.Commerce.Web.ViewEngines](umbraco-commerce-web-viewengines/README.md) | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-extensions/README.md b/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-extensions/README.md new file mode 100644 index 00000000000..760035733d2 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-extensions/README.md @@ -0,0 +1,13 @@ +--- +title: Umbraco.Commerce.Extensions +description: API reference for Umbraco.Commerce.Extensions in Umbraco Commerce +--- +## Umbraco.Commerce.Extensions namespace + +| Public Type | Description | +| --- | --- | +| static class [FormDataCollectionExtensions](formdatacollectionextensions.md) | | +| static class [HtmlHelperExtensions](htmlhelperextensions.md) | | +| static class [SessionExtensions](sessionextensions.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-extensions/formdatacollectionextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-extensions/formdatacollectionextensions.md new file mode 100644 index 00000000000..7e6daa77e49 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-extensions/formdatacollectionextensions.md @@ -0,0 +1,23 @@ +--- +title: FormDataCollectionExtensions +description: API reference for FormDataCollectionExtensions in Umbraco Commerce +--- +## FormDataCollectionExtensions + +```csharp +public static class FormDataCollectionExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + +### Methods + +#### ContainsKey + +```csharp +public static bool ContainsKey(this FormDataCollection qs, string key) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-extensions/htmlhelperextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-extensions/htmlhelperextensions.md new file mode 100644 index 00000000000..c6161e070db --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-extensions/htmlhelperextensions.md @@ -0,0 +1,195 @@ +--- +title: HtmlHelperExtensions +description: API reference for HtmlHelperExtensions in Umbraco Commerce +--- +## HtmlHelperExtensions + +```csharp +public static class HtmlHelperExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + +### Methods + +#### BeginPaymentForm (1 of 3) + +Helper method to create a payment form for the given order + +```csharp +public static MvcForm BeginPaymentForm(this IHtmlHelper htmlHelper, OrderReadOnly order) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| htmlHelper | | +| order | | + +--- + +#### BeginPaymentForm (2 of 3) + +Helper method to create a payment form for the given order + +```csharp +public static MvcForm BeginPaymentForm(this IHtmlHelper htmlHelper, OrderReadOnly order, + object htmlAttributes) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| htmlHelper | | +| order | | +| htmlAttributes | | + +--- + +#### BeginPaymentForm (3 of 3) + +Helper method to create a payment form for the given order + +```csharp +public static MvcForm BeginPaymentForm(this IHtmlHelper htmlHelper, OrderReadOnly order, + IDictionary htmlAttributes) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| htmlHelper | | +| order | | +| htmlAttributes | | + + +--- + +#### BeginPaymentFormAsync (1 of 3) + +Helper method to create a payment form for the given order + +```csharp +public static Task BeginPaymentFormAsync(this IHtmlHelper htmlHelper, OrderReadOnly order, + CancellationToken cancellationToken = default(CancellationToken)) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| htmlHelper | | +| order | | +| cancellationToken | | + +--- + +#### BeginPaymentFormAsync (2 of 3) + +Helper method to create a payment form for the given order + +```csharp +public static Task BeginPaymentFormAsync(this IHtmlHelper htmlHelper, OrderReadOnly order, + object htmlAttributes, CancellationToken cancellationToken = default(CancellationToken)) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| htmlHelper | | +| order | | +| htmlAttributes | | +| cancellationToken | | + +--- + +#### BeginPaymentFormAsync (3 of 3) + +Helper method to create a payment form for the given order + +```csharp +public static Task BeginPaymentFormAsync(this IHtmlHelper htmlHelper, OrderReadOnly order, + IDictionary htmlAttributes, + CancellationToken cancellationToken = default(CancellationToken)) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| htmlHelper | | +| order | | +| htmlAttributes | | +| cancellationToken | | + + +--- + +#### RenderPaymentForm + +Helper method to create a payment form for the given order + +```csharp +public static MvcForm RenderPaymentForm(this IHtmlHelper htmlHelper, OrderReadOnly order, + IDictionary htmlAttributes, IOrderService orderService, + IPaymentMethodService paymentMethodService, IPaymentProviderService paymentProviderService, + PaymentProviderContextFactory paymentProviderContextFactory, + IOrderNumberGenerator orderNumberGenerator, IUnitOfWorkProvider uowProvider, + IMembershipHelper membershipHelper) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| htmlHelper | | +| order | | +| htmlAttributes | | +| orderService | | +| paymentMethodService | | +| paymentProviderService | | +| paymentProviderContextFactory | | +| orderNumberGenerator | | +| uowProvider | | +| membershipHelper | | + + +--- + +#### RenderPaymentFormAsync + +Helper method to create a payment form for the given order + +```csharp +public static Task RenderPaymentFormAsync(this IHtmlHelper htmlHelper, + OrderReadOnly order, IDictionary htmlAttributes, IOrderService orderService, + IPaymentMethodService paymentMethodService, IPaymentProviderService paymentProviderService, + PaymentProviderContextFactory paymentProviderContextFactory, + IOrderNumberGenerator orderNumberGenerator, IUnitOfWorkProvider uowProvider, + IMembershipHelper membershipHelper, + CancellationToken cancellationToken = default(CancellationToken)) +``` + +**Parameters** + +| Parameter | Description | +| --- | --- | +| htmlHelper | | +| order | | +| htmlAttributes | | +| orderService | | +| paymentMethodService | | +| paymentProviderService | | +| paymentProviderContextFactory | | +| orderNumberGenerator | | +| uowProvider | | +| membershipHelper | | +| cancellationToken | | + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-extensions/sessionextensions.md b/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-extensions/sessionextensions.md new file mode 100644 index 00000000000..ab7eada8add --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-extensions/sessionextensions.md @@ -0,0 +1,32 @@ +--- +title: SessionExtensions +description: API reference for SessionExtensions in Umbraco Commerce +--- +## SessionExtensions + +```csharp +public static class SessionExtensions +``` + +**Namespace** +* [Umbraco.Commerce.Extensions](README.md) + +### Methods + +#### Get<T> + +```csharp +public static T Get(this ISession session, string key) +``` + + +--- + +#### Set<T> + +```csharp +public static void Set(this ISession session, string key, T value) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-web-attributes/README.md b/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-web-attributes/README.md new file mode 100644 index 00000000000..1c25f3a91af --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-web-attributes/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Web.Attributes +description: API reference for Umbraco.Commerce.Web.Attributes in Umbraco Commerce +--- +## Umbraco.Commerce.Web.Attributes namespace + +| Public Type | Description | +| --- | --- | +| class [CheckAndMoveSessionOrdersMvcActionFilterAttribute](checkandmovesessionordersmvcactionfilterattribute.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-web-attributes/checkandmovesessionordersmvcactionfilterattribute.md b/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-web-attributes/checkandmovesessionordersmvcactionfilterattribute.md new file mode 100644 index 00000000000..84e46d60b4a --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-web-attributes/checkandmovesessionordersmvcactionfilterattribute.md @@ -0,0 +1,34 @@ +--- +title: CheckAndMoveSessionOrdersMvcActionFilterAttribute +description: API reference for CheckAndMoveSessionOrdersMvcActionFilterAttribute in Umbraco Commerce +--- +## CheckAndMoveSessionOrdersMvcActionFilterAttribute + +```csharp +public class CheckAndMoveSessionOrdersMvcActionFilterAttribute : ActionFilterAttribute +``` + +**Namespace** +* [Umbraco.Commerce.Web.Attributes](README.md) + +### Constructors + +#### CheckAndMoveSessionOrdersMvcActionFilterAttribute + +The default constructor. + +```csharp +public CheckAndMoveSessionOrdersMvcActionFilterAttribute() +``` + + +### Methods + +#### OnResultExecuting + +```csharp +public override void OnResultExecuting(ResultExecutingContext context) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-web-mvc/README.md b/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-web-mvc/README.md new file mode 100644 index 00000000000..9057ac4c9cd --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-web-mvc/README.md @@ -0,0 +1,11 @@ +--- +title: Umbraco.Commerce.Web.Mvc +description: API reference for Umbraco.Commerce.Web.Mvc in Umbraco Commerce +--- +## Umbraco.Commerce.Web.Mvc namespace + +| Public Type | Description | +| --- | --- | +| class [UmbracoCommerceMvcConfigureOptions](umbracocommercemvcconfigureoptions.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-web-mvc/umbracocommercemvcconfigureoptions.md b/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-web-mvc/umbracocommercemvcconfigureoptions.md new file mode 100644 index 00000000000..632252aad63 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-web-mvc/umbracocommercemvcconfigureoptions.md @@ -0,0 +1,34 @@ +--- +title: UmbracoCommerceMvcConfigureOptions +description: API reference for UmbracoCommerceMvcConfigureOptions in Umbraco Commerce +--- +## UmbracoCommerceMvcConfigureOptions + +```csharp +public class UmbracoCommerceMvcConfigureOptions : IConfigureOptions +``` + +**Namespace** +* [Umbraco.Commerce.Web.Mvc](README.md) + +### Constructors + +#### UmbracoCommerceMvcConfigureOptions + +The default constructor. + +```csharp +public UmbracoCommerceMvcConfigureOptions() +``` + + +### Methods + +#### Configure + +```csharp +public void Configure(MvcOptions options) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-web-session/README.md b/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-web-session/README.md new file mode 100644 index 00000000000..ae5148b3321 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-web-session/README.md @@ -0,0 +1,13 @@ +--- +title: Umbraco.Commerce.Web.Session +description: API reference for Umbraco.Commerce.Web.Session in Umbraco Commerce +--- +## Umbraco.Commerce.Web.Session namespace + +| Public Type | Description | +| --- | --- | +| class [WebSessionStore](websessionstore.md) | | +| abstract class [WebStoreBase](webstorebase.md) | | +| class [WebTempStore](webtempstore.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-web-session/websessionstore.md b/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-web-session/websessionstore.md new file mode 100644 index 00000000000..702ce366931 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-web-session/websessionstore.md @@ -0,0 +1,76 @@ +--- +title: WebSessionStore +description: API reference for WebSessionStore in Umbraco Commerce +--- +## WebSessionStore + +```csharp +public class WebSessionStore : WebStoreBase, ISessionStore +``` + +**Inheritance** + +* Class [WebStoreBase](webstorebase.md) +* interface [ISessionStore](../../umbraco-commerce-core/umbraco-commerce-core-session/isessionstore.md) + +**Namespace** +* [Umbraco.Commerce.Web.Session](README.md) + +### Constructors + +#### WebSessionStore (1 of 2) + +```csharp +public WebSessionStore(Lazy storeService, IUmbracoCommerceSettings settings) +``` + +--- + +#### WebSessionStore (2 of 2) + +```csharp +public WebSessionStore(Lazy storeService, IUmbracoCommerceSettings settings, + IHttpContextAccessor httpContextAccessor) +``` + + +### Methods + +#### GetStoreIds + +```csharp +public Guid[] GetStoreIds() +``` + + +--- + +#### GetValue<T> + +```csharp +public T? GetValue(Guid storeId, string key) + where T : struct +``` + + +--- + +#### SetValue<T> + +```csharp +public void SetValue(Guid storeId, string key, T? value) + where T : struct +``` + + +--- + +#### TrySetValue<T> + +```csharp +public bool TrySetValue(Guid storeId, string key, T? value) + where T : struct +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-web-session/webstorebase.md b/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-web-session/webstorebase.md new file mode 100644 index 00000000000..ecb2bfffa4e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-web-session/webstorebase.md @@ -0,0 +1,14 @@ +--- +title: WebStoreBase +description: API reference for WebStoreBase in Umbraco Commerce +--- +## WebStoreBase + +```csharp +public abstract class WebStoreBase +``` + +**Namespace** +* [Umbraco.Commerce.Web.Session](README.md) + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-web-session/webtempstore.md b/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-web-session/webtempstore.md new file mode 100644 index 00000000000..7ffb5d77016 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-web-session/webtempstore.md @@ -0,0 +1,67 @@ +--- +title: WebTempStore +description: API reference for WebTempStore in Umbraco Commerce +--- +## WebTempStore + +```csharp +public class WebTempStore : WebStoreBase, ITempStore +``` + +**Inheritance** + +* Class [WebStoreBase](webstorebase.md) +* interface [ITempStore](../../umbraco-commerce-core/umbraco-commerce-core-session/itempstore.md) + +**Namespace** +* [Umbraco.Commerce.Web.Session](README.md) + +### Constructors + +#### WebTempStore + +```csharp +public WebTempStore(IUmbracoCommerceSettings settings, IHttpContextAccessor httpContextAccessor) +``` + + +### Methods + +#### GetStoreIds + +```csharp +public Guid[] GetStoreIds() +``` + + +--- + +#### GetValue<T> + +```csharp +public T? GetValue(Guid storeId, string key) + where T : struct +``` + + +--- + +#### SetValue<T> + +```csharp +public void SetValue(Guid storeId, string key, T? value) + where T : struct +``` + + +--- + +#### TrySetValue<T> + +```csharp +public bool TrySetValue(Guid storeId, string key, T? value) + where T : struct +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-web-viewengines/README.md b/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-web-viewengines/README.md new file mode 100644 index 00000000000..f57b1c1236e --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-web-viewengines/README.md @@ -0,0 +1,12 @@ +--- +title: Umbraco.Commerce.Web.ViewEngines +description: API reference for Umbraco.Commerce.Web.ViewEngines in Umbraco Commerce +--- +## Umbraco.Commerce.Web.ViewEngines namespace + +| Public Type | Description | +| --- | --- | +| class [RazorViewEngine](razorviewengine.md) | | +| abstract class [UmbracoCommerceRazorTemplateView<TModel>](umbracocommercerazortemplateview-1.md) | | + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-web-viewengines/razorviewengine.md b/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-web-viewengines/razorviewengine.md new file mode 100644 index 00000000000..ba9ef12db48 --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-web-viewengines/razorviewengine.md @@ -0,0 +1,37 @@ +--- +title: RazorViewEngine +description: API reference for RazorViewEngine in Umbraco Commerce +--- +## RazorViewEngine + +```csharp +public class RazorViewEngine : IViewEngine +``` + +**Inheritance** + +* interface [IViewEngine](../../umbraco-commerce-core/umbraco-commerce-core-viewengines/iviewengine.md) + +**Namespace** +* [Umbraco.Commerce.Web.ViewEngines](README.md) + +### Constructors + +#### RazorViewEngine + +```csharp +public RazorViewEngine(IRazorViewEngine razorViewEngine, ITempDataProvider tempDataProvider, + IHttpContextAccessor httpContextAccessor) +``` + + +### Methods + +#### RenderView + +```csharp +public string RenderView(string viewPath, object model) +``` + + + diff --git a/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-web-viewengines/umbracocommercerazortemplateview-1.md b/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-web-viewengines/umbracocommercerazortemplateview-1.md new file mode 100644 index 00000000000..79475e099ce --- /dev/null +++ b/14/umbraco-commerce/reference/umbraco-commerce-web/umbraco-commerce-web-viewengines/umbracocommercerazortemplateview-1.md @@ -0,0 +1,32 @@ +--- +title: UmbracoCommerceRazorTemplateView +description: API reference for UmbracoCommerceRazorTemplateView in Umbraco Commerce +--- +## UmbracoCommerceRazorTemplateView<TModel> + +```csharp +public abstract class UmbracoCommerceRazorTemplateView : RazorPage +``` + +**Namespace** +* [Umbraco.Commerce.Web.ViewEngines](README.md) + +### Properties + +#### BaseUrl + +```csharp +public string BaseUrl { get; } +``` + + +--- + +#### UmbracoCommerceApi + +```csharp +public IUmbracoCommerceApi UmbracoCommerceApi { get; } +``` + + + diff --git a/14/umbraco-commerce/release-notes/README.md b/14/umbraco-commerce/release-notes/README.md new file mode 100644 index 00000000000..6916f01b776 --- /dev/null +++ b/14/umbraco-commerce/release-notes/README.md @@ -0,0 +1,28 @@ +--- +description: >- + Get an overview of the things changed and fixed in each version of Umbraco Commerce. +--- + +# Release Notes + +In this section, we have summarized the changes to Umbraco Commerce released in each version. Each version is presented with a link to the [Commerce issue tracker](https://github.com/umbraco/Umbraco.Commerce.Issues/issues) showing a list of issues resolved in the release. We also link to the individual issues themselves from the detail. + +If there are any breaking changes or other issues to be aware of when upgrading they are also noted here. + +{% hint style="info" %} +If you are upgrading to a new major version, check the breaking changes in the [Version Specific Upgrade Notes](upgrading/version-specific-upgrades.md) article. +{% endhint %} + +## Release History + +This section contains the release notes for Umbraco Commerce 14 including all changes for this version. + +#### 14.0.0-alpha1 (TBC) + +Read the [v14.0.0-Alpha release post](./v14.0.0-alpha.md) for further background on this release. + +* v14 initial alpha release + +## Legacy release notes + +You can find the release notes for **Vendr** in the [Change log file on Github](changelog-archive/Vendr-core.md). diff --git a/14/umbraco-commerce/release-notes/v14.0.0-alpha.md b/14/umbraco-commerce/release-notes/v14.0.0-alpha.md new file mode 100644 index 00000000000..947f4d5e938 --- /dev/null +++ b/14/umbraco-commerce/release-notes/v14.0.0-alpha.md @@ -0,0 +1,179 @@ +--- +description: >- + Umbraco Commerce v14.0.0-Alpha release notes. +--- + +# Umbraco Commerce v14.0.0-Alpha + +Umbraco Commerce v14.0.0-Alpha is the initial release of Umbraco Commerce for Umbraco CMS v14. Being an alpha, this is an early preview of the Umbraco Commerce product and as such should be considered a work in progress. + +## Key Takeaways + +* Contains [core functionality](#core-functionality) for store setup, order management and key property editors. +* Some [functionality / sections missing](#missing-features). +* Some [breaking changes](#breaking-changes) to be expected. +* Brand new [Management API](#management-api). +* New more flexible [UI extension points](#ui-extension-points) added. +* [Localization](#localization) support added (in progress). + +## Core Functionality + +The key focus of this alpha release is to provide the core functionality required to be able to setup and run a store in Umbraco Commerce allowing users to get started on v14 right away. + +![Umbraco Commerce v14 Order Editor](../media/v14/order-editor.png) + +![Umbraco Commerce v14 Settings Section](../media/v14/store-settings.png) + +The key features included in this release are: + +* Store Creation / Editing +* Location Creation / Editing +* Order Status Creation / Editing +* Payment Method Creation / Editing +* Shipping Method Creation / Editing +* Country & Region Creation / Editing +* Currency Creation / Editing +* Tax Class Creation / Editing +* Email Template Creation / Editing +* Print Template Creation / Editing +* Export Template Creation / Editing +* Order View / Editing +* Order / Order Line Properties Editing + +## Missing Features + +Within these sections there are some known missing features: + +* Missing text filtering on collection views +* Missing bulk operations implementation +* Missing sort functionality +* Missing advanced order searching +* Missing order filter menus + +In addition to these, there are also some complete sections currently outstanding: + +* Store overview dashboard +* Cart section +* Discounts section +* Gift cards section +* Analytics section +* Product Attributes + Product Attribute Presets section + +Lastly, there is also some property editors still yet to implement: + +* Variants + +Needless to say, these will all be implemented for the final v14 release, but in order to get a usable Umbraco Commerce product into your hands as quickly as possible, these features / sections were put at lower priorities at this stage of the conversion. + +## Breaking Changes + +With the new backoffice UI, there has inevitably been the need to change some functionalities and use such breaking changes couldn't be avoided. These have tried to be minimized as much as possible, whilst also ensuring we embrace the new front end architecture to it's fullest. + +The key breaking changes to expect are: + +* **UI Config Files Remove** + + In previous versions of Umbraco Commerce it was possible to configure the back office order list view, order editor and analytics dashboards using JSON UI config files. These have now all been updated to use the new manifests pattern in Umbraco v14. See the [UI Extension Points](#ui-extension-points) section bellow for more details. + + In addition to this, the UI Config Files were also used in the backoffice to extract key order properties for things like extracting the shipping address in order to calculate shipping rates. This functionality has now been split such that this mapping functionality has now moved to a new server based configuration API. + + ``` + builder.WithOrderPropertyConfigs() + .Add("myStoreAlias", b => b + .For(x => x.Customer.FirstName).MapFrom("firstName") + .For(x => x.Customer.LastName).MapFrom("lastName") + ... + ); + ``` + +* **Web Notification Events Removed** + + The following notifications are no longer being fired. + + * `AnalyticsDashboardConfigParsingNotification` + * `CartEditorConfigParsingNotification` + * `OrderEditorConfigParsingNotification` + * `StoreActionsRenderingNotification` + * `ActivityLogEntriesRenderingNotification` + +* **Web Controllers / Models Removed** + + With the new Management API this does mean any controllers / models that previously lived in the `Umbraco.Commerce.Cms.Web` will now have been removed. Please use the Management API instead. + + The only exception to this is the `PaymentController` which is used as a callback for payment gateways. This is currently kept at the same URL to prevent breakages. We will be reviewing this to see if some other endpoint location makes more sense. + +## UI Extension Points + +With the new backoffice comes a new extensions system for the UI and we have tried to use this to the maximum. These means converting the old UI configs system to using the new manifests system. + +With the new extension points it is possible to: + +* Change the properties used by the order editor. +* Add properties to the order line properties editor. +* Add properties to the Notes, Additional Info and Customer Details modals. +* Add properties to the order collection view. +* Add analytics widgets (still in progress) +* Define custom views for properties to control value rendering. + +Here is an example of how you would configure such properties + +```javascript +export const manifests : Array = [ + { + type: 'ucOrderLineProperty', + alias: 'Uc.OrderLineProperty.Color', + name: 'Order Line Color', + weight: 100, + meta: { + propertyAlias: 'color', + editorUiAlias: 'Umb.PropertyEditorUi.EyeDropper', + labelElementName: 'uc-mini-color-swatch' + } + }, + { + type: 'ucOrderLineProperty', + alias: 'Uc.OrderLineProperty.GiftMessage', + name: 'Order Line Gift Message', + weight: 100, + meta: { + propertyAlias: 'giftMessage', + editorUiAlias: 'Umb.PropertyEditorUi.TextArea', + summaryStyle: 'table' + } + } +]; +``` + +With these extension points, the Umbraco Commerce order editor is now more flexible than it has ever been before. + +{% hint style="info" %} +We are yet to launch an Umbraco Commerce NPM module so these points are not yet currently available to use externally but we wanted to give you a heads up of what is coming so you can prepare. +{% endhint %} + +## Management API + +As with the CMS, with the new UI comes a whole new API layer. + +![Umbraco Commerce Management API](../media/v14/management-api.png) + +With the Umbraco Commerce API we have aimed to keep it aligned with the Storefront API with support for filtering an expansion where possible. + +I key thought whilst developing this API has been to ensure external developers might use this to build other UI's for Umbraco Commerce such as a dedicated mobile app and so we've tried to ensure there are no "special" endpoints just for the Umbraco CMS UI. + +## Localization + +One of the things that has been on the Umbraco Commerce TODO list for a while is to add backoffice localization support. Given the fresh start it was only logical that we take the time to ensure that everything we built fully supported localization so this will be included in this release. + +We haven't quite caught everything yet, but we'll be sure to do a full check before the final release to ensure all hard coded strings are fully configurable. + +With this update, we'll also be making some changes to things like payment and shipping providers, and other CSharp extension points where we define properties. These will no longer require hard coded labels / descriptions and instead will look these values up from the localization file. + +## Add-on Updates + +We are still yet to tackle adding v14 support to the **Umbraco.Commerce.Deploy** and **Umbraco.Commerce.Checkout** add-ons so these are currently unavailable. These will likely be made available after the initial v14 release. + +## What to Test and How to Give Feedback + +We would welcome feedback on any installation / upgrade issues along with bugs found in any of the completed sections as detailed above. + +Issues can be raised on the Umbraco Commerce issue tracker at [https://github.com/umbraco/Umbraco.Commerce.Issues/issues](https://github.com/umbraco/Umbraco.Commerce.Issues/issues). diff --git a/14/umbraco-commerce/tutorials/overview.md b/14/umbraco-commerce/tutorials/overview.md new file mode 100644 index 00000000000..8367908de5a --- /dev/null +++ b/14/umbraco-commerce/tutorials/overview.md @@ -0,0 +1,8 @@ +--- +title: Tutorials +description: Step-by-Step Tutorials on getting started with Umbraco Commerce. +--- + +# Overview + +In this section, we will provide a series of follow-along tutorials on how to implement Umbraco Commerce. These will be aimed at getting you set up and running without going into heavy theoretical details. Once you are familiar with working with Umbraco Commerce, you can use the other sections of the documentation to gain a more in-depth knowledge of the different things you'll have implemented. diff --git a/14/umbraco-commerce/upgrading/migrate-from-vendr-to-umbraco-commerce/README.md b/14/umbraco-commerce/upgrading/migrate-from-vendr-to-umbraco-commerce/README.md new file mode 100644 index 00000000000..66cc39cb4b7 --- /dev/null +++ b/14/umbraco-commerce/upgrading/migrate-from-vendr-to-umbraco-commerce/README.md @@ -0,0 +1,299 @@ +--- +description: Learn how to migrate a Vendr solution to Umbraco Commerce. +--- + +# Migrate from Vendr to Umbraco Commerce + +This guide provides a step-by-step approach to migrating a default Vendr solution to Umbraco Commerce. + +You can find details on migrating the Checkout package as well as custom Payment Providers in the [Further Migrations section](./#further-migrations) of this article. + +## Key changes + +Before outlining the exact steps, there are a few key changes to be aware of. + +These changes will dictate the steps to take in the process of migrating to Umbraco Commerce. + +### Project, Package, and Namespace changes + +| Vendr | Umbraco Commerce | +| --------------------------- | -------------------------------------- | +| Vendr.Common | Umbraco.Commerce.Common | +| Vendr.Core | Umbraco.Commerce.Core | +| Vendr.Infrastructure | Umbraco.Commerce.Infrastructure | +| Vendr.Persistence | Umbraco.Commerce.Persistence | +| Vendr.Persistence.Sqlite | Umbraco.Commerce.Persistence.Sqlite | +| Vendr.Persistence.SqlServer | Umbraco.Commerce.Persistence.SqlServer | +| Vendr.Umbraco | Umbraco.Commerce.Cms | +| Vendr.Umbraco.Web | Umbraco.Commerce.Cms.Web | +| Vendr.Web | Umbraco.Commerce.Web | +| Vendr.Web.UI | Umbraco.Commerce.Web.StaticAssets | +| Vendr.Umbraco.Startup | Umbraco.Commerce.Cms.Startup | +| Vendr | Umbraco.Commerce | + +
+ +C# Class changes + +* Namespace changes as documented above. +* All classes containing the `Vendr` keyword are now updated to `UmbracoCommerce`. + * Examples: `IVendrApi` is now `IUmbracoCommerceApi` and `AddVendr()` is now `AddUmbracoCommerce()`. + +
+ +
+ +JavaScript changes + +* All `vendr` modules have changed to `umbraco.commerce` modules. +* All `vendr` prefixed directives, services, and resources are now prefixed with `uc`. +* All `vendr` prefixed events now follow this format: `Umbraco.Commerce.{target}.{action}`. + +
+ +
+ +UI Changes + +* All static UI assets are served via a Razor Compiled Library (RCL) and are no longer found in the `App_Plugins` folder. +* The folder within `App_Plugins` still exists for the static assets that are user configurable. +* The folder with `App_Plugins` has been renamed from `Vendr` to `UmbracoCommerce`. +* UI Config files have changed from `.js` files to `.json`. + +
+ +## Step 1: Replace dependencies + +In this first step, we will be replacing all existing Vendr dependencies with Umbraco Commerce dependencies. + +1. Remove any installed Vendr packages (including Payment Providers): + +```bash +dotnet remove package Vendr +``` + +2. Take a backup of any Vendr-specific templates and config files you will want to reuse: +3. Delete the Vendr `App_Plugins` folder: + +```bash +rmdir App_Plugins\Vendr +``` + +4. Install `Umbraco.Commerce`: + +```bash +dotnet add package Umbraco.Commerce +``` + +5. Install Umbraco Commerce packages including any payment providers previously removed. +6. Reapply any backed-up config files in their new `App_Plugins` location. +7. Move any backed-up templates into the `~/Views/UmbracoCommerce/Templates/` folder. +8. Rename any config files with a `.json` file extension rather than [the previous `.js`](#user-content-fn-1)[^1]. +9. Compile your project against .NET 7.0. + +## Step 2: Update namespaces and entity names + +Based on the [Key Changes](./#key-changes) outlined above update all Vendr references to the new Umbraco Commerce alternatives. Ensure you update any Views/Partials that also reference these. + +## Step 3: Update the database + +In this step, we will cover updating the database for Umbraco Commerce. + +1. Backup your database +2. Rename database tables using the following query: + +{% tabs %} +{% tab title="SQL Server" %} +```sql +sp_rename vendrCurrency, umbracoCommerceCurrency; +sp_rename vendrTaxClass, umbracoCommerceTaxClass; +sp_rename vendrStock, umbracoCommerceStock; +sp_rename vendrOrderStatus, umbracoCommerceOrderStatus; +sp_rename vendrEmailTemplate, umbracoCommerceEmailTemplate; +sp_rename vendrPaymentMethod, umbracoCommercePaymentMethod; +sp_rename vendrShippingMethod, umbracoCommerceShippingMethod; +sp_rename vendrCountry, umbracoCommerceCountry; +sp_rename vendrRegion, umbracoCommerceRegion; +sp_rename vendrCurrencyAllowedCountry, umbracoCommerceCurrencyAllowedCountry; +sp_rename vendrPaymentMethodAllowedCountryRegion, umbracoCommercePaymentMethodAllowedCountryRegion; +sp_rename vendrPaymentMethodCountryRegionPrice, umbracoCommercePaymentMethodCountryRegionPrice; +sp_rename vendrPaymentMethodPaymentProviderSetting, umbracoCommercePaymentMethodPaymentProviderSetting; +sp_rename vendrShippingMethodAllowedCountryRegion, umbracoCommerceShippingMethodAllowedCountryRegion; +sp_rename vendrShippingMethodCountryRegionPrice, umbracoCommerceShippingMethodCountryRegionPrice; +sp_rename vendrTaxClassCountryRegionTaxRate, umbracoCommerceTaxClassCountryRegionTaxRate; +sp_rename vendrDiscount, umbracoCommerceDiscount; +sp_rename vendrDiscountCode, umbracoCommerceDiscountCode; +sp_rename vendrOrder, umbracoCommerceOrder; +sp_rename vendrOrderProperty, umbracoCommerceOrderProperty; +sp_rename vendrOrderLine, umbracoCommerceOrderLine; +sp_rename vendrOrderLineProperty, umbracoCommerceOrderLineProperty; +sp_rename vendrGiftCard, umbracoCommerceGiftCard; +sp_rename vendrOrderAppliedDiscountCode, umbracoCommerceOrderAppliedDiscountCode; +sp_rename vendrOrderAppliedGiftCard, umbracoCommerceOrderAppliedGiftCard; +sp_rename vendrStoreAllowedUserRole, umbracoCommerceStoreAllowedUserRole; +sp_rename vendrStoreAllowedUser, umbracoCommerceStoreAllowedUser; +sp_rename vendrFrozenPrice, umbracoCommerceFrozenPrice; +sp_rename vendrGiftCardProperty, umbracoCommerceGiftCardProperty; +sp_rename vendrActivityLog, umbracoCommerceActivityLog; +sp_rename vendrOrderPriceAdjustment, umbracoCommerceOrderPriceAdjustment; +sp_rename vendrOrderAmountAdjustment, umbracoCommerceOrderAmountAdjustment; +sp_rename vendrProductAttribute, umbracoCommerceProductAttribute; +sp_rename vendrProductAttributeValue, umbracoCommerceProductAttributeValue; +sp_rename vendrTranslatedValue, umbracoCommerceTranslatedValue; +sp_rename vendrProductAttributePreset, umbracoCommerceProductAttributePreset; +sp_rename vendrProductAttributePresetAllowedAttribute, umbracoCommerceProductAttributePresetAllowedAttribute; +sp_rename vendrOrderLineAttribute, umbracoCommerceOrderLineAttribute; +sp_rename vendrPrintTemplate, umbracoCommercePrintTemplate; +sp_rename vendrExportTemplate, umbracoCommerceExportTemplate; +sp_rename vendrStoreEntityTag, umbracoCommerceStoreEntityTag; +sp_rename vendrMigrations, umbracoCommerceMigrations; +sp_rename vendrStore, umbracoCommerceStore; +``` +{% endtab %} + +{% tab title="SQLite" %} +```sql +ALTER TABLE vendrCurrency RENAME TO umbracoCommerceCurrency; +ALTER TABLE vendrTaxClass RENAME TO umbracoCommerceTaxClass; +ALTER TABLE vendrStock RENAME TO umbracoCommerceStock; +ALTER TABLE vendrOrderStatus RENAME TO umbracoCommerceOrderStatus; +ALTER TABLE vendrEmailTemplate RENAME TO umbracoCommerceEmailTemplate; +ALTER TABLE vendrPaymentMethod RENAME TO umbracoCommercePaymentMethod; +ALTER TABLE vendrShippingMethod RENAME TO umbracoCommerceShippingMethod; +ALTER TABLE vendrCountry RENAME TO umbracoCommerceCountry; +ALTER TABLE vendrRegion RENAME TO umbracoCommerceRegion; +ALTER TABLE vendrCurrencyAllowedCountry RENAME TO umbracoCommerceCurrencyAllowedCountry; +ALTER TABLE vendrPaymentMethodAllowedCountryRegion RENAME TO umbracoCommercePaymentMethodAllowedCountryRegion; +ALTER TABLE vendrPaymentMethodCountryRegionPrice RENAME TO umbracoCommercePaymentMethodCountryRegionPrice; +ALTER TABLE vendrPaymentMethodPaymentProviderSetting RENAME TO umbracoCommercePaymentMethodPaymentProviderSetting; +ALTER TABLE vendrShippingMethodAllowedCountryRegion RENAME TO umbracoCommerceShippingMethodAllowedCountryRegion; +ALTER TABLE vendrShippingMethodCountryRegionPrice RENAME TO umbracoCommerceShippingMethodCountryRegionPrice; +ALTER TABLE vendrTaxClassCountryRegionTaxRate RENAME TO umbracoCommerceTaxClassCountryRegionTaxRate; +ALTER TABLE vendrDiscount RENAME TO umbracoCommerceDiscount; +ALTER TABLE vendrDiscountCode RENAME TO umbracoCommerceDiscountCode; +ALTER TABLE vendrOrder RENAME TO umbracoCommerceOrder; +ALTER TABLE vendrOrderProperty RENAME TO umbracoCommerceOrderProperty; +ALTER TABLE vendrOrderLine RENAME TO umbracoCommerceOrderLine; +ALTER TABLE vendrOrderLineProperty RENAME TO umbracoCommerceOrderLineProperty; +ALTER TABLE vendrGiftCard RENAME TO umbracoCommerceGiftCard; +ALTER TABLE vendrOrderAppliedDiscountCode RENAME TO umbracoCommerceOrderAppliedDiscountCode; +ALTER TABLE vendrOrderAppliedGiftCard RENAME TO umbracoCommerceOrderAppliedGiftCard; +ALTER TABLE vendrStoreAllowedUserRole RENAME TO umbracoCommerceStoreAllowedUserRole; +ALTER TABLE vendrStoreAllowedUser RENAME TO umbracoCommerceStoreAllowedUser; +ALTER TABLE vendrFrozenPrice RENAME TO umbracoCommerceFrozenPrice; +ALTER TABLE vendrGiftCardProperty RENAME TO umbracoCommerceGiftCardProperty; +ALTER TABLE vendrActivityLog RENAME TO umbracoCommerceActivityLog; +ALTER TABLE vendrOrderPriceAdjustment RENAME TO umbracoCommerceOrderPriceAdjustment; +ALTER TABLE vendrOrderAmountAdjustment RENAME TO umbracoCommerceOrderAmountAdjustment; +ALTER TABLE vendrProductAttribute RENAME TO umbracoCommerceProductAttribute; +ALTER TABLE vendrProductAttributeValue RENAME TO umbracoCommerceProductAttributeValue; +ALTER TABLE vendrTranslatedValue RENAME TO umbracoCommerceTranslatedValue; +ALTER TABLE vendrProductAttributePreset RENAME TO umbracoCommerceProductAttributePreset; +ALTER TABLE vendrProductAttributePresetAllowedAttribute RENAME TO umbracoCommerceProductAttributePresetAllowedAttribute; +ALTER TABLE vendrOrderLineAttribute RENAME TO umbracoCommerceOrderLineAttribute; +ALTER TABLE vendrPrintTemplate RENAME TO umbracoCommercePrintTemplate; +ALTER TABLE vendrExportTemplate RENAME TO umbracoCommerceExportTemplate; +ALTER TABLE vendrStoreEntityTag RENAME TO umbracoCommerceStoreEntityTag; +ALTER TABLE vendrMigrations RENAME TO umbracoCommerceMigrations; +ALTER TABLE vendrStore RENAME TO umbracoCommerceStore; +``` +{% endtab %} +{% endtabs %} + +3. Swap Vendr property editors for Umbraco Commerce property editors: + +```sql +UPDATE umbracoDataType +SET propertyEditorAlias = REPLACE(propertyEditorAlias, 'Vendr.', 'Umbraco.Commerce.') +WHERE propertyEditorAlias LIKE 'Vendr.%' +``` + +4. Swap the Vendr variants editor for the Umbraco Commerce variants editor in the block list data entry: + +```sql +UPDATE umbracoPropertyData +SET textValue = REPLACE(textValue, 'Vendr.VariantsEditor', 'Umbraco.Commerce.VariantsEditor') +WHERE textValue LIKE '%Vendr.VariantsEditor%'; +``` + +5. Swap Vendr price/amount adjustments to Umbraco Commerce price/amount adjustments: + +```sql +UPDATE umbracoCommerceOrderPriceAdjustment +SET type = REPLACE(type, 'Vendr.', 'Umbraco.Commerce.') +WHERE type LIKE '%Vendr.%'; +UPDATE umbracoCommerceOrderAmountAdjustment +SET type = REPLACE(type, 'Vendr.', 'Umbraco.Commerce.') +WHERE type LIKE '%Vendr.%'; +``` + +6. Update template paths: + +```sql +UPDATE umbracoCommerceEmailTemplate +SET templateView = REPLACE(templateView, '/App_Plugins/Vendr/templates/email', '/Views/UmbracoCommerce/Templates/Email') +WHERE templateView LIKE '%/Vendr/%'; +UPDATE umbracoCommercePrintTemplate +SET templateView = REPLACE(templateView, '/App_Plugins/Vendr/templates/print', '/Views/UmbracoCommerce/Templates/Print') +WHERE templateView LIKE '%/Vendr/%'; +UPDATE umbracoCommerceExportTemplate +SET templateView = REPLACE(templateView, '/App_Plugins/Vendr/templates/export', '/Views/UmbracoCommerce/Templates/Export') +WHERE templateView LIKE '%/Vendr/%'; +``` + +7. Update the migrations log: + +```sql +UPDATE umbracoCommerceMigrations +SET migration = REPLACE(migration, 'Vendr.', 'Umbraco.Commerce.') +WHERE migration LIKE 'Vendr.%'; +``` + +8. Update the activity logs: + +```sql +UPDATE umbracoCommerceActivityLog +SET eventType = REPLACE(eventType, 'vendr/', 'commerce/') +WHERE eventType LIKE 'vendr/%'; +``` + +## Step 4: Finalizing the migration + +1. Delete any obj/bin folders in your projects to ensure a clean build. +2. Recompile all projects and ensure all dependencies are restored correctly +3. Delete the existing Vendr license files in the `umbraco\Licenses` folder. +4. Add your new Umbraco.Commerce license key to the `appSettings.json` file: + +```json +"Umbraco"" { + "Licenses": { + "Umbraco.Commerce": "YOUR_LICENSE_KEY" + } +} +``` + +5. Update any payment gateways that use a global webhook: + +```none +https://{site_url}/umbraco/commerce/payment/callback/{payment_provider_alias}/{payment_method_id}/ +``` + +6. Run the project. + +It is highly recommended to ensure everything works as expected, before moving on to migrating packages and custom payment providers. + +## Further Migrations + +If you have been using the Vendr Checkout package, you will need to follow some additional steps to migrate this package to Umbraco Commerce. Follow the link below for a complete guide: + +{% content-ref url="migrate-umbraco-commerce-checkout.md" %} +[migrate-umbraco-commerce-checkout.md](migrate-umbraco-commerce-checkout.md) +{% endcontent-ref %} + +Any custom payment providers used with Vendr also need to be migrated to Umbraco Commerce. Follow the link below to find detailed steps on how to perform this migration: + +{% content-ref url="migrate-custom-payment-providers.md" %} +[migrate-custom-payment-providers.md](migrate-custom-payment-providers.md) +{% endcontent-ref %} + +[^1]: Vendr previously used the `.js` file extension to serve JSON files without having to configure a new `.json` mime-type on the server. This is no longer necessary in Umbraco Commerce so we can now use the correct `.json` file extension. diff --git a/14/umbraco-commerce/upgrading/migrate-from-vendr-to-umbraco-commerce/migrate-custom-payment-providers.md b/14/umbraco-commerce/upgrading/migrate-from-vendr-to-umbraco-commerce/migrate-custom-payment-providers.md new file mode 100644 index 00000000000..e0214524172 --- /dev/null +++ b/14/umbraco-commerce/upgrading/migrate-from-vendr-to-umbraco-commerce/migrate-custom-payment-providers.md @@ -0,0 +1,26 @@ +--- +description: >- + Follow the steps outlined below to migrate your custom payment providers to + Umbraco Commerce. +--- + +# Migrate custom Payment Providers + +Throughout the following steps, we will migrate custom payment providers used for Umbraco Commerce into Umbraco Commerce. + +1. Remove any installed Umbraco Commerce packages + +```bash +dotnet remove package Umbraco.Commerce.Core +``` + +2. Install the `Umbraco.Commerce` packages for the payment providers. + +```bash +dotnet add package Umbraco.Commerce.Core +``` + +3. Update any namespace references. +4. Update project framework to `net7.0`. + +The final step in the migration is to update all abstract async methods exposed by the base class. It needs to be updated to accept an additional `CancellationToken cancellationToken = default` parameter as the final method argument. Your Integrated Development Environment (IDE) should provide feedback on all the methods that have been updated. diff --git a/14/umbraco-commerce/upgrading/migrate-from-vendr-to-umbraco-commerce/migrate-umbraco-commerce-checkout.md b/14/umbraco-commerce/upgrading/migrate-from-vendr-to-umbraco-commerce/migrate-umbraco-commerce-checkout.md new file mode 100644 index 00000000000..9925b605c3b --- /dev/null +++ b/14/umbraco-commerce/upgrading/migrate-from-vendr-to-umbraco-commerce/migrate-umbraco-commerce-checkout.md @@ -0,0 +1,44 @@ +--- +description: >- + Detailed steps on how to migrate the Checkout package from Vendr to Umbraco + Commerce. +--- + +# Migrate Umbraco Commerce Checkout + +Throughout the following steps, we will migrate the Checkout package from Vendr to Umbraco Commerce. + +1. Make a backup of any custom templates and Vendr UI configuration files. +2. Make a note of all configuration values on the Vendr.Checkout Checkout node. +3. Delete Vendr.Checkout generated checkout nodes. + * Checkout + * Customer Information + * Shipping Method + * Payment Method + * Review Order + * Process Payment + * Order Confirmation +4. Delete all Vendr.Checkout generated Document Types. + * \[Vendr Checkout] Page + * \[Vendr Checkout] Checkout Page + * \[Vendr Checkout] Checkout Step Page +5. Delete all Vendr.Checkout generated Data Types. + * \[Vendr Checkout] Step Picker + * \[Vendr Checkout] Theme Color Picker +6. Uninstall the Vendr.Checkout Nuget package: + +```bash +dotnet remove package Vendr.Checkout +``` + +7. Delete any remaining files and folders in the `~/App_Plugins/VendrCheckout` directory. +8. Install the Umbraco.Commerce.Checkout package: + +```bash +dotnet add package Umbraco.Commerce.Checkout +``` + +9. Locate the Umbraco Commerce Checkout dashboard in the Settings section +10. Click the "Install" button to reinstall the Checkout components in the previous location. +11. Copy any custom configuration files back into the solution. +12. Copy any custom Views into the `~/Views/UmbracoCommerceCheckout/` folder. diff --git a/14/umbraco-commerce/upgrading/upgrade.md b/14/umbraco-commerce/upgrading/upgrade.md new file mode 100644 index 00000000000..c17ff208ffc --- /dev/null +++ b/14/umbraco-commerce/upgrading/upgrade.md @@ -0,0 +1,37 @@ +# Upgrading Umbraco Commerce + +This article shows how to manually upgrade Umbraco Commerce to run the latest version. +When upgrading Umbraco Commerce, be sure to also consult the [version specific upgrade](version-specific-upgrades.md) notes to learn about potential breaking changes and common pitfalls. + +{% hint style="warning" %} +Before upgrading, it is always advisable to take a complete backup of your site and database. +{% endhint %} + +## Get the latest version of Umbraco Commerce + +To get the latest version of Umbraco Commerce you can upgrade using: +- NuGet +- Visual Studio + +### NuGet + +- NuGet installs the latest version of the package when you use the `dotnet add package Umbraco.Commerce` command unless you specify a package version: `dotnet add package Umbraco.Commerce --version ` + +- After you have added a package reference to your project by executing the `dotnet add package Umbraco.Commerce` command in the directory that contains your project file, run `dotnet restore` to install the package. + + +### Visual Studio + +1. Go to `Tools` -> `NuGet Package Manager` -> `Manage NuGet Packages for Solution...` in Visual Studio, to upgrade Umbraco Commerce: +2. Select **Umbraco.Commerce**. +3. Select the latest version from the Version drop-down and click Install. +4. When the command completes, open the **.csproj** file to make sure the package reference is updated: +```xml + + + +``` + +If you are using one or more of the below sub-packages, they also need to be upgraded as well: + +
Sub-packageDescription
Umbraco.Commerce.CommonA shared project of common, non-Commerce-specific patterns and helpers.
Umbraco.Commerce.CoreCore Commerce functionality that doesn't require any infrastructure-specific dependencies.
Umbraco.Commerce.InfrastructureInfrastructure-specific project containing implementations of core Commerce functionality.
Umbraco.Commerce.Persistence.SqlServerPersistence-specific project containing implementations of core Commerce persistence functionality for SQL Server.
Umbraco.Commerce.Persistence.SqllitePersistence-specific project containing implementations of core Commerce persistence functionality for SQLite.
Umbraco.Commerce.WebCore Commerce functionality that requires a web context.
Umbraco.Commerce.CmsCore Commerce functionality that requires an Umbraco dependency.
Umbraco.Commerce.Cms.WebThe Commerce functionality for the Umbraco presentation layer.
Umbraco.Commerce.Cms.Web.UIThe static Commerce assets for the Umbraco presentation layer.
Umbraco.Commerce.Cms.StartupThe Commerce functionality for registering Commerce with Umbraco.
Umbraco.CommerceThe main Commerce package entry point package.
diff --git a/14/umbraco-commerce/upgrading/version-specific-upgrade-notes.md b/14/umbraco-commerce/upgrading/version-specific-upgrade-notes.md new file mode 100644 index 00000000000..6a632ccace9 --- /dev/null +++ b/14/umbraco-commerce/upgrading/version-specific-upgrade-notes.md @@ -0,0 +1,2 @@ +# Version Specific Upgrade Notes + diff --git a/14/umbraco-commerce/upgrading/version-specific-upgrades.md b/14/umbraco-commerce/upgrading/version-specific-upgrades.md new file mode 100644 index 00000000000..622af7b3004 --- /dev/null +++ b/14/umbraco-commerce/upgrading/version-specific-upgrades.md @@ -0,0 +1,22 @@ +--- +description: >- + Version specific documentation for upgrading to new major versions of Umbraco Commerce. +--- + +# Version Specific Upgrade Notes + +This page covers specific upgrade documentation for when migrating to major 13 of Umbraco Commerce. + +{% hint style="info" %} +If you are upgrading to a new minor or patch version, you can find information about the breaking changes in the [Release Notes](../release-notes.md) article. +{% endhint %} + +## Version Specific Upgrade Notes History + +Version 13 contains a number of breaking changes from the previous, Vendr product. + +See the [Migrate from Vendr to Umbraco Commerce guide](migrate-from-vendr-to-umbraco-commerce/) for full details. + +## Legacy version specific upgrade notes + +You can find the version specific upgrade notes for versions out of support in the [Legacy documentation on Github](https://github.com/umbraco/UmbracoDocs/tree/umbraco-eol-versions).