@bigcommerce/checkout-sdk 1.271.2 → 1.271.3

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.
Files changed (349) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/dist/checkout-button.d.ts +671 -651
  3. package/dist/checkout-button.js +1 -1
  4. package/dist/checkout-button.umd.js +1 -1
  5. package/dist/checkout-sdk.d.ts +7275 -763
  6. package/dist/checkout-sdk.js +1 -1
  7. package/dist/checkout-sdk.umd.js +1 -1
  8. package/dist/embedded-checkout.d.ts +242 -218
  9. package/dist/internal-mappers.d.ts +762 -763
  10. package/dist/tsdoc-metadata.json +11 -11
  11. package/docs/README.md +756 -126
  12. package/docs/classes/CartChangedError.md +76 -0
  13. package/docs/classes/CheckoutButtonErrorSelector.md +52 -0
  14. package/docs/classes/CheckoutButtonInitializer.md +177 -0
  15. package/docs/classes/CheckoutButtonStatusSelector.md +52 -0
  16. package/docs/classes/CheckoutService.md +1645 -0
  17. package/docs/classes/CurrencyService.md +54 -0
  18. package/docs/classes/EmbeddedCheckout.md +40 -0
  19. package/docs/classes/LanguageService.md +101 -0
  20. package/docs/classes/RequestError.md +106 -0
  21. package/docs/classes/StandardError.md +71 -0
  22. package/docs/enums/AmazonPayV2CheckoutLanguage.md +57 -0
  23. package/docs/enums/AmazonPayV2LedgerCurrency.md +36 -0
  24. package/docs/enums/AmazonPayV2PayOptions.md +26 -0
  25. package/docs/enums/AmazonPayV2Placement.md +53 -0
  26. package/docs/enums/BraintreeFormFieldType.md +50 -0
  27. package/docs/enums/ButtonColor.md +29 -0
  28. package/docs/enums/ButtonType.md +22 -0
  29. package/docs/enums/CheckoutButtonMethodType.md +141 -0
  30. package/docs/enums/CheckoutIncludes.md +29 -0
  31. package/docs/enums/EmbeddedCheckoutEventType.md +50 -0
  32. package/docs/enums/HostedFieldType.md +50 -0
  33. package/docs/enums/HostedInputEventType.md +85 -0
  34. package/docs/enums/IconStyle.md +22 -0
  35. package/docs/enums/PaypalButtonStyleColorOption.md +36 -0
  36. package/docs/enums/PaypalButtonStyleLabelOption.md +43 -0
  37. package/docs/enums/PaypalButtonStyleLayoutOption.md +22 -0
  38. package/docs/enums/PaypalButtonStyleShapeOption.md +22 -0
  39. package/docs/enums/PaypalButtonStyleSizeOption.md +36 -0
  40. package/docs/enums/PaypalCommerceFormFieldType.md +50 -0
  41. package/docs/enums/RadiusUnit.md +22 -0
  42. package/docs/enums/StyleButtonColor.md +43 -0
  43. package/docs/enums/StyleButtonLabel.md +43 -0
  44. package/docs/enums/StyleButtonLayout.md +22 -0
  45. package/docs/enums/StyleButtonShape.md +22 -0
  46. package/docs/interfaces/Address.md +164 -0
  47. package/docs/interfaces/AddressRequestBody.md +100 -0
  48. package/docs/interfaces/AdyenAdditionalActionCallbacks.md +68 -0
  49. package/docs/interfaces/AdyenAdditionalActionCallbacks_2.md +66 -0
  50. package/docs/interfaces/AdyenAdditionalActionOptions.md +106 -0
  51. package/docs/interfaces/AdyenAdditionalActionOptions_2.md +106 -0
  52. package/docs/interfaces/AdyenBaseCardComponentOptions.md +33 -0
  53. package/docs/interfaces/AdyenBaseCardComponentOptions_2.md +33 -0
  54. package/docs/interfaces/AdyenComponent.md +72 -0
  55. package/docs/interfaces/AdyenComponentEvents.md +74 -0
  56. package/docs/interfaces/AdyenComponentEvents_2.md +74 -0
  57. package/docs/interfaces/AdyenComponent_2.md +72 -0
  58. package/docs/interfaces/AdyenCreditCardComponentOptions.md +185 -0
  59. package/docs/interfaces/AdyenIdealComponentOptions.md +17 -0
  60. package/docs/interfaces/AdyenPaymentMethodState.md +21 -0
  61. package/docs/interfaces/AdyenPaymentMethodState_2.md +15 -0
  62. package/docs/interfaces/AdyenPlaceholderData.md +33 -0
  63. package/docs/interfaces/AdyenPlaceholderData_2.md +33 -0
  64. package/docs/interfaces/AdyenThreeDS2Options.md +97 -0
  65. package/docs/interfaces/AdyenV2PaymentInitializeOptions.md +161 -0
  66. package/docs/interfaces/AdyenV3CreditCardComponentOptions.md +185 -0
  67. package/docs/interfaces/AdyenV3PaymentInitializeOptions.md +135 -0
  68. package/docs/interfaces/AmazonPayCustomerInitializeOptions.md +65 -0
  69. package/docs/interfaces/AmazonPayOrderReference.md +30 -0
  70. package/docs/interfaces/AmazonPayPaymentInitializeOptions.md +100 -0
  71. package/docs/interfaces/AmazonPayShippingInitializeOptions.md +85 -0
  72. package/docs/interfaces/AmazonPayV2ButtonParams.md +71 -0
  73. package/docs/interfaces/AmazonPayV2CheckoutSession.md +35 -0
  74. package/docs/interfaces/AmazonPayV2CustomerInitializeOptions.md +24 -0
  75. package/docs/interfaces/AmazonPayV2PaymentInitializeOptions.md +39 -0
  76. package/docs/interfaces/AmazonPayV2ShippingInitializeOptions.md +26 -0
  77. package/docs/interfaces/AmazonPayWidgetError.md +25 -0
  78. package/docs/interfaces/ApplePayButtonInitializeOptions.md +38 -0
  79. package/docs/interfaces/ApplePayCustomerInitializeOptions.md +77 -0
  80. package/docs/interfaces/ApplePayPaymentInitializeOptions.md +40 -0
  81. package/docs/interfaces/BankInstrument.md +112 -0
  82. package/docs/interfaces/Banner.md +22 -0
  83. package/docs/interfaces/BaseAccountInstrument.md +91 -0
  84. package/docs/interfaces/BaseElementOptions.md +17 -0
  85. package/docs/interfaces/BaseElementOptions_2.md +48 -0
  86. package/docs/interfaces/BaseIndividualElementOptions.md +67 -0
  87. package/docs/interfaces/BaseInstrument.md +58 -0
  88. package/docs/interfaces/BillingAddress.md +182 -0
  89. package/docs/interfaces/BillingAddressRequestBody.md +153 -0
  90. package/docs/interfaces/BlockElementStyles.md +105 -0
  91. package/docs/interfaces/BlueSnapV2PaymentInitializeOptions.md +72 -0
  92. package/docs/interfaces/BlueSnapV2StyleProps.md +29 -0
  93. package/docs/interfaces/BodyStyles.md +15 -0
  94. package/docs/interfaces/BoltCustomerInitializeOptions.md +30 -0
  95. package/docs/interfaces/BoltPaymentInitializeOptions.md +94 -0
  96. package/docs/interfaces/BraintreeError.md +35 -0
  97. package/docs/interfaces/BraintreeFormFieldCardTypeChangeEventData.md +15 -0
  98. package/docs/interfaces/BraintreeFormFieldKeyboardEventData.md +15 -0
  99. package/docs/interfaces/BraintreeFormFieldOptions.md +35 -0
  100. package/docs/interfaces/BraintreeFormFieldStylesMap.md +29 -0
  101. package/docs/interfaces/BraintreeFormFieldValidateErrorData.md +29 -0
  102. package/docs/interfaces/BraintreeFormFieldValidateEventData.md +33 -0
  103. package/docs/interfaces/BraintreeFormFieldsMap.md +36 -0
  104. package/docs/interfaces/BraintreeFormOptions.md +110 -0
  105. package/docs/interfaces/BraintreePaymentInitializeOptions.md +101 -0
  106. package/docs/interfaces/BraintreePaypalButtonInitializeOptions.md +96 -0
  107. package/docs/interfaces/BraintreePaypalCreditButtonInitializeOptions.md +87 -0
  108. package/docs/interfaces/BraintreeStoredCardFieldOptions.md +54 -0
  109. package/docs/interfaces/BraintreeStoredCardFieldsMap.md +22 -0
  110. package/docs/interfaces/BraintreeThreeDSecureOptions.md +51 -0
  111. package/docs/interfaces/BraintreeVenmoButtonInitializeOptions.md +27 -0
  112. package/docs/interfaces/BraintreeVerifyPayload.md +51 -0
  113. package/docs/interfaces/BraintreeVisaCheckoutCustomerInitializeOptions.md +35 -0
  114. package/docs/interfaces/BraintreeVisaCheckoutPaymentInitializeOptions.md +70 -0
  115. package/docs/interfaces/BrowserInfo.md +50 -0
  116. package/docs/interfaces/ButtonResponse.md +19 -0
  117. package/docs/interfaces/ButtonStyles.md +141 -0
  118. package/docs/interfaces/CardCvcElementOptions.md +72 -0
  119. package/docs/interfaces/CardDataPaymentMethodState.md +15 -0
  120. package/docs/interfaces/CardDataPaymentMethodState_2.md +15 -0
  121. package/docs/interfaces/CardElementOptions.md +91 -0
  122. package/docs/interfaces/CardExpiryElementOptions.md +72 -0
  123. package/docs/interfaces/CardInstrument.md +115 -0
  124. package/docs/interfaces/CardNumberElementOptions.md +88 -0
  125. package/docs/interfaces/CardPaymentMethodState.md +60 -0
  126. package/docs/interfaces/CardPaymentMethodState_2.md +43 -0
  127. package/docs/interfaces/CardState.md +40 -0
  128. package/docs/interfaces/CardStateErrors.md +7 -0
  129. package/docs/interfaces/CardStateErrors_2.md +7 -0
  130. package/docs/interfaces/CardState_2.md +40 -0
  131. package/docs/interfaces/Cart.md +99 -0
  132. package/docs/interfaces/ChasePayCustomerInitializeOptions.md +15 -0
  133. package/docs/interfaces/ChasePayInitializeOptions.md +98 -0
  134. package/docs/interfaces/CheckableInputStyles.md +175 -0
  135. package/docs/interfaces/ChecklistStyles.md +127 -0
  136. package/docs/interfaces/Checkout.md +195 -0
  137. package/docs/interfaces/CheckoutButtonInitializeOptions.md +244 -0
  138. package/docs/interfaces/CheckoutButtonInitializerOptions.md +22 -0
  139. package/docs/interfaces/CheckoutButtonOptions.md +55 -0
  140. package/docs/interfaces/CheckoutButtonSelectors.md +22 -0
  141. package/docs/interfaces/CheckoutParams.md +15 -0
  142. package/docs/interfaces/CheckoutPayment.md +42 -0
  143. package/docs/interfaces/CheckoutRequestBody.md +15 -0
  144. package/docs/interfaces/CheckoutSelectors.md +29 -0
  145. package/docs/interfaces/CheckoutServiceOptions.md +36 -0
  146. package/docs/interfaces/CheckoutSettings.md +201 -0
  147. package/docs/interfaces/CheckoutStoreErrorSelector.md +636 -0
  148. package/docs/interfaces/CheckoutStoreSelector.md +501 -0
  149. package/docs/interfaces/CheckoutStoreStatusSelector.md +758 -0
  150. package/docs/interfaces/Consignment.md +71 -0
  151. package/docs/interfaces/ConsignmentAssignmentBaseRequestBodyWithAddress.md +29 -0
  152. package/docs/interfaces/ConsignmentAssignmentBaseRequestBodyWithShippingAddress.md +29 -0
  153. package/docs/interfaces/ConsignmentCreateRequestBody.md +36 -0
  154. package/docs/interfaces/ConsignmentLineItem.md +22 -0
  155. package/docs/interfaces/ConsignmentPickupOption.md +15 -0
  156. package/docs/interfaces/ConsignmentUpdateRequestBody.md +43 -0
  157. package/docs/interfaces/Coordinates.md +22 -0
  158. package/docs/interfaces/Country.md +43 -0
  159. package/docs/interfaces/Coupon.md +43 -0
  160. package/docs/interfaces/CreditCardInstrument.md +85 -0
  161. package/docs/interfaces/CreditCardPaymentInitializeOptions.md +91 -0
  162. package/docs/interfaces/CreditCardPlaceHolder.md +29 -0
  163. package/docs/interfaces/CreditCardPlaceHolder_2.md +29 -0
  164. package/docs/interfaces/CssProperties.md +211 -0
  165. package/docs/interfaces/CssProperties_2.md +211 -0
  166. package/docs/interfaces/Currency.md +36 -0
  167. package/docs/interfaces/CustomError.md +43 -0
  168. package/docs/interfaces/CustomItem.md +50 -0
  169. package/docs/interfaces/Customer.md +84 -0
  170. package/docs/interfaces/CustomerAccountRequestBody.md +50 -0
  171. package/docs/interfaces/CustomerAddress.md +182 -0
  172. package/docs/interfaces/CustomerCredentials.md +22 -0
  173. package/docs/interfaces/CustomerGroup.md +22 -0
  174. package/docs/interfaces/CustomerInitializeOptions.md +221 -0
  175. package/docs/interfaces/CustomerPasswordRequirements.md +36 -0
  176. package/docs/interfaces/CustomerRequestOptions.md +60 -0
  177. package/docs/interfaces/DigitalItem.md +310 -0
  178. package/docs/interfaces/DigitalRiverElementClasses.md +67 -0
  179. package/docs/interfaces/DigitalRiverPaymentInitializeOptions.md +146 -0
  180. package/docs/interfaces/Discount.md +22 -0
  181. package/docs/interfaces/EmbeddedCheckoutCompleteEvent.md +15 -0
  182. package/docs/interfaces/EmbeddedCheckoutError.md +29 -0
  183. package/docs/interfaces/EmbeddedCheckoutErrorEvent.md +22 -0
  184. package/docs/interfaces/EmbeddedCheckoutFrameErrorEvent.md +22 -0
  185. package/docs/interfaces/EmbeddedCheckoutFrameLoadedEvent.md +22 -0
  186. package/docs/interfaces/EmbeddedCheckoutLoadedEvent.md +15 -0
  187. package/docs/interfaces/EmbeddedCheckoutMessenger.md +109 -0
  188. package/docs/interfaces/EmbeddedCheckoutMessengerOptions.md +22 -0
  189. package/docs/interfaces/EmbeddedCheckoutOptions.md +134 -0
  190. package/docs/interfaces/EmbeddedCheckoutSignedOutEvent.md +15 -0
  191. package/docs/interfaces/EmbeddedCheckoutStyles.md +141 -0
  192. package/docs/interfaces/EmbeddedContentOptions.md +15 -0
  193. package/docs/interfaces/ExecutePaymentMethodCheckoutOptions.md +76 -0
  194. package/docs/interfaces/FlashMessage.md +29 -0
  195. package/docs/interfaces/FormField.md +113 -0
  196. package/docs/interfaces/FormFieldItem.md +22 -0
  197. package/docs/interfaces/FormFieldOptions.md +29 -0
  198. package/docs/interfaces/FormFields.md +29 -0
  199. package/docs/interfaces/GatewayOrderPayment.md +108 -0
  200. package/docs/interfaces/GiftCertificate.md +43 -0
  201. package/docs/interfaces/GiftCertificateItem.md +78 -0
  202. package/docs/interfaces/GiftCertificateOrderPayment.md +94 -0
  203. package/docs/interfaces/GooglePayButtonInitializeOptions.md +31 -0
  204. package/docs/interfaces/GooglePayCustomerInitializeOptions.md +42 -0
  205. package/docs/interfaces/GooglePayPaymentInitializeOptions.md +93 -0
  206. package/docs/interfaces/HostedCardFieldOptions.md +35 -0
  207. package/docs/interfaces/HostedCardFieldOptionsMap.md +36 -0
  208. package/docs/interfaces/HostedFieldStylesMap.md +29 -0
  209. package/docs/interfaces/HostedFormOptions.md +114 -0
  210. package/docs/interfaces/HostedInputBlurEvent.md +28 -0
  211. package/docs/interfaces/HostedInputCardTypeChangeEvent.md +28 -0
  212. package/docs/interfaces/HostedInputEnterEvent.md +28 -0
  213. package/docs/interfaces/HostedInputFocusEvent.md +28 -0
  214. package/docs/interfaces/HostedInputValidateErrorData.md +29 -0
  215. package/docs/interfaces/HostedInputValidateErrorDataMap.md +50 -0
  216. package/docs/interfaces/HostedInputValidateEvent.md +22 -0
  217. package/docs/interfaces/HostedInputValidateResults.md +22 -0
  218. package/docs/interfaces/HostedInstrument.md +22 -0
  219. package/docs/interfaces/HostedStoredCardFieldOptions.md +54 -0
  220. package/docs/interfaces/HostedStoredCardFieldOptionsMap.md +22 -0
  221. package/docs/interfaces/IbanElementOptions.md +82 -0
  222. package/docs/interfaces/IdealElementOptions.md +70 -0
  223. package/docs/interfaces/IndividualCardElementOptions.md +36 -0
  224. package/docs/interfaces/InitializationStrategy.md +21 -0
  225. package/docs/interfaces/InlineElementStyles.md +53 -0
  226. package/docs/interfaces/InputDetail.md +80 -0
  227. package/docs/interfaces/InputDetail_2.md +80 -0
  228. package/docs/interfaces/InputStyles.md +152 -0
  229. package/docs/interfaces/Item.md +22 -0
  230. package/docs/interfaces/Item_2.md +26 -0
  231. package/docs/interfaces/Item_3.md +26 -0
  232. package/docs/interfaces/KlarnaLoadResponse.md +28 -0
  233. package/docs/interfaces/KlarnaLoadResponse_2.md +28 -0
  234. package/docs/interfaces/KlarnaPaymentInitializeOptions.md +73 -0
  235. package/docs/interfaces/KlarnaV2PaymentInitializeOptions.md +73 -0
  236. package/docs/interfaces/LabelStyles.md +76 -0
  237. package/docs/interfaces/LanguageConfig.md +57 -0
  238. package/docs/interfaces/LineItem.md +191 -0
  239. package/docs/interfaces/LineItemCategory.md +15 -0
  240. package/docs/interfaces/LineItemMap.md +36 -0
  241. package/docs/interfaces/LineItemOption.md +36 -0
  242. package/docs/interfaces/LineItemSocialData.md +36 -0
  243. package/docs/interfaces/LinkStyles.md +90 -0
  244. package/docs/interfaces/LoadingIndicatorStyles.md +29 -0
  245. package/docs/interfaces/Locales.md +7 -0
  246. package/docs/interfaces/MasterpassCustomerInitializeOptions.md +17 -0
  247. package/docs/interfaces/MasterpassPaymentInitializeOptions.md +35 -0
  248. package/docs/interfaces/MolliePaymentInitializeOptions.md +96 -0
  249. package/docs/interfaces/MonerisPaymentInitializeOptions.md +57 -0
  250. package/docs/interfaces/MonerisStylingProps.md +80 -0
  251. package/docs/interfaces/NonceGenerationError.md +29 -0
  252. package/docs/interfaces/NonceInstrument.md +36 -0
  253. package/docs/interfaces/Option.md +22 -0
  254. package/docs/interfaces/OptionsResponse.md +77 -0
  255. package/docs/interfaces/OpyPaymentInitializeOptions.md +40 -0
  256. package/docs/interfaces/Order.md +190 -0
  257. package/docs/interfaces/OrderConsignment.md +15 -0
  258. package/docs/interfaces/OrderPayment.md +58 -0
  259. package/docs/interfaces/OrderPaymentRequestBody.md +39 -0
  260. package/docs/interfaces/OrderRequestBody.md +33 -0
  261. package/docs/interfaces/OrderShippingConsignment.md +218 -0
  262. package/docs/interfaces/PasswordRequirements.md +36 -0
  263. package/docs/interfaces/PayPalInstrument.md +91 -0
  264. package/docs/interfaces/PaymentInitializeOptions.md +406 -0
  265. package/docs/interfaces/PaymentMethod.md +98 -0
  266. package/docs/interfaces/PaymentMethodConfig.md +120 -0
  267. package/docs/interfaces/PaymentRequestOptions.md +67 -0
  268. package/docs/interfaces/PaymentSettings.md +22 -0
  269. package/docs/interfaces/PaypalButtonInitializeOptions.md +76 -0
  270. package/docs/interfaces/PaypalButtonStyleOptions.md +64 -0
  271. package/docs/interfaces/PaypalButtonStyleOptions_2.md +50 -0
  272. package/docs/interfaces/PaypalCommerceAlternativeMethodsButtonOptions.md +35 -0
  273. package/docs/interfaces/PaypalCommerceButtonInitializeOptions.md +26 -0
  274. package/docs/interfaces/PaypalCommerceCreditCardPaymentInitializeOptions.md +90 -0
  275. package/docs/interfaces/PaypalCommerceFormFieldCardTypeChangeEventData.md +15 -0
  276. package/docs/interfaces/PaypalCommerceFormFieldKeyboardEventData.md +15 -0
  277. package/docs/interfaces/PaypalCommerceFormFieldOptions.md +28 -0
  278. package/docs/interfaces/PaypalCommerceFormFieldStylesMap.md +29 -0
  279. package/docs/interfaces/PaypalCommerceFormFieldValidateErrorData.md +29 -0
  280. package/docs/interfaces/PaypalCommerceFormFieldValidateEventData.md +33 -0
  281. package/docs/interfaces/PaypalCommerceFormFieldsMap.md +36 -0
  282. package/docs/interfaces/PaypalCommerceFormOptions.md +148 -0
  283. package/docs/interfaces/PaypalCommercePaymentInitializeOptions.md +186 -0
  284. package/docs/interfaces/PaypalCommerceStoredCardFieldOptions.md +43 -0
  285. package/docs/interfaces/PaypalCommerceStoredCardFieldsMap.md +22 -0
  286. package/docs/interfaces/PaypalCommerceVenmoButtonInitializeOptions.md +26 -0
  287. package/docs/interfaces/PaypalExpressPaymentInitializeOptions.md +36 -0
  288. package/docs/interfaces/PaypalFieldsStyleOptions.md +46 -0
  289. package/docs/interfaces/PhysicalItem.md +311 -0
  290. package/docs/interfaces/PickupMethod.md +43 -0
  291. package/docs/interfaces/PickupOptionRequestBody.md +22 -0
  292. package/docs/interfaces/PickupOptionResult.md +15 -0
  293. package/docs/interfaces/Promotion.md +15 -0
  294. package/docs/interfaces/Radius.md +22 -0
  295. package/docs/interfaces/Region.md +22 -0
  296. package/docs/interfaces/RequestOptions.md +48 -0
  297. package/docs/interfaces/SearchArea.md +22 -0
  298. package/docs/interfaces/SepaPlaceHolder.md +22 -0
  299. package/docs/interfaces/SepaPlaceHolder_2.md +22 -0
  300. package/docs/interfaces/ShippingInitializeOptions.md +88 -0
  301. package/docs/interfaces/ShippingOption.md +64 -0
  302. package/docs/interfaces/ShippingRequestOptions.md +65 -0
  303. package/docs/interfaces/ShopperConfig.md +29 -0
  304. package/docs/interfaces/ShopperCurrency.md +94 -0
  305. package/docs/interfaces/SignInEmail.md +22 -0
  306. package/docs/interfaces/SignInEmailRequestBody.md +22 -0
  307. package/docs/interfaces/SpamProtectionOptions.md +25 -0
  308. package/docs/interfaces/SquareFormElement.md +28 -0
  309. package/docs/interfaces/SquarePaymentInitializeOptions.md +131 -0
  310. package/docs/interfaces/StepStyles.md +120 -0
  311. package/docs/interfaces/StepTracker.md +64 -0
  312. package/docs/interfaces/StepTrackerConfig.md +15 -0
  313. package/docs/interfaces/StoreConfig.md +109 -0
  314. package/docs/interfaces/StoreCurrency.md +56 -0
  315. package/docs/interfaces/StoreLinks.md +57 -0
  316. package/docs/interfaces/StoreProfile.md +71 -0
  317. package/docs/interfaces/StripeElementCSSProperties.md +170 -0
  318. package/docs/interfaces/StripeElementClasses.md +63 -0
  319. package/docs/interfaces/StripeElementStyle.md +44 -0
  320. package/docs/interfaces/StripeElementStyleVariant.md +285 -0
  321. package/docs/interfaces/StripeUPEPaymentInitializeOptions.md +70 -0
  322. package/docs/interfaces/StripeV3PaymentInitializeOptions.md +76 -0
  323. package/docs/interfaces/StyleOptions.md +44 -0
  324. package/docs/interfaces/StyleOptions_2.md +44 -0
  325. package/docs/interfaces/SubInputDetail.md +62 -0
  326. package/docs/interfaces/SubInputDetail_2.md +62 -0
  327. package/docs/interfaces/Subscriptions.md +29 -0
  328. package/docs/interfaces/Tax.md +22 -0
  329. package/docs/interfaces/TextInputStyles.md +175 -0
  330. package/docs/interfaces/ThreeDSecure.md +50 -0
  331. package/docs/interfaces/ThreeDSecureToken.md +15 -0
  332. package/docs/interfaces/TranslationData.md +7 -0
  333. package/docs/interfaces/Translations.md +7 -0
  334. package/docs/interfaces/UnknownObject.md +7 -0
  335. package/docs/interfaces/VaultedInstrument.md +29 -0
  336. package/docs/interfaces/WechatDataPaymentMethodState.md +15 -0
  337. package/docs/interfaces/WechatDataPaymentMethodState_2.md +15 -0
  338. package/docs/interfaces/WechatState.md +15 -0
  339. package/docs/interfaces/WechatState_2.md +15 -0
  340. package/docs/interfaces/WithAccountCreation.md +15 -0
  341. package/docs/interfaces/WithCheckoutcomFawryInstrument.md +22 -0
  342. package/docs/interfaces/WithCheckoutcomSEPAInstrument.md +22 -0
  343. package/docs/interfaces/WithCheckoutcomiDealInstrument.md +15 -0
  344. package/docs/interfaces/WithDocumentInstrument.md +15 -0
  345. package/docs/interfaces/WithMollieIssuerInstrument.md +22 -0
  346. package/docs/interfaces/WorldpayPaymentInitializeOptions.md +30 -0
  347. package/docs/interfaces/ZipCodeElementOptions.md +15 -0
  348. package/package.json +2 -2
  349. package/docs/classes/CacheKeyResolver.md +0 -58
@@ -1,763 +1,762 @@
1
- declare interface Address extends AddressRequestBody {
2
- country: string;
3
- shouldSaveAddress?: boolean;
4
- }
5
-
6
- declare interface AddressRequestBody {
7
- firstName: string;
8
- lastName: string;
9
- company: string;
10
- address1: string;
11
- address2: string;
12
- city: string;
13
- stateOrProvince: string;
14
- stateOrProvinceCode: string;
15
- countryCode: string;
16
- postalCode: string;
17
- phone: string;
18
- customFields: Array<{
19
- fieldId: string;
20
- fieldValue: string | number | string[];
21
- }>;
22
- }
23
-
24
- declare interface Banner {
25
- type: string;
26
- text: string;
27
- }
28
-
29
- declare interface BillingAddress extends Address {
30
- id: string;
31
- email?: string;
32
- }
33
-
34
- export declare class CacheKeyResolver {
35
- private _lastId;
36
- private _map;
37
- private _usedMaps;
38
- private _options;
39
- constructor(options?: CacheKeyResolverOptions);
40
- getKey(...args: any[]): string;
41
- getUsedCount(...args: any[]): number;
42
- private _resolveMap;
43
- private _generateMap;
44
- private _removeLeastUsedMap;
45
- private _removeMap;
46
- }
47
-
48
- declare interface CacheKeyResolverOptions {
49
- maxSize?: number;
50
- onExpire?(key: string): void;
51
- isEqual?(valueA: any, valueB: any): boolean;
52
- }
53
-
54
- declare interface Cart {
55
- id: string;
56
- customerId: number;
57
- currency: Currency;
58
- email: string;
59
- isTaxIncluded: boolean;
60
- baseAmount: number;
61
- discountAmount: number;
62
- cartAmount: number;
63
- coupons: Coupon[];
64
- discounts: Discount[];
65
- lineItems: LineItemMap;
66
- createdTime: string;
67
- updatedTime: string;
68
- }
69
-
70
- declare interface Checkout {
71
- id: string;
72
- billingAddress?: BillingAddress;
73
- cart: Cart;
74
- customer: Customer;
75
- customerMessage: string;
76
- consignments: Consignment[];
77
- taxes: Tax[];
78
- discounts: Discount[];
79
- isStoreCreditApplied: boolean;
80
- coupons: Coupon[];
81
- orderId?: number;
82
- giftWrappingCostTotal: number;
83
- shippingCostTotal: number;
84
- shippingCostBeforeDiscount: number;
85
- /**
86
- * Whether the current checkout must execute spam protection
87
- * before placing the order.
88
- *
89
- * Note: You need to enable Google ReCAPTCHA bot protection in your Checkout Settings.
90
- */
91
- shouldExecuteSpamCheck: boolean;
92
- handlingCostTotal: number;
93
- taxTotal: number;
94
- subtotal: number;
95
- grandTotal: number;
96
- outstandingBalance: number;
97
- giftCertificates: GiftCertificate[];
98
- promotions?: Promotion[];
99
- balanceDue: number;
100
- createdTime: string;
101
- updatedTime: string;
102
- payments?: CheckoutPayment[];
103
- }
104
-
105
- declare interface CheckoutPayment {
106
- detail: {
107
- step: string;
108
- };
109
- providerId: string;
110
- providerType: string;
111
- gatewayId?: string;
112
- }
113
-
114
- declare interface Consignment {
115
- id: string;
116
- address: Address;
117
- shippingAddress: Address;
118
- handlingCost: number;
119
- shippingCost: number;
120
- availableShippingOptions?: ShippingOption[];
121
- selectedShippingOption?: ShippingOption;
122
- selectedPickupOption?: ConsignmentPickupOption;
123
- lineItemIds: string[];
124
- }
125
-
126
- declare interface ConsignmentPickupOption {
127
- pickupMethodId: number;
128
- }
129
-
130
- declare interface Coupon {
131
- id: string;
132
- displayName: string;
133
- code: string;
134
- couponType: string;
135
- discountedAmount: number;
136
- }
137
-
138
- declare interface Currency {
139
- name: string;
140
- code: string;
141
- symbol: string;
142
- decimalPlaces: number;
143
- }
144
-
145
- declare interface Customer {
146
- id: number;
147
- addresses: CustomerAddress[];
148
- storeCredit: number;
149
- /**
150
- * The email address of the signed in customer.
151
- */
152
- email: string;
153
- firstName: string;
154
- fullName: string;
155
- isGuest: boolean;
156
- lastName: string;
157
- /**
158
- * Indicates whether the customer should be prompted to sign-in.
159
- *
160
- * Note: You need to enable "Prompt existing accounts to sign in" in your Checkout Settings.
161
- */
162
- shouldEncourageSignIn: boolean;
163
- customerGroup?: CustomerGroup;
164
- }
165
-
166
- declare interface CustomerAddress extends Address {
167
- id: number;
168
- type: string;
169
- }
170
-
171
- declare interface CustomerGroup {
172
- id: number;
173
- name: string;
174
- }
175
-
176
- declare interface CustomItem {
177
- id: string;
178
- listPrice: number;
179
- extendedListPrice: number;
180
- name: string;
181
- quantity: number;
182
- sku: string;
183
- }
184
-
185
- declare interface DigitalItem extends LineItem {
186
- downloadFileUrls: string[];
187
- downloadPageUrl: string;
188
- downloadSize: string;
189
- }
190
-
191
- declare interface Discount {
192
- id: string;
193
- discountedAmount: number;
194
- }
195
-
196
- declare interface DiscountNotification {
197
- message: string;
198
- messageHtml: string;
199
- discountType: string | null;
200
- placeholders: string[];
201
- }
202
-
203
- declare interface GatewayOrderPayment extends OrderPayment {
204
- detail: {
205
- step: string;
206
- instructions: string;
207
- };
208
- mandate?: {
209
- id: string;
210
- url?: string;
211
- };
212
- }
213
-
214
- declare interface GiftCertificate {
215
- balance: number;
216
- remaining: number;
217
- used: number;
218
- code: string;
219
- purchaseDate: string;
220
- }
221
-
222
- declare interface GiftCertificateItem {
223
- id: string | number;
224
- name: string;
225
- theme: string;
226
- amount: number;
227
- taxable: boolean;
228
- sender: {
229
- name: string;
230
- email: string;
231
- };
232
- recipient: {
233
- name: string;
234
- email: string;
235
- };
236
- message: string;
237
- }
238
-
239
- declare interface GiftCertificateOrderPayment extends OrderPayment {
240
- detail: {
241
- code: string;
242
- remaining: number;
243
- };
244
- }
245
-
246
- declare interface InternalAddress<T = string> {
247
- id?: T;
248
- firstName: string;
249
- lastName: string;
250
- company: string;
251
- addressLine1: string;
252
- addressLine2: string;
253
- city: string;
254
- province: string;
255
- provinceCode: string;
256
- postCode: string;
257
- country: string;
258
- countryCode: string;
259
- phone: string;
260
- customFields: Array<{
261
- fieldId: string;
262
- fieldValue: string | number | string[];
263
- }>;
264
- type?: string;
265
- }
266
-
267
- declare interface InternalCart {
268
- id: string;
269
- items: InternalLineItem[];
270
- currency: string;
271
- subtotal: {
272
- amount: number;
273
- integerAmount: number;
274
- };
275
- coupon: {
276
- discountedAmount: number;
277
- coupons: InternalCoupon[];
278
- };
279
- discount: {
280
- amount: number;
281
- integerAmount: number;
282
- };
283
- discountNotifications: DiscountNotification[];
284
- giftCertificate: {
285
- totalDiscountedAmount: number;
286
- appliedGiftCertificates: {
287
- [code: string]: InternalGiftCertificate;
288
- };
289
- };
290
- shipping: {
291
- amount: number;
292
- integerAmount: number;
293
- amountBeforeDiscount: number;
294
- integerAmountBeforeDiscount: number;
295
- required: boolean;
296
- };
297
- storeCredit: {
298
- amount: number;
299
- };
300
- taxSubtotal: {
301
- amount: number;
302
- integerAmount: number;
303
- };
304
- taxes: Array<{
305
- name: string;
306
- amount: number;
307
- }>;
308
- taxTotal: {
309
- amount: number;
310
- integerAmount: number;
311
- };
312
- handling: {
313
- amount: number;
314
- integerAmount: number;
315
- };
316
- grandTotal: {
317
- amount: number;
318
- integerAmount: number;
319
- };
320
- }
321
-
322
- declare interface InternalCoupon {
323
- code: string;
324
- discount: string;
325
- discountType: number;
326
- }
327
-
328
- declare interface InternalCustomer {
329
- addresses: Array<InternalAddress<number>>;
330
- customerId: number;
331
- isGuest: boolean;
332
- storeCredit: number;
333
- email: string;
334
- firstName: string;
335
- lastName: string;
336
- name: string;
337
- remote?: {
338
- provider: string;
339
- billing?: string;
340
- billingMessage?: string;
341
- customer?: string;
342
- payment?: string;
343
- shipping?: string;
344
- customerMessage?: string;
345
- useStoreCredit?: boolean;
346
- };
347
- customerGroupId?: number;
348
- customerGroupName?: string;
349
- phoneNumber?: string;
350
- }
351
-
352
- declare interface InternalGiftCertificate {
353
- code: string;
354
- discountedAmount: number;
355
- remainingBalance: number;
356
- giftCertificate?: {
357
- balance: number;
358
- code: string;
359
- purchaseDate: string;
360
- };
361
- }
362
-
363
- declare interface InternalGiftCertificateList {
364
- totalDiscountedAmount: number;
365
- appliedGiftCertificates: {
366
- [code: string]: InternalGiftCertificate;
367
- };
368
- }
369
-
370
- declare interface InternalLineItem {
371
- amount: number;
372
- amountAfterDiscount: number;
373
- attributes: Array<{
374
- name: string;
375
- value: string;
376
- }>;
377
- discount: number;
378
- integerAmount: number;
379
- downloadsPageUrl?: string;
380
- integerAmountAfterDiscount: number;
381
- integerDiscount: number;
382
- integerUnitPrice: number;
383
- integerUnitPriceAfterDiscount: number;
384
- id: string | number;
385
- imageUrl: string;
386
- name?: string;
387
- quantity: number;
388
- brand?: string;
389
- sku?: string;
390
- categoryNames?: string[];
391
- type: string;
392
- variantId: number | null;
393
- productId?: number;
394
- addedByPromotion?: boolean;
395
- sender?: {
396
- name: string;
397
- email: string;
398
- };
399
- recipient?: {
400
- name: string;
401
- email: string;
402
- };
403
- }
404
-
405
- declare interface InternalOrder {
406
- id: number;
407
- orderId: number;
408
- items: InternalLineItem[];
409
- currency: string;
410
- customerCanBeCreated: boolean;
411
- subtotal: {
412
- amount: number;
413
- integerAmount: number;
414
- };
415
- coupon: {
416
- discountedAmount: number;
417
- coupons: InternalCoupon[];
418
- };
419
- discount: {
420
- amount: number;
421
- integerAmount: number;
422
- };
423
- discountNotifications: DiscountNotification[];
424
- giftCertificate: InternalGiftCertificateList;
425
- shipping: {
426
- amount: number;
427
- integerAmount: number;
428
- amountBeforeDiscount: number;
429
- integerAmountBeforeDiscount: number;
430
- };
431
- status: string;
432
- storeCredit: {
433
- amount: number;
434
- };
435
- taxes: Array<{
436
- name: string;
437
- amount: number;
438
- }>;
439
- taxTotal: {
440
- amount: number;
441
- integerAmount: number;
442
- };
443
- handling: {
444
- amount: number;
445
- integerAmount: number;
446
- };
447
- grandTotal: {
448
- amount: number;
449
- integerAmount: number;
450
- };
451
- token?: string;
452
- payment: InternalOrderPayment;
453
- socialData?: {
454
- [itemId: string]: InternalSocialDataList;
455
- };
456
- hasDigitalItems: boolean;
457
- isDownloadable: boolean;
458
- isComplete: boolean;
459
- callbackUrl?: string;
460
- }
461
-
462
- declare interface InternalOrderMeta {
463
- deviceFingerprint?: string;
464
- }
465
-
466
- declare interface InternalOrderPayment {
467
- id?: string;
468
- gateway?: string;
469
- redirectUrl?: string;
470
- returnUrl?: string;
471
- status?: string;
472
- helpText?: string;
473
- }
474
-
475
- declare interface InternalQuote {
476
- orderComment: string;
477
- shippingOption?: string;
478
- billingAddress: InternalAddress;
479
- shippingAddress?: InternalAddress;
480
- }
481
-
482
- declare interface InternalShippingOption {
483
- description: string;
484
- module: string;
485
- price: number;
486
- id: string;
487
- selected: boolean;
488
- isRecommended: boolean;
489
- imageUrl: string;
490
- transitTime: string;
491
- }
492
-
493
- declare interface InternalShippingOptionList {
494
- [key: string]: InternalShippingOption[];
495
- }
496
-
497
- declare interface InternalSocialDataItem {
498
- name: string;
499
- description: string;
500
- image: string;
501
- url: string;
502
- shareText: string;
503
- sharingLink: string;
504
- channelName: string;
505
- channelCode: string;
506
- }
507
-
508
- declare interface InternalSocialDataList {
509
- [key: string]: InternalSocialDataItem;
510
- }
511
-
512
- declare interface LineItem {
513
- id: string | number;
514
- variantId: number;
515
- productId: number;
516
- sku: string;
517
- name: string;
518
- url: string;
519
- quantity: number;
520
- brand: string;
521
- categoryNames?: string[];
522
- categories?: LineItemCategory[][];
523
- isTaxable: boolean;
524
- imageUrl: string;
525
- discounts: Array<{
526
- name: string;
527
- discountedAmount: number;
528
- }>;
529
- discountAmount: number;
530
- couponAmount: number;
531
- listPrice: number;
532
- salePrice: number;
533
- comparisonPrice: number;
534
- extendedListPrice: number;
535
- extendedSalePrice: number;
536
- extendedComparisonPrice: number;
537
- socialMedia?: LineItemSocialData[];
538
- options?: LineItemOption[];
539
- addedByPromotion: boolean;
540
- parentId?: string | null;
541
- }
542
-
543
- declare interface LineItemCategory {
544
- name: string;
545
- }
546
-
547
- declare interface LineItemMap {
548
- physicalItems: PhysicalItem[];
549
- digitalItems: DigitalItem[];
550
- customItems?: CustomItem[];
551
- giftCertificates: GiftCertificateItem[];
552
- }
553
-
554
- declare interface LineItemOption {
555
- name: string;
556
- nameId: number;
557
- value: string;
558
- valueId: number | null;
559
- }
560
-
561
- declare interface LineItemSocialData {
562
- channel: string;
563
- code: string;
564
- text: string;
565
- link: string;
566
- }
567
-
568
- /**
569
- * @deprecated This mapper is only for internal use only. It is required during
570
- * the transition period as we are moving to adopt the new storefront API object
571
- * schema.
572
- */
573
- export declare function mapToInternalAddress(address: Address | BillingAddress, consignments?: Consignment[]): InternalAddress<any>;
574
-
575
- /**
576
- * @deprecated This mapper is only for internal use only. It is required during
577
- * the transition period as we are moving to adopt the new storefront API object
578
- * schema.
579
- */
580
- export declare function mapToInternalCart(checkout: Checkout): InternalCart;
581
-
582
- /**
583
- * @deprecated This mapper is only for internal use only. It is required during
584
- * the transition period as we are moving to adopt the new storefront API object
585
- * schema.
586
- */
587
- export declare function mapToInternalCoupon(coupon: Coupon): InternalCoupon;
588
-
589
- /**
590
- * @deprecated This mapper is only for internal use only. It is required during
591
- * the transition period as we are moving to adopt the new storefront API object
592
- * schema.
593
- */
594
- export declare function mapToInternalCustomer(customer: Customer, billingAddress: BillingAddress): InternalCustomer;
595
-
596
- /**
597
- * @deprecated This mapper is only for internal use only. It is required during
598
- * the transition period as we are moving to adopt the new storefront API object
599
- * schema.
600
- */
601
- export declare function mapToInternalGiftCertificate(giftCertificate: GiftCertificate): InternalGiftCertificate;
602
-
603
- /**
604
- * @deprecated This mapper is only for internal use only. It is required during
605
- * the transition period as we are moving to adopt the new storefront API object
606
- * schema.
607
- */
608
- export declare function mapToInternalLineItem(item: LineItem, type: string, decimalPlaces: number, idKey?: keyof LineItem): InternalLineItem;
609
-
610
- /**
611
- * @deprecated This mapper is only for internal use only. It is required during
612
- * the transition period as we are moving to adopt the new storefront API object
613
- * schema.
614
- */
615
- export declare function mapToInternalLineItems(itemMap: LineItemMap, decimalPlaces: number, idKey?: keyof LineItem): InternalLineItem[];
616
-
617
- /**
618
- * @deprecated This mapper is only for internal use only. It is required during
619
- * the transition period as we are moving to adopt the new storefront API object
620
- * schema.
621
- */
622
- export declare function mapToInternalOrder(order: Order, orderMeta?: OrderMetaState): InternalOrder;
623
-
624
- /**
625
- * @deprecated This mapper is only for internal use only. It is required during
626
- * the transition period as we are moving to adopt the new storefront API object
627
- * schema.
628
- */
629
- export declare function mapToInternalQuote(checkout: Checkout, shippingAddress?: Address): InternalQuote;
630
-
631
- /**
632
- * @deprecated This mapper is only for internal use only. It is required during
633
- * the transition period as we are moving to adopt the new storefront API object
634
- * schema.
635
- */
636
- export declare function mapToInternalShippingOption(option: ShippingOption, isSelected: boolean): InternalShippingOption;
637
-
638
- /**
639
- * @deprecated This mapper is only for internal use only. It is required during
640
- * the transition period as we are moving to adopt the new storefront API object
641
- * schema.
642
- */
643
- export declare function mapToInternalShippingOptions(consignments: Consignment[]): InternalShippingOptionList;
644
-
645
- declare interface Order {
646
- baseAmount: number;
647
- billingAddress: BillingAddress;
648
- cartId: string;
649
- coupons: Coupon[];
650
- consignments: OrderConsignment[];
651
- currency: Currency;
652
- customerCanBeCreated: boolean;
653
- customerId: number;
654
- customerMessage: string;
655
- discountAmount: number;
656
- handlingCostTotal: number;
657
- hasDigitalItems: boolean;
658
- isComplete: boolean;
659
- isDownloadable: boolean;
660
- isTaxIncluded: boolean;
661
- lineItems: LineItemMap;
662
- orderAmount: number;
663
- orderAmountAsInteger: number;
664
- orderId: number;
665
- payments?: OrderPayments;
666
- giftWrappingCostTotal: number;
667
- shippingCostTotal: number;
668
- shippingCostBeforeDiscount: number;
669
- status: string;
670
- taxes: Tax[];
671
- taxTotal: number;
672
- }
673
-
674
- declare interface OrderConsignment {
675
- shipping: OrderShippingConsignment[];
676
- }
677
-
678
- declare interface OrderMetaState extends InternalOrderMeta {
679
- token?: string;
680
- orderToken?: string;
681
- callbackUrl?: string;
682
- payment?: InternalOrderPayment;
683
- }
684
-
685
- declare interface OrderPayment {
686
- providerId: string;
687
- gatewayId?: string;
688
- methodId?: string;
689
- paymentId?: string;
690
- description: string;
691
- amount: number;
692
- }
693
-
694
- declare type OrderPayments = Array<GatewayOrderPayment | GiftCertificateOrderPayment>;
695
-
696
- declare interface OrderShippingConsignment {
697
- lineItems: Array<{
698
- id: number;
699
- }>;
700
- shippingAddressId: number;
701
- firstName: string;
702
- lastName: string;
703
- company: string;
704
- address1: string;
705
- address2: string;
706
- city: string;
707
- stateOrProvince: string;
708
- postalCode: string;
709
- country: string;
710
- countryCode: string;
711
- email: string;
712
- phone: string;
713
- itemsTotal: number;
714
- itemsShipped: number;
715
- shippingMethod: string;
716
- baseCost: number;
717
- costExTax: number;
718
- costIncTax: number;
719
- costTax: number;
720
- costTaxClassId: number;
721
- baseHandlingCost: number;
722
- handlingCostExTax: number;
723
- handlingCostIncTax: number;
724
- handlingCostTax: number;
725
- handlingCostTaxClassId: number;
726
- shippingZoneId: number;
727
- shippingZoneName: string;
728
- customFields: Array<{
729
- name: string;
730
- value: string | null;
731
- }>;
732
- }
733
-
734
- declare interface PhysicalItem extends LineItem {
735
- isShippingRequired: boolean;
736
- giftWrapping?: {
737
- name: string;
738
- message: string;
739
- amount: number;
740
- };
741
- }
742
-
743
- declare interface Promotion {
744
- banners: Banner[];
745
- }
746
-
747
- declare interface ShippingOption {
748
- additionalDescription: string;
749
- description: string;
750
- id: string;
751
- isRecommended: boolean;
752
- imageUrl: string;
753
- cost: number;
754
- transitTime: string;
755
- type: string;
756
- }
757
-
758
- declare interface Tax {
759
- name: string;
760
- amount: number;
761
- }
762
-
763
- export { }
1
+
2
+ declare interface Address extends AddressRequestBody {
3
+ country: string;
4
+ shouldSaveAddress?: boolean;
5
+ }
6
+
7
+ declare interface AddressRequestBody {
8
+ firstName: string;
9
+ lastName: string;
10
+ company: string;
11
+ address1: string;
12
+ address2: string;
13
+ city: string;
14
+ stateOrProvince: string;
15
+ stateOrProvinceCode: string;
16
+ countryCode: string;
17
+ postalCode: string;
18
+ phone: string;
19
+ customFields: Array<{
20
+ fieldId: string;
21
+ fieldValue: string | number | string[];
22
+ }>;
23
+ }
24
+
25
+ declare interface Banner {
26
+ type: string;
27
+ text: string;
28
+ }
29
+
30
+ declare interface BillingAddress extends Address {
31
+ id: string;
32
+ email?: string;
33
+ }
34
+
35
+ export declare class CacheKeyResolver {
36
+ private _lastId;
37
+ private _map;
38
+ private _usedMaps;
39
+ private _options;
40
+ constructor(options?: CacheKeyResolverOptions);
41
+ getKey(...args: any[]): string;
42
+ getUsedCount(...args: any[]): number;
43
+ private _resolveMap;
44
+ private _generateMap;
45
+ private _removeLeastUsedMap;
46
+ private _removeMap;
47
+ }
48
+
49
+ declare interface CacheKeyResolverOptions {
50
+ maxSize?: number;
51
+ onExpire?(key: string): void;
52
+ isEqual?(valueA: any, valueB: any): boolean;
53
+ }
54
+
55
+ declare interface Cart {
56
+ id: string;
57
+ customerId: number;
58
+ currency: Currency;
59
+ email: string;
60
+ isTaxIncluded: boolean;
61
+ baseAmount: number;
62
+ discountAmount: number;
63
+ cartAmount: number;
64
+ coupons: Coupon[];
65
+ discounts: Discount[];
66
+ lineItems: LineItemMap;
67
+ createdTime: string;
68
+ updatedTime: string;
69
+ }
70
+
71
+ declare interface Checkout {
72
+ id: string;
73
+ billingAddress?: BillingAddress;
74
+ cart: Cart;
75
+ customer: Customer;
76
+ customerMessage: string;
77
+ consignments: Consignment[];
78
+ taxes: Tax[];
79
+ discounts: Discount[];
80
+ isStoreCreditApplied: boolean;
81
+ coupons: Coupon[];
82
+ orderId?: number;
83
+ giftWrappingCostTotal: number;
84
+ shippingCostTotal: number;
85
+ shippingCostBeforeDiscount: number;
86
+ /**
87
+ * Whether the current checkout must execute spam protection
88
+ * before placing the order.
89
+ *
90
+ * Note: You need to enable Google ReCAPTCHA bot protection in your Checkout Settings.
91
+ */
92
+ shouldExecuteSpamCheck: boolean;
93
+ handlingCostTotal: number;
94
+ taxTotal: number;
95
+ subtotal: number;
96
+ grandTotal: number;
97
+ outstandingBalance: number;
98
+ giftCertificates: GiftCertificate[];
99
+ promotions?: Promotion[];
100
+ balanceDue: number;
101
+ createdTime: string;
102
+ updatedTime: string;
103
+ payments?: CheckoutPayment[];
104
+ }
105
+
106
+ declare interface CheckoutPayment {
107
+ detail: {
108
+ step: string;
109
+ };
110
+ providerId: string;
111
+ providerType: string;
112
+ gatewayId?: string;
113
+ }
114
+
115
+ declare interface Consignment {
116
+ id: string;
117
+ address: Address;
118
+ shippingAddress: Address;
119
+ handlingCost: number;
120
+ shippingCost: number;
121
+ availableShippingOptions?: ShippingOption[];
122
+ selectedShippingOption?: ShippingOption;
123
+ selectedPickupOption?: ConsignmentPickupOption;
124
+ lineItemIds: string[];
125
+ }
126
+
127
+ declare interface ConsignmentPickupOption {
128
+ pickupMethodId: number;
129
+ }
130
+
131
+ declare interface Coupon {
132
+ id: string;
133
+ displayName: string;
134
+ code: string;
135
+ couponType: string;
136
+ discountedAmount: number;
137
+ }
138
+
139
+ declare interface Currency {
140
+ name: string;
141
+ code: string;
142
+ symbol: string;
143
+ decimalPlaces: number;
144
+ }
145
+
146
+ declare interface CustomItem {
147
+ id: string;
148
+ listPrice: number;
149
+ extendedListPrice: number;
150
+ name: string;
151
+ quantity: number;
152
+ sku: string;
153
+ }
154
+
155
+ declare interface Customer {
156
+ id: number;
157
+ addresses: CustomerAddress[];
158
+ storeCredit: number;
159
+ /**
160
+ * The email address of the signed in customer.
161
+ */
162
+ email: string;
163
+ firstName: string;
164
+ fullName: string;
165
+ isGuest: boolean;
166
+ lastName: string;
167
+ /**
168
+ * Indicates whether the customer should be prompted to sign-in.
169
+ *
170
+ * Note: You need to enable "Prompt existing accounts to sign in" in your Checkout Settings.
171
+ */
172
+ shouldEncourageSignIn: boolean;
173
+ customerGroup?: CustomerGroup;
174
+ }
175
+
176
+ declare interface CustomerAddress extends Address {
177
+ id: number;
178
+ type: string;
179
+ }
180
+
181
+ declare interface CustomerGroup {
182
+ id: number;
183
+ name: string;
184
+ }
185
+
186
+ declare interface DigitalItem extends LineItem {
187
+ downloadFileUrls: string[];
188
+ downloadPageUrl: string;
189
+ downloadSize: string;
190
+ }
191
+
192
+ declare interface Discount {
193
+ id: string;
194
+ discountedAmount: number;
195
+ }
196
+
197
+ declare interface DiscountNotification {
198
+ message: string;
199
+ messageHtml: string;
200
+ discountType: string | null;
201
+ placeholders: string[];
202
+ }
203
+
204
+ declare interface GatewayOrderPayment extends OrderPayment {
205
+ detail: {
206
+ step: string;
207
+ instructions: string;
208
+ };
209
+ mandate?: {
210
+ id: string;
211
+ url?: string;
212
+ };
213
+ }
214
+
215
+ declare interface GiftCertificate {
216
+ balance: number;
217
+ remaining: number;
218
+ used: number;
219
+ code: string;
220
+ purchaseDate: string;
221
+ }
222
+
223
+ declare interface GiftCertificateItem {
224
+ id: string | number;
225
+ name: string;
226
+ theme: string;
227
+ amount: number;
228
+ taxable: boolean;
229
+ sender: {
230
+ name: string;
231
+ email: string;
232
+ };
233
+ recipient: {
234
+ name: string;
235
+ email: string;
236
+ };
237
+ message: string;
238
+ }
239
+
240
+ declare interface GiftCertificateOrderPayment extends OrderPayment {
241
+ detail: {
242
+ code: string;
243
+ remaining: number;
244
+ };
245
+ }
246
+
247
+ declare interface InternalAddress<T = string> {
248
+ id?: T;
249
+ firstName: string;
250
+ lastName: string;
251
+ company: string;
252
+ addressLine1: string;
253
+ addressLine2: string;
254
+ city: string;
255
+ province: string;
256
+ provinceCode: string;
257
+ postCode: string;
258
+ country: string;
259
+ countryCode: string;
260
+ phone: string;
261
+ customFields: Array<{
262
+ fieldId: string;
263
+ fieldValue: string | number | string[];
264
+ }>;
265
+ type?: string;
266
+ }
267
+
268
+ declare interface InternalCart {
269
+ id: string;
270
+ items: InternalLineItem[];
271
+ currency: string;
272
+ subtotal: {
273
+ amount: number;
274
+ integerAmount: number;
275
+ };
276
+ coupon: {
277
+ discountedAmount: number;
278
+ coupons: InternalCoupon[];
279
+ };
280
+ discount: {
281
+ amount: number;
282
+ integerAmount: number;
283
+ };
284
+ discountNotifications: DiscountNotification[];
285
+ giftCertificate: {
286
+ totalDiscountedAmount: number;
287
+ appliedGiftCertificates: {
288
+ [code: string]: InternalGiftCertificate;
289
+ };
290
+ };
291
+ shipping: {
292
+ amount: number;
293
+ integerAmount: number;
294
+ amountBeforeDiscount: number;
295
+ integerAmountBeforeDiscount: number;
296
+ required: boolean;
297
+ };
298
+ storeCredit: {
299
+ amount: number;
300
+ };
301
+ taxSubtotal: {
302
+ amount: number;
303
+ integerAmount: number;
304
+ };
305
+ taxes: Array<{
306
+ name: string;
307
+ amount: number;
308
+ }>;
309
+ taxTotal: {
310
+ amount: number;
311
+ integerAmount: number;
312
+ };
313
+ handling: {
314
+ amount: number;
315
+ integerAmount: number;
316
+ };
317
+ grandTotal: {
318
+ amount: number;
319
+ integerAmount: number;
320
+ };
321
+ }
322
+
323
+ declare interface InternalCoupon {
324
+ code: string;
325
+ discount: string;
326
+ discountType: number;
327
+ }
328
+
329
+ declare interface InternalCustomer {
330
+ addresses: Array<InternalAddress<number>>;
331
+ customerId: number;
332
+ isGuest: boolean;
333
+ storeCredit: number;
334
+ email: string;
335
+ firstName: string;
336
+ lastName: string;
337
+ name: string;
338
+ remote?: {
339
+ provider: string;
340
+ billing?: string;
341
+ billingMessage?: string;
342
+ customer?: string;
343
+ payment?: string;
344
+ shipping?: string;
345
+ customerMessage?: string;
346
+ useStoreCredit?: boolean;
347
+ };
348
+ customerGroupId?: number;
349
+ customerGroupName?: string;
350
+ phoneNumber?: string;
351
+ }
352
+
353
+ declare interface InternalGiftCertificate {
354
+ code: string;
355
+ discountedAmount: number;
356
+ remainingBalance: number;
357
+ giftCertificate?: {
358
+ balance: number;
359
+ code: string;
360
+ purchaseDate: string;
361
+ };
362
+ }
363
+
364
+ declare interface InternalGiftCertificateList {
365
+ totalDiscountedAmount: number;
366
+ appliedGiftCertificates: {
367
+ [code: string]: InternalGiftCertificate;
368
+ };
369
+ }
370
+
371
+ declare interface InternalLineItem {
372
+ amount: number;
373
+ amountAfterDiscount: number;
374
+ attributes: Array<{
375
+ name: string;
376
+ value: string;
377
+ }>;
378
+ discount: number;
379
+ integerAmount: number;
380
+ downloadsPageUrl?: string;
381
+ integerAmountAfterDiscount: number;
382
+ integerDiscount: number;
383
+ integerUnitPrice: number;
384
+ integerUnitPriceAfterDiscount: number;
385
+ id: string | number;
386
+ imageUrl: string;
387
+ name?: string;
388
+ quantity: number;
389
+ brand?: string;
390
+ sku?: string;
391
+ categoryNames?: string[];
392
+ type: string;
393
+ variantId: number | null;
394
+ productId?: number;
395
+ addedByPromotion?: boolean;
396
+ sender?: {
397
+ name: string;
398
+ email: string;
399
+ };
400
+ recipient?: {
401
+ name: string;
402
+ email: string;
403
+ };
404
+ }
405
+
406
+ declare interface InternalOrder {
407
+ id: number;
408
+ orderId: number;
409
+ items: InternalLineItem[];
410
+ currency: string;
411
+ customerCanBeCreated: boolean;
412
+ subtotal: {
413
+ amount: number;
414
+ integerAmount: number;
415
+ };
416
+ coupon: {
417
+ discountedAmount: number;
418
+ coupons: InternalCoupon[];
419
+ };
420
+ discount: {
421
+ amount: number;
422
+ integerAmount: number;
423
+ };
424
+ discountNotifications: DiscountNotification[];
425
+ giftCertificate: InternalGiftCertificateList;
426
+ shipping: {
427
+ amount: number;
428
+ integerAmount: number;
429
+ amountBeforeDiscount: number;
430
+ integerAmountBeforeDiscount: number;
431
+ };
432
+ status: string;
433
+ storeCredit: {
434
+ amount: number;
435
+ };
436
+ taxes: Array<{
437
+ name: string;
438
+ amount: number;
439
+ }>;
440
+ taxTotal: {
441
+ amount: number;
442
+ integerAmount: number;
443
+ };
444
+ handling: {
445
+ amount: number;
446
+ integerAmount: number;
447
+ };
448
+ grandTotal: {
449
+ amount: number;
450
+ integerAmount: number;
451
+ };
452
+ token?: string;
453
+ payment: InternalOrderPayment;
454
+ socialData?: {
455
+ [itemId: string]: InternalSocialDataList;
456
+ };
457
+ hasDigitalItems: boolean;
458
+ isDownloadable: boolean;
459
+ isComplete: boolean;
460
+ callbackUrl?: string;
461
+ }
462
+
463
+ declare interface InternalOrderMeta {
464
+ deviceFingerprint?: string;
465
+ }
466
+
467
+ declare interface InternalOrderPayment {
468
+ id?: string;
469
+ gateway?: string;
470
+ redirectUrl?: string;
471
+ returnUrl?: string;
472
+ status?: string;
473
+ helpText?: string;
474
+ }
475
+
476
+ declare interface InternalQuote {
477
+ orderComment: string;
478
+ shippingOption?: string;
479
+ billingAddress: InternalAddress;
480
+ shippingAddress?: InternalAddress;
481
+ }
482
+
483
+ declare interface InternalShippingOption {
484
+ description: string;
485
+ module: string;
486
+ price: number;
487
+ id: string;
488
+ selected: boolean;
489
+ isRecommended: boolean;
490
+ imageUrl: string;
491
+ transitTime: string;
492
+ }
493
+
494
+ declare interface InternalShippingOptionList {
495
+ [key: string]: InternalShippingOption[];
496
+ }
497
+
498
+ declare interface InternalSocialDataItem {
499
+ name: string;
500
+ description: string;
501
+ image: string;
502
+ url: string;
503
+ shareText: string;
504
+ sharingLink: string;
505
+ channelName: string;
506
+ channelCode: string;
507
+ }
508
+
509
+ declare interface InternalSocialDataList {
510
+ [key: string]: InternalSocialDataItem;
511
+ }
512
+
513
+ declare interface LineItem {
514
+ id: string | number;
515
+ variantId: number;
516
+ productId: number;
517
+ sku: string;
518
+ name: string;
519
+ url: string;
520
+ quantity: number;
521
+ brand: string;
522
+ categoryNames?: string[];
523
+ categories?: LineItemCategory[][];
524
+ isTaxable: boolean;
525
+ imageUrl: string;
526
+ discounts: Array<{
527
+ name: string;
528
+ discountedAmount: number;
529
+ }>;
530
+ discountAmount: number;
531
+ couponAmount: number;
532
+ listPrice: number;
533
+ salePrice: number;
534
+ comparisonPrice: number;
535
+ extendedListPrice: number;
536
+ extendedSalePrice: number;
537
+ extendedComparisonPrice: number;
538
+ socialMedia?: LineItemSocialData[];
539
+ options?: LineItemOption[];
540
+ addedByPromotion: boolean;
541
+ parentId?: string | null;
542
+ }
543
+
544
+ declare interface LineItemCategory {
545
+ name: string;
546
+ }
547
+
548
+ declare interface LineItemMap {
549
+ physicalItems: PhysicalItem[];
550
+ digitalItems: DigitalItem[];
551
+ customItems?: CustomItem[];
552
+ giftCertificates: GiftCertificateItem[];
553
+ }
554
+
555
+ declare interface LineItemOption {
556
+ name: string;
557
+ nameId: number;
558
+ value: string;
559
+ valueId: number | null;
560
+ }
561
+
562
+ declare interface LineItemSocialData {
563
+ channel: string;
564
+ code: string;
565
+ text: string;
566
+ link: string;
567
+ }
568
+
569
+ declare interface Order {
570
+ baseAmount: number;
571
+ billingAddress: BillingAddress;
572
+ cartId: string;
573
+ coupons: Coupon[];
574
+ consignments: OrderConsignment[];
575
+ currency: Currency;
576
+ customerCanBeCreated: boolean;
577
+ customerId: number;
578
+ customerMessage: string;
579
+ discountAmount: number;
580
+ handlingCostTotal: number;
581
+ hasDigitalItems: boolean;
582
+ isComplete: boolean;
583
+ isDownloadable: boolean;
584
+ isTaxIncluded: boolean;
585
+ lineItems: LineItemMap;
586
+ orderAmount: number;
587
+ orderAmountAsInteger: number;
588
+ orderId: number;
589
+ payments?: OrderPayments;
590
+ giftWrappingCostTotal: number;
591
+ shippingCostTotal: number;
592
+ shippingCostBeforeDiscount: number;
593
+ status: string;
594
+ taxes: Tax[];
595
+ taxTotal: number;
596
+ }
597
+
598
+ declare interface OrderConsignment {
599
+ shipping: OrderShippingConsignment[];
600
+ }
601
+
602
+ declare interface OrderMetaState extends InternalOrderMeta {
603
+ token?: string;
604
+ orderToken?: string;
605
+ callbackUrl?: string;
606
+ payment?: InternalOrderPayment;
607
+ }
608
+
609
+ declare interface OrderPayment {
610
+ providerId: string;
611
+ gatewayId?: string;
612
+ methodId?: string;
613
+ paymentId?: string;
614
+ description: string;
615
+ amount: number;
616
+ }
617
+
618
+ declare type OrderPayments = Array<GatewayOrderPayment | GiftCertificateOrderPayment>;
619
+
620
+ declare interface OrderShippingConsignment {
621
+ lineItems: Array<{
622
+ id: number;
623
+ }>;
624
+ shippingAddressId: number;
625
+ firstName: string;
626
+ lastName: string;
627
+ company: string;
628
+ address1: string;
629
+ address2: string;
630
+ city: string;
631
+ stateOrProvince: string;
632
+ postalCode: string;
633
+ country: string;
634
+ countryCode: string;
635
+ email: string;
636
+ phone: string;
637
+ itemsTotal: number;
638
+ itemsShipped: number;
639
+ shippingMethod: string;
640
+ baseCost: number;
641
+ costExTax: number;
642
+ costIncTax: number;
643
+ costTax: number;
644
+ costTaxClassId: number;
645
+ baseHandlingCost: number;
646
+ handlingCostExTax: number;
647
+ handlingCostIncTax: number;
648
+ handlingCostTax: number;
649
+ handlingCostTaxClassId: number;
650
+ shippingZoneId: number;
651
+ shippingZoneName: string;
652
+ customFields: Array<{
653
+ name: string;
654
+ value: string | null;
655
+ }>;
656
+ }
657
+
658
+ declare interface PhysicalItem extends LineItem {
659
+ isShippingRequired: boolean;
660
+ giftWrapping?: {
661
+ name: string;
662
+ message: string;
663
+ amount: number;
664
+ };
665
+ }
666
+
667
+ declare interface Promotion {
668
+ banners: Banner[];
669
+ }
670
+
671
+ declare interface ShippingOption {
672
+ additionalDescription: string;
673
+ description: string;
674
+ id: string;
675
+ isRecommended: boolean;
676
+ imageUrl: string;
677
+ cost: number;
678
+ transitTime: string;
679
+ type: string;
680
+ }
681
+
682
+ declare interface Tax {
683
+ name: string;
684
+ amount: number;
685
+ }
686
+
687
+ /**
688
+ * @deprecated This mapper is only for internal use only. It is required during
689
+ * the transition period as we are moving to adopt the new storefront API object
690
+ * schema.
691
+ */
692
+ export declare function mapToInternalAddress(address: Address | BillingAddress, consignments?: Consignment[]): InternalAddress<any>;
693
+
694
+ /**
695
+ * @deprecated This mapper is only for internal use only. It is required during
696
+ * the transition period as we are moving to adopt the new storefront API object
697
+ * schema.
698
+ */
699
+ export declare function mapToInternalCart(checkout: Checkout): InternalCart;
700
+
701
+ /**
702
+ * @deprecated This mapper is only for internal use only. It is required during
703
+ * the transition period as we are moving to adopt the new storefront API object
704
+ * schema.
705
+ */
706
+ export declare function mapToInternalCoupon(coupon: Coupon): InternalCoupon;
707
+
708
+ /**
709
+ * @deprecated This mapper is only for internal use only. It is required during
710
+ * the transition period as we are moving to adopt the new storefront API object
711
+ * schema.
712
+ */
713
+ export declare function mapToInternalCustomer(customer: Customer, billingAddress: BillingAddress): InternalCustomer;
714
+
715
+ /**
716
+ * @deprecated This mapper is only for internal use only. It is required during
717
+ * the transition period as we are moving to adopt the new storefront API object
718
+ * schema.
719
+ */
720
+ export declare function mapToInternalGiftCertificate(giftCertificate: GiftCertificate): InternalGiftCertificate;
721
+
722
+ /**
723
+ * @deprecated This mapper is only for internal use only. It is required during
724
+ * the transition period as we are moving to adopt the new storefront API object
725
+ * schema.
726
+ */
727
+ export declare function mapToInternalLineItem(item: LineItem, type: string, decimalPlaces: number, idKey?: keyof LineItem): InternalLineItem;
728
+
729
+ /**
730
+ * @deprecated This mapper is only for internal use only. It is required during
731
+ * the transition period as we are moving to adopt the new storefront API object
732
+ * schema.
733
+ */
734
+ export declare function mapToInternalLineItems(itemMap: LineItemMap, decimalPlaces: number, idKey?: keyof LineItem): InternalLineItem[];
735
+
736
+ /**
737
+ * @deprecated This mapper is only for internal use only. It is required during
738
+ * the transition period as we are moving to adopt the new storefront API object
739
+ * schema.
740
+ */
741
+ export declare function mapToInternalOrder(order: Order, orderMeta?: OrderMetaState): InternalOrder;
742
+
743
+ /**
744
+ * @deprecated This mapper is only for internal use only. It is required during
745
+ * the transition period as we are moving to adopt the new storefront API object
746
+ * schema.
747
+ */
748
+ export declare function mapToInternalQuote(checkout: Checkout, shippingAddress?: Address): InternalQuote;
749
+
750
+ /**
751
+ * @deprecated This mapper is only for internal use only. It is required during
752
+ * the transition period as we are moving to adopt the new storefront API object
753
+ * schema.
754
+ */
755
+ export declare function mapToInternalShippingOption(option: ShippingOption, isSelected: boolean): InternalShippingOption;
756
+
757
+ /**
758
+ * @deprecated This mapper is only for internal use only. It is required during
759
+ * the transition period as we are moving to adopt the new storefront API object
760
+ * schema.
761
+ */
762
+ export declare function mapToInternalShippingOptions(consignments: Consignment[]): InternalShippingOptionList;