@v-office/website-sdk 2.20.4 → 2.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +6 -2
- package/dist/{client-BGeG3B_l.mjs → client-dWCukmLr.mjs} +85 -96
- package/dist/index.d.mts +34 -19
- package/dist/index.mjs +2 -2
- package/dist/instructions/CHANGELOG.md +1 -0
- package/dist/instructions/MIGRATION.md +1 -0
- package/dist/instructions/README.md +2 -1
- package/dist/instructions/booking.md +37 -1
- package/dist/instructions/versions/2.21.0/CHANGELOG.md +46 -0
- package/dist/instructions/versions/2.21.0/MIGRATION.md +30 -0
- package/dist/{rentals-wTGB1cL6.mjs → rentals-CIhOx3dS.mjs} +1 -1
- package/dist/{search-D3oV3tAf.mjs → search-D9xq3Z-m.mjs} +1 -1
- package/instructions/CHANGELOG.md +1 -0
- package/instructions/MIGRATION.md +1 -0
- package/instructions/README.md +2 -1
- package/instructions/booking.md +37 -1
- package/instructions/versions/2.21.0/CHANGELOG.md +46 -0
- package/instructions/versions/2.21.0/MIGRATION.md +30 -0
- package/instructions/versions/2.21.0/release.json +3 -0
- package/package.json +4 -3
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
2
|
+
import { Bt as defineWebsiteSDKOptions, Ht as defineV9PropertyHighlightSourcesFromUnknown, t as createWebsiteSDK } from "./client-dWCukmLr.mjs";
|
|
3
3
|
import { SearchSearchSortSchema, defineCustomAttributesFromUnknown } from "@v-office/sdk-core";
|
|
4
4
|
import { ByteSize, Console, Effect, FileSystem, Layer, Option, Path, Schema, Stdio, Terminal } from "effect";
|
|
5
5
|
import { Command, Flag } from "effect/unstable/cli";
|
|
@@ -16,7 +16,7 @@ var CLICheckFailed = class extends Error {
|
|
|
16
16
|
const toCLIError = (message, cause) => cause instanceof Error ? new CLICheckFailed(`${message}: ${cause.message}`, { cause }) : new CLICheckFailed(message, { cause });
|
|
17
17
|
//#endregion
|
|
18
18
|
//#region package.json
|
|
19
|
-
var version = "2.
|
|
19
|
+
var version = "2.21.0";
|
|
20
20
|
//#endregion
|
|
21
21
|
//#region src/cli/output.ts
|
|
22
22
|
const toJson = (value) => Effect.try({
|
|
@@ -321,6 +321,10 @@ const staticCommands = [
|
|
|
321
321
|
}, {
|
|
322
322
|
command: "website-sdk --backend v9 search --locale de-DE --query \"adults=2\" --sort '{\"by\":\"random\"}'",
|
|
323
323
|
description: "Search v9 rentals in random order."
|
|
324
|
+
}])),
|
|
325
|
+
Command.make("bank-transfer-details", {}, () => websiteSdkCommand.pipe(Effect.flatMap((root) => withSDK(root, (sdk) => sdk.backend === "v10" ? sdk.static.payment.getBankTransferDetails() : Promise.reject(/* @__PURE__ */ new Error("The v9 hub exposes bank details only inside a booking response; bank-transfer-details requires --backend v10."))).pipe(Effect.flatMap((result) => printOutput(root, result)))))).pipe(Command.withDescription("Read the bank accounts a booking's bank_transfer payment options will show, without creating a booking."), Command.withExamples([{
|
|
326
|
+
command: "website-sdk --backend v10 bank-transfer-details",
|
|
327
|
+
description: "Verify holder, IBAN, BIC and bank name of the account's payment settings."
|
|
324
328
|
}]))
|
|
325
329
|
];
|
|
326
330
|
//#endregion
|
|
@@ -451,6 +451,15 @@ const getFiltersEffect = (input) => Effect.gen(function* () {
|
|
|
451
451
|
const getTermsAndPrivacyPolicyEffect = (input) => Effect.gen(function* () {
|
|
452
452
|
return yield* (yield* DocumentsService).getTermsAndPrivacyPolicy(input);
|
|
453
453
|
});
|
|
454
|
+
const getBankTransferDetailsEffect = () => Effect.gen(function* () {
|
|
455
|
+
const service = yield* BookingService;
|
|
456
|
+
if (service.getBankTransferDetails === void 0) return yield* Effect.fail(new CoreSDKError({
|
|
457
|
+
source: "v10",
|
|
458
|
+
operation: "booking.getBankTransferDetails",
|
|
459
|
+
message: "BookingService.getBankTransferDetails is not provided by the core runtime."
|
|
460
|
+
}));
|
|
461
|
+
return yield* service.getBankTransferDetails();
|
|
462
|
+
});
|
|
454
463
|
const searchEffect = (input) => Effect.gen(function* () {
|
|
455
464
|
return yield* (yield* SearchService).search(input);
|
|
456
465
|
});
|
|
@@ -4447,29 +4456,31 @@ const toPercent = (scheduleKey, quotePaymentSchedule) => {
|
|
|
4447
4456
|
const percent = quotePaymentSchedule?.[scheduleKey]?.percent;
|
|
4448
4457
|
return percent === void 0 ? void 0 : normalizePercent(percent);
|
|
4449
4458
|
};
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4459
|
+
/**
|
|
4460
|
+
* The hub flags a schedule item's deposit as the included amount, a bare `true` (included,
|
|
4461
|
+
* amount not stated) or `false`. The total of prepayment and rest includes the deposit of both.
|
|
4462
|
+
*/
|
|
4463
|
+
const combineIncludesDeposit = (items) => {
|
|
4464
|
+
const flags = items.map((item) => item?.includesDeposit);
|
|
4465
|
+
if (flags.includes(true)) return true;
|
|
4466
|
+
const amounts = flags.filter((flag) => typeof flag === "number");
|
|
4467
|
+
if (amounts.length > 0) return amounts.reduce((sum, amount) => sum + amount, 0);
|
|
4468
|
+
return flags.includes(false) ? false : void 0;
|
|
4453
4469
|
};
|
|
4454
|
-
const
|
|
4455
|
-
const toScheduleOption = ({ currency, depositAmount, forceFullAmount, payableNow, scheduleItem, scheduleKey, totalPriceAmount, quotePaymentSchedule }) => {
|
|
4470
|
+
const toScheduleOption = ({ currency, payableNow, scheduleItem, scheduleKey, quotePaymentSchedule }) => {
|
|
4456
4471
|
const amount = positiveNumber(scheduleItem.amount);
|
|
4457
4472
|
if (amount === void 0) return void 0;
|
|
4458
4473
|
const percent = toPercent(scheduleKey, quotePaymentSchedule);
|
|
4459
|
-
const includesDeposit =
|
|
4460
|
-
const scheduleDepositAmount = includesDeposit === true && depositAmount !== void 0 && depositAmount > 0 ? depositAmount : void 0;
|
|
4474
|
+
const includesDeposit = scheduleItem.includesDeposit;
|
|
4461
4475
|
return {
|
|
4462
4476
|
kind: scheduleKey === "total" ? "full_amount" : "installment",
|
|
4463
4477
|
scheduleKey,
|
|
4464
4478
|
amount,
|
|
4465
4479
|
currency,
|
|
4466
4480
|
payableNow,
|
|
4467
|
-
...scheduleDepositAmount === void 0 ? {} : { depositAmount: scheduleDepositAmount },
|
|
4468
4481
|
...scheduleItem.date === void 0 ? {} : { dueOn: scheduleItem.date },
|
|
4469
4482
|
...includesDeposit === void 0 ? {} : { includesDeposit },
|
|
4470
|
-
...percent === void 0 ? {} : { percent }
|
|
4471
|
-
...scheduleDepositAmount === void 0 ? { priceAmount: amount } : { priceAmount: amount - scheduleDepositAmount },
|
|
4472
|
-
...forceFullAmount && totalPriceAmount !== void 0 ? { priceAmount: totalPriceAmount } : {}
|
|
4483
|
+
...percent === void 0 ? {} : { percent }
|
|
4473
4484
|
};
|
|
4474
4485
|
};
|
|
4475
4486
|
const removeInstallmentDuplicates = (paymentScheduleOptions) => paymentScheduleOptions.filter((option) => option.kind !== "full_amount" || !paymentScheduleOptions.some((candidate) => candidate.kind === "installment" && candidate.payableNow && candidate.amount === option.amount && candidate.currency === option.currency));
|
|
@@ -4478,62 +4489,39 @@ const toPaymentScheduleOptions = ({ bookResponse, currency, quotePaymentSchedule
|
|
|
4478
4489
|
if (paymentSchedule === void 0) return [];
|
|
4479
4490
|
const prepaymentAmount = positiveNumber(paymentSchedule.prepayment?.amount);
|
|
4480
4491
|
const restAmount = positiveNumber(paymentSchedule.rest?.amount);
|
|
4481
|
-
const
|
|
4482
|
-
const
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
fullAmount,
|
|
4486
|
-
prepaymentAmount,
|
|
4487
|
-
prepaymentPercent,
|
|
4488
|
-
restAmount,
|
|
4489
|
-
restPercent
|
|
4490
|
-
});
|
|
4491
|
-
const depositAmount = toDepositAmount({
|
|
4492
|
-
fullAmount,
|
|
4493
|
-
totalPriceAmount
|
|
4494
|
-
});
|
|
4495
|
-
const prepaymentOption = paymentSchedule.prepayment === void 0 ? void 0 : toScheduleOption({
|
|
4496
|
-
currency,
|
|
4497
|
-
depositAmount,
|
|
4498
|
-
payableNow: true,
|
|
4499
|
-
scheduleItem: paymentSchedule.prepayment,
|
|
4500
|
-
scheduleKey: "prepayment",
|
|
4501
|
-
totalPriceAmount,
|
|
4502
|
-
...quotePaymentSchedule === void 0 ? {} : { quotePaymentSchedule }
|
|
4503
|
-
});
|
|
4504
|
-
const restOption = paymentSchedule.rest === void 0 ? void 0 : toScheduleOption({
|
|
4505
|
-
currency,
|
|
4506
|
-
depositAmount,
|
|
4507
|
-
payableNow: false,
|
|
4508
|
-
scheduleItem: paymentSchedule.rest,
|
|
4509
|
-
scheduleKey: "rest",
|
|
4510
|
-
totalPriceAmount,
|
|
4511
|
-
...quotePaymentSchedule === void 0 ? {} : { quotePaymentSchedule }
|
|
4512
|
-
});
|
|
4513
|
-
const totalScheduleItem = paymentSchedule.total ?? (fullAmount === void 0 ? void 0 : {
|
|
4514
|
-
amount: fullAmount,
|
|
4515
|
-
includesDeposit: true
|
|
4516
|
-
});
|
|
4517
|
-
const totalOption = totalScheduleItem === void 0 ? void 0 : toScheduleOption({
|
|
4518
|
-
currency,
|
|
4519
|
-
depositAmount,
|
|
4520
|
-
forceFullAmount: true,
|
|
4521
|
-
payableNow: true,
|
|
4522
|
-
scheduleItem: totalScheduleItem,
|
|
4523
|
-
scheduleKey: "total",
|
|
4524
|
-
totalPriceAmount,
|
|
4525
|
-
...quotePaymentSchedule === void 0 ? {} : { quotePaymentSchedule }
|
|
4492
|
+
const combinedIncludesDeposit = combineIncludesDeposit([paymentSchedule.prepayment, paymentSchedule.rest]);
|
|
4493
|
+
const totalScheduleItem = paymentSchedule.total ?? (prepaymentAmount === void 0 || restAmount === void 0 ? void 0 : {
|
|
4494
|
+
amount: prepaymentAmount + restAmount,
|
|
4495
|
+
...combinedIncludesDeposit === void 0 ? {} : { includesDeposit: combinedIncludesDeposit }
|
|
4526
4496
|
});
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4497
|
+
const options = [
|
|
4498
|
+
paymentSchedule.prepayment === void 0 ? void 0 : toScheduleOption({
|
|
4499
|
+
currency,
|
|
4500
|
+
payableNow: true,
|
|
4501
|
+
scheduleItem: paymentSchedule.prepayment,
|
|
4502
|
+
scheduleKey: "prepayment",
|
|
4503
|
+
...quotePaymentSchedule === void 0 ? {} : { quotePaymentSchedule }
|
|
4504
|
+
}),
|
|
4505
|
+
paymentSchedule.rest === void 0 ? void 0 : toScheduleOption({
|
|
4506
|
+
currency,
|
|
4507
|
+
payableNow: false,
|
|
4508
|
+
scheduleItem: paymentSchedule.rest,
|
|
4509
|
+
scheduleKey: "rest",
|
|
4510
|
+
...quotePaymentSchedule === void 0 ? {} : { quotePaymentSchedule }
|
|
4511
|
+
}),
|
|
4512
|
+
totalScheduleItem === void 0 ? void 0 : toScheduleOption({
|
|
4513
|
+
currency,
|
|
4514
|
+
payableNow: true,
|
|
4515
|
+
scheduleItem: totalScheduleItem,
|
|
4516
|
+
scheduleKey: "total",
|
|
4517
|
+
...quotePaymentSchedule === void 0 ? {} : { quotePaymentSchedule }
|
|
4518
|
+
})
|
|
4519
|
+
];
|
|
4520
|
+
return removeInstallmentDuplicates(options.flatMap((option) => option === void 0 ? [] : [option]));
|
|
4532
4521
|
})());
|
|
4533
4522
|
//#endregion
|
|
4534
4523
|
//#region src/legacy-v9/parser/booking/output/to-payment-schedules.ts
|
|
4535
4524
|
const getDepositAmount = (bookResponse) => firstNumber(...(bookResponse.reservation?.bookings ?? []).map((booking) => booking.lines?.deposit?.amount));
|
|
4536
|
-
const getBookingTotal = (bookResponse) => firstNumber(bookResponse.reservation?.total);
|
|
4537
4525
|
const toUrvInsurancePaymentOptions = (bookResponse, label) => {
|
|
4538
4526
|
const travelInsuranceResult = asRecord(asRecord(bookResponse).travelInsuranceResult);
|
|
4539
4527
|
const travelInsurance = asRecord(travelInsuranceResult.travelInsurance ?? asRecord(bookResponse).travelInsurance);
|
|
@@ -4544,22 +4532,23 @@ const toUrvInsurancePaymentOptions = (bookResponse, label) => {
|
|
|
4544
4532
|
url
|
|
4545
4533
|
}];
|
|
4546
4534
|
};
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
const toBankTransferOption = (bankAccountPaymentMethod, label, remittanceText
|
|
4535
|
+
/**
|
|
4536
|
+
* The account holder is the PMS payment settings' holder and nothing else. When the hub
|
|
4537
|
+
* omits it the option carries no holder: any substitute (the customer's name was used
|
|
4538
|
+
* before) tells the guest to pay the wrong account holder.
|
|
4539
|
+
*/
|
|
4540
|
+
const toBankTransferOption = (bankAccountPaymentMethod, label, remittanceText) => {
|
|
4553
4541
|
const bankAccount = bankAccountPaymentMethod?.bankaccount;
|
|
4554
4542
|
if (bankAccount === void 0) return void 0;
|
|
4555
4543
|
const iban = firstString(bankAccount.iban);
|
|
4544
|
+
if (iban === void 0) return void 0;
|
|
4545
|
+
const holder = firstString(bankAccount.holder);
|
|
4556
4546
|
const swiftOrBic = firstString(bankAccount.swift);
|
|
4557
4547
|
const institution = firstString(bankAccount.institution);
|
|
4558
|
-
if (iban === void 0) return void 0;
|
|
4559
4548
|
return {
|
|
4560
4549
|
kind: "bank_transfer",
|
|
4561
4550
|
label,
|
|
4562
|
-
holder:
|
|
4551
|
+
...holder === void 0 ? {} : { holder },
|
|
4563
4552
|
remittanceText,
|
|
4564
4553
|
iban,
|
|
4565
4554
|
...swiftOrBic === void 0 ? {} : { swiftOrBic },
|
|
@@ -4610,32 +4599,34 @@ const toStripeOption = (stripeResult, label) => {
|
|
|
4610
4599
|
...url === void 0 ? {} : { url }
|
|
4611
4600
|
};
|
|
4612
4601
|
};
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
const
|
|
4625
|
-
|
|
4602
|
+
/**
|
|
4603
|
+
* The deposit amount of a schedule item, only when the hub states it: the item's own
|
|
4604
|
+
* `includesDeposit` amount, or the booking's deposit line when the item merely flags `true`.
|
|
4605
|
+
* Nothing is derived from percentages or totals; a rounded prepayment would otherwise turn
|
|
4606
|
+
* its rounding remainder into a "deposit".
|
|
4607
|
+
*/
|
|
4608
|
+
const toDepositAmount = (paymentScheduleOption, v9DepositAmount) => {
|
|
4609
|
+
if (typeof paymentScheduleOption.includesDeposit === "number") return paymentScheduleOption.includesDeposit;
|
|
4610
|
+
return paymentScheduleOption.includesDeposit === true ? v9DepositAmount : void 0;
|
|
4611
|
+
};
|
|
4612
|
+
const toPaymentScheduleLines = ({ depositLabel, locale, paymentScheduleOption, v9DepositAmount, totalAmountLabel }) => {
|
|
4613
|
+
const depositAmount = toDepositAmount(paymentScheduleOption, v9DepositAmount);
|
|
4614
|
+
if (depositAmount === void 0 || depositAmount <= 0 || depositAmount > paymentScheduleOption.amount) return;
|
|
4615
|
+
const remainingAmount = paymentScheduleOption.amount - depositAmount;
|
|
4616
|
+
return [...remainingAmount === 0 ? [] : [{
|
|
4626
4617
|
label: totalAmountLabel,
|
|
4627
|
-
amount: formatCurrency(
|
|
4628
|
-
}],
|
|
4618
|
+
amount: formatCurrency(remainingAmount, locale, paymentScheduleOption.currency)
|
|
4619
|
+
}], {
|
|
4629
4620
|
label: depositLabel,
|
|
4630
4621
|
amount: formatCurrency(depositAmount, locale, paymentScheduleOption.currency)
|
|
4631
|
-
}]
|
|
4622
|
+
}];
|
|
4632
4623
|
};
|
|
4633
4624
|
const formatPercent = (percent, locale) => new Intl.NumberFormat(locale, { maximumFractionDigits: 2 }).format(percent);
|
|
4634
4625
|
const toPaymentScheduleLabel = ({ locale, paymentScheduleOption, payFullAmountLabel, payInstallmentLabel, payPrepaymentLabel, payRestLabel }) => {
|
|
4635
4626
|
const baseLabel = paymentScheduleOption.scheduleKey === "prepayment" ? payPrepaymentLabel : paymentScheduleOption.scheduleKey === "rest" ? payRestLabel : paymentScheduleOption.kind === "full_amount" ? payFullAmountLabel : payInstallmentLabel;
|
|
4636
4627
|
return paymentScheduleOption.percent === void 0 ? baseLabel : `${formatPercent(paymentScheduleOption.percent, locale)} % ${baseLabel}`;
|
|
4637
4628
|
};
|
|
4638
|
-
const toPaymentSchedules = ({ bookResponse, locale, paymentScheduleOptionWithStripeResults,
|
|
4629
|
+
const toPaymentSchedules = ({ bookResponse, locale, paymentScheduleOptionWithStripeResults, translations }) => Effect.gen(function* () {
|
|
4639
4630
|
const bankTransferLabel = yield* translations.translate(locale, "booking.payment.option.bankTransfer");
|
|
4640
4631
|
const paypalLabel = yield* translations.translate(locale, "booking.payment.option.paypal");
|
|
4641
4632
|
const stripeLabel = yield* translations.translate(locale, "booking.payment.option.stripe");
|
|
@@ -4647,9 +4638,8 @@ const toPaymentSchedules = ({ bookResponse, locale, paymentScheduleOptionWithStr
|
|
|
4647
4638
|
const depositLabel = yield* translations.translate(locale, "booking.payment.schedule.deposit");
|
|
4648
4639
|
const totalAmountLabel = yield* translations.translate(locale, "booking.payment.schedule.totalAmount");
|
|
4649
4640
|
const remittanceTextLabel = yield* translations.translate(locale, "booking.payment.option.bankTransfer.remittanceText");
|
|
4650
|
-
const bankTransferOption = toBankTransferOption(findPaymentMethod(bookResponse, "BANKACCOUNT"), bankTransferLabel, `${remittanceTextLabel}: ${bookResponse.reservation?.nr ?? ""}`.trim()
|
|
4641
|
+
const bankTransferOption = toBankTransferOption(findPaymentMethod(bookResponse, "BANKACCOUNT"), bankTransferLabel, `${remittanceTextLabel}: ${bookResponse.reservation?.nr ?? ""}`.trim());
|
|
4651
4642
|
const paypalPaymentMethod = findPaymentMethod(bookResponse, "PAYPAL");
|
|
4652
|
-
const v9BookingTotal = getBookingTotal(bookResponse) ?? quoteBookingTotal ?? deriveBookingTotal(paymentScheduleOptionWithStripeResults);
|
|
4653
4643
|
const v9DepositAmount = getDepositAmount(bookResponse);
|
|
4654
4644
|
const schedule = [];
|
|
4655
4645
|
const alternatives = [];
|
|
@@ -4659,8 +4649,7 @@ const toPaymentSchedules = ({ bookResponse, locale, paymentScheduleOptionWithStr
|
|
|
4659
4649
|
locale,
|
|
4660
4650
|
paymentScheduleOption,
|
|
4661
4651
|
v9DepositAmount,
|
|
4662
|
-
totalAmountLabel
|
|
4663
|
-
v9BookingTotal
|
|
4652
|
+
totalAmountLabel
|
|
4664
4653
|
});
|
|
4665
4654
|
const label = toPaymentScheduleLabel({
|
|
4666
4655
|
locale,
|
|
@@ -4845,7 +4834,6 @@ const book = ({ client, input, translations }) => Effect.gen(function* () {
|
|
|
4845
4834
|
bookResponse,
|
|
4846
4835
|
locale: quoteInput.locale,
|
|
4847
4836
|
paymentScheduleOptionWithStripeResults,
|
|
4848
|
-
...typeof quoteResult?.paymentSchedule?.total?.amount === "number" ? { quoteBookingTotal: quoteResult.paymentSchedule.total.amount } : {},
|
|
4849
4837
|
translations
|
|
4850
4838
|
});
|
|
4851
4839
|
const insurancePaymentOptionLabel = yield* translations.translate(quoteInput.locale, "insurance.payment.externalUrl.label");
|
|
@@ -5699,7 +5687,7 @@ const parseV9SearchCursor = (cursor) => Effect.gen(function* () {
|
|
|
5699
5687
|
return page;
|
|
5700
5688
|
});
|
|
5701
5689
|
const loadV9SearchRuntime = Effect.tryPromise({
|
|
5702
|
-
try: () => import("./search-
|
|
5690
|
+
try: () => import("./search-D9xq3Z-m.mjs"),
|
|
5703
5691
|
catch: (cause) => new CoreSDKError({
|
|
5704
5692
|
source: "v10",
|
|
5705
5693
|
operation: "v9.search.runtime",
|
|
@@ -6097,7 +6085,7 @@ const orderRentalsById = ({ rentalIds, rentals }) => {
|
|
|
6097
6085
|
});
|
|
6098
6086
|
};
|
|
6099
6087
|
const loadV9RentalsRuntime = Effect.tryPromise({
|
|
6100
|
-
try: () => import("./rentals-
|
|
6088
|
+
try: () => import("./rentals-CIhOx3dS.mjs"),
|
|
6101
6089
|
catch: (cause) => new CoreSDKError({
|
|
6102
6090
|
source: "v10",
|
|
6103
6091
|
operation: "v9.rentals.runtime",
|
|
@@ -6275,7 +6263,8 @@ function createWebsiteSDK({ config, options }) {
|
|
|
6275
6263
|
static: {
|
|
6276
6264
|
rentals: { getRentals: (input) => runtime.runPromise(getRentalsEffect(input)) },
|
|
6277
6265
|
filter: { getFilters: (input) => runtime.runPromise(getFiltersEffect(input)) },
|
|
6278
|
-
documents: { getTermsAndPrivacyPolicy: (input) => runtime.runPromise(getTermsAndPrivacyPolicyEffect(input)) }
|
|
6266
|
+
documents: { getTermsAndPrivacyPolicy: (input) => runtime.runPromise(getTermsAndPrivacyPolicyEffect(input)) },
|
|
6267
|
+
payment: { getBankTransferDetails: () => runtime.runPromise(getBankTransferDetailsEffect()) }
|
|
6279
6268
|
},
|
|
6280
6269
|
live: {
|
|
6281
6270
|
contact: { submit: (input) => runtime.runPromise(submitContactEffect(input)) },
|
|
@@ -6304,4 +6293,4 @@ function createWebsiteSDK({ config, options }) {
|
|
|
6304
6293
|
};
|
|
6305
6294
|
}
|
|
6306
6295
|
//#endregion
|
|
6307
|
-
export { ServiceBeonDataSchema as $, ErgoBookRequestSchema as A,
|
|
6296
|
+
export { ServiceBeonDataSchema as $, ErgoBookRequestSchema as A, getTermsAndPrivacyPolicyEffect as At, OnOfficeUnitSchema as B, defineWebsiteSDKOptions as Bt, DocumentResourceSchema as C, clearAdditionalServicesEffect as Ct, DocumentTypeSchema as D, getInitialAvailabilityEffect as Dt, DocumentSummarySchema as E, getFiltersEffect as Et, ErgoPolicyNumberRequestSchema as F, selectInsuranceEffect as Ft, QuotePricesResponseSchema$1 as G, PaymentScheduleSchema$1 as H, defineV9PropertyHighlightSourcesFromUnknown as Ht, ErgoReadPreContractRequestSchema as I, selectInsurancePaymentEffect as It, RawObjectResponseSchema as J, QuoteSchema as K, ErgoTripAndCustomerRequestSchema as L, submitContactEffect as Lt, ErgoCreatePreContractRequestSchema as M, removeAdditionalServiceEffect as Mt, ErgoPersonSchema as N, searchEffect as Nt, ErgoAddressSchema as O, getRentalsEffect as Ot, ErgoPlanSearchRequestSchema as P, selectCancellationPolicyEffect as Pt, SearchPropertiesResponseSchema as Q, FacilityListResponseSchema as R, submitPaymentOption as Rt, DocumentResourceResponseSchema as S, bookInsuranceEffect as St, DocumentStatusUpdateRequestSchema as T, getBankTransferDetailsEffect as Tt, QuoteLineSchema$1 as U, V9_FACILITY_ATTRIBUTE_KEYS as Ut, PaymentScheduleItemSchema as V, defineV9PropertyHighlightSources as Vt, QuotePricesPayloadSchema as W, RegionListResponseSchema as X, RawVofficeObjectSchema as Y, RoomImageSchema as Z, CalendarDaySchema as _, V1_OPERATIONS as _t, parseQueryParameters as a, TileCollectionResponseSchema as at, CustomerUnitSummarySchema as b, addAdditionalServiceEffect as bt, V0OpenApiClient as c, TravelInsuranceBookingSchema as ct, makeV0OpenApiClientLive as d, UnitListItemSchema as dt, ServiceImageSchema as et, V1OpenApiClient as f, UnitListResponseSchema as ft, ApiEnvelopeBaseSchema as g, V1_BASE_URL as gt, makeV1OpenApiClientLive as h, UnitServicePriceSchema as ht, collectQueryParameters as i, SetupResponseSchema as it, ErgoCommonFieldsSchema as j, quoteEffect as jt, ErgoBankSchema as k, getStartDateSelectedAvailabilityEffect as kt, V0OpenApiClientError as l, TravelInsuranceBookingStoreRequestSchema as lt, makeV1OpenApiClientFetchLive as m, UnitResponseSchema as mt, makeV9CustomAttributeFilterCapabilities as n, ServiceListResponseSchema as nt, toQueryString as o, TileSchema as ot, V1OpenApiClientError as p, UnitOfferSchema as pt, QuoteServiceSchema as q, toBasicQueryInputs as r, SetupDataSchema as rt, applyVofficeFilterDerivedBasicQueryInputs as s, TileTagSchema as st, createWebsiteSDK as t, ServiceLimitSchema as tt, makeV0OpenApiClientFetchLive as u, UnitIdsResponseSchema as ut, CalendarResponseSchema$1 as v, VideoResponseSchema as vt, DocumentStatusSchema as w, createInsurancePreContractEffect as wt, DocumentCollectionResponseSchema as x, bookEffect as xt, CurrentMemberResponseSchema as y, decodeV1OperationResponse as yt, OnOfficeUnitCollectionResponseSchema as z, submitPaymentOptionEffect as zt };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AdditionalServiceLimitExceeded, AvailabilityGetInitialAvailabilityInput, AvailabilityGetInitialAvailabilityInput as AvailabilityGetInitialAvailabilityInput$1, AvailabilityGetInitialAvailabilityOutput, AvailabilityGetInitialAvailabilityOutput as AvailabilityGetInitialAvailabilityOutput$1, AvailabilityGetStartDateSelectedAvailabilityInput, AvailabilityGetStartDateSelectedAvailabilityInput as AvailabilityGetStartDateSelectedAvailabilityInput$1, AvailabilityGetStartDateSelectedAvailabilityOutput, AvailabilityGetStartDateSelectedAvailabilityOutput as AvailabilityGetStartDateSelectedAvailabilityOutput$1, AvailabilityService, BackendKind, BookingBookInput, BookingBookInput as BookingBookInput$1, BookingBookOutput, BookingBookOutput as BookingBookOutput$1, BookingPayment, BookingPaymentAlternative, BookingPaymentOption, BookingPaymentScheduleItem, BookingPaymentScheduleKind, BookingPaymentScheduleLine, BookingService, ContactService, ContactSubmitInput, ContactSubmitInput as ContactSubmitInput$1, ContactSubmitOutput, ContactSubmitOutput as ContactSubmitOutput$1, ContactSubmitValidationIssue, ContactSubmitValidationIssueCode, CoreSDKError, CoreSDKError as CMSError, CoreSDKError as CoreSDKError$1, CustomAttributeCatalog, CustomAttributeCatalogDefinitionInput, CustomAttributeCatalogInput, CustomAttributeCatalogSchema, CustomAttributeCategoryKey, CustomAttributeFilterCategoryKey, CustomAttributeFilterDefinition, CustomAttributeFilterDefinition as CustomAttributeFilterDefinition$1, CustomAttributeFilterExpression, CustomAttributeFilterLabel, CustomAttributeFilterNumericBounds, CustomAttributeFilterOption, CustomAttributeOverridesInput, CustomAttributeRegistry, CustomAttributeRegistrySnapshot, CustomAttributeRegistrySnapshot as CustomAttributeRegistrySnapshot$1, CustomAttributeSelection, DocumentsGetTermsAndPrivacyPolicyInput, DocumentsGetTermsAndPrivacyPolicyInput as DocumentsGetTermsAndPrivacyPolicyInput$1, DocumentsGetTermsAndPrivacyPolicyOutput, DocumentsGetTermsAndPrivacyPolicyOutput as DocumentsGetTermsAndPrivacyPolicyOutput$1, DocumentsService, FilterGetFiltersInput, FilterGetFiltersInput as FilterGetFiltersInput$1, FilterGetFiltersOutput, FilterGetFiltersOutput as FilterGetFiltersOutput$1, FilterService, GuestQuote, GuestQuoteInput, GuestQuoteInsurance, GuestQuoteResult, GuestQuoteSchema, GuestQuoteSelectionResult, GuestQuoteVoucher, InsuranceBookingOutput, InsuranceCustomerInformationInput, InsurancePaymentInformationInput, InsurancePaymentOptionOutput, InsurancePreContractOutput, InvalidAdditionalServiceQuantity, Locale, LocaleSchema, QuoteAddAdditionalServiceInput, QuoteAddAdditionalServiceOutput, QuoteBookInsuranceInput, QuoteBookInsuranceOutput, QuoteClearAdditionalServicesInput, QuoteClearAdditionalServicesOutput, QuoteCreateInsurancePreContractInput, QuoteCreateInsurancePreContractOutput, QuoteQuoteInput, QuoteQuoteInput as QuoteQuoteInput$1, QuoteQuoteOutput, QuoteQuoteOutput as QuoteQuoteOutput$1, QuoteRemoveAdditionalServiceInput, QuoteRemoveAdditionalServiceOutput, QuoteSelectCancellationPolicyInput, QuoteSelectCancellationPolicyOutput, QuoteSelectInsuranceInput, QuoteSelectInsuranceOutput, QuoteSelectInsurancePaymentInput, QuoteSelectInsurancePaymentOutput, QuoteService as QuoteService$1, RentalGetRentalsInput, RentalGetRentalsInput as RentalGetRentalsInput$1, RentalGetRentalsOutput, RentalGetRentalsOutput as RentalGetRentalsOutput$1, RentalHighlightPrioritizationKey, RentalHighlightPrioritizationKey as RentalHighlightPrioritizationKey$1, RentalPropertyHighlightPrioritizationKey, RentalPropertyHighlightPrioritizationKey as RentalPropertyHighlightPrioritizationKey$1, RentalScope, RentalService, ResolvedCustomAttribute, SearchSearchFieldOrderBy, SearchSearchFieldOrderBySchema, SearchSearchFieldSort, SearchSearchFieldSort as SearchSearchFieldSort$1, SearchSearchFieldSortSchema, SearchSearchInput, SearchSearchInput as SearchSearchInput$1, SearchSearchInputSchema, SearchSearchOutput, SearchSearchOutput as SearchSearchOutput$1, SearchSearchOutputSchema, SearchSearchPriceSort, SearchSearchPriceSortSchema, SearchSearchRandomSort, SearchSearchRandomSortSchema, SearchSearchRatingSort, SearchSearchRatingSortSchema, SearchSearchSort, SearchSearchSort as SearchSearchSort$1, SearchSearchSortSchema, SearchService, SearchSortDirection, SearchSortDirectionSchema, SelectableInsuranceOptionOutput, SelectedInsuranceInformationInput, SubmittableBookingPaymentOption, SubmittableBookingPaymentOption as SubmittableBookingPaymentOption$1, TranslationOverrides, TranslationOverrides as TranslationOverrides$1, UnknownAdditionalService, V10CoreConfig, V9OnlyCustomAttributeInput, defineCustomAttributes, defineCustomAttributesFromUnknown, fetchCustomAttributeCatalog, parseCustomAttributeCatalog, validateContactSubmitInput } from "@v-office/sdk-core";
|
|
1
|
+
import { AdditionalServiceLimitExceeded, AvailabilityGetInitialAvailabilityInput, AvailabilityGetInitialAvailabilityInput as AvailabilityGetInitialAvailabilityInput$1, AvailabilityGetInitialAvailabilityOutput, AvailabilityGetInitialAvailabilityOutput as AvailabilityGetInitialAvailabilityOutput$1, AvailabilityGetStartDateSelectedAvailabilityInput, AvailabilityGetStartDateSelectedAvailabilityInput as AvailabilityGetStartDateSelectedAvailabilityInput$1, AvailabilityGetStartDateSelectedAvailabilityOutput, AvailabilityGetStartDateSelectedAvailabilityOutput as AvailabilityGetStartDateSelectedAvailabilityOutput$1, AvailabilityService, BackendKind, BookingBankTransferDetails, BookingBankTransferDetails as BookingBankTransferDetails$1, BookingBookInput, BookingBookInput as BookingBookInput$1, BookingBookOutput, BookingBookOutput as BookingBookOutput$1, BookingPayment, BookingPaymentAlternative, BookingPaymentOption, BookingPaymentScheduleItem, BookingPaymentScheduleKind, BookingPaymentScheduleLine, BookingService, ContactService, ContactSubmitInput, ContactSubmitInput as ContactSubmitInput$1, ContactSubmitOutput, ContactSubmitOutput as ContactSubmitOutput$1, ContactSubmitValidationIssue, ContactSubmitValidationIssueCode, CoreSDKError, CoreSDKError as CMSError, CoreSDKError as CoreSDKError$1, CustomAttributeCatalog, CustomAttributeCatalogDefinitionInput, CustomAttributeCatalogInput, CustomAttributeCatalogSchema, CustomAttributeCategoryKey, CustomAttributeFilterCategoryKey, CustomAttributeFilterDefinition, CustomAttributeFilterDefinition as CustomAttributeFilterDefinition$1, CustomAttributeFilterExpression, CustomAttributeFilterLabel, CustomAttributeFilterNumericBounds, CustomAttributeFilterOption, CustomAttributeOverridesInput, CustomAttributeRegistry, CustomAttributeRegistrySnapshot, CustomAttributeRegistrySnapshot as CustomAttributeRegistrySnapshot$1, CustomAttributeSelection, DocumentsGetTermsAndPrivacyPolicyInput, DocumentsGetTermsAndPrivacyPolicyInput as DocumentsGetTermsAndPrivacyPolicyInput$1, DocumentsGetTermsAndPrivacyPolicyOutput, DocumentsGetTermsAndPrivacyPolicyOutput as DocumentsGetTermsAndPrivacyPolicyOutput$1, DocumentsService, FilterGetFiltersInput, FilterGetFiltersInput as FilterGetFiltersInput$1, FilterGetFiltersOutput, FilterGetFiltersOutput as FilterGetFiltersOutput$1, FilterService, GuestQuote, GuestQuoteInput, GuestQuoteInsurance, GuestQuoteResult, GuestQuoteSchema, GuestQuoteSelectionResult, GuestQuoteVoucher, InsuranceBookingOutput, InsuranceCustomerInformationInput, InsurancePaymentInformationInput, InsurancePaymentOptionOutput, InsurancePreContractOutput, InvalidAdditionalServiceQuantity, Locale, LocaleSchema, QuoteAddAdditionalServiceInput, QuoteAddAdditionalServiceOutput, QuoteBookInsuranceInput, QuoteBookInsuranceOutput, QuoteClearAdditionalServicesInput, QuoteClearAdditionalServicesOutput, QuoteCreateInsurancePreContractInput, QuoteCreateInsurancePreContractOutput, QuoteQuoteInput, QuoteQuoteInput as QuoteQuoteInput$1, QuoteQuoteOutput, QuoteQuoteOutput as QuoteQuoteOutput$1, QuoteRemoveAdditionalServiceInput, QuoteRemoveAdditionalServiceOutput, QuoteSelectCancellationPolicyInput, QuoteSelectCancellationPolicyOutput, QuoteSelectInsuranceInput, QuoteSelectInsuranceOutput, QuoteSelectInsurancePaymentInput, QuoteSelectInsurancePaymentOutput, QuoteService as QuoteService$1, RentalGetRentalsInput, RentalGetRentalsInput as RentalGetRentalsInput$1, RentalGetRentalsOutput, RentalGetRentalsOutput as RentalGetRentalsOutput$1, RentalHighlightPrioritizationKey, RentalHighlightPrioritizationKey as RentalHighlightPrioritizationKey$1, RentalPropertyHighlightPrioritizationKey, RentalPropertyHighlightPrioritizationKey as RentalPropertyHighlightPrioritizationKey$1, RentalScope, RentalService, ResolvedCustomAttribute, SearchSearchFieldOrderBy, SearchSearchFieldOrderBySchema, SearchSearchFieldSort, SearchSearchFieldSort as SearchSearchFieldSort$1, SearchSearchFieldSortSchema, SearchSearchInput, SearchSearchInput as SearchSearchInput$1, SearchSearchInputSchema, SearchSearchOutput, SearchSearchOutput as SearchSearchOutput$1, SearchSearchOutputSchema, SearchSearchPriceSort, SearchSearchPriceSortSchema, SearchSearchRandomSort, SearchSearchRandomSortSchema, SearchSearchRatingSort, SearchSearchRatingSortSchema, SearchSearchSort, SearchSearchSort as SearchSearchSort$1, SearchSearchSortSchema, SearchService, SearchSortDirection, SearchSortDirectionSchema, SelectableInsuranceOptionOutput, SelectedInsuranceInformationInput, SubmittableBookingPaymentOption, SubmittableBookingPaymentOption as SubmittableBookingPaymentOption$1, TranslationOverrides, TranslationOverrides as TranslationOverrides$1, UnknownAdditionalService, V10CoreConfig, V9OnlyCustomAttributeInput, defineCustomAttributes, defineCustomAttributesFromUnknown, fetchCustomAttributeCatalog, parseCustomAttributeCatalog, validateContactSubmitInput } from "@v-office/sdk-core";
|
|
2
2
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
3
3
|
import { HttpClient } from "effect/unstable/http";
|
|
4
4
|
//#region src/legacy-v9/property-highlight-sources.d.ts
|
|
@@ -90,6 +90,15 @@ type WebsiteSDKV10Static = WebsiteSDKSharedStatic & {
|
|
|
90
90
|
readonly documents: {
|
|
91
91
|
readonly getTermsAndPrivacyPolicy: (input: DocumentsGetTermsAndPrivacyPolicyInput$1) => Promise<DocumentsGetTermsAndPrivacyPolicyOutput$1>;
|
|
92
92
|
};
|
|
93
|
+
readonly payment: {
|
|
94
|
+
/**
|
|
95
|
+
* The bank account a booking's `bank_transfer` payment options will show, read from
|
|
96
|
+
* the PMS's primary document settings. At most one entry; creates no booking. Empty
|
|
97
|
+
* when the account offers no bank transfer. Not available on v9: the v9 hub exposes bank details only inside a booking
|
|
98
|
+
* response.
|
|
99
|
+
*/
|
|
100
|
+
readonly getBankTransferDetails: () => Promise<ReadonlyArray<BookingBankTransferDetails$1>>;
|
|
101
|
+
};
|
|
93
102
|
};
|
|
94
103
|
type WebsiteSDKSharedLive = {
|
|
95
104
|
readonly contact: {
|
|
@@ -292,7 +301,7 @@ export declare const getRentalsEffect: (input: RentalGetRentalsInput$1) => Effec
|
|
|
292
301
|
}[];
|
|
293
302
|
};
|
|
294
303
|
};
|
|
295
|
-
}[],
|
|
304
|
+
}[], CoreSDKError$1, RentalService>;
|
|
296
305
|
export declare const getFiltersEffect: (input: FilterGetFiltersInput$1) => Effect.Effect<readonly ({
|
|
297
306
|
readonly searchParameterQueryKey: string;
|
|
298
307
|
readonly label: string;
|
|
@@ -321,7 +330,7 @@ export declare const getFiltersEffect: (input: FilterGetFiltersInput$1) => Effec
|
|
|
321
330
|
readonly value: string;
|
|
322
331
|
readonly label: string;
|
|
323
332
|
}[];
|
|
324
|
-
})[],
|
|
333
|
+
})[], CoreSDKError$1, FilterService>;
|
|
325
334
|
export declare const getTermsAndPrivacyPolicyEffect: (input: DocumentsGetTermsAndPrivacyPolicyInput$1) => Effect.Effect<{
|
|
326
335
|
readonly terms?: {
|
|
327
336
|
readonly subject: string;
|
|
@@ -331,7 +340,13 @@ export declare const getTermsAndPrivacyPolicyEffect: (input: DocumentsGetTermsAn
|
|
|
331
340
|
readonly subject: string;
|
|
332
341
|
readonly data: string;
|
|
333
342
|
};
|
|
334
|
-
},
|
|
343
|
+
}, CoreSDKError$1, DocumentsService>;
|
|
344
|
+
export declare const getBankTransferDetailsEffect: () => Effect.Effect<readonly {
|
|
345
|
+
readonly holder?: string;
|
|
346
|
+
readonly iban: string;
|
|
347
|
+
readonly swiftOrBic?: string;
|
|
348
|
+
readonly institution?: string;
|
|
349
|
+
}[], CoreSDKError$1, BookingService>;
|
|
335
350
|
export declare const searchEffect: (input: SearchSearchInput$1) => Effect.Effect<{
|
|
336
351
|
readonly items: readonly {
|
|
337
352
|
readonly id: string;
|
|
@@ -491,7 +506,7 @@ export declare const searchEffect: (input: SearchSearchInput$1) => Effect.Effect
|
|
|
491
506
|
readonly hasNextPage: boolean;
|
|
492
507
|
readonly nextCursor?: string;
|
|
493
508
|
};
|
|
494
|
-
},
|
|
509
|
+
}, CoreSDKError$1, SearchService>;
|
|
495
510
|
export declare const getInitialAvailabilityEffect: (input: AvailabilityGetInitialAvailabilityInput$1) => Effect.Effect<{
|
|
496
511
|
readonly calendarDays: {
|
|
497
512
|
readonly [x: string]: {
|
|
@@ -505,7 +520,7 @@ export declare const getInitialAvailabilityEffect: (input: AvailabilityGetInitia
|
|
|
505
520
|
readonly minPersons: number | null;
|
|
506
521
|
readonly maxPersons: number | null;
|
|
507
522
|
readonly maxAdults: number | null;
|
|
508
|
-
},
|
|
523
|
+
}, CoreSDKError$1, AvailabilityService>;
|
|
509
524
|
export declare const getStartDateSelectedAvailabilityEffect: (input: AvailabilityGetStartDateSelectedAvailabilityInput$1) => Effect.Effect<{
|
|
510
525
|
readonly calendarDays: {
|
|
511
526
|
readonly [x: string]: {
|
|
@@ -515,15 +530,15 @@ export declare const getStartDateSelectedAvailabilityEffect: (input: Availabilit
|
|
|
515
530
|
readonly tooltip: string | null;
|
|
516
531
|
};
|
|
517
532
|
};
|
|
518
|
-
},
|
|
519
|
-
export declare const quoteEffect: (input: QuoteQuoteInput$1) => Effect.Effect<import("@v-office/sdk-core").GuestQuoteResult,
|
|
520
|
-
export declare const addAdditionalServiceEffect: (input: QuoteAddAdditionalServiceInput) => Effect.Effect<import("@v-office/sdk-core").GuestQuoteSelectionResult,
|
|
521
|
-
export declare const removeAdditionalServiceEffect: (input: QuoteRemoveAdditionalServiceInput) => Effect.Effect<import("@v-office/sdk-core").GuestQuoteSelectionResult,
|
|
522
|
-
export declare const clearAdditionalServicesEffect: (input: QuoteClearAdditionalServicesInput) => Effect.Effect<import("@v-office/sdk-core").GuestQuoteSelectionResult,
|
|
523
|
-
export declare const selectCancellationPolicyEffect: (input: QuoteSelectCancellationPolicyInput) => Effect.Effect<import("@v-office/sdk-core").GuestQuoteSelectionResult,
|
|
524
|
-
export declare const selectInsuranceEffect: (input: QuoteSelectInsuranceInput) => Effect.Effect<import("@v-office/sdk-core").GuestQuote,
|
|
525
|
-
export declare const createInsurancePreContractEffect: (input: QuoteCreateInsurancePreContractInput) => Effect.Effect<import("@v-office/sdk-core").GuestQuote,
|
|
526
|
-
export declare const selectInsurancePaymentEffect: (input: QuoteSelectInsurancePaymentInput) => Effect.Effect<import("@v-office/sdk-core").GuestQuote,
|
|
533
|
+
}, CoreSDKError$1, AvailabilityService>;
|
|
534
|
+
export declare const quoteEffect: (input: QuoteQuoteInput$1) => Effect.Effect<import("@v-office/sdk-core").GuestQuoteResult, CoreSDKError$1, QuoteService$1>;
|
|
535
|
+
export declare const addAdditionalServiceEffect: (input: QuoteAddAdditionalServiceInput) => Effect.Effect<import("@v-office/sdk-core").GuestQuoteSelectionResult, CoreSDKError$1, QuoteService$1>;
|
|
536
|
+
export declare const removeAdditionalServiceEffect: (input: QuoteRemoveAdditionalServiceInput) => Effect.Effect<import("@v-office/sdk-core").GuestQuoteSelectionResult, CoreSDKError$1, QuoteService$1>;
|
|
537
|
+
export declare const clearAdditionalServicesEffect: (input: QuoteClearAdditionalServicesInput) => Effect.Effect<import("@v-office/sdk-core").GuestQuoteSelectionResult, CoreSDKError$1, QuoteService$1>;
|
|
538
|
+
export declare const selectCancellationPolicyEffect: (input: QuoteSelectCancellationPolicyInput) => Effect.Effect<import("@v-office/sdk-core").GuestQuoteSelectionResult, CoreSDKError$1, QuoteService$1>;
|
|
539
|
+
export declare const selectInsuranceEffect: (input: QuoteSelectInsuranceInput) => Effect.Effect<import("@v-office/sdk-core").GuestQuote, CoreSDKError$1, QuoteService$1>;
|
|
540
|
+
export declare const createInsurancePreContractEffect: (input: QuoteCreateInsurancePreContractInput) => Effect.Effect<import("@v-office/sdk-core").GuestQuote, CoreSDKError$1, QuoteService$1>;
|
|
541
|
+
export declare const selectInsurancePaymentEffect: (input: QuoteSelectInsurancePaymentInput) => Effect.Effect<import("@v-office/sdk-core").GuestQuote, CoreSDKError$1, QuoteService$1>;
|
|
527
542
|
export declare const bookInsuranceEffect: (input: QuoteBookInsuranceInput) => Effect.Effect<{
|
|
528
543
|
readonly kind: "none_selected";
|
|
529
544
|
} | {
|
|
@@ -535,9 +550,9 @@ export declare const bookInsuranceEffect: (input: QuoteBookInsuranceInput) => Ef
|
|
|
535
550
|
readonly label: string;
|
|
536
551
|
readonly url: string;
|
|
537
552
|
}[];
|
|
538
|
-
},
|
|
539
|
-
export declare const bookEffect: (input: BookingBookInput$1) => Effect.Effect<import("@v-office/sdk-core").BookingBookOutput,
|
|
540
|
-
export declare const submitContactEffect: (input: ContactSubmitInput$1) => Effect.Effect<void,
|
|
553
|
+
}, CoreSDKError$1, QuoteService$1>;
|
|
554
|
+
export declare const bookEffect: (input: BookingBookInput$1) => Effect.Effect<import("@v-office/sdk-core").BookingBookOutput, CoreSDKError$1, BookingService>;
|
|
555
|
+
export declare const submitContactEffect: (input: ContactSubmitInput$1) => Effect.Effect<void, CoreSDKError$1, ContactService>;
|
|
541
556
|
//#endregion
|
|
542
557
|
//#region codegen/v9/v0/generated/openapi-types.d.ts
|
|
543
558
|
interface components$1 {
|
|
@@ -7503,4 +7518,4 @@ export type RentalRentalsOutput = RentalGetRentalsOutput$1[number];
|
|
|
7503
7518
|
export type RentalSearchInput = SearchSearchInput$1;
|
|
7504
7519
|
export type RentalSearchOutput = SearchSearchOutput$1;
|
|
7505
7520
|
//#endregion
|
|
7506
|
-
export { AdditionalServiceLimitExceeded, type AvailabilityGetInitialAvailabilityInput, type AvailabilityGetInitialAvailabilityOutput, type AvailabilityGetStartDateSelectedAvailabilityInput, type AvailabilityGetStartDateSelectedAvailabilityOutput, type BackendKind, type BookingBookInput, type BookingBookOutput, type BookingPayment, type BookingPaymentAlternative, type BookingPaymentOption, type BookingPaymentScheduleItem, type BookingPaymentScheduleKind, type BookingPaymentScheduleLine, CMSError, type ContactSubmitInput, type ContactSubmitOutput, type ContactSubmitValidationIssue, type ContactSubmitValidationIssueCode, CoreSDKError, type CustomAttributeCatalog, type CustomAttributeCatalogDefinitionInput, type CustomAttributeCatalogInput, CustomAttributeCatalogSchema, type CustomAttributeCategoryKey, type CustomAttributeFilterCategoryKey, type CustomAttributeFilterDefinition, type CustomAttributeFilterExpression, type CustomAttributeFilterLabel, type CustomAttributeFilterNumericBounds, type CustomAttributeFilterOption, type CustomAttributeOverridesInput, type CustomAttributeRegistry, type CustomAttributeRegistrySnapshot, type CustomAttributeSelection, type CustomDataAttribute, type DataAttribute, type DocumentsGetTermsAndPrivacyPolicyInput, type DocumentsGetTermsAndPrivacyPolicyOutput, type FilterGetFiltersInput, type FilterGetFiltersOutput, type GeoLocation, type GuestQuote, type GuestQuoteInput, type GuestQuoteInsurance, type GuestQuoteResult, GuestQuoteSchema, type GuestQuoteSelectionResult, type GuestQuoteVoucher, type ImageData, type InsuranceBookingOutput, type InsuranceCustomerInformationInput, type InsurancePaymentInformationInput, type InsurancePaymentOptionOutput, type InsurancePreContractOutput, InvalidAdditionalServiceQuantity, type KnownVofficeFacilityData, type KnownVofficeFacilityDataAttribute, type KnownVofficeFeedbackData, type KnownVofficeFeedbackDataAttribute, type KnownVofficeImageData, type KnownVofficeImageDataAttribute, type KnownVofficeOfferData, type KnownVofficeOfferDataAttribute, type KnownVofficePriceData, type KnownVofficePriceDataAttribute, type KnownVofficeRatingData, type KnownVofficeRatingDataAttribute, type KnownVofficeServiceData, type KnownVofficeServiceDataAttribute, type KnownVofficeTotalRatingData, type KnownVofficeTotalRatingDataAttribute, type KnownVofficeUnitData, type KnownVofficeUnitDataAttribute, type Locale, LocaleSchema, type ParsedJsonData, type ParsedVofficeFacilityData, type ParsedVofficeFeedbackData, type ParsedVofficeImageData, type ParsedVofficeOfferData, type ParsedVofficePriceData, type ParsedVofficeRatingData, type ParsedVofficeServiceData, type ParsedVofficeTotalRatingData, type ParsedVofficeUnitData, type QuoteQuoteInput, type QuoteQuoteOutput, type RentalGetRentalsInput, type RentalGetRentalsOutput, type RentalHighlightPrioritizationKey, type RentalPropertyHighlightPrioritizationKey, type ResolvedCustomAttribute, type ResolvedV9PropertyHighlightSource, type SearchSearchFieldOrderBy, SearchSearchFieldOrderBySchema, type SearchSearchFieldSort, SearchSearchFieldSortSchema, type SearchSearchInput, SearchSearchInputSchema, type SearchSearchOutput, SearchSearchOutputSchema, type SearchSearchPriceSort, SearchSearchPriceSortSchema, type SearchSearchRandomSort, SearchSearchRandomSortSchema, type SearchSearchRatingSort, SearchSearchRatingSortSchema, type SearchSearchSort, SearchSearchSortSchema, type SearchSortDirection, SearchSortDirectionSchema, type SelectableInsuranceOptionOutput, type SelectedInsuranceInformationInput, type SubmittableBookingPaymentOption, type TranslationOverrides, UnknownAdditionalService, type V0OpenApiClientOptions, type V0OpenApiOperationId, type V0OpenApiOperationRequest, type V0OpenApiOperationResponse, type V1OpenApiClientOptions, type components as V1OpenApiComponents, type V1OpenApiOperationId, type V1OpenApiOperationRequest, type V1OpenApiOperationResponse, type operations as V1OpenApiOperations, type paths as V1OpenApiPaths, type V9OnlyCustomAttributeInput, type V9PropertyHighlightDataAttribute, type V9PropertyHighlightSourceInput, type V9PropertyHighlightSourceRegistry, type V9PropertyHighlightSourcesInput, type V9SearchSearchInput, type V9SearchSearchSort, type VofficeFacilityDataAttribute, type VofficeFacilityDataAttributes, type VofficeFeedbackDataAttribute, type VofficeFeedbackDataAttributes, type VofficeImageDataAttribute, type VofficeImageDataAttributes, type VofficeOfferDataAttribute, type VofficeOfferDataAttributes, type VofficePriceDataAttribute, type VofficePriceDataAttributes, type VofficeRatingDataAttribute, type VofficeRatingDataAttributes, type VofficeServiceDataAttribute, type VofficeServiceDataAttributes, type VofficeTotalRatingDataAttribute, type VofficeTotalRatingDataAttributes, type VofficeUnitDataAttribute, type VofficeUnitDataAttributes, type WebsiteSDK, type WebsiteSDKConfig, type WebsiteSDKOptions, type WebsiteSDKSharedLive, type WebsiteSDKSharedStatic, type WebsiteSDKV10, type WebsiteSDKV10Live, type WebsiteSDKV10Static, type WebsiteSDKV9, type WebsiteSDKV9Live, defineWebsiteSDKOptions as defineCMSSDKOptions, defineCustomAttributes, defineCustomAttributesFromUnknown, fetchCustomAttributeCatalog, parseCustomAttributeCatalog, validateContactSubmitInput };
|
|
7521
|
+
export { AdditionalServiceLimitExceeded, type AvailabilityGetInitialAvailabilityInput, type AvailabilityGetInitialAvailabilityOutput, type AvailabilityGetStartDateSelectedAvailabilityInput, type AvailabilityGetStartDateSelectedAvailabilityOutput, type BackendKind, type BookingBankTransferDetails, type BookingBookInput, type BookingBookOutput, type BookingPayment, type BookingPaymentAlternative, type BookingPaymentOption, type BookingPaymentScheduleItem, type BookingPaymentScheduleKind, type BookingPaymentScheduleLine, CMSError, type ContactSubmitInput, type ContactSubmitOutput, type ContactSubmitValidationIssue, type ContactSubmitValidationIssueCode, CoreSDKError, type CustomAttributeCatalog, type CustomAttributeCatalogDefinitionInput, type CustomAttributeCatalogInput, CustomAttributeCatalogSchema, type CustomAttributeCategoryKey, type CustomAttributeFilterCategoryKey, type CustomAttributeFilterDefinition, type CustomAttributeFilterExpression, type CustomAttributeFilterLabel, type CustomAttributeFilterNumericBounds, type CustomAttributeFilterOption, type CustomAttributeOverridesInput, type CustomAttributeRegistry, type CustomAttributeRegistrySnapshot, type CustomAttributeSelection, type CustomDataAttribute, type DataAttribute, type DocumentsGetTermsAndPrivacyPolicyInput, type DocumentsGetTermsAndPrivacyPolicyOutput, type FilterGetFiltersInput, type FilterGetFiltersOutput, type GeoLocation, type GuestQuote, type GuestQuoteInput, type GuestQuoteInsurance, type GuestQuoteResult, GuestQuoteSchema, type GuestQuoteSelectionResult, type GuestQuoteVoucher, type ImageData, type InsuranceBookingOutput, type InsuranceCustomerInformationInput, type InsurancePaymentInformationInput, type InsurancePaymentOptionOutput, type InsurancePreContractOutput, InvalidAdditionalServiceQuantity, type KnownVofficeFacilityData, type KnownVofficeFacilityDataAttribute, type KnownVofficeFeedbackData, type KnownVofficeFeedbackDataAttribute, type KnownVofficeImageData, type KnownVofficeImageDataAttribute, type KnownVofficeOfferData, type KnownVofficeOfferDataAttribute, type KnownVofficePriceData, type KnownVofficePriceDataAttribute, type KnownVofficeRatingData, type KnownVofficeRatingDataAttribute, type KnownVofficeServiceData, type KnownVofficeServiceDataAttribute, type KnownVofficeTotalRatingData, type KnownVofficeTotalRatingDataAttribute, type KnownVofficeUnitData, type KnownVofficeUnitDataAttribute, type Locale, LocaleSchema, type ParsedJsonData, type ParsedVofficeFacilityData, type ParsedVofficeFeedbackData, type ParsedVofficeImageData, type ParsedVofficeOfferData, type ParsedVofficePriceData, type ParsedVofficeRatingData, type ParsedVofficeServiceData, type ParsedVofficeTotalRatingData, type ParsedVofficeUnitData, type QuoteQuoteInput, type QuoteQuoteOutput, type RentalGetRentalsInput, type RentalGetRentalsOutput, type RentalHighlightPrioritizationKey, type RentalPropertyHighlightPrioritizationKey, type ResolvedCustomAttribute, type ResolvedV9PropertyHighlightSource, type SearchSearchFieldOrderBy, SearchSearchFieldOrderBySchema, type SearchSearchFieldSort, SearchSearchFieldSortSchema, type SearchSearchInput, SearchSearchInputSchema, type SearchSearchOutput, SearchSearchOutputSchema, type SearchSearchPriceSort, SearchSearchPriceSortSchema, type SearchSearchRandomSort, SearchSearchRandomSortSchema, type SearchSearchRatingSort, SearchSearchRatingSortSchema, type SearchSearchSort, SearchSearchSortSchema, type SearchSortDirection, SearchSortDirectionSchema, type SelectableInsuranceOptionOutput, type SelectedInsuranceInformationInput, type SubmittableBookingPaymentOption, type TranslationOverrides, UnknownAdditionalService, type V0OpenApiClientOptions, type V0OpenApiOperationId, type V0OpenApiOperationRequest, type V0OpenApiOperationResponse, type V1OpenApiClientOptions, type components as V1OpenApiComponents, type V1OpenApiOperationId, type V1OpenApiOperationRequest, type V1OpenApiOperationResponse, type operations as V1OpenApiOperations, type paths as V1OpenApiPaths, type V9OnlyCustomAttributeInput, type V9PropertyHighlightDataAttribute, type V9PropertyHighlightSourceInput, type V9PropertyHighlightSourceRegistry, type V9PropertyHighlightSourcesInput, type V9SearchSearchInput, type V9SearchSearchSort, type VofficeFacilityDataAttribute, type VofficeFacilityDataAttributes, type VofficeFeedbackDataAttribute, type VofficeFeedbackDataAttributes, type VofficeImageDataAttribute, type VofficeImageDataAttributes, type VofficeOfferDataAttribute, type VofficeOfferDataAttributes, type VofficePriceDataAttribute, type VofficePriceDataAttributes, type VofficeRatingDataAttribute, type VofficeRatingDataAttributes, type VofficeServiceDataAttribute, type VofficeServiceDataAttributes, type VofficeTotalRatingDataAttribute, type VofficeTotalRatingDataAttributes, type VofficeUnitDataAttribute, type VofficeUnitDataAttributes, type WebsiteSDK, type WebsiteSDKConfig, type WebsiteSDKOptions, type WebsiteSDKSharedLive, type WebsiteSDKSharedStatic, type WebsiteSDKV10, type WebsiteSDKV10Live, type WebsiteSDKV10Static, type WebsiteSDKV9, type WebsiteSDKV9Live, defineWebsiteSDKOptions as defineCMSSDKOptions, defineCustomAttributes, defineCustomAttributesFromUnknown, fetchCustomAttributeCatalog, parseCustomAttributeCatalog, validateContactSubmitInput };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as ServiceBeonDataSchema, A as ErgoBookRequestSchema, At as
|
|
1
|
+
import { $ as ServiceBeonDataSchema, A as ErgoBookRequestSchema, At as getTermsAndPrivacyPolicyEffect, B as OnOfficeUnitSchema, Bt as defineWebsiteSDKOptions, C as DocumentResourceSchema, Ct as clearAdditionalServicesEffect, D as DocumentTypeSchema, Dt as getInitialAvailabilityEffect, E as DocumentSummarySchema, Et as getFiltersEffect, F as ErgoPolicyNumberRequestSchema, Ft as selectInsuranceEffect, G as QuotePricesResponseSchema, H as PaymentScheduleSchema, Ht as defineV9PropertyHighlightSourcesFromUnknown, I as ErgoReadPreContractRequestSchema, It as selectInsurancePaymentEffect, J as RawObjectResponseSchema, K as QuoteSchema, L as ErgoTripAndCustomerRequestSchema, Lt as submitContactEffect, M as ErgoCreatePreContractRequestSchema, Mt as removeAdditionalServiceEffect, N as ErgoPersonSchema, Nt as searchEffect, O as ErgoAddressSchema, Ot as getRentalsEffect, P as ErgoPlanSearchRequestSchema, Pt as selectCancellationPolicyEffect, Q as SearchPropertiesResponseSchema, R as FacilityListResponseSchema, Rt as submitPaymentOption, S as DocumentResourceResponseSchema, St as bookInsuranceEffect, T as DocumentStatusUpdateRequestSchema, Tt as getBankTransferDetailsEffect, U as QuoteLineSchema, V as PaymentScheduleItemSchema, Vt as defineV9PropertyHighlightSources, W as QuotePricesPayloadSchema, X as RegionListResponseSchema, Y as RawVofficeObjectSchema, Z as RoomImageSchema, _ as CalendarDaySchema, _t as V1_OPERATIONS, at as TileCollectionResponseSchema, b as CustomerUnitSummarySchema, bt as addAdditionalServiceEffect, c as V0OpenApiClient, ct as TravelInsuranceBookingSchema, d as makeV0OpenApiClientLive, dt as UnitListItemSchema, et as ServiceImageSchema, f as V1OpenApiClient, ft as UnitListResponseSchema, g as ApiEnvelopeBaseSchema, gt as V1_BASE_URL, h as makeV1OpenApiClientLive, ht as UnitServicePriceSchema, it as SetupResponseSchema, j as ErgoCommonFieldsSchema, jt as quoteEffect, k as ErgoBankSchema, kt as getStartDateSelectedAvailabilityEffect, l as V0OpenApiClientError, lt as TravelInsuranceBookingStoreRequestSchema, m as makeV1OpenApiClientFetchLive, mt as UnitResponseSchema, nt as ServiceListResponseSchema, ot as TileSchema, p as V1OpenApiClientError, pt as UnitOfferSchema, q as QuoteServiceSchema, rt as SetupDataSchema, st as TileTagSchema, t as createWebsiteSDK, tt as ServiceLimitSchema, u as makeV0OpenApiClientFetchLive, ut as UnitIdsResponseSchema, v as CalendarResponseSchema, vt as VideoResponseSchema, w as DocumentStatusSchema, wt as createInsurancePreContractEffect, x as DocumentCollectionResponseSchema, xt as bookEffect, y as CurrentMemberResponseSchema, yt as decodeV1OperationResponse, z as OnOfficeUnitCollectionResponseSchema, zt as submitPaymentOptionEffect } from "./client-dWCukmLr.mjs";
|
|
2
2
|
import { AdditionalServiceLimitExceeded, CoreSDKError, CoreSDKError as CMSError, CustomAttributeCatalogSchema, GuestQuoteSchema, InvalidAdditionalServiceQuantity, LocaleSchema, SearchSearchFieldOrderBySchema, SearchSearchFieldSortSchema, SearchSearchInputSchema, SearchSearchOutputSchema, SearchSearchPriceSortSchema, SearchSearchRandomSortSchema, SearchSearchRatingSortSchema, SearchSearchSortSchema, SearchSortDirectionSchema, UnknownAdditionalService, defineCustomAttributes, defineCustomAttributesFromUnknown, fetchCustomAttributeCatalog, parseCustomAttributeCatalog, validateContactSubmitInput } from "@v-office/sdk-core";
|
|
3
3
|
//#region codegen/v9/heuristic-generation/public-api.ts
|
|
4
4
|
const customDataAttribute = (name) => name;
|
|
@@ -13,4 +13,4 @@ const defineVofficeOfferDataAttributes = defineDataAttributes();
|
|
|
13
13
|
const defineVofficeRatingDataAttributes = defineDataAttributes();
|
|
14
14
|
const defineVofficeTotalRatingDataAttributes = defineDataAttributes();
|
|
15
15
|
//#endregion
|
|
16
|
-
export { AdditionalServiceLimitExceeded, ApiEnvelopeBaseSchema, CMSError, CalendarDaySchema, CalendarResponseSchema, CoreSDKError, CurrentMemberResponseSchema, CustomAttributeCatalogSchema, CustomerUnitSummarySchema, DocumentCollectionResponseSchema, DocumentResourceResponseSchema, DocumentResourceSchema, DocumentStatusSchema, DocumentStatusUpdateRequestSchema, DocumentSummarySchema, DocumentTypeSchema, ErgoAddressSchema, ErgoBankSchema, ErgoBookRequestSchema, ErgoCommonFieldsSchema, ErgoCreatePreContractRequestSchema, ErgoPersonSchema, ErgoPlanSearchRequestSchema, ErgoPolicyNumberRequestSchema, ErgoReadPreContractRequestSchema, ErgoTripAndCustomerRequestSchema, FacilityListResponseSchema, GuestQuoteSchema, InvalidAdditionalServiceQuantity, LocaleSchema, OnOfficeUnitCollectionResponseSchema, OnOfficeUnitSchema, PaymentScheduleItemSchema, PaymentScheduleSchema, QuoteLineSchema, QuotePricesPayloadSchema, QuotePricesResponseSchema, QuoteSchema, QuoteServiceSchema, RawObjectResponseSchema, RawVofficeObjectSchema, RegionListResponseSchema, RoomImageSchema, SearchPropertiesResponseSchema, SearchSearchFieldOrderBySchema, SearchSearchFieldSortSchema, SearchSearchInputSchema, SearchSearchOutputSchema, SearchSearchPriceSortSchema, SearchSearchRandomSortSchema, SearchSearchRatingSortSchema, SearchSearchSortSchema, SearchSortDirectionSchema, ServiceBeonDataSchema, ServiceImageSchema, ServiceLimitSchema, ServiceListResponseSchema, SetupDataSchema, SetupResponseSchema, TileCollectionResponseSchema, TileSchema, TileTagSchema, TravelInsuranceBookingSchema, TravelInsuranceBookingStoreRequestSchema, UnitIdsResponseSchema, UnitListItemSchema, UnitListResponseSchema, UnitOfferSchema, UnitResponseSchema, UnitServicePriceSchema, UnknownAdditionalService, V0OpenApiClient, V0OpenApiClientError, V1OpenApiClient, V1OpenApiClientError, V1_BASE_URL, V1_OPERATIONS, VideoResponseSchema, addAdditionalServiceEffect, bookEffect, bookInsuranceEffect, clearAdditionalServicesEffect, createInsurancePreContractEffect, createWebsiteSDK, customDataAttribute, decodeV1OperationResponse, defineWebsiteSDKOptions as defineCMSSDKOptions, defineWebsiteSDKOptions, defineCustomAttributes, defineCustomAttributesFromUnknown, defineDataAttributes, defineV9PropertyHighlightSources, defineV9PropertyHighlightSourcesFromUnknown, defineVofficeFacilityDataAttributes, defineVofficeFeedbackDataAttributes, defineVofficeImageDataAttributes, defineVofficeOfferDataAttributes, defineVofficePriceDataAttributes, defineVofficeRatingDataAttributes, defineVofficeServiceDataAttributes, defineVofficeTotalRatingDataAttributes, defineVofficeUnitDataAttributes, fetchCustomAttributeCatalog, getFiltersEffect, getInitialAvailabilityEffect, getRentalsEffect, getStartDateSelectedAvailabilityEffect, getTermsAndPrivacyPolicyEffect, makeV0OpenApiClientFetchLive, makeV0OpenApiClientLive, makeV1OpenApiClientFetchLive, makeV1OpenApiClientLive, parseCustomAttributeCatalog, quoteEffect, removeAdditionalServiceEffect, searchEffect, selectCancellationPolicyEffect, selectInsuranceEffect, selectInsurancePaymentEffect, submitContactEffect, submitPaymentOption, submitPaymentOptionEffect, validateContactSubmitInput };
|
|
16
|
+
export { AdditionalServiceLimitExceeded, ApiEnvelopeBaseSchema, CMSError, CalendarDaySchema, CalendarResponseSchema, CoreSDKError, CurrentMemberResponseSchema, CustomAttributeCatalogSchema, CustomerUnitSummarySchema, DocumentCollectionResponseSchema, DocumentResourceResponseSchema, DocumentResourceSchema, DocumentStatusSchema, DocumentStatusUpdateRequestSchema, DocumentSummarySchema, DocumentTypeSchema, ErgoAddressSchema, ErgoBankSchema, ErgoBookRequestSchema, ErgoCommonFieldsSchema, ErgoCreatePreContractRequestSchema, ErgoPersonSchema, ErgoPlanSearchRequestSchema, ErgoPolicyNumberRequestSchema, ErgoReadPreContractRequestSchema, ErgoTripAndCustomerRequestSchema, FacilityListResponseSchema, GuestQuoteSchema, InvalidAdditionalServiceQuantity, LocaleSchema, OnOfficeUnitCollectionResponseSchema, OnOfficeUnitSchema, PaymentScheduleItemSchema, PaymentScheduleSchema, QuoteLineSchema, QuotePricesPayloadSchema, QuotePricesResponseSchema, QuoteSchema, QuoteServiceSchema, RawObjectResponseSchema, RawVofficeObjectSchema, RegionListResponseSchema, RoomImageSchema, SearchPropertiesResponseSchema, SearchSearchFieldOrderBySchema, SearchSearchFieldSortSchema, SearchSearchInputSchema, SearchSearchOutputSchema, SearchSearchPriceSortSchema, SearchSearchRandomSortSchema, SearchSearchRatingSortSchema, SearchSearchSortSchema, SearchSortDirectionSchema, ServiceBeonDataSchema, ServiceImageSchema, ServiceLimitSchema, ServiceListResponseSchema, SetupDataSchema, SetupResponseSchema, TileCollectionResponseSchema, TileSchema, TileTagSchema, TravelInsuranceBookingSchema, TravelInsuranceBookingStoreRequestSchema, UnitIdsResponseSchema, UnitListItemSchema, UnitListResponseSchema, UnitOfferSchema, UnitResponseSchema, UnitServicePriceSchema, UnknownAdditionalService, V0OpenApiClient, V0OpenApiClientError, V1OpenApiClient, V1OpenApiClientError, V1_BASE_URL, V1_OPERATIONS, VideoResponseSchema, addAdditionalServiceEffect, bookEffect, bookInsuranceEffect, clearAdditionalServicesEffect, createInsurancePreContractEffect, createWebsiteSDK, customDataAttribute, decodeV1OperationResponse, defineWebsiteSDKOptions as defineCMSSDKOptions, defineWebsiteSDKOptions, defineCustomAttributes, defineCustomAttributesFromUnknown, defineDataAttributes, defineV9PropertyHighlightSources, defineV9PropertyHighlightSourcesFromUnknown, defineVofficeFacilityDataAttributes, defineVofficeFeedbackDataAttributes, defineVofficeImageDataAttributes, defineVofficeOfferDataAttributes, defineVofficePriceDataAttributes, defineVofficeRatingDataAttributes, defineVofficeServiceDataAttributes, defineVofficeTotalRatingDataAttributes, defineVofficeUnitDataAttributes, fetchCustomAttributeCatalog, getBankTransferDetailsEffect, getFiltersEffect, getInitialAvailabilityEffect, getRentalsEffect, getStartDateSelectedAvailabilityEffect, getTermsAndPrivacyPolicyEffect, makeV0OpenApiClientFetchLive, makeV0OpenApiClientLive, makeV1OpenApiClientFetchLive, makeV1OpenApiClientLive, parseCustomAttributeCatalog, quoteEffect, removeAdditionalServiceEffect, searchEffect, selectCancellationPolicyEffect, selectInsuranceEffect, selectInsurancePaymentEffect, submitContactEffect, submitPaymentOption, submitPaymentOptionEffect, validateContactSubmitInput };
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Release notes of `@v-office/website-sdk`, newest first. Each version has its own directory.
|
|
6
6
|
|
|
7
|
+
- `versions/2.21.0/CHANGELOG.md`: release notes for 2.21.0
|
|
7
8
|
- `versions/2.20.4/CHANGELOG.md`: release notes for 2.20.4
|
|
8
9
|
- `versions/2.20.3/CHANGELOG.md`: release notes for 2.20.3
|
|
9
10
|
- `versions/2.20.2/CHANGELOG.md`: release notes for 2.20.2
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Migration guides of `@v-office/website-sdk`, newest first. Apply them in order when skipping versions.
|
|
6
6
|
|
|
7
|
+
- `versions/2.21.0/MIGRATION.md`: Migration: 2.20.4 to 2.21.0
|
|
7
8
|
- `versions/2.20.4/MIGRATION.md`: Migration: 2.20.3 to 2.20.4
|
|
8
9
|
- `versions/2.20.3/MIGRATION.md`: Migration: 2.20.2 to 2.20.3
|
|
9
10
|
- `versions/2.20.2/MIGRATION.md`: Migration: 2.20.1 to 2.20.2
|
|
@@ -13,7 +13,8 @@ Use this directory as the consumer-facing reference for the package:
|
|
|
13
13
|
- `search.md`: `sdk.live.search.search`.
|
|
14
14
|
- `availability.md`: date-picker availability flows.
|
|
15
15
|
- `quote.md`: quote booking-card modifiers, additional services, cancellation policy, and insurance flows.
|
|
16
|
-
- `booking.md`: booking
|
|
16
|
+
- `booking.md`: booking, payment option submission, and
|
|
17
|
+
`sdk.static.payment.getBankTransferDetails` (read-only bank details).
|
|
17
18
|
- `contact.md`: contact submission.
|
|
18
19
|
- `document-structured-json.md`: `sdk.static.documents.getTermsAndPrivacyPolicy` and structured document JSON rendering rules.
|
|
19
20
|
- `CHANGELOG.md`: versioned changelog index.
|
|
@@ -134,6 +134,11 @@ Sample:
|
|
|
134
134
|
|
|
135
135
|
`paymentOptions` is present only when the SDK can currently perform that payment. Future or on-site steps remain visible without payment options.
|
|
136
136
|
|
|
137
|
+
`lines` is present on a step or alternative only when the backend states a deposit
|
|
138
|
+
included in its amount. It contains the formatted deposit and, when nonzero, the
|
|
139
|
+
amount excluding the deposit. Without a stated deposit there are no `lines`;
|
|
140
|
+
never derive a deposit from `amount` and a percentage.
|
|
141
|
+
|
|
137
142
|
An optional `insurancePaymentOptions` array is returned only when post-booking insurance payment is available.
|
|
138
143
|
|
|
139
144
|
Sites upgrading from 2.12.0 must replace the former `paymentSchedules` output. See
|
|
@@ -141,11 +146,42 @@ Sites upgrading from 2.12.0 must replace the former `paymentSchedules` output. S
|
|
|
141
146
|
|
|
142
147
|
Payment option variants:
|
|
143
148
|
|
|
144
|
-
- `bank_transfer`: display-only payment details.
|
|
149
|
+
- `bank_transfer`: display-only payment details. `holder`, `iban`, `swiftOrBic` and
|
|
150
|
+
`institution` are the PMS payment settings' values; `holder`, `swiftOrBic` and
|
|
151
|
+
`institution` are absent when the PMS has none. `holder` is never another name:
|
|
152
|
+
render the row only when present. `remittanceText` is emitted on `v9`.
|
|
145
153
|
- `redirect`: redirect the browser to the payment URL.
|
|
146
154
|
- `form_post`: submit a generated HTML form, currently used for PayPal-style flows.
|
|
147
155
|
- `stripe_checkout`: open Stripe Checkout. Emitted on `v9` only.
|
|
148
156
|
|
|
157
|
+
## Bank Transfer Details
|
|
158
|
+
|
|
159
|
+
The bank details a guest is told to transfer to must be right before a site goes
|
|
160
|
+
live. On `v10`, read them without creating a booking:
|
|
161
|
+
|
|
162
|
+
```ts
|
|
163
|
+
const accounts = await sdk.static.payment.getBankTransferDetails();
|
|
164
|
+
// [{ holder: "Example GmbH", iban: "DE02120300000000202051", swiftOrBic: "BYLADEM1001", institution: "Example Bank" }]
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
Returns `Promise<ReadonlyArray<BookingBankTransferDetails>>`: the bank account of
|
|
168
|
+
the PMS's primary document settings, the same single account the booking output
|
|
169
|
+
shows, or an empty array when that account has no IBAN. Never placeholder values. The call runs the same PMS query and mapping the
|
|
170
|
+
booking output uses for its `bank_transfer` payment options, so what it returns
|
|
171
|
+
is exactly what the next booking's confirmation will show. It creates no booking,
|
|
172
|
+
reservation or other PMS write. Compare the result with the PMS payment settings
|
|
173
|
+
before launch, or run the CLI:
|
|
174
|
+
|
|
175
|
+
```sh
|
|
176
|
+
website-sdk --backend v10 bank-transfer-details
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
The call is not available on `v9`: the v9 hub exposes bank details only inside
|
|
180
|
+
a booking response. Do not verify them with a test booking against the v9 demo
|
|
181
|
+
hub: the demo hub and the production hub front the same PMS account, so a
|
|
182
|
+
booking through either is a real booking in the PMS. Verify the payment
|
|
183
|
+
settings in the PMS itself instead.
|
|
184
|
+
|
|
149
185
|
## Payment Submission
|
|
150
186
|
|
|
151
187
|
Use `sdk.live.booking.submitPaymentOption(option)` or the top-level `submitPaymentOption(option)` export for every option except `bank_transfer`, which is display-only. Submission requires a browser environment and fails outside one.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Changelog: 2.21.0
|
|
2
|
+
|
|
3
|
+
Two faults in the v9 bank-transfer confirmation, found on a pilot one step
|
|
4
|
+
before go-live, and a read-only call to verify bank details before launch.
|
|
5
|
+
|
|
6
|
+
Against a v9 hub that sends no account holder, the SDK filled the
|
|
7
|
+
`bank_transfer` option's `holder` with the booking's customer name. Every
|
|
8
|
+
confirmation told the guest to pay an account held by themselves; with EU
|
|
9
|
+
payee-name verification the guest's bank flags that transfer as a name
|
|
10
|
+
mismatch. Separately, when the hub stated neither a booking total nor a deposit,
|
|
11
|
+
the SDK derived a total from the rounded prepayment and its percentage and
|
|
12
|
+
labelled the rounding remainder a deposit: a booking of 486.50 € with a 20 %
|
|
13
|
+
prepayment rounded to 97.00 € showed "486.50 €" with the lines "485.00 €" and a
|
|
14
|
+
deposit of "1.50 €".
|
|
15
|
+
|
|
16
|
+
## Added
|
|
17
|
+
|
|
18
|
+
- `sdk.static.payment.getBankTransferDetails()` on `v10`: the bank account the
|
|
19
|
+
next booking's `bank_transfer` payment options will show (`holder?`, `iban`,
|
|
20
|
+
`swiftOrBic?`, `institution?`; at most one entry), read from the PMS's primary
|
|
21
|
+
document settings through the same query and mapping the booking output uses. Creates no booking. Empty when
|
|
22
|
+
the account offers no bank transfer. Not available on `v9`: the v9 hub exposes
|
|
23
|
+
bank details only inside a booking response, and its demo hub is not a sandbox
|
|
24
|
+
(see `booking.md`).
|
|
25
|
+
- CLI: `website-sdk --backend v10 bank-transfer-details`.
|
|
26
|
+
|
|
27
|
+
## Changed
|
|
28
|
+
|
|
29
|
+
- `holder` on a `bank_transfer` payment option is optional. It is the PMS
|
|
30
|
+
payment settings' holder or absent; never the guest's name.
|
|
31
|
+
- `lines` on a payment step or the `full_amount` alternative are emitted only
|
|
32
|
+
when the hub states a deposit amount. They then read the deposit and, when
|
|
33
|
+
nonzero, the amount excluding it. Without a stated deposit there are no
|
|
34
|
+
lines; the step's `amount` stands alone.
|
|
35
|
+
|
|
36
|
+
## Fixed
|
|
37
|
+
|
|
38
|
+
- `v9`: the `bank_transfer` holder is no longer the booking customer's name.
|
|
39
|
+
- `v9`: no deposit line is invented from a rounded prepayment. Nothing is
|
|
40
|
+
derived from percentages or totals any more.
|
|
41
|
+
|
|
42
|
+
## Unchanged
|
|
43
|
+
|
|
44
|
+
- `payment.schedule` and `payment.alternatives` structure, amounts, labels,
|
|
45
|
+
`dueOn`, `remittanceText`, and the other payment option variants.
|
|
46
|
+
- The `v10` booking output apart from the optional `holder`.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Migration: 2.20.4 to 2.21.0
|
|
2
|
+
|
|
3
|
+
## 1. Upgrade
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
pnpm add @v-office/website-sdk@2.21.0
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## 2. Optional `holder`
|
|
10
|
+
|
|
11
|
+
`holder` on a `bank_transfer` payment option is now `string | undefined`.
|
|
12
|
+
Render the holder row only when it is present, as for `swiftOrBic` and
|
|
13
|
+
`institution`. A site that replaced the holder with its own value to work
|
|
14
|
+
around the guest-name fault can remove that workaround.
|
|
15
|
+
|
|
16
|
+
## 3. Payment lines
|
|
17
|
+
|
|
18
|
+
`lines` on a payment step or alternative are absent unless the hub states a
|
|
19
|
+
deposit. A site that hid the lines to work around the invented deposit can
|
|
20
|
+
show them again.
|
|
21
|
+
|
|
22
|
+
## 4. Verify bank details before launch (`v10`)
|
|
23
|
+
|
|
24
|
+
```ts
|
|
25
|
+
const accounts = await sdk.static.payment.getBankTransferDetails();
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
or `website-sdk --backend v10 bank-transfer-details`. Compare the result with
|
|
29
|
+
the PMS payment settings. On `v9` this call is not available; see the note in
|
|
30
|
+
`booking.md`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ut as V9_FACILITY_ATTRIBUTE_KEYS } from "./client-dWCukmLr.mjs";
|
|
2
2
|
import { c as parseVofficeUnitData, i as VofficeUnitDataPropertyMetadata, n as VofficeUnitDataPropertyCategoryLabelKeys, o as parseVofficeFacilityData, r as VofficeUnitDataPropertyCategoryValues, s as parseVofficeFeedbackData, t as VofficeUnitDataFieldSchemas } from "./v9-data-BnYxa2Ek.mjs";
|
|
3
3
|
import { a as toAddress, c as rentalFacilitiesForObjectGroupRelationQuery, d as rentalsAllFeedbacksQuery, f as rentalsAllWithoutFeedbacksQuery, i as toImages, l as rentalIdsQuery, n as renderVofficePropertyAttribute, o as toLocalizedString, r as toFacilityImages, t as toRentalHighlights, u as rentalsAllByFacilityObjectGroupsWithoutFeedbacksQuery } from "./to-rental-highlights-CN-wpRh3.mjs";
|
|
4
4
|
import { CoreSDKError, makeTranslate, renderResolvedCustomAttribute, toCustomAttributeList, toResolvedCustomAttributeCategoryTranslationKey } from "@v-office/sdk-core";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as parseQueryParameters, i as collectQueryParameters, n as makeV9CustomAttributeFilterCapabilities, o as toQueryString, r as toBasicQueryInputs, s as applyVofficeFilterDerivedBasicQueryInputs } from "./client-
|
|
1
|
+
import { a as parseQueryParameters, i as collectQueryParameters, n as makeV9CustomAttributeFilterCapabilities, o as toQueryString, r as toBasicQueryInputs, s as applyVofficeFilterDerivedBasicQueryInputs } from "./client-dWCukmLr.mjs";
|
|
2
2
|
import { c as parseVofficeUnitData, t as VofficeUnitDataFieldSchemas } from "./v9-data-BnYxa2Ek.mjs";
|
|
3
3
|
import { a as toAddress, i as toImages, s as searchQuery, t as toRentalHighlights } from "./to-rental-highlights-CN-wpRh3.mjs";
|
|
4
4
|
import { CoreSDKError, STABLE_SEARCH_INPUTS, daysBetweenLocalDates, expandCustomAttributeFilterCompositions, parseChildrenAges, parseOccupancyCount, resolveExpandedCompositions, toFormattedSearchPrice, toIsoDateFromPeriodQueryDate, toStableSearchInputBackendQueryKeys, toStableSearchInputParameterValues, toStableSearchInputQueryKeys, toUnusedFilterKeys } from "@v-office/sdk-core";
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Release notes of `@v-office/website-sdk`, newest first. Each version has its own directory.
|
|
6
6
|
|
|
7
|
+
- `versions/2.21.0/CHANGELOG.md`: release notes for 2.21.0
|
|
7
8
|
- `versions/2.20.4/CHANGELOG.md`: release notes for 2.20.4
|
|
8
9
|
- `versions/2.20.3/CHANGELOG.md`: release notes for 2.20.3
|
|
9
10
|
- `versions/2.20.2/CHANGELOG.md`: release notes for 2.20.2
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Migration guides of `@v-office/website-sdk`, newest first. Apply them in order when skipping versions.
|
|
6
6
|
|
|
7
|
+
- `versions/2.21.0/MIGRATION.md`: Migration: 2.20.4 to 2.21.0
|
|
7
8
|
- `versions/2.20.4/MIGRATION.md`: Migration: 2.20.3 to 2.20.4
|
|
8
9
|
- `versions/2.20.3/MIGRATION.md`: Migration: 2.20.2 to 2.20.3
|
|
9
10
|
- `versions/2.20.2/MIGRATION.md`: Migration: 2.20.1 to 2.20.2
|
package/instructions/README.md
CHANGED
|
@@ -13,7 +13,8 @@ Use this directory as the consumer-facing reference for the package:
|
|
|
13
13
|
- `search.md`: `sdk.live.search.search`.
|
|
14
14
|
- `availability.md`: date-picker availability flows.
|
|
15
15
|
- `quote.md`: quote booking-card modifiers, additional services, cancellation policy, and insurance flows.
|
|
16
|
-
- `booking.md`: booking
|
|
16
|
+
- `booking.md`: booking, payment option submission, and
|
|
17
|
+
`sdk.static.payment.getBankTransferDetails` (read-only bank details).
|
|
17
18
|
- `contact.md`: contact submission.
|
|
18
19
|
- `document-structured-json.md`: `sdk.static.documents.getTermsAndPrivacyPolicy` and structured document JSON rendering rules.
|
|
19
20
|
- `CHANGELOG.md`: versioned changelog index.
|
package/instructions/booking.md
CHANGED
|
@@ -134,6 +134,11 @@ Sample:
|
|
|
134
134
|
|
|
135
135
|
`paymentOptions` is present only when the SDK can currently perform that payment. Future or on-site steps remain visible without payment options.
|
|
136
136
|
|
|
137
|
+
`lines` is present on a step or alternative only when the backend states a deposit
|
|
138
|
+
included in its amount. It contains the formatted deposit and, when nonzero, the
|
|
139
|
+
amount excluding the deposit. Without a stated deposit there are no `lines`;
|
|
140
|
+
never derive a deposit from `amount` and a percentage.
|
|
141
|
+
|
|
137
142
|
An optional `insurancePaymentOptions` array is returned only when post-booking insurance payment is available.
|
|
138
143
|
|
|
139
144
|
Sites upgrading from 2.12.0 must replace the former `paymentSchedules` output. See
|
|
@@ -141,11 +146,42 @@ Sites upgrading from 2.12.0 must replace the former `paymentSchedules` output. S
|
|
|
141
146
|
|
|
142
147
|
Payment option variants:
|
|
143
148
|
|
|
144
|
-
- `bank_transfer`: display-only payment details.
|
|
149
|
+
- `bank_transfer`: display-only payment details. `holder`, `iban`, `swiftOrBic` and
|
|
150
|
+
`institution` are the PMS payment settings' values; `holder`, `swiftOrBic` and
|
|
151
|
+
`institution` are absent when the PMS has none. `holder` is never another name:
|
|
152
|
+
render the row only when present. `remittanceText` is emitted on `v9`.
|
|
145
153
|
- `redirect`: redirect the browser to the payment URL.
|
|
146
154
|
- `form_post`: submit a generated HTML form, currently used for PayPal-style flows.
|
|
147
155
|
- `stripe_checkout`: open Stripe Checkout. Emitted on `v9` only.
|
|
148
156
|
|
|
157
|
+
## Bank Transfer Details
|
|
158
|
+
|
|
159
|
+
The bank details a guest is told to transfer to must be right before a site goes
|
|
160
|
+
live. On `v10`, read them without creating a booking:
|
|
161
|
+
|
|
162
|
+
```ts
|
|
163
|
+
const accounts = await sdk.static.payment.getBankTransferDetails();
|
|
164
|
+
// [{ holder: "Example GmbH", iban: "DE02120300000000202051", swiftOrBic: "BYLADEM1001", institution: "Example Bank" }]
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
Returns `Promise<ReadonlyArray<BookingBankTransferDetails>>`: the bank account of
|
|
168
|
+
the PMS's primary document settings, the same single account the booking output
|
|
169
|
+
shows, or an empty array when that account has no IBAN. Never placeholder values. The call runs the same PMS query and mapping the
|
|
170
|
+
booking output uses for its `bank_transfer` payment options, so what it returns
|
|
171
|
+
is exactly what the next booking's confirmation will show. It creates no booking,
|
|
172
|
+
reservation or other PMS write. Compare the result with the PMS payment settings
|
|
173
|
+
before launch, or run the CLI:
|
|
174
|
+
|
|
175
|
+
```sh
|
|
176
|
+
website-sdk --backend v10 bank-transfer-details
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
The call is not available on `v9`: the v9 hub exposes bank details only inside
|
|
180
|
+
a booking response. Do not verify them with a test booking against the v9 demo
|
|
181
|
+
hub: the demo hub and the production hub front the same PMS account, so a
|
|
182
|
+
booking through either is a real booking in the PMS. Verify the payment
|
|
183
|
+
settings in the PMS itself instead.
|
|
184
|
+
|
|
149
185
|
## Payment Submission
|
|
150
186
|
|
|
151
187
|
Use `sdk.live.booking.submitPaymentOption(option)` or the top-level `submitPaymentOption(option)` export for every option except `bank_transfer`, which is display-only. Submission requires a browser environment and fails outside one.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Changelog: 2.21.0
|
|
2
|
+
|
|
3
|
+
Two faults in the v9 bank-transfer confirmation, found on a pilot one step
|
|
4
|
+
before go-live, and a read-only call to verify bank details before launch.
|
|
5
|
+
|
|
6
|
+
Against a v9 hub that sends no account holder, the SDK filled the
|
|
7
|
+
`bank_transfer` option's `holder` with the booking's customer name. Every
|
|
8
|
+
confirmation told the guest to pay an account held by themselves; with EU
|
|
9
|
+
payee-name verification the guest's bank flags that transfer as a name
|
|
10
|
+
mismatch. Separately, when the hub stated neither a booking total nor a deposit,
|
|
11
|
+
the SDK derived a total from the rounded prepayment and its percentage and
|
|
12
|
+
labelled the rounding remainder a deposit: a booking of 486.50 € with a 20 %
|
|
13
|
+
prepayment rounded to 97.00 € showed "486.50 €" with the lines "485.00 €" and a
|
|
14
|
+
deposit of "1.50 €".
|
|
15
|
+
|
|
16
|
+
## Added
|
|
17
|
+
|
|
18
|
+
- `sdk.static.payment.getBankTransferDetails()` on `v10`: the bank account the
|
|
19
|
+
next booking's `bank_transfer` payment options will show (`holder?`, `iban`,
|
|
20
|
+
`swiftOrBic?`, `institution?`; at most one entry), read from the PMS's primary
|
|
21
|
+
document settings through the same query and mapping the booking output uses. Creates no booking. Empty when
|
|
22
|
+
the account offers no bank transfer. Not available on `v9`: the v9 hub exposes
|
|
23
|
+
bank details only inside a booking response, and its demo hub is not a sandbox
|
|
24
|
+
(see `booking.md`).
|
|
25
|
+
- CLI: `website-sdk --backend v10 bank-transfer-details`.
|
|
26
|
+
|
|
27
|
+
## Changed
|
|
28
|
+
|
|
29
|
+
- `holder` on a `bank_transfer` payment option is optional. It is the PMS
|
|
30
|
+
payment settings' holder or absent; never the guest's name.
|
|
31
|
+
- `lines` on a payment step or the `full_amount` alternative are emitted only
|
|
32
|
+
when the hub states a deposit amount. They then read the deposit and, when
|
|
33
|
+
nonzero, the amount excluding it. Without a stated deposit there are no
|
|
34
|
+
lines; the step's `amount` stands alone.
|
|
35
|
+
|
|
36
|
+
## Fixed
|
|
37
|
+
|
|
38
|
+
- `v9`: the `bank_transfer` holder is no longer the booking customer's name.
|
|
39
|
+
- `v9`: no deposit line is invented from a rounded prepayment. Nothing is
|
|
40
|
+
derived from percentages or totals any more.
|
|
41
|
+
|
|
42
|
+
## Unchanged
|
|
43
|
+
|
|
44
|
+
- `payment.schedule` and `payment.alternatives` structure, amounts, labels,
|
|
45
|
+
`dueOn`, `remittanceText`, and the other payment option variants.
|
|
46
|
+
- The `v10` booking output apart from the optional `holder`.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Migration: 2.20.4 to 2.21.0
|
|
2
|
+
|
|
3
|
+
## 1. Upgrade
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
pnpm add @v-office/website-sdk@2.21.0
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## 2. Optional `holder`
|
|
10
|
+
|
|
11
|
+
`holder` on a `bank_transfer` payment option is now `string | undefined`.
|
|
12
|
+
Render the holder row only when it is present, as for `swiftOrBic` and
|
|
13
|
+
`institution`. A site that replaced the holder with its own value to work
|
|
14
|
+
around the guest-name fault can remove that workaround.
|
|
15
|
+
|
|
16
|
+
## 3. Payment lines
|
|
17
|
+
|
|
18
|
+
`lines` on a payment step or alternative are absent unless the hub states a
|
|
19
|
+
deposit. A site that hid the lines to work around the invented deposit can
|
|
20
|
+
show them again.
|
|
21
|
+
|
|
22
|
+
## 4. Verify bank details before launch (`v10`)
|
|
23
|
+
|
|
24
|
+
```ts
|
|
25
|
+
const accounts = await sdk.static.payment.getBankTransferDetails();
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
or `website-sdk --backend v10 bank-transfer-details`. Compare the result with
|
|
29
|
+
the PMS payment settings. On `v9` this call is not available; see the note in
|
|
30
|
+
`booking.md`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@v-office/website-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.21.0",
|
|
4
4
|
"description": "Website-facing SDK facade backed by @v-office/sdk-core",
|
|
5
5
|
"bin": {
|
|
6
6
|
"website-sdk": "./dist/cli.mjs"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@graphql-typed-document-node/core": "3.2.0",
|
|
45
|
-
"@v-office/sdk-core": "1.
|
|
45
|
+
"@v-office/sdk-core": "1.23.0",
|
|
46
46
|
"effect": "4.0.0-rc.115",
|
|
47
47
|
"graphql": "17.0.2",
|
|
48
48
|
"yaml": "^2.9.0"
|
|
@@ -77,13 +77,14 @@
|
|
|
77
77
|
"fmt": "oxfmt",
|
|
78
78
|
"fmt:check": "oxfmt --check",
|
|
79
79
|
"check": "pnpm run typecheck && pnpm run lint && pnpm run fmt:check",
|
|
80
|
-
"test": "pnpm run test:v9:openapi && pnpm run test:v9:properties && pnpm run test:v9:rentals && pnpm run test:v9:graphql && pnpm run test:v9:availability && pnpm run test:v9:search && pnpm run build && node --test test/*.test.mjs",
|
|
80
|
+
"test": "pnpm run test:v9:openapi && pnpm run test:v9:properties && pnpm run test:v9:rentals && pnpm run test:v9:graphql && pnpm run test:v9:availability && pnpm run test:v9:search && pnpm run test:v9:booking && pnpm run build && node --test test/*.test.mjs",
|
|
81
81
|
"test:v9:openapi": "node --test codegen/v9/php-record.test.ts src/legacy-v9/openapi/setup-response.test.ts src/legacy-v9/openapi/quote-response.test.ts",
|
|
82
82
|
"test:v9:properties": "node --test codegen/v9/heuristic-generation/generate/property.test.ts src/legacy-v9/property-highlight-sources.test.ts src/legacy-v9/parser/rentals/render-property-attribute.test.ts src/legacy-v9/parser/rentals/to-property.test.ts src/legacy-v9/parser/rentals/to-rooms.test.ts",
|
|
83
83
|
"test:v9:rentals": "node --test src/legacy-v9/static/associate-rentals-with-facilities-by-object-groups.test.ts",
|
|
84
84
|
"test:v9:graphql": "node --test src/legacy-v9/graphql/client.test.ts",
|
|
85
85
|
"test:v9:availability": "node --test src/legacy-v9/parser/availability/to-initial-availability-calendar-days.test.ts",
|
|
86
86
|
"test:v9:search": "node --test src/legacy-v9/parser/search/resolve-exact-match.test.ts",
|
|
87
|
+
"test:v9:booking": "node --test src/legacy-v9/parser/booking/output/to-payment-schedules.test.ts",
|
|
87
88
|
"playground:custom-attributes": "pnpm run build && node --env-file=.env playground/custom-attributes.ts"
|
|
88
89
|
}
|
|
89
90
|
}
|