add cancel
This commit is contained in:
@@ -11,13 +11,21 @@ func asPickupPoint(p *messages.PickupPoint, deliveryId uint32) *PickupPoint {
|
||||
if p == nil {
|
||||
return nil
|
||||
}
|
||||
if p.Address == nil {
|
||||
return &PickupPoint{
|
||||
Id: p.Id,
|
||||
Name: p.Name,
|
||||
DeliveryId: deliveryId,
|
||||
}
|
||||
}
|
||||
return &PickupPoint{
|
||||
Id: p.Id,
|
||||
Name: p.Name,
|
||||
Address: p.Address,
|
||||
City: p.City,
|
||||
Country: p.Country,
|
||||
Zip: p.Zip,
|
||||
DeliveryId: deliveryId,
|
||||
Id: p.Id,
|
||||
Name: p.Name,
|
||||
Address: &p.Address.AddressLine1,
|
||||
City: &p.Address.City,
|
||||
Zip: &p.Address.Zip,
|
||||
Country: &p.Address.Country,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user