partner

package
v1.2.39 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package partneriface provides an interface to enable mocking the PARTNER service client for testing your code.

It is important to note that this interface will have breaking changes when the service model is updated and adds new API operations, paginators, and waiters.

Index

Constants

View Source
const (
	ServiceName = "partner"   // Name of service.
	EndpointsID = ServiceName // ID to lookup a service endpoint with.
	ServiceID   = "partner"   // ServiceID is a unique identifer of a specific service.
)

Service information constants

Variables

This section is empty.

Functions

This section is empty.

Types

type ListChildPartnerCustomerInput

type ListChildPartnerCustomerInput struct {
	ChildPartnerName *string `type:"string" json:",omitempty"`

	ChildPartnerPassportID *string `type:"string" json:",omitempty"`

	CustomerPassportID *string `type:"string" json:",omitempty"`

	// Limit is a required field
	Limit *int64 `min:"10" max:"100" type:"int64" json:",omitempty" required:"true"`

	// Offset is a required field
	Offset *int64 `min:"1" type:"int64" json:",omitempty" required:"true"`

	PreciseCustomerNames []*string `type:"list"`

	RelateEndTime *string `type:"string" json:",omitempty"`

	RelateStartTime *string `type:"string" json:",omitempty"`
	// contains filtered or unexported fields
}

func (ListChildPartnerCustomerInput) GoString

GoString returns the string representation

func (*ListChildPartnerCustomerInput) SetChildPartnerName

SetChildPartnerName sets the ChildPartnerName field's value.

func (*ListChildPartnerCustomerInput) SetChildPartnerPassportID

func (s *ListChildPartnerCustomerInput) SetChildPartnerPassportID(v string) *ListChildPartnerCustomerInput

SetChildPartnerPassportID sets the ChildPartnerPassportID field's value.

func (*ListChildPartnerCustomerInput) SetCustomerPassportID

SetCustomerPassportID sets the CustomerPassportID field's value.

func (*ListChildPartnerCustomerInput) SetLimit

SetLimit sets the Limit field's value.

func (*ListChildPartnerCustomerInput) SetOffset

SetOffset sets the Offset field's value.

func (*ListChildPartnerCustomerInput) SetPreciseCustomerNames

func (s *ListChildPartnerCustomerInput) SetPreciseCustomerNames(v []*string) *ListChildPartnerCustomerInput

SetPreciseCustomerNames sets the PreciseCustomerNames field's value.

func (*ListChildPartnerCustomerInput) SetRelateEndTime

SetRelateEndTime sets the RelateEndTime field's value.

func (*ListChildPartnerCustomerInput) SetRelateStartTime

SetRelateStartTime sets the RelateStartTime field's value.

func (ListChildPartnerCustomerInput) String

String returns the string representation

func (*ListChildPartnerCustomerInput) Validate

func (s *ListChildPartnerCustomerInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListChildPartnerCustomerOutput

type ListChildPartnerCustomerOutput struct {
	Metadata *response.ResponseMetadata

	List []*ListForListChildPartnerCustomerOutput `type:"list"`

	Total *int64 `type:"int64" json:",omitempty"`
	// contains filtered or unexported fields
}

func (ListChildPartnerCustomerOutput) GoString

GoString returns the string representation

func (*ListChildPartnerCustomerOutput) SetList

SetList sets the List field's value.

func (*ListChildPartnerCustomerOutput) SetTotal

SetTotal sets the Total field's value.

func (ListChildPartnerCustomerOutput) String

String returns the string representation

type ListForListChildPartnerCustomerOutput

type ListForListChildPartnerCustomerOutput struct {
	AlarmStatus *int32 `type:"int32" json:",omitempty"`

	AlarmValue *string `type:"string" json:",omitempty"`

	ChildPartnerName *string `type:"string" json:",omitempty"`

	ChildPartnerPassportID *string `type:"string" json:",omitempty"`

	CustomerName *string `type:"string" json:",omitempty"`

	CustomerPassportID *string `type:"string" json:",omitempty"`

	GrantType *int32 `type:"int32" json:",omitempty"`

	PaidCurMonth *string `type:"string" json:",omitempty"`

	PaidLastMonth *string `type:"string" json:",omitempty"`

	PayableCurMonth *string `type:"string" json:",omitempty"`

	PayableLastMonth *string `type:"string" json:",omitempty"`

	QuotaBalance *string `type:"string" json:",omitempty"`

	RelationTime *string `type:"string" json:",omitempty"`
	// contains filtered or unexported fields
}

func (ListForListChildPartnerCustomerOutput) GoString

GoString returns the string representation

func (*ListForListChildPartnerCustomerOutput) SetAlarmStatus

SetAlarmStatus sets the AlarmStatus field's value.

func (*ListForListChildPartnerCustomerOutput) SetAlarmValue

SetAlarmValue sets the AlarmValue field's value.

func (*ListForListChildPartnerCustomerOutput) SetChildPartnerName

SetChildPartnerName sets the ChildPartnerName field's value.

func (*ListForListChildPartnerCustomerOutput) SetChildPartnerPassportID

SetChildPartnerPassportID sets the ChildPartnerPassportID field's value.

func (*ListForListChildPartnerCustomerOutput) SetCustomerName

SetCustomerName sets the CustomerName field's value.

func (*ListForListChildPartnerCustomerOutput) SetCustomerPassportID

SetCustomerPassportID sets the CustomerPassportID field's value.

func (*ListForListChildPartnerCustomerOutput) SetGrantType

SetGrantType sets the GrantType field's value.

func (*ListForListChildPartnerCustomerOutput) SetPaidCurMonth

SetPaidCurMonth sets the PaidCurMonth field's value.

func (*ListForListChildPartnerCustomerOutput) SetPaidLastMonth

SetPaidLastMonth sets the PaidLastMonth field's value.

func (*ListForListChildPartnerCustomerOutput) SetPayableCurMonth

SetPayableCurMonth sets the PayableCurMonth field's value.

func (*ListForListChildPartnerCustomerOutput) SetPayableLastMonth

SetPayableLastMonth sets the PayableLastMonth field's value.

func (*ListForListChildPartnerCustomerOutput) SetQuotaBalance

SetQuotaBalance sets the QuotaBalance field's value.

func (*ListForListChildPartnerCustomerOutput) SetRelationTime

SetRelationTime sets the RelationTime field's value.

func (ListForListChildPartnerCustomerOutput) String

String returns the string representation

type ListForListPartnerCustomerOutput

type ListForListPartnerCustomerOutput struct {
	AlarmStatus *int32 `type:"int32" json:",omitempty"`

	AlarmValue *string `type:"string" json:",omitempty"`

	CustomerName *string `type:"string" json:",omitempty"`

	CustomerPassportID *string `type:"string" json:",omitempty"`

	CustomerPassportIDSource *int32 `type:"int32" json:",omitempty"`

	CustomerPassportIdentity *string `type:"string" json:",omitempty"`

	CustomerVerifyType *string `type:"string" json:",omitempty"`

	GrantType *int32 `type:"int32" json:",omitempty"`

	PaidCurMonth *string `type:"string" json:",omitempty"`

	PaidLastMonth *string `type:"string" json:",omitempty"`

	PartnerEmployeeID *string `type:"string" json:",omitempty"`

	PayableCurMonth *string `type:"string" json:",omitempty"`

	PayableLastMonth *string `type:"string" json:",omitempty"`

	QuotaBalance *string `type:"string" json:",omitempty"`

	RelationTime *string `type:"string" json:",omitempty"`
	// contains filtered or unexported fields
}

func (ListForListPartnerCustomerOutput) GoString

GoString returns the string representation

func (*ListForListPartnerCustomerOutput) SetAlarmStatus

SetAlarmStatus sets the AlarmStatus field's value.

func (*ListForListPartnerCustomerOutput) SetAlarmValue

SetAlarmValue sets the AlarmValue field's value.

func (*ListForListPartnerCustomerOutput) SetCustomerName

SetCustomerName sets the CustomerName field's value.

func (*ListForListPartnerCustomerOutput) SetCustomerPassportID

SetCustomerPassportID sets the CustomerPassportID field's value.

func (*ListForListPartnerCustomerOutput) SetCustomerPassportIDSource

func (s *ListForListPartnerCustomerOutput) SetCustomerPassportIDSource(v int32) *ListForListPartnerCustomerOutput

SetCustomerPassportIDSource sets the CustomerPassportIDSource field's value.

func (*ListForListPartnerCustomerOutput) SetCustomerPassportIdentity

SetCustomerPassportIdentity sets the CustomerPassportIdentity field's value.

func (*ListForListPartnerCustomerOutput) SetCustomerVerifyType

SetCustomerVerifyType sets the CustomerVerifyType field's value.

func (*ListForListPartnerCustomerOutput) SetGrantType

SetGrantType sets the GrantType field's value.

func (*ListForListPartnerCustomerOutput) SetPaidCurMonth

SetPaidCurMonth sets the PaidCurMonth field's value.

func (*ListForListPartnerCustomerOutput) SetPaidLastMonth

SetPaidLastMonth sets the PaidLastMonth field's value.

func (*ListForListPartnerCustomerOutput) SetPartnerEmployeeID

SetPartnerEmployeeID sets the PartnerEmployeeID field's value.

func (*ListForListPartnerCustomerOutput) SetPayableCurMonth

SetPayableCurMonth sets the PayableCurMonth field's value.

func (*ListForListPartnerCustomerOutput) SetPayableLastMonth

SetPayableLastMonth sets the PayableLastMonth field's value.

func (*ListForListPartnerCustomerOutput) SetQuotaBalance

SetQuotaBalance sets the QuotaBalance field's value.

func (*ListForListPartnerCustomerOutput) SetRelationTime

SetRelationTime sets the RelationTime field's value.

func (ListForListPartnerCustomerOutput) String

String returns the string representation

type ListPartnerCustomerInput

type ListPartnerCustomerInput struct {
	CustomerPassportID *string `type:"string" json:",omitempty"`

	CustomerPassportIdentity *string `type:"string" json:",omitempty"`

	FuzzyCustomerName *string `type:"string" json:",omitempty"`

	// Limit is a required field
	Limit *int64 `min:"10" max:"100" type:"int64" json:",omitempty" required:"true"`

	// Offset is a required field
	Offset *int64 `min:"1" type:"int64" json:",omitempty" required:"true"`

	PreciseCustomerNames []*string `type:"list"`

	RelateEndTime *string `type:"string" json:",omitempty"`

	RelateStartTime *string `type:"string" json:",omitempty"`
	// contains filtered or unexported fields
}

func (ListPartnerCustomerInput) GoString

func (s ListPartnerCustomerInput) GoString() string

GoString returns the string representation

func (*ListPartnerCustomerInput) SetCustomerPassportID

func (s *ListPartnerCustomerInput) SetCustomerPassportID(v string) *ListPartnerCustomerInput

SetCustomerPassportID sets the CustomerPassportID field's value.

func (*ListPartnerCustomerInput) SetCustomerPassportIdentity

func (s *ListPartnerCustomerInput) SetCustomerPassportIdentity(v string) *ListPartnerCustomerInput

SetCustomerPassportIdentity sets the CustomerPassportIdentity field's value.

func (*ListPartnerCustomerInput) SetFuzzyCustomerName

func (s *ListPartnerCustomerInput) SetFuzzyCustomerName(v string) *ListPartnerCustomerInput

SetFuzzyCustomerName sets the FuzzyCustomerName field's value.

func (*ListPartnerCustomerInput) SetLimit

SetLimit sets the Limit field's value.

func (*ListPartnerCustomerInput) SetOffset

SetOffset sets the Offset field's value.

func (*ListPartnerCustomerInput) SetPreciseCustomerNames

func (s *ListPartnerCustomerInput) SetPreciseCustomerNames(v []*string) *ListPartnerCustomerInput

SetPreciseCustomerNames sets the PreciseCustomerNames field's value.

func (*ListPartnerCustomerInput) SetRelateEndTime

SetRelateEndTime sets the RelateEndTime field's value.

func (*ListPartnerCustomerInput) SetRelateStartTime

func (s *ListPartnerCustomerInput) SetRelateStartTime(v string) *ListPartnerCustomerInput

SetRelateStartTime sets the RelateStartTime field's value.

func (ListPartnerCustomerInput) String

func (s ListPartnerCustomerInput) String() string

String returns the string representation

func (*ListPartnerCustomerInput) Validate

func (s *ListPartnerCustomerInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListPartnerCustomerOutput

type ListPartnerCustomerOutput struct {
	Metadata *response.ResponseMetadata

	List []*ListForListPartnerCustomerOutput `type:"list"`

	Total *int64 `type:"int64" json:",omitempty"`
	// contains filtered or unexported fields
}

func (ListPartnerCustomerOutput) GoString

func (s ListPartnerCustomerOutput) GoString() string

GoString returns the string representation

func (*ListPartnerCustomerOutput) SetList

SetList sets the List field's value.

func (*ListPartnerCustomerOutput) SetTotal

SetTotal sets the Total field's value.

func (ListPartnerCustomerOutput) String

func (s ListPartnerCustomerOutput) String() string

String returns the string representation

type PARTNER

type PARTNER struct {
	*client.Client
}

PARTNER provides the API operation methods for making requests to PARTNER. See this package's package overview docs for details on the service.

PARTNER methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func New

func New(p client.ConfigProvider, cfgs ...*volcengine.Config) *PARTNER

New create int can support ssl or region locate set

func (*PARTNER) ListChildPartnerCustomer

func (c *PARTNER) ListChildPartnerCustomer(input *ListChildPartnerCustomerInput) (*ListChildPartnerCustomerOutput, error)

ListChildPartnerCustomer API operation for PARTNER.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCENGINE API reference guide for PARTNER's API operation ListChildPartnerCustomer for usage and error information.

func (*PARTNER) ListChildPartnerCustomerCommon

func (c *PARTNER) ListChildPartnerCustomerCommon(input *map[string]interface{}) (*map[string]interface{}, error)

ListChildPartnerCustomerCommon API operation for PARTNER.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCENGINE API reference guide for PARTNER's API operation ListChildPartnerCustomerCommon for usage and error information.

func (*PARTNER) ListChildPartnerCustomerCommonRequest

func (c *PARTNER) ListChildPartnerCustomerCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})

ListChildPartnerCustomerCommonRequest generates a "volcengine/request.Request" representing the client's request for the ListChildPartnerCustomerCommon operation. The "output" return value will be populated with the ListChildPartnerCustomerCommon request's response once the request completes successfully.

Use "Send" method on the returned ListChildPartnerCustomerCommon Request to send the API call to the service. the "output" return value is not valid until after ListChildPartnerCustomerCommon Send returns without error.

See ListChildPartnerCustomerCommon for more information on using the ListChildPartnerCustomerCommon API call, and error handling.

// Example sending a request using the ListChildPartnerCustomerCommonRequest method.
req, resp := client.ListChildPartnerCustomerCommonRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*PARTNER) ListChildPartnerCustomerCommonWithContext

func (c *PARTNER) ListChildPartnerCustomerCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)

ListChildPartnerCustomerCommonWithContext is the same as ListChildPartnerCustomerCommon with the addition of the ability to pass a context and additional request options.

See ListChildPartnerCustomerCommon for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*PARTNER) ListChildPartnerCustomerRequest

func (c *PARTNER) ListChildPartnerCustomerRequest(input *ListChildPartnerCustomerInput) (req *request.Request, output *ListChildPartnerCustomerOutput)

ListChildPartnerCustomerRequest generates a "volcengine/request.Request" representing the client's request for the ListChildPartnerCustomer operation. The "output" return value will be populated with the ListChildPartnerCustomerCommon request's response once the request completes successfully.

Use "Send" method on the returned ListChildPartnerCustomerCommon Request to send the API call to the service. the "output" return value is not valid until after ListChildPartnerCustomerCommon Send returns without error.

See ListChildPartnerCustomer for more information on using the ListChildPartnerCustomer API call, and error handling.

// Example sending a request using the ListChildPartnerCustomerRequest method.
req, resp := client.ListChildPartnerCustomerRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*PARTNER) ListChildPartnerCustomerWithContext

func (c *PARTNER) ListChildPartnerCustomerWithContext(ctx volcengine.Context, input *ListChildPartnerCustomerInput, opts ...request.Option) (*ListChildPartnerCustomerOutput, error)

ListChildPartnerCustomerWithContext is the same as ListChildPartnerCustomer with the addition of the ability to pass a context and additional request options.

See ListChildPartnerCustomer for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. Ifthe context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*PARTNER) ListPartnerCustomer

func (c *PARTNER) ListPartnerCustomer(input *ListPartnerCustomerInput) (*ListPartnerCustomerOutput, error)

ListPartnerCustomer API operation for PARTNER.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCENGINE API reference guide for PARTNER's API operation ListPartnerCustomer for usage and error information.

func (*PARTNER) ListPartnerCustomerCommon

func (c *PARTNER) ListPartnerCustomerCommon(input *map[string]interface{}) (*map[string]interface{}, error)

ListPartnerCustomerCommon API operation for PARTNER.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCENGINE API reference guide for PARTNER's API operation ListPartnerCustomerCommon for usage and error information.

func (*PARTNER) ListPartnerCustomerCommonRequest

func (c *PARTNER) ListPartnerCustomerCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})

ListPartnerCustomerCommonRequest generates a "volcengine/request.Request" representing the client's request for the ListPartnerCustomerCommon operation. The "output" return value will be populated with the ListPartnerCustomerCommon request's response once the request completes successfully.

Use "Send" method on the returned ListPartnerCustomerCommon Request to send the API call to the service. the "output" return value is not valid until after ListPartnerCustomerCommon Send returns without error.

See ListPartnerCustomerCommon for more information on using the ListPartnerCustomerCommon API call, and error handling.

// Example sending a request using the ListPartnerCustomerCommonRequest method.
req, resp := client.ListPartnerCustomerCommonRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*PARTNER) ListPartnerCustomerCommonWithContext

func (c *PARTNER) ListPartnerCustomerCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)

ListPartnerCustomerCommonWithContext is the same as ListPartnerCustomerCommon with the addition of the ability to pass a context and additional request options.

See ListPartnerCustomerCommon for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*PARTNER) ListPartnerCustomerRequest

func (c *PARTNER) ListPartnerCustomerRequest(input *ListPartnerCustomerInput) (req *request.Request, output *ListPartnerCustomerOutput)

ListPartnerCustomerRequest generates a "volcengine/request.Request" representing the client's request for the ListPartnerCustomer operation. The "output" return value will be populated with the ListPartnerCustomerCommon request's response once the request completes successfully.

Use "Send" method on the returned ListPartnerCustomerCommon Request to send the API call to the service. the "output" return value is not valid until after ListPartnerCustomerCommon Send returns without error.

See ListPartnerCustomer for more information on using the ListPartnerCustomer API call, and error handling.

// Example sending a request using the ListPartnerCustomerRequest method.
req, resp := client.ListPartnerCustomerRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*PARTNER) ListPartnerCustomerWithContext

func (c *PARTNER) ListPartnerCustomerWithContext(ctx volcengine.Context, input *ListPartnerCustomerInput, opts ...request.Option) (*ListPartnerCustomerOutput, error)

ListPartnerCustomerWithContext is the same as ListPartnerCustomer with the addition of the ability to pass a context and additional request options.

See ListPartnerCustomer for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. Ifthe context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

type PARTNERAPI

type PARTNERAPI interface {
	ListChildPartnerCustomerCommon(*map[string]interface{}) (*map[string]interface{}, error)
	ListChildPartnerCustomerCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	ListChildPartnerCustomerCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	ListChildPartnerCustomer(*ListChildPartnerCustomerInput) (*ListChildPartnerCustomerOutput, error)
	ListChildPartnerCustomerWithContext(volcengine.Context, *ListChildPartnerCustomerInput, ...request.Option) (*ListChildPartnerCustomerOutput, error)
	ListChildPartnerCustomerRequest(*ListChildPartnerCustomerInput) (*request.Request, *ListChildPartnerCustomerOutput)

	ListPartnerCustomerCommon(*map[string]interface{}) (*map[string]interface{}, error)
	ListPartnerCustomerCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	ListPartnerCustomerCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	ListPartnerCustomer(*ListPartnerCustomerInput) (*ListPartnerCustomerOutput, error)
	ListPartnerCustomerWithContext(volcengine.Context, *ListPartnerCustomerInput, ...request.Option) (*ListPartnerCustomerOutput, error)
	ListPartnerCustomerRequest(*ListPartnerCustomerInput) (*request.Request, *ListPartnerCustomerOutput)
}

PARTNERAPI provides an interface to enable mocking the partner.PARTNER service client's API operation,

// volcengine sdk func uses an SDK service client to make a request to
// PARTNER.
func myFunc(svc PARTNERAPI) bool {
    // Make svc.ListChildPartnerCustomer request
}

func main() {
    sess := session.New()
    svc := partner.New(sess)

    myFunc(svc)
}

Jump to

Keyboard shortcuts

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