-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcheckout.go
18 lines (16 loc) · 878 Bytes
/
checkout.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package shopifygraphql
// CheckoutCreateInput checkout create input struct
type CheckoutCreateInput struct {
Email string `json:"email,omitempty"`
LineItems []CheckoutLineItemInput `json:"lineItems,omitempty"`
CustomAttributes []AttributeInput `json:"customAttributes,omitempty"`
AllowPartialAddresses *bool `json:"allowPartialAddresses,omitempty"`
Note string `json:"note,omitempty"`
ShippingAddress *MailingAddressInput `json:"shippingAddress,omitempty"`
}
// CheckoutLineItemInput checkout line item input struct
type CheckoutLineItemInput struct {
VariantID string `json:"variantId,omitempty"`
Quantity int `json:"quantity,omitempty"`
CustomAttributes []AttributeInput `json:"customAttributes,omitempty"`
}