@stigg/react-sdk 7.15.1 → 7.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/stigg-sdk.cjs.js +432 -432
- package/dist/stigg-sdk.esm.js +432 -432
- package/package.json +3 -2
package/dist/index.d.mts
CHANGED
|
@@ -348,6 +348,7 @@ type PaymentStepState = {
|
|
|
348
348
|
errorMessage?: string;
|
|
349
349
|
billingAddress?: BillingAddress;
|
|
350
350
|
taxPercentage?: number;
|
|
351
|
+
taxId?: TaxId;
|
|
351
352
|
};
|
|
352
353
|
|
|
353
354
|
type PlanStepState = {
|
|
@@ -371,7 +372,12 @@ type BillingInformation = {
|
|
|
371
372
|
};
|
|
372
373
|
type TaxDetailsInput = {
|
|
373
374
|
taxPercentage?: SubscriptionBillingInfo['taxPercentage'];
|
|
375
|
+
taxId?: TaxId;
|
|
374
376
|
};
|
|
377
|
+
interface TaxId {
|
|
378
|
+
type: string;
|
|
379
|
+
value: string;
|
|
380
|
+
}
|
|
375
381
|
type MockCheckoutPreviewCallback = (params: PreviewSubscription) => SubscriptionPreviewV2;
|
|
376
382
|
type MockCheckoutStateCallback = (params: GetCheckoutState) => GetCheckoutStateResults;
|
|
377
383
|
type CheckoutMockProps = {
|
|
@@ -565,6 +571,7 @@ type CheckoutContainerProps = {
|
|
|
565
571
|
disablePromotionCode?: boolean;
|
|
566
572
|
disableSuccessAnimation?: boolean;
|
|
567
573
|
collectPhoneNumber?: boolean;
|
|
574
|
+
collectTaxId?: boolean;
|
|
568
575
|
onMockCheckoutPreview?: MockCheckoutPreviewCallback;
|
|
569
576
|
};
|
|
570
577
|
|
package/dist/index.d.ts
CHANGED
|
@@ -348,6 +348,7 @@ type PaymentStepState = {
|
|
|
348
348
|
errorMessage?: string;
|
|
349
349
|
billingAddress?: BillingAddress;
|
|
350
350
|
taxPercentage?: number;
|
|
351
|
+
taxId?: TaxId;
|
|
351
352
|
};
|
|
352
353
|
|
|
353
354
|
type PlanStepState = {
|
|
@@ -371,7 +372,12 @@ type BillingInformation = {
|
|
|
371
372
|
};
|
|
372
373
|
type TaxDetailsInput = {
|
|
373
374
|
taxPercentage?: SubscriptionBillingInfo['taxPercentage'];
|
|
375
|
+
taxId?: TaxId;
|
|
374
376
|
};
|
|
377
|
+
interface TaxId {
|
|
378
|
+
type: string;
|
|
379
|
+
value: string;
|
|
380
|
+
}
|
|
375
381
|
type MockCheckoutPreviewCallback = (params: PreviewSubscription) => SubscriptionPreviewV2;
|
|
376
382
|
type MockCheckoutStateCallback = (params: GetCheckoutState) => GetCheckoutStateResults;
|
|
377
383
|
type CheckoutMockProps = {
|
|
@@ -565,6 +571,7 @@ type CheckoutContainerProps = {
|
|
|
565
571
|
disablePromotionCode?: boolean;
|
|
566
572
|
disableSuccessAnimation?: boolean;
|
|
567
573
|
collectPhoneNumber?: boolean;
|
|
574
|
+
collectTaxId?: boolean;
|
|
568
575
|
onMockCheckoutPreview?: MockCheckoutPreviewCallback;
|
|
569
576
|
};
|
|
570
577
|
|