subscription

package
v0.75.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PublicQueryUserSubscriptionsCHARGEDConstant           = "CHARGED"
	PublicQueryUserSubscriptionsCHARGEFAILEDConstant      = "CHARGE_FAILED"
	PublicQueryUserSubscriptionsNEVERConstant             = "NEVER"
	PublicQueryUserSubscriptionsRECURRINGCHARGINGConstant = "RECURRING_CHARGING"
	PublicQueryUserSubscriptionsSETUPConstant             = "SETUP"
)

Get the enum in PublicQueryUserSubscriptionsParams

View Source
const (
	PublicQueryUserSubscriptionsACTIVEConstant    = "ACTIVE"
	PublicQueryUserSubscriptionsCANCELLEDConstant = "CANCELLED"
	PublicQueryUserSubscriptionsEXPIREDConstant   = "EXPIRED"
	PublicQueryUserSubscriptionsINITConstant      = "INIT"
)

Get the enum in PublicQueryUserSubscriptionsParams

View Source
const (
	PublicQueryUserSubscriptionsPLATFORMConstant = "PLATFORM"
	PublicQueryUserSubscriptionsUSERConstant     = "USER"
)

Get the enum in PublicQueryUserSubscriptionsParams

View Source
const (
	QuerySubscriptionsCHARGEDConstant           = "CHARGED"
	QuerySubscriptionsCHARGEFAILEDConstant      = "CHARGE_FAILED"
	QuerySubscriptionsNEVERConstant             = "NEVER"
	QuerySubscriptionsRECURRINGCHARGINGConstant = "RECURRING_CHARGING"
	QuerySubscriptionsSETUPConstant             = "SETUP"
)

Get the enum in QuerySubscriptionsParams

View Source
const (
	QuerySubscriptionsACTIVEConstant    = "ACTIVE"
	QuerySubscriptionsCANCELLEDConstant = "CANCELLED"
	QuerySubscriptionsEXPIREDConstant   = "EXPIRED"
	QuerySubscriptionsINITConstant      = "INIT"
)

Get the enum in QuerySubscriptionsParams

View Source
const (
	QuerySubscriptionsPLATFORMConstant = "PLATFORM"
	QuerySubscriptionsUSERConstant     = "USER"
)

Get the enum in QuerySubscriptionsParams

View Source
const (
	QueryUserSubscriptionsCHARGEDConstant           = "CHARGED"
	QueryUserSubscriptionsCHARGEFAILEDConstant      = "CHARGE_FAILED"
	QueryUserSubscriptionsNEVERConstant             = "NEVER"
	QueryUserSubscriptionsRECURRINGCHARGINGConstant = "RECURRING_CHARGING"
	QueryUserSubscriptionsSETUPConstant             = "SETUP"
)

Get the enum in QueryUserSubscriptionsParams

View Source
const (
	QueryUserSubscriptionsACTIVEConstant    = "ACTIVE"
	QueryUserSubscriptionsCANCELLEDConstant = "CANCELLED"
	QueryUserSubscriptionsEXPIREDConstant   = "EXPIRED"
	QueryUserSubscriptionsINITConstant      = "INIT"
)

Get the enum in QueryUserSubscriptionsParams

View Source
const (
	QueryUserSubscriptionsPLATFORMConstant = "PLATFORM"
	QueryUserSubscriptionsUSERConstant     = "USER"
)

Get the enum in QueryUserSubscriptionsParams

Variables

This section is empty.

Functions

This section is empty.

Types

type CancelSubscriptionConflict

type CancelSubscriptionConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

CancelSubscriptionConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>40171</td><td>Subscription [{subscriptionId}] is not active</td></tr><tr><td>40172</td><td>Subscription [{subscriptionId}] is charging, waiting for payment notification</td></tr></table>

func NewCancelSubscriptionConflict

func NewCancelSubscriptionConflict() *CancelSubscriptionConflict

NewCancelSubscriptionConflict creates a CancelSubscriptionConflict with default headers values

func (*CancelSubscriptionConflict) Error

func (*CancelSubscriptionConflict) GetPayload

func (*CancelSubscriptionConflict) ToJSONString added in v0.25.0

func (o *CancelSubscriptionConflict) ToJSONString() string

type CancelSubscriptionNotFound

type CancelSubscriptionNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

CancelSubscriptionNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>40141</td><td>Subscription [{subscriptionId}] does not exist</td></tr></table>

func NewCancelSubscriptionNotFound

func NewCancelSubscriptionNotFound() *CancelSubscriptionNotFound

NewCancelSubscriptionNotFound creates a CancelSubscriptionNotFound with default headers values

func (*CancelSubscriptionNotFound) Error

func (*CancelSubscriptionNotFound) GetPayload

func (*CancelSubscriptionNotFound) ToJSONString added in v0.25.0

func (o *CancelSubscriptionNotFound) ToJSONString() string

type CancelSubscriptionOK

type CancelSubscriptionOK struct {
	Payload *platformclientmodels.SubscriptionInfo
}

CancelSubscriptionOK handles this case with default header values.

successful operation

func NewCancelSubscriptionOK

func NewCancelSubscriptionOK() *CancelSubscriptionOK

NewCancelSubscriptionOK creates a CancelSubscriptionOK with default headers values

func (*CancelSubscriptionOK) Error

func (o *CancelSubscriptionOK) Error() string

func (*CancelSubscriptionOK) GetPayload

func (*CancelSubscriptionOK) ToJSONString added in v0.25.0

func (o *CancelSubscriptionOK) ToJSONString() string

type CancelSubscriptionParams

type CancelSubscriptionParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.CancelRequest
	/*Namespace*/
	Namespace string
	/*SubscriptionID*/
	SubscriptionID string
	/*UserID*/
	UserID string
	/*Force*/
	Force *bool

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

CancelSubscriptionParams contains all the parameters to send to the API endpoint for the cancel subscription operation typically these are written to a http.Request

func NewCancelSubscriptionParams

func NewCancelSubscriptionParams() *CancelSubscriptionParams

NewCancelSubscriptionParams creates a new CancelSubscriptionParams object with the default values initialized.

func NewCancelSubscriptionParamsWithContext

func NewCancelSubscriptionParamsWithContext(ctx context.Context) *CancelSubscriptionParams

NewCancelSubscriptionParamsWithContext creates a new CancelSubscriptionParams object with the default values initialized, and the ability to set a context for a request

func NewCancelSubscriptionParamsWithHTTPClient

func NewCancelSubscriptionParamsWithHTTPClient(client *http.Client) *CancelSubscriptionParams

NewCancelSubscriptionParamsWithHTTPClient creates a new CancelSubscriptionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCancelSubscriptionParamsWithTimeout

func NewCancelSubscriptionParamsWithTimeout(timeout time.Duration) *CancelSubscriptionParams

NewCancelSubscriptionParamsWithTimeout creates a new CancelSubscriptionParams object with the default values initialized, and the ability to set a timeout on a request

func (*CancelSubscriptionParams) SetAuthInfoWriter added in v0.17.0

func (o *CancelSubscriptionParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the cancel subscription params

func (*CancelSubscriptionParams) SetBody

SetBody adds the body to the cancel subscription params

func (*CancelSubscriptionParams) SetContext

func (o *CancelSubscriptionParams) SetContext(ctx context.Context)

SetContext adds the context to the cancel subscription params

func (*CancelSubscriptionParams) SetFlightId added in v0.63.0

func (o *CancelSubscriptionParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*CancelSubscriptionParams) SetForce

func (o *CancelSubscriptionParams) SetForce(force *bool)

SetForce adds the force to the cancel subscription params

func (*CancelSubscriptionParams) SetHTTPClient

func (o *CancelSubscriptionParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the cancel subscription params

func (*CancelSubscriptionParams) SetHTTPClientTransport added in v0.19.0

func (o *CancelSubscriptionParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the cancel subscription params

func (*CancelSubscriptionParams) SetNamespace

func (o *CancelSubscriptionParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the cancel subscription params

func (*CancelSubscriptionParams) SetSubscriptionID

func (o *CancelSubscriptionParams) SetSubscriptionID(subscriptionID string)

SetSubscriptionID adds the subscriptionId to the cancel subscription params

func (*CancelSubscriptionParams) SetTimeout

func (o *CancelSubscriptionParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the cancel subscription params

func (*CancelSubscriptionParams) SetUserID

func (o *CancelSubscriptionParams) SetUserID(userID string)

SetUserID adds the userId to the cancel subscription params

func (*CancelSubscriptionParams) WithBody

WithBody adds the body to the cancel subscription params

func (*CancelSubscriptionParams) WithContext

WithContext adds the context to the cancel subscription params

func (*CancelSubscriptionParams) WithForce

WithForce adds the force to the cancel subscription params

func (*CancelSubscriptionParams) WithHTTPClient

func (o *CancelSubscriptionParams) WithHTTPClient(client *http.Client) *CancelSubscriptionParams

WithHTTPClient adds the HTTPClient to the cancel subscription params

func (*CancelSubscriptionParams) WithNamespace

func (o *CancelSubscriptionParams) WithNamespace(namespace string) *CancelSubscriptionParams

WithNamespace adds the namespace to the cancel subscription params

func (*CancelSubscriptionParams) WithSubscriptionID

func (o *CancelSubscriptionParams) WithSubscriptionID(subscriptionID string) *CancelSubscriptionParams

WithSubscriptionID adds the subscriptionID to the cancel subscription params

func (*CancelSubscriptionParams) WithTimeout

WithTimeout adds the timeout to the cancel subscription params

func (*CancelSubscriptionParams) WithUserID

WithUserID adds the userID to the cancel subscription params

func (*CancelSubscriptionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CancelSubscriptionReader

type CancelSubscriptionReader struct {
	// contains filtered or unexported fields
}

CancelSubscriptionReader is a Reader for the CancelSubscription structure.

func (*CancelSubscriptionReader) ReadResponse

func (o *CancelSubscriptionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type CheckUserSubscriptionSubscribableByItemIDOK

type CheckUserSubscriptionSubscribableByItemIDOK struct {
	Payload *platformclientmodels.Subscribable
}

CheckUserSubscriptionSubscribableByItemIDOK handles this case with default header values.

successful operation

func NewCheckUserSubscriptionSubscribableByItemIDOK

func NewCheckUserSubscriptionSubscribableByItemIDOK() *CheckUserSubscriptionSubscribableByItemIDOK

NewCheckUserSubscriptionSubscribableByItemIDOK creates a CheckUserSubscriptionSubscribableByItemIDOK with default headers values

func (*CheckUserSubscriptionSubscribableByItemIDOK) Error

func (*CheckUserSubscriptionSubscribableByItemIDOK) GetPayload

func (*CheckUserSubscriptionSubscribableByItemIDOK) ToJSONString added in v0.25.0

type CheckUserSubscriptionSubscribableByItemIDParams

type CheckUserSubscriptionSubscribableByItemIDParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*UserID*/
	UserID string
	/*ItemID*/
	ItemID string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

CheckUserSubscriptionSubscribableByItemIDParams contains all the parameters to send to the API endpoint for the check user subscription subscribable by item id operation typically these are written to a http.Request

func NewCheckUserSubscriptionSubscribableByItemIDParams

func NewCheckUserSubscriptionSubscribableByItemIDParams() *CheckUserSubscriptionSubscribableByItemIDParams

NewCheckUserSubscriptionSubscribableByItemIDParams creates a new CheckUserSubscriptionSubscribableByItemIDParams object with the default values initialized.

func NewCheckUserSubscriptionSubscribableByItemIDParamsWithContext

func NewCheckUserSubscriptionSubscribableByItemIDParamsWithContext(ctx context.Context) *CheckUserSubscriptionSubscribableByItemIDParams

NewCheckUserSubscriptionSubscribableByItemIDParamsWithContext creates a new CheckUserSubscriptionSubscribableByItemIDParams object with the default values initialized, and the ability to set a context for a request

func NewCheckUserSubscriptionSubscribableByItemIDParamsWithHTTPClient

func NewCheckUserSubscriptionSubscribableByItemIDParamsWithHTTPClient(client *http.Client) *CheckUserSubscriptionSubscribableByItemIDParams

NewCheckUserSubscriptionSubscribableByItemIDParamsWithHTTPClient creates a new CheckUserSubscriptionSubscribableByItemIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCheckUserSubscriptionSubscribableByItemIDParamsWithTimeout

func NewCheckUserSubscriptionSubscribableByItemIDParamsWithTimeout(timeout time.Duration) *CheckUserSubscriptionSubscribableByItemIDParams

NewCheckUserSubscriptionSubscribableByItemIDParamsWithTimeout creates a new CheckUserSubscriptionSubscribableByItemIDParams object with the default values initialized, and the ability to set a timeout on a request

func (*CheckUserSubscriptionSubscribableByItemIDParams) SetAuthInfoWriter added in v0.17.0

SetAuthInfoWriter adds the authInfoWriter to the check user subscription subscribable by item id params

func (*CheckUserSubscriptionSubscribableByItemIDParams) SetContext

SetContext adds the context to the check user subscription subscribable by item id params

func (*CheckUserSubscriptionSubscribableByItemIDParams) SetFlightId added in v0.63.0

SetFlightId adds the flightId as the header value for this specific endpoint

func (*CheckUserSubscriptionSubscribableByItemIDParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the check user subscription subscribable by item id params

func (*CheckUserSubscriptionSubscribableByItemIDParams) SetHTTPClientTransport added in v0.19.0

func (o *CheckUserSubscriptionSubscribableByItemIDParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the check user subscription subscribable by item id params

func (*CheckUserSubscriptionSubscribableByItemIDParams) SetItemID

SetItemID adds the itemId to the check user subscription subscribable by item id params

func (*CheckUserSubscriptionSubscribableByItemIDParams) SetNamespace

func (o *CheckUserSubscriptionSubscribableByItemIDParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the check user subscription subscribable by item id params

func (*CheckUserSubscriptionSubscribableByItemIDParams) SetTimeout

SetTimeout adds the timeout to the check user subscription subscribable by item id params

func (*CheckUserSubscriptionSubscribableByItemIDParams) SetUserID

SetUserID adds the userId to the check user subscription subscribable by item id params

func (*CheckUserSubscriptionSubscribableByItemIDParams) WithContext

WithContext adds the context to the check user subscription subscribable by item id params

func (*CheckUserSubscriptionSubscribableByItemIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the check user subscription subscribable by item id params

func (*CheckUserSubscriptionSubscribableByItemIDParams) WithItemID

WithItemID adds the itemID to the check user subscription subscribable by item id params

func (*CheckUserSubscriptionSubscribableByItemIDParams) WithNamespace

WithNamespace adds the namespace to the check user subscription subscribable by item id params

func (*CheckUserSubscriptionSubscribableByItemIDParams) WithTimeout

WithTimeout adds the timeout to the check user subscription subscribable by item id params

func (*CheckUserSubscriptionSubscribableByItemIDParams) WithUserID

WithUserID adds the userID to the check user subscription subscribable by item id params

func (*CheckUserSubscriptionSubscribableByItemIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CheckUserSubscriptionSubscribableByItemIDReader

type CheckUserSubscriptionSubscribableByItemIDReader struct {
	// contains filtered or unexported fields
}

CheckUserSubscriptionSubscribableByItemIDReader is a Reader for the CheckUserSubscriptionSubscribableByItemID structure.

func (*CheckUserSubscriptionSubscribableByItemIDReader) ReadResponse

func (o *CheckUserSubscriptionSubscribableByItemIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for subscription API

func (*Client) CancelSubscription deprecated

Deprecated: 2022-08-10 - Use CancelSubscriptionShort instead.

CancelSubscription cancel a subscription Cancel a subscription, only ACTIVE subscription can be cancelled. Ensure successfully cancel, recommend at least 1 day before current period ends, otherwise it may be charging or charged. Set immediate true, the subscription will be terminated immediately, otherwise till the end of current billing cycle. Set force true, will ignore the error if subscription is during recurring charging. Other detail info:

  • Returns : cancelled subscription

func (*Client) CancelSubscriptionShort added in v0.8.0

func (a *Client) CancelSubscriptionShort(params *CancelSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*CancelSubscriptionOK, error)

CancelSubscriptionShort cancel a subscription Cancel a subscription, only ACTIVE subscription can be cancelled. Ensure successfully cancel, recommend at least 1 day before current period ends, otherwise it may be charging or charged. Set immediate true, the subscription will be terminated immediately, otherwise till the end of current billing cycle. Set force true, will ignore the error if subscription is during recurring charging. Other detail info:

  • Returns : cancelled subscription

func (*Client) CheckUserSubscriptionSubscribableByItemID deprecated

Deprecated: 2022-08-10 - Use CheckUserSubscriptionSubscribableByItemIDShort instead.

CheckUserSubscriptionSubscribableByItemID check user subscription subscribable Check user subscription subscribable by itemId, ACTIVE USER subscription can't do subscribe again.

Other detail info:

  • Returns : subscribable info

func (*Client) CheckUserSubscriptionSubscribableByItemIDShort added in v0.8.0

func (a *Client) CheckUserSubscriptionSubscribableByItemIDShort(params *CheckUserSubscriptionSubscribableByItemIDParams, authInfo runtime.ClientAuthInfoWriter) (*CheckUserSubscriptionSubscribableByItemIDOK, error)

CheckUserSubscriptionSubscribableByItemIDShort check user subscription subscribable Check user subscription subscribable by itemId, ACTIVE USER subscription can't do subscribe again.

Other detail info:

  • Returns : subscribable info

func (*Client) DeleteUserSubscription deprecated

Deprecated: 2022-08-10 - Use DeleteUserSubscriptionShort instead.

DeleteUserSubscription delete user subscription

[TEST FACILITY ONLY] Forbidden in live environment. Delete user subscription.

func (*Client) DeleteUserSubscriptionShort added in v0.8.0

func (a *Client) DeleteUserSubscriptionShort(params *DeleteUserSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteUserSubscriptionNoContent, error)

DeleteUserSubscriptionShort delete user subscription

[TEST FACILITY ONLY] Forbidden in live environment. Delete user subscription.

func (*Client) GetUserSubscription deprecated

Deprecated: 2022-08-10 - Use GetUserSubscriptionShort instead.

GetUserSubscription get user subscription Get user subscription. Other detail info:

  • Returns : subscription

func (*Client) GetUserSubscriptionActivities deprecated

func (a *Client) GetUserSubscriptionActivities(params *GetUserSubscriptionActivitiesParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserSubscriptionActivitiesOK, error)

Deprecated: 2022-08-10 - Use GetUserSubscriptionActivitiesShort instead.

GetUserSubscriptionActivities get user subscription activity Get user subscription activity. Other detail info:

  • Returns : paginated subscription activity

func (*Client) GetUserSubscriptionActivitiesShort added in v0.8.0

func (a *Client) GetUserSubscriptionActivitiesShort(params *GetUserSubscriptionActivitiesParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserSubscriptionActivitiesOK, error)

GetUserSubscriptionActivitiesShort get user subscription activity Get user subscription activity. Other detail info:

  • Returns : paginated subscription activity

func (*Client) GetUserSubscriptionBillingHistories deprecated

Deprecated: 2022-08-10 - Use GetUserSubscriptionBillingHistoriesShort instead.

GetUserSubscriptionBillingHistories get user subscription billing histories Get user subscription billing histories. Other detail info:

  • Returns : paginated subscription billing history

func (*Client) GetUserSubscriptionBillingHistoriesShort added in v0.8.0

func (a *Client) GetUserSubscriptionBillingHistoriesShort(params *GetUserSubscriptionBillingHistoriesParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserSubscriptionBillingHistoriesOK, error)

GetUserSubscriptionBillingHistoriesShort get user subscription billing histories Get user subscription billing histories. Other detail info:

  • Returns : paginated subscription billing history

func (*Client) GetUserSubscriptionShort added in v0.8.0

func (a *Client) GetUserSubscriptionShort(params *GetUserSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserSubscriptionOK, error)

GetUserSubscriptionShort get user subscription Get user subscription. Other detail info:

  • Returns : subscription

func (*Client) GrantDaysToSubscription deprecated

Deprecated: 2022-08-10 - Use GrantDaysToSubscriptionShort instead.

GrantDaysToSubscription grant days to a subscription Grant days to a subscription, if grantDays is positive, it will add free days and push the next billing date by the amount of day. if the grantDays is negative or zero, it only apply to active/cancelled subscription, remove days will decrease current period end, and move the next billing date closer. Other detail info:

  • Returns : updated subscription

func (*Client) GrantDaysToSubscriptionShort added in v0.8.0

func (a *Client) GrantDaysToSubscriptionShort(params *GrantDaysToSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*GrantDaysToSubscriptionOK, error)

GrantDaysToSubscriptionShort grant days to a subscription Grant days to a subscription, if grantDays is positive, it will add free days and push the next billing date by the amount of day. if the grantDays is negative or zero, it only apply to active/cancelled subscription, remove days will decrease current period end, and move the next billing date closer. Other detail info:

  • Returns : updated subscription

func (*Client) PlatformSubscribeSubscription deprecated

Deprecated: 2022-08-10 - Use PlatformSubscribeSubscriptionShort instead.

PlatformSubscribeSubscription free subscribe by platform Free subscribe by platform, can used by other justice service to redeem/reward the subscription. Other detail info:

  • Returns : result subscription

func (*Client) PlatformSubscribeSubscriptionShort added in v0.8.0

func (a *Client) PlatformSubscribeSubscriptionShort(params *PlatformSubscribeSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*PlatformSubscribeSubscriptionOK, error)

PlatformSubscribeSubscriptionShort free subscribe by platform Free subscribe by platform, can used by other justice service to redeem/reward the subscription. Other detail info:

  • Returns : result subscription

func (*Client) ProcessUserSubscriptionNotification deprecated

Deprecated: 2022-08-10 - Use ProcessUserSubscriptionNotificationShort instead.

ProcessUserSubscriptionNotification web hook for payment notification

[SERVICE COMMUNICATION ONLY] This API is used as a web hook for payment notification from justice payment service.

Other detail info:

  • Returns : Process result

func (*Client) ProcessUserSubscriptionNotificationShort added in v0.8.0

ProcessUserSubscriptionNotificationShort web hook for payment notification

[SERVICE COMMUNICATION ONLY] This API is used as a web hook for payment notification from justice payment service.

Other detail info:

  • Returns : Process result

func (*Client) PublicCancelSubscription deprecated

Deprecated: 2022-08-10 - Use PublicCancelSubscriptionShort instead.

PublicCancelSubscription cancel a subscription Cancel a subscription, only ACTIVE subscription can be cancelled. Ensure successfully cancel, recommend at least 1 day before current period ends, otherwise it may be charging or charged. Set immediate true, the subscription will be terminated immediately, otherwise till the end of current billing cycle. Other detail info:

  • Returns : cancelled subscription

func (*Client) PublicCancelSubscriptionShort added in v0.8.0

func (a *Client) PublicCancelSubscriptionShort(params *PublicCancelSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*PublicCancelSubscriptionOK, error)

PublicCancelSubscriptionShort cancel a subscription Cancel a subscription, only ACTIVE subscription can be cancelled. Ensure successfully cancel, recommend at least 1 day before current period ends, otherwise it may be charging or charged. Set immediate true, the subscription will be terminated immediately, otherwise till the end of current billing cycle. Other detail info:

  • Returns : cancelled subscription

func (*Client) PublicChangeSubscriptionBillingAccount deprecated

Deprecated: 2022-08-10 - Use PublicChangeSubscriptionBillingAccountShort instead.

PublicChangeSubscriptionBillingAccount request to change a subscription billing account Request to change a subscription billing account, this will guide user to payment station. The actual change will happen at the 0 payment notification successfully handled. Only ACTIVE USER subscription with real currency billing account can be changed. Other detail info:

  • Returns : updated subscription

func (*Client) PublicChangeSubscriptionBillingAccountShort added in v0.8.0

func (a *Client) PublicChangeSubscriptionBillingAccountShort(params *PublicChangeSubscriptionBillingAccountParams, authInfo runtime.ClientAuthInfoWriter) (*PublicChangeSubscriptionBillingAccountOK, error)

PublicChangeSubscriptionBillingAccountShort request to change a subscription billing account Request to change a subscription billing account, this will guide user to payment station. The actual change will happen at the 0 payment notification successfully handled. Only ACTIVE USER subscription with real currency billing account can be changed. Other detail info:

  • Returns : updated subscription

func (*Client) PublicCheckUserSubscriptionSubscribableByItemID deprecated

Deprecated: 2022-08-10 - Use PublicCheckUserSubscriptionSubscribableByItemIDShort instead.

PublicCheckUserSubscriptionSubscribableByItemID check user subscription subscribable Check user subscription subscribable by itemId, ACTIVE USER subscription can't do subscribe again.

Other detail info:

  • Returns : subscribable info

func (*Client) PublicCheckUserSubscriptionSubscribableByItemIDShort added in v0.8.0

PublicCheckUserSubscriptionSubscribableByItemIDShort check user subscription subscribable Check user subscription subscribable by itemId, ACTIVE USER subscription can't do subscribe again.

Other detail info:

  • Returns : subscribable info

func (*Client) PublicGetUserSubscription deprecated

Deprecated: 2022-08-10 - Use PublicGetUserSubscriptionShort instead.

PublicGetUserSubscription get user subscription Get user subscription. Other detail info:

  • Returns : subscription

func (*Client) PublicGetUserSubscriptionBillingHistories deprecated

Deprecated: 2022-08-10 - Use PublicGetUserSubscriptionBillingHistoriesShort instead.

PublicGetUserSubscriptionBillingHistories get user subscription billing histories Get user subscription billing histories. Other detail info:

  • Returns : paginated subscription history

func (*Client) PublicGetUserSubscriptionBillingHistoriesShort added in v0.8.0

func (a *Client) PublicGetUserSubscriptionBillingHistoriesShort(params *PublicGetUserSubscriptionBillingHistoriesParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetUserSubscriptionBillingHistoriesOK, error)

PublicGetUserSubscriptionBillingHistoriesShort get user subscription billing histories Get user subscription billing histories. Other detail info:

  • Returns : paginated subscription history

func (*Client) PublicGetUserSubscriptionShort added in v0.8.0

func (a *Client) PublicGetUserSubscriptionShort(params *PublicGetUserSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetUserSubscriptionOK, error)

PublicGetUserSubscriptionShort get user subscription Get user subscription. Other detail info:

  • Returns : subscription

func (*Client) PublicQueryUserSubscriptions deprecated

func (a *Client) PublicQueryUserSubscriptions(params *PublicQueryUserSubscriptionsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicQueryUserSubscriptionsOK, error)

Deprecated: 2022-08-10 - Use PublicQueryUserSubscriptionsShort instead.

PublicQueryUserSubscriptions query user subscriptions Query user subscriptions. Other detail info:

  • Returns : paginated subscription

func (*Client) PublicQueryUserSubscriptionsShort added in v0.8.0

func (a *Client) PublicQueryUserSubscriptionsShort(params *PublicQueryUserSubscriptionsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicQueryUserSubscriptionsOK, error)

PublicQueryUserSubscriptionsShort query user subscriptions Query user subscriptions. Other detail info:

  • Returns : paginated subscription

func (*Client) PublicSubscribeSubscription deprecated

Deprecated: 2022-08-10 - Use PublicSubscribeSubscriptionShort instead.

PublicSubscribeSubscription subscribe a subscription Subscribe a subscription. Support both real and virtual payment. Need go through payment flow using the paymentOrderNo if paymentFlowRequired true.

ACTIVE USER subscription can't do subscribe again.
The next billing date will be X(default 4) hours before the current period ends if correctly subscribed.

User with permission SANDBOX will create sandbox subscription that not real paid. Other detail info:

  • Optional permission(user with this permission will create sandbox subscription) : resource="SANDBOX", action=1 (CREATE)
  • It will be forbidden while the user is banned: ORDER_INITIATE or ORDER_AND_PAYMENT
  • Returns : created subscription

func (*Client) PublicSubscribeSubscriptionShort added in v0.8.0

func (a *Client) PublicSubscribeSubscriptionShort(params *PublicSubscribeSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*PublicSubscribeSubscriptionCreated, error)

PublicSubscribeSubscriptionShort subscribe a subscription Subscribe a subscription. Support both real and virtual payment. Need go through payment flow using the paymentOrderNo if paymentFlowRequired true.

ACTIVE USER subscription can't do subscribe again.
The next billing date will be X(default 4) hours before the current period ends if correctly subscribed.

User with permission SANDBOX will create sandbox subscription that not real paid. Other detail info:

  • Optional permission(user with this permission will create sandbox subscription) : resource="SANDBOX", action=1 (CREATE)
  • It will be forbidden while the user is banned: ORDER_INITIATE or ORDER_AND_PAYMENT
  • Returns : created subscription

func (*Client) QuerySubscriptions deprecated

func (a *Client) QuerySubscriptions(params *QuerySubscriptionsParams, authInfo runtime.ClientAuthInfoWriter) (*QuerySubscriptionsOK, error)

Deprecated: 2022-08-10 - Use QuerySubscriptionsShort instead.

QuerySubscriptions query subscriptions Query subscriptions. Other detail info:

  • Returns : paginated subscriptions

func (*Client) QuerySubscriptionsShort added in v0.8.0

func (a *Client) QuerySubscriptionsShort(params *QuerySubscriptionsParams, authInfo runtime.ClientAuthInfoWriter) (*QuerySubscriptionsOK, error)

QuerySubscriptionsShort query subscriptions Query subscriptions. Other detail info:

  • Returns : paginated subscriptions

func (*Client) QueryUserSubscriptions deprecated

func (a *Client) QueryUserSubscriptions(params *QueryUserSubscriptionsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryUserSubscriptionsOK, error)

Deprecated: 2022-08-10 - Use QueryUserSubscriptionsShort instead.

QueryUserSubscriptions query user subscriptions Query user subscriptions. Other detail info:

  • Returns : paginated subscription

func (*Client) QueryUserSubscriptionsShort added in v0.8.0

func (a *Client) QueryUserSubscriptionsShort(params *QueryUserSubscriptionsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryUserSubscriptionsOK, error)

QueryUserSubscriptionsShort query user subscriptions Query user subscriptions. Other detail info:

  • Returns : paginated subscription

func (*Client) RecurringChargeSubscription deprecated

func (a *Client) RecurringChargeSubscription(params *RecurringChargeSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*RecurringChargeSubscriptionOK, error)

Deprecated: 2022-08-10 - Use RecurringChargeSubscriptionShort instead.

RecurringChargeSubscription recurring charge subscription

[TEST FACILITY ONLY] Forbidden in live environment. Recurring charge subscription, it will trigger recurring charge if the USER subscription status is ACTIVE, nextBillingDate is before now and no fail recurring charge within X(default 12) hours.

Other detail info:

  • Returns : recurring charge result

func (*Client) RecurringChargeSubscriptionShort added in v0.8.0

func (a *Client) RecurringChargeSubscriptionShort(params *RecurringChargeSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*RecurringChargeSubscriptionOK, error)

RecurringChargeSubscriptionShort recurring charge subscription

[TEST FACILITY ONLY] Forbidden in live environment. Recurring charge subscription, it will trigger recurring charge if the USER subscription status is ACTIVE, nextBillingDate is before now and no fail recurring charge within X(default 12) hours.

Other detail info:

  • Returns : recurring charge result

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	QuerySubscriptions(params *QuerySubscriptionsParams, authInfo runtime.ClientAuthInfoWriter) (*QuerySubscriptionsOK, error)
	QuerySubscriptionsShort(params *QuerySubscriptionsParams, authInfo runtime.ClientAuthInfoWriter) (*QuerySubscriptionsOK, error)
	RecurringChargeSubscription(params *RecurringChargeSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*RecurringChargeSubscriptionOK, error)
	RecurringChargeSubscriptionShort(params *RecurringChargeSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*RecurringChargeSubscriptionOK, error)
	QueryUserSubscriptions(params *QueryUserSubscriptionsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryUserSubscriptionsOK, error)
	QueryUserSubscriptionsShort(params *QueryUserSubscriptionsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryUserSubscriptionsOK, error)
	GetUserSubscriptionActivities(params *GetUserSubscriptionActivitiesParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserSubscriptionActivitiesOK, error)
	GetUserSubscriptionActivitiesShort(params *GetUserSubscriptionActivitiesParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserSubscriptionActivitiesOK, error)
	PlatformSubscribeSubscription(params *PlatformSubscribeSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*PlatformSubscribeSubscriptionOK, *PlatformSubscribeSubscriptionCreated, *PlatformSubscribeSubscriptionBadRequest, *PlatformSubscribeSubscriptionNotFound, *PlatformSubscribeSubscriptionUnprocessableEntity, error)
	PlatformSubscribeSubscriptionShort(params *PlatformSubscribeSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*PlatformSubscribeSubscriptionOK, error)
	CheckUserSubscriptionSubscribableByItemID(params *CheckUserSubscriptionSubscribableByItemIDParams, authInfo runtime.ClientAuthInfoWriter) (*CheckUserSubscriptionSubscribableByItemIDOK, error)
	CheckUserSubscriptionSubscribableByItemIDShort(params *CheckUserSubscriptionSubscribableByItemIDParams, authInfo runtime.ClientAuthInfoWriter) (*CheckUserSubscriptionSubscribableByItemIDOK, error)
	GetUserSubscription(params *GetUserSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserSubscriptionOK, *GetUserSubscriptionNotFound, error)
	GetUserSubscriptionShort(params *GetUserSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserSubscriptionOK, error)
	DeleteUserSubscription(params *DeleteUserSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteUserSubscriptionNoContent, error)
	DeleteUserSubscriptionShort(params *DeleteUserSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteUserSubscriptionNoContent, error)
	CancelSubscription(params *CancelSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*CancelSubscriptionOK, *CancelSubscriptionNotFound, *CancelSubscriptionConflict, error)
	CancelSubscriptionShort(params *CancelSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*CancelSubscriptionOK, error)
	GrantDaysToSubscription(params *GrantDaysToSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*GrantDaysToSubscriptionOK, *GrantDaysToSubscriptionNotFound, error)
	GrantDaysToSubscriptionShort(params *GrantDaysToSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*GrantDaysToSubscriptionOK, error)
	GetUserSubscriptionBillingHistories(params *GetUserSubscriptionBillingHistoriesParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserSubscriptionBillingHistoriesOK, error)
	GetUserSubscriptionBillingHistoriesShort(params *GetUserSubscriptionBillingHistoriesParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserSubscriptionBillingHistoriesOK, error)
	ProcessUserSubscriptionNotification(params *ProcessUserSubscriptionNotificationParams, authInfo runtime.ClientAuthInfoWriter) (*ProcessUserSubscriptionNotificationNoContent, *ProcessUserSubscriptionNotificationBadRequest, error)
	ProcessUserSubscriptionNotificationShort(params *ProcessUserSubscriptionNotificationParams, authInfo runtime.ClientAuthInfoWriter) (*ProcessUserSubscriptionNotificationNoContent, error)
	PublicQueryUserSubscriptions(params *PublicQueryUserSubscriptionsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicQueryUserSubscriptionsOK, error)
	PublicQueryUserSubscriptionsShort(params *PublicQueryUserSubscriptionsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicQueryUserSubscriptionsOK, error)
	PublicSubscribeSubscription(params *PublicSubscribeSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*PublicSubscribeSubscriptionCreated, *PublicSubscribeSubscriptionBadRequest, *PublicSubscribeSubscriptionForbidden, *PublicSubscribeSubscriptionNotFound, *PublicSubscribeSubscriptionConflict, *PublicSubscribeSubscriptionUnprocessableEntity, error)
	PublicSubscribeSubscriptionShort(params *PublicSubscribeSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*PublicSubscribeSubscriptionCreated, error)
	PublicCheckUserSubscriptionSubscribableByItemID(params *PublicCheckUserSubscriptionSubscribableByItemIDParams, authInfo runtime.ClientAuthInfoWriter) (*PublicCheckUserSubscriptionSubscribableByItemIDOK, error)
	PublicCheckUserSubscriptionSubscribableByItemIDShort(params *PublicCheckUserSubscriptionSubscribableByItemIDParams, authInfo runtime.ClientAuthInfoWriter) (*PublicCheckUserSubscriptionSubscribableByItemIDOK, error)
	PublicGetUserSubscription(params *PublicGetUserSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetUserSubscriptionOK, *PublicGetUserSubscriptionNotFound, error)
	PublicGetUserSubscriptionShort(params *PublicGetUserSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetUserSubscriptionOK, error)
	PublicChangeSubscriptionBillingAccount(params *PublicChangeSubscriptionBillingAccountParams, authInfo runtime.ClientAuthInfoWriter) (*PublicChangeSubscriptionBillingAccountOK, *PublicChangeSubscriptionBillingAccountBadRequest, *PublicChangeSubscriptionBillingAccountNotFound, *PublicChangeSubscriptionBillingAccountConflict, error)
	PublicChangeSubscriptionBillingAccountShort(params *PublicChangeSubscriptionBillingAccountParams, authInfo runtime.ClientAuthInfoWriter) (*PublicChangeSubscriptionBillingAccountOK, error)
	PublicCancelSubscription(params *PublicCancelSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*PublicCancelSubscriptionOK, *PublicCancelSubscriptionNotFound, *PublicCancelSubscriptionConflict, error)
	PublicCancelSubscriptionShort(params *PublicCancelSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*PublicCancelSubscriptionOK, error)
	PublicGetUserSubscriptionBillingHistories(params *PublicGetUserSubscriptionBillingHistoriesParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetUserSubscriptionBillingHistoriesOK, error)
	PublicGetUserSubscriptionBillingHistoriesShort(params *PublicGetUserSubscriptionBillingHistoriesParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetUserSubscriptionBillingHistoriesOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new subscription API client.

type DeleteUserSubscriptionNoContent

type DeleteUserSubscriptionNoContent struct {
}

DeleteUserSubscriptionNoContent handles this case with default header values.

delete user subscription successfully

func NewDeleteUserSubscriptionNoContent

func NewDeleteUserSubscriptionNoContent() *DeleteUserSubscriptionNoContent

NewDeleteUserSubscriptionNoContent creates a DeleteUserSubscriptionNoContent with default headers values

func (*DeleteUserSubscriptionNoContent) Error

type DeleteUserSubscriptionParams

type DeleteUserSubscriptionParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*SubscriptionID*/
	SubscriptionID string
	/*UserID*/
	UserID string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

DeleteUserSubscriptionParams contains all the parameters to send to the API endpoint for the delete user subscription operation typically these are written to a http.Request

func NewDeleteUserSubscriptionParams

func NewDeleteUserSubscriptionParams() *DeleteUserSubscriptionParams

NewDeleteUserSubscriptionParams creates a new DeleteUserSubscriptionParams object with the default values initialized.

func NewDeleteUserSubscriptionParamsWithContext

func NewDeleteUserSubscriptionParamsWithContext(ctx context.Context) *DeleteUserSubscriptionParams

NewDeleteUserSubscriptionParamsWithContext creates a new DeleteUserSubscriptionParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteUserSubscriptionParamsWithHTTPClient

func NewDeleteUserSubscriptionParamsWithHTTPClient(client *http.Client) *DeleteUserSubscriptionParams

NewDeleteUserSubscriptionParamsWithHTTPClient creates a new DeleteUserSubscriptionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteUserSubscriptionParamsWithTimeout

func NewDeleteUserSubscriptionParamsWithTimeout(timeout time.Duration) *DeleteUserSubscriptionParams

NewDeleteUserSubscriptionParamsWithTimeout creates a new DeleteUserSubscriptionParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteUserSubscriptionParams) SetAuthInfoWriter added in v0.17.0

func (o *DeleteUserSubscriptionParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the delete user subscription params

func (*DeleteUserSubscriptionParams) SetContext

func (o *DeleteUserSubscriptionParams) SetContext(ctx context.Context)

SetContext adds the context to the delete user subscription params

func (*DeleteUserSubscriptionParams) SetFlightId added in v0.63.0

func (o *DeleteUserSubscriptionParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*DeleteUserSubscriptionParams) SetHTTPClient

func (o *DeleteUserSubscriptionParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete user subscription params

func (*DeleteUserSubscriptionParams) SetHTTPClientTransport added in v0.19.0

func (o *DeleteUserSubscriptionParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the delete user subscription params

func (*DeleteUserSubscriptionParams) SetNamespace

func (o *DeleteUserSubscriptionParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the delete user subscription params

func (*DeleteUserSubscriptionParams) SetSubscriptionID

func (o *DeleteUserSubscriptionParams) SetSubscriptionID(subscriptionID string)

SetSubscriptionID adds the subscriptionId to the delete user subscription params

func (*DeleteUserSubscriptionParams) SetTimeout

func (o *DeleteUserSubscriptionParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete user subscription params

func (*DeleteUserSubscriptionParams) SetUserID

func (o *DeleteUserSubscriptionParams) SetUserID(userID string)

SetUserID adds the userId to the delete user subscription params

func (*DeleteUserSubscriptionParams) WithContext

WithContext adds the context to the delete user subscription params

func (*DeleteUserSubscriptionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete user subscription params

func (*DeleteUserSubscriptionParams) WithNamespace

WithNamespace adds the namespace to the delete user subscription params

func (*DeleteUserSubscriptionParams) WithSubscriptionID

func (o *DeleteUserSubscriptionParams) WithSubscriptionID(subscriptionID string) *DeleteUserSubscriptionParams

WithSubscriptionID adds the subscriptionID to the delete user subscription params

func (*DeleteUserSubscriptionParams) WithTimeout

WithTimeout adds the timeout to the delete user subscription params

func (*DeleteUserSubscriptionParams) WithUserID

WithUserID adds the userID to the delete user subscription params

func (*DeleteUserSubscriptionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteUserSubscriptionReader

type DeleteUserSubscriptionReader struct {
	// contains filtered or unexported fields
}

DeleteUserSubscriptionReader is a Reader for the DeleteUserSubscription structure.

func (*DeleteUserSubscriptionReader) ReadResponse

func (o *DeleteUserSubscriptionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetUserSubscriptionActivitiesOK

type GetUserSubscriptionActivitiesOK struct {
	Payload *platformclientmodels.SubscriptionActivityPagingSlicedResult
}

GetUserSubscriptionActivitiesOK handles this case with default header values.

successful operation

func NewGetUserSubscriptionActivitiesOK

func NewGetUserSubscriptionActivitiesOK() *GetUserSubscriptionActivitiesOK

NewGetUserSubscriptionActivitiesOK creates a GetUserSubscriptionActivitiesOK with default headers values

func (*GetUserSubscriptionActivitiesOK) Error

func (*GetUserSubscriptionActivitiesOK) GetPayload

func (*GetUserSubscriptionActivitiesOK) ToJSONString added in v0.25.0

func (o *GetUserSubscriptionActivitiesOK) ToJSONString() string

type GetUserSubscriptionActivitiesParams

type GetUserSubscriptionActivitiesParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*UserID*/
	UserID string
	/*ExcludeSystem*/
	ExcludeSystem *bool
	/*Limit*/
	Limit *int32
	/*Offset*/
	Offset *int32
	/*SubscriptionID*/
	SubscriptionID *string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

GetUserSubscriptionActivitiesParams contains all the parameters to send to the API endpoint for the get user subscription activities operation typically these are written to a http.Request

func NewGetUserSubscriptionActivitiesParams

func NewGetUserSubscriptionActivitiesParams() *GetUserSubscriptionActivitiesParams

NewGetUserSubscriptionActivitiesParams creates a new GetUserSubscriptionActivitiesParams object with the default values initialized.

func NewGetUserSubscriptionActivitiesParamsWithContext

func NewGetUserSubscriptionActivitiesParamsWithContext(ctx context.Context) *GetUserSubscriptionActivitiesParams

NewGetUserSubscriptionActivitiesParamsWithContext creates a new GetUserSubscriptionActivitiesParams object with the default values initialized, and the ability to set a context for a request

func NewGetUserSubscriptionActivitiesParamsWithHTTPClient

func NewGetUserSubscriptionActivitiesParamsWithHTTPClient(client *http.Client) *GetUserSubscriptionActivitiesParams

NewGetUserSubscriptionActivitiesParamsWithHTTPClient creates a new GetUserSubscriptionActivitiesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetUserSubscriptionActivitiesParamsWithTimeout

func NewGetUserSubscriptionActivitiesParamsWithTimeout(timeout time.Duration) *GetUserSubscriptionActivitiesParams

NewGetUserSubscriptionActivitiesParamsWithTimeout creates a new GetUserSubscriptionActivitiesParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetUserSubscriptionActivitiesParams) SetAuthInfoWriter added in v0.17.0

func (o *GetUserSubscriptionActivitiesParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the get user subscription activities params

func (*GetUserSubscriptionActivitiesParams) SetContext

SetContext adds the context to the get user subscription activities params

func (*GetUserSubscriptionActivitiesParams) SetExcludeSystem

func (o *GetUserSubscriptionActivitiesParams) SetExcludeSystem(excludeSystem *bool)

SetExcludeSystem adds the excludeSystem to the get user subscription activities params

func (*GetUserSubscriptionActivitiesParams) SetFlightId added in v0.63.0

func (o *GetUserSubscriptionActivitiesParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*GetUserSubscriptionActivitiesParams) SetHTTPClient

func (o *GetUserSubscriptionActivitiesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get user subscription activities params

func (*GetUserSubscriptionActivitiesParams) SetHTTPClientTransport added in v0.19.0

func (o *GetUserSubscriptionActivitiesParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the get user subscription activities params

func (*GetUserSubscriptionActivitiesParams) SetLimit

func (o *GetUserSubscriptionActivitiesParams) SetLimit(limit *int32)

SetLimit adds the limit to the get user subscription activities params

func (*GetUserSubscriptionActivitiesParams) SetNamespace

func (o *GetUserSubscriptionActivitiesParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get user subscription activities params

func (*GetUserSubscriptionActivitiesParams) SetOffset

func (o *GetUserSubscriptionActivitiesParams) SetOffset(offset *int32)

SetOffset adds the offset to the get user subscription activities params

func (*GetUserSubscriptionActivitiesParams) SetSubscriptionID

func (o *GetUserSubscriptionActivitiesParams) SetSubscriptionID(subscriptionID *string)

SetSubscriptionID adds the subscriptionId to the get user subscription activities params

func (*GetUserSubscriptionActivitiesParams) SetTimeout

func (o *GetUserSubscriptionActivitiesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get user subscription activities params

func (*GetUserSubscriptionActivitiesParams) SetUserID

func (o *GetUserSubscriptionActivitiesParams) SetUserID(userID string)

SetUserID adds the userId to the get user subscription activities params

func (*GetUserSubscriptionActivitiesParams) WithContext

WithContext adds the context to the get user subscription activities params

func (*GetUserSubscriptionActivitiesParams) WithExcludeSystem

WithExcludeSystem adds the excludeSystem to the get user subscription activities params

func (*GetUserSubscriptionActivitiesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get user subscription activities params

func (*GetUserSubscriptionActivitiesParams) WithLimit

WithLimit adds the limit to the get user subscription activities params

func (*GetUserSubscriptionActivitiesParams) WithNamespace

WithNamespace adds the namespace to the get user subscription activities params

func (*GetUserSubscriptionActivitiesParams) WithOffset

WithOffset adds the offset to the get user subscription activities params

func (*GetUserSubscriptionActivitiesParams) WithSubscriptionID

func (o *GetUserSubscriptionActivitiesParams) WithSubscriptionID(subscriptionID *string) *GetUserSubscriptionActivitiesParams

WithSubscriptionID adds the subscriptionID to the get user subscription activities params

func (*GetUserSubscriptionActivitiesParams) WithTimeout

WithTimeout adds the timeout to the get user subscription activities params

func (*GetUserSubscriptionActivitiesParams) WithUserID

WithUserID adds the userID to the get user subscription activities params

func (*GetUserSubscriptionActivitiesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetUserSubscriptionActivitiesReader

type GetUserSubscriptionActivitiesReader struct {
	// contains filtered or unexported fields
}

GetUserSubscriptionActivitiesReader is a Reader for the GetUserSubscriptionActivities structure.

func (*GetUserSubscriptionActivitiesReader) ReadResponse

func (o *GetUserSubscriptionActivitiesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetUserSubscriptionBillingHistoriesOK

type GetUserSubscriptionBillingHistoriesOK struct {
	Payload *platformclientmodels.BillingHistoryPagingSlicedResult
}

GetUserSubscriptionBillingHistoriesOK handles this case with default header values.

successful operation

func NewGetUserSubscriptionBillingHistoriesOK

func NewGetUserSubscriptionBillingHistoriesOK() *GetUserSubscriptionBillingHistoriesOK

NewGetUserSubscriptionBillingHistoriesOK creates a GetUserSubscriptionBillingHistoriesOK with default headers values

func (*GetUserSubscriptionBillingHistoriesOK) Error

func (*GetUserSubscriptionBillingHistoriesOK) GetPayload

func (*GetUserSubscriptionBillingHistoriesOK) ToJSONString added in v0.25.0

type GetUserSubscriptionBillingHistoriesParams

type GetUserSubscriptionBillingHistoriesParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*SubscriptionID*/
	SubscriptionID string
	/*UserID*/
	UserID string
	/*ExcludeFree*/
	ExcludeFree *bool
	/*Limit*/
	Limit *int32
	/*Offset*/
	Offset *int32

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

GetUserSubscriptionBillingHistoriesParams contains all the parameters to send to the API endpoint for the get user subscription billing histories operation typically these are written to a http.Request

func NewGetUserSubscriptionBillingHistoriesParams

func NewGetUserSubscriptionBillingHistoriesParams() *GetUserSubscriptionBillingHistoriesParams

NewGetUserSubscriptionBillingHistoriesParams creates a new GetUserSubscriptionBillingHistoriesParams object with the default values initialized.

func NewGetUserSubscriptionBillingHistoriesParamsWithContext

func NewGetUserSubscriptionBillingHistoriesParamsWithContext(ctx context.Context) *GetUserSubscriptionBillingHistoriesParams

NewGetUserSubscriptionBillingHistoriesParamsWithContext creates a new GetUserSubscriptionBillingHistoriesParams object with the default values initialized, and the ability to set a context for a request

func NewGetUserSubscriptionBillingHistoriesParamsWithHTTPClient

func NewGetUserSubscriptionBillingHistoriesParamsWithHTTPClient(client *http.Client) *GetUserSubscriptionBillingHistoriesParams

NewGetUserSubscriptionBillingHistoriesParamsWithHTTPClient creates a new GetUserSubscriptionBillingHistoriesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetUserSubscriptionBillingHistoriesParamsWithTimeout

func NewGetUserSubscriptionBillingHistoriesParamsWithTimeout(timeout time.Duration) *GetUserSubscriptionBillingHistoriesParams

NewGetUserSubscriptionBillingHistoriesParamsWithTimeout creates a new GetUserSubscriptionBillingHistoriesParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetUserSubscriptionBillingHistoriesParams) SetAuthInfoWriter added in v0.17.0

func (o *GetUserSubscriptionBillingHistoriesParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the get user subscription billing histories params

func (*GetUserSubscriptionBillingHistoriesParams) SetContext

SetContext adds the context to the get user subscription billing histories params

func (*GetUserSubscriptionBillingHistoriesParams) SetExcludeFree

func (o *GetUserSubscriptionBillingHistoriesParams) SetExcludeFree(excludeFree *bool)

SetExcludeFree adds the excludeFree to the get user subscription billing histories params

func (*GetUserSubscriptionBillingHistoriesParams) SetFlightId added in v0.63.0

func (o *GetUserSubscriptionBillingHistoriesParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*GetUserSubscriptionBillingHistoriesParams) SetHTTPClient

func (o *GetUserSubscriptionBillingHistoriesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get user subscription billing histories params

func (*GetUserSubscriptionBillingHistoriesParams) SetHTTPClientTransport added in v0.19.0

func (o *GetUserSubscriptionBillingHistoriesParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the get user subscription billing histories params

func (*GetUserSubscriptionBillingHistoriesParams) SetLimit

SetLimit adds the limit to the get user subscription billing histories params

func (*GetUserSubscriptionBillingHistoriesParams) SetNamespace

func (o *GetUserSubscriptionBillingHistoriesParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get user subscription billing histories params

func (*GetUserSubscriptionBillingHistoriesParams) SetOffset

func (o *GetUserSubscriptionBillingHistoriesParams) SetOffset(offset *int32)

SetOffset adds the offset to the get user subscription billing histories params

func (*GetUserSubscriptionBillingHistoriesParams) SetSubscriptionID

func (o *GetUserSubscriptionBillingHistoriesParams) SetSubscriptionID(subscriptionID string)

SetSubscriptionID adds the subscriptionId to the get user subscription billing histories params

func (*GetUserSubscriptionBillingHistoriesParams) SetTimeout

SetTimeout adds the timeout to the get user subscription billing histories params

func (*GetUserSubscriptionBillingHistoriesParams) SetUserID

SetUserID adds the userId to the get user subscription billing histories params

func (*GetUserSubscriptionBillingHistoriesParams) WithContext

WithContext adds the context to the get user subscription billing histories params

func (*GetUserSubscriptionBillingHistoriesParams) WithExcludeFree

WithExcludeFree adds the excludeFree to the get user subscription billing histories params

func (*GetUserSubscriptionBillingHistoriesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get user subscription billing histories params

func (*GetUserSubscriptionBillingHistoriesParams) WithLimit

WithLimit adds the limit to the get user subscription billing histories params

func (*GetUserSubscriptionBillingHistoriesParams) WithNamespace

WithNamespace adds the namespace to the get user subscription billing histories params

func (*GetUserSubscriptionBillingHistoriesParams) WithOffset

WithOffset adds the offset to the get user subscription billing histories params

func (*GetUserSubscriptionBillingHistoriesParams) WithSubscriptionID

WithSubscriptionID adds the subscriptionID to the get user subscription billing histories params

func (*GetUserSubscriptionBillingHistoriesParams) WithTimeout

WithTimeout adds the timeout to the get user subscription billing histories params

func (*GetUserSubscriptionBillingHistoriesParams) WithUserID

WithUserID adds the userID to the get user subscription billing histories params

func (*GetUserSubscriptionBillingHistoriesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetUserSubscriptionBillingHistoriesReader

type GetUserSubscriptionBillingHistoriesReader struct {
	// contains filtered or unexported fields
}

GetUserSubscriptionBillingHistoriesReader is a Reader for the GetUserSubscriptionBillingHistories structure.

func (*GetUserSubscriptionBillingHistoriesReader) ReadResponse

func (o *GetUserSubscriptionBillingHistoriesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetUserSubscriptionNotFound

type GetUserSubscriptionNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

GetUserSubscriptionNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>40141</td><td>Subscription [{subscriptionId}] does not exist</td></tr></table>

func NewGetUserSubscriptionNotFound

func NewGetUserSubscriptionNotFound() *GetUserSubscriptionNotFound

NewGetUserSubscriptionNotFound creates a GetUserSubscriptionNotFound with default headers values

func (*GetUserSubscriptionNotFound) Error

func (*GetUserSubscriptionNotFound) GetPayload

func (*GetUserSubscriptionNotFound) ToJSONString added in v0.25.0

func (o *GetUserSubscriptionNotFound) ToJSONString() string

type GetUserSubscriptionOK

type GetUserSubscriptionOK struct {
	Payload *platformclientmodels.SubscriptionInfo
}

GetUserSubscriptionOK handles this case with default header values.

successful operation

func NewGetUserSubscriptionOK

func NewGetUserSubscriptionOK() *GetUserSubscriptionOK

NewGetUserSubscriptionOK creates a GetUserSubscriptionOK with default headers values

func (*GetUserSubscriptionOK) Error

func (o *GetUserSubscriptionOK) Error() string

func (*GetUserSubscriptionOK) GetPayload

func (*GetUserSubscriptionOK) ToJSONString added in v0.25.0

func (o *GetUserSubscriptionOK) ToJSONString() string

type GetUserSubscriptionParams

type GetUserSubscriptionParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*SubscriptionID*/
	SubscriptionID string
	/*UserID*/
	UserID string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

GetUserSubscriptionParams contains all the parameters to send to the API endpoint for the get user subscription operation typically these are written to a http.Request

func NewGetUserSubscriptionParams

func NewGetUserSubscriptionParams() *GetUserSubscriptionParams

NewGetUserSubscriptionParams creates a new GetUserSubscriptionParams object with the default values initialized.

func NewGetUserSubscriptionParamsWithContext

func NewGetUserSubscriptionParamsWithContext(ctx context.Context) *GetUserSubscriptionParams

NewGetUserSubscriptionParamsWithContext creates a new GetUserSubscriptionParams object with the default values initialized, and the ability to set a context for a request

func NewGetUserSubscriptionParamsWithHTTPClient

func NewGetUserSubscriptionParamsWithHTTPClient(client *http.Client) *GetUserSubscriptionParams

NewGetUserSubscriptionParamsWithHTTPClient creates a new GetUserSubscriptionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetUserSubscriptionParamsWithTimeout

func NewGetUserSubscriptionParamsWithTimeout(timeout time.Duration) *GetUserSubscriptionParams

NewGetUserSubscriptionParamsWithTimeout creates a new GetUserSubscriptionParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetUserSubscriptionParams) SetAuthInfoWriter added in v0.17.0

func (o *GetUserSubscriptionParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the get user subscription params

func (*GetUserSubscriptionParams) SetContext

func (o *GetUserSubscriptionParams) SetContext(ctx context.Context)

SetContext adds the context to the get user subscription params

func (*GetUserSubscriptionParams) SetFlightId added in v0.63.0

func (o *GetUserSubscriptionParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*GetUserSubscriptionParams) SetHTTPClient

func (o *GetUserSubscriptionParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get user subscription params

func (*GetUserSubscriptionParams) SetHTTPClientTransport added in v0.19.0

func (o *GetUserSubscriptionParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the get user subscription params

func (*GetUserSubscriptionParams) SetNamespace

func (o *GetUserSubscriptionParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get user subscription params

func (*GetUserSubscriptionParams) SetSubscriptionID

func (o *GetUserSubscriptionParams) SetSubscriptionID(subscriptionID string)

SetSubscriptionID adds the subscriptionId to the get user subscription params

func (*GetUserSubscriptionParams) SetTimeout

func (o *GetUserSubscriptionParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get user subscription params

func (*GetUserSubscriptionParams) SetUserID

func (o *GetUserSubscriptionParams) SetUserID(userID string)

SetUserID adds the userId to the get user subscription params

func (*GetUserSubscriptionParams) WithContext

WithContext adds the context to the get user subscription params

func (*GetUserSubscriptionParams) WithHTTPClient

func (o *GetUserSubscriptionParams) WithHTTPClient(client *http.Client) *GetUserSubscriptionParams

WithHTTPClient adds the HTTPClient to the get user subscription params

func (*GetUserSubscriptionParams) WithNamespace

func (o *GetUserSubscriptionParams) WithNamespace(namespace string) *GetUserSubscriptionParams

WithNamespace adds the namespace to the get user subscription params

func (*GetUserSubscriptionParams) WithSubscriptionID

func (o *GetUserSubscriptionParams) WithSubscriptionID(subscriptionID string) *GetUserSubscriptionParams

WithSubscriptionID adds the subscriptionID to the get user subscription params

func (*GetUserSubscriptionParams) WithTimeout

WithTimeout adds the timeout to the get user subscription params

func (*GetUserSubscriptionParams) WithUserID

WithUserID adds the userID to the get user subscription params

func (*GetUserSubscriptionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetUserSubscriptionReader

type GetUserSubscriptionReader struct {
	// contains filtered or unexported fields
}

GetUserSubscriptionReader is a Reader for the GetUserSubscription structure.

func (*GetUserSubscriptionReader) ReadResponse

func (o *GetUserSubscriptionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GrantDaysToSubscriptionNotFound

type GrantDaysToSubscriptionNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

GrantDaysToSubscriptionNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>40141</td><td>Subscription [{subscriptionId}] does not exist</td></tr></table>

func NewGrantDaysToSubscriptionNotFound

func NewGrantDaysToSubscriptionNotFound() *GrantDaysToSubscriptionNotFound

NewGrantDaysToSubscriptionNotFound creates a GrantDaysToSubscriptionNotFound with default headers values

func (*GrantDaysToSubscriptionNotFound) Error

func (*GrantDaysToSubscriptionNotFound) GetPayload

func (*GrantDaysToSubscriptionNotFound) ToJSONString added in v0.25.0

func (o *GrantDaysToSubscriptionNotFound) ToJSONString() string

type GrantDaysToSubscriptionOK

type GrantDaysToSubscriptionOK struct {
	Payload *platformclientmodels.SubscriptionInfo
}

GrantDaysToSubscriptionOK handles this case with default header values.

successful operation

func NewGrantDaysToSubscriptionOK

func NewGrantDaysToSubscriptionOK() *GrantDaysToSubscriptionOK

NewGrantDaysToSubscriptionOK creates a GrantDaysToSubscriptionOK with default headers values

func (*GrantDaysToSubscriptionOK) Error

func (o *GrantDaysToSubscriptionOK) Error() string

func (*GrantDaysToSubscriptionOK) GetPayload

func (*GrantDaysToSubscriptionOK) ToJSONString added in v0.25.0

func (o *GrantDaysToSubscriptionOK) ToJSONString() string

type GrantDaysToSubscriptionParams

type GrantDaysToSubscriptionParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.GrantSubscriptionDaysRequest
	/*Namespace*/
	Namespace string
	/*SubscriptionID*/
	SubscriptionID string
	/*UserID*/
	UserID string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

GrantDaysToSubscriptionParams contains all the parameters to send to the API endpoint for the grant days to subscription operation typically these are written to a http.Request

func NewGrantDaysToSubscriptionParams

func NewGrantDaysToSubscriptionParams() *GrantDaysToSubscriptionParams

NewGrantDaysToSubscriptionParams creates a new GrantDaysToSubscriptionParams object with the default values initialized.

func NewGrantDaysToSubscriptionParamsWithContext

func NewGrantDaysToSubscriptionParamsWithContext(ctx context.Context) *GrantDaysToSubscriptionParams

NewGrantDaysToSubscriptionParamsWithContext creates a new GrantDaysToSubscriptionParams object with the default values initialized, and the ability to set a context for a request

func NewGrantDaysToSubscriptionParamsWithHTTPClient

func NewGrantDaysToSubscriptionParamsWithHTTPClient(client *http.Client) *GrantDaysToSubscriptionParams

NewGrantDaysToSubscriptionParamsWithHTTPClient creates a new GrantDaysToSubscriptionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGrantDaysToSubscriptionParamsWithTimeout

func NewGrantDaysToSubscriptionParamsWithTimeout(timeout time.Duration) *GrantDaysToSubscriptionParams

NewGrantDaysToSubscriptionParamsWithTimeout creates a new GrantDaysToSubscriptionParams object with the default values initialized, and the ability to set a timeout on a request

func (*GrantDaysToSubscriptionParams) SetAuthInfoWriter added in v0.17.0

func (o *GrantDaysToSubscriptionParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the grant days to subscription params

func (*GrantDaysToSubscriptionParams) SetBody

SetBody adds the body to the grant days to subscription params

func (*GrantDaysToSubscriptionParams) SetContext

func (o *GrantDaysToSubscriptionParams) SetContext(ctx context.Context)

SetContext adds the context to the grant days to subscription params

func (*GrantDaysToSubscriptionParams) SetFlightId added in v0.63.0

func (o *GrantDaysToSubscriptionParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*GrantDaysToSubscriptionParams) SetHTTPClient

func (o *GrantDaysToSubscriptionParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the grant days to subscription params

func (*GrantDaysToSubscriptionParams) SetHTTPClientTransport added in v0.19.0

func (o *GrantDaysToSubscriptionParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the grant days to subscription params

func (*GrantDaysToSubscriptionParams) SetNamespace

func (o *GrantDaysToSubscriptionParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the grant days to subscription params

func (*GrantDaysToSubscriptionParams) SetSubscriptionID

func (o *GrantDaysToSubscriptionParams) SetSubscriptionID(subscriptionID string)

SetSubscriptionID adds the subscriptionId to the grant days to subscription params

func (*GrantDaysToSubscriptionParams) SetTimeout

func (o *GrantDaysToSubscriptionParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the grant days to subscription params

func (*GrantDaysToSubscriptionParams) SetUserID

func (o *GrantDaysToSubscriptionParams) SetUserID(userID string)

SetUserID adds the userId to the grant days to subscription params

func (*GrantDaysToSubscriptionParams) WithBody

WithBody adds the body to the grant days to subscription params

func (*GrantDaysToSubscriptionParams) WithContext

WithContext adds the context to the grant days to subscription params

func (*GrantDaysToSubscriptionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the grant days to subscription params

func (*GrantDaysToSubscriptionParams) WithNamespace

WithNamespace adds the namespace to the grant days to subscription params

func (*GrantDaysToSubscriptionParams) WithSubscriptionID

func (o *GrantDaysToSubscriptionParams) WithSubscriptionID(subscriptionID string) *GrantDaysToSubscriptionParams

WithSubscriptionID adds the subscriptionID to the grant days to subscription params

func (*GrantDaysToSubscriptionParams) WithTimeout

WithTimeout adds the timeout to the grant days to subscription params

func (*GrantDaysToSubscriptionParams) WithUserID

WithUserID adds the userID to the grant days to subscription params

func (*GrantDaysToSubscriptionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GrantDaysToSubscriptionReader

type GrantDaysToSubscriptionReader struct {
	// contains filtered or unexported fields
}

GrantDaysToSubscriptionReader is a Reader for the GrantDaysToSubscription structure.

func (*GrantDaysToSubscriptionReader) ReadResponse

func (o *GrantDaysToSubscriptionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PlatformSubscribeSubscriptionBadRequest

type PlatformSubscribeSubscriptionBadRequest struct {
	Payload *platformclientmodels.ErrorEntity
}

PlatformSubscribeSubscriptionBadRequest handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>40121</td><td>Item type [{itemType}] does not support</td></tr></table>

func NewPlatformSubscribeSubscriptionBadRequest

func NewPlatformSubscribeSubscriptionBadRequest() *PlatformSubscribeSubscriptionBadRequest

NewPlatformSubscribeSubscriptionBadRequest creates a PlatformSubscribeSubscriptionBadRequest with default headers values

func (*PlatformSubscribeSubscriptionBadRequest) Error

func (*PlatformSubscribeSubscriptionBadRequest) GetPayload

func (*PlatformSubscribeSubscriptionBadRequest) ToJSONString added in v0.25.0

type PlatformSubscribeSubscriptionCreated

type PlatformSubscribeSubscriptionCreated struct {
}

PlatformSubscribeSubscriptionCreated handles this case with default header values.

platform subscribe request processed

func NewPlatformSubscribeSubscriptionCreated

func NewPlatformSubscribeSubscriptionCreated() *PlatformSubscribeSubscriptionCreated

NewPlatformSubscribeSubscriptionCreated creates a PlatformSubscribeSubscriptionCreated with default headers values

func (*PlatformSubscribeSubscriptionCreated) Error

type PlatformSubscribeSubscriptionNotFound

type PlatformSubscribeSubscriptionNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

PlatformSubscribeSubscriptionNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>30341</td><td>Item [{itemId}] does not exist in namespace [{namespace}]</td></tr><tr><td>20008</td><td>user [{userId}] does not exist in namespace [{namespace}]</td></tr></table>

func NewPlatformSubscribeSubscriptionNotFound

func NewPlatformSubscribeSubscriptionNotFound() *PlatformSubscribeSubscriptionNotFound

NewPlatformSubscribeSubscriptionNotFound creates a PlatformSubscribeSubscriptionNotFound with default headers values

func (*PlatformSubscribeSubscriptionNotFound) Error

func (*PlatformSubscribeSubscriptionNotFound) GetPayload

func (*PlatformSubscribeSubscriptionNotFound) ToJSONString added in v0.25.0

type PlatformSubscribeSubscriptionOK

type PlatformSubscribeSubscriptionOK struct {
	Payload *platformclientmodels.SubscriptionInfo
}

PlatformSubscribeSubscriptionOK handles this case with default header values.

successful operation

func NewPlatformSubscribeSubscriptionOK

func NewPlatformSubscribeSubscriptionOK() *PlatformSubscribeSubscriptionOK

NewPlatformSubscribeSubscriptionOK creates a PlatformSubscribeSubscriptionOK with default headers values

func (*PlatformSubscribeSubscriptionOK) Error

func (*PlatformSubscribeSubscriptionOK) GetPayload

func (*PlatformSubscribeSubscriptionOK) ToJSONString added in v0.25.0

func (o *PlatformSubscribeSubscriptionOK) ToJSONString() string

type PlatformSubscribeSubscriptionParams

type PlatformSubscribeSubscriptionParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.PlatformSubscribeRequest
	/*Namespace*/
	Namespace string
	/*UserID*/
	UserID string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

PlatformSubscribeSubscriptionParams contains all the parameters to send to the API endpoint for the platform subscribe subscription operation typically these are written to a http.Request

func NewPlatformSubscribeSubscriptionParams

func NewPlatformSubscribeSubscriptionParams() *PlatformSubscribeSubscriptionParams

NewPlatformSubscribeSubscriptionParams creates a new PlatformSubscribeSubscriptionParams object with the default values initialized.

func NewPlatformSubscribeSubscriptionParamsWithContext

func NewPlatformSubscribeSubscriptionParamsWithContext(ctx context.Context) *PlatformSubscribeSubscriptionParams

NewPlatformSubscribeSubscriptionParamsWithContext creates a new PlatformSubscribeSubscriptionParams object with the default values initialized, and the ability to set a context for a request

func NewPlatformSubscribeSubscriptionParamsWithHTTPClient

func NewPlatformSubscribeSubscriptionParamsWithHTTPClient(client *http.Client) *PlatformSubscribeSubscriptionParams

NewPlatformSubscribeSubscriptionParamsWithHTTPClient creates a new PlatformSubscribeSubscriptionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPlatformSubscribeSubscriptionParamsWithTimeout

func NewPlatformSubscribeSubscriptionParamsWithTimeout(timeout time.Duration) *PlatformSubscribeSubscriptionParams

NewPlatformSubscribeSubscriptionParamsWithTimeout creates a new PlatformSubscribeSubscriptionParams object with the default values initialized, and the ability to set a timeout on a request

func (*PlatformSubscribeSubscriptionParams) SetAuthInfoWriter added in v0.17.0

func (o *PlatformSubscribeSubscriptionParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the platform subscribe subscription params

func (*PlatformSubscribeSubscriptionParams) SetBody

SetBody adds the body to the platform subscribe subscription params

func (*PlatformSubscribeSubscriptionParams) SetContext

SetContext adds the context to the platform subscribe subscription params

func (*PlatformSubscribeSubscriptionParams) SetFlightId added in v0.63.0

func (o *PlatformSubscribeSubscriptionParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*PlatformSubscribeSubscriptionParams) SetHTTPClient

func (o *PlatformSubscribeSubscriptionParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the platform subscribe subscription params

func (*PlatformSubscribeSubscriptionParams) SetHTTPClientTransport added in v0.19.0

func (o *PlatformSubscribeSubscriptionParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the platform subscribe subscription params

func (*PlatformSubscribeSubscriptionParams) SetNamespace

func (o *PlatformSubscribeSubscriptionParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the platform subscribe subscription params

func (*PlatformSubscribeSubscriptionParams) SetTimeout

func (o *PlatformSubscribeSubscriptionParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the platform subscribe subscription params

func (*PlatformSubscribeSubscriptionParams) SetUserID

func (o *PlatformSubscribeSubscriptionParams) SetUserID(userID string)

SetUserID adds the userId to the platform subscribe subscription params

func (*PlatformSubscribeSubscriptionParams) WithBody

WithBody adds the body to the platform subscribe subscription params

func (*PlatformSubscribeSubscriptionParams) WithContext

WithContext adds the context to the platform subscribe subscription params

func (*PlatformSubscribeSubscriptionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the platform subscribe subscription params

func (*PlatformSubscribeSubscriptionParams) WithNamespace

WithNamespace adds the namespace to the platform subscribe subscription params

func (*PlatformSubscribeSubscriptionParams) WithTimeout

WithTimeout adds the timeout to the platform subscribe subscription params

func (*PlatformSubscribeSubscriptionParams) WithUserID

WithUserID adds the userID to the platform subscribe subscription params

func (*PlatformSubscribeSubscriptionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PlatformSubscribeSubscriptionReader

type PlatformSubscribeSubscriptionReader struct {
	// contains filtered or unexported fields
}

PlatformSubscribeSubscriptionReader is a Reader for the PlatformSubscribeSubscription structure.

func (*PlatformSubscribeSubscriptionReader) ReadResponse

func (o *PlatformSubscribeSubscriptionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PlatformSubscribeSubscriptionUnprocessableEntity

type PlatformSubscribeSubscriptionUnprocessableEntity struct {
	Payload *platformclientmodels.ValidationErrorEntity
}

PlatformSubscribeSubscriptionUnprocessableEntity handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr></table>

func NewPlatformSubscribeSubscriptionUnprocessableEntity

func NewPlatformSubscribeSubscriptionUnprocessableEntity() *PlatformSubscribeSubscriptionUnprocessableEntity

NewPlatformSubscribeSubscriptionUnprocessableEntity creates a PlatformSubscribeSubscriptionUnprocessableEntity with default headers values

func (*PlatformSubscribeSubscriptionUnprocessableEntity) Error

func (*PlatformSubscribeSubscriptionUnprocessableEntity) GetPayload

func (*PlatformSubscribeSubscriptionUnprocessableEntity) ToJSONString added in v0.25.0

type ProcessUserSubscriptionNotificationBadRequest

type ProcessUserSubscriptionNotificationBadRequest struct {
}

ProcessUserSubscriptionNotificationBadRequest handles this case with default header values.

process failed

func NewProcessUserSubscriptionNotificationBadRequest

func NewProcessUserSubscriptionNotificationBadRequest() *ProcessUserSubscriptionNotificationBadRequest

NewProcessUserSubscriptionNotificationBadRequest creates a ProcessUserSubscriptionNotificationBadRequest with default headers values

func (*ProcessUserSubscriptionNotificationBadRequest) Error

type ProcessUserSubscriptionNotificationNoContent

type ProcessUserSubscriptionNotificationNoContent struct {
}

ProcessUserSubscriptionNotificationNoContent handles this case with default header values.

process successfully

func NewProcessUserSubscriptionNotificationNoContent

func NewProcessUserSubscriptionNotificationNoContent() *ProcessUserSubscriptionNotificationNoContent

NewProcessUserSubscriptionNotificationNoContent creates a ProcessUserSubscriptionNotificationNoContent with default headers values

func (*ProcessUserSubscriptionNotificationNoContent) Error

type ProcessUserSubscriptionNotificationParams

type ProcessUserSubscriptionNotificationParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.TradeNotification
	/*Namespace*/
	Namespace string
	/*SubscriptionID*/
	SubscriptionID string
	/*UserID*/
	UserID string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

ProcessUserSubscriptionNotificationParams contains all the parameters to send to the API endpoint for the process user subscription notification operation typically these are written to a http.Request

func NewProcessUserSubscriptionNotificationParams

func NewProcessUserSubscriptionNotificationParams() *ProcessUserSubscriptionNotificationParams

NewProcessUserSubscriptionNotificationParams creates a new ProcessUserSubscriptionNotificationParams object with the default values initialized.

func NewProcessUserSubscriptionNotificationParamsWithContext

func NewProcessUserSubscriptionNotificationParamsWithContext(ctx context.Context) *ProcessUserSubscriptionNotificationParams

NewProcessUserSubscriptionNotificationParamsWithContext creates a new ProcessUserSubscriptionNotificationParams object with the default values initialized, and the ability to set a context for a request

func NewProcessUserSubscriptionNotificationParamsWithHTTPClient

func NewProcessUserSubscriptionNotificationParamsWithHTTPClient(client *http.Client) *ProcessUserSubscriptionNotificationParams

NewProcessUserSubscriptionNotificationParamsWithHTTPClient creates a new ProcessUserSubscriptionNotificationParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewProcessUserSubscriptionNotificationParamsWithTimeout

func NewProcessUserSubscriptionNotificationParamsWithTimeout(timeout time.Duration) *ProcessUserSubscriptionNotificationParams

NewProcessUserSubscriptionNotificationParamsWithTimeout creates a new ProcessUserSubscriptionNotificationParams object with the default values initialized, and the ability to set a timeout on a request

func (*ProcessUserSubscriptionNotificationParams) SetAuthInfoWriter added in v0.17.0

func (o *ProcessUserSubscriptionNotificationParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the process user subscription notification params

func (*ProcessUserSubscriptionNotificationParams) SetBody

SetBody adds the body to the process user subscription notification params

func (*ProcessUserSubscriptionNotificationParams) SetContext

SetContext adds the context to the process user subscription notification params

func (*ProcessUserSubscriptionNotificationParams) SetFlightId added in v0.63.0

func (o *ProcessUserSubscriptionNotificationParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*ProcessUserSubscriptionNotificationParams) SetHTTPClient

func (o *ProcessUserSubscriptionNotificationParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the process user subscription notification params

func (*ProcessUserSubscriptionNotificationParams) SetHTTPClientTransport added in v0.19.0

func (o *ProcessUserSubscriptionNotificationParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the process user subscription notification params

func (*ProcessUserSubscriptionNotificationParams) SetNamespace

func (o *ProcessUserSubscriptionNotificationParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the process user subscription notification params

func (*ProcessUserSubscriptionNotificationParams) SetSubscriptionID

func (o *ProcessUserSubscriptionNotificationParams) SetSubscriptionID(subscriptionID string)

SetSubscriptionID adds the subscriptionId to the process user subscription notification params

func (*ProcessUserSubscriptionNotificationParams) SetTimeout

SetTimeout adds the timeout to the process user subscription notification params

func (*ProcessUserSubscriptionNotificationParams) SetUserID

SetUserID adds the userId to the process user subscription notification params

func (*ProcessUserSubscriptionNotificationParams) WithBody

WithBody adds the body to the process user subscription notification params

func (*ProcessUserSubscriptionNotificationParams) WithContext

WithContext adds the context to the process user subscription notification params

func (*ProcessUserSubscriptionNotificationParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the process user subscription notification params

func (*ProcessUserSubscriptionNotificationParams) WithNamespace

WithNamespace adds the namespace to the process user subscription notification params

func (*ProcessUserSubscriptionNotificationParams) WithSubscriptionID

WithSubscriptionID adds the subscriptionID to the process user subscription notification params

func (*ProcessUserSubscriptionNotificationParams) WithTimeout

WithTimeout adds the timeout to the process user subscription notification params

func (*ProcessUserSubscriptionNotificationParams) WithUserID

WithUserID adds the userID to the process user subscription notification params

func (*ProcessUserSubscriptionNotificationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ProcessUserSubscriptionNotificationReader

type ProcessUserSubscriptionNotificationReader struct {
	// contains filtered or unexported fields
}

ProcessUserSubscriptionNotificationReader is a Reader for the ProcessUserSubscriptionNotification structure.

func (*ProcessUserSubscriptionNotificationReader) ReadResponse

func (o *ProcessUserSubscriptionNotificationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PublicCancelSubscriptionConflict

type PublicCancelSubscriptionConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

PublicCancelSubscriptionConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>40171</td><td>Subscription [{subscriptionId}] is not active</td></tr><tr><td>40172</td><td>Subscription [{subscriptionId}] is charging, waiting for payment notification</td></tr></table>

func NewPublicCancelSubscriptionConflict

func NewPublicCancelSubscriptionConflict() *PublicCancelSubscriptionConflict

NewPublicCancelSubscriptionConflict creates a PublicCancelSubscriptionConflict with default headers values

func (*PublicCancelSubscriptionConflict) Error

func (*PublicCancelSubscriptionConflict) GetPayload

func (*PublicCancelSubscriptionConflict) ToJSONString added in v0.25.0

func (o *PublicCancelSubscriptionConflict) ToJSONString() string

type PublicCancelSubscriptionNotFound

type PublicCancelSubscriptionNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

PublicCancelSubscriptionNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>40141</td><td>Subscription [{subscriptionId}] does not exist</td></tr></table>

func NewPublicCancelSubscriptionNotFound

func NewPublicCancelSubscriptionNotFound() *PublicCancelSubscriptionNotFound

NewPublicCancelSubscriptionNotFound creates a PublicCancelSubscriptionNotFound with default headers values

func (*PublicCancelSubscriptionNotFound) Error

func (*PublicCancelSubscriptionNotFound) GetPayload

func (*PublicCancelSubscriptionNotFound) ToJSONString added in v0.25.0

func (o *PublicCancelSubscriptionNotFound) ToJSONString() string

type PublicCancelSubscriptionOK

type PublicCancelSubscriptionOK struct {
	Payload *platformclientmodels.SubscriptionInfo
}

PublicCancelSubscriptionOK handles this case with default header values.

successful operation

func NewPublicCancelSubscriptionOK

func NewPublicCancelSubscriptionOK() *PublicCancelSubscriptionOK

NewPublicCancelSubscriptionOK creates a PublicCancelSubscriptionOK with default headers values

func (*PublicCancelSubscriptionOK) Error

func (*PublicCancelSubscriptionOK) GetPayload

func (*PublicCancelSubscriptionOK) ToJSONString added in v0.25.0

func (o *PublicCancelSubscriptionOK) ToJSONString() string

type PublicCancelSubscriptionParams

type PublicCancelSubscriptionParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.CancelRequest
	/*Namespace*/
	Namespace string
	/*SubscriptionID*/
	SubscriptionID string
	/*UserID*/
	UserID string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

PublicCancelSubscriptionParams contains all the parameters to send to the API endpoint for the public cancel subscription operation typically these are written to a http.Request

func NewPublicCancelSubscriptionParams

func NewPublicCancelSubscriptionParams() *PublicCancelSubscriptionParams

NewPublicCancelSubscriptionParams creates a new PublicCancelSubscriptionParams object with the default values initialized.

func NewPublicCancelSubscriptionParamsWithContext

func NewPublicCancelSubscriptionParamsWithContext(ctx context.Context) *PublicCancelSubscriptionParams

NewPublicCancelSubscriptionParamsWithContext creates a new PublicCancelSubscriptionParams object with the default values initialized, and the ability to set a context for a request

func NewPublicCancelSubscriptionParamsWithHTTPClient

func NewPublicCancelSubscriptionParamsWithHTTPClient(client *http.Client) *PublicCancelSubscriptionParams

NewPublicCancelSubscriptionParamsWithHTTPClient creates a new PublicCancelSubscriptionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPublicCancelSubscriptionParamsWithTimeout

func NewPublicCancelSubscriptionParamsWithTimeout(timeout time.Duration) *PublicCancelSubscriptionParams

NewPublicCancelSubscriptionParamsWithTimeout creates a new PublicCancelSubscriptionParams object with the default values initialized, and the ability to set a timeout on a request

func (*PublicCancelSubscriptionParams) SetAuthInfoWriter added in v0.17.0

func (o *PublicCancelSubscriptionParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the public cancel subscription params

func (*PublicCancelSubscriptionParams) SetBody

SetBody adds the body to the public cancel subscription params

func (*PublicCancelSubscriptionParams) SetContext

func (o *PublicCancelSubscriptionParams) SetContext(ctx context.Context)

SetContext adds the context to the public cancel subscription params

func (*PublicCancelSubscriptionParams) SetFlightId added in v0.63.0

func (o *PublicCancelSubscriptionParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*PublicCancelSubscriptionParams) SetHTTPClient

func (o *PublicCancelSubscriptionParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the public cancel subscription params

func (*PublicCancelSubscriptionParams) SetHTTPClientTransport added in v0.19.0

func (o *PublicCancelSubscriptionParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the public cancel subscription params

func (*PublicCancelSubscriptionParams) SetNamespace

func (o *PublicCancelSubscriptionParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public cancel subscription params

func (*PublicCancelSubscriptionParams) SetSubscriptionID

func (o *PublicCancelSubscriptionParams) SetSubscriptionID(subscriptionID string)

SetSubscriptionID adds the subscriptionId to the public cancel subscription params

func (*PublicCancelSubscriptionParams) SetTimeout

func (o *PublicCancelSubscriptionParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the public cancel subscription params

func (*PublicCancelSubscriptionParams) SetUserID

func (o *PublicCancelSubscriptionParams) SetUserID(userID string)

SetUserID adds the userId to the public cancel subscription params

func (*PublicCancelSubscriptionParams) WithBody

WithBody adds the body to the public cancel subscription params

func (*PublicCancelSubscriptionParams) WithContext

WithContext adds the context to the public cancel subscription params

func (*PublicCancelSubscriptionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the public cancel subscription params

func (*PublicCancelSubscriptionParams) WithNamespace

WithNamespace adds the namespace to the public cancel subscription params

func (*PublicCancelSubscriptionParams) WithSubscriptionID

func (o *PublicCancelSubscriptionParams) WithSubscriptionID(subscriptionID string) *PublicCancelSubscriptionParams

WithSubscriptionID adds the subscriptionID to the public cancel subscription params

func (*PublicCancelSubscriptionParams) WithTimeout

WithTimeout adds the timeout to the public cancel subscription params

func (*PublicCancelSubscriptionParams) WithUserID

WithUserID adds the userID to the public cancel subscription params

func (*PublicCancelSubscriptionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicCancelSubscriptionReader

type PublicCancelSubscriptionReader struct {
	// contains filtered or unexported fields
}

PublicCancelSubscriptionReader is a Reader for the PublicCancelSubscription structure.

func (*PublicCancelSubscriptionReader) ReadResponse

func (o *PublicCancelSubscriptionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PublicChangeSubscriptionBillingAccountBadRequest

type PublicChangeSubscriptionBillingAccountBadRequest struct {
	Payload *platformclientmodels.ErrorEntity
}

PublicChangeSubscriptionBillingAccountBadRequest handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>40125</td><td>Subscription [{subscriptionId}] has no real currency billing account</td></tr></table>

func NewPublicChangeSubscriptionBillingAccountBadRequest

func NewPublicChangeSubscriptionBillingAccountBadRequest() *PublicChangeSubscriptionBillingAccountBadRequest

NewPublicChangeSubscriptionBillingAccountBadRequest creates a PublicChangeSubscriptionBillingAccountBadRequest with default headers values

func (*PublicChangeSubscriptionBillingAccountBadRequest) Error

func (*PublicChangeSubscriptionBillingAccountBadRequest) GetPayload

func (*PublicChangeSubscriptionBillingAccountBadRequest) ToJSONString added in v0.25.0

type PublicChangeSubscriptionBillingAccountConflict

type PublicChangeSubscriptionBillingAccountConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

PublicChangeSubscriptionBillingAccountConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>40171</td><td>Subscription [{subscriptionId}] is not active</td></tr><tr><td>40172</td><td>Subscription [{subscriptionId}] is charging, waiting for payment notification</td></tr></table>

func NewPublicChangeSubscriptionBillingAccountConflict

func NewPublicChangeSubscriptionBillingAccountConflict() *PublicChangeSubscriptionBillingAccountConflict

NewPublicChangeSubscriptionBillingAccountConflict creates a PublicChangeSubscriptionBillingAccountConflict with default headers values

func (*PublicChangeSubscriptionBillingAccountConflict) Error

func (*PublicChangeSubscriptionBillingAccountConflict) GetPayload

func (*PublicChangeSubscriptionBillingAccountConflict) ToJSONString added in v0.25.0

type PublicChangeSubscriptionBillingAccountNotFound

type PublicChangeSubscriptionBillingAccountNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

PublicChangeSubscriptionBillingAccountNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>40141</td><td>Subscription [{subscriptionId}] does not exist</td></tr></table>

func NewPublicChangeSubscriptionBillingAccountNotFound

func NewPublicChangeSubscriptionBillingAccountNotFound() *PublicChangeSubscriptionBillingAccountNotFound

NewPublicChangeSubscriptionBillingAccountNotFound creates a PublicChangeSubscriptionBillingAccountNotFound with default headers values

func (*PublicChangeSubscriptionBillingAccountNotFound) Error

func (*PublicChangeSubscriptionBillingAccountNotFound) GetPayload

func (*PublicChangeSubscriptionBillingAccountNotFound) ToJSONString added in v0.25.0

type PublicChangeSubscriptionBillingAccountOK

type PublicChangeSubscriptionBillingAccountOK struct {
	Payload *platformclientmodels.SubscriptionInfo
}

PublicChangeSubscriptionBillingAccountOK handles this case with default header values.

successful operation

func NewPublicChangeSubscriptionBillingAccountOK

func NewPublicChangeSubscriptionBillingAccountOK() *PublicChangeSubscriptionBillingAccountOK

NewPublicChangeSubscriptionBillingAccountOK creates a PublicChangeSubscriptionBillingAccountOK with default headers values

func (*PublicChangeSubscriptionBillingAccountOK) Error

func (*PublicChangeSubscriptionBillingAccountOK) GetPayload

func (*PublicChangeSubscriptionBillingAccountOK) ToJSONString added in v0.25.0

type PublicChangeSubscriptionBillingAccountParams

type PublicChangeSubscriptionBillingAccountParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*SubscriptionID*/
	SubscriptionID string
	/*UserID*/
	UserID string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

PublicChangeSubscriptionBillingAccountParams contains all the parameters to send to the API endpoint for the public change subscription billing account operation typically these are written to a http.Request

func NewPublicChangeSubscriptionBillingAccountParams

func NewPublicChangeSubscriptionBillingAccountParams() *PublicChangeSubscriptionBillingAccountParams

NewPublicChangeSubscriptionBillingAccountParams creates a new PublicChangeSubscriptionBillingAccountParams object with the default values initialized.

func NewPublicChangeSubscriptionBillingAccountParamsWithContext

func NewPublicChangeSubscriptionBillingAccountParamsWithContext(ctx context.Context) *PublicChangeSubscriptionBillingAccountParams

NewPublicChangeSubscriptionBillingAccountParamsWithContext creates a new PublicChangeSubscriptionBillingAccountParams object with the default values initialized, and the ability to set a context for a request

func NewPublicChangeSubscriptionBillingAccountParamsWithHTTPClient

func NewPublicChangeSubscriptionBillingAccountParamsWithHTTPClient(client *http.Client) *PublicChangeSubscriptionBillingAccountParams

NewPublicChangeSubscriptionBillingAccountParamsWithHTTPClient creates a new PublicChangeSubscriptionBillingAccountParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPublicChangeSubscriptionBillingAccountParamsWithTimeout

func NewPublicChangeSubscriptionBillingAccountParamsWithTimeout(timeout time.Duration) *PublicChangeSubscriptionBillingAccountParams

NewPublicChangeSubscriptionBillingAccountParamsWithTimeout creates a new PublicChangeSubscriptionBillingAccountParams object with the default values initialized, and the ability to set a timeout on a request

func (*PublicChangeSubscriptionBillingAccountParams) SetAuthInfoWriter added in v0.17.0

func (o *PublicChangeSubscriptionBillingAccountParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the public change subscription billing account params

func (*PublicChangeSubscriptionBillingAccountParams) SetContext

SetContext adds the context to the public change subscription billing account params

func (*PublicChangeSubscriptionBillingAccountParams) SetFlightId added in v0.63.0

func (o *PublicChangeSubscriptionBillingAccountParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*PublicChangeSubscriptionBillingAccountParams) SetHTTPClient

func (o *PublicChangeSubscriptionBillingAccountParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the public change subscription billing account params

func (*PublicChangeSubscriptionBillingAccountParams) SetHTTPClientTransport added in v0.19.0

func (o *PublicChangeSubscriptionBillingAccountParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the public change subscription billing account params

func (*PublicChangeSubscriptionBillingAccountParams) SetNamespace

func (o *PublicChangeSubscriptionBillingAccountParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public change subscription billing account params

func (*PublicChangeSubscriptionBillingAccountParams) SetSubscriptionID

func (o *PublicChangeSubscriptionBillingAccountParams) SetSubscriptionID(subscriptionID string)

SetSubscriptionID adds the subscriptionId to the public change subscription billing account params

func (*PublicChangeSubscriptionBillingAccountParams) SetTimeout

SetTimeout adds the timeout to the public change subscription billing account params

func (*PublicChangeSubscriptionBillingAccountParams) SetUserID

SetUserID adds the userId to the public change subscription billing account params

func (*PublicChangeSubscriptionBillingAccountParams) WithContext

WithContext adds the context to the public change subscription billing account params

func (*PublicChangeSubscriptionBillingAccountParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the public change subscription billing account params

func (*PublicChangeSubscriptionBillingAccountParams) WithNamespace

WithNamespace adds the namespace to the public change subscription billing account params

func (*PublicChangeSubscriptionBillingAccountParams) WithSubscriptionID

WithSubscriptionID adds the subscriptionID to the public change subscription billing account params

func (*PublicChangeSubscriptionBillingAccountParams) WithTimeout

WithTimeout adds the timeout to the public change subscription billing account params

func (*PublicChangeSubscriptionBillingAccountParams) WithUserID

WithUserID adds the userID to the public change subscription billing account params

func (*PublicChangeSubscriptionBillingAccountParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicChangeSubscriptionBillingAccountReader

type PublicChangeSubscriptionBillingAccountReader struct {
	// contains filtered or unexported fields
}

PublicChangeSubscriptionBillingAccountReader is a Reader for the PublicChangeSubscriptionBillingAccount structure.

func (*PublicChangeSubscriptionBillingAccountReader) ReadResponse

func (o *PublicChangeSubscriptionBillingAccountReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PublicCheckUserSubscriptionSubscribableByItemIDOK

type PublicCheckUserSubscriptionSubscribableByItemIDOK struct {
	Payload *platformclientmodels.Subscribable
}

PublicCheckUserSubscriptionSubscribableByItemIDOK handles this case with default header values.

successful operation

func NewPublicCheckUserSubscriptionSubscribableByItemIDOK

func NewPublicCheckUserSubscriptionSubscribableByItemIDOK() *PublicCheckUserSubscriptionSubscribableByItemIDOK

NewPublicCheckUserSubscriptionSubscribableByItemIDOK creates a PublicCheckUserSubscriptionSubscribableByItemIDOK with default headers values

func (*PublicCheckUserSubscriptionSubscribableByItemIDOK) Error

func (*PublicCheckUserSubscriptionSubscribableByItemIDOK) GetPayload

func (*PublicCheckUserSubscriptionSubscribableByItemIDOK) ToJSONString added in v0.25.0

type PublicCheckUserSubscriptionSubscribableByItemIDParams

type PublicCheckUserSubscriptionSubscribableByItemIDParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*UserID*/
	UserID string
	/*ItemID*/
	ItemID string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

PublicCheckUserSubscriptionSubscribableByItemIDParams contains all the parameters to send to the API endpoint for the public check user subscription subscribable by item id operation typically these are written to a http.Request

func NewPublicCheckUserSubscriptionSubscribableByItemIDParams

func NewPublicCheckUserSubscriptionSubscribableByItemIDParams() *PublicCheckUserSubscriptionSubscribableByItemIDParams

NewPublicCheckUserSubscriptionSubscribableByItemIDParams creates a new PublicCheckUserSubscriptionSubscribableByItemIDParams object with the default values initialized.

func NewPublicCheckUserSubscriptionSubscribableByItemIDParamsWithContext

func NewPublicCheckUserSubscriptionSubscribableByItemIDParamsWithContext(ctx context.Context) *PublicCheckUserSubscriptionSubscribableByItemIDParams

NewPublicCheckUserSubscriptionSubscribableByItemIDParamsWithContext creates a new PublicCheckUserSubscriptionSubscribableByItemIDParams object with the default values initialized, and the ability to set a context for a request

func NewPublicCheckUserSubscriptionSubscribableByItemIDParamsWithHTTPClient

func NewPublicCheckUserSubscriptionSubscribableByItemIDParamsWithHTTPClient(client *http.Client) *PublicCheckUserSubscriptionSubscribableByItemIDParams

NewPublicCheckUserSubscriptionSubscribableByItemIDParamsWithHTTPClient creates a new PublicCheckUserSubscriptionSubscribableByItemIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPublicCheckUserSubscriptionSubscribableByItemIDParamsWithTimeout

func NewPublicCheckUserSubscriptionSubscribableByItemIDParamsWithTimeout(timeout time.Duration) *PublicCheckUserSubscriptionSubscribableByItemIDParams

NewPublicCheckUserSubscriptionSubscribableByItemIDParamsWithTimeout creates a new PublicCheckUserSubscriptionSubscribableByItemIDParams object with the default values initialized, and the ability to set a timeout on a request

func (*PublicCheckUserSubscriptionSubscribableByItemIDParams) SetAuthInfoWriter added in v0.17.0

SetAuthInfoWriter adds the authInfoWriter to the public check user subscription subscribable by item id params

func (*PublicCheckUserSubscriptionSubscribableByItemIDParams) SetContext

SetContext adds the context to the public check user subscription subscribable by item id params

func (*PublicCheckUserSubscriptionSubscribableByItemIDParams) SetFlightId added in v0.63.0

SetFlightId adds the flightId as the header value for this specific endpoint

func (*PublicCheckUserSubscriptionSubscribableByItemIDParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the public check user subscription subscribable by item id params

func (*PublicCheckUserSubscriptionSubscribableByItemIDParams) SetHTTPClientTransport added in v0.19.0

func (o *PublicCheckUserSubscriptionSubscribableByItemIDParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the public check user subscription subscribable by item id params

func (*PublicCheckUserSubscriptionSubscribableByItemIDParams) SetItemID

SetItemID adds the itemId to the public check user subscription subscribable by item id params

func (*PublicCheckUserSubscriptionSubscribableByItemIDParams) SetNamespace

SetNamespace adds the namespace to the public check user subscription subscribable by item id params

func (*PublicCheckUserSubscriptionSubscribableByItemIDParams) SetTimeout

SetTimeout adds the timeout to the public check user subscription subscribable by item id params

func (*PublicCheckUserSubscriptionSubscribableByItemIDParams) SetUserID

SetUserID adds the userId to the public check user subscription subscribable by item id params

func (*PublicCheckUserSubscriptionSubscribableByItemIDParams) WithContext

WithContext adds the context to the public check user subscription subscribable by item id params

func (*PublicCheckUserSubscriptionSubscribableByItemIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the public check user subscription subscribable by item id params

func (*PublicCheckUserSubscriptionSubscribableByItemIDParams) WithItemID

WithItemID adds the itemID to the public check user subscription subscribable by item id params

func (*PublicCheckUserSubscriptionSubscribableByItemIDParams) WithNamespace

WithNamespace adds the namespace to the public check user subscription subscribable by item id params

func (*PublicCheckUserSubscriptionSubscribableByItemIDParams) WithTimeout

WithTimeout adds the timeout to the public check user subscription subscribable by item id params

func (*PublicCheckUserSubscriptionSubscribableByItemIDParams) WithUserID

WithUserID adds the userID to the public check user subscription subscribable by item id params

func (*PublicCheckUserSubscriptionSubscribableByItemIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicCheckUserSubscriptionSubscribableByItemIDReader

type PublicCheckUserSubscriptionSubscribableByItemIDReader struct {
	// contains filtered or unexported fields
}

PublicCheckUserSubscriptionSubscribableByItemIDReader is a Reader for the PublicCheckUserSubscriptionSubscribableByItemID structure.

func (*PublicCheckUserSubscriptionSubscribableByItemIDReader) ReadResponse

func (o *PublicCheckUserSubscriptionSubscribableByItemIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PublicGetUserSubscriptionBillingHistoriesOK

type PublicGetUserSubscriptionBillingHistoriesOK struct {
	Payload *platformclientmodels.BillingHistoryPagingSlicedResult
}

PublicGetUserSubscriptionBillingHistoriesOK handles this case with default header values.

successful operation

func NewPublicGetUserSubscriptionBillingHistoriesOK

func NewPublicGetUserSubscriptionBillingHistoriesOK() *PublicGetUserSubscriptionBillingHistoriesOK

NewPublicGetUserSubscriptionBillingHistoriesOK creates a PublicGetUserSubscriptionBillingHistoriesOK with default headers values

func (*PublicGetUserSubscriptionBillingHistoriesOK) Error

func (*PublicGetUserSubscriptionBillingHistoriesOK) GetPayload

func (*PublicGetUserSubscriptionBillingHistoriesOK) ToJSONString added in v0.25.0

type PublicGetUserSubscriptionBillingHistoriesParams

type PublicGetUserSubscriptionBillingHistoriesParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*SubscriptionID*/
	SubscriptionID string
	/*UserID*/
	UserID string
	/*ExcludeFree*/
	ExcludeFree *bool
	/*Limit*/
	Limit *int32
	/*Offset*/
	Offset *int32

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

PublicGetUserSubscriptionBillingHistoriesParams contains all the parameters to send to the API endpoint for the public get user subscription billing histories operation typically these are written to a http.Request

func NewPublicGetUserSubscriptionBillingHistoriesParams

func NewPublicGetUserSubscriptionBillingHistoriesParams() *PublicGetUserSubscriptionBillingHistoriesParams

NewPublicGetUserSubscriptionBillingHistoriesParams creates a new PublicGetUserSubscriptionBillingHistoriesParams object with the default values initialized.

func NewPublicGetUserSubscriptionBillingHistoriesParamsWithContext

func NewPublicGetUserSubscriptionBillingHistoriesParamsWithContext(ctx context.Context) *PublicGetUserSubscriptionBillingHistoriesParams

NewPublicGetUserSubscriptionBillingHistoriesParamsWithContext creates a new PublicGetUserSubscriptionBillingHistoriesParams object with the default values initialized, and the ability to set a context for a request

func NewPublicGetUserSubscriptionBillingHistoriesParamsWithHTTPClient

func NewPublicGetUserSubscriptionBillingHistoriesParamsWithHTTPClient(client *http.Client) *PublicGetUserSubscriptionBillingHistoriesParams

NewPublicGetUserSubscriptionBillingHistoriesParamsWithHTTPClient creates a new PublicGetUserSubscriptionBillingHistoriesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPublicGetUserSubscriptionBillingHistoriesParamsWithTimeout

func NewPublicGetUserSubscriptionBillingHistoriesParamsWithTimeout(timeout time.Duration) *PublicGetUserSubscriptionBillingHistoriesParams

NewPublicGetUserSubscriptionBillingHistoriesParamsWithTimeout creates a new PublicGetUserSubscriptionBillingHistoriesParams object with the default values initialized, and the ability to set a timeout on a request

func (*PublicGetUserSubscriptionBillingHistoriesParams) SetAuthInfoWriter added in v0.17.0

SetAuthInfoWriter adds the authInfoWriter to the public get user subscription billing histories params

func (*PublicGetUserSubscriptionBillingHistoriesParams) SetContext

SetContext adds the context to the public get user subscription billing histories params

func (*PublicGetUserSubscriptionBillingHistoriesParams) SetExcludeFree

func (o *PublicGetUserSubscriptionBillingHistoriesParams) SetExcludeFree(excludeFree *bool)

SetExcludeFree adds the excludeFree to the public get user subscription billing histories params

func (*PublicGetUserSubscriptionBillingHistoriesParams) SetFlightId added in v0.63.0

SetFlightId adds the flightId as the header value for this specific endpoint

func (*PublicGetUserSubscriptionBillingHistoriesParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the public get user subscription billing histories params

func (*PublicGetUserSubscriptionBillingHistoriesParams) SetHTTPClientTransport added in v0.19.0

func (o *PublicGetUserSubscriptionBillingHistoriesParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the public get user subscription billing histories params

func (*PublicGetUserSubscriptionBillingHistoriesParams) SetLimit

SetLimit adds the limit to the public get user subscription billing histories params

func (*PublicGetUserSubscriptionBillingHistoriesParams) SetNamespace

func (o *PublicGetUserSubscriptionBillingHistoriesParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public get user subscription billing histories params

func (*PublicGetUserSubscriptionBillingHistoriesParams) SetOffset

SetOffset adds the offset to the public get user subscription billing histories params

func (*PublicGetUserSubscriptionBillingHistoriesParams) SetSubscriptionID

func (o *PublicGetUserSubscriptionBillingHistoriesParams) SetSubscriptionID(subscriptionID string)

SetSubscriptionID adds the subscriptionId to the public get user subscription billing histories params

func (*PublicGetUserSubscriptionBillingHistoriesParams) SetTimeout

SetTimeout adds the timeout to the public get user subscription billing histories params

func (*PublicGetUserSubscriptionBillingHistoriesParams) SetUserID

SetUserID adds the userId to the public get user subscription billing histories params

func (*PublicGetUserSubscriptionBillingHistoriesParams) WithContext

WithContext adds the context to the public get user subscription billing histories params

func (*PublicGetUserSubscriptionBillingHistoriesParams) WithExcludeFree

WithExcludeFree adds the excludeFree to the public get user subscription billing histories params

func (*PublicGetUserSubscriptionBillingHistoriesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the public get user subscription billing histories params

func (*PublicGetUserSubscriptionBillingHistoriesParams) WithLimit

WithLimit adds the limit to the public get user subscription billing histories params

func (*PublicGetUserSubscriptionBillingHistoriesParams) WithNamespace

WithNamespace adds the namespace to the public get user subscription billing histories params

func (*PublicGetUserSubscriptionBillingHistoriesParams) WithOffset

WithOffset adds the offset to the public get user subscription billing histories params

func (*PublicGetUserSubscriptionBillingHistoriesParams) WithSubscriptionID

WithSubscriptionID adds the subscriptionID to the public get user subscription billing histories params

func (*PublicGetUserSubscriptionBillingHistoriesParams) WithTimeout

WithTimeout adds the timeout to the public get user subscription billing histories params

func (*PublicGetUserSubscriptionBillingHistoriesParams) WithUserID

WithUserID adds the userID to the public get user subscription billing histories params

func (*PublicGetUserSubscriptionBillingHistoriesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicGetUserSubscriptionBillingHistoriesReader

type PublicGetUserSubscriptionBillingHistoriesReader struct {
	// contains filtered or unexported fields
}

PublicGetUserSubscriptionBillingHistoriesReader is a Reader for the PublicGetUserSubscriptionBillingHistories structure.

func (*PublicGetUserSubscriptionBillingHistoriesReader) ReadResponse

func (o *PublicGetUserSubscriptionBillingHistoriesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PublicGetUserSubscriptionNotFound

type PublicGetUserSubscriptionNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

PublicGetUserSubscriptionNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>40141</td><td>Subscription [{subscriptionId}] does not exist</td></tr></table>

func NewPublicGetUserSubscriptionNotFound

func NewPublicGetUserSubscriptionNotFound() *PublicGetUserSubscriptionNotFound

NewPublicGetUserSubscriptionNotFound creates a PublicGetUserSubscriptionNotFound with default headers values

func (*PublicGetUserSubscriptionNotFound) Error

func (*PublicGetUserSubscriptionNotFound) GetPayload

func (*PublicGetUserSubscriptionNotFound) ToJSONString added in v0.25.0

func (o *PublicGetUserSubscriptionNotFound) ToJSONString() string

type PublicGetUserSubscriptionOK

type PublicGetUserSubscriptionOK struct {
	Payload *platformclientmodels.SubscriptionInfo
}

PublicGetUserSubscriptionOK handles this case with default header values.

successful operation

func NewPublicGetUserSubscriptionOK

func NewPublicGetUserSubscriptionOK() *PublicGetUserSubscriptionOK

NewPublicGetUserSubscriptionOK creates a PublicGetUserSubscriptionOK with default headers values

func (*PublicGetUserSubscriptionOK) Error

func (*PublicGetUserSubscriptionOK) GetPayload

func (*PublicGetUserSubscriptionOK) ToJSONString added in v0.25.0

func (o *PublicGetUserSubscriptionOK) ToJSONString() string

type PublicGetUserSubscriptionParams

type PublicGetUserSubscriptionParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*SubscriptionID*/
	SubscriptionID string
	/*UserID*/
	UserID string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

PublicGetUserSubscriptionParams contains all the parameters to send to the API endpoint for the public get user subscription operation typically these are written to a http.Request

func NewPublicGetUserSubscriptionParams

func NewPublicGetUserSubscriptionParams() *PublicGetUserSubscriptionParams

NewPublicGetUserSubscriptionParams creates a new PublicGetUserSubscriptionParams object with the default values initialized.

func NewPublicGetUserSubscriptionParamsWithContext

func NewPublicGetUserSubscriptionParamsWithContext(ctx context.Context) *PublicGetUserSubscriptionParams

NewPublicGetUserSubscriptionParamsWithContext creates a new PublicGetUserSubscriptionParams object with the default values initialized, and the ability to set a context for a request

func NewPublicGetUserSubscriptionParamsWithHTTPClient

func NewPublicGetUserSubscriptionParamsWithHTTPClient(client *http.Client) *PublicGetUserSubscriptionParams

NewPublicGetUserSubscriptionParamsWithHTTPClient creates a new PublicGetUserSubscriptionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPublicGetUserSubscriptionParamsWithTimeout

func NewPublicGetUserSubscriptionParamsWithTimeout(timeout time.Duration) *PublicGetUserSubscriptionParams

NewPublicGetUserSubscriptionParamsWithTimeout creates a new PublicGetUserSubscriptionParams object with the default values initialized, and the ability to set a timeout on a request

func (*PublicGetUserSubscriptionParams) SetAuthInfoWriter added in v0.17.0

func (o *PublicGetUserSubscriptionParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the public get user subscription params

func (*PublicGetUserSubscriptionParams) SetContext

func (o *PublicGetUserSubscriptionParams) SetContext(ctx context.Context)

SetContext adds the context to the public get user subscription params

func (*PublicGetUserSubscriptionParams) SetFlightId added in v0.63.0

func (o *PublicGetUserSubscriptionParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*PublicGetUserSubscriptionParams) SetHTTPClient

func (o *PublicGetUserSubscriptionParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the public get user subscription params

func (*PublicGetUserSubscriptionParams) SetHTTPClientTransport added in v0.19.0

func (o *PublicGetUserSubscriptionParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the public get user subscription params

func (*PublicGetUserSubscriptionParams) SetNamespace

func (o *PublicGetUserSubscriptionParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public get user subscription params

func (*PublicGetUserSubscriptionParams) SetSubscriptionID

func (o *PublicGetUserSubscriptionParams) SetSubscriptionID(subscriptionID string)

SetSubscriptionID adds the subscriptionId to the public get user subscription params

func (*PublicGetUserSubscriptionParams) SetTimeout

func (o *PublicGetUserSubscriptionParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the public get user subscription params

func (*PublicGetUserSubscriptionParams) SetUserID

func (o *PublicGetUserSubscriptionParams) SetUserID(userID string)

SetUserID adds the userId to the public get user subscription params

func (*PublicGetUserSubscriptionParams) WithContext

WithContext adds the context to the public get user subscription params

func (*PublicGetUserSubscriptionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the public get user subscription params

func (*PublicGetUserSubscriptionParams) WithNamespace

WithNamespace adds the namespace to the public get user subscription params

func (*PublicGetUserSubscriptionParams) WithSubscriptionID

func (o *PublicGetUserSubscriptionParams) WithSubscriptionID(subscriptionID string) *PublicGetUserSubscriptionParams

WithSubscriptionID adds the subscriptionID to the public get user subscription params

func (*PublicGetUserSubscriptionParams) WithTimeout

WithTimeout adds the timeout to the public get user subscription params

func (*PublicGetUserSubscriptionParams) WithUserID

WithUserID adds the userID to the public get user subscription params

func (*PublicGetUserSubscriptionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicGetUserSubscriptionReader

type PublicGetUserSubscriptionReader struct {
	// contains filtered or unexported fields
}

PublicGetUserSubscriptionReader is a Reader for the PublicGetUserSubscription structure.

func (*PublicGetUserSubscriptionReader) ReadResponse

func (o *PublicGetUserSubscriptionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PublicQueryUserSubscriptionsOK

type PublicQueryUserSubscriptionsOK struct {
	Payload *platformclientmodels.SubscriptionPagingSlicedResult
}

PublicQueryUserSubscriptionsOK handles this case with default header values.

successful operation

func NewPublicQueryUserSubscriptionsOK

func NewPublicQueryUserSubscriptionsOK() *PublicQueryUserSubscriptionsOK

NewPublicQueryUserSubscriptionsOK creates a PublicQueryUserSubscriptionsOK with default headers values

func (*PublicQueryUserSubscriptionsOK) Error

func (*PublicQueryUserSubscriptionsOK) GetPayload

func (*PublicQueryUserSubscriptionsOK) ToJSONString added in v0.25.0

func (o *PublicQueryUserSubscriptionsOK) ToJSONString() string

type PublicQueryUserSubscriptionsParams

type PublicQueryUserSubscriptionsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*UserID*/
	UserID string
	/*ChargeStatus*/
	ChargeStatus *string
	/*ItemID*/
	ItemID *string
	/*Limit*/
	Limit *int32
	/*Offset*/
	Offset *int32
	/*Sku*/
	Sku *string
	/*Status*/
	Status *string
	/*SubscribedBy*/
	SubscribedBy *string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

PublicQueryUserSubscriptionsParams contains all the parameters to send to the API endpoint for the public query user subscriptions operation typically these are written to a http.Request

func NewPublicQueryUserSubscriptionsParams

func NewPublicQueryUserSubscriptionsParams() *PublicQueryUserSubscriptionsParams

NewPublicQueryUserSubscriptionsParams creates a new PublicQueryUserSubscriptionsParams object with the default values initialized.

func NewPublicQueryUserSubscriptionsParamsWithContext

func NewPublicQueryUserSubscriptionsParamsWithContext(ctx context.Context) *PublicQueryUserSubscriptionsParams

NewPublicQueryUserSubscriptionsParamsWithContext creates a new PublicQueryUserSubscriptionsParams object with the default values initialized, and the ability to set a context for a request

func NewPublicQueryUserSubscriptionsParamsWithHTTPClient

func NewPublicQueryUserSubscriptionsParamsWithHTTPClient(client *http.Client) *PublicQueryUserSubscriptionsParams

NewPublicQueryUserSubscriptionsParamsWithHTTPClient creates a new PublicQueryUserSubscriptionsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPublicQueryUserSubscriptionsParamsWithTimeout

func NewPublicQueryUserSubscriptionsParamsWithTimeout(timeout time.Duration) *PublicQueryUserSubscriptionsParams

NewPublicQueryUserSubscriptionsParamsWithTimeout creates a new PublicQueryUserSubscriptionsParams object with the default values initialized, and the ability to set a timeout on a request

func (*PublicQueryUserSubscriptionsParams) SetAuthInfoWriter added in v0.17.0

func (o *PublicQueryUserSubscriptionsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the public query user subscriptions params

func (*PublicQueryUserSubscriptionsParams) SetChargeStatus

func (o *PublicQueryUserSubscriptionsParams) SetChargeStatus(chargeStatus *string)

SetChargeStatus adds the chargeStatus to the public query user subscriptions params

func (*PublicQueryUserSubscriptionsParams) SetContext

SetContext adds the context to the public query user subscriptions params

func (*PublicQueryUserSubscriptionsParams) SetFlightId added in v0.63.0

func (o *PublicQueryUserSubscriptionsParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*PublicQueryUserSubscriptionsParams) SetHTTPClient

func (o *PublicQueryUserSubscriptionsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the public query user subscriptions params

func (*PublicQueryUserSubscriptionsParams) SetHTTPClientTransport added in v0.19.0

func (o *PublicQueryUserSubscriptionsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the public query user subscriptions params

func (*PublicQueryUserSubscriptionsParams) SetItemID

func (o *PublicQueryUserSubscriptionsParams) SetItemID(itemID *string)

SetItemID adds the itemId to the public query user subscriptions params

func (*PublicQueryUserSubscriptionsParams) SetLimit

func (o *PublicQueryUserSubscriptionsParams) SetLimit(limit *int32)

SetLimit adds the limit to the public query user subscriptions params

func (*PublicQueryUserSubscriptionsParams) SetNamespace

func (o *PublicQueryUserSubscriptionsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public query user subscriptions params

func (*PublicQueryUserSubscriptionsParams) SetOffset

func (o *PublicQueryUserSubscriptionsParams) SetOffset(offset *int32)

SetOffset adds the offset to the public query user subscriptions params

func (*PublicQueryUserSubscriptionsParams) SetSku

SetSku adds the sku to the public query user subscriptions params

func (*PublicQueryUserSubscriptionsParams) SetStatus

func (o *PublicQueryUserSubscriptionsParams) SetStatus(status *string)

SetStatus adds the status to the public query user subscriptions params

func (*PublicQueryUserSubscriptionsParams) SetSubscribedBy

func (o *PublicQueryUserSubscriptionsParams) SetSubscribedBy(subscribedBy *string)

SetSubscribedBy adds the subscribedBy to the public query user subscriptions params

func (*PublicQueryUserSubscriptionsParams) SetTimeout

func (o *PublicQueryUserSubscriptionsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the public query user subscriptions params

func (*PublicQueryUserSubscriptionsParams) SetUserID

func (o *PublicQueryUserSubscriptionsParams) SetUserID(userID string)

SetUserID adds the userId to the public query user subscriptions params

func (*PublicQueryUserSubscriptionsParams) WithChargeStatus

WithChargeStatus adds the chargeStatus to the public query user subscriptions params

func (*PublicQueryUserSubscriptionsParams) WithContext

WithContext adds the context to the public query user subscriptions params

func (*PublicQueryUserSubscriptionsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the public query user subscriptions params

func (*PublicQueryUserSubscriptionsParams) WithItemID

WithItemID adds the itemID to the public query user subscriptions params

func (*PublicQueryUserSubscriptionsParams) WithLimit

WithLimit adds the limit to the public query user subscriptions params

func (*PublicQueryUserSubscriptionsParams) WithNamespace

WithNamespace adds the namespace to the public query user subscriptions params

func (*PublicQueryUserSubscriptionsParams) WithOffset

WithOffset adds the offset to the public query user subscriptions params

func (*PublicQueryUserSubscriptionsParams) WithSku

WithSku adds the sku to the public query user subscriptions params

func (*PublicQueryUserSubscriptionsParams) WithStatus

WithStatus adds the status to the public query user subscriptions params

func (*PublicQueryUserSubscriptionsParams) WithSubscribedBy

WithSubscribedBy adds the subscribedBy to the public query user subscriptions params

func (*PublicQueryUserSubscriptionsParams) WithTimeout

WithTimeout adds the timeout to the public query user subscriptions params

func (*PublicQueryUserSubscriptionsParams) WithUserID

WithUserID adds the userID to the public query user subscriptions params

func (*PublicQueryUserSubscriptionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicQueryUserSubscriptionsReader

type PublicQueryUserSubscriptionsReader struct {
	// contains filtered or unexported fields
}

PublicQueryUserSubscriptionsReader is a Reader for the PublicQueryUserSubscriptions structure.

func (*PublicQueryUserSubscriptionsReader) ReadResponse

func (o *PublicQueryUserSubscriptionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PublicSubscribeSubscriptionBadRequest

type PublicSubscribeSubscriptionBadRequest struct {
	Payload *platformclientmodels.ErrorEntity
}

PublicSubscribeSubscriptionBadRequest handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>40121</td><td>Item type [{itemType}] does not support</td></tr><tr><td>40122</td><td>Subscription already been subscribed by user</td></tr><tr><td>40123</td><td>Currency [{currencyCode}] does not support</td></tr><tr><td>35123</td><td>Wallet [{walletId}] is inactive</td></tr><tr><td>35124</td><td>Wallet [{currencyCode}] has insufficient balance</td></tr></table>

func NewPublicSubscribeSubscriptionBadRequest

func NewPublicSubscribeSubscriptionBadRequest() *PublicSubscribeSubscriptionBadRequest

NewPublicSubscribeSubscriptionBadRequest creates a PublicSubscribeSubscriptionBadRequest with default headers values

func (*PublicSubscribeSubscriptionBadRequest) Error

func (*PublicSubscribeSubscriptionBadRequest) GetPayload

func (*PublicSubscribeSubscriptionBadRequest) ToJSONString added in v0.25.0

type PublicSubscribeSubscriptionConflict

type PublicSubscribeSubscriptionConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

PublicSubscribeSubscriptionConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20006</td><td>optimistic lock</td></tr><tr><td>40172</td><td>Subscription [{subscriptionId}] is charging, waiting for payment notification</td></tr><tr><td>40173</td><td>Subscription [{subscriptionId}] current currency [{currentCurrency}] not match request currency [{requestCurrency}]</td></tr></table>

func NewPublicSubscribeSubscriptionConflict

func NewPublicSubscribeSubscriptionConflict() *PublicSubscribeSubscriptionConflict

NewPublicSubscribeSubscriptionConflict creates a PublicSubscribeSubscriptionConflict with default headers values

func (*PublicSubscribeSubscriptionConflict) Error

func (*PublicSubscribeSubscriptionConflict) GetPayload

func (*PublicSubscribeSubscriptionConflict) ToJSONString added in v0.25.0

func (o *PublicSubscribeSubscriptionConflict) ToJSONString() string

type PublicSubscribeSubscriptionCreated

type PublicSubscribeSubscriptionCreated struct {
}

PublicSubscribeSubscriptionCreated handles this case with default header values.

subscribe request processed

func NewPublicSubscribeSubscriptionCreated

func NewPublicSubscribeSubscriptionCreated() *PublicSubscribeSubscriptionCreated

NewPublicSubscribeSubscriptionCreated creates a PublicSubscribeSubscriptionCreated with default headers values

func (*PublicSubscribeSubscriptionCreated) Error

type PublicSubscribeSubscriptionForbidden

type PublicSubscribeSubscriptionForbidden struct {
	Payload *platformclientmodels.ErrorEntity
}

PublicSubscribeSubscriptionForbidden handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20016</td><td>action is banned</td></tr></table>

func NewPublicSubscribeSubscriptionForbidden

func NewPublicSubscribeSubscriptionForbidden() *PublicSubscribeSubscriptionForbidden

NewPublicSubscribeSubscriptionForbidden creates a PublicSubscribeSubscriptionForbidden with default headers values

func (*PublicSubscribeSubscriptionForbidden) Error

func (*PublicSubscribeSubscriptionForbidden) GetPayload

func (*PublicSubscribeSubscriptionForbidden) ToJSONString added in v0.25.0

func (o *PublicSubscribeSubscriptionForbidden) ToJSONString() string

type PublicSubscribeSubscriptionNotFound

type PublicSubscribeSubscriptionNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

PublicSubscribeSubscriptionNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>30341</td><td>Item [{itemId}] does not exist in namespace [{namespace}]</td></tr><tr><td>36141</td><td>Currency [{currencyCode}] does not exist in namespace [{namespace}]</td></tr></table>

func NewPublicSubscribeSubscriptionNotFound

func NewPublicSubscribeSubscriptionNotFound() *PublicSubscribeSubscriptionNotFound

NewPublicSubscribeSubscriptionNotFound creates a PublicSubscribeSubscriptionNotFound with default headers values

func (*PublicSubscribeSubscriptionNotFound) Error

func (*PublicSubscribeSubscriptionNotFound) GetPayload

func (*PublicSubscribeSubscriptionNotFound) ToJSONString added in v0.25.0

func (o *PublicSubscribeSubscriptionNotFound) ToJSONString() string

type PublicSubscribeSubscriptionParams

type PublicSubscribeSubscriptionParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.SubscribeRequest
	/*Namespace*/
	Namespace string
	/*UserID*/
	UserID string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

PublicSubscribeSubscriptionParams contains all the parameters to send to the API endpoint for the public subscribe subscription operation typically these are written to a http.Request

func NewPublicSubscribeSubscriptionParams

func NewPublicSubscribeSubscriptionParams() *PublicSubscribeSubscriptionParams

NewPublicSubscribeSubscriptionParams creates a new PublicSubscribeSubscriptionParams object with the default values initialized.

func NewPublicSubscribeSubscriptionParamsWithContext

func NewPublicSubscribeSubscriptionParamsWithContext(ctx context.Context) *PublicSubscribeSubscriptionParams

NewPublicSubscribeSubscriptionParamsWithContext creates a new PublicSubscribeSubscriptionParams object with the default values initialized, and the ability to set a context for a request

func NewPublicSubscribeSubscriptionParamsWithHTTPClient

func NewPublicSubscribeSubscriptionParamsWithHTTPClient(client *http.Client) *PublicSubscribeSubscriptionParams

NewPublicSubscribeSubscriptionParamsWithHTTPClient creates a new PublicSubscribeSubscriptionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPublicSubscribeSubscriptionParamsWithTimeout

func NewPublicSubscribeSubscriptionParamsWithTimeout(timeout time.Duration) *PublicSubscribeSubscriptionParams

NewPublicSubscribeSubscriptionParamsWithTimeout creates a new PublicSubscribeSubscriptionParams object with the default values initialized, and the ability to set a timeout on a request

func (*PublicSubscribeSubscriptionParams) SetAuthInfoWriter added in v0.17.0

func (o *PublicSubscribeSubscriptionParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the public subscribe subscription params

func (*PublicSubscribeSubscriptionParams) SetBody

SetBody adds the body to the public subscribe subscription params

func (*PublicSubscribeSubscriptionParams) SetContext

SetContext adds the context to the public subscribe subscription params

func (*PublicSubscribeSubscriptionParams) SetFlightId added in v0.63.0

func (o *PublicSubscribeSubscriptionParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*PublicSubscribeSubscriptionParams) SetHTTPClient

func (o *PublicSubscribeSubscriptionParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the public subscribe subscription params

func (*PublicSubscribeSubscriptionParams) SetHTTPClientTransport added in v0.19.0

func (o *PublicSubscribeSubscriptionParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the public subscribe subscription params

func (*PublicSubscribeSubscriptionParams) SetNamespace

func (o *PublicSubscribeSubscriptionParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public subscribe subscription params

func (*PublicSubscribeSubscriptionParams) SetTimeout

func (o *PublicSubscribeSubscriptionParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the public subscribe subscription params

func (*PublicSubscribeSubscriptionParams) SetUserID

func (o *PublicSubscribeSubscriptionParams) SetUserID(userID string)

SetUserID adds the userId to the public subscribe subscription params

func (*PublicSubscribeSubscriptionParams) WithBody

WithBody adds the body to the public subscribe subscription params

func (*PublicSubscribeSubscriptionParams) WithContext

WithContext adds the context to the public subscribe subscription params

func (*PublicSubscribeSubscriptionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the public subscribe subscription params

func (*PublicSubscribeSubscriptionParams) WithNamespace

WithNamespace adds the namespace to the public subscribe subscription params

func (*PublicSubscribeSubscriptionParams) WithTimeout

WithTimeout adds the timeout to the public subscribe subscription params

func (*PublicSubscribeSubscriptionParams) WithUserID

WithUserID adds the userID to the public subscribe subscription params

func (*PublicSubscribeSubscriptionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicSubscribeSubscriptionReader

type PublicSubscribeSubscriptionReader struct {
	// contains filtered or unexported fields
}

PublicSubscribeSubscriptionReader is a Reader for the PublicSubscribeSubscription structure.

func (*PublicSubscribeSubscriptionReader) ReadResponse

func (o *PublicSubscribeSubscriptionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PublicSubscribeSubscriptionUnprocessableEntity

type PublicSubscribeSubscriptionUnprocessableEntity struct {
	Payload *platformclientmodels.ValidationErrorEntity
}

PublicSubscribeSubscriptionUnprocessableEntity handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr></table>

func NewPublicSubscribeSubscriptionUnprocessableEntity

func NewPublicSubscribeSubscriptionUnprocessableEntity() *PublicSubscribeSubscriptionUnprocessableEntity

NewPublicSubscribeSubscriptionUnprocessableEntity creates a PublicSubscribeSubscriptionUnprocessableEntity with default headers values

func (*PublicSubscribeSubscriptionUnprocessableEntity) Error

func (*PublicSubscribeSubscriptionUnprocessableEntity) GetPayload

func (*PublicSubscribeSubscriptionUnprocessableEntity) ToJSONString added in v0.25.0

type QuerySubscriptionsOK

type QuerySubscriptionsOK struct {
	Payload *platformclientmodels.SubscriptionPagingSlicedResult
}

QuerySubscriptionsOK handles this case with default header values.

successful operation

func NewQuerySubscriptionsOK

func NewQuerySubscriptionsOK() *QuerySubscriptionsOK

NewQuerySubscriptionsOK creates a QuerySubscriptionsOK with default headers values

func (*QuerySubscriptionsOK) Error

func (o *QuerySubscriptionsOK) Error() string

func (*QuerySubscriptionsOK) GetPayload

func (*QuerySubscriptionsOK) ToJSONString added in v0.25.0

func (o *QuerySubscriptionsOK) ToJSONString() string

type QuerySubscriptionsParams

type QuerySubscriptionsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*ChargeStatus*/
	ChargeStatus *string
	/*ItemID*/
	ItemID *string
	/*Limit*/
	Limit *int32
	/*Offset*/
	Offset *int32
	/*Sku*/
	Sku *string
	/*Status*/
	Status *string
	/*SubscribedBy*/
	SubscribedBy *string
	/*UserID*/
	UserID *string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

QuerySubscriptionsParams contains all the parameters to send to the API endpoint for the query subscriptions operation typically these are written to a http.Request

func NewQuerySubscriptionsParams

func NewQuerySubscriptionsParams() *QuerySubscriptionsParams

NewQuerySubscriptionsParams creates a new QuerySubscriptionsParams object with the default values initialized.

func NewQuerySubscriptionsParamsWithContext

func NewQuerySubscriptionsParamsWithContext(ctx context.Context) *QuerySubscriptionsParams

NewQuerySubscriptionsParamsWithContext creates a new QuerySubscriptionsParams object with the default values initialized, and the ability to set a context for a request

func NewQuerySubscriptionsParamsWithHTTPClient

func NewQuerySubscriptionsParamsWithHTTPClient(client *http.Client) *QuerySubscriptionsParams

NewQuerySubscriptionsParamsWithHTTPClient creates a new QuerySubscriptionsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewQuerySubscriptionsParamsWithTimeout

func NewQuerySubscriptionsParamsWithTimeout(timeout time.Duration) *QuerySubscriptionsParams

NewQuerySubscriptionsParamsWithTimeout creates a new QuerySubscriptionsParams object with the default values initialized, and the ability to set a timeout on a request

func (*QuerySubscriptionsParams) SetAuthInfoWriter added in v0.17.0

func (o *QuerySubscriptionsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the query subscriptions params

func (*QuerySubscriptionsParams) SetChargeStatus

func (o *QuerySubscriptionsParams) SetChargeStatus(chargeStatus *string)

SetChargeStatus adds the chargeStatus to the query subscriptions params

func (*QuerySubscriptionsParams) SetContext

func (o *QuerySubscriptionsParams) SetContext(ctx context.Context)

SetContext adds the context to the query subscriptions params

func (*QuerySubscriptionsParams) SetFlightId added in v0.63.0

func (o *QuerySubscriptionsParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*QuerySubscriptionsParams) SetHTTPClient

func (o *QuerySubscriptionsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the query subscriptions params

func (*QuerySubscriptionsParams) SetHTTPClientTransport added in v0.19.0

func (o *QuerySubscriptionsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the query subscriptions params

func (*QuerySubscriptionsParams) SetItemID

func (o *QuerySubscriptionsParams) SetItemID(itemID *string)

SetItemID adds the itemId to the query subscriptions params

func (*QuerySubscriptionsParams) SetLimit

func (o *QuerySubscriptionsParams) SetLimit(limit *int32)

SetLimit adds the limit to the query subscriptions params

func (*QuerySubscriptionsParams) SetNamespace

func (o *QuerySubscriptionsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the query subscriptions params

func (*QuerySubscriptionsParams) SetOffset

func (o *QuerySubscriptionsParams) SetOffset(offset *int32)

SetOffset adds the offset to the query subscriptions params

func (*QuerySubscriptionsParams) SetSku

func (o *QuerySubscriptionsParams) SetSku(sku *string)

SetSku adds the sku to the query subscriptions params

func (*QuerySubscriptionsParams) SetStatus

func (o *QuerySubscriptionsParams) SetStatus(status *string)

SetStatus adds the status to the query subscriptions params

func (*QuerySubscriptionsParams) SetSubscribedBy

func (o *QuerySubscriptionsParams) SetSubscribedBy(subscribedBy *string)

SetSubscribedBy adds the subscribedBy to the query subscriptions params

func (*QuerySubscriptionsParams) SetTimeout

func (o *QuerySubscriptionsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the query subscriptions params

func (*QuerySubscriptionsParams) SetUserID

func (o *QuerySubscriptionsParams) SetUserID(userID *string)

SetUserID adds the userId to the query subscriptions params

func (*QuerySubscriptionsParams) WithChargeStatus

func (o *QuerySubscriptionsParams) WithChargeStatus(chargeStatus *string) *QuerySubscriptionsParams

WithChargeStatus adds the chargeStatus to the query subscriptions params

func (*QuerySubscriptionsParams) WithContext

WithContext adds the context to the query subscriptions params

func (*QuerySubscriptionsParams) WithHTTPClient

func (o *QuerySubscriptionsParams) WithHTTPClient(client *http.Client) *QuerySubscriptionsParams

WithHTTPClient adds the HTTPClient to the query subscriptions params

func (*QuerySubscriptionsParams) WithItemID

WithItemID adds the itemID to the query subscriptions params

func (*QuerySubscriptionsParams) WithLimit

WithLimit adds the limit to the query subscriptions params

func (*QuerySubscriptionsParams) WithNamespace

func (o *QuerySubscriptionsParams) WithNamespace(namespace string) *QuerySubscriptionsParams

WithNamespace adds the namespace to the query subscriptions params

func (*QuerySubscriptionsParams) WithOffset

WithOffset adds the offset to the query subscriptions params

func (*QuerySubscriptionsParams) WithSku

WithSku adds the sku to the query subscriptions params

func (*QuerySubscriptionsParams) WithStatus

WithStatus adds the status to the query subscriptions params

func (*QuerySubscriptionsParams) WithSubscribedBy

func (o *QuerySubscriptionsParams) WithSubscribedBy(subscribedBy *string) *QuerySubscriptionsParams

WithSubscribedBy adds the subscribedBy to the query subscriptions params

func (*QuerySubscriptionsParams) WithTimeout

WithTimeout adds the timeout to the query subscriptions params

func (*QuerySubscriptionsParams) WithUserID

WithUserID adds the userID to the query subscriptions params

func (*QuerySubscriptionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type QuerySubscriptionsReader

type QuerySubscriptionsReader struct {
	// contains filtered or unexported fields
}

QuerySubscriptionsReader is a Reader for the QuerySubscriptions structure.

func (*QuerySubscriptionsReader) ReadResponse

func (o *QuerySubscriptionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type QueryUserSubscriptionsOK

type QueryUserSubscriptionsOK struct {
	Payload *platformclientmodels.SubscriptionPagingSlicedResult
}

QueryUserSubscriptionsOK handles this case with default header values.

successful operation

func NewQueryUserSubscriptionsOK

func NewQueryUserSubscriptionsOK() *QueryUserSubscriptionsOK

NewQueryUserSubscriptionsOK creates a QueryUserSubscriptionsOK with default headers values

func (*QueryUserSubscriptionsOK) Error

func (o *QueryUserSubscriptionsOK) Error() string

func (*QueryUserSubscriptionsOK) GetPayload

func (*QueryUserSubscriptionsOK) ToJSONString added in v0.25.0

func (o *QueryUserSubscriptionsOK) ToJSONString() string

type QueryUserSubscriptionsParams

type QueryUserSubscriptionsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*UserID*/
	UserID string
	/*ChargeStatus*/
	ChargeStatus *string
	/*ItemID*/
	ItemID *string
	/*Limit*/
	Limit *int32
	/*Offset*/
	Offset *int32
	/*Sku*/
	Sku *string
	/*Status*/
	Status *string
	/*SubscribedBy*/
	SubscribedBy *string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

QueryUserSubscriptionsParams contains all the parameters to send to the API endpoint for the query user subscriptions operation typically these are written to a http.Request

func NewQueryUserSubscriptionsParams

func NewQueryUserSubscriptionsParams() *QueryUserSubscriptionsParams

NewQueryUserSubscriptionsParams creates a new QueryUserSubscriptionsParams object with the default values initialized.

func NewQueryUserSubscriptionsParamsWithContext

func NewQueryUserSubscriptionsParamsWithContext(ctx context.Context) *QueryUserSubscriptionsParams

NewQueryUserSubscriptionsParamsWithContext creates a new QueryUserSubscriptionsParams object with the default values initialized, and the ability to set a context for a request

func NewQueryUserSubscriptionsParamsWithHTTPClient

func NewQueryUserSubscriptionsParamsWithHTTPClient(client *http.Client) *QueryUserSubscriptionsParams

NewQueryUserSubscriptionsParamsWithHTTPClient creates a new QueryUserSubscriptionsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewQueryUserSubscriptionsParamsWithTimeout

func NewQueryUserSubscriptionsParamsWithTimeout(timeout time.Duration) *QueryUserSubscriptionsParams

NewQueryUserSubscriptionsParamsWithTimeout creates a new QueryUserSubscriptionsParams object with the default values initialized, and the ability to set a timeout on a request

func (*QueryUserSubscriptionsParams) SetAuthInfoWriter added in v0.17.0

func (o *QueryUserSubscriptionsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the query user subscriptions params

func (*QueryUserSubscriptionsParams) SetChargeStatus

func (o *QueryUserSubscriptionsParams) SetChargeStatus(chargeStatus *string)

SetChargeStatus adds the chargeStatus to the query user subscriptions params

func (*QueryUserSubscriptionsParams) SetContext

func (o *QueryUserSubscriptionsParams) SetContext(ctx context.Context)

SetContext adds the context to the query user subscriptions params

func (*QueryUserSubscriptionsParams) SetFlightId added in v0.63.0

func (o *QueryUserSubscriptionsParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*QueryUserSubscriptionsParams) SetHTTPClient

func (o *QueryUserSubscriptionsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the query user subscriptions params

func (*QueryUserSubscriptionsParams) SetHTTPClientTransport added in v0.19.0

func (o *QueryUserSubscriptionsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the query user subscriptions params

func (*QueryUserSubscriptionsParams) SetItemID

func (o *QueryUserSubscriptionsParams) SetItemID(itemID *string)

SetItemID adds the itemId to the query user subscriptions params

func (*QueryUserSubscriptionsParams) SetLimit

func (o *QueryUserSubscriptionsParams) SetLimit(limit *int32)

SetLimit adds the limit to the query user subscriptions params

func (*QueryUserSubscriptionsParams) SetNamespace

func (o *QueryUserSubscriptionsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the query user subscriptions params

func (*QueryUserSubscriptionsParams) SetOffset

func (o *QueryUserSubscriptionsParams) SetOffset(offset *int32)

SetOffset adds the offset to the query user subscriptions params

func (*QueryUserSubscriptionsParams) SetSku

func (o *QueryUserSubscriptionsParams) SetSku(sku *string)

SetSku adds the sku to the query user subscriptions params

func (*QueryUserSubscriptionsParams) SetStatus

func (o *QueryUserSubscriptionsParams) SetStatus(status *string)

SetStatus adds the status to the query user subscriptions params

func (*QueryUserSubscriptionsParams) SetSubscribedBy

func (o *QueryUserSubscriptionsParams) SetSubscribedBy(subscribedBy *string)

SetSubscribedBy adds the subscribedBy to the query user subscriptions params

func (*QueryUserSubscriptionsParams) SetTimeout

func (o *QueryUserSubscriptionsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the query user subscriptions params

func (*QueryUserSubscriptionsParams) SetUserID

func (o *QueryUserSubscriptionsParams) SetUserID(userID string)

SetUserID adds the userId to the query user subscriptions params

func (*QueryUserSubscriptionsParams) WithChargeStatus

func (o *QueryUserSubscriptionsParams) WithChargeStatus(chargeStatus *string) *QueryUserSubscriptionsParams

WithChargeStatus adds the chargeStatus to the query user subscriptions params

func (*QueryUserSubscriptionsParams) WithContext

WithContext adds the context to the query user subscriptions params

func (*QueryUserSubscriptionsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the query user subscriptions params

func (*QueryUserSubscriptionsParams) WithItemID

WithItemID adds the itemID to the query user subscriptions params

func (*QueryUserSubscriptionsParams) WithLimit

WithLimit adds the limit to the query user subscriptions params

func (*QueryUserSubscriptionsParams) WithNamespace

WithNamespace adds the namespace to the query user subscriptions params

func (*QueryUserSubscriptionsParams) WithOffset

WithOffset adds the offset to the query user subscriptions params

func (*QueryUserSubscriptionsParams) WithSku

WithSku adds the sku to the query user subscriptions params

func (*QueryUserSubscriptionsParams) WithStatus

WithStatus adds the status to the query user subscriptions params

func (*QueryUserSubscriptionsParams) WithSubscribedBy

func (o *QueryUserSubscriptionsParams) WithSubscribedBy(subscribedBy *string) *QueryUserSubscriptionsParams

WithSubscribedBy adds the subscribedBy to the query user subscriptions params

func (*QueryUserSubscriptionsParams) WithTimeout

WithTimeout adds the timeout to the query user subscriptions params

func (*QueryUserSubscriptionsParams) WithUserID

WithUserID adds the userID to the query user subscriptions params

func (*QueryUserSubscriptionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type QueryUserSubscriptionsReader

type QueryUserSubscriptionsReader struct {
	// contains filtered or unexported fields
}

QueryUserSubscriptionsReader is a Reader for the QueryUserSubscriptions structure.

func (*QueryUserSubscriptionsReader) ReadResponse

func (o *QueryUserSubscriptionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type RecurringChargeSubscriptionOK

type RecurringChargeSubscriptionOK struct {
	Payload *platformclientmodels.RecurringChargeResult
}

RecurringChargeSubscriptionOK handles this case with default header values.

successful operation

func NewRecurringChargeSubscriptionOK

func NewRecurringChargeSubscriptionOK() *RecurringChargeSubscriptionOK

NewRecurringChargeSubscriptionOK creates a RecurringChargeSubscriptionOK with default headers values

func (*RecurringChargeSubscriptionOK) Error

func (*RecurringChargeSubscriptionOK) GetPayload

func (*RecurringChargeSubscriptionOK) ToJSONString added in v0.25.0

func (o *RecurringChargeSubscriptionOK) ToJSONString() string

type RecurringChargeSubscriptionParams

type RecurringChargeSubscriptionParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*SubscriptionID*/
	SubscriptionID string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

RecurringChargeSubscriptionParams contains all the parameters to send to the API endpoint for the recurring charge subscription operation typically these are written to a http.Request

func NewRecurringChargeSubscriptionParams

func NewRecurringChargeSubscriptionParams() *RecurringChargeSubscriptionParams

NewRecurringChargeSubscriptionParams creates a new RecurringChargeSubscriptionParams object with the default values initialized.

func NewRecurringChargeSubscriptionParamsWithContext

func NewRecurringChargeSubscriptionParamsWithContext(ctx context.Context) *RecurringChargeSubscriptionParams

NewRecurringChargeSubscriptionParamsWithContext creates a new RecurringChargeSubscriptionParams object with the default values initialized, and the ability to set a context for a request

func NewRecurringChargeSubscriptionParamsWithHTTPClient

func NewRecurringChargeSubscriptionParamsWithHTTPClient(client *http.Client) *RecurringChargeSubscriptionParams

NewRecurringChargeSubscriptionParamsWithHTTPClient creates a new RecurringChargeSubscriptionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewRecurringChargeSubscriptionParamsWithTimeout

func NewRecurringChargeSubscriptionParamsWithTimeout(timeout time.Duration) *RecurringChargeSubscriptionParams

NewRecurringChargeSubscriptionParamsWithTimeout creates a new RecurringChargeSubscriptionParams object with the default values initialized, and the ability to set a timeout on a request

func (*RecurringChargeSubscriptionParams) SetAuthInfoWriter added in v0.17.0

func (o *RecurringChargeSubscriptionParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the recurring charge subscription params

func (*RecurringChargeSubscriptionParams) SetContext

SetContext adds the context to the recurring charge subscription params

func (*RecurringChargeSubscriptionParams) SetFlightId added in v0.63.0

func (o *RecurringChargeSubscriptionParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*RecurringChargeSubscriptionParams) SetHTTPClient

func (o *RecurringChargeSubscriptionParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the recurring charge subscription params

func (*RecurringChargeSubscriptionParams) SetHTTPClientTransport added in v0.19.0

func (o *RecurringChargeSubscriptionParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the recurring charge subscription params

func (*RecurringChargeSubscriptionParams) SetNamespace

func (o *RecurringChargeSubscriptionParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the recurring charge subscription params

func (*RecurringChargeSubscriptionParams) SetSubscriptionID

func (o *RecurringChargeSubscriptionParams) SetSubscriptionID(subscriptionID string)

SetSubscriptionID adds the subscriptionId to the recurring charge subscription params

func (*RecurringChargeSubscriptionParams) SetTimeout

func (o *RecurringChargeSubscriptionParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the recurring charge subscription params

func (*RecurringChargeSubscriptionParams) WithContext

WithContext adds the context to the recurring charge subscription params

func (*RecurringChargeSubscriptionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the recurring charge subscription params

func (*RecurringChargeSubscriptionParams) WithNamespace

WithNamespace adds the namespace to the recurring charge subscription params

func (*RecurringChargeSubscriptionParams) WithSubscriptionID

func (o *RecurringChargeSubscriptionParams) WithSubscriptionID(subscriptionID string) *RecurringChargeSubscriptionParams

WithSubscriptionID adds the subscriptionID to the recurring charge subscription params

func (*RecurringChargeSubscriptionParams) WithTimeout

WithTimeout adds the timeout to the recurring charge subscription params

func (*RecurringChargeSubscriptionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RecurringChargeSubscriptionReader

type RecurringChargeSubscriptionReader struct {
	// contains filtered or unexported fields
}

RecurringChargeSubscriptionReader is a Reader for the RecurringChargeSubscription structure.

func (*RecurringChargeSubscriptionReader) ReadResponse

func (o *RecurringChargeSubscriptionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Source Files

Jump to

Keyboard shortcuts

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