Service - Currencies: Difference between revisions

From Izara Wiki
Jump to navigation Jump to search
(Created page with "= Overview = Manages currencies used in project including rates = Repository = https://bitbucket.org/izara-core-shared/izara-core-shared-currencies = DynamoDB tables = == Standard Config Table Per Service == === Configuration tags === <syntaxhighlight lang="JavaScript"> { configKey: "baseCurrencyId", configTag: "baseCurrencyId", configValue: "USD", }, </syntaxhighlight> == CurrencyMain == <syntaxhighlight lang="JavaScript"> { currencyId: "xx", // can be...")
(No difference)

Revision as of 13:16, 7 March 2023

Overview

Manages currencies used in project including rates

Repository

https://bitbucket.org/izara-core-shared/izara-core-shared-currencies

DynamoDB tables

Standard Config Table Per Service

Configuration tags

{
	configKey: "baseCurrencyId",
	configTag: "baseCurrencyId",
	configValue: "USD",
},

CurrencyMain

{
	currencyId: "xx", // can be any string identifier, for standard ISO 4217 use the string code
	rate: "xx",
	timeRateUpdated: "xx" // timestamp
}
  • partition key: currencyId
  • sort key: {none}

Rates

Rate is mid-market rate to a base currency, in our project work with USD.

  • partition key: importBatchId
  • sort key: {none}