@rebuy/rebuy 3.41.0 → 3.43.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/index.cjs +971 -787
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +971 -787
- package/dist/pricing/index.cjs +58 -1
- package/dist/pricing/index.d.ts +2 -0
- package/dist/pricing/index.mjs +58 -1
- package/dist/pricing/postPurchaseDisplayFacts.d.ts +36 -0
- package/dist/pricing/postPurchaseDisplayPrice.d.ts +8 -0
- package/dist/pricing/postPurchaseReduction.d.ts +17 -0
- package/dist/schema/checkout-and-beyond/constants.cjs +4 -0
- package/dist/schema/checkout-and-beyond/constants.mjs +4 -0
- package/dist/schema/checkout-and-beyond/index.cjs +388 -374
- package/dist/schema/checkout-and-beyond/index.mjs +388 -374
- package/dist/schema/index.d.ts +2 -0
- package/dist/schema/postPurchaseAdmission.d.ts +33 -0
- package/dist/schema/postPurchaseDisplayPrice.d.ts +31 -0
- package/dist/schema/postPurchaseFollowups.d.ts +47 -0
- package/dist/schema/postPurchaseHealth.d.ts +5 -0
- package/dist/schema/postPurchasePlanCatalog.d.ts +2 -0
- package/dist/schema/postPurchaseProduct.d.ts +2 -0
- package/dist/schema/postPurchaseProductCollectionView.d.ts +62 -0
- package/dist/schema/postPurchaseProductView.d.ts +65 -0
- package/dist/schema/postPurchaseRecovery.d.ts +47 -0
- package/dist/schema/postPurchaseSubscriptionProduct.d.ts +2 -0
- package/dist/schema/postPurchaseUpgrade.d.ts +117 -0
- package/dist/schema/widget-data.cjs +452 -441
- package/dist/schema/widget-data.mjs +452 -441
- package/dist/schema/widgets/checkout-and-beyond/common.d.ts +14 -0
- package/dist/schema/widgets/checkout-and-beyond/image.d.ts +8 -0
- package/dist/schema/widgets/checkout-and-beyond/imageThumbnails.d.ts +13 -0
- package/dist/schema/widgets/checkout-and-beyond/index.d.ts +1 -0
- package/dist/schema/widgets/checkout-and-beyond/variants.d.ts +1 -0
- package/dist/server/index.cjs +1721 -1419
- package/dist/server/index.mjs +1707 -1405
- package/dist/server/postPurchasePlanCatalog.d.ts +4 -1
- package/dist/server/preparePostPurchaseAdmissionView.d.ts +53 -0
- package/dist/server/preparePostPurchaseCollectionGroup.d.ts +57 -0
- package/dist/server/preparePostPurchaseCollectionView.d.ts +53 -0
- package/dist/server/preparePostPurchaseGroupAdmissionView.d.ts +53 -0
- package/dist/server/preparePostPurchaseGroupDefault.d.ts +53 -0
- package/dist/server/preparePostPurchaseGroupView.d.ts +53 -0
- package/dist/server/preparePostPurchaseMemberView.d.ts +159 -0
- package/dist/server/preparePostPurchaseQuantityAdmissionView.d.ts +53 -0
- package/dist/server/preparePostPurchaseQuantityView.d.ts +53 -0
- package/dist/server/preparePostPurchaseSubscription.d.ts +1 -0
- package/dist/server/selectPostPurchaseChoice.d.ts +1 -0
- package/dist/transforms/index.cjs +980 -581
- package/dist/transforms/index.mjs +980 -581
- package/dist/transforms/postPurchase/convertProductInformation.d.ts +6 -2
- package/dist/transforms/postPurchase/productCardControls.d.ts +7 -0
- package/dist/transforms/postPurchase/productCardCosts.d.ts +3 -0
- package/dist/transforms/postPurchase/productCardPricing.d.ts +3 -0
- package/dist/transforms/postPurchase/productCardRows.d.ts +63 -0
- package/dist/transforms/postPurchase/productCardSettings.d.ts +103 -0
- package/dist/transforms/postPurchase/types.d.ts +2 -2
- package/dist/transforms/productCard/earnedText.d.ts +25 -0
- package/dist/transforms/productCard/priceText.d.ts +2 -0
- package/dist/transforms/productCard/quantitySection.d.ts +28 -0
- package/dist/transforms/productCard/subscriptionToggle.d.ts +18 -0
- package/package.json +1 -1
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { PostPurchasePlanCatalog } from '../schema/postPurchasePlanCatalog';
|
|
2
2
|
import type { normalizePostPurchaseProduct } from '../server/normalizePostPurchaseProduct';
|
|
3
3
|
import type { Reporter } from '../server/shared';
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* Optional inspection data survives unsupported preparation without changing its purchase authority. Each plan
|
|
6
|
+
* carries its own display saving on this variant's price, so the switch label needs no client maths.
|
|
7
|
+
*/
|
|
5
8
|
export declare const projectPostPurchasePlanCatalog: (normalized: ReturnType<typeof normalizePostPurchaseProduct>, report?: Reporter) => PostPurchasePlanCatalog | null;
|
|
@@ -8,6 +8,7 @@ export declare const preparePostPurchaseAdmissionView: (widgetId: number, settin
|
|
|
8
8
|
labels: {
|
|
9
9
|
declineAll: string;
|
|
10
10
|
free: string;
|
|
11
|
+
notAvailable: string;
|
|
11
12
|
payNow: string;
|
|
12
13
|
quantity: string;
|
|
13
14
|
recurringShipping: string;
|
|
@@ -268,6 +269,53 @@ export declare const preparePostPurchaseAdmissionView: (widgetId: number, settin
|
|
|
268
269
|
selectedId: number;
|
|
269
270
|
} | undefined;
|
|
270
271
|
};
|
|
272
|
+
changeset?: {
|
|
273
|
+
changes: ({
|
|
274
|
+
quantity: number;
|
|
275
|
+
type: "add_variant";
|
|
276
|
+
variantId: number;
|
|
277
|
+
discount?: {
|
|
278
|
+
title: string;
|
|
279
|
+
value: number;
|
|
280
|
+
valueType: "fixed_amount" | "percentage";
|
|
281
|
+
} | undefined;
|
|
282
|
+
} | {
|
|
283
|
+
price: number;
|
|
284
|
+
title: string;
|
|
285
|
+
type: "add_shipping_line";
|
|
286
|
+
} | {
|
|
287
|
+
initialShippingPrice: number;
|
|
288
|
+
recurringShippingPrice: number;
|
|
289
|
+
shippingOption: {
|
|
290
|
+
presentmentTitle: string;
|
|
291
|
+
title: string;
|
|
292
|
+
};
|
|
293
|
+
quantity: number;
|
|
294
|
+
sellingPlanId: number;
|
|
295
|
+
type: "add_subscription";
|
|
296
|
+
variantId: number;
|
|
297
|
+
discount?: {
|
|
298
|
+
title: string;
|
|
299
|
+
value: number;
|
|
300
|
+
valueType: "fixed_amount" | "percentage";
|
|
301
|
+
} | undefined;
|
|
302
|
+
})[];
|
|
303
|
+
} | undefined;
|
|
304
|
+
displayPrice?: {
|
|
305
|
+
currencyCode: string;
|
|
306
|
+
savingFormat: "amount" | "percent";
|
|
307
|
+
savingMinor: number;
|
|
308
|
+
savingPercent: number;
|
|
309
|
+
variantCompareAtPriceMinor: number | null;
|
|
310
|
+
variantPriceMinor: number;
|
|
311
|
+
subscriptionUnit?: {
|
|
312
|
+
comparisonMinor: number;
|
|
313
|
+
currencyCode: string;
|
|
314
|
+
priceMinor: number;
|
|
315
|
+
savingMinor: number;
|
|
316
|
+
savingPercent: number;
|
|
317
|
+
} | undefined;
|
|
318
|
+
} | undefined;
|
|
271
319
|
groupCatalog?: {
|
|
272
320
|
memberProductId: number;
|
|
273
321
|
options: {
|
|
@@ -307,6 +355,7 @@ export declare const preparePostPurchaseAdmissionView: (widgetId: number, settin
|
|
|
307
355
|
amount: number;
|
|
308
356
|
type: "price" | "fixed_amount" | "percentage";
|
|
309
357
|
} | undefined;
|
|
358
|
+
discountPercentage?: number | undefined;
|
|
310
359
|
intervalFrequency?: string | undefined;
|
|
311
360
|
}[];
|
|
312
361
|
productId: number;
|
|
@@ -379,6 +428,9 @@ export declare const preparePostPurchaseAdmissionView: (widgetId: number, settin
|
|
|
379
428
|
initialVariant?: {
|
|
380
429
|
variantId: number;
|
|
381
430
|
} | undefined;
|
|
431
|
+
labels?: {
|
|
432
|
+
notAvailable: string;
|
|
433
|
+
} | undefined;
|
|
382
434
|
planCatalog?: {
|
|
383
435
|
plans: {
|
|
384
436
|
id: number;
|
|
@@ -388,6 +440,7 @@ export declare const preparePostPurchaseAdmissionView: (widgetId: number, settin
|
|
|
388
440
|
amount: number;
|
|
389
441
|
type: "price" | "fixed_amount" | "percentage";
|
|
390
442
|
} | undefined;
|
|
443
|
+
discountPercentage?: number | undefined;
|
|
391
444
|
intervalFrequency?: string | undefined;
|
|
392
445
|
}[];
|
|
393
446
|
productId: number;
|
|
@@ -45,6 +45,7 @@ export declare const preparePostPurchaseCollectionGroup: (widgetId: number, sett
|
|
|
45
45
|
labels: {
|
|
46
46
|
declineAll: string;
|
|
47
47
|
free: string;
|
|
48
|
+
notAvailable: string;
|
|
48
49
|
payNow: string;
|
|
49
50
|
quantity: string;
|
|
50
51
|
recurringShipping: string;
|
|
@@ -305,6 +306,53 @@ export declare const preparePostPurchaseCollectionGroup: (widgetId: number, sett
|
|
|
305
306
|
selectedId: number;
|
|
306
307
|
} | undefined;
|
|
307
308
|
};
|
|
309
|
+
changeset?: {
|
|
310
|
+
changes: ({
|
|
311
|
+
quantity: number;
|
|
312
|
+
type: "add_variant";
|
|
313
|
+
variantId: number;
|
|
314
|
+
discount?: {
|
|
315
|
+
title: string;
|
|
316
|
+
value: number;
|
|
317
|
+
valueType: "fixed_amount" | "percentage";
|
|
318
|
+
} | undefined;
|
|
319
|
+
} | {
|
|
320
|
+
price: number;
|
|
321
|
+
title: string;
|
|
322
|
+
type: "add_shipping_line";
|
|
323
|
+
} | {
|
|
324
|
+
initialShippingPrice: number;
|
|
325
|
+
recurringShippingPrice: number;
|
|
326
|
+
shippingOption: {
|
|
327
|
+
presentmentTitle: string;
|
|
328
|
+
title: string;
|
|
329
|
+
};
|
|
330
|
+
quantity: number;
|
|
331
|
+
sellingPlanId: number;
|
|
332
|
+
type: "add_subscription";
|
|
333
|
+
variantId: number;
|
|
334
|
+
discount?: {
|
|
335
|
+
title: string;
|
|
336
|
+
value: number;
|
|
337
|
+
valueType: "fixed_amount" | "percentage";
|
|
338
|
+
} | undefined;
|
|
339
|
+
})[];
|
|
340
|
+
} | undefined;
|
|
341
|
+
displayPrice?: {
|
|
342
|
+
currencyCode: string;
|
|
343
|
+
savingFormat: "amount" | "percent";
|
|
344
|
+
savingMinor: number;
|
|
345
|
+
savingPercent: number;
|
|
346
|
+
variantCompareAtPriceMinor: number | null;
|
|
347
|
+
variantPriceMinor: number;
|
|
348
|
+
subscriptionUnit?: {
|
|
349
|
+
comparisonMinor: number;
|
|
350
|
+
currencyCode: string;
|
|
351
|
+
priceMinor: number;
|
|
352
|
+
savingMinor: number;
|
|
353
|
+
savingPercent: number;
|
|
354
|
+
} | undefined;
|
|
355
|
+
} | undefined;
|
|
308
356
|
planCatalog?: {
|
|
309
357
|
plans: {
|
|
310
358
|
id: number;
|
|
@@ -314,6 +362,7 @@ export declare const preparePostPurchaseCollectionGroup: (widgetId: number, sett
|
|
|
314
362
|
amount: number;
|
|
315
363
|
type: "price" | "fixed_amount" | "percentage";
|
|
316
364
|
} | undefined;
|
|
365
|
+
discountPercentage?: number | undefined;
|
|
317
366
|
intervalFrequency?: string | undefined;
|
|
318
367
|
}[];
|
|
319
368
|
productId: number;
|
|
@@ -350,6 +399,7 @@ export declare const preparePostPurchaseCollectionGroup: (widgetId: number, sett
|
|
|
350
399
|
imageId?: number | null | undefined;
|
|
351
400
|
}[];
|
|
352
401
|
} | undefined;
|
|
402
|
+
labels?: undefined;
|
|
353
403
|
} | {
|
|
354
404
|
groupCatalog: {
|
|
355
405
|
memberProductId: number;
|
|
@@ -386,6 +436,9 @@ export declare const preparePostPurchaseCollectionGroup: (widgetId: number, sett
|
|
|
386
436
|
status: "unsupported";
|
|
387
437
|
};
|
|
388
438
|
sections: null;
|
|
439
|
+
labels?: {
|
|
440
|
+
notAvailable: string;
|
|
441
|
+
} | undefined;
|
|
389
442
|
planCatalog?: {
|
|
390
443
|
plans: {
|
|
391
444
|
id: number;
|
|
@@ -395,6 +448,7 @@ export declare const preparePostPurchaseCollectionGroup: (widgetId: number, sett
|
|
|
395
448
|
amount: number;
|
|
396
449
|
type: "price" | "fixed_amount" | "percentage";
|
|
397
450
|
} | undefined;
|
|
451
|
+
discountPercentage?: number | undefined;
|
|
398
452
|
intervalFrequency?: string | undefined;
|
|
399
453
|
}[];
|
|
400
454
|
productId: number;
|
|
@@ -459,6 +513,9 @@ export declare const preparePostPurchaseCollectionGroup: (widgetId: number, sett
|
|
|
459
513
|
};
|
|
460
514
|
}[];
|
|
461
515
|
};
|
|
516
|
+
labels: {
|
|
517
|
+
notAvailable: string;
|
|
518
|
+
};
|
|
462
519
|
preparation: {
|
|
463
520
|
reason: string;
|
|
464
521
|
status: "unsupported";
|
|
@@ -30,6 +30,7 @@ export declare const preparePostPurchaseCollectionView: (widgetId: number, setti
|
|
|
30
30
|
labels: {
|
|
31
31
|
declineAll: string;
|
|
32
32
|
free: string;
|
|
33
|
+
notAvailable: string;
|
|
33
34
|
payNow: string;
|
|
34
35
|
quantity: string;
|
|
35
36
|
recurringShipping: string;
|
|
@@ -290,6 +291,53 @@ export declare const preparePostPurchaseCollectionView: (widgetId: number, setti
|
|
|
290
291
|
selectedId: number;
|
|
291
292
|
} | undefined;
|
|
292
293
|
};
|
|
294
|
+
changeset?: {
|
|
295
|
+
changes: ({
|
|
296
|
+
quantity: number;
|
|
297
|
+
type: "add_variant";
|
|
298
|
+
variantId: number;
|
|
299
|
+
discount?: {
|
|
300
|
+
title: string;
|
|
301
|
+
value: number;
|
|
302
|
+
valueType: "fixed_amount" | "percentage";
|
|
303
|
+
} | undefined;
|
|
304
|
+
} | {
|
|
305
|
+
price: number;
|
|
306
|
+
title: string;
|
|
307
|
+
type: "add_shipping_line";
|
|
308
|
+
} | {
|
|
309
|
+
initialShippingPrice: number;
|
|
310
|
+
recurringShippingPrice: number;
|
|
311
|
+
shippingOption: {
|
|
312
|
+
presentmentTitle: string;
|
|
313
|
+
title: string;
|
|
314
|
+
};
|
|
315
|
+
quantity: number;
|
|
316
|
+
sellingPlanId: number;
|
|
317
|
+
type: "add_subscription";
|
|
318
|
+
variantId: number;
|
|
319
|
+
discount?: {
|
|
320
|
+
title: string;
|
|
321
|
+
value: number;
|
|
322
|
+
valueType: "fixed_amount" | "percentage";
|
|
323
|
+
} | undefined;
|
|
324
|
+
})[];
|
|
325
|
+
} | undefined;
|
|
326
|
+
displayPrice?: {
|
|
327
|
+
currencyCode: string;
|
|
328
|
+
savingFormat: "amount" | "percent";
|
|
329
|
+
savingMinor: number;
|
|
330
|
+
savingPercent: number;
|
|
331
|
+
variantCompareAtPriceMinor: number | null;
|
|
332
|
+
variantPriceMinor: number;
|
|
333
|
+
subscriptionUnit?: {
|
|
334
|
+
comparisonMinor: number;
|
|
335
|
+
currencyCode: string;
|
|
336
|
+
priceMinor: number;
|
|
337
|
+
savingMinor: number;
|
|
338
|
+
savingPercent: number;
|
|
339
|
+
} | undefined;
|
|
340
|
+
} | undefined;
|
|
293
341
|
groupCatalog?: {
|
|
294
342
|
memberProductId: number;
|
|
295
343
|
options: {
|
|
@@ -329,6 +377,7 @@ export declare const preparePostPurchaseCollectionView: (widgetId: number, setti
|
|
|
329
377
|
amount: number;
|
|
330
378
|
type: "price" | "fixed_amount" | "percentage";
|
|
331
379
|
} | undefined;
|
|
380
|
+
discountPercentage?: number | undefined;
|
|
332
381
|
intervalFrequency?: string | undefined;
|
|
333
382
|
}[];
|
|
334
383
|
productId: number;
|
|
@@ -401,6 +450,9 @@ export declare const preparePostPurchaseCollectionView: (widgetId: number, setti
|
|
|
401
450
|
initialVariant?: {
|
|
402
451
|
variantId: number;
|
|
403
452
|
} | undefined;
|
|
453
|
+
labels?: {
|
|
454
|
+
notAvailable: string;
|
|
455
|
+
} | undefined;
|
|
404
456
|
planCatalog?: {
|
|
405
457
|
plans: {
|
|
406
458
|
id: number;
|
|
@@ -410,6 +462,7 @@ export declare const preparePostPurchaseCollectionView: (widgetId: number, setti
|
|
|
410
462
|
amount: number;
|
|
411
463
|
type: "price" | "fixed_amount" | "percentage";
|
|
412
464
|
} | undefined;
|
|
465
|
+
discountPercentage?: number | undefined;
|
|
413
466
|
intervalFrequency?: string | undefined;
|
|
414
467
|
}[];
|
|
415
468
|
productId: number;
|
|
@@ -49,6 +49,7 @@ export declare const preparePostPurchaseGroupAdmissionView: (widgetId: number, s
|
|
|
49
49
|
labels: {
|
|
50
50
|
declineAll: string;
|
|
51
51
|
free: string;
|
|
52
|
+
notAvailable: string;
|
|
52
53
|
payNow: string;
|
|
53
54
|
quantity: string;
|
|
54
55
|
recurringShipping: string;
|
|
@@ -309,6 +310,53 @@ export declare const preparePostPurchaseGroupAdmissionView: (widgetId: number, s
|
|
|
309
310
|
selectedId: number;
|
|
310
311
|
} | undefined;
|
|
311
312
|
};
|
|
313
|
+
changeset?: {
|
|
314
|
+
changes: ({
|
|
315
|
+
quantity: number;
|
|
316
|
+
type: "add_variant";
|
|
317
|
+
variantId: number;
|
|
318
|
+
discount?: {
|
|
319
|
+
title: string;
|
|
320
|
+
value: number;
|
|
321
|
+
valueType: "fixed_amount" | "percentage";
|
|
322
|
+
} | undefined;
|
|
323
|
+
} | {
|
|
324
|
+
price: number;
|
|
325
|
+
title: string;
|
|
326
|
+
type: "add_shipping_line";
|
|
327
|
+
} | {
|
|
328
|
+
initialShippingPrice: number;
|
|
329
|
+
recurringShippingPrice: number;
|
|
330
|
+
shippingOption: {
|
|
331
|
+
presentmentTitle: string;
|
|
332
|
+
title: string;
|
|
333
|
+
};
|
|
334
|
+
quantity: number;
|
|
335
|
+
sellingPlanId: number;
|
|
336
|
+
type: "add_subscription";
|
|
337
|
+
variantId: number;
|
|
338
|
+
discount?: {
|
|
339
|
+
title: string;
|
|
340
|
+
value: number;
|
|
341
|
+
valueType: "fixed_amount" | "percentage";
|
|
342
|
+
} | undefined;
|
|
343
|
+
})[];
|
|
344
|
+
} | undefined;
|
|
345
|
+
displayPrice?: {
|
|
346
|
+
currencyCode: string;
|
|
347
|
+
savingFormat: "amount" | "percent";
|
|
348
|
+
savingMinor: number;
|
|
349
|
+
savingPercent: number;
|
|
350
|
+
variantCompareAtPriceMinor: number | null;
|
|
351
|
+
variantPriceMinor: number;
|
|
352
|
+
subscriptionUnit?: {
|
|
353
|
+
comparisonMinor: number;
|
|
354
|
+
currencyCode: string;
|
|
355
|
+
priceMinor: number;
|
|
356
|
+
savingMinor: number;
|
|
357
|
+
savingPercent: number;
|
|
358
|
+
} | undefined;
|
|
359
|
+
} | undefined;
|
|
312
360
|
groupCatalog?: {
|
|
313
361
|
memberProductId: number;
|
|
314
362
|
options: {
|
|
@@ -348,6 +396,7 @@ export declare const preparePostPurchaseGroupAdmissionView: (widgetId: number, s
|
|
|
348
396
|
amount: number;
|
|
349
397
|
type: "price" | "fixed_amount" | "percentage";
|
|
350
398
|
} | undefined;
|
|
399
|
+
discountPercentage?: number | undefined;
|
|
351
400
|
intervalFrequency?: string | undefined;
|
|
352
401
|
}[];
|
|
353
402
|
productId: number;
|
|
@@ -420,6 +469,9 @@ export declare const preparePostPurchaseGroupAdmissionView: (widgetId: number, s
|
|
|
420
469
|
initialVariant?: {
|
|
421
470
|
variantId: number;
|
|
422
471
|
} | undefined;
|
|
472
|
+
labels?: {
|
|
473
|
+
notAvailable: string;
|
|
474
|
+
} | undefined;
|
|
423
475
|
planCatalog?: {
|
|
424
476
|
plans: {
|
|
425
477
|
id: number;
|
|
@@ -429,6 +481,7 @@ export declare const preparePostPurchaseGroupAdmissionView: (widgetId: number, s
|
|
|
429
481
|
amount: number;
|
|
430
482
|
type: "price" | "fixed_amount" | "percentage";
|
|
431
483
|
} | undefined;
|
|
484
|
+
discountPercentage?: number | undefined;
|
|
432
485
|
intervalFrequency?: string | undefined;
|
|
433
486
|
}[];
|
|
434
487
|
productId: number;
|
|
@@ -12,6 +12,7 @@ export declare const preparePostPurchaseGroupDefault: (widgetId: number, setting
|
|
|
12
12
|
labels: {
|
|
13
13
|
declineAll: string;
|
|
14
14
|
free: string;
|
|
15
|
+
notAvailable: string;
|
|
15
16
|
payNow: string;
|
|
16
17
|
quantity: string;
|
|
17
18
|
recurringShipping: string;
|
|
@@ -272,6 +273,53 @@ export declare const preparePostPurchaseGroupDefault: (widgetId: number, setting
|
|
|
272
273
|
selectedId: number;
|
|
273
274
|
} | undefined;
|
|
274
275
|
};
|
|
276
|
+
changeset?: {
|
|
277
|
+
changes: ({
|
|
278
|
+
quantity: number;
|
|
279
|
+
type: "add_variant";
|
|
280
|
+
variantId: number;
|
|
281
|
+
discount?: {
|
|
282
|
+
title: string;
|
|
283
|
+
value: number;
|
|
284
|
+
valueType: "fixed_amount" | "percentage";
|
|
285
|
+
} | undefined;
|
|
286
|
+
} | {
|
|
287
|
+
price: number;
|
|
288
|
+
title: string;
|
|
289
|
+
type: "add_shipping_line";
|
|
290
|
+
} | {
|
|
291
|
+
initialShippingPrice: number;
|
|
292
|
+
recurringShippingPrice: number;
|
|
293
|
+
shippingOption: {
|
|
294
|
+
presentmentTitle: string;
|
|
295
|
+
title: string;
|
|
296
|
+
};
|
|
297
|
+
quantity: number;
|
|
298
|
+
sellingPlanId: number;
|
|
299
|
+
type: "add_subscription";
|
|
300
|
+
variantId: number;
|
|
301
|
+
discount?: {
|
|
302
|
+
title: string;
|
|
303
|
+
value: number;
|
|
304
|
+
valueType: "fixed_amount" | "percentage";
|
|
305
|
+
} | undefined;
|
|
306
|
+
})[];
|
|
307
|
+
} | undefined;
|
|
308
|
+
displayPrice?: {
|
|
309
|
+
currencyCode: string;
|
|
310
|
+
savingFormat: "amount" | "percent";
|
|
311
|
+
savingMinor: number;
|
|
312
|
+
savingPercent: number;
|
|
313
|
+
variantCompareAtPriceMinor: number | null;
|
|
314
|
+
variantPriceMinor: number;
|
|
315
|
+
subscriptionUnit?: {
|
|
316
|
+
comparisonMinor: number;
|
|
317
|
+
currencyCode: string;
|
|
318
|
+
priceMinor: number;
|
|
319
|
+
savingMinor: number;
|
|
320
|
+
savingPercent: number;
|
|
321
|
+
} | undefined;
|
|
322
|
+
} | undefined;
|
|
275
323
|
groupCatalog?: {
|
|
276
324
|
memberProductId: number;
|
|
277
325
|
options: {
|
|
@@ -308,6 +356,7 @@ export declare const preparePostPurchaseGroupDefault: (widgetId: number, setting
|
|
|
308
356
|
amount: number;
|
|
309
357
|
type: "price" | "fixed_amount" | "percentage";
|
|
310
358
|
} | undefined;
|
|
359
|
+
discountPercentage?: number | undefined;
|
|
311
360
|
intervalFrequency?: string | undefined;
|
|
312
361
|
}[];
|
|
313
362
|
productId: number;
|
|
@@ -380,6 +429,9 @@ export declare const preparePostPurchaseGroupDefault: (widgetId: number, setting
|
|
|
380
429
|
};
|
|
381
430
|
}[];
|
|
382
431
|
} | undefined;
|
|
432
|
+
labels?: {
|
|
433
|
+
notAvailable: string;
|
|
434
|
+
} | undefined;
|
|
383
435
|
planCatalog?: {
|
|
384
436
|
plans: {
|
|
385
437
|
id: number;
|
|
@@ -389,6 +441,7 @@ export declare const preparePostPurchaseGroupDefault: (widgetId: number, setting
|
|
|
389
441
|
amount: number;
|
|
390
442
|
type: "price" | "fixed_amount" | "percentage";
|
|
391
443
|
} | undefined;
|
|
444
|
+
discountPercentage?: number | undefined;
|
|
392
445
|
intervalFrequency?: string | undefined;
|
|
393
446
|
}[];
|
|
394
447
|
productId: number;
|
|
@@ -48,6 +48,7 @@ export declare const preparePostPurchaseGroupView: (widgetId: number, settings:
|
|
|
48
48
|
labels: {
|
|
49
49
|
declineAll: string;
|
|
50
50
|
free: string;
|
|
51
|
+
notAvailable: string;
|
|
51
52
|
payNow: string;
|
|
52
53
|
quantity: string;
|
|
53
54
|
recurringShipping: string;
|
|
@@ -308,6 +309,53 @@ export declare const preparePostPurchaseGroupView: (widgetId: number, settings:
|
|
|
308
309
|
selectedId: number;
|
|
309
310
|
} | undefined;
|
|
310
311
|
};
|
|
312
|
+
changeset?: {
|
|
313
|
+
changes: ({
|
|
314
|
+
quantity: number;
|
|
315
|
+
type: "add_variant";
|
|
316
|
+
variantId: number;
|
|
317
|
+
discount?: {
|
|
318
|
+
title: string;
|
|
319
|
+
value: number;
|
|
320
|
+
valueType: "fixed_amount" | "percentage";
|
|
321
|
+
} | undefined;
|
|
322
|
+
} | {
|
|
323
|
+
price: number;
|
|
324
|
+
title: string;
|
|
325
|
+
type: "add_shipping_line";
|
|
326
|
+
} | {
|
|
327
|
+
initialShippingPrice: number;
|
|
328
|
+
recurringShippingPrice: number;
|
|
329
|
+
shippingOption: {
|
|
330
|
+
presentmentTitle: string;
|
|
331
|
+
title: string;
|
|
332
|
+
};
|
|
333
|
+
quantity: number;
|
|
334
|
+
sellingPlanId: number;
|
|
335
|
+
type: "add_subscription";
|
|
336
|
+
variantId: number;
|
|
337
|
+
discount?: {
|
|
338
|
+
title: string;
|
|
339
|
+
value: number;
|
|
340
|
+
valueType: "fixed_amount" | "percentage";
|
|
341
|
+
} | undefined;
|
|
342
|
+
})[];
|
|
343
|
+
} | undefined;
|
|
344
|
+
displayPrice?: {
|
|
345
|
+
currencyCode: string;
|
|
346
|
+
savingFormat: "amount" | "percent";
|
|
347
|
+
savingMinor: number;
|
|
348
|
+
savingPercent: number;
|
|
349
|
+
variantCompareAtPriceMinor: number | null;
|
|
350
|
+
variantPriceMinor: number;
|
|
351
|
+
subscriptionUnit?: {
|
|
352
|
+
comparisonMinor: number;
|
|
353
|
+
currencyCode: string;
|
|
354
|
+
priceMinor: number;
|
|
355
|
+
savingMinor: number;
|
|
356
|
+
savingPercent: number;
|
|
357
|
+
} | undefined;
|
|
358
|
+
} | undefined;
|
|
311
359
|
groupCatalog?: {
|
|
312
360
|
memberProductId: number;
|
|
313
361
|
options: {
|
|
@@ -347,6 +395,7 @@ export declare const preparePostPurchaseGroupView: (widgetId: number, settings:
|
|
|
347
395
|
amount: number;
|
|
348
396
|
type: "price" | "fixed_amount" | "percentage";
|
|
349
397
|
} | undefined;
|
|
398
|
+
discountPercentage?: number | undefined;
|
|
350
399
|
intervalFrequency?: string | undefined;
|
|
351
400
|
}[];
|
|
352
401
|
productId: number;
|
|
@@ -419,6 +468,9 @@ export declare const preparePostPurchaseGroupView: (widgetId: number, settings:
|
|
|
419
468
|
initialVariant?: {
|
|
420
469
|
variantId: number;
|
|
421
470
|
} | undefined;
|
|
471
|
+
labels?: {
|
|
472
|
+
notAvailable: string;
|
|
473
|
+
} | undefined;
|
|
422
474
|
planCatalog?: {
|
|
423
475
|
plans: {
|
|
424
476
|
id: number;
|
|
@@ -428,6 +480,7 @@ export declare const preparePostPurchaseGroupView: (widgetId: number, settings:
|
|
|
428
480
|
amount: number;
|
|
429
481
|
type: "price" | "fixed_amount" | "percentage";
|
|
430
482
|
} | undefined;
|
|
483
|
+
discountPercentage?: number | undefined;
|
|
431
484
|
intervalFrequency?: string | undefined;
|
|
432
485
|
}[];
|
|
433
486
|
productId: number;
|