diff --git a/build/src/base/businessOperation/businessOperation.d.ts b/build/src/base/businessOperation/businessOperation.d.ts index d83218f..95b4aba 100644 --- a/build/src/base/businessOperation/businessOperation.d.ts +++ b/build/src/base/businessOperation/businessOperation.d.ts @@ -41,6 +41,10 @@ export interface PayloadOfDepositByUser { * Amount of payment */ amount: number; + /** + * Currency of payment + */ + currency: string; /** * ID of the user who made the payment */ @@ -62,6 +66,10 @@ export interface PayloadOfWorkspacePlanPurchase { * Amount of payment */ amount: number; + /** + * Currency of payment + */ + currency: string; /** * ID of the user who made the payment */ diff --git a/build/src/dbScheme/plan.d.ts b/build/src/dbScheme/plan.d.ts index abd7f28..a183c3c 100644 --- a/build/src/dbScheme/plan.d.ts +++ b/build/src/dbScheme/plan.d.ts @@ -12,9 +12,13 @@ export interface PlanDBScheme { */ name: string; /** - * Monthly charge for plan in dollars + * Monthly charge for plan in currencry specified in `monthlyChargeCurrency` */ monthlyCharge: number; + /** + * Currency of `monthlyCharge` + */ + monthlyChargeCurrency: string; /** * Maximum amount of events available for plan */ diff --git a/package.json b/package.json index cc16d2a..3fb96ae 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hawk.so/types", - "version": "0.1.20", + "version": "0.1.21", "description": "TypeScript definitions for Hawk", "types": "build/index.d.ts", "main": "build/index.js", diff --git a/src/base/businessOperation/businessOperation.ts b/src/base/businessOperation/businessOperation.ts index 53b4bcf..e0f57c9 100644 --- a/src/base/businessOperation/businessOperation.ts +++ b/src/base/businessOperation/businessOperation.ts @@ -49,6 +49,11 @@ export interface PayloadOfDepositByUser { */ amount: number; + /** + * Currency of payment + */ + currency: string; + /** * ID of the user who made the payment */ @@ -74,6 +79,11 @@ export interface PayloadOfWorkspacePlanPurchase { */ amount: number; + /** + * Currency of payment + */ + currency: string; + /** * ID of the user who made the payment */ diff --git a/src/dbScheme/plan.ts b/src/dbScheme/plan.ts index 3656528..7bed00f 100644 --- a/src/dbScheme/plan.ts +++ b/src/dbScheme/plan.ts @@ -15,10 +15,15 @@ export interface PlanDBScheme { name: string; /** - * Monthly charge for plan in dollars + * Monthly charge for plan in currencry specified in `monthlyChargeCurrency` */ monthlyCharge: number; + /** + * Currency of `monthlyCharge` + */ + monthlyChargeCurrency: string; + /** * Maximum amount of events available for plan */