@bigcommerce/checkout-sdk 1.215.0 → 1.215.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/CHANGELOG.md +2 -0
- package/dist/checkout-button.js +1 -1
- package/dist/checkout-button.umd.js +1 -1
- package/dist/checkout-sdk.d.ts +43 -0
- package/dist/checkout-sdk.js +1 -1
- package/dist/checkout-sdk.umd.js +2 -2
- package/dist/internal-mappers.d.ts +43 -0
- package/docs/README.md +2 -0
- package/docs/interfaces/order.md +7 -0
- package/docs/interfaces/orderconsignment.md +19 -0
- package/docs/interfaces/ordershippingconsignment.md +222 -0
- package/package.json +1 -1
|
@@ -562,6 +562,7 @@ declare interface Order {
|
|
|
562
562
|
billingAddress: BillingAddress;
|
|
563
563
|
cartId: string;
|
|
564
564
|
coupons: Coupon[];
|
|
565
|
+
consignments: OrderConsignment[];
|
|
565
566
|
currency: Currency;
|
|
566
567
|
customerCanBeCreated: boolean;
|
|
567
568
|
customerId: number;
|
|
@@ -586,6 +587,10 @@ declare interface Order {
|
|
|
586
587
|
mandateUrl?: string;
|
|
587
588
|
}
|
|
588
589
|
|
|
590
|
+
declare interface OrderConsignment {
|
|
591
|
+
shipping: OrderShippingConsignment[];
|
|
592
|
+
}
|
|
593
|
+
|
|
589
594
|
declare interface OrderMetaState extends InternalOrderMeta {
|
|
590
595
|
token?: string;
|
|
591
596
|
orderToken?: string;
|
|
@@ -603,6 +608,44 @@ declare interface OrderPayment {
|
|
|
603
608
|
|
|
604
609
|
declare type OrderPayments = Array<GatewayOrderPayment | GiftCertificateOrderPayment>;
|
|
605
610
|
|
|
611
|
+
declare interface OrderShippingConsignment {
|
|
612
|
+
lineItems: Array<{
|
|
613
|
+
id: number;
|
|
614
|
+
}>;
|
|
615
|
+
shippingAddressId: number;
|
|
616
|
+
firstName: string;
|
|
617
|
+
lastName: string;
|
|
618
|
+
company: string;
|
|
619
|
+
address1: string;
|
|
620
|
+
address2: string;
|
|
621
|
+
city: string;
|
|
622
|
+
stateOrProvince: string;
|
|
623
|
+
postalCode: string;
|
|
624
|
+
country: string;
|
|
625
|
+
countryCode: string;
|
|
626
|
+
email: string;
|
|
627
|
+
phone: string;
|
|
628
|
+
itemsTotal: number;
|
|
629
|
+
itemsShipped: number;
|
|
630
|
+
shippingMethod: string;
|
|
631
|
+
baseCost: number;
|
|
632
|
+
costExTax: number;
|
|
633
|
+
costIncTax: number;
|
|
634
|
+
costTax: number;
|
|
635
|
+
costTaxClassId: number;
|
|
636
|
+
baseHandlingCost: number;
|
|
637
|
+
handlingCostExTax: number;
|
|
638
|
+
handlingCostIncTax: number;
|
|
639
|
+
handlingCostTax: number;
|
|
640
|
+
handlingCostTaxClassId: number;
|
|
641
|
+
shippingZoneId: number;
|
|
642
|
+
shippingZoneName: string;
|
|
643
|
+
customFields: Array<{
|
|
644
|
+
name: string;
|
|
645
|
+
value: string | null;
|
|
646
|
+
}>;
|
|
647
|
+
}
|
|
648
|
+
|
|
606
649
|
declare interface PhysicalItem extends LineItem {
|
|
607
650
|
isShippingRequired: boolean;
|
|
608
651
|
giftWrapping?: {
|
package/docs/README.md
CHANGED
|
@@ -226,9 +226,11 @@
|
|
|
226
226
|
* [NonceInstrument](interfaces/nonceinstrument.md)
|
|
227
227
|
* [OptionsResponse](interfaces/optionsresponse.md)
|
|
228
228
|
* [Order](interfaces/order.md)
|
|
229
|
+
* [OrderConsignment](interfaces/orderconsignment.md)
|
|
229
230
|
* [OrderPayment](interfaces/orderpayment.md)
|
|
230
231
|
* [OrderPaymentRequestBody](interfaces/orderpaymentrequestbody.md)
|
|
231
232
|
* [OrderRequestBody](interfaces/orderrequestbody.md)
|
|
233
|
+
* [OrderShippingConsignment](interfaces/ordershippingconsignment.md)
|
|
232
234
|
* [PasswordRequirements](interfaces/passwordrequirements.md)
|
|
233
235
|
* [PayPalInstrument](interfaces/paypalinstrument.md)
|
|
234
236
|
* [PaymentInitializeOptions](interfaces/paymentinitializeoptions.md)
|
package/docs/interfaces/order.md
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* [baseAmount](order.md#baseamount)
|
|
14
14
|
* [billingAddress](order.md#billingaddress)
|
|
15
15
|
* [cartId](order.md#cartid)
|
|
16
|
+
* [consignments](order.md#consignments)
|
|
16
17
|
* [coupons](order.md#coupons)
|
|
17
18
|
* [currency](order.md#currency)
|
|
18
19
|
* [customerCanBeCreated](order.md#customercanbecreated)
|
|
@@ -57,6 +58,12 @@ ___
|
|
|
57
58
|
|
|
58
59
|
___
|
|
59
60
|
|
|
61
|
+
### consignments
|
|
62
|
+
|
|
63
|
+
• **consignments**: *[OrderConsignment](orderconsignment.md)[]*
|
|
64
|
+
|
|
65
|
+
___
|
|
66
|
+
|
|
60
67
|
### coupons
|
|
61
68
|
|
|
62
69
|
• **coupons**: *[Coupon](coupon.md)[]*
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
[@bigcommerce/checkout-sdk](../README.md) › [OrderConsignment](orderconsignment.md)
|
|
2
|
+
|
|
3
|
+
# Interface: OrderConsignment
|
|
4
|
+
|
|
5
|
+
## Hierarchy
|
|
6
|
+
|
|
7
|
+
* **OrderConsignment**
|
|
8
|
+
|
|
9
|
+
## Index
|
|
10
|
+
|
|
11
|
+
### Properties
|
|
12
|
+
|
|
13
|
+
* [shipping](orderconsignment.md#shipping)
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
### shipping
|
|
18
|
+
|
|
19
|
+
• **shipping**: *[OrderShippingConsignment](ordershippingconsignment.md)[]*
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
[@bigcommerce/checkout-sdk](../README.md) › [OrderShippingConsignment](ordershippingconsignment.md)
|
|
2
|
+
|
|
3
|
+
# Interface: OrderShippingConsignment
|
|
4
|
+
|
|
5
|
+
## Hierarchy
|
|
6
|
+
|
|
7
|
+
* **OrderShippingConsignment**
|
|
8
|
+
|
|
9
|
+
## Index
|
|
10
|
+
|
|
11
|
+
### Properties
|
|
12
|
+
|
|
13
|
+
* [address1](ordershippingconsignment.md#address1)
|
|
14
|
+
* [address2](ordershippingconsignment.md#address2)
|
|
15
|
+
* [baseCost](ordershippingconsignment.md#basecost)
|
|
16
|
+
* [baseHandlingCost](ordershippingconsignment.md#basehandlingcost)
|
|
17
|
+
* [city](ordershippingconsignment.md#city)
|
|
18
|
+
* [company](ordershippingconsignment.md#company)
|
|
19
|
+
* [costExTax](ordershippingconsignment.md#costextax)
|
|
20
|
+
* [costIncTax](ordershippingconsignment.md#costinctax)
|
|
21
|
+
* [costTax](ordershippingconsignment.md#costtax)
|
|
22
|
+
* [costTaxClassId](ordershippingconsignment.md#costtaxclassid)
|
|
23
|
+
* [country](ordershippingconsignment.md#country)
|
|
24
|
+
* [countryCode](ordershippingconsignment.md#countrycode)
|
|
25
|
+
* [customFields](ordershippingconsignment.md#customfields)
|
|
26
|
+
* [email](ordershippingconsignment.md#email)
|
|
27
|
+
* [firstName](ordershippingconsignment.md#firstname)
|
|
28
|
+
* [handlingCostExTax](ordershippingconsignment.md#handlingcostextax)
|
|
29
|
+
* [handlingCostIncTax](ordershippingconsignment.md#handlingcostinctax)
|
|
30
|
+
* [handlingCostTax](ordershippingconsignment.md#handlingcosttax)
|
|
31
|
+
* [handlingCostTaxClassId](ordershippingconsignment.md#handlingcosttaxclassid)
|
|
32
|
+
* [itemsShipped](ordershippingconsignment.md#itemsshipped)
|
|
33
|
+
* [itemsTotal](ordershippingconsignment.md#itemstotal)
|
|
34
|
+
* [lastName](ordershippingconsignment.md#lastname)
|
|
35
|
+
* [lineItems](ordershippingconsignment.md#lineitems)
|
|
36
|
+
* [phone](ordershippingconsignment.md#phone)
|
|
37
|
+
* [postalCode](ordershippingconsignment.md#postalcode)
|
|
38
|
+
* [shippingAddressId](ordershippingconsignment.md#shippingaddressid)
|
|
39
|
+
* [shippingMethod](ordershippingconsignment.md#shippingmethod)
|
|
40
|
+
* [shippingZoneId](ordershippingconsignment.md#shippingzoneid)
|
|
41
|
+
* [shippingZoneName](ordershippingconsignment.md#shippingzonename)
|
|
42
|
+
* [stateOrProvince](ordershippingconsignment.md#stateorprovince)
|
|
43
|
+
|
|
44
|
+
## Properties
|
|
45
|
+
|
|
46
|
+
### address1
|
|
47
|
+
|
|
48
|
+
• **address1**: *string*
|
|
49
|
+
|
|
50
|
+
___
|
|
51
|
+
|
|
52
|
+
### address2
|
|
53
|
+
|
|
54
|
+
• **address2**: *string*
|
|
55
|
+
|
|
56
|
+
___
|
|
57
|
+
|
|
58
|
+
### baseCost
|
|
59
|
+
|
|
60
|
+
• **baseCost**: *number*
|
|
61
|
+
|
|
62
|
+
___
|
|
63
|
+
|
|
64
|
+
### baseHandlingCost
|
|
65
|
+
|
|
66
|
+
• **baseHandlingCost**: *number*
|
|
67
|
+
|
|
68
|
+
___
|
|
69
|
+
|
|
70
|
+
### city
|
|
71
|
+
|
|
72
|
+
• **city**: *string*
|
|
73
|
+
|
|
74
|
+
___
|
|
75
|
+
|
|
76
|
+
### company
|
|
77
|
+
|
|
78
|
+
• **company**: *string*
|
|
79
|
+
|
|
80
|
+
___
|
|
81
|
+
|
|
82
|
+
### costExTax
|
|
83
|
+
|
|
84
|
+
• **costExTax**: *number*
|
|
85
|
+
|
|
86
|
+
___
|
|
87
|
+
|
|
88
|
+
### costIncTax
|
|
89
|
+
|
|
90
|
+
• **costIncTax**: *number*
|
|
91
|
+
|
|
92
|
+
___
|
|
93
|
+
|
|
94
|
+
### costTax
|
|
95
|
+
|
|
96
|
+
• **costTax**: *number*
|
|
97
|
+
|
|
98
|
+
___
|
|
99
|
+
|
|
100
|
+
### costTaxClassId
|
|
101
|
+
|
|
102
|
+
• **costTaxClassId**: *number*
|
|
103
|
+
|
|
104
|
+
___
|
|
105
|
+
|
|
106
|
+
### country
|
|
107
|
+
|
|
108
|
+
• **country**: *string*
|
|
109
|
+
|
|
110
|
+
___
|
|
111
|
+
|
|
112
|
+
### countryCode
|
|
113
|
+
|
|
114
|
+
• **countryCode**: *string*
|
|
115
|
+
|
|
116
|
+
___
|
|
117
|
+
|
|
118
|
+
### customFields
|
|
119
|
+
|
|
120
|
+
• **customFields**: *Array‹object›*
|
|
121
|
+
|
|
122
|
+
___
|
|
123
|
+
|
|
124
|
+
### email
|
|
125
|
+
|
|
126
|
+
• **email**: *string*
|
|
127
|
+
|
|
128
|
+
___
|
|
129
|
+
|
|
130
|
+
### firstName
|
|
131
|
+
|
|
132
|
+
• **firstName**: *string*
|
|
133
|
+
|
|
134
|
+
___
|
|
135
|
+
|
|
136
|
+
### handlingCostExTax
|
|
137
|
+
|
|
138
|
+
• **handlingCostExTax**: *number*
|
|
139
|
+
|
|
140
|
+
___
|
|
141
|
+
|
|
142
|
+
### handlingCostIncTax
|
|
143
|
+
|
|
144
|
+
• **handlingCostIncTax**: *number*
|
|
145
|
+
|
|
146
|
+
___
|
|
147
|
+
|
|
148
|
+
### handlingCostTax
|
|
149
|
+
|
|
150
|
+
• **handlingCostTax**: *number*
|
|
151
|
+
|
|
152
|
+
___
|
|
153
|
+
|
|
154
|
+
### handlingCostTaxClassId
|
|
155
|
+
|
|
156
|
+
• **handlingCostTaxClassId**: *number*
|
|
157
|
+
|
|
158
|
+
___
|
|
159
|
+
|
|
160
|
+
### itemsShipped
|
|
161
|
+
|
|
162
|
+
• **itemsShipped**: *number*
|
|
163
|
+
|
|
164
|
+
___
|
|
165
|
+
|
|
166
|
+
### itemsTotal
|
|
167
|
+
|
|
168
|
+
• **itemsTotal**: *number*
|
|
169
|
+
|
|
170
|
+
___
|
|
171
|
+
|
|
172
|
+
### lastName
|
|
173
|
+
|
|
174
|
+
• **lastName**: *string*
|
|
175
|
+
|
|
176
|
+
___
|
|
177
|
+
|
|
178
|
+
### lineItems
|
|
179
|
+
|
|
180
|
+
• **lineItems**: *Array‹object›*
|
|
181
|
+
|
|
182
|
+
___
|
|
183
|
+
|
|
184
|
+
### phone
|
|
185
|
+
|
|
186
|
+
• **phone**: *string*
|
|
187
|
+
|
|
188
|
+
___
|
|
189
|
+
|
|
190
|
+
### postalCode
|
|
191
|
+
|
|
192
|
+
• **postalCode**: *string*
|
|
193
|
+
|
|
194
|
+
___
|
|
195
|
+
|
|
196
|
+
### shippingAddressId
|
|
197
|
+
|
|
198
|
+
• **shippingAddressId**: *number*
|
|
199
|
+
|
|
200
|
+
___
|
|
201
|
+
|
|
202
|
+
### shippingMethod
|
|
203
|
+
|
|
204
|
+
• **shippingMethod**: *string*
|
|
205
|
+
|
|
206
|
+
___
|
|
207
|
+
|
|
208
|
+
### shippingZoneId
|
|
209
|
+
|
|
210
|
+
• **shippingZoneId**: *number*
|
|
211
|
+
|
|
212
|
+
___
|
|
213
|
+
|
|
214
|
+
### shippingZoneName
|
|
215
|
+
|
|
216
|
+
• **shippingZoneName**: *string*
|
|
217
|
+
|
|
218
|
+
___
|
|
219
|
+
|
|
220
|
+
### stateOrProvince
|
|
221
|
+
|
|
222
|
+
• **stateOrProvince**: *string*
|