@bigcommerce/checkout-sdk 1.308.1 → 1.308.2
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/CHANGELOG.md +7 -0
- package/dist/checkout-button.js +1 -1
- package/dist/checkout-button.umd.js +1 -1
- package/dist/checkout-sdk.js +1 -1
- package/dist/checkout-sdk.js.map +1 -1
- package/dist/checkout-sdk.umd.js +1 -1
- package/dist/checkout-sdk.umd.js.map +1 -1
- package/docs/README.md +158 -16
- package/docs/classes/internal_.CartChangedError.md +62 -0
- package/docs/classes/internal_.CheckoutService.md +1528 -0
- package/docs/classes/internal_.CurrencyService.md +56 -0
- package/docs/classes/internal_.EmbeddedCheckout.md +42 -0
- package/docs/classes/internal_.LanguageService.md +103 -0
- package/docs/classes/internal_.RequestError.md +108 -0
- package/docs/classes/internal_.StandardError.md +4 -0
- package/docs/enums/internal_.AdyenV2CardFields.md +31 -0
- package/docs/enums/internal_.AdyenV3CardFields.md +31 -0
- package/docs/enums/internal_.CheckoutIncludes.md +31 -0
- package/docs/enums/internal_.HostedFieldType.md +52 -0
- package/docs/enums/internal_.IconStyle.md +24 -0
- package/docs/enums/internal_.RadiusUnit.md +24 -0
- package/docs/interfaces/internal_.Address.md +4 -0
- package/docs/interfaces/internal_.AddressRequestBody.md +2 -0
- package/docs/interfaces/internal_.AdyenAdditionalActionCallbacks.md +70 -0
- package/docs/interfaces/internal_.AdyenAdditionalActionCallbacks_2.md +68 -0
- package/docs/interfaces/internal_.AdyenAdditionalActionOptions.md +108 -0
- package/docs/interfaces/internal_.AdyenAdditionalActionOptions_2.md +108 -0
- package/docs/interfaces/internal_.AdyenBaseCardComponentOptions.md +35 -0
- package/docs/interfaces/internal_.AdyenBaseCardComponentOptions_2.md +42 -0
- package/docs/interfaces/internal_.AdyenComponent.md +74 -0
- package/docs/interfaces/internal_.AdyenComponentEvents.md +76 -0
- package/docs/interfaces/internal_.AdyenComponentEvents_2.md +76 -0
- package/docs/interfaces/internal_.AdyenComponent_2.md +74 -0
- package/docs/interfaces/internal_.AdyenCreditCardComponentOptions.md +187 -0
- package/docs/interfaces/internal_.AdyenIdealComponentOptions.md +19 -0
- package/docs/interfaces/internal_.AdyenPaymentMethodState.md +23 -0
- package/docs/interfaces/internal_.AdyenPaymentMethodState_2.md +17 -0
- package/docs/interfaces/internal_.AdyenPlaceholderData.md +35 -0
- package/docs/interfaces/internal_.AdyenPlaceholderData_2.md +35 -0
- package/docs/interfaces/internal_.AdyenThreeDS2Options.md +99 -0
- package/docs/interfaces/internal_.AdyenV2PaymentInitializeOptions.md +162 -0
- package/docs/interfaces/internal_.AdyenV2ValidationState.md +59 -0
- package/docs/interfaces/internal_.AdyenV3CreditCardComponentOptions.md +198 -0
- package/docs/interfaces/internal_.AdyenV3PaymentInitializeOptions.md +137 -0
- package/docs/interfaces/internal_.AdyenV3ValidationState.md +59 -0
- package/docs/interfaces/internal_.AmazonPayCustomerInitializeOptions.md +67 -0
- package/docs/interfaces/internal_.AmazonPayOrderReference.md +32 -0
- package/docs/interfaces/internal_.AmazonPayPaymentInitializeOptions.md +102 -0
- package/docs/interfaces/internal_.AmazonPayShippingInitializeOptions.md +87 -0
- package/docs/interfaces/internal_.AmazonPayV2CustomerInitializeOptions.md +26 -0
- package/docs/interfaces/internal_.AmazonPayV2PaymentInitializeOptions.md +42 -0
- package/docs/interfaces/internal_.AmazonPayV2ShippingInitializeOptions.md +28 -0
- package/docs/interfaces/internal_.AmazonPayWidgetError.md +27 -0
- package/docs/interfaces/internal_.ApplePayCustomerInitializeOptions.md +79 -0
- package/docs/interfaces/internal_.ApplePayPaymentInitializeOptions.md +42 -0
- package/docs/interfaces/internal_.BankInstrument.md +114 -0
- package/docs/interfaces/internal_.Banner.md +24 -0
- package/docs/interfaces/internal_.BaseAccountInstrument.md +93 -0
- package/docs/interfaces/internal_.BaseCustomerInitializeOptions.md +237 -0
- package/docs/interfaces/internal_.BaseElementOptions.md +28 -0
- package/docs/interfaces/internal_.BaseElementOptions_2.md +50 -0
- package/docs/interfaces/internal_.BaseIndividualElementOptions.md +69 -0
- package/docs/interfaces/internal_.BaseInstrument.md +60 -0
- package/docs/interfaces/internal_.BasePaymentInitializeOptions.md +376 -0
- package/docs/interfaces/internal_.BillingAddress.md +184 -0
- package/docs/interfaces/internal_.BillingAddressRequestBody.md +155 -0
- package/docs/interfaces/internal_.BlockElementStyles.md +107 -0
- package/docs/interfaces/internal_.BlueSnapV2PaymentInitializeOptions.md +75 -0
- package/docs/interfaces/internal_.BlueSnapV2StyleProps.md +31 -0
- package/docs/interfaces/internal_.BodlEventsPayload.md +9 -0
- package/docs/interfaces/internal_.BodlService.md +172 -0
- package/docs/interfaces/internal_.BodyStyles.md +17 -0
- package/docs/interfaces/internal_.BoltCustomerInitializeOptions.md +32 -0
- package/docs/interfaces/internal_.BoltPaymentInitializeOptions.md +96 -0
- package/docs/interfaces/internal_.BraintreePaymentInitializeOptions.md +91 -0
- package/docs/interfaces/internal_.BraintreeThreeDSecureOptions.md +53 -0
- package/docs/interfaces/internal_.BraintreeVerifyPayload.md +53 -0
- package/docs/interfaces/internal_.BraintreeVisaCheckoutCustomerInitializeOptions.md +37 -0
- package/docs/interfaces/internal_.BraintreeVisaCheckoutPaymentInitializeOptions.md +72 -0
- package/docs/interfaces/internal_.BrowserInfo.md +52 -0
- package/docs/interfaces/internal_.ButtonResponse.md +21 -0
- package/docs/interfaces/internal_.ButtonStyles.md +143 -0
- package/docs/interfaces/internal_.CardCvcElementOptions.md +74 -0
- package/docs/interfaces/internal_.CardDataPaymentMethodState.md +17 -0
- package/docs/interfaces/internal_.CardDataPaymentMethodState_2.md +17 -0
- package/docs/interfaces/internal_.CardElementOptions.md +93 -0
- package/docs/interfaces/internal_.CardExpiryElementOptions.md +74 -0
- package/docs/interfaces/internal_.CardInstrument.md +117 -0
- package/docs/interfaces/internal_.CardNumberElementOptions.md +90 -0
- package/docs/interfaces/internal_.CardPaymentMethodState.md +62 -0
- package/docs/interfaces/internal_.CardPaymentMethodState_2.md +45 -0
- package/docs/interfaces/internal_.CardState.md +42 -0
- package/docs/interfaces/internal_.CardStateErrors.md +9 -0
- package/docs/interfaces/internal_.CardStateErrors_2.md +9 -0
- package/docs/interfaces/internal_.CardState_2.md +42 -0
- package/docs/interfaces/internal_.Cart.md +108 -0
- package/docs/interfaces/internal_.ChasePayCustomerInitializeOptions.md +17 -0
- package/docs/interfaces/internal_.ChasePayInitializeOptions.md +100 -0
- package/docs/interfaces/internal_.CheckableInputStyles.md +177 -0
- package/docs/interfaces/internal_.ChecklistStyles.md +129 -0
- package/docs/interfaces/internal_.Checkout.md +204 -0
- package/docs/interfaces/internal_.CheckoutParams.md +17 -0
- package/docs/interfaces/internal_.CheckoutPayment.md +44 -0
- package/docs/interfaces/internal_.CheckoutPaymentMethodExecutedOptions.md +17 -0
- package/docs/interfaces/internal_.CheckoutRequestBody.md +17 -0
- package/docs/interfaces/internal_.CheckoutSelectors.md +31 -0
- package/docs/interfaces/internal_.CheckoutServiceOptions.md +38 -0
- package/docs/interfaces/internal_.CheckoutSettings.md +203 -0
- package/docs/interfaces/internal_.CheckoutStoreErrorSelector.md +638 -0
- package/docs/interfaces/internal_.CheckoutStoreSelector.md +503 -0
- package/docs/interfaces/internal_.CheckoutStoreStatusSelector.md +760 -0
- package/docs/interfaces/internal_.Consignment.md +73 -0
- package/docs/interfaces/internal_.ConsignmentAssignmentBaseRequestBodyWithAddress.md +31 -0
- package/docs/interfaces/internal_.ConsignmentAssignmentBaseRequestBodyWithShippingAddress.md +31 -0
- package/docs/interfaces/internal_.ConsignmentCreateRequestBody.md +38 -0
- package/docs/interfaces/internal_.ConsignmentLineItem.md +24 -0
- package/docs/interfaces/internal_.ConsignmentPickupOption.md +17 -0
- package/docs/interfaces/internal_.ConsignmentUpdateRequestBody.md +45 -0
- package/docs/interfaces/internal_.Coordinates.md +24 -0
- package/docs/interfaces/internal_.Country.md +45 -0
- package/docs/interfaces/internal_.Coupon.md +45 -0
- package/docs/interfaces/internal_.CreditCardInstrument.md +87 -0
- package/docs/interfaces/internal_.CreditCardPlaceHolder.md +31 -0
- package/docs/interfaces/internal_.CreditCardPlaceHolder_2.md +31 -0
- package/docs/interfaces/internal_.CssProperties.md +213 -0
- package/docs/interfaces/internal_.CssProperties_2.md +213 -0
- package/docs/interfaces/internal_.Currency.md +38 -0
- package/docs/interfaces/internal_.CustomItem.md +52 -0
- package/docs/interfaces/internal_.Customer.md +93 -0
- package/docs/interfaces/internal_.CustomerAddress.md +184 -0
- package/docs/interfaces/internal_.CustomerCredentials.md +24 -0
- package/docs/interfaces/internal_.CustomerGroup.md +24 -0
- package/docs/interfaces/internal_.CustomerPasswordRequirements.md +38 -0
- package/docs/interfaces/internal_.CustomerRequestOptions.md +62 -0
- package/docs/interfaces/internal_.DigitalItem.md +312 -0
- package/docs/interfaces/internal_.DigitalRiverElementClasses.md +69 -0
- package/docs/interfaces/internal_.DigitalRiverPaymentInitializeOptions.md +148 -0
- package/docs/interfaces/internal_.Discount.md +24 -0
- package/docs/interfaces/internal_.DisplaySettings.md +17 -0
- package/docs/interfaces/internal_.EmbeddedCheckoutCompleteEvent.md +17 -0
- package/docs/interfaces/internal_.EmbeddedCheckoutError.md +31 -0
- package/docs/interfaces/internal_.EmbeddedCheckoutErrorEvent.md +24 -0
- package/docs/interfaces/internal_.EmbeddedCheckoutFrameErrorEvent.md +24 -0
- package/docs/interfaces/internal_.EmbeddedCheckoutFrameLoadedEvent.md +24 -0
- package/docs/interfaces/internal_.EmbeddedCheckoutLoadedEvent.md +17 -0
- package/docs/interfaces/internal_.EmbeddedCheckoutOptions.md +136 -0
- package/docs/interfaces/internal_.EmbeddedCheckoutSignedOutEvent.md +17 -0
- package/docs/interfaces/internal_.EmbeddedCheckoutStyles.md +143 -0
- package/docs/interfaces/internal_.EmbeddedContentOptions.md +17 -0
- package/docs/interfaces/internal_.ExecutePaymentMethodCheckoutOptions.md +95 -0
- package/docs/interfaces/internal_.FlashMessage.md +31 -0
- package/docs/interfaces/internal_.FormField.md +115 -0
- package/docs/interfaces/internal_.FormFieldItem.md +24 -0
- package/docs/interfaces/internal_.FormFieldOptions.md +31 -0
- package/docs/interfaces/internal_.FormFields.md +31 -0
- package/docs/interfaces/internal_.GatewayOrderPayment.md +110 -0
- package/docs/interfaces/internal_.GiftCertificate.md +45 -0
- package/docs/interfaces/internal_.GiftCertificateItem.md +80 -0
- package/docs/interfaces/internal_.GiftCertificateOrderPayment.md +96 -0
- package/docs/interfaces/{internal_.GooglePayButtonInitializeOptions.md → internal_.GooglePayCustomerInitializeOptions.md} +16 -5
- package/docs/interfaces/internal_.GooglePayPaymentInitializeOptions.md +95 -0
- package/docs/interfaces/internal_.HostedCardFieldOptions.md +37 -0
- package/docs/interfaces/internal_.HostedCardFieldOptionsMap.md +38 -0
- package/docs/interfaces/internal_.HostedFieldStylesMap.md +31 -0
- package/docs/interfaces/internal_.HostedFormOptions.md +116 -0
- package/docs/interfaces/internal_.HostedInputValidateErrorData.md +31 -0
- package/docs/interfaces/internal_.HostedInputValidateErrorDataMap.md +52 -0
- package/docs/interfaces/internal_.HostedInputValidateResults.md +24 -0
- package/docs/interfaces/internal_.HostedInstrument.md +24 -0
- package/docs/interfaces/internal_.HostedStoredCardFieldOptions.md +56 -0
- package/docs/interfaces/internal_.HostedStoredCardFieldOptionsMap.md +24 -0
- package/docs/interfaces/internal_.IbanElementOptions.md +84 -0
- package/docs/interfaces/internal_.IdealElementOptions.md +72 -0
- package/docs/interfaces/internal_.IndividualCardElementOptions.md +38 -0
- package/docs/interfaces/internal_.InitializationStrategy.md +23 -0
- package/docs/interfaces/internal_.InlineElementStyles.md +55 -0
- package/docs/interfaces/internal_.InputDetail.md +82 -0
- package/docs/interfaces/internal_.InputDetail_2.md +82 -0
- package/docs/interfaces/internal_.InputStyles.md +154 -0
- package/docs/interfaces/internal_.Item.md +24 -0
- package/docs/interfaces/internal_.Item_2.md +28 -0
- package/docs/interfaces/internal_.Item_3.md +28 -0
- package/docs/interfaces/internal_.KlarnaLoadResponse.md +30 -0
- package/docs/interfaces/internal_.KlarnaLoadResponse_2.md +30 -0
- package/docs/interfaces/internal_.KlarnaPaymentInitializeOptions.md +75 -0
- package/docs/interfaces/internal_.KlarnaV2PaymentInitializeOptions.md +75 -0
- package/docs/interfaces/internal_.LabelStyles.md +78 -0
- package/docs/interfaces/internal_.LanguageConfig.md +59 -0
- package/docs/interfaces/internal_.LineItem.md +163 -8
- package/docs/interfaces/internal_.LineItemCategory.md +17 -0
- package/docs/interfaces/internal_.LineItemMap.md +38 -0
- package/docs/interfaces/internal_.LineItemOption.md +38 -0
- package/docs/interfaces/internal_.LineItemSocialData.md +38 -0
- package/docs/interfaces/internal_.LinkStyles.md +92 -0
- package/docs/interfaces/internal_.LoadingIndicatorStyles.md +31 -0
- package/docs/interfaces/internal_.Locales.md +9 -0
- package/docs/interfaces/internal_.MasterpassCustomerInitializeOptions.md +19 -0
- package/docs/interfaces/internal_.MasterpassPaymentInitializeOptions.md +37 -0
- package/docs/interfaces/internal_.MolliePaymentInitializeOptions.md +126 -0
- package/docs/interfaces/internal_.MonerisPaymentInitializeOptions.md +59 -0
- package/docs/interfaces/internal_.MonerisStylingProps.md +82 -0
- package/docs/interfaces/internal_.NonceGenerationError.md +31 -0
- package/docs/interfaces/internal_.NonceInstrument.md +38 -0
- package/docs/interfaces/internal_.Option_2.md +24 -0
- package/docs/interfaces/internal_.OptionsResponse.md +79 -0
- package/docs/interfaces/internal_.OpyPaymentInitializeOptions.md +40 -0
- package/docs/interfaces/internal_.Order.md +199 -0
- package/docs/interfaces/internal_.OrderConsignment.md +17 -0
- package/docs/interfaces/internal_.OrderPayment.md +60 -0
- package/docs/interfaces/internal_.OrderPaymentRequestBody.md +41 -0
- package/docs/interfaces/internal_.OrderRequestBody.md +35 -0
- package/docs/interfaces/internal_.OrderShippingConsignment.md +220 -0
- package/docs/interfaces/internal_.PasswordRequirements.md +38 -0
- package/docs/interfaces/internal_.PayPalInstrument.md +93 -0
- package/docs/interfaces/internal_.PaymentMethod.md +100 -0
- package/docs/interfaces/internal_.PaymentMethodConfig.md +122 -0
- package/docs/interfaces/internal_.PaymentRequestOptions.md +69 -0
- package/docs/interfaces/internal_.PaymentSettings.md +24 -0
- package/docs/interfaces/internal_.PaypalCommerceCreditCardPaymentInitializeOptions.md +92 -0
- package/docs/interfaces/internal_.PaypalCommerceFormFieldCardTypeChangeEventData.md +17 -0
- package/docs/interfaces/internal_.PaypalCommerceFormFieldKeyboardEventData.md +17 -0
- package/docs/interfaces/internal_.PaypalCommerceFormFieldOptions.md +30 -0
- package/docs/interfaces/internal_.PaypalCommerceFormFieldStylesMap.md +31 -0
- package/docs/interfaces/internal_.PaypalCommerceFormFieldValidateErrorData.md +31 -0
- package/docs/interfaces/internal_.PaypalCommerceFormFieldValidateEventData.md +35 -0
- package/docs/interfaces/internal_.PaypalCommerceFormFieldsMap.md +38 -0
- package/docs/interfaces/internal_.PaypalCommerceFormOptions.md +150 -0
- package/docs/interfaces/internal_.PaypalCommercePaymentInitializeOptions.md +188 -0
- package/docs/interfaces/internal_.PaypalCommerceStoredCardFieldOptions.md +45 -0
- package/docs/interfaces/internal_.PaypalCommerceStoredCardFieldsMap.md +24 -0
- package/docs/interfaces/internal_.PaypalExpressPaymentInitializeOptions.md +38 -0
- package/docs/interfaces/internal_.PaypalFieldsStyleOptions.md +48 -0
- package/docs/interfaces/internal_.PhysicalItem.md +313 -0
- package/docs/interfaces/internal_.PickupMethod.md +45 -0
- package/docs/interfaces/internal_.PickupOptionResult.md +17 -0
- package/docs/interfaces/internal_.Promotion.md +17 -0
- package/docs/interfaces/internal_.Radius.md +24 -0
- package/docs/interfaces/internal_.Region.md +24 -0
- package/docs/interfaces/internal_.RequestOptions.md +5 -1
- package/docs/interfaces/internal_.SearchArea.md +24 -0
- package/docs/interfaces/internal_.SepaPlaceHolder.md +24 -0
- package/docs/interfaces/internal_.SepaPlaceHolder_2.md +24 -0
- package/docs/interfaces/internal_.ShippingInitializeOptions.md +100 -0
- package/docs/interfaces/internal_.ShippingOption.md +66 -0
- package/docs/interfaces/internal_.ShippingRequestOptions.md +67 -0
- package/docs/interfaces/internal_.ShopperConfig.md +31 -0
- package/docs/interfaces/internal_.ShopperCurrency.md +96 -0
- package/docs/interfaces/internal_.SignInEmail.md +24 -0
- package/docs/interfaces/internal_.SignInEmailRequestBody.md +24 -0
- package/docs/interfaces/internal_.SpamProtectionOptions.md +27 -0
- package/docs/interfaces/internal_.SquareFormElement.md +30 -0
- package/docs/interfaces/internal_.SquarePaymentInitializeOptions.md +133 -0
- package/docs/interfaces/internal_.StepStyles.md +122 -0
- package/docs/interfaces/internal_.StepTracker.md +66 -0
- package/docs/interfaces/internal_.StepTrackerConfig.md +17 -0
- package/docs/interfaces/internal_.StoreConfig.md +117 -0
- package/docs/interfaces/internal_.StoreCurrency.md +58 -0
- package/docs/interfaces/internal_.StoreLinks.md +59 -0
- package/docs/interfaces/internal_.StoreProfile.md +73 -0
- package/docs/interfaces/internal_.StripeCustomerEvent.md +76 -0
- package/docs/interfaces/internal_.StripeElementCSSProperties.md +172 -0
- package/docs/interfaces/internal_.StripeElementClasses.md +65 -0
- package/docs/interfaces/internal_.StripeElementStyle.md +46 -0
- package/docs/interfaces/internal_.StripeElementStyleVariant.md +289 -0
- package/docs/interfaces/internal_.StripeEvent.md +39 -0
- package/docs/interfaces/internal_.StripeShippingEvent.md +76 -0
- package/docs/interfaces/internal_.StripeUPECustomerInitializeOptions.md +94 -0
- package/docs/interfaces/internal_.StripeUPEPaymentInitializeOptions.md +72 -0
- package/docs/interfaces/internal_.StripeUPEShippingInitializeOptions.md +109 -0
- package/docs/interfaces/internal_.StripeV3PaymentInitializeOptions.md +78 -0
- package/docs/interfaces/internal_.StyleOptions.md +46 -0
- package/docs/interfaces/internal_.StyleOptions_2.md +46 -0
- package/docs/interfaces/internal_.SubInputDetail.md +64 -0
- package/docs/interfaces/internal_.SubInputDetail_2.md +64 -0
- package/docs/interfaces/internal_.Subscriptions.md +31 -0
- package/docs/interfaces/internal_.Tax.md +24 -0
- package/docs/interfaces/internal_.TextInputStyles.md +177 -0
- package/docs/interfaces/internal_.ThreeDSecure.md +52 -0
- package/docs/interfaces/internal_.ThreeDSecureToken.md +17 -0
- package/docs/interfaces/internal_.TranslationData.md +9 -0
- package/docs/interfaces/internal_.Translations.md +9 -0
- package/docs/interfaces/internal_.UnknownObject.md +9 -0
- package/docs/interfaces/internal_.VaultedInstrument.md +31 -0
- package/docs/interfaces/internal_.WechatDataPaymentMethodState.md +17 -0
- package/docs/interfaces/internal_.WechatDataPaymentMethodState_2.md +17 -0
- package/docs/interfaces/internal_.WechatState.md +17 -0
- package/docs/interfaces/internal_.WechatState_2.md +17 -0
- package/docs/interfaces/internal_.WithAccountCreation.md +17 -0
- package/docs/interfaces/internal_.WithAdyenV2PaymentInitializeOptions.md +20 -0
- package/docs/interfaces/internal_.WithAdyenV3PaymentInitializeOptions.md +20 -0
- package/docs/interfaces/internal_.WithApplePayCustomerInitializeOptions.md +20 -0
- package/docs/interfaces/internal_.WithApplePayPaymentInitializeOptions.md +20 -0
- package/docs/interfaces/internal_.WithCheckoutcomFawryInstrument.md +24 -0
- package/docs/interfaces/internal_.WithCheckoutcomSEPAInstrument.md +24 -0
- package/docs/interfaces/internal_.WithCheckoutcomiDealInstrument.md +17 -0
- package/docs/interfaces/internal_.WithDocumentInstrument.md +17 -0
- package/docs/interfaces/internal_.WithMollieIssuerInstrument.md +24 -0
- package/docs/interfaces/internal_.WorldpayAccessPaymentInitializeOptions.md +32 -0
- package/docs/interfaces/internal_.ZipCodeElementOptions.md +17 -0
- package/docs/modules/internal_.md +515 -51
- package/package.json +1 -1
- package/docs/classes/internal_.CheckoutButtonErrorSelector.md +0 -54
- package/docs/classes/internal_.CheckoutButtonInitializer.md +0 -179
- package/docs/classes/internal_.CheckoutButtonStatusSelector.md +0 -54
- package/docs/enums/internal_.AmazonPayV2ButtonColor.md +0 -31
- package/docs/enums/internal_.AmazonPayV2CheckoutLanguage.md +0 -59
- package/docs/enums/internal_.AmazonPayV2LedgerCurrency.md +0 -38
- package/docs/enums/internal_.AmazonPayV2PayOptions.md +0 -28
- package/docs/enums/internal_.AmazonPayV2Placement.md +0 -55
- package/docs/enums/internal_.CheckoutButtonMethodType.md +0 -164
- package/docs/enums/internal_.PaypalButtonStyleColorOption.md +0 -38
- package/docs/enums/internal_.PaypalButtonStyleLabelOption.md +0 -45
- package/docs/enums/internal_.PaypalButtonStyleLayoutOption.md +0 -24
- package/docs/enums/internal_.PaypalButtonStyleShapeOption.md +0 -24
- package/docs/enums/internal_.PaypalButtonStyleSizeOption.md +0 -38
- package/docs/enums/internal_.StyleButtonColor.md +0 -45
- package/docs/enums/internal_.StyleButtonLabel.md +0 -45
- package/docs/enums/internal_.StyleButtonLayout.md +0 -24
- package/docs/enums/internal_.StyleButtonShape.md +0 -24
- package/docs/interfaces/internal_.AmazonPayV2ButtonConfig.md +0 -82
- package/docs/interfaces/internal_.AmazonPayV2ButtonParams.md +0 -117
- package/docs/interfaces/internal_.AmazonPayV2CheckoutSession.md +0 -37
- package/docs/interfaces/internal_.AmazonPayV2CheckoutSessionConfig.md +0 -38
- package/docs/interfaces/internal_.AmazonPayV2NewButtonParams.md +0 -139
- package/docs/interfaces/internal_.AmazonPayV2Price.md +0 -28
- package/docs/interfaces/internal_.ApplePayButtonInitializeOptions.md +0 -40
- package/docs/interfaces/internal_.ApplePayButtonInitializeOptions_2.md +0 -40
- package/docs/interfaces/internal_.BaseCheckoutButtonInitializeOptions.md +0 -291
- package/docs/interfaces/internal_.BraintreeError.md +0 -37
- package/docs/interfaces/internal_.BraintreePaypalButtonInitializeOptions.md +0 -122
- package/docs/interfaces/internal_.BraintreePaypalCreditButtonInitializeOptions.md +0 -113
- package/docs/interfaces/internal_.BraintreeVenmoButtonInitializeOptions.md +0 -56
- package/docs/interfaces/internal_.BuyNowCartRequestBody.md +0 -26
- package/docs/interfaces/internal_.CheckoutButtonInitializerOptions.md +0 -24
- package/docs/interfaces/internal_.CheckoutButtonOptions.md +0 -57
- package/docs/interfaces/internal_.CheckoutButtonSelectors.md +0 -24
- package/docs/interfaces/internal_.PaypalButtonInitializeOptions.md +0 -78
- package/docs/interfaces/internal_.PaypalButtonStyleOptions.md +0 -66
- package/docs/interfaces/internal_.PaypalButtonStyleOptions_2.md +0 -69
- package/docs/interfaces/internal_.PaypalCommerceAlternativeMethodsButtonOptions.md +0 -61
- package/docs/interfaces/internal_.PaypalCommerceButtonInitializeOptions.md +0 -68
- package/docs/interfaces/internal_.PaypalCommerceCreditButtonInitializeOptions.md +0 -77
- package/docs/interfaces/internal_.PaypalCommerceInlineCheckoutButtonInitializeOptions.md +0 -58
- package/docs/interfaces/internal_.PaypalCommerceVenmoButtonInitializeOptions.md +0 -52
- package/docs/interfaces/internal_.WithApplePayButtonInitializeOptions.md +0 -17
|
@@ -0,0 +1,503 @@
|
|
|
1
|
+
[@bigcommerce/checkout-sdk](../README.md) / [<internal\>](../modules/internal_.md) / CheckoutStoreSelector
|
|
2
|
+
|
|
3
|
+
# Interface: CheckoutStoreSelector
|
|
4
|
+
|
|
5
|
+
[<internal>](../modules/internal_.md).CheckoutStoreSelector
|
|
6
|
+
|
|
7
|
+
Responsible for getting the state of the current checkout.
|
|
8
|
+
|
|
9
|
+
This object has a set of methods that allow you to get a specific piece of
|
|
10
|
+
checkout information, such as shipping and billing details.
|
|
11
|
+
|
|
12
|
+
## Table of contents
|
|
13
|
+
|
|
14
|
+
### Methods
|
|
15
|
+
|
|
16
|
+
- [getBillingAddress](internal_.CheckoutStoreSelector.md#getbillingaddress)
|
|
17
|
+
- [getBillingAddressFields](internal_.CheckoutStoreSelector.md#getbillingaddressfields)
|
|
18
|
+
- [getBillingCountries](internal_.CheckoutStoreSelector.md#getbillingcountries)
|
|
19
|
+
- [getCart](internal_.CheckoutStoreSelector.md#getcart)
|
|
20
|
+
- [getCheckout](internal_.CheckoutStoreSelector.md#getcheckout)
|
|
21
|
+
- [getConfig](internal_.CheckoutStoreSelector.md#getconfig)
|
|
22
|
+
- [getConsignments](internal_.CheckoutStoreSelector.md#getconsignments)
|
|
23
|
+
- [getCoupons](internal_.CheckoutStoreSelector.md#getcoupons)
|
|
24
|
+
- [getCustomer](internal_.CheckoutStoreSelector.md#getcustomer)
|
|
25
|
+
- [getCustomerAccountFields](internal_.CheckoutStoreSelector.md#getcustomeraccountfields)
|
|
26
|
+
- [getFlashMessages](internal_.CheckoutStoreSelector.md#getflashmessages)
|
|
27
|
+
- [getGiftCertificates](internal_.CheckoutStoreSelector.md#getgiftcertificates)
|
|
28
|
+
- [getInstruments](internal_.CheckoutStoreSelector.md#getinstruments)
|
|
29
|
+
- [getOrder](internal_.CheckoutStoreSelector.md#getorder)
|
|
30
|
+
- [getPaymentMethod](internal_.CheckoutStoreSelector.md#getpaymentmethod)
|
|
31
|
+
- [getPaymentMethods](internal_.CheckoutStoreSelector.md#getpaymentmethods)
|
|
32
|
+
- [getPickupOptions](internal_.CheckoutStoreSelector.md#getpickupoptions)
|
|
33
|
+
- [getSelectedPaymentMethod](internal_.CheckoutStoreSelector.md#getselectedpaymentmethod)
|
|
34
|
+
- [getSelectedShippingOption](internal_.CheckoutStoreSelector.md#getselectedshippingoption)
|
|
35
|
+
- [getShippingAddress](internal_.CheckoutStoreSelector.md#getshippingaddress)
|
|
36
|
+
- [getShippingAddressFields](internal_.CheckoutStoreSelector.md#getshippingaddressfields)
|
|
37
|
+
- [getShippingCountries](internal_.CheckoutStoreSelector.md#getshippingcountries)
|
|
38
|
+
- [getShippingOptions](internal_.CheckoutStoreSelector.md#getshippingoptions)
|
|
39
|
+
- [getSignInEmail](internal_.CheckoutStoreSelector.md#getsigninemail)
|
|
40
|
+
- [isPaymentDataRequired](internal_.CheckoutStoreSelector.md#ispaymentdatarequired)
|
|
41
|
+
- [isPaymentDataSubmitted](internal_.CheckoutStoreSelector.md#ispaymentdatasubmitted)
|
|
42
|
+
|
|
43
|
+
## Methods
|
|
44
|
+
|
|
45
|
+
### getBillingAddress
|
|
46
|
+
|
|
47
|
+
▸ **getBillingAddress**(): `undefined` \| [`BillingAddress`](internal_.BillingAddress.md)
|
|
48
|
+
|
|
49
|
+
Gets the billing address of an order.
|
|
50
|
+
|
|
51
|
+
#### Returns
|
|
52
|
+
|
|
53
|
+
`undefined` \| [`BillingAddress`](internal_.BillingAddress.md)
|
|
54
|
+
|
|
55
|
+
The billing address object if it is loaded, otherwise undefined.
|
|
56
|
+
|
|
57
|
+
___
|
|
58
|
+
|
|
59
|
+
### getBillingAddressFields
|
|
60
|
+
|
|
61
|
+
▸ **getBillingAddressFields**(`countryCode`): [`FormField`](internal_.FormField.md)[]
|
|
62
|
+
|
|
63
|
+
Gets a set of form fields that should be presented to customers in order
|
|
64
|
+
to capture their billing address for a specific country.
|
|
65
|
+
|
|
66
|
+
#### Parameters
|
|
67
|
+
|
|
68
|
+
| Name | Type | Description |
|
|
69
|
+
| :------ | :------ | :------ |
|
|
70
|
+
| `countryCode` | `string` | A 2-letter country code (ISO 3166-1 alpha-2). |
|
|
71
|
+
|
|
72
|
+
#### Returns
|
|
73
|
+
|
|
74
|
+
[`FormField`](internal_.FormField.md)[]
|
|
75
|
+
|
|
76
|
+
The set of billing address form fields if it is loaded,
|
|
77
|
+
otherwise undefined.
|
|
78
|
+
|
|
79
|
+
___
|
|
80
|
+
|
|
81
|
+
### getBillingCountries
|
|
82
|
+
|
|
83
|
+
▸ **getBillingCountries**(): `undefined` \| [`Country`](internal_.Country.md)[]
|
|
84
|
+
|
|
85
|
+
Gets a list of countries available for billing.
|
|
86
|
+
|
|
87
|
+
#### Returns
|
|
88
|
+
|
|
89
|
+
`undefined` \| [`Country`](internal_.Country.md)[]
|
|
90
|
+
|
|
91
|
+
The list of countries if it is loaded, otherwise undefined.
|
|
92
|
+
|
|
93
|
+
___
|
|
94
|
+
|
|
95
|
+
### getCart
|
|
96
|
+
|
|
97
|
+
▸ **getCart**(): `undefined` \| [`Cart`](internal_.Cart.md)
|
|
98
|
+
|
|
99
|
+
Gets the current cart.
|
|
100
|
+
|
|
101
|
+
#### Returns
|
|
102
|
+
|
|
103
|
+
`undefined` \| [`Cart`](internal_.Cart.md)
|
|
104
|
+
|
|
105
|
+
The current cart object if it is loaded, otherwise undefined.
|
|
106
|
+
|
|
107
|
+
___
|
|
108
|
+
|
|
109
|
+
### getCheckout
|
|
110
|
+
|
|
111
|
+
▸ **getCheckout**(): `undefined` \| [`Checkout`](internal_.Checkout.md)
|
|
112
|
+
|
|
113
|
+
Gets the current checkout.
|
|
114
|
+
|
|
115
|
+
#### Returns
|
|
116
|
+
|
|
117
|
+
`undefined` \| [`Checkout`](internal_.Checkout.md)
|
|
118
|
+
|
|
119
|
+
The current checkout if it is loaded, otherwise undefined.
|
|
120
|
+
|
|
121
|
+
___
|
|
122
|
+
|
|
123
|
+
### getConfig
|
|
124
|
+
|
|
125
|
+
▸ **getConfig**(): `undefined` \| [`StoreConfig`](internal_.StoreConfig.md)
|
|
126
|
+
|
|
127
|
+
Gets the checkout configuration of a store.
|
|
128
|
+
|
|
129
|
+
#### Returns
|
|
130
|
+
|
|
131
|
+
`undefined` \| [`StoreConfig`](internal_.StoreConfig.md)
|
|
132
|
+
|
|
133
|
+
The configuration object if it is loaded, otherwise undefined.
|
|
134
|
+
|
|
135
|
+
___
|
|
136
|
+
|
|
137
|
+
### getConsignments
|
|
138
|
+
|
|
139
|
+
▸ **getConsignments**(): `undefined` \| [`Consignment`](internal_.Consignment.md)[]
|
|
140
|
+
|
|
141
|
+
Gets a list of consignments.
|
|
142
|
+
|
|
143
|
+
If there are no consignments created for to the current checkout, the
|
|
144
|
+
list will be empty.
|
|
145
|
+
|
|
146
|
+
#### Returns
|
|
147
|
+
|
|
148
|
+
`undefined` \| [`Consignment`](internal_.Consignment.md)[]
|
|
149
|
+
|
|
150
|
+
The list of consignments if any, otherwise undefined.
|
|
151
|
+
|
|
152
|
+
___
|
|
153
|
+
|
|
154
|
+
### getCoupons
|
|
155
|
+
|
|
156
|
+
▸ **getCoupons**(): `undefined` \| [`Coupon`](internal_.Coupon.md)[]
|
|
157
|
+
|
|
158
|
+
Gets a list of coupons that are applied to the current checkout.
|
|
159
|
+
|
|
160
|
+
#### Returns
|
|
161
|
+
|
|
162
|
+
`undefined` \| [`Coupon`](internal_.Coupon.md)[]
|
|
163
|
+
|
|
164
|
+
The list of applied coupons if there is any, otherwise undefined.
|
|
165
|
+
|
|
166
|
+
___
|
|
167
|
+
|
|
168
|
+
### getCustomer
|
|
169
|
+
|
|
170
|
+
▸ **getCustomer**(): `undefined` \| [`Customer`](internal_.Customer.md)
|
|
171
|
+
|
|
172
|
+
Gets the current customer.
|
|
173
|
+
|
|
174
|
+
#### Returns
|
|
175
|
+
|
|
176
|
+
`undefined` \| [`Customer`](internal_.Customer.md)
|
|
177
|
+
|
|
178
|
+
The current customer object if it is loaded, otherwise
|
|
179
|
+
undefined.
|
|
180
|
+
|
|
181
|
+
___
|
|
182
|
+
|
|
183
|
+
### getCustomerAccountFields
|
|
184
|
+
|
|
185
|
+
▸ **getCustomerAccountFields**(): [`FormField`](internal_.FormField.md)[]
|
|
186
|
+
|
|
187
|
+
Gets a set of form fields that should be presented in order to create a customer.
|
|
188
|
+
|
|
189
|
+
#### Returns
|
|
190
|
+
|
|
191
|
+
[`FormField`](internal_.FormField.md)[]
|
|
192
|
+
|
|
193
|
+
The set of customer account form fields if it is loaded,
|
|
194
|
+
otherwise undefined.
|
|
195
|
+
|
|
196
|
+
___
|
|
197
|
+
|
|
198
|
+
### getFlashMessages
|
|
199
|
+
|
|
200
|
+
▸ **getFlashMessages**(`type?`): `undefined` \| [`FlashMessage`](internal_.FlashMessage.md)[]
|
|
201
|
+
|
|
202
|
+
Gets the available flash messages.
|
|
203
|
+
|
|
204
|
+
Flash messages contain messages set by the server,
|
|
205
|
+
e.g: when trying to sign in using an invalid email link.
|
|
206
|
+
|
|
207
|
+
#### Parameters
|
|
208
|
+
|
|
209
|
+
| Name | Type | Description |
|
|
210
|
+
| :------ | :------ | :------ |
|
|
211
|
+
| `type?` | [`FlashMessageType`](../modules/internal_.md#flashmessagetype) | The type of flash messages to be returned. Optional |
|
|
212
|
+
|
|
213
|
+
#### Returns
|
|
214
|
+
|
|
215
|
+
`undefined` \| [`FlashMessage`](internal_.FlashMessage.md)[]
|
|
216
|
+
|
|
217
|
+
The flash messages if available, otherwise undefined.
|
|
218
|
+
|
|
219
|
+
___
|
|
220
|
+
|
|
221
|
+
### getGiftCertificates
|
|
222
|
+
|
|
223
|
+
▸ **getGiftCertificates**(): `undefined` \| [`GiftCertificate`](internal_.GiftCertificate.md)[]
|
|
224
|
+
|
|
225
|
+
Gets a list of gift certificates that are applied to the current checkout.
|
|
226
|
+
|
|
227
|
+
#### Returns
|
|
228
|
+
|
|
229
|
+
`undefined` \| [`GiftCertificate`](internal_.GiftCertificate.md)[]
|
|
230
|
+
|
|
231
|
+
The list of applied gift certificates if there is any, otherwise undefined.
|
|
232
|
+
|
|
233
|
+
___
|
|
234
|
+
|
|
235
|
+
### getInstruments
|
|
236
|
+
|
|
237
|
+
▸ **getInstruments**(): `undefined` \| [`CardInstrument`](internal_.CardInstrument.md)[]
|
|
238
|
+
|
|
239
|
+
Gets a list of payment instruments associated with the current customer.
|
|
240
|
+
|
|
241
|
+
#### Returns
|
|
242
|
+
|
|
243
|
+
`undefined` \| [`CardInstrument`](internal_.CardInstrument.md)[]
|
|
244
|
+
|
|
245
|
+
The list of payment instruments if it is loaded, otherwise undefined.
|
|
246
|
+
|
|
247
|
+
▸ **getInstruments**(`paymentMethod`): `undefined` \| [`PaymentInstrument`](../modules/internal_.md#paymentinstrument)[]
|
|
248
|
+
|
|
249
|
+
#### Parameters
|
|
250
|
+
|
|
251
|
+
| Name | Type |
|
|
252
|
+
| :------ | :------ |
|
|
253
|
+
| `paymentMethod` | [`PaymentMethod`](internal_.PaymentMethod.md)<`any`\> |
|
|
254
|
+
|
|
255
|
+
#### Returns
|
|
256
|
+
|
|
257
|
+
`undefined` \| [`PaymentInstrument`](../modules/internal_.md#paymentinstrument)[]
|
|
258
|
+
|
|
259
|
+
___
|
|
260
|
+
|
|
261
|
+
### getOrder
|
|
262
|
+
|
|
263
|
+
▸ **getOrder**(): `undefined` \| [`Order`](internal_.Order.md)
|
|
264
|
+
|
|
265
|
+
Gets the current order.
|
|
266
|
+
|
|
267
|
+
#### Returns
|
|
268
|
+
|
|
269
|
+
`undefined` \| [`Order`](internal_.Order.md)
|
|
270
|
+
|
|
271
|
+
The current order if it is loaded, otherwise undefined.
|
|
272
|
+
|
|
273
|
+
___
|
|
274
|
+
|
|
275
|
+
### getPaymentMethod
|
|
276
|
+
|
|
277
|
+
▸ **getPaymentMethod**(`methodId`, `gatewayId?`): `undefined` \| [`PaymentMethod`](internal_.PaymentMethod.md)<`any`\>
|
|
278
|
+
|
|
279
|
+
Gets a payment method by an id.
|
|
280
|
+
|
|
281
|
+
The method returns undefined if unable to find a payment method with the
|
|
282
|
+
specified id, either because it is not available for the customer, or it
|
|
283
|
+
is not loaded.
|
|
284
|
+
|
|
285
|
+
#### Parameters
|
|
286
|
+
|
|
287
|
+
| Name | Type | Description |
|
|
288
|
+
| :------ | :------ | :------ |
|
|
289
|
+
| `methodId` | `string` | The identifier of the payment method. |
|
|
290
|
+
| `gatewayId?` | `string` | The identifier of a payment provider providing the payment method. |
|
|
291
|
+
|
|
292
|
+
#### Returns
|
|
293
|
+
|
|
294
|
+
`undefined` \| [`PaymentMethod`](internal_.PaymentMethod.md)<`any`\>
|
|
295
|
+
|
|
296
|
+
The payment method object if loaded and available, otherwise,
|
|
297
|
+
undefined.
|
|
298
|
+
|
|
299
|
+
___
|
|
300
|
+
|
|
301
|
+
### getPaymentMethods
|
|
302
|
+
|
|
303
|
+
▸ **getPaymentMethods**(): `undefined` \| [`PaymentMethod`](internal_.PaymentMethod.md)<`any`\>[]
|
|
304
|
+
|
|
305
|
+
Gets a list of payment methods available for checkout.
|
|
306
|
+
|
|
307
|
+
#### Returns
|
|
308
|
+
|
|
309
|
+
`undefined` \| [`PaymentMethod`](internal_.PaymentMethod.md)<`any`\>[]
|
|
310
|
+
|
|
311
|
+
The list of payment methods if it is loaded, otherwise undefined.
|
|
312
|
+
|
|
313
|
+
___
|
|
314
|
+
|
|
315
|
+
### getPickupOptions
|
|
316
|
+
|
|
317
|
+
▸ **getPickupOptions**(`consignmentId`, `searchArea`): `undefined` \| [`PickupOptionResult`](internal_.PickupOptionResult.md)[]
|
|
318
|
+
|
|
319
|
+
Gets a list of pickup options for specified parameters.
|
|
320
|
+
|
|
321
|
+
#### Parameters
|
|
322
|
+
|
|
323
|
+
| Name | Type | Description |
|
|
324
|
+
| :------ | :------ | :------ |
|
|
325
|
+
| `consignmentId` | `string` | Id of consignment. |
|
|
326
|
+
| `searchArea` | [`SearchArea`](internal_.SearchArea.md) | An object containing of radius and co-ordinates. |
|
|
327
|
+
|
|
328
|
+
#### Returns
|
|
329
|
+
|
|
330
|
+
`undefined` \| [`PickupOptionResult`](internal_.PickupOptionResult.md)[]
|
|
331
|
+
|
|
332
|
+
The set of shipping address form fields if it is loaded,
|
|
333
|
+
otherwise undefined.
|
|
334
|
+
|
|
335
|
+
___
|
|
336
|
+
|
|
337
|
+
### getSelectedPaymentMethod
|
|
338
|
+
|
|
339
|
+
▸ **getSelectedPaymentMethod**(): `undefined` \| [`PaymentMethod`](internal_.PaymentMethod.md)<`any`\>
|
|
340
|
+
|
|
341
|
+
Gets the payment method that is selected for checkout.
|
|
342
|
+
|
|
343
|
+
#### Returns
|
|
344
|
+
|
|
345
|
+
`undefined` \| [`PaymentMethod`](internal_.PaymentMethod.md)<`any`\>
|
|
346
|
+
|
|
347
|
+
The payment method object if there is a selected method;
|
|
348
|
+
undefined if otherwise.
|
|
349
|
+
|
|
350
|
+
___
|
|
351
|
+
|
|
352
|
+
### getSelectedShippingOption
|
|
353
|
+
|
|
354
|
+
▸ **getSelectedShippingOption**(): `undefined` \| [`ShippingOption`](internal_.ShippingOption.md)
|
|
355
|
+
|
|
356
|
+
Gets the selected shipping option for the current checkout.
|
|
357
|
+
|
|
358
|
+
#### Returns
|
|
359
|
+
|
|
360
|
+
`undefined` \| [`ShippingOption`](internal_.ShippingOption.md)
|
|
361
|
+
|
|
362
|
+
The shipping option object if there is a selected option,
|
|
363
|
+
otherwise undefined.
|
|
364
|
+
|
|
365
|
+
___
|
|
366
|
+
|
|
367
|
+
### getShippingAddress
|
|
368
|
+
|
|
369
|
+
▸ **getShippingAddress**(): `undefined` \| [`Address`](internal_.Address.md)
|
|
370
|
+
|
|
371
|
+
Gets the shipping address of the current checkout.
|
|
372
|
+
|
|
373
|
+
If the address is partially complete, it may not have shipping options
|
|
374
|
+
associated with it.
|
|
375
|
+
|
|
376
|
+
#### Returns
|
|
377
|
+
|
|
378
|
+
`undefined` \| [`Address`](internal_.Address.md)
|
|
379
|
+
|
|
380
|
+
The shipping address object if it is loaded, otherwise
|
|
381
|
+
undefined.
|
|
382
|
+
|
|
383
|
+
___
|
|
384
|
+
|
|
385
|
+
### getShippingAddressFields
|
|
386
|
+
|
|
387
|
+
▸ **getShippingAddressFields**(`countryCode`): [`FormField`](internal_.FormField.md)[]
|
|
388
|
+
|
|
389
|
+
Gets a set of form fields that should be presented to customers in order
|
|
390
|
+
to capture their shipping address for a specific country.
|
|
391
|
+
|
|
392
|
+
#### Parameters
|
|
393
|
+
|
|
394
|
+
| Name | Type | Description |
|
|
395
|
+
| :------ | :------ | :------ |
|
|
396
|
+
| `countryCode` | `string` | A 2-letter country code (ISO 3166-1 alpha-2). |
|
|
397
|
+
|
|
398
|
+
#### Returns
|
|
399
|
+
|
|
400
|
+
[`FormField`](internal_.FormField.md)[]
|
|
401
|
+
|
|
402
|
+
The set of shipping address form fields if it is loaded,
|
|
403
|
+
otherwise undefined.
|
|
404
|
+
|
|
405
|
+
___
|
|
406
|
+
|
|
407
|
+
### getShippingCountries
|
|
408
|
+
|
|
409
|
+
▸ **getShippingCountries**(): `undefined` \| [`Country`](internal_.Country.md)[]
|
|
410
|
+
|
|
411
|
+
Gets a list of countries available for shipping.
|
|
412
|
+
|
|
413
|
+
#### Returns
|
|
414
|
+
|
|
415
|
+
`undefined` \| [`Country`](internal_.Country.md)[]
|
|
416
|
+
|
|
417
|
+
The list of countries if it is loaded, otherwise undefined.
|
|
418
|
+
|
|
419
|
+
___
|
|
420
|
+
|
|
421
|
+
### getShippingOptions
|
|
422
|
+
|
|
423
|
+
▸ **getShippingOptions**(): `undefined` \| [`ShippingOption`](internal_.ShippingOption.md)[]
|
|
424
|
+
|
|
425
|
+
Gets a list of shipping options available for the shipping address.
|
|
426
|
+
|
|
427
|
+
If there is no shipping address assigned to the current checkout, the
|
|
428
|
+
list of shipping options will be empty.
|
|
429
|
+
|
|
430
|
+
#### Returns
|
|
431
|
+
|
|
432
|
+
`undefined` \| [`ShippingOption`](internal_.ShippingOption.md)[]
|
|
433
|
+
|
|
434
|
+
The list of shipping options if any, otherwise undefined.
|
|
435
|
+
|
|
436
|
+
___
|
|
437
|
+
|
|
438
|
+
### getSignInEmail
|
|
439
|
+
|
|
440
|
+
▸ **getSignInEmail**(): `undefined` \| [`SignInEmail`](internal_.SignInEmail.md)
|
|
441
|
+
|
|
442
|
+
Gets the sign-in email.
|
|
443
|
+
|
|
444
|
+
#### Returns
|
|
445
|
+
|
|
446
|
+
`undefined` \| [`SignInEmail`](internal_.SignInEmail.md)
|
|
447
|
+
|
|
448
|
+
The sign-in email object if sent, otherwise undefined
|
|
449
|
+
|
|
450
|
+
___
|
|
451
|
+
|
|
452
|
+
### isPaymentDataRequired
|
|
453
|
+
|
|
454
|
+
▸ **isPaymentDataRequired**(`useStoreCredit?`): `boolean`
|
|
455
|
+
|
|
456
|
+
Checks if payment data is required or not.
|
|
457
|
+
|
|
458
|
+
If payment data is required, customers should be prompted to enter their
|
|
459
|
+
payment details.
|
|
460
|
+
|
|
461
|
+
```js
|
|
462
|
+
if (state.checkout.isPaymentDataRequired()) {
|
|
463
|
+
// Render payment form
|
|
464
|
+
} else {
|
|
465
|
+
// Render "Payment is not required for this order" message
|
|
466
|
+
}
|
|
467
|
+
```
|
|
468
|
+
|
|
469
|
+
#### Parameters
|
|
470
|
+
|
|
471
|
+
| Name | Type | Description |
|
|
472
|
+
| :------ | :------ | :------ |
|
|
473
|
+
| `useStoreCredit?` | `boolean` | If true, check whether payment data is required with store credit applied; otherwise, check without store credit. |
|
|
474
|
+
|
|
475
|
+
#### Returns
|
|
476
|
+
|
|
477
|
+
`boolean`
|
|
478
|
+
|
|
479
|
+
True if payment data is required, otherwise false.
|
|
480
|
+
|
|
481
|
+
___
|
|
482
|
+
|
|
483
|
+
### isPaymentDataSubmitted
|
|
484
|
+
|
|
485
|
+
▸ **isPaymentDataSubmitted**(`methodId`, `gatewayId?`): `boolean`
|
|
486
|
+
|
|
487
|
+
Checks if payment data is submitted or not.
|
|
488
|
+
|
|
489
|
+
If payment data is already submitted using a payment method, customers
|
|
490
|
+
should not be prompted to enter their payment details again.
|
|
491
|
+
|
|
492
|
+
#### Parameters
|
|
493
|
+
|
|
494
|
+
| Name | Type | Description |
|
|
495
|
+
| :------ | :------ | :------ |
|
|
496
|
+
| `methodId` | `string` | The identifier of the payment method. |
|
|
497
|
+
| `gatewayId?` | `string` | The identifier of a payment provider providing the payment method. |
|
|
498
|
+
|
|
499
|
+
#### Returns
|
|
500
|
+
|
|
501
|
+
`boolean`
|
|
502
|
+
|
|
503
|
+
True if payment data is submitted, otherwise false.
|