@bigcommerce/checkout-sdk 1.181.0 → 1.183.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/dist/checkout-button.js +1 -1
- package/dist/checkout-button.js.map +1 -1
- package/dist/checkout-button.umd.js +7 -7
- package/dist/checkout-button.umd.js.map +1 -1
- package/dist/checkout-sdk.d.ts +9 -1
- package/dist/checkout-sdk.js +1 -1
- package/dist/checkout-sdk.js.map +1 -1
- package/dist/checkout-sdk.umd.js +8 -8
- package/dist/checkout-sdk.umd.js.map +1 -1
- package/dist/embedded-checkout.js +1 -1
- package/dist/embedded-checkout.js.map +1 -1
- package/dist/embedded-checkout.umd.js +6 -6
- package/dist/embedded-checkout.umd.js.map +1 -1
- package/dist/hosted-form.js +1 -1
- package/dist/hosted-form.js.map +1 -1
- package/dist/hosted-form.umd.js +3 -3
- package/dist/hosted-form.umd.js.map +1 -1
- package/dist/internal-mappers.js +1 -1
- package/dist/internal-mappers.js.map +1 -1
- package/dist/internal-mappers.umd.js +2 -2
- package/dist/internal-mappers.umd.js.map +1 -1
- package/docs/README.md +1 -0
- package/docs/interfaces/boltpaymentinitializeoptions.md +20 -0
- package/docs/interfaces/orderpaymentrequestbody.md +1 -1
- package/docs/interfaces/withaccountcreation.md +19 -0
- package/package.json +1 -1
package/dist/checkout-sdk.d.ts
CHANGED
|
@@ -725,6 +725,10 @@ declare interface BoltPaymentInitializeOptions {
|
|
|
725
725
|
* The CSS selector of a container where the Bolt Embedded payment field should be inserted into.
|
|
726
726
|
*/
|
|
727
727
|
containerId?: string;
|
|
728
|
+
/**
|
|
729
|
+
* A callback that gets called when the customer selects Bolt as payment option.
|
|
730
|
+
*/
|
|
731
|
+
onPaymentSelect?(hasBoltAccount: boolean): void;
|
|
728
732
|
}
|
|
729
733
|
|
|
730
734
|
declare interface BraintreeError extends Error {
|
|
@@ -4870,7 +4874,7 @@ declare interface OrderPaymentRequestBody {
|
|
|
4870
4874
|
* An object that contains the details of a credit card, vaulted payment
|
|
4871
4875
|
* instrument or nonce instrument.
|
|
4872
4876
|
*/
|
|
4873
|
-
paymentData?: CreditCardInstrument | HostedInstrument | HostedCreditCardInstrument | HostedVaultedInstrument | NonceInstrument | VaultedInstrument | CreditCardInstrument & WithDocumentInstrument | CreditCardInstrument & WithCheckoutcomFawryInstrument | CreditCardInstrument & WithCheckoutcomSEPAInstrument | CreditCardInstrument & WithCheckoutcomiDealInstrument | HostedInstrument & WithMollieIssuerInstrument;
|
|
4877
|
+
paymentData?: CreditCardInstrument | HostedInstrument | HostedCreditCardInstrument | HostedVaultedInstrument | NonceInstrument | VaultedInstrument | CreditCardInstrument & WithDocumentInstrument | CreditCardInstrument & WithCheckoutcomFawryInstrument | CreditCardInstrument & WithCheckoutcomSEPAInstrument | CreditCardInstrument & WithCheckoutcomiDealInstrument | HostedInstrument & WithMollieIssuerInstrument | WithAccountCreation;
|
|
4874
4878
|
}
|
|
4875
4879
|
|
|
4876
4880
|
declare type OrderPayments = Array<GatewayOrderPayment | GiftCertificateOrderPayment>;
|
|
@@ -6212,6 +6216,10 @@ declare interface WechatState {
|
|
|
6212
6216
|
data: WechatDataPaymentMethodState;
|
|
6213
6217
|
}
|
|
6214
6218
|
|
|
6219
|
+
declare interface WithAccountCreation {
|
|
6220
|
+
shouldCreateAccount?: boolean;
|
|
6221
|
+
}
|
|
6222
|
+
|
|
6215
6223
|
declare interface WithCheckoutcomFawryInstrument {
|
|
6216
6224
|
customerMobile: string;
|
|
6217
6225
|
customerEmail: string;
|