hmmmmmmmmmmmmmmmm part 5
This commit is contained in:
@@ -15,8 +15,8 @@ type CreateTransactionResponseFailed = {
|
|||||||
|
|
||||||
const BOOKING_SEAT_PRICE = 1_000_000;
|
const BOOKING_SEAT_PRICE = 1_000_000;
|
||||||
const MINIMAL_KIT_PRICE = 350_000;
|
const MINIMAL_KIT_PRICE = 350_000;
|
||||||
const WITHOUT_SUITCASE_KIT_PRICE = 350_000;
|
const WITHOUT_SUITCASE_KIT_PRICE = 750_000;
|
||||||
const FULL_KIT_PRICE = 350_000;
|
const FULL_KIT_PRICE = 1_500_000;
|
||||||
const VACCINE_PRICE = 500_000;
|
const VACCINE_PRICE = 500_000;
|
||||||
|
|
||||||
export class MidtransPaymentService extends AbstractPaymentService {
|
export class MidtransPaymentService extends AbstractPaymentService {
|
||||||
@@ -41,7 +41,9 @@ export class MidtransPaymentService extends AbstractPaymentService {
|
|||||||
((order.quadDownPaymentPercentage / 100) *
|
((order.quadDownPaymentPercentage / 100) *
|
||||||
(order.package.quadPrice - order.package.quadDiscount)) /
|
(order.package.quadPrice - order.package.quadDiscount)) /
|
||||||
100_000,
|
100_000,
|
||||||
) * 100_000;
|
) *
|
||||||
|
100_000 *
|
||||||
|
order.quad;
|
||||||
}
|
}
|
||||||
if (order.tripleDownPaymentPercentage > 0) {
|
if (order.tripleDownPaymentPercentage > 0) {
|
||||||
price +=
|
price +=
|
||||||
@@ -49,7 +51,9 @@ export class MidtransPaymentService extends AbstractPaymentService {
|
|||||||
((order.tripleDownPaymentPercentage / 100) *
|
((order.tripleDownPaymentPercentage / 100) *
|
||||||
(order.package.triplePrice - order.package.tripleDiscount)) /
|
(order.package.triplePrice - order.package.tripleDiscount)) /
|
||||||
100_000,
|
100_000,
|
||||||
) * 100_000;
|
) *
|
||||||
|
100_000 *
|
||||||
|
order.triple;
|
||||||
}
|
}
|
||||||
if (order.doubleDownPaymentPercentage > 0) {
|
if (order.doubleDownPaymentPercentage > 0) {
|
||||||
price +=
|
price +=
|
||||||
@@ -57,7 +61,9 @@ export class MidtransPaymentService extends AbstractPaymentService {
|
|||||||
((order.doubleDownPaymentPercentage / 100) *
|
((order.doubleDownPaymentPercentage / 100) *
|
||||||
(order.package.doublePrice - order.package.doubleDiscount)) /
|
(order.package.doublePrice - order.package.doubleDiscount)) /
|
||||||
100_000,
|
100_000,
|
||||||
) * 100_000;
|
) *
|
||||||
|
100_000 *
|
||||||
|
order.double;
|
||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
order.infantDownPaymentPercentage > 0 &&
|
order.infantDownPaymentPercentage > 0 &&
|
||||||
@@ -69,7 +75,9 @@ export class MidtransPaymentService extends AbstractPaymentService {
|
|||||||
((order.infantDownPaymentPercentage / 100) *
|
((order.infantDownPaymentPercentage / 100) *
|
||||||
(order.package.infantPrice - order.package.infantDiscount)) /
|
(order.package.infantPrice - order.package.infantDiscount)) /
|
||||||
100_000,
|
100_000,
|
||||||
) * 100_000;
|
) *
|
||||||
|
100_000 *
|
||||||
|
order.infant;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (order.kit === Kit.minimal) {
|
if (order.kit === Kit.minimal) {
|
||||||
|
|||||||
Reference in New Issue
Block a user