delivapp-ordering 0.0.154 → 0.0.156

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.
@@ -167,3 +167,7 @@ export declare const IconCoupon: {
167
167
  (props: IconProps): React.JSX.Element;
168
168
  displayName: string;
169
169
  };
170
+ export declare const IconVoucher: {
171
+ (props: IconProps): React.JSX.Element;
172
+ displayName: string;
173
+ };
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import './style.scss';
3
3
  import { BagesPaymentsOrderSummaryProps } from '../BagesPaymentsOrderSummary';
4
- import { DELIVERY_TYPE, DISCOUNT_TYPE } from '../../enums/enums';
4
+ import { CURRENCY, DELIVERY_TYPE, DISCOUNT_TYPE } from '../../enums/enums';
5
5
  export interface OrderSummaryProps extends BagesPaymentsOrderSummaryProps {
6
6
  customConfirmButton?: string;
7
7
  discountType?: DISCOUNT_TYPE;
@@ -48,5 +48,12 @@ export interface OrderSummaryProps extends BagesPaymentsOrderSummaryProps {
48
48
  canManageDiscount: boolean;
49
49
  debounce: number;
50
50
  autofocus?: boolean;
51
+ bonusCard?: {
52
+ bonus: number;
53
+ name: string;
54
+ expiration: Date;
55
+ checkoutLimitPercent: number;
56
+ currency: CURRENCY;
57
+ } | null;
51
58
  }
52
- export declare const OrderSummary: ({ customConfirmButton, accumulatedPurchaseBonus, discount, minimum, finalDeliveryPrice, currency, offerType, coupon, fullPrice, discounts, deliveryType, deliveryPrice, serviceFee, topupToMinimum, driverTip, hideCoupon, paymentBalance, weightAdjustmentPriceBuffer, finalPrice, setCoupon, disabledConfirm, onConfirm, customDiscount, customDiscountValue, setCustomDiscountValue, customFields, finalCharge, canceledOfferIds, toggleOffer, recalculateDiscounts, disableRecalculateDiscounts, showRecalculateDiscounts, onChangeRecalculateDiscounts, canManageDiscount, autofocus, }: OrderSummaryProps) => React.JSX.Element;
59
+ export declare const OrderSummary: ({ customConfirmButton, accumulatedPurchaseBonus, discount, minimum, finalDeliveryPrice, currency, offerType, coupon, fullPrice, discounts, deliveryType, deliveryPrice, serviceFee, topupToMinimum, driverTip, hideCoupon, paymentBalance, weightAdjustmentPriceBuffer, finalPrice, setCoupon, disabledConfirm, onConfirm, customDiscount, customDiscountValue, setCustomDiscountValue, customFields, finalCharge, canceledOfferIds, toggleOffer, recalculateDiscounts, disableRecalculateDiscounts, showRecalculateDiscounts, onChangeRecalculateDiscounts, canManageDiscount, autofocus, bonusCard, }: OrderSummaryProps) => React.JSX.Element;
@@ -84,6 +84,8 @@ declare const _default: {
84
84
  weightAdjustmentTooltip: string;
85
85
  total: string;
86
86
  confirm: string;
87
+ bonusCardExpiration: string;
88
+ bonusCardTooltip: string;
87
89
  };
88
90
  deliveryControl: {
89
91
  pickUp: string;
package/dist/index.d.ts CHANGED
@@ -115,8 +115,15 @@ interface OrderSummaryProps extends BagesPaymentsOrderSummaryProps {
115
115
  canManageDiscount: boolean;
116
116
  debounce: number;
117
117
  autofocus?: boolean;
118
+ bonusCard?: {
119
+ bonus: number;
120
+ name: string;
121
+ expiration: Date;
122
+ checkoutLimitPercent: number;
123
+ currency: CURRENCY;
124
+ } | null;
118
125
  }
119
- declare const OrderSummary: ({ customConfirmButton, accumulatedPurchaseBonus, discount, minimum, finalDeliveryPrice, currency, offerType, coupon, fullPrice, discounts, deliveryType, deliveryPrice, serviceFee, topupToMinimum, driverTip, hideCoupon, paymentBalance, weightAdjustmentPriceBuffer, finalPrice, setCoupon, disabledConfirm, onConfirm, customDiscount, customDiscountValue, setCustomDiscountValue, customFields, finalCharge, canceledOfferIds, toggleOffer, recalculateDiscounts, disableRecalculateDiscounts, showRecalculateDiscounts, onChangeRecalculateDiscounts, canManageDiscount, autofocus, }: OrderSummaryProps) => React__default.JSX.Element;
126
+ declare const OrderSummary: ({ customConfirmButton, accumulatedPurchaseBonus, discount, minimum, finalDeliveryPrice, currency, offerType, coupon, fullPrice, discounts, deliveryType, deliveryPrice, serviceFee, topupToMinimum, driverTip, hideCoupon, paymentBalance, weightAdjustmentPriceBuffer, finalPrice, setCoupon, disabledConfirm, onConfirm, customDiscount, customDiscountValue, setCustomDiscountValue, customFields, finalCharge, canceledOfferIds, toggleOffer, recalculateDiscounts, disableRecalculateDiscounts, showRecalculateDiscounts, onChangeRecalculateDiscounts, canManageDiscount, autofocus, bonusCard, }: OrderSummaryProps) => React__default.JSX.Element;
120
127
 
121
128
  interface CheckoutFormItemProps {
122
129
  label: string;
@@ -324,6 +331,10 @@ declare const IconCategorySelected: {
324
331
  declare const IconCoupon: {
325
332
  (props: IconProps): React__default.JSX.Element;
326
333
  displayName: string;
334
+ };
335
+ declare const IconVoucher: {
336
+ (props: IconProps): React__default.JSX.Element;
337
+ displayName: string;
327
338
  };
328
339
 
329
340
  interface Ingredient {
@@ -678,4 +689,4 @@ interface QuantityDescriptionProps {
678
689
  }
679
690
  declare const QuantityDescription: ({ free_budget, max }: QuantityDescriptionProps) => React__default.JSX.Element;
680
691
 
681
- export { BagesPaymentsOrderSummary, BagesPaymentsOrderSummaryProps, CROP_MODE, CURRENCY, Checkbox, CheckboxProps, CheckoutFormItem, CheckoutFormItemProps, CounterButton, CounterButtonProps, CutleryButton, CutleryButtonProps, DELIVERY_TYPE, DISCOUNT_TARGET, DISCOUNT_TYPE, DeliveryControl, DeliveryControlProps, GRAVITY_MODE, GiftControl, GiftControlProps, HALF_OPTION, INGREDIENTS, IOption, IProductSaved, ISuboption, IconBicycle, IconCarbonScooter, IconCart, IconCategorySelected, IconClearCart, IconClockAfternoon, IconClose, IconCopy, IconCoupon, IconCutlery, IconDinein, IconDone, IconEditPen, IconGift, IconGiftCard, IconImportant, IconLeftOption, IconMan, IconMapPin, IconMinus, IconMoto, IconMute, IconNoGluten, IconPause, IconPercent, IconPersonSimpleWalk, IconPlay, IconPlus, IconProps, IconRightOption, IconSearch, IconShare, IconSparkle, IconSpicy, IconStar, IconStarBorder, IconTrash, IconUnmute, IconVegan, IconWarning, IconWeighted, IconWholeOption, IngredientsSelector, IngredientsSelectorProps, Input, InputProps, Media, MediaProp, OrderSummary, OrderSummaryProps, OrderSummaryWithProducts, OrderSummaryWithProductsProps, ProductConstructor, ProductConstructorProps, ProductPreview, ProductPreviewList, ProductPreviewListProps, ProductPreviewProp, ProductTags, ProductTagsProps, QUALITY_MODE, QuantityDescription, QuantityDescriptionProps, RestaurantHeader, RestaurantHeaderProps, Stepper, StepperProps, SuboptionMultiSelector, SuboptionMultiSelectorProps, SuboptionRadioSelector, SuboptionRadioSelectorProps, TabsControl, TabsControlProps, TranslationUIProvider, Warning, WarningProps, checkRespectTo, convertToServerModelOptions, mergeOption, mergeProduct, prepareHalfOptions };
692
+ export { BagesPaymentsOrderSummary, BagesPaymentsOrderSummaryProps, CROP_MODE, CURRENCY, Checkbox, CheckboxProps, CheckoutFormItem, CheckoutFormItemProps, CounterButton, CounterButtonProps, CutleryButton, CutleryButtonProps, DELIVERY_TYPE, DISCOUNT_TARGET, DISCOUNT_TYPE, DeliveryControl, DeliveryControlProps, GRAVITY_MODE, GiftControl, GiftControlProps, HALF_OPTION, INGREDIENTS, IOption, IProductSaved, ISuboption, IconBicycle, IconCarbonScooter, IconCart, IconCategorySelected, IconClearCart, IconClockAfternoon, IconClose, IconCopy, IconCoupon, IconCutlery, IconDinein, IconDone, IconEditPen, IconGift, IconGiftCard, IconImportant, IconLeftOption, IconMan, IconMapPin, IconMinus, IconMoto, IconMute, IconNoGluten, IconPause, IconPercent, IconPersonSimpleWalk, IconPlay, IconPlus, IconProps, IconRightOption, IconSearch, IconShare, IconSparkle, IconSpicy, IconStar, IconStarBorder, IconTrash, IconUnmute, IconVegan, IconVoucher, IconWarning, IconWeighted, IconWholeOption, IngredientsSelector, IngredientsSelectorProps, Input, InputProps, Media, MediaProp, OrderSummary, OrderSummaryProps, OrderSummaryWithProducts, OrderSummaryWithProductsProps, ProductConstructor, ProductConstructorProps, ProductPreview, ProductPreviewList, ProductPreviewListProps, ProductPreviewProp, ProductTags, ProductTagsProps, QUALITY_MODE, QuantityDescription, QuantityDescriptionProps, RestaurantHeader, RestaurantHeaderProps, Stepper, StepperProps, SuboptionMultiSelector, SuboptionMultiSelectorProps, SuboptionRadioSelector, SuboptionRadioSelectorProps, TabsControl, TabsControlProps, TranslationUIProvider, Warning, WarningProps, checkRespectTo, convertToServerModelOptions, mergeOption, mergeProduct, prepareHalfOptions };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "delivapp-ordering",
3
- "version": "0.0.154",
3
+ "version": "0.0.156",
4
4
  "description": "",
5
5
  "main": "dist/esm/index.js",
6
6
  "module": "dist/cjs/index.js",