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

Bump pricing client to 3.35.15 #133

Merged
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
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"author": "epilot GmbH",
"license": "UNLICENSED",
"dependencies": {
"@epilot/pricing-client": "^3.35.12",
"@epilot/pricing-client": "^3.35.15",
"@types/dinero.js": "^1.9.0",
"dinero.js": "^1.9.1"
},
Expand Down
2 changes: 2 additions & 0 deletions src/__tests__/fixtures/coupon.samples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export const fixedCashbackCoupon: Coupon = {
fixed_value: 1000,
fixed_value_decimal: '10.00',
fixed_value_currency: 'EUR',
cashback_period: '12',
};

export const percentageCashbackCoupon: Coupon = {
Expand All @@ -52,4 +53,5 @@ export const percentageCashbackCoupon: Coupon = {
type: 'percentage',
category: 'cashback',
percentage_value: '10',
cashback_period: '12',
};
19 changes: 11 additions & 8 deletions src/__tests__/fixtures/pricing.results.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6993,27 +6993,29 @@ export const computedPriceWithFixedAmountCashbackCoupon = {
fixed_value: 1000,
fixed_value_decimal: '10.00',
fixed_value_currency: 'EUR',
cashback_period: '12',
},
],
currency: 'EUR',
description: 'Winter Sale',
unit_amount: 10000,
unit_amount_net: 9091,
unit_amount_net_decimal: '90.909090909091',
unit_amount_gross: 10000,
unit_amount_gross_decimal: '100',
unit_amount_decimal: '100',
amount_subtotal: 9091,
amount_total: 10000,
amount_tax: 909,
cashback_amount: 1000,
cashback_amount_decimal: '10',
currency: 'EUR',
description: 'Winter Sale',
unit_amount_decimal: '100',
amount_tax: 909,
amount_subtotal_decimal: '90.909090909091',
amount_total_decimal: '100',
},
],
currency: 'EUR',
};

/**
* Simple price with a fixed amount cashback coupon applied to it
*/
Expand Down Expand Up @@ -7124,21 +7126,22 @@ export const computedPriceWithPercentageCashbackCoupon = {
type: 'percentage',
category: 'cashback',
percentage_value: '10',
cashback_period: '12',
},
],
currency: 'EUR',
description: 'Winter Sale',
unit_amount: 10000,
unit_amount_net: 9091,
unit_amount_net_decimal: '90.909090909091',
unit_amount_gross: 10000,
unit_amount_gross_decimal: '100',
unit_amount_decimal: '100',
amount_subtotal: 9091,
amount_total: 10000,
amount_tax: 909,
cashback_amount: 1000,
cashback_amount_decimal: '10',
currency: 'EUR',
description: 'Winter Sale',
unit_amount_decimal: '100',
amount_tax: 909,
amount_subtotal_decimal: '90.909090909091',
amount_total_decimal: '100',
},
Expand Down
Loading