Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
feat: fixed missing parameters from creaetScheduledPackage
Browse files Browse the repository at this point in the history
  • Loading branch information
justinemmanuelmercado committed Jul 28, 2020
1 parent 419267e commit 0d06b79
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/sections/easy-ship.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const ListPickupSlotsResponse = Codec.interface({

export interface ESItem {
OrderItemId: string
OrderItemSerialNumberList: string
OrderItemSerialNumberList: string[]
}

export interface PickupSlot {
Expand Down Expand Up @@ -240,13 +240,19 @@ export class EasyShip {
PackageRequestDetails: {
PackageDimensions: parameters.PackageRequestDetails.PackageDimensions,
PackageWeight: parameters.PackageRequestDetails.PackageWeight,
PackageIdentifier: parameters.PackageRequestDetails.PackageIdentifier,
PackagePickupSlot: {
SlotId: parameters.PackageRequestDetails.PackagePickupSlot.SlotId,
PickupTimeStart: parameters.PackageRequestDetails.PackagePickupSlot.PickupTimeStart.toISOString(),
PickupTimeEnd: parameters.PackageRequestDetails.PackagePickupSlot.PickupTimeEnd.toISOString(),
},
'PackageItemList.Item': parameters.PackageRequestDetails.PackageItemList
? parameters.PackageRequestDetails.PackageItemList.map((item) => ({
OrderItemId: item.OrderItemId,
'OrderItemSerialNumberList.member': item.OrderItemSerialNumberList,
}))
: undefined,
},
PackageIdentifier: parameters.PackageRequestDetails.PackageIdentifier,
},
})

Expand Down

0 comments on commit 0d06b79

Please sign in to comment.