subscription

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

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

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

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

type CancelSubscriptionParams

type CancelSubscriptionParams struct {

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

	Context    context.Context
	HTTPClient *http.Client
	// 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) 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) 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) 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

type CheckUserSubscriptionSubscribableByItemIDParams

type CheckUserSubscriptionSubscribableByItemIDParams struct {

	/*ItemID*/
	ItemID string
	/*Namespace*/
	Namespace string
	/*UserID*/
	UserID string

	Context    context.Context
	HTTPClient *http.Client
	// 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) SetContext

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

func (*CheckUserSubscriptionSubscribableByItemIDParams) SetHTTPClient

SetHTTPClient adds the HTTPClient 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

CancelSubscription cancels a subscription

Cancel a subscription, only ACTIVE subscription can be cancelled. <b>Ensure successfully cancel, recommend at least 1 day before current period ends, otherwise it may be charging or charged.</b><br>Set immediate true, the subscription will be terminated immediately, otherwise till the end of current billing cycle.<br>Set force true, will ignore the error if subscription is during recurring charging.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:SUBSCRIPTION", action=4 (UPDATE)</li><li><i>Returns</i>: cancelled subscription</li></ul>

func (*Client) CheckUserSubscriptionSubscribableByItemID

CheckUserSubscriptionSubscribableByItemID checks user subscription subscribable

Check user subscription subscribable by itemId, ACTIVE USER subscription can't do subscribe again.<p>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:SUBSCRIPTION", action=2 (READ)</li><li><i>Returns</i>: subscribable info</li></ul>

func (*Client) DeleteUserSubscription

DeleteUserSubscription deletes user subscription

<b>[TEST FACILITY ONLY] Forbidden in live environment. </b> Delete user subscription.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:SUBSCRIPTION", action=8 (DELETE)</li></ul>

func (*Client) GetUserSubscription

GetUserSubscription gets user subscription

Get user subscription.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:SUBSCRIPTION", action=2 (READ)</li><li><i>Returns</i>: subscription</li></ul>

func (*Client) GetUserSubscriptionActivities

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

GetUserSubscriptionActivities gets user subscription activity

Get user subscription activity.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:SUBSCRIPTION", action=2 (READ)</li><li><i>Returns</i>: paginated subscription activity</li></ul>

func (*Client) GetUserSubscriptionBillingHistories

GetUserSubscriptionBillingHistories gets user subscription billing histories

Get user subscription billing histories.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:SUBSCRIPTION", action=2 (READ)</li><li><i>Returns</i>: paginated subscription billing history</li></ul>

func (*Client) GrantDaysToSubscription

GrantDaysToSubscription grants 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.<br>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.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:SUBSCRIPTION", action=4 (UPDATE)</li><li><i>Returns</i>: updated subscription</li></ul>

func (*Client) PlatformSubscribeSubscription

PlatformSubscribeSubscription frees subscribe by platform

Free subscribe by platform, can used by other justice service to redeem/reward the subscription.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:SUBSCRIPTION", action=1 (CREATE)</li><li><i>Returns</i>: result subscription</li></ul>

func (*Client) ProcessUserSubscriptionNotification

ProcessUserSubscriptionNotification webs hook for payment notification

<b>[SERVICE COMMUNICATION ONLY]</b> This API is used as a web hook for payment notification from justice payment service.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:SUBSCRIPTION", action=4 (UPDATE)</li><li><i>Returns</i>: Process result</li></ul>

func (*Client) PublicCancelSubscription

PublicCancelSubscription cancels a subscription

Cancel a subscription, only ACTIVE subscription can be cancelled. <b>Ensure successfully cancel, recommend at least 1 day before current period ends, otherwise it may be charging or charged.</b><br>Set immediate true, the subscription will be terminated immediately, otherwise till the end of current billing cycle.<br>Other detail info: <ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:USER:{userId}:SUBSCRIPTION", action=4 (UPDATE)</li><li><i>Returns</i>: cancelled subscription</li></ul>

func (*Client) PublicChangeSubscriptionBillingAccount

PublicChangeSubscriptionBillingAccount requests 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.<br>Only ACTIVE USER subscription with real currency billing account can be changed.<br>Other detail info: <ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:USER:{userId}:SUBSCRIPTION", action=4 (UPDATE)</li><li><i>Returns</i>: updated subscription</li></ul>

func (*Client) PublicCheckUserSubscriptionSubscribableByItemID

PublicCheckUserSubscriptionSubscribableByItemID checks user subscription subscribable

Check user subscription subscribable by itemId, ACTIVE USER subscription can't do subscribe again.<p>Other detail info: <ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:USER:{userId}:SUBSCRIPTION", action=2 (READ)</li><li><i>Returns</i>: subscribable info</li></ul>

func (*Client) PublicGetUserSubscription

PublicGetUserSubscription gets user subscription

Get user subscription.<br>Other detail info: <ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:USER:{userId}:SUBSCRIPTION", action=2 (READ)</li><li><i>Returns</i>: subscription</li></ul>

func (*Client) PublicGetUserSubscriptionBillingHistories

PublicGetUserSubscriptionBillingHistories gets user subscription billing histories

Get user subscription billing histories.<br>Other detail info: <ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:USER:{userId}:SUBSCRIPTION", action=2 (READ)</li><li><i>Returns</i>: paginated subscription history</li></ul>

func (*Client) PublicQueryUserSubscriptions

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

PublicQueryUserSubscriptions queries user subscriptions

Query user subscriptions.<br>Other detail info: <ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:USER:{userId}:SUBSCRIPTION", action=2 (READ)</li><li><i>Returns</i>: paginated subscription</li></ul>

func (*Client) PublicSubscribeSubscription

PublicSubscribeSubscription subscribes a subscription

Subscribe a subscription. Support both real and virtual payment. Need go through payment flow using the paymentOrderNo if paymentFlowRequired true.<br><b>ACTIVE USER subscription can't do subscribe again.</b><br><b>The next billing date will be X(default 4) hours before the current period ends if correctly subscribed.</b><br>User with permission SANDBOX will create sandbox subscription that not real paid.<br>Other detail info: <ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:USER:{userId}:SUBSCRIPTION", action=1 (CREATE)</li><li><i>Optional permission(user with this permission will create sandbox subscription)</i>: resource="SANDBOX", action=1 (CREATE)</li><li>It will be forbidden while the user is banned: ORDER_INITIATE or ORDER_AND_PAYMENT</li><li><i>Returns</i>: created subscription</li></ul>

func (*Client) QuerySubscriptions

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

QuerySubscriptions queries subscriptions

Query subscriptions.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:SUBSCRIPTION", action=2 (READ)</li><li><i>Returns</i>: paginated subscriptions</li></ul>

func (*Client) QueryUserSubscriptions

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

QueryUserSubscriptions queries user subscriptions

Query user subscriptions.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:SUBSCRIPTION", action=2 (READ)</li><li><i>Returns</i>: paginated subscription</li></ul>

func (*Client) RecurringChargeSubscription

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

RecurringChargeSubscription recurrings charge subscription

<b>[TEST FACILITY ONLY] Forbidden in live environment. </b> 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.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:SUBSCRIPTION", action=4 (UPDATE)</li><li><i>Returns</i>: recurring charge result</li></ul>

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	CancelSubscription(params *CancelSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*CancelSubscriptionOK, *CancelSubscriptionNotFound, *CancelSubscriptionConflict, error)

	CheckUserSubscriptionSubscribableByItemID(params *CheckUserSubscriptionSubscribableByItemIDParams, authInfo runtime.ClientAuthInfoWriter) (*CheckUserSubscriptionSubscribableByItemIDOK, error)

	DeleteUserSubscription(params *DeleteUserSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteUserSubscriptionNoContent, error)

	GetUserSubscription(params *GetUserSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserSubscriptionOK, *GetUserSubscriptionNotFound, error)

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

	GetUserSubscriptionBillingHistories(params *GetUserSubscriptionBillingHistoriesParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserSubscriptionBillingHistoriesOK, error)

	GrantDaysToSubscription(params *GrantDaysToSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*GrantDaysToSubscriptionOK, *GrantDaysToSubscriptionNotFound, error)

	PlatformSubscribeSubscription(params *PlatformSubscribeSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*PlatformSubscribeSubscriptionOK, *PlatformSubscribeSubscriptionCreated, *PlatformSubscribeSubscriptionBadRequest, *PlatformSubscribeSubscriptionNotFound, *PlatformSubscribeSubscriptionUnprocessableEntity, error)

	ProcessUserSubscriptionNotification(params *ProcessUserSubscriptionNotificationParams, authInfo runtime.ClientAuthInfoWriter) (*ProcessUserSubscriptionNotificationNoContent, *ProcessUserSubscriptionNotificationBadRequest, error)

	PublicCancelSubscription(params *PublicCancelSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*PublicCancelSubscriptionOK, *PublicCancelSubscriptionNotFound, *PublicCancelSubscriptionConflict, error)

	PublicChangeSubscriptionBillingAccount(params *PublicChangeSubscriptionBillingAccountParams, authInfo runtime.ClientAuthInfoWriter) (*PublicChangeSubscriptionBillingAccountOK, *PublicChangeSubscriptionBillingAccountBadRequest, *PublicChangeSubscriptionBillingAccountNotFound, *PublicChangeSubscriptionBillingAccountConflict, error)

	PublicCheckUserSubscriptionSubscribableByItemID(params *PublicCheckUserSubscriptionSubscribableByItemIDParams, authInfo runtime.ClientAuthInfoWriter) (*PublicCheckUserSubscriptionSubscribableByItemIDOK, error)

	PublicGetUserSubscription(params *PublicGetUserSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetUserSubscriptionOK, *PublicGetUserSubscriptionNotFound, error)

	PublicGetUserSubscriptionBillingHistories(params *PublicGetUserSubscriptionBillingHistoriesParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetUserSubscriptionBillingHistoriesOK, error)

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

	PublicSubscribeSubscription(params *PublicSubscribeSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*PublicSubscribeSubscriptionCreated, *PublicSubscribeSubscriptionBadRequest, *PublicSubscribeSubscriptionForbidden, *PublicSubscribeSubscriptionNotFound, *PublicSubscribeSubscriptionConflict, *PublicSubscribeSubscriptionUnprocessableEntity, error)

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

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

	RecurringChargeSubscription(params *RecurringChargeSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*RecurringChargeSubscriptionOK, 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 {

	/*Namespace*/
	Namespace string
	/*SubscriptionID*/
	SubscriptionID string
	/*UserID*/
	UserID string

	Context    context.Context
	HTTPClient *http.Client
	// 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) SetContext

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

SetContext adds the context to the delete user subscription params

func (*DeleteUserSubscriptionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient 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

type GetUserSubscriptionActivitiesParams

type GetUserSubscriptionActivitiesParams struct {

	/*ExcludeSystem*/
	ExcludeSystem *bool
	/*Limit*/
	Limit *int32
	/*Namespace*/
	Namespace string
	/*Offset*/
	Offset *int32
	/*SubscriptionID*/
	SubscriptionID *string
	/*UserID*/
	UserID string

	Context    context.Context
	HTTPClient *http.Client
	// 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) 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) SetHTTPClient

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

SetHTTPClient adds the HTTPClient 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

type GetUserSubscriptionBillingHistoriesParams

type GetUserSubscriptionBillingHistoriesParams struct {

	/*ExcludeFree*/
	ExcludeFree *bool
	/*Limit*/
	Limit *int32
	/*Namespace*/
	Namespace string
	/*Offset*/
	Offset *int32
	/*SubscriptionID*/
	SubscriptionID string
	/*UserID*/
	UserID string

	Context    context.Context
	HTTPClient *http.Client
	// 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) 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) SetHTTPClient

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

SetHTTPClient adds the HTTPClient 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

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

type GetUserSubscriptionParams

type GetUserSubscriptionParams struct {

	/*Namespace*/
	Namespace string
	/*SubscriptionID*/
	SubscriptionID string
	/*UserID*/
	UserID string

	Context    context.Context
	HTTPClient *http.Client
	// 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) SetContext

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

SetContext adds the context to the get user subscription params

func (*GetUserSubscriptionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient 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

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

type GrantDaysToSubscriptionParams

type GrantDaysToSubscriptionParams struct {

	/*Body*/
	Body *platformclientmodels.GrantSubscriptionDaysRequest
	/*Namespace*/
	Namespace string
	/*SubscriptionID*/
	SubscriptionID string
	/*UserID*/
	UserID string

	Context    context.Context
	HTTPClient *http.Client
	// 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) 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) SetHTTPClient

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

SetHTTPClient adds the HTTPClient 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

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

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

type PlatformSubscribeSubscriptionParams

type PlatformSubscribeSubscriptionParams struct {

	/*Body*/
	Body *platformclientmodels.PlatformSubscribeRequest
	/*Namespace*/
	Namespace string
	/*UserID*/
	UserID string

	Context    context.Context
	HTTPClient *http.Client
	// 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) 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) SetHTTPClient

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

SetHTTPClient adds the HTTPClient 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

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 {

	/*Body*/
	Body *platformclientmodels.TradeNotification
	/*Namespace*/
	Namespace string
	/*SubscriptionID*/
	SubscriptionID string
	/*UserID*/
	UserID string

	Context    context.Context
	HTTPClient *http.Client
	// 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) 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) SetHTTPClient

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

SetHTTPClient adds the HTTPClient 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

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

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

type PublicCancelSubscriptionParams

type PublicCancelSubscriptionParams struct {

	/*Body*/
	Body *platformclientmodels.CancelRequest
	/*Namespace*/
	Namespace string
	/*SubscriptionID*/
	SubscriptionID string
	/*UserID*/
	UserID string

	Context    context.Context
	HTTPClient *http.Client
	// 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) 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) SetHTTPClient

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

SetHTTPClient adds the HTTPClient 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

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

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

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

type PublicChangeSubscriptionBillingAccountParams

type PublicChangeSubscriptionBillingAccountParams struct {

	/*Namespace*/
	Namespace string
	/*SubscriptionID*/
	SubscriptionID string
	/*UserID*/
	UserID string

	Context    context.Context
	HTTPClient *http.Client
	// 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) SetContext

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

func (*PublicChangeSubscriptionBillingAccountParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient 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

type PublicCheckUserSubscriptionSubscribableByItemIDParams

type PublicCheckUserSubscriptionSubscribableByItemIDParams struct {

	/*ItemID*/
	ItemID string
	/*Namespace*/
	Namespace string
	/*UserID*/
	UserID string

	Context    context.Context
	HTTPClient *http.Client
	// 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) SetContext

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

func (*PublicCheckUserSubscriptionSubscribableByItemIDParams) SetHTTPClient

SetHTTPClient adds the HTTPClient 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

type PublicGetUserSubscriptionBillingHistoriesParams

type PublicGetUserSubscriptionBillingHistoriesParams struct {

	/*ExcludeFree*/
	ExcludeFree *bool
	/*Limit*/
	Limit *int32
	/*Namespace*/
	Namespace string
	/*Offset*/
	Offset *int32
	/*SubscriptionID*/
	SubscriptionID string
	/*UserID*/
	UserID string

	Context    context.Context
	HTTPClient *http.Client
	// 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) 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) SetHTTPClient

SetHTTPClient adds the HTTPClient 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

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

type PublicGetUserSubscriptionParams

type PublicGetUserSubscriptionParams struct {

	/*Namespace*/
	Namespace string
	/*SubscriptionID*/
	SubscriptionID string
	/*UserID*/
	UserID string

	Context    context.Context
	HTTPClient *http.Client
	// 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) SetContext

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

SetContext adds the context to the public get user subscription params

func (*PublicGetUserSubscriptionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient 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

type PublicQueryUserSubscriptionsParams

type PublicQueryUserSubscriptionsParams struct {

	/*ChargeStatus*/
	ChargeStatus *string
	/*ItemID*/
	ItemID *string
	/*Limit*/
	Limit *int32
	/*Namespace*/
	Namespace string
	/*Offset*/
	Offset *int32
	/*Sku*/
	Sku *string
	/*Status*/
	Status *string
	/*SubscribedBy*/
	SubscribedBy *string
	/*UserID*/
	UserID string

	Context    context.Context
	HTTPClient *http.Client
	// 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) 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) SetHTTPClient

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

SetHTTPClient adds the HTTPClient 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

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

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

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

type PublicSubscribeSubscriptionParams

type PublicSubscribeSubscriptionParams struct {

	/*Body*/
	Body *platformclientmodels.SubscribeRequest
	/*Namespace*/
	Namespace string
	/*UserID*/
	UserID string

	Context    context.Context
	HTTPClient *http.Client
	// 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) 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) SetHTTPClient

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

SetHTTPClient adds the HTTPClient 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

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

type QuerySubscriptionsParams

type QuerySubscriptionsParams struct {

	/*ChargeStatus*/
	ChargeStatus *string
	/*ItemID*/
	ItemID *string
	/*Limit*/
	Limit *int32
	/*Namespace*/
	Namespace string
	/*Offset*/
	Offset *int32
	/*Sku*/
	Sku *string
	/*Status*/
	Status *string
	/*SubscribedBy*/
	SubscribedBy *string
	/*UserID*/
	UserID *string

	Context    context.Context
	HTTPClient *http.Client
	// 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) 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) SetHTTPClient

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

SetHTTPClient adds the HTTPClient 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

type QueryUserSubscriptionsParams

type QueryUserSubscriptionsParams struct {

	/*ChargeStatus*/
	ChargeStatus *string
	/*ItemID*/
	ItemID *string
	/*Limit*/
	Limit *int32
	/*Namespace*/
	Namespace string
	/*Offset*/
	Offset *int32
	/*Sku*/
	Sku *string
	/*Status*/
	Status *string
	/*SubscribedBy*/
	SubscribedBy *string
	/*UserID*/
	UserID string

	Context    context.Context
	HTTPClient *http.Client
	// 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) 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) SetHTTPClient

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

SetHTTPClient adds the HTTPClient 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

type RecurringChargeSubscriptionParams

type RecurringChargeSubscriptionParams struct {

	/*Namespace*/
	Namespace string
	/*SubscriptionID*/
	SubscriptionID string

	Context    context.Context
	HTTPClient *http.Client
	// 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) SetContext

SetContext adds the context to the recurring charge subscription params

func (*RecurringChargeSubscriptionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient 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