Skip to content

Commit

Permalink
fix: crystallizeHelperFunction kebab_case to camelCase for lineItem
Browse files Browse the repository at this point in the history
  • Loading branch information
meetdave3 committed Sep 30, 2020
1 parent e21bb61 commit 1640801
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/crystallize-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ interface ICrystallizeLineItem {
stock: number;
subscriptionPlans: Array<ISubscriptionPlan>;
vatAmount: number;
tax_group: {
taxGroup: {
name: string;
percent: number;
};
Expand Down Expand Up @@ -108,7 +108,7 @@ export class CrystallizeKlarnaHelpers {
name: item.name,
reference: item.sku,
quantity: item.quantity,
tax_rate: item.tax_group.percent * 100 || 0,
tax_rate: item.taxGroup.percent * 100 || 0,
unit_price: item.price * 100,
merchant_data: JSON.stringify({
productId: item.id,
Expand Down

0 comments on commit 1640801

Please sign in to comment.