Skip to content

Commit

Permalink
Merge pull request #39 from codex-team/feat/revert-removing-accounting
Browse files Browse the repository at this point in the history
Add plan.monthlyChargeCurrency
  • Loading branch information
TatianaFomina authored Nov 17, 2024
2 parents db68f5a + d1749e1 commit b8c1086
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 3 deletions.
8 changes: 8 additions & 0 deletions build/src/base/businessOperation/businessOperation.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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
*/
Expand Down
6 changes: 5 additions & 1 deletion build/src/dbScheme/plan.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
10 changes: 10 additions & 0 deletions src/base/businessOperation/businessOperation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ export interface PayloadOfDepositByUser {
*/
amount: number;

/**
* Currency of payment
*/
currency: string;

/**
* ID of the user who made the payment
*/
Expand All @@ -74,6 +79,11 @@ export interface PayloadOfWorkspacePlanPurchase {
*/
amount: number;

/**
* Currency of payment
*/
currency: string;

/**
* ID of the user who made the payment
*/
Expand Down
7 changes: 6 additions & 1 deletion src/dbScheme/plan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit b8c1086

Please sign in to comment.