Service - Payment Method Manager: Difference between revisions
Jump to navigation
Jump to search
| (13 intermediate revisions by 3 users not shown) | |||
| Line 9: | Line 9: | ||
https://bitbucket.org/izara-market-products/izara-market-products-payment-method-manager/src/master/ | https://bitbucket.org/izara-market-products/izara-market-products-payment-method-manager/src/master/ | ||
= | = Schemas = | ||
==ObjectSchemas== | |||
== | ===paymentMethod=== | ||
<syntaxhighlight lang="JavaScript"> | <syntaxhighlight lang="JavaScript"> | ||
{ | { | ||
"objectType": "paymentMethod", | |||
"canDelete": false, | |||
"storageResources": { | |||
"graph": { | |||
"storageType": "graph", | |||
"graphServerTag": "GraphHandler" | |||
}, | |||
"dynamoDB": { | |||
"storageType": "dynamoDB", | |||
"tableName": "PaymentMethodRecords", | |||
"serviceTag": "PaymentMethodManager" | |||
} | |||
}, | |||
"fieldNames": { | |||
"paymentMethodId": { | |||
"type": "string", | |||
"randomOnCreate": true, | |||
"requiredOnCreate": false, | |||
"optionalOnCreate": false, | |||
"canUpdate": false, | |||
"storageResourceTags": ["dynamoDB","graph"], | |||
"validation": { | |||
"pattern": "^[a-zA-Z0-9-_]+$"} | |||
}, | |||
"paymentMethodHandlerServiceNameTag": { | |||
"type": "string", | |||
"randomOnCreate": false, | |||
"requiredOnCreate": true, | |||
"optionalOnCreate": false, | |||
"canUpdate": false, | |||
"storageResourceTags": ["dynamoDB"], | |||
"validation": { "pattern": "^[a-zA-Z0-9-_]+$"}} | |||
}, | |||
"currencyId": { | |||
"type": "string", | |||
"randomOnCreate": true, | |||
"requiredOnCreate": false, | |||
"optionalOnCreate": false, | |||
"canUpdate": false, | |||
"storageResourceTags": ["dynamoDB"], | |||
"validation": { "pattern": "^[a-zA-Z0-9-_]+$"}} | |||
} | |||
}, | |||
"identifiers": [ | |||
{ | |||
"type": "identifier", | |||
"fieldName": "paymentMethodId" | |||
} | |||
], | |||
"generatedBy": "userGenerated" | |||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<syntaxhighlight lang="JavaScript" inline>currencyId</syntaxhighlight>:is uuid and connect translations declere currency eg:"THB" ect. | |||
== | === userPaymentMethod === | ||
<syntaxhighlight lang="JavaScript"> | <syntaxhighlight lang="JavaScript"> | ||
{ | { | ||
"objectType": "userPaymentMethod", | |||
"canDelete": false, | |||
"storageResources": { | |||
"graph": { | |||
"storageType": "graph", | |||
"graphServerTag": "GraphHandler" | |||
}, | |||
"dynamoDB": { | |||
"storageType": "dynamoDB", | |||
"tableName": "UserPaymentMethodsRecords", | |||
"serviceTag": "PaymentMethodManager" | |||
} | |||
}, | |||
"fieldNames": { | |||
"userPaymentMethodId": { | |||
"type": "string", | |||
"randomOnCreate": true, | |||
"requiredOnCreate": false, | |||
"optionalOnCreate": false, | |||
"canUpdate": false, | |||
"storageResourceTags": [ | |||
"dynamoDB", | |||
"graph" | |||
], | |||
"validation": {"pattern": "^[a-zA-Z0-9-_]+$"} | |||
}, | |||
"paymentMethodHandlerServiceNameTag": { | |||
"type": "string", | |||
"randomOnCreate": false, | |||
"requiredOnCreate": true, | |||
"optionalOnCreate": false, | |||
"canUpdate": true, | |||
"storageResourceTags": [ | |||
"dynamoDB" | |||
], | |||
"validation": {"pattern": "^[a-zA-Z0-9-_]+$"} | |||
} | |||
}, | |||
"identifiers": [ | |||
{ | |||
"type": "identifier", | |||
"fieldName": "userPaymentMethodId" | |||
} | |||
], | |||
"generatedBy": "userGenerated" | |||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== RelationshipSchemas == | |||
=== isPaymentMethod === | |||
<syntaxhighlight lang="JavaScript"> | <syntaxhighlight lang="JavaScript"> | ||
{ | { | ||
"relationshipServiceTag": "PaymentMethodManager", | |||
"fieldNames": {}, | |||
"storageResources": { | |||
"graph": { | |||
"storageType": "graph", | |||
"graphServerTag": "GraphHandler" | |||
} | |||
}, | |||
"links": [ | |||
{ | |||
"storageResourceTags": [ | |||
"graph" | |||
], | |||
"from": { | |||
"objType": { | |||
"serviceTag": "PaymentMethodManager", | |||
"objectType": "userPaymentMethod" | |||
}, | |||
"requiredOnCreate": true, | |||
"linkType": "many", | |||
"handler": true | |||
}, | |||
"to": { | |||
"objType": { | |||
"serviceTag": "PaymentMethodManager", | |||
"objectType": "paymentMethod" | |||
}, | |||
"linkType": "one", | |||
"handler": true, | |||
"requiredOnCreate": false | |||
}, | |||
"canDelete": false | |||
} | |||
], | |||
"canMove": false | |||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
= Working documents = | = Working documents = | ||
Latest revision as of 08:49, 13 January 2026
Overview
Each payment method is handled by a Service - Payment Method (handlers) service, with Service - Payment Method Generic taking all new/simple payment methods.
The Payment Method Manager service handles shared orchestration of the Payment Method Handler services.
Repository
https://bitbucket.org/izara-market-products/izara-market-products-payment-method-manager/src/master/
Schemas
ObjectSchemas
paymentMethod
{
"objectType": "paymentMethod",
"canDelete": false,
"storageResources": {
"graph": {
"storageType": "graph",
"graphServerTag": "GraphHandler"
},
"dynamoDB": {
"storageType": "dynamoDB",
"tableName": "PaymentMethodRecords",
"serviceTag": "PaymentMethodManager"
}
},
"fieldNames": {
"paymentMethodId": {
"type": "string",
"randomOnCreate": true,
"requiredOnCreate": false,
"optionalOnCreate": false,
"canUpdate": false,
"storageResourceTags": ["dynamoDB","graph"],
"validation": {
"pattern": "^[a-zA-Z0-9-_]+$"}
},
"paymentMethodHandlerServiceNameTag": {
"type": "string",
"randomOnCreate": false,
"requiredOnCreate": true,
"optionalOnCreate": false,
"canUpdate": false,
"storageResourceTags": ["dynamoDB"],
"validation": { "pattern": "^[a-zA-Z0-9-_]+$"}}
},
"currencyId": {
"type": "string",
"randomOnCreate": true,
"requiredOnCreate": false,
"optionalOnCreate": false,
"canUpdate": false,
"storageResourceTags": ["dynamoDB"],
"validation": { "pattern": "^[a-zA-Z0-9-_]+$"}}
}
},
"identifiers": [
{
"type": "identifier",
"fieldName": "paymentMethodId"
}
],
"generatedBy": "userGenerated"
}
currencyId:is uuid and connect translations declere currency eg:"THB" ect.
userPaymentMethod
{
"objectType": "userPaymentMethod",
"canDelete": false,
"storageResources": {
"graph": {
"storageType": "graph",
"graphServerTag": "GraphHandler"
},
"dynamoDB": {
"storageType": "dynamoDB",
"tableName": "UserPaymentMethodsRecords",
"serviceTag": "PaymentMethodManager"
}
},
"fieldNames": {
"userPaymentMethodId": {
"type": "string",
"randomOnCreate": true,
"requiredOnCreate": false,
"optionalOnCreate": false,
"canUpdate": false,
"storageResourceTags": [
"dynamoDB",
"graph"
],
"validation": {"pattern": "^[a-zA-Z0-9-_]+$"}
},
"paymentMethodHandlerServiceNameTag": {
"type": "string",
"randomOnCreate": false,
"requiredOnCreate": true,
"optionalOnCreate": false,
"canUpdate": true,
"storageResourceTags": [
"dynamoDB"
],
"validation": {"pattern": "^[a-zA-Z0-9-_]+$"}
}
},
"identifiers": [
{
"type": "identifier",
"fieldName": "userPaymentMethodId"
}
],
"generatedBy": "userGenerated"
}
RelationshipSchemas
isPaymentMethod
{
"relationshipServiceTag": "PaymentMethodManager",
"fieldNames": {},
"storageResources": {
"graph": {
"storageType": "graph",
"graphServerTag": "GraphHandler"
}
},
"links": [
{
"storageResourceTags": [
"graph"
],
"from": {
"objType": {
"serviceTag": "PaymentMethodManager",
"objectType": "userPaymentMethod"
},
"requiredOnCreate": true,
"linkType": "many",
"handler": true
},
"to": {
"objType": {
"serviceTag": "PaymentMethodManager",
"objectType": "paymentMethod"
},
"linkType": "one",
"handler": true,
"requiredOnCreate": false
},
"canDelete": false
}
],
"canMove": false
}