github.com/stripe/stripe-go/v76@v76.25.0/address.go (about) 1 package stripe 2 3 // AddressParams describes the common parameters for an Address. 4 type AddressParams struct { 5 City *string `form:"city"` 6 Country *string `form:"country"` 7 Line1 *string `form:"line1"` 8 Line2 *string `form:"line2"` 9 PostalCode *string `form:"postal_code"` 10 State *string `form:"state"` 11 } 12 13 // Address describes common properties for an Address hash. 14 type Address struct { 15 City string `json:"city"` 16 Country string `json:"country"` 17 Line1 string `json:"line1"` 18 Line2 string `json:"line2"` 19 PostalCode string `json:"postal_code"` 20 State string `json:"state"` 21 } 22 23 // ShippingDetailsParams is the structure containing shipping information as parameters 24 type ShippingDetailsParams struct { 25 Address *AddressParams `form:"address"` 26 Carrier *string `form:"carrier"` 27 Name *string `form:"name"` 28 Phone *string `form:"phone"` 29 TrackingNumber *string `form:"tracking_number"` 30 } 31 32 // ShippingDetails is the structure containing shipping information. 33 type ShippingDetails struct { 34 Address *Address `json:"address"` 35 Carrier string `json:"carrier"` 36 Name string `json:"name"` 37 Phone string `json:"phone"` 38 TrackingNumber string `json:"tracking_number"` 39 }