Service - Delivery Method Manager: Difference between revisions

From Izara Wiki
Jump to navigation Jump to search
No edit summary
Line 46: Line 46:
* partition key: deliveryMethodId
* partition key: deliveryMethodId
* sort key: (none)
* sort key: (none)
= Complex Filter requests =
<syntaxhighlight lang="JavaScript">
{
filterType: "managerDeliveryMethod" //unique id is deliveryMethodId
type: "group",
elements:
[
{
type: "logical",
logicalTag: "currencyId",
comparison: "equals",
value: "xx"
},
{
type: "logical",
logicalTag: "fromLocationNodeId",
comparison: "equals",
value: "xx"
},
{
type: "complexFilter",
complexFilter: {
filterType: "deliveryMethodProperty",
// see [[NPM module - Izara Core - Property Node|Complex Filter requests]]
}
},
{
type: "complexFilter",
complexFilter: {
filterType: "deliveryMethodNameTranslation" //unique id is deliveryMethodId
type: "group",
elements:
[
{
// see [[Service - Translations|Complex Filter requests]]
type: "logical",
logicalTag: "textTag_languageId_text",
resultType: "deliveryMethod",
textTag: "deliveryMethodName",
languageId: "en",
text: "Is a great term",
subjectIdentifierPropertyName: "deliveryMethodId",
caseSensitive: true
},
]
}
},
...
]
}
</syntaxhighlight>


= Working documents =
= Working documents =

Revision as of 11:46, 14 February 2022

Overview

Each delivery method is handled by a Service - Delivery Method (handlers) service, with Service - Delivery Method Standard handling simple delivery methods with rate tables.

The Delivery Method Manager service handles shared orchestration of Delivery Method Handler services.

Repository

https://bitbucket.org/izara-market-products/izara-market-products-delivery-method-manager

DynamoDB tables

Standard Config Table Per Service

Configuration tags

{
	configKey: "ProductGraphServiceName"
	configTag: "ProductGraphServiceName"
	configValue: xxx // eg: "ProductGraph"
}
{
	configKey: "DeliveryMethodHandlerService"
	configTag: xxx // deliveryMethodHandlerServiceNameTag, eg: "DeliveryMethodStandard"
	configValue: {
		serviceName: xxx // eg: "DeliveryMethodStandard", this is the actual deployed service name
	}
}

DeliveryMethodRecord

Records which Handler manages each payment method

{
	deliveryMethodId
	deliveryMethodHandlerServiceNameTag
}
  • partition key: deliveryMethodId
  • sort key: (none)

Complex Filter requests

{
	filterType: "managerDeliveryMethod" //unique id is deliveryMethodId
	type: "group",
	elements:
	[
		{
			type: "logical",
			logicalTag: "currencyId",
			comparison: "equals",
			value: "xx"
		},
		{
			type: "logical",
			logicalTag: "fromLocationNodeId",
			comparison: "equals",
			value: "xx"
		},
		{
			type: "complexFilter",
			complexFilter: {
				filterType: "deliveryMethodProperty",
				// see [[NPM module - Izara Core - Property Node|Complex Filter requests]]
			}
		},
		{
			type: "complexFilter",
			complexFilter: {
				filterType: "deliveryMethodNameTranslation" //unique id is deliveryMethodId
				type: "group",
				elements: 
				[
					{
						// see [[Service - Translations|Complex Filter requests]]
						type: "logical",
						logicalTag: "textTag_languageId_text",
						resultType: "deliveryMethod",
						textTag: "deliveryMethodName",
						languageId: "en",
						text: "Is a great term",
						subjectIdentifierPropertyName: "deliveryMethodId",
						caseSensitive: true
					},
				]
			}
		},		
		...
	]
}

Working documents

Delivery Method Manager