@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.
Files changed (2) hide show
  1. package/README.md +4 -4
  2. 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, palletDimensions: [48, 40, 48] },
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, palletDimensions: [48, 40, 48] },
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, palletDimensions: [48, 40, 48] }],
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, palletDimensions: [48, 40, 48] }],
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
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oway/sdk",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Official Oway JavaScript/TypeScript SDK",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",