payment_account

package
v0.1.0-alpha.11 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

View Source
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

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

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

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

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

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

SetAuthInfoWriter adds the authInfoWriter to the public delete payment account params

func (*PublicDeletePaymentAccountParams) SetContext

SetContext adds the context to the public delete payment account params

func (*PublicDeletePaymentAccountParams) SetFlightId

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

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

WithContext adds the context to the public delete payment account params

func (*PublicDeletePaymentAccountParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the public delete payment account params

func (*PublicDeletePaymentAccountParams) WithID

WithID adds the idVar to the public delete payment account params

func (*PublicDeletePaymentAccountParams) WithNamespace

WithNamespace adds the namespace to the public delete payment account params

func (*PublicDeletePaymentAccountParams) WithTimeout

WithTimeout adds the timeout to the public delete payment account params

func (*PublicDeletePaymentAccountParams) WithType

WithType adds the typeVar to the public delete payment account params

func (*PublicDeletePaymentAccountParams) WithUserID

WithUserID adds the userID to the public delete payment account params

func (*PublicDeletePaymentAccountParams) WriteToRequest

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 (*PublicGetPaymentAccountsOK) GetPayload

func (*PublicGetPaymentAccountsOK) ToJSONString

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

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

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

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

WithContext adds the context to the public get payment accounts params

func (*PublicGetPaymentAccountsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the public get payment accounts params

func (*PublicGetPaymentAccountsParams) WithNamespace

WithNamespace adds the namespace to the public get payment accounts params

func (*PublicGetPaymentAccountsParams) WithTimeout

WithTimeout adds the timeout to the public get payment accounts params

func (*PublicGetPaymentAccountsParams) WithUserID

WithUserID adds the userID to the public get payment accounts params

func (*PublicGetPaymentAccountsParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

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