/
subscription_change_shipping_create.go
24 lines (17 loc) · 1.27 KB
/
subscription_change_shipping_create.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
// This file is automatically created by Recurly's OpenAPI generation process
// and thus any edits you make by hand will be lost. If you wish to make a
// change to this file, please create a Github issue explaining the changes you
// need and we will usher them to the appropriate places.
package recurly
import ()
type SubscriptionChangeShippingCreate struct {
// The id of the shipping method used to deliver the subscription. To remove shipping set this to `null` and the `amount=0`. If `method_id` and `method_code` are both present, `method_id` will be used.
MethodId *string `json:"method_id,omitempty"`
// The code of the shipping method used to deliver the subscription. To remove shipping set this to `null` and the `amount=0`. If `method_id` and `method_code` are both present, `method_id` will be used.
MethodCode *string `json:"method_code,omitempty"`
// Assigns the subscription's shipping cost. If this is greater than zero then a `method_id` or `method_code` is required.
Amount *float64 `json:"amount,omitempty"`
// Assign a shipping address from the account's existing shipping addresses. If this and address are both present, address will take precedence.
AddressId *string `json:"address_id,omitempty"`
Address *ShippingAddressCreate `json:"address,omitempty"`
}