-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_fulfillment_shipment_details.go
45 lines (43 loc) · 3.51 KB
/
model_fulfillment_shipment_details.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
* Square Connect API
*
* Client library for accessing the Square Connect APIs
*
* API version: 2.0
* Contact: developers@squareup.com
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
// Contains the details necessary to fulfill a shipment order.
type FulfillmentShipmentDetails struct {
// Information about the person to receive this shipment fulfillment.
Recipient *FulfillmentRecipient `json:"recipient,omitempty"`
// The shipping carrier being used to ship this fulfillment (such as UPS, FedEx, or USPS).
Carrier string `json:"carrier,omitempty"`
// A note with additional information for the shipping carrier.
ShippingNote string `json:"shipping_note,omitempty"`
// A description of the type of shipping product purchased from the carrier (such as First Class, Priority, or Express).
ShippingType string `json:"shipping_type,omitempty"`
// The reference number provided by the carrier to track the shipment's progress.
TrackingNumber string `json:"tracking_number,omitempty"`
// A link to the tracking webpage on the carrier's website.
TrackingUrl string `json:"tracking_url,omitempty"`
// The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the shipment was requested. The timestamp must be in RFC 3339 format (for example, \"2016-09-04T23:59:33.123Z\").
PlacedAt string `json:"placed_at,omitempty"`
// The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when this fulfillment was moved to the `RESERVED` state, which indicates that preparation of this shipment has begun. The timestamp must be in RFC 3339 format (for example, \"2016-09-04T23:59:33.123Z\").
InProgressAt string `json:"in_progress_at,omitempty"`
// The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when this fulfillment was moved to the `PREPARED` state, which indicates that the fulfillment is packaged. The timestamp must be in RFC 3339 format (for example, \"2016-09-04T23:59:33.123Z\").
PackagedAt string `json:"packaged_at,omitempty"`
// The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the shipment is expected to be delivered to the shipping carrier. The timestamp must be in RFC 3339 format (for example, \"2016-09-04T23:59:33.123Z\").
ExpectedShippedAt string `json:"expected_shipped_at,omitempty"`
// The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when this fulfillment was moved to the `COMPLETED` state, which indicates that the fulfillment has been given to the shipping carrier. The timestamp must be in RFC 3339 format (for example, \"2016-09-04T23:59:33.123Z\").
ShippedAt string `json:"shipped_at,omitempty"`
// The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating the shipment was canceled. The timestamp must be in RFC 3339 format (for example, \"2016-09-04T23:59:33.123Z\").
CanceledAt string `json:"canceled_at,omitempty"`
// A description of why the shipment was canceled.
CancelReason string `json:"cancel_reason,omitempty"`
// The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the shipment failed to be completed. The timestamp must be in RFC 3339 format (for example, \"2016-09-04T23:59:33.123Z\").
FailedAt string `json:"failed_at,omitempty"`
// A description of why the shipment failed to be completed.
FailureReason string `json:"failure_reason,omitempty"`
}