@oway/sdk 0.2.0 → 0.2.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/README.md +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -44,7 +44,7 @@ const quote = await oway.quotes.create({
|
|
|
44
44
|
contactPerson: 'Jane Smith',
|
|
45
45
|
},
|
|
46
46
|
orderComponents: [
|
|
47
|
-
{ palletCount: 2, poundsWeight: 1000,
|
|
47
|
+
{ palletCount: 2, poundsWeight: 1000, dimensions: { length: 48, width: 40, height: 48 } },
|
|
48
48
|
],
|
|
49
49
|
});
|
|
50
50
|
|
|
@@ -56,7 +56,7 @@ const shipment = await oway.shipments.create({
|
|
|
56
56
|
pickupAddress: { /* same as above */ },
|
|
57
57
|
deliveryAddress: { /* same as above */ },
|
|
58
58
|
orderComponents: [
|
|
59
|
-
{ palletCount: 2, poundsWeight: 1000,
|
|
59
|
+
{ palletCount: 2, poundsWeight: 1000, dimensions: { length: 48, width: 40, height: 48 } },
|
|
60
60
|
],
|
|
61
61
|
description: 'Electronics - fragile',
|
|
62
62
|
});
|
|
@@ -96,7 +96,7 @@ You provide credentials once at initialization - token management is automatic.
|
|
|
96
96
|
const quote = await oway.quotes.create({
|
|
97
97
|
pickupAddress: { name, address1, city, state, zipCode, phoneNumber, contactPerson },
|
|
98
98
|
deliveryAddress: { name, address1, city, state, zipCode, phoneNumber, contactPerson },
|
|
99
|
-
orderComponents: [{ palletCount: 2, poundsWeight: 1000,
|
|
99
|
+
orderComponents: [{ palletCount: 2, poundsWeight: 1000, dimensions: { length: 48, width: 40, height: 48 } }],
|
|
100
100
|
});
|
|
101
101
|
|
|
102
102
|
// Retrieve a quote by ID
|
|
@@ -111,7 +111,7 @@ const shipment = await oway.shipments.create({
|
|
|
111
111
|
quoteId: quote.id, // Optional: lock in quoted price
|
|
112
112
|
pickupAddress: { ... },
|
|
113
113
|
deliveryAddress: { ... },
|
|
114
|
-
orderComponents: [{ palletCount: 2, poundsWeight: 1000,
|
|
114
|
+
orderComponents: [{ palletCount: 2, poundsWeight: 1000, dimensions: { length: 48, width: 40, height: 48 } }],
|
|
115
115
|
description: 'Palletized freight',
|
|
116
116
|
poNumber: 'PO-2024-12345', // Optional
|
|
117
117
|
});
|