Documentation ¶
Index ¶
- Constants
- type Client
- func (a *Client) PublicDeletePaymentAccount(params *PublicDeletePaymentAccountParams, ...) (*PublicDeletePaymentAccountNoContent, error)deprecated
- func (a *Client) PublicDeletePaymentAccountShort(params *PublicDeletePaymentAccountParams, ...) (*PublicDeletePaymentAccountNoContent, error)
- func (a *Client) PublicGetPaymentAccounts(params *PublicGetPaymentAccountsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetPaymentAccountsOK, error)deprecated
- func (a *Client) PublicGetPaymentAccountsShort(params *PublicGetPaymentAccountsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetPaymentAccountsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type PublicDeletePaymentAccountNoContent
- type PublicDeletePaymentAccountParams
- func NewPublicDeletePaymentAccountParams() *PublicDeletePaymentAccountParams
- func NewPublicDeletePaymentAccountParamsWithContext(ctx context.Context) *PublicDeletePaymentAccountParams
- func NewPublicDeletePaymentAccountParamsWithHTTPClient(client *http.Client) *PublicDeletePaymentAccountParams
- func NewPublicDeletePaymentAccountParamsWithTimeout(timeout time.Duration) *PublicDeletePaymentAccountParams
- func (o *PublicDeletePaymentAccountParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *PublicDeletePaymentAccountParams) SetContext(ctx context.Context)
- func (o *PublicDeletePaymentAccountParams) SetFlightId(flightId string)
- func (o *PublicDeletePaymentAccountParams) SetHTTPClient(client *http.Client)
- func (o *PublicDeletePaymentAccountParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *PublicDeletePaymentAccountParams) SetID(idVar string)
- func (o *PublicDeletePaymentAccountParams) SetNamespace(namespace string)
- func (o *PublicDeletePaymentAccountParams) SetTimeout(timeout time.Duration)
- func (o *PublicDeletePaymentAccountParams) SetType(typeVar string)
- func (o *PublicDeletePaymentAccountParams) SetUserID(userID string)
- func (o *PublicDeletePaymentAccountParams) WithContext(ctx context.Context) *PublicDeletePaymentAccountParams
- func (o *PublicDeletePaymentAccountParams) WithHTTPClient(client *http.Client) *PublicDeletePaymentAccountParams
- func (o *PublicDeletePaymentAccountParams) WithID(idVar string) *PublicDeletePaymentAccountParams
- func (o *PublicDeletePaymentAccountParams) WithNamespace(namespace string) *PublicDeletePaymentAccountParams
- func (o *PublicDeletePaymentAccountParams) WithTimeout(timeout time.Duration) *PublicDeletePaymentAccountParams
- func (o *PublicDeletePaymentAccountParams) WithType(typeVar string) *PublicDeletePaymentAccountParams
- func (o *PublicDeletePaymentAccountParams) WithUserID(userID string) *PublicDeletePaymentAccountParams
- func (o *PublicDeletePaymentAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PublicDeletePaymentAccountReader
- type PublicGetPaymentAccountsOK
- type PublicGetPaymentAccountsParams
- func NewPublicGetPaymentAccountsParams() *PublicGetPaymentAccountsParams
- func NewPublicGetPaymentAccountsParamsWithContext(ctx context.Context) *PublicGetPaymentAccountsParams
- func NewPublicGetPaymentAccountsParamsWithHTTPClient(client *http.Client) *PublicGetPaymentAccountsParams
- func NewPublicGetPaymentAccountsParamsWithTimeout(timeout time.Duration) *PublicGetPaymentAccountsParams
- func (o *PublicGetPaymentAccountsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *PublicGetPaymentAccountsParams) SetContext(ctx context.Context)
- func (o *PublicGetPaymentAccountsParams) SetFlightId(flightId string)
- func (o *PublicGetPaymentAccountsParams) SetHTTPClient(client *http.Client)
- func (o *PublicGetPaymentAccountsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *PublicGetPaymentAccountsParams) SetNamespace(namespace string)
- func (o *PublicGetPaymentAccountsParams) SetTimeout(timeout time.Duration)
- func (o *PublicGetPaymentAccountsParams) SetUserID(userID string)
- func (o *PublicGetPaymentAccountsParams) WithContext(ctx context.Context) *PublicGetPaymentAccountsParams
- func (o *PublicGetPaymentAccountsParams) WithHTTPClient(client *http.Client) *PublicGetPaymentAccountsParams
- func (o *PublicGetPaymentAccountsParams) WithNamespace(namespace string) *PublicGetPaymentAccountsParams
- func (o *PublicGetPaymentAccountsParams) WithTimeout(timeout time.Duration) *PublicGetPaymentAccountsParams
- func (o *PublicGetPaymentAccountsParams) WithUserID(userID string) *PublicGetPaymentAccountsParams
- func (o *PublicGetPaymentAccountsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PublicGetPaymentAccountsReader
Constants ¶
const ( PublicDeletePaymentAccountCardConstant = "card" PublicDeletePaymentAccountPaypalConstant = "paypal" )
Get the enum in PublicDeletePaymentAccountParams
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for payment account API
func (*Client) PublicDeletePaymentAccount
deprecated
func (a *Client) PublicDeletePaymentAccount(params *PublicDeletePaymentAccountParams, authInfo runtime.ClientAuthInfoWriter) (*PublicDeletePaymentAccountNoContent, error)
Deprecated: 2022-08-10 - Use PublicDeletePaymentAccountShort instead.
PublicDeletePaymentAccount delete payment account
[Not Supported Yet In Starter] Delete payment account.
Other detail info:
- Required permission : resource="NAMESPACE:{namespace}:USER:{userId}:PAYMENT:ACCOUNT", action=8 (DELETE)
- Returns :
func (*Client) PublicDeletePaymentAccountShort ¶ added in v0.8.0
func (a *Client) PublicDeletePaymentAccountShort(params *PublicDeletePaymentAccountParams, authInfo runtime.ClientAuthInfoWriter) (*PublicDeletePaymentAccountNoContent, error)
PublicDeletePaymentAccountShort delete payment account
[Not Supported Yet In Starter] Delete payment account.
Other detail info:
- Required permission : resource="NAMESPACE:{namespace}:USER:{userId}:PAYMENT:ACCOUNT", action=8 (DELETE)
- Returns :
func (*Client) PublicGetPaymentAccounts
deprecated
func (a *Client) PublicGetPaymentAccounts(params *PublicGetPaymentAccountsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetPaymentAccountsOK, error)
Deprecated: 2022-08-10 - Use PublicGetPaymentAccountsShort instead.
PublicGetPaymentAccounts get payment accounts
[Not Supported Yet In Starter] Get payment accounts.
Other detail info:
- Required permission : resource="NAMESPACE:{namespace}:USER:{userId}:PAYMENT:ACCOUNT", action=2 (READ)
- Returns : Payment account list
func (*Client) PublicGetPaymentAccountsShort ¶ added in v0.8.0
func (a *Client) PublicGetPaymentAccountsShort(params *PublicGetPaymentAccountsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetPaymentAccountsOK, error)
PublicGetPaymentAccountsShort get payment accounts
[Not Supported Yet In Starter] Get payment accounts.
Other detail info:
- Required permission : resource="NAMESPACE:{namespace}:USER:{userId}:PAYMENT:ACCOUNT", action=2 (READ)
- Returns : Payment account list
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { PublicGetPaymentAccounts(params *PublicGetPaymentAccountsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetPaymentAccountsOK, error) PublicGetPaymentAccountsShort(params *PublicGetPaymentAccountsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetPaymentAccountsOK, error) PublicDeletePaymentAccount(params *PublicDeletePaymentAccountParams, authInfo runtime.ClientAuthInfoWriter) (*PublicDeletePaymentAccountNoContent, error) PublicDeletePaymentAccountShort(params *PublicDeletePaymentAccountParams, authInfo runtime.ClientAuthInfoWriter) (*PublicDeletePaymentAccountNoContent, 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 payment account API client.
type PublicDeletePaymentAccountNoContent ¶
type PublicDeletePaymentAccountNoContent struct { }
PublicDeletePaymentAccountNoContent handles this case with default header values.
delete a payment account successfully
func NewPublicDeletePaymentAccountNoContent ¶
func NewPublicDeletePaymentAccountNoContent() *PublicDeletePaymentAccountNoContent
NewPublicDeletePaymentAccountNoContent creates a PublicDeletePaymentAccountNoContent with default headers values
func (*PublicDeletePaymentAccountNoContent) Error ¶
func (o *PublicDeletePaymentAccountNoContent) Error() string
type PublicDeletePaymentAccountParams ¶
type PublicDeletePaymentAccountParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*ID payment account id */ ID string /*Namespace*/ Namespace string /*Type payment account type */ Type string /*UserID*/ UserID string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // XFlightId is an optional parameter from this SDK XFlightId *string // contains filtered or unexported fields }
PublicDeletePaymentAccountParams contains all the parameters to send to the API endpoint for the public delete payment account operation typically these are written to a http.Request
func NewPublicDeletePaymentAccountParams ¶
func NewPublicDeletePaymentAccountParams() *PublicDeletePaymentAccountParams
NewPublicDeletePaymentAccountParams creates a new PublicDeletePaymentAccountParams object with the default values initialized.
func NewPublicDeletePaymentAccountParamsWithContext ¶
func NewPublicDeletePaymentAccountParamsWithContext(ctx context.Context) *PublicDeletePaymentAccountParams
NewPublicDeletePaymentAccountParamsWithContext creates a new PublicDeletePaymentAccountParams object with the default values initialized, and the ability to set a context for a request
func NewPublicDeletePaymentAccountParamsWithHTTPClient ¶
func NewPublicDeletePaymentAccountParamsWithHTTPClient(client *http.Client) *PublicDeletePaymentAccountParams
NewPublicDeletePaymentAccountParamsWithHTTPClient creates a new PublicDeletePaymentAccountParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPublicDeletePaymentAccountParamsWithTimeout ¶
func NewPublicDeletePaymentAccountParamsWithTimeout(timeout time.Duration) *PublicDeletePaymentAccountParams
NewPublicDeletePaymentAccountParamsWithTimeout creates a new PublicDeletePaymentAccountParams object with the default values initialized, and the ability to set a timeout on a request
func (*PublicDeletePaymentAccountParams) SetAuthInfoWriter ¶ added in v0.17.0
func (o *PublicDeletePaymentAccountParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the public delete payment account params
func (*PublicDeletePaymentAccountParams) SetContext ¶
func (o *PublicDeletePaymentAccountParams) SetContext(ctx context.Context)
SetContext adds the context to the public delete payment account params
func (*PublicDeletePaymentAccountParams) SetFlightId ¶ added in v0.63.0
func (o *PublicDeletePaymentAccountParams) SetFlightId(flightId string)
SetFlightId adds the flightId as the header value for this specific endpoint
func (*PublicDeletePaymentAccountParams) SetHTTPClient ¶
func (o *PublicDeletePaymentAccountParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the public delete payment account params
func (*PublicDeletePaymentAccountParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *PublicDeletePaymentAccountParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the public delete payment account params
func (*PublicDeletePaymentAccountParams) SetID ¶
func (o *PublicDeletePaymentAccountParams) SetID(idVar string)
SetID adds the id to the public delete payment account params
func (*PublicDeletePaymentAccountParams) SetNamespace ¶
func (o *PublicDeletePaymentAccountParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the public delete payment account params
func (*PublicDeletePaymentAccountParams) SetTimeout ¶
func (o *PublicDeletePaymentAccountParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the public delete payment account params
func (*PublicDeletePaymentAccountParams) SetType ¶
func (o *PublicDeletePaymentAccountParams) SetType(typeVar string)
SetType adds the type to the public delete payment account params
func (*PublicDeletePaymentAccountParams) SetUserID ¶
func (o *PublicDeletePaymentAccountParams) SetUserID(userID string)
SetUserID adds the userId to the public delete payment account params
func (*PublicDeletePaymentAccountParams) WithContext ¶
func (o *PublicDeletePaymentAccountParams) WithContext(ctx context.Context) *PublicDeletePaymentAccountParams
WithContext adds the context to the public delete payment account params
func (*PublicDeletePaymentAccountParams) WithHTTPClient ¶
func (o *PublicDeletePaymentAccountParams) WithHTTPClient(client *http.Client) *PublicDeletePaymentAccountParams
WithHTTPClient adds the HTTPClient to the public delete payment account params
func (*PublicDeletePaymentAccountParams) WithID ¶
func (o *PublicDeletePaymentAccountParams) WithID(idVar string) *PublicDeletePaymentAccountParams
WithID adds the idVar to the public delete payment account params
func (*PublicDeletePaymentAccountParams) WithNamespace ¶
func (o *PublicDeletePaymentAccountParams) WithNamespace(namespace string) *PublicDeletePaymentAccountParams
WithNamespace adds the namespace to the public delete payment account params
func (*PublicDeletePaymentAccountParams) WithTimeout ¶
func (o *PublicDeletePaymentAccountParams) WithTimeout(timeout time.Duration) *PublicDeletePaymentAccountParams
WithTimeout adds the timeout to the public delete payment account params
func (*PublicDeletePaymentAccountParams) WithType ¶
func (o *PublicDeletePaymentAccountParams) WithType(typeVar string) *PublicDeletePaymentAccountParams
WithType adds the typeVar to the public delete payment account params
func (*PublicDeletePaymentAccountParams) WithUserID ¶
func (o *PublicDeletePaymentAccountParams) WithUserID(userID string) *PublicDeletePaymentAccountParams
WithUserID adds the userID to the public delete payment account params
func (*PublicDeletePaymentAccountParams) WriteToRequest ¶
func (o *PublicDeletePaymentAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PublicDeletePaymentAccountReader ¶
type PublicDeletePaymentAccountReader struct {
// contains filtered or unexported fields
}
PublicDeletePaymentAccountReader is a Reader for the PublicDeletePaymentAccount structure.
func (*PublicDeletePaymentAccountReader) ReadResponse ¶
func (o *PublicDeletePaymentAccountReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PublicGetPaymentAccountsOK ¶
type PublicGetPaymentAccountsOK struct {
Payload []*platformclientmodels.PaymentAccount
}
PublicGetPaymentAccountsOK handles this case with default header values.
successful operation
func NewPublicGetPaymentAccountsOK ¶
func NewPublicGetPaymentAccountsOK() *PublicGetPaymentAccountsOK
NewPublicGetPaymentAccountsOK creates a PublicGetPaymentAccountsOK with default headers values
func (*PublicGetPaymentAccountsOK) Error ¶
func (o *PublicGetPaymentAccountsOK) Error() string
func (*PublicGetPaymentAccountsOK) GetPayload ¶
func (o *PublicGetPaymentAccountsOK) GetPayload() []*platformclientmodels.PaymentAccount
func (*PublicGetPaymentAccountsOK) ToJSONString ¶ added in v0.25.0
func (o *PublicGetPaymentAccountsOK) ToJSONString() string
type PublicGetPaymentAccountsParams ¶
type PublicGetPaymentAccountsParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Namespace*/ Namespace string /*UserID*/ UserID string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // XFlightId is an optional parameter from this SDK XFlightId *string // contains filtered or unexported fields }
PublicGetPaymentAccountsParams contains all the parameters to send to the API endpoint for the public get payment accounts operation typically these are written to a http.Request
func NewPublicGetPaymentAccountsParams ¶
func NewPublicGetPaymentAccountsParams() *PublicGetPaymentAccountsParams
NewPublicGetPaymentAccountsParams creates a new PublicGetPaymentAccountsParams object with the default values initialized.
func NewPublicGetPaymentAccountsParamsWithContext ¶
func NewPublicGetPaymentAccountsParamsWithContext(ctx context.Context) *PublicGetPaymentAccountsParams
NewPublicGetPaymentAccountsParamsWithContext creates a new PublicGetPaymentAccountsParams object with the default values initialized, and the ability to set a context for a request
func NewPublicGetPaymentAccountsParamsWithHTTPClient ¶
func NewPublicGetPaymentAccountsParamsWithHTTPClient(client *http.Client) *PublicGetPaymentAccountsParams
NewPublicGetPaymentAccountsParamsWithHTTPClient creates a new PublicGetPaymentAccountsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPublicGetPaymentAccountsParamsWithTimeout ¶
func NewPublicGetPaymentAccountsParamsWithTimeout(timeout time.Duration) *PublicGetPaymentAccountsParams
NewPublicGetPaymentAccountsParamsWithTimeout creates a new PublicGetPaymentAccountsParams object with the default values initialized, and the ability to set a timeout on a request
func (*PublicGetPaymentAccountsParams) SetAuthInfoWriter ¶ added in v0.17.0
func (o *PublicGetPaymentAccountsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the public get payment accounts params
func (*PublicGetPaymentAccountsParams) SetContext ¶
func (o *PublicGetPaymentAccountsParams) SetContext(ctx context.Context)
SetContext adds the context to the public get payment accounts params
func (*PublicGetPaymentAccountsParams) SetFlightId ¶ added in v0.63.0
func (o *PublicGetPaymentAccountsParams) SetFlightId(flightId string)
SetFlightId adds the flightId as the header value for this specific endpoint
func (*PublicGetPaymentAccountsParams) SetHTTPClient ¶
func (o *PublicGetPaymentAccountsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the public get payment accounts params
func (*PublicGetPaymentAccountsParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *PublicGetPaymentAccountsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the public get payment accounts params
func (*PublicGetPaymentAccountsParams) SetNamespace ¶
func (o *PublicGetPaymentAccountsParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the public get payment accounts params
func (*PublicGetPaymentAccountsParams) SetTimeout ¶
func (o *PublicGetPaymentAccountsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the public get payment accounts params
func (*PublicGetPaymentAccountsParams) SetUserID ¶
func (o *PublicGetPaymentAccountsParams) SetUserID(userID string)
SetUserID adds the userId to the public get payment accounts params
func (*PublicGetPaymentAccountsParams) WithContext ¶
func (o *PublicGetPaymentAccountsParams) WithContext(ctx context.Context) *PublicGetPaymentAccountsParams
WithContext adds the context to the public get payment accounts params
func (*PublicGetPaymentAccountsParams) WithHTTPClient ¶
func (o *PublicGetPaymentAccountsParams) WithHTTPClient(client *http.Client) *PublicGetPaymentAccountsParams
WithHTTPClient adds the HTTPClient to the public get payment accounts params
func (*PublicGetPaymentAccountsParams) WithNamespace ¶
func (o *PublicGetPaymentAccountsParams) WithNamespace(namespace string) *PublicGetPaymentAccountsParams
WithNamespace adds the namespace to the public get payment accounts params
func (*PublicGetPaymentAccountsParams) WithTimeout ¶
func (o *PublicGetPaymentAccountsParams) WithTimeout(timeout time.Duration) *PublicGetPaymentAccountsParams
WithTimeout adds the timeout to the public get payment accounts params
func (*PublicGetPaymentAccountsParams) WithUserID ¶
func (o *PublicGetPaymentAccountsParams) WithUserID(userID string) *PublicGetPaymentAccountsParams
WithUserID adds the userID to the public get payment accounts params
func (*PublicGetPaymentAccountsParams) WriteToRequest ¶
func (o *PublicGetPaymentAccountsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PublicGetPaymentAccountsReader ¶
type PublicGetPaymentAccountsReader struct {
// contains filtered or unexported fields
}
PublicGetPaymentAccountsReader is a Reader for the PublicGetPaymentAccounts structure.
func (*PublicGetPaymentAccountsReader) ReadResponse ¶
func (o *PublicGetPaymentAccountsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.