@clickmax/checkout-react 12.5.13 → 12.5.16
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.d.ts +92 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -971,6 +971,8 @@ declare type GetPublicOfferCheckout2xx = {
|
|
|
971
971
|
socialProof?: GetPublicOfferCheckout2xxSocialProof;
|
|
972
972
|
/** @nullable */
|
|
973
973
|
checkoutPlugins?: GetPublicOfferCheckout2xxCheckoutPlugins;
|
|
974
|
+
/** @nullable */
|
|
975
|
+
combo?: GetPublicOfferCheckout2xxCombo;
|
|
974
976
|
/**
|
|
975
977
|
* @maxLength 1000
|
|
976
978
|
* @nullable
|
|
@@ -1022,8 +1024,78 @@ declare type GetPublicOfferCheckout2xx = {
|
|
|
1022
1024
|
*/
|
|
1023
1025
|
declare type GetPublicOfferCheckout2xxCheckoutPlugins = {
|
|
1024
1026
|
whatsapp?: GetPublicOfferCheckout2xxCheckoutPluginsWhatsapp;
|
|
1027
|
+
discountPopup?: GetPublicOfferCheckout2xxCheckoutPluginsDiscountPopup;
|
|
1028
|
+
reviews?: GetPublicOfferCheckout2xxCheckoutPluginsReviews;
|
|
1029
|
+
video?: GetPublicOfferCheckout2xxCheckoutPluginsVideo;
|
|
1030
|
+
chat?: GetPublicOfferCheckout2xxCheckoutPluginsChat;
|
|
1031
|
+
combo?: GetPublicOfferCheckout2xxCheckoutPluginsCombo;
|
|
1025
1032
|
} | null;
|
|
1026
1033
|
|
|
1034
|
+
declare type GetPublicOfferCheckout2xxCheckoutPluginsChat = {
|
|
1035
|
+
enabled: boolean;
|
|
1036
|
+
channelId?: string;
|
|
1037
|
+
};
|
|
1038
|
+
|
|
1039
|
+
declare type GetPublicOfferCheckout2xxCheckoutPluginsCombo = {
|
|
1040
|
+
enabled: boolean;
|
|
1041
|
+
/**
|
|
1042
|
+
* @minItems 1
|
|
1043
|
+
* @maxItems 5
|
|
1044
|
+
*/
|
|
1045
|
+
offerIds: string[];
|
|
1046
|
+
/** @minimum 1 */
|
|
1047
|
+
price: number;
|
|
1048
|
+
};
|
|
1049
|
+
|
|
1050
|
+
declare type GetPublicOfferCheckout2xxCheckoutPluginsDiscountPopup = {
|
|
1051
|
+
enabled: boolean;
|
|
1052
|
+
/**
|
|
1053
|
+
* @minLength 1
|
|
1054
|
+
* @maxLength 50
|
|
1055
|
+
*/
|
|
1056
|
+
couponCode: string;
|
|
1057
|
+
/** @maxLength 80 */
|
|
1058
|
+
title: string;
|
|
1059
|
+
/** @maxLength 300 */
|
|
1060
|
+
text: string;
|
|
1061
|
+
};
|
|
1062
|
+
|
|
1063
|
+
declare type GetPublicOfferCheckout2xxCheckoutPluginsReviews = {
|
|
1064
|
+
enabled: boolean;
|
|
1065
|
+
/** @maxItems 10 */
|
|
1066
|
+
items: GetPublicOfferCheckout2xxCheckoutPluginsReviewsItemsItem[];
|
|
1067
|
+
};
|
|
1068
|
+
|
|
1069
|
+
declare type GetPublicOfferCheckout2xxCheckoutPluginsReviewsItemsItem = {
|
|
1070
|
+
/**
|
|
1071
|
+
* @minLength 1
|
|
1072
|
+
* @maxLength 60
|
|
1073
|
+
*/
|
|
1074
|
+
name: string;
|
|
1075
|
+
/**
|
|
1076
|
+
* @maxLength 2048
|
|
1077
|
+
* @nullable
|
|
1078
|
+
* @pattern ^https://
|
|
1079
|
+
*/
|
|
1080
|
+
photo?: string | null;
|
|
1081
|
+
/**
|
|
1082
|
+
* @minimum 1
|
|
1083
|
+
* @maximum 5
|
|
1084
|
+
*/
|
|
1085
|
+
rating: number;
|
|
1086
|
+
/**
|
|
1087
|
+
* @minLength 1
|
|
1088
|
+
* @maxLength 300
|
|
1089
|
+
*/
|
|
1090
|
+
text: string;
|
|
1091
|
+
};
|
|
1092
|
+
|
|
1093
|
+
declare type GetPublicOfferCheckout2xxCheckoutPluginsVideo = {
|
|
1094
|
+
enabled: boolean;
|
|
1095
|
+
/** @pattern ^(https://www\.youtube\.com/watch\?v=[A-Za-z0-9_-]{11}|https://vimeo\.com/[0-9]+(/[A-Za-z0-9]+)?|https://scripts\.converteai\.net/[A-Za-z0-9-]+/players/[A-Za-z0-9]+/v[0-9]+/player\.js)$ */
|
|
1096
|
+
url: string;
|
|
1097
|
+
};
|
|
1098
|
+
|
|
1027
1099
|
declare type GetPublicOfferCheckout2xxCheckoutPluginsWhatsapp = {
|
|
1028
1100
|
enabled: boolean;
|
|
1029
1101
|
/** @pattern ^\+[1-9]\d{7,14}$ */
|
|
@@ -1032,6 +1104,24 @@ declare type GetPublicOfferCheckout2xxCheckoutPluginsWhatsapp = {
|
|
|
1032
1104
|
message: string;
|
|
1033
1105
|
};
|
|
1034
1106
|
|
|
1107
|
+
/**
|
|
1108
|
+
* @nullable
|
|
1109
|
+
*/
|
|
1110
|
+
declare type GetPublicOfferCheckout2xxCombo = {
|
|
1111
|
+
/** @minimum 1 */
|
|
1112
|
+
price: number;
|
|
1113
|
+
items: GetPublicOfferCheckout2xxComboItemsItem[];
|
|
1114
|
+
} | null;
|
|
1115
|
+
|
|
1116
|
+
declare type GetPublicOfferCheckout2xxComboItemsItem = {
|
|
1117
|
+
id: string;
|
|
1118
|
+
/** @maxLength 1000 */
|
|
1119
|
+
name: string;
|
|
1120
|
+
/** @minimum 1 */
|
|
1121
|
+
effectivePrice: number;
|
|
1122
|
+
thumbnail: string;
|
|
1123
|
+
};
|
|
1124
|
+
|
|
1035
1125
|
declare type GetPublicOfferCheckout2xxConfigs = {
|
|
1036
1126
|
opt: GetPublicOfferCheckout2xxConfigsOpt;
|
|
1037
1127
|
oto?: GetPublicOfferCheckout2xxConfigsOto;
|
|
@@ -1607,7 +1697,7 @@ declare type GetPublicOfferCheckout2xxMethods = {
|
|
|
1607
1697
|
maxCharges?: number | null;
|
|
1608
1698
|
};
|
|
1609
1699
|
credit: {
|
|
1610
|
-
active:
|
|
1700
|
+
active: boolean;
|
|
1611
1701
|
installments: {
|
|
1612
1702
|
/**
|
|
1613
1703
|
* @minimum 1
|
|
@@ -1941,6 +2031,7 @@ declare type OfferCheckoutBody = ({
|
|
|
1941
2031
|
linkCheckout: string;
|
|
1942
2032
|
recaptcha: string;
|
|
1943
2033
|
couponCode?: string;
|
|
2034
|
+
combo?: boolean;
|
|
1944
2035
|
freightMethod?: TransactionFreightMethod;
|
|
1945
2036
|
isForeign?: boolean;
|
|
1946
2037
|
language?: LanguageSchema;
|