Skip to content

Commit

Permalink
Merge pull request #6 from jjideenschmiede/development
Browse files Browse the repository at this point in the history
Update README
  • Loading branch information
gowizzard authored Dec 2, 2021
2 parents c4fc2b2 + 145cd70 commit fbb4f5f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ r := gosendcloud.Request{
}

// Define request body
var body []InsertingShipmentsBody
var body []gosendcloud.InsertingShipmentsBody

body = append(body, InsertingShipmentsBody{
body = append(body, gosendcloud.InsertingShipmentsBody{
Address: "Insulindelaan",
Address2: "",
City: "Eindhoven",
Expand All @@ -88,12 +88,12 @@ body = append(body, InsertingShipmentsBody{
HouseNumber: "115",
Name: "Kwiedor",
OrderNumber: "414124124214214",
OrderStatus: &InsertingShipmentsBodyOrderStatus{
OrderStatus: &gosendcloud.InsertingShipmentsBodyOrderStatus{
Id: "fulfilled",
Message: "Fulfilled",
},
ParcelItems: []InsertingShipmentsBodyParcelItems{},
PaymentStatus: &InsertingShipmentsBodyPaymentStatus{
ParcelItems: []gosendcloud.InsertingShipmentsBodyParcelItems{},
PaymentStatus: &gosendcloud.InsertingShipmentsBodyPaymentStatus{
Id: "paid",
Message: "Paid",
},
Expand All @@ -116,7 +116,7 @@ body = append(body, InsertingShipmentsBody{
})

// Add a parcel item
body[0].ParcelItems = append(body[0].ParcelItems, InsertingShipmentsBodyParcelItems{
body[0].ParcelItems = append(body[0].ParcelItems, gosendcloud.InsertingShipmentsBodyParcelItems{
Description: "T-Shirt",
HsCode: "",
OriginCountry: "",
Expand All @@ -129,7 +129,7 @@ body = append(body, InsertingShipmentsBody{
})

// Inserting a new shipment
insert, err := InsertingShipments(198416, body, r)
insert, err := gosendcloud.InsertingShipments(198416, body, r)
if err != nil {
log.Fatalln(err)
} else {
Expand Down

0 comments on commit fbb4f5f

Please sign in to comment.