diff --git a/packages/api/src/config.js b/packages/api/src/config.js index d967da72e3..32fc2d71d4 100644 --- a/packages/api/src/config.js +++ b/packages/api/src/config.js @@ -35,19 +35,19 @@ exports.products = { { name: "Transcoding", description: "Transcoding (minutes)", - price: 0.005, + price: 0.0055, limit: 3_000, }, { name: "Delivery", description: "Delivery (minutes)", - price: 0.0004, + price: 0.0005, limit: 100_000, }, { name: "Storage", description: "Storage (minutes)", - price: 0.003, + price: 0.0035, limit: 10_000, }, ], @@ -102,19 +102,19 @@ exports.products = { { name: "Transcoding", description: "Transcoding (minutes)", - price: 0.005, + price: 0.0055, limit: 3_000, }, { name: "Delivery", description: "Delivery (minutes)", - price: 0.0004, + price: 0.0005, limit: 100_000, }, { name: "Storage", description: "Storage (minutes)", - price: 0.003, + price: 0.0035, limit: 10_000, }, ], @@ -129,19 +129,19 @@ exports.products = { { name: "Transcoding", description: "Transcoding (minutes)", - price: 0.005, + price: 0.0055, limit: 20_000, }, { name: "Delivery", description: "Delivery (minutes)", - price: 0.0004, + price: 0.0005, limit: 500_000, }, { name: "Storage", description: "Storage (minutes)", - price: 0.003, + price: 0.0035, limit: 50_000, }, ], @@ -156,17 +156,17 @@ exports.products = { { name: "Transcoding", description: "Transcoding (minutes)", - price: 0.005, + price: 0.0055, }, { name: "Delivery", description: "Delivery (minutes)", - price: 0.0004, + price: 0.0005, }, { name: "Storage", description: "Storage (minutes)", - price: 0.003, + price: 0.0035, }, ], monthlyPrice: 0, @@ -229,19 +229,19 @@ exports.products = { { name: "Transcoding", description: "Transcoding (minutes)", - price: 0.005, + price: 0.0055, limit: 3_000, }, { name: "Delivery", description: "Delivery (minutes)", - price: 0.0004, + price: 0.0005, limit: 100_000, }, { name: "Storage", description: "Storage (minutes)", - price: 0.003, + price: 0.0035, limit: 10_000, }, ], @@ -256,19 +256,19 @@ exports.products = { { name: "Transcoding", description: "Transcoding (minutes)", - price: 0.005, + price: 0.0055, limit: 20_000, }, { name: "Delivery", description: "Delivery (minutes)", - price: 0.0004, + price: 0.0005, limit: 500_000, }, { name: "Storage", description: "Storage (minutes)", - price: 0.003, + price: 0.0035, limit: 50_000, }, ], @@ -283,17 +283,17 @@ exports.products = { { name: "Transcoding", description: "Transcoding (minutes)", - price: 0.005, + price: 0.0055, }, { name: "Delivery", description: "Delivery (minutes)", - price: 0.0004, + price: 0.0005, }, { name: "Storage", description: "Storage (minutes)", - price: 0.003, + price: 0.0035, }, ], monthlyPrice: 0, diff --git a/packages/www/components/Plans/index.tsx b/packages/www/components/Plans/index.tsx index 0c5fdb7d50..b7a2a560bc 100644 --- a/packages/www/components/Plans/index.tsx +++ b/packages/www/components/Plans/index.tsx @@ -370,7 +370,7 @@ const Plans = ({ 3,000 minutes + content="Then $5.50 for every additional 1,000 minutes"> 10,000 minutes + content="Then $3.50 for every additional 1,000 minutes"> + content="Then $0.50 for every additional 1,000 minutes"> 20,000 minutes + content="Then $5.50 for every additional 1,000 minutes"> 50,000 minutes + content="Then $3.50 for every additional 1,000 minutes"> 500,000 minutes + content="Then $0.50 for every additional 1,000 minutes"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
ItemUnit PriceAmount Due
- {product.name} Plan - ${price} / month{usage && `$${price}`}
OverageUsagePlan Usage Limit - {usage && - `$${( - overUsageBill.transcodingBill.total + - overUsageBill.deliveryBill.total + - overUsageBill.storageBill.total - ).toFixed(2)}`} -
Transcoding - {usage && parseInt(usage.TotalUsageMins).toLocaleString()} minutes - {product.usage[0].limit.toLocaleString()} minutes${product.usage[0].price} / min
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - + + + + + + + + - - - - - - - - + + + + + + + + - - - - - - - - - - - -
ItemUnit PriceAmount Due
{product.name} Plan${price} / month{usage && `$${price}`}
OverageUsagePlan Usage Limit + {usage && + `$${( + overUsageBill.transcodingBill.total + + overUsageBill.deliveryBill.total + + overUsageBill.storageBill.total + ).toFixed(2)}`} +
Transcoding + {usage && parseInt(usage.TotalUsageMins).toLocaleString()} minutes + {product.usage[0].limit.toLocaleString()} minutes${product.usage[0].price} / min - {overUsageBill && - `$${overUsageBill.transcodingBill.total.toFixed(2)}`} -
Delivery - {usage && parseInt(usage.DeliveryUsageMins).toLocaleString()}{" "} - minutes - {product.usage[1].limit.toLocaleString()} minutes${product.usage[1].price} / min + {overUsageBill && + `$${overUsageBill.transcodingBill.total.toFixed(2)}`} +
Delivery + {usage && parseInt(usage.DeliveryUsageMins).toLocaleString()}{" "} + minutes + {product.usage[1].limit.toLocaleString()} minutes${product.usage[1].price} / min - {overUsageBill && - `$${overUsageBill.deliveryBill.total.toFixed(2)}`} -
Storage - {usage && parseInt(usage.StorageUsageMins).toLocaleString()}{" "} - minutes - {product.usage[2].limit.toLocaleString()} minutes${product.usage[2].price} / min + {overUsageBill && `$${overUsageBill.deliveryBill.total.toFixed(2)}`} +
Storage + {usage && parseInt(usage.StorageUsageMins).toLocaleString()} minutes + {product.usage[2].limit.toLocaleString()} minutes${product.usage[2].price} / min - {overUsageBill && - `$${overUsageBill.storageBill.total.toFixed(2)}`} -
- Total - - Due on{" "} - {new Date( - subscription.current_period_end * 1000 - ).toLocaleDateString("en-US", { - year: "numeric", - month: "long", - day: "numeric", - })} - - {usage && - `$${( - price + - overUsageBill.transcodingBill.total + - overUsageBill.deliveryBill.total + - overUsageBill.storageBill.total - ).toFixed(2)}`} -
- + + {overUsageBill && `$${overUsageBill.storageBill.total.toFixed(2)}`} + + + + + Total + + + Due on{" "} + {new Date( + subscription.current_period_end * 1000 + ).toLocaleDateString("en-US", { + year: "numeric", + month: "long", + day: "numeric", + })} + + + + + + {usage && + `$${( + price + + overUsageBill.transcodingBill.total + + overUsageBill.deliveryBill.total + + overUsageBill.storageBill.total + ).toFixed(2)}`} + + + + ); };