address_create_request

package
v1.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2022 License: MulanPSL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	// 联系人姓名
	UserName string `json:"user_name"`
	// 手机号码
	Mobile string `json:"mobile"`
	// 省份ID
	ProvinceId int64 `json:"province_id"`
	// 城市ID
	CityId int64 `json:"city_id"`
	// 区ID
	TownId int64 `json:"town_id"`
	// 详细地址
	Detail string `json:"detail"`
	// 街道ID
	StreetId int64 `json:"street_id"`
	// 联系方式类型(0-手机,1-普通座机,2-企业座机)
	LinkType int32 `json:"link_type"`
	// 普通座机格式:区号-座机号-分机号(分机号选填)、区号3~4位、座机号7~8位、分机号不超过5位。企业座机:400/800开头不超过10位、95开头在5~8we
	FixedPhone string `json:"fixed_phone"`
	// 售后备注,限制200字符
	Remark string `json:"remark"`
}

type AddressCreateParam

type AddressCreateParam struct {
	// 地址信息
	Address *Address `json:"address"`
	// 门店ID(新建地址绑定在该门店下,非门店场景无需填写)
	StoreId int64 `json:"store_id"`
}

type AddressCreateRequest

type AddressCreateRequest struct {
	doudian_sdk.BaseDoudianOpApiRequest
	Param *AddressCreateParam
}

func New

func New() *AddressCreateRequest

func (*AddressCreateRequest) Execute

func (c *AddressCreateRequest) Execute(accessToken *doudian_sdk.AccessToken) (*address_create_response.AddressCreateResponse, error)

func (*AddressCreateRequest) GetParamObject

func (c *AddressCreateRequest) GetParamObject() interface{}

func (*AddressCreateRequest) GetParams

func (c *AddressCreateRequest) GetParams() *AddressCreateParam

func (*AddressCreateRequest) GetUrlPath

func (c *AddressCreateRequest) GetUrlPath() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL