billing typos
MODIFY
src/integration/billing/stripe/StripeBillingIntegration.ts
src/integration/billing/stripe/StripeBillingIntegration.ts
@@ -868,7 +868,7 @@ export default class StripeBillingIntegration extends BillingIntegration {
Stripe alternative - 'unit_amount_decimal' in Cents, with 2 decimals, as a string!
unit_amount_decimal: '004.00' (in Cents, with 2 decimals, as a string)
----------------------------------------------------------------------------------- */
- // A stripe invoice item per dimemsion
+ // A stripe invoice item per dimension
await this._createStripeInvoiceItem4Dimension(customerID, 'flatFee', billingInvoiceItem, invoiceID);
await this._createStripeInvoiceItem4Dimension(customerID, 'chargingTime', billingInvoiceItem, invoiceID);
await this._createStripeInvoiceItem4Dimension(customerID, 'energy', billingInvoiceItem, invoiceID);

MODIFY
test/api/BillingStripeTestData.ts
test/api/BillingStripeTestData.ts
@@ -276,8 +276,8 @@ export default class StripeIntegrationTestData {
assert(this.billingUser, 'Billing user cannot be null');
// array of tax ids to apply to the line item
const taxes = (consumptionTestData.taxId) ? [ consumptionTestData.taxId ] : [];
- // Princing/Consumption Data
- const billingPrincingData: BillingPricingData = {
+ // Pricing/Consumption Data
+ const billingPricingData: BillingPricingData = {
energy: {
itemDescription: `Energy consumption - ${consumptionTestData.energyConsumptionkWh} kWh * ${consumptionTestData.energyAmount / consumptionTestData.energyConsumptionkWh} Eur`,
amount: consumptionTestData.energyAmount, // total amount to bill - not yet in cents
@@ -295,7 +295,7 @@ export default class StripeIntegrationTestData {
const invoiceItem:BillingInvoiceItem = {
currency: 'EUR',
transactionID: Utils.getRandomIntSafe(),
- pricingData: billingPrincingData
+ pricingData: billingPricingData
};
// Let's attempt to bill the line item
const billingInvoice: BillingInvoice = await this.billingImpl.billInvoiceItem(this.dynamicUser, invoiceItem);

billing typos