Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add plan.monthlyChargeCurrency #39

Merged
merged 7 commits into from
Nov 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading