@bigcommerce/checkout-sdk 1.717.0 → 1.718.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/dist/checkout-button.js +1 -1
- package/dist/checkout-button.umd.js +1 -1
- package/dist/checkout-sdk.d.ts +17 -0
- package/dist/checkout-sdk.js +1 -1
- package/dist/checkout-sdk.umd.js +1 -1
- package/dist/hosted-form-v2-iframe-host.js +1 -1
- package/dist/hosted-form-v2-iframe-host.umd.js +1 -1
- package/dist/internal-mappers.d.ts +17 -0
- package/docs/README.md +10 -0
- package/docs/interfaces/Consignment.md +7 -0
- package/docs/interfaces/ConsignmentAutomaticDiscount.md +47 -0
- package/docs/interfaces/ConsignmentCouponDiscount.md +61 -0
- package/docs/interfaces/ConsignmentDiscountBase.md +43 -0
- package/package.json +1 -1
package/dist/checkout-sdk.d.ts
CHANGED
|
@@ -4087,6 +4087,7 @@ declare interface Consignment {
|
|
|
4087
4087
|
id: string;
|
|
4088
4088
|
address: Address;
|
|
4089
4089
|
shippingAddress: Address;
|
|
4090
|
+
discounts: ConsignmentDiscount[];
|
|
4090
4091
|
handlingCost: number;
|
|
4091
4092
|
shippingCost: number;
|
|
4092
4093
|
availableShippingOptions?: ShippingOption[];
|
|
@@ -4109,6 +4110,14 @@ declare interface ConsignmentAssignmentBaseRequestBodyWithShippingAddress {
|
|
|
4109
4110
|
|
|
4110
4111
|
declare type ConsignmentAssignmentRequestBody = ConsignmentAssignmentBaseRequestBodyWithShippingAddress | ConsignmentAssignmentBaseRequestBodyWithAddress;
|
|
4111
4112
|
|
|
4113
|
+
declare interface ConsignmentAutomaticDiscount extends ConsignmentDiscountBase<'AUTOMATIC'> {
|
|
4114
|
+
}
|
|
4115
|
+
|
|
4116
|
+
declare interface ConsignmentCouponDiscount extends ConsignmentDiscountBase<'COUPON'> {
|
|
4117
|
+
couponId: number;
|
|
4118
|
+
couponCode: string;
|
|
4119
|
+
}
|
|
4120
|
+
|
|
4112
4121
|
declare interface ConsignmentCreateRequestBody {
|
|
4113
4122
|
address?: AddressRequestBody;
|
|
4114
4123
|
shippingAddress?: AddressRequestBody;
|
|
@@ -4116,6 +4125,14 @@ declare interface ConsignmentCreateRequestBody {
|
|
|
4116
4125
|
pickupOption?: ConsignmentPickupOption;
|
|
4117
4126
|
}
|
|
4118
4127
|
|
|
4128
|
+
declare type ConsignmentDiscount = ConsignmentAutomaticDiscount | ConsignmentCouponDiscount;
|
|
4129
|
+
|
|
4130
|
+
declare interface ConsignmentDiscountBase<T> {
|
|
4131
|
+
id: number;
|
|
4132
|
+
amount: number;
|
|
4133
|
+
type: T;
|
|
4134
|
+
}
|
|
4135
|
+
|
|
4119
4136
|
declare interface ConsignmentLineItem {
|
|
4120
4137
|
itemId: string | number;
|
|
4121
4138
|
quantity: number;
|