Documentation
¶
Index ¶
- type Client
- func (a *Client) DeletePaymentMethod(params *DeletePaymentMethodParams) (*DeletePaymentMethodOK, error)
- func (a *Client) GetAllPaymentMethods(params *GetAllPaymentMethodsParams) (*GetAllPaymentMethodsOK, error)
- func (a *Client) GetPaymentMethodByAccountID(params *GetPaymentMethodByAccountIDParams) (*GetPaymentMethodByAccountIDOK, error)
- func (a *Client) GetPaymentMethodByID(params *GetPaymentMethodByIDParams) (*GetPaymentMethodByIDOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type DeletePaymentMethodDefault
- type DeletePaymentMethodOK
- type DeletePaymentMethodParams
- func NewDeletePaymentMethodParams() *DeletePaymentMethodParams
- func NewDeletePaymentMethodParamsWithContext(ctx context.Context) *DeletePaymentMethodParams
- func NewDeletePaymentMethodParamsWithHTTPClient(client *http.Client) *DeletePaymentMethodParams
- func NewDeletePaymentMethodParamsWithTimeout(timeout time.Duration) *DeletePaymentMethodParams
- func (o *DeletePaymentMethodParams) SetContext(ctx context.Context)
- func (o *DeletePaymentMethodParams) SetHTTPClient(client *http.Client)
- func (o *DeletePaymentMethodParams) SetOrganizations(organizations []string)
- func (o *DeletePaymentMethodParams) SetPaymentMethodID(paymentMethodID string)
- func (o *DeletePaymentMethodParams) SetTimeout(timeout time.Duration)
- func (o *DeletePaymentMethodParams) WithContext(ctx context.Context) *DeletePaymentMethodParams
- func (o *DeletePaymentMethodParams) WithHTTPClient(client *http.Client) *DeletePaymentMethodParams
- func (o *DeletePaymentMethodParams) WithOrganizations(organizations []string) *DeletePaymentMethodParams
- func (o *DeletePaymentMethodParams) WithPaymentMethodID(paymentMethodID string) *DeletePaymentMethodParams
- func (o *DeletePaymentMethodParams) WithTimeout(timeout time.Duration) *DeletePaymentMethodParams
- func (o *DeletePaymentMethodParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeletePaymentMethodReader
- type GetAllPaymentMethodsDefault
- type GetAllPaymentMethodsOK
- type GetAllPaymentMethodsParams
- func NewGetAllPaymentMethodsParams() *GetAllPaymentMethodsParams
- func NewGetAllPaymentMethodsParamsWithContext(ctx context.Context) *GetAllPaymentMethodsParams
- func NewGetAllPaymentMethodsParamsWithHTTPClient(client *http.Client) *GetAllPaymentMethodsParams
- func NewGetAllPaymentMethodsParamsWithTimeout(timeout time.Duration) *GetAllPaymentMethodsParams
- func (o *GetAllPaymentMethodsParams) SetContext(ctx context.Context)
- func (o *GetAllPaymentMethodsParams) SetHTTPClient(client *http.Client)
- func (o *GetAllPaymentMethodsParams) SetIncludeRetired(includeRetired *bool)
- func (o *GetAllPaymentMethodsParams) SetOffset(offset *int32)
- func (o *GetAllPaymentMethodsParams) SetOrder(order *string)
- func (o *GetAllPaymentMethodsParams) SetOrderBy(orderBy *string)
- func (o *GetAllPaymentMethodsParams) SetOrganizations(organizations []string)
- func (o *GetAllPaymentMethodsParams) SetRecords(records *int32)
- func (o *GetAllPaymentMethodsParams) SetTimeout(timeout time.Duration)
- func (o *GetAllPaymentMethodsParams) WithContext(ctx context.Context) *GetAllPaymentMethodsParams
- func (o *GetAllPaymentMethodsParams) WithHTTPClient(client *http.Client) *GetAllPaymentMethodsParams
- func (o *GetAllPaymentMethodsParams) WithIncludeRetired(includeRetired *bool) *GetAllPaymentMethodsParams
- func (o *GetAllPaymentMethodsParams) WithOffset(offset *int32) *GetAllPaymentMethodsParams
- func (o *GetAllPaymentMethodsParams) WithOrder(order *string) *GetAllPaymentMethodsParams
- func (o *GetAllPaymentMethodsParams) WithOrderBy(orderBy *string) *GetAllPaymentMethodsParams
- func (o *GetAllPaymentMethodsParams) WithOrganizations(organizations []string) *GetAllPaymentMethodsParams
- func (o *GetAllPaymentMethodsParams) WithRecords(records *int32) *GetAllPaymentMethodsParams
- func (o *GetAllPaymentMethodsParams) WithTimeout(timeout time.Duration) *GetAllPaymentMethodsParams
- func (o *GetAllPaymentMethodsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAllPaymentMethodsReader
- type GetPaymentMethodByAccountIDDefault
- type GetPaymentMethodByAccountIDOK
- type GetPaymentMethodByAccountIDParams
- func NewGetPaymentMethodByAccountIDParams() *GetPaymentMethodByAccountIDParams
- func NewGetPaymentMethodByAccountIDParamsWithContext(ctx context.Context) *GetPaymentMethodByAccountIDParams
- func NewGetPaymentMethodByAccountIDParamsWithHTTPClient(client *http.Client) *GetPaymentMethodByAccountIDParams
- func NewGetPaymentMethodByAccountIDParamsWithTimeout(timeout time.Duration) *GetPaymentMethodByAccountIDParams
- func (o *GetPaymentMethodByAccountIDParams) SetAccountID(accountID string)
- func (o *GetPaymentMethodByAccountIDParams) SetContext(ctx context.Context)
- func (o *GetPaymentMethodByAccountIDParams) SetDefaultOnly(defaultOnly *bool)
- func (o *GetPaymentMethodByAccountIDParams) SetHTTPClient(client *http.Client)
- func (o *GetPaymentMethodByAccountIDParams) SetIncludeRetired(includeRetired *bool)
- func (o *GetPaymentMethodByAccountIDParams) SetOffset(offset *int32)
- func (o *GetPaymentMethodByAccountIDParams) SetOrder(order *string)
- func (o *GetPaymentMethodByAccountIDParams) SetOrderBy(orderBy *string)
- func (o *GetPaymentMethodByAccountIDParams) SetOrganizations(organizations []string)
- func (o *GetPaymentMethodByAccountIDParams) SetRecords(records *int32)
- func (o *GetPaymentMethodByAccountIDParams) SetTimeout(timeout time.Duration)
- func (o *GetPaymentMethodByAccountIDParams) WithAccountID(accountID string) *GetPaymentMethodByAccountIDParams
- func (o *GetPaymentMethodByAccountIDParams) WithContext(ctx context.Context) *GetPaymentMethodByAccountIDParams
- func (o *GetPaymentMethodByAccountIDParams) WithDefaultOnly(defaultOnly *bool) *GetPaymentMethodByAccountIDParams
- func (o *GetPaymentMethodByAccountIDParams) WithHTTPClient(client *http.Client) *GetPaymentMethodByAccountIDParams
- func (o *GetPaymentMethodByAccountIDParams) WithIncludeRetired(includeRetired *bool) *GetPaymentMethodByAccountIDParams
- func (o *GetPaymentMethodByAccountIDParams) WithOffset(offset *int32) *GetPaymentMethodByAccountIDParams
- func (o *GetPaymentMethodByAccountIDParams) WithOrder(order *string) *GetPaymentMethodByAccountIDParams
- func (o *GetPaymentMethodByAccountIDParams) WithOrderBy(orderBy *string) *GetPaymentMethodByAccountIDParams
- func (o *GetPaymentMethodByAccountIDParams) WithOrganizations(organizations []string) *GetPaymentMethodByAccountIDParams
- func (o *GetPaymentMethodByAccountIDParams) WithRecords(records *int32) *GetPaymentMethodByAccountIDParams
- func (o *GetPaymentMethodByAccountIDParams) WithTimeout(timeout time.Duration) *GetPaymentMethodByAccountIDParams
- func (o *GetPaymentMethodByAccountIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPaymentMethodByAccountIDReader
- type GetPaymentMethodByIDDefault
- type GetPaymentMethodByIDOK
- type GetPaymentMethodByIDParams
- func NewGetPaymentMethodByIDParams() *GetPaymentMethodByIDParams
- func NewGetPaymentMethodByIDParamsWithContext(ctx context.Context) *GetPaymentMethodByIDParams
- func NewGetPaymentMethodByIDParamsWithHTTPClient(client *http.Client) *GetPaymentMethodByIDParams
- func NewGetPaymentMethodByIDParamsWithTimeout(timeout time.Duration) *GetPaymentMethodByIDParams
- func (o *GetPaymentMethodByIDParams) SetContext(ctx context.Context)
- func (o *GetPaymentMethodByIDParams) SetHTTPClient(client *http.Client)
- func (o *GetPaymentMethodByIDParams) SetOrganizations(organizations []string)
- func (o *GetPaymentMethodByIDParams) SetPaymentMethodID(paymentMethodID string)
- func (o *GetPaymentMethodByIDParams) SetTimeout(timeout time.Duration)
- func (o *GetPaymentMethodByIDParams) WithContext(ctx context.Context) *GetPaymentMethodByIDParams
- func (o *GetPaymentMethodByIDParams) WithHTTPClient(client *http.Client) *GetPaymentMethodByIDParams
- func (o *GetPaymentMethodByIDParams) WithOrganizations(organizations []string) *GetPaymentMethodByIDParams
- func (o *GetPaymentMethodByIDParams) WithPaymentMethodID(paymentMethodID string) *GetPaymentMethodByIDParams
- func (o *GetPaymentMethodByIDParams) WithTimeout(timeout time.Duration) *GetPaymentMethodByIDParams
- func (o *GetPaymentMethodByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPaymentMethodByIDReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for payment methods API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new payment methods API client.
func (*Client) DeletePaymentMethod ¶
func (a *Client) DeletePaymentMethod(params *DeletePaymentMethodParams) (*DeletePaymentMethodOK, error)
DeletePaymentMethod deletes the payment method specified by the payment method ID parameter
{"nickname":"Delete payment method","response":"deletePaymentMethod.html"}
func (*Client) GetAllPaymentMethods ¶
func (a *Client) GetAllPaymentMethods(params *GetAllPaymentMethodsParams) (*GetAllPaymentMethodsOK, error)
GetAllPaymentMethods returns a collection of all payment methods by default 10 values are returned records are returned in natural order
{"nickname":"Get all payment methods","response":"getPaymentMethodAll.html"}
func (*Client) GetPaymentMethodByAccountID ¶
func (a *Client) GetPaymentMethodByAccountID(params *GetPaymentMethodByAccountIDParams) (*GetPaymentMethodByAccountIDOK, error)
GetPaymentMethodByAccountID returns a collection of payment methods specified by the account ID parameter by default 10 values are returned records are returned in natural order
{"nickname":"Retrieve by account","response":"getPaymentMethodByAccount.html"}
func (*Client) GetPaymentMethodByID ¶
func (a *Client) GetPaymentMethodByID(params *GetPaymentMethodByIDParams) (*GetPaymentMethodByIDOK, error)
GetPaymentMethodByID returns a single payment method specified by the payment method ID parameter
{"nickname":"Get existing payment method","response":"getPaymentMethodByID.html"}
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type DeletePaymentMethodDefault ¶
type DeletePaymentMethodDefault struct { Payload *models.BFError // contains filtered or unexported fields }
DeletePaymentMethodDefault handles this case with default header values.
error
func NewDeletePaymentMethodDefault ¶
func NewDeletePaymentMethodDefault(code int) *DeletePaymentMethodDefault
NewDeletePaymentMethodDefault creates a DeletePaymentMethodDefault with default headers values
func (*DeletePaymentMethodDefault) Code ¶
func (o *DeletePaymentMethodDefault) Code() int
Code gets the status code for the delete payment method default response
func (*DeletePaymentMethodDefault) Error ¶
func (o *DeletePaymentMethodDefault) Error() string
type DeletePaymentMethodOK ¶
type DeletePaymentMethodOK struct {
Payload *models.PaymentMethodPagedMetadata
}
DeletePaymentMethodOK handles this case with default header values.
success
func NewDeletePaymentMethodOK ¶
func NewDeletePaymentMethodOK() *DeletePaymentMethodOK
NewDeletePaymentMethodOK creates a DeletePaymentMethodOK with default headers values
func (*DeletePaymentMethodOK) Error ¶
func (o *DeletePaymentMethodOK) Error() string
type DeletePaymentMethodParams ¶
type DeletePaymentMethodParams struct { /*Organizations A list of organization-IDs used to restrict the scope of API calls. */ Organizations []string /*PaymentMethodID*/ PaymentMethodID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeletePaymentMethodParams contains all the parameters to send to the API endpoint for the delete payment method operation typically these are written to a http.Request
func NewDeletePaymentMethodParams ¶
func NewDeletePaymentMethodParams() *DeletePaymentMethodParams
NewDeletePaymentMethodParams creates a new DeletePaymentMethodParams object with the default values initialized.
func NewDeletePaymentMethodParamsWithContext ¶
func NewDeletePaymentMethodParamsWithContext(ctx context.Context) *DeletePaymentMethodParams
NewDeletePaymentMethodParamsWithContext creates a new DeletePaymentMethodParams object with the default values initialized, and the ability to set a context for a request
func NewDeletePaymentMethodParamsWithHTTPClient ¶
func NewDeletePaymentMethodParamsWithHTTPClient(client *http.Client) *DeletePaymentMethodParams
NewDeletePaymentMethodParamsWithHTTPClient creates a new DeletePaymentMethodParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeletePaymentMethodParamsWithTimeout ¶
func NewDeletePaymentMethodParamsWithTimeout(timeout time.Duration) *DeletePaymentMethodParams
NewDeletePaymentMethodParamsWithTimeout creates a new DeletePaymentMethodParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeletePaymentMethodParams) SetContext ¶
func (o *DeletePaymentMethodParams) SetContext(ctx context.Context)
SetContext adds the context to the delete payment method params
func (*DeletePaymentMethodParams) SetHTTPClient ¶
func (o *DeletePaymentMethodParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete payment method params
func (*DeletePaymentMethodParams) SetOrganizations ¶
func (o *DeletePaymentMethodParams) SetOrganizations(organizations []string)
SetOrganizations adds the organizations to the delete payment method params
func (*DeletePaymentMethodParams) SetPaymentMethodID ¶
func (o *DeletePaymentMethodParams) SetPaymentMethodID(paymentMethodID string)
SetPaymentMethodID adds the paymentMethodId to the delete payment method params
func (*DeletePaymentMethodParams) SetTimeout ¶
func (o *DeletePaymentMethodParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete payment method params
func (*DeletePaymentMethodParams) WithContext ¶
func (o *DeletePaymentMethodParams) WithContext(ctx context.Context) *DeletePaymentMethodParams
WithContext adds the context to the delete payment method params
func (*DeletePaymentMethodParams) WithHTTPClient ¶
func (o *DeletePaymentMethodParams) WithHTTPClient(client *http.Client) *DeletePaymentMethodParams
WithHTTPClient adds the HTTPClient to the delete payment method params
func (*DeletePaymentMethodParams) WithOrganizations ¶
func (o *DeletePaymentMethodParams) WithOrganizations(organizations []string) *DeletePaymentMethodParams
WithOrganizations adds the organizations to the delete payment method params
func (*DeletePaymentMethodParams) WithPaymentMethodID ¶
func (o *DeletePaymentMethodParams) WithPaymentMethodID(paymentMethodID string) *DeletePaymentMethodParams
WithPaymentMethodID adds the paymentMethodID to the delete payment method params
func (*DeletePaymentMethodParams) WithTimeout ¶
func (o *DeletePaymentMethodParams) WithTimeout(timeout time.Duration) *DeletePaymentMethodParams
WithTimeout adds the timeout to the delete payment method params
func (*DeletePaymentMethodParams) WriteToRequest ¶
func (o *DeletePaymentMethodParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeletePaymentMethodReader ¶
type DeletePaymentMethodReader struct {
// contains filtered or unexported fields
}
DeletePaymentMethodReader is a Reader for the DeletePaymentMethod structure.
func (*DeletePaymentMethodReader) ReadResponse ¶
func (o *DeletePaymentMethodReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetAllPaymentMethodsDefault ¶
type GetAllPaymentMethodsDefault struct { Payload *models.BFError // contains filtered or unexported fields }
GetAllPaymentMethodsDefault handles this case with default header values.
error
func NewGetAllPaymentMethodsDefault ¶
func NewGetAllPaymentMethodsDefault(code int) *GetAllPaymentMethodsDefault
NewGetAllPaymentMethodsDefault creates a GetAllPaymentMethodsDefault with default headers values
func (*GetAllPaymentMethodsDefault) Code ¶
func (o *GetAllPaymentMethodsDefault) Code() int
Code gets the status code for the get all payment methods default response
func (*GetAllPaymentMethodsDefault) Error ¶
func (o *GetAllPaymentMethodsDefault) Error() string
type GetAllPaymentMethodsOK ¶
type GetAllPaymentMethodsOK struct {
Payload *models.PaymentMethodPagedMetadata
}
GetAllPaymentMethodsOK handles this case with default header values.
success
func NewGetAllPaymentMethodsOK ¶
func NewGetAllPaymentMethodsOK() *GetAllPaymentMethodsOK
NewGetAllPaymentMethodsOK creates a GetAllPaymentMethodsOK with default headers values
func (*GetAllPaymentMethodsOK) Error ¶
func (o *GetAllPaymentMethodsOK) Error() string
type GetAllPaymentMethodsParams ¶
type GetAllPaymentMethodsParams struct { /*IncludeRetired Whether retired products should be returned. */ IncludeRetired *bool /*Offset The offset from the first payment-method to return. */ Offset *int32 /*Order Ihe direction of any ordering, either ASC or DESC. */ Order *string /*OrderBy Specify a field used to order the result set. */ OrderBy *string /*Organizations A list of organization-IDs used to restrict the scope of API calls. */ Organizations []string /*Records The maximum number of payment-methods to return. */ Records *int32 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetAllPaymentMethodsParams contains all the parameters to send to the API endpoint for the get all payment methods operation typically these are written to a http.Request
func NewGetAllPaymentMethodsParams ¶
func NewGetAllPaymentMethodsParams() *GetAllPaymentMethodsParams
NewGetAllPaymentMethodsParams creates a new GetAllPaymentMethodsParams object with the default values initialized.
func NewGetAllPaymentMethodsParamsWithContext ¶
func NewGetAllPaymentMethodsParamsWithContext(ctx context.Context) *GetAllPaymentMethodsParams
NewGetAllPaymentMethodsParamsWithContext creates a new GetAllPaymentMethodsParams object with the default values initialized, and the ability to set a context for a request
func NewGetAllPaymentMethodsParamsWithHTTPClient ¶
func NewGetAllPaymentMethodsParamsWithHTTPClient(client *http.Client) *GetAllPaymentMethodsParams
NewGetAllPaymentMethodsParamsWithHTTPClient creates a new GetAllPaymentMethodsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetAllPaymentMethodsParamsWithTimeout ¶
func NewGetAllPaymentMethodsParamsWithTimeout(timeout time.Duration) *GetAllPaymentMethodsParams
NewGetAllPaymentMethodsParamsWithTimeout creates a new GetAllPaymentMethodsParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetAllPaymentMethodsParams) SetContext ¶
func (o *GetAllPaymentMethodsParams) SetContext(ctx context.Context)
SetContext adds the context to the get all payment methods params
func (*GetAllPaymentMethodsParams) SetHTTPClient ¶
func (o *GetAllPaymentMethodsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get all payment methods params
func (*GetAllPaymentMethodsParams) SetIncludeRetired ¶
func (o *GetAllPaymentMethodsParams) SetIncludeRetired(includeRetired *bool)
SetIncludeRetired adds the includeRetired to the get all payment methods params
func (*GetAllPaymentMethodsParams) SetOffset ¶
func (o *GetAllPaymentMethodsParams) SetOffset(offset *int32)
SetOffset adds the offset to the get all payment methods params
func (*GetAllPaymentMethodsParams) SetOrder ¶
func (o *GetAllPaymentMethodsParams) SetOrder(order *string)
SetOrder adds the order to the get all payment methods params
func (*GetAllPaymentMethodsParams) SetOrderBy ¶
func (o *GetAllPaymentMethodsParams) SetOrderBy(orderBy *string)
SetOrderBy adds the orderBy to the get all payment methods params
func (*GetAllPaymentMethodsParams) SetOrganizations ¶
func (o *GetAllPaymentMethodsParams) SetOrganizations(organizations []string)
SetOrganizations adds the organizations to the get all payment methods params
func (*GetAllPaymentMethodsParams) SetRecords ¶
func (o *GetAllPaymentMethodsParams) SetRecords(records *int32)
SetRecords adds the records to the get all payment methods params
func (*GetAllPaymentMethodsParams) SetTimeout ¶
func (o *GetAllPaymentMethodsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get all payment methods params
func (*GetAllPaymentMethodsParams) WithContext ¶
func (o *GetAllPaymentMethodsParams) WithContext(ctx context.Context) *GetAllPaymentMethodsParams
WithContext adds the context to the get all payment methods params
func (*GetAllPaymentMethodsParams) WithHTTPClient ¶
func (o *GetAllPaymentMethodsParams) WithHTTPClient(client *http.Client) *GetAllPaymentMethodsParams
WithHTTPClient adds the HTTPClient to the get all payment methods params
func (*GetAllPaymentMethodsParams) WithIncludeRetired ¶
func (o *GetAllPaymentMethodsParams) WithIncludeRetired(includeRetired *bool) *GetAllPaymentMethodsParams
WithIncludeRetired adds the includeRetired to the get all payment methods params
func (*GetAllPaymentMethodsParams) WithOffset ¶
func (o *GetAllPaymentMethodsParams) WithOffset(offset *int32) *GetAllPaymentMethodsParams
WithOffset adds the offset to the get all payment methods params
func (*GetAllPaymentMethodsParams) WithOrder ¶
func (o *GetAllPaymentMethodsParams) WithOrder(order *string) *GetAllPaymentMethodsParams
WithOrder adds the order to the get all payment methods params
func (*GetAllPaymentMethodsParams) WithOrderBy ¶
func (o *GetAllPaymentMethodsParams) WithOrderBy(orderBy *string) *GetAllPaymentMethodsParams
WithOrderBy adds the orderBy to the get all payment methods params
func (*GetAllPaymentMethodsParams) WithOrganizations ¶
func (o *GetAllPaymentMethodsParams) WithOrganizations(organizations []string) *GetAllPaymentMethodsParams
WithOrganizations adds the organizations to the get all payment methods params
func (*GetAllPaymentMethodsParams) WithRecords ¶
func (o *GetAllPaymentMethodsParams) WithRecords(records *int32) *GetAllPaymentMethodsParams
WithRecords adds the records to the get all payment methods params
func (*GetAllPaymentMethodsParams) WithTimeout ¶
func (o *GetAllPaymentMethodsParams) WithTimeout(timeout time.Duration) *GetAllPaymentMethodsParams
WithTimeout adds the timeout to the get all payment methods params
func (*GetAllPaymentMethodsParams) WriteToRequest ¶
func (o *GetAllPaymentMethodsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAllPaymentMethodsReader ¶
type GetAllPaymentMethodsReader struct {
// contains filtered or unexported fields
}
GetAllPaymentMethodsReader is a Reader for the GetAllPaymentMethods structure.
func (*GetAllPaymentMethodsReader) ReadResponse ¶
func (o *GetAllPaymentMethodsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPaymentMethodByAccountIDDefault ¶
type GetPaymentMethodByAccountIDDefault struct { Payload *models.BFError // contains filtered or unexported fields }
GetPaymentMethodByAccountIDDefault handles this case with default header values.
error
func NewGetPaymentMethodByAccountIDDefault ¶
func NewGetPaymentMethodByAccountIDDefault(code int) *GetPaymentMethodByAccountIDDefault
NewGetPaymentMethodByAccountIDDefault creates a GetPaymentMethodByAccountIDDefault with default headers values
func (*GetPaymentMethodByAccountIDDefault) Code ¶
func (o *GetPaymentMethodByAccountIDDefault) Code() int
Code gets the status code for the get payment method by account ID default response
func (*GetPaymentMethodByAccountIDDefault) Error ¶
func (o *GetPaymentMethodByAccountIDDefault) Error() string
type GetPaymentMethodByAccountIDOK ¶
type GetPaymentMethodByAccountIDOK struct {
Payload *models.PaymentMethodPagedMetadata
}
GetPaymentMethodByAccountIDOK handles this case with default header values.
success
func NewGetPaymentMethodByAccountIDOK ¶
func NewGetPaymentMethodByAccountIDOK() *GetPaymentMethodByAccountIDOK
NewGetPaymentMethodByAccountIDOK creates a GetPaymentMethodByAccountIDOK with default headers values
func (*GetPaymentMethodByAccountIDOK) Error ¶
func (o *GetPaymentMethodByAccountIDOK) Error() string
type GetPaymentMethodByAccountIDParams ¶
type GetPaymentMethodByAccountIDParams struct { /*AccountID*/ AccountID string /*DefaultOnly Whether only the defualt payment method should be returned. */ DefaultOnly *bool /*IncludeRetired Whether retired products should be returned. */ IncludeRetired *bool /*Offset The offset from the first payment-method to return. */ Offset *int32 /*Order Ihe direction of any ordering, either ASC or DESC. */ Order *string /*OrderBy Specify a field used to order the result set. */ OrderBy *string /*Organizations A list of organization-IDs used to restrict the scope of API calls. */ Organizations []string /*Records The maximum number of payment-methods to return. */ Records *int32 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPaymentMethodByAccountIDParams contains all the parameters to send to the API endpoint for the get payment method by account ID operation typically these are written to a http.Request
func NewGetPaymentMethodByAccountIDParams ¶
func NewGetPaymentMethodByAccountIDParams() *GetPaymentMethodByAccountIDParams
NewGetPaymentMethodByAccountIDParams creates a new GetPaymentMethodByAccountIDParams object with the default values initialized.
func NewGetPaymentMethodByAccountIDParamsWithContext ¶
func NewGetPaymentMethodByAccountIDParamsWithContext(ctx context.Context) *GetPaymentMethodByAccountIDParams
NewGetPaymentMethodByAccountIDParamsWithContext creates a new GetPaymentMethodByAccountIDParams object with the default values initialized, and the ability to set a context for a request
func NewGetPaymentMethodByAccountIDParamsWithHTTPClient ¶
func NewGetPaymentMethodByAccountIDParamsWithHTTPClient(client *http.Client) *GetPaymentMethodByAccountIDParams
NewGetPaymentMethodByAccountIDParamsWithHTTPClient creates a new GetPaymentMethodByAccountIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetPaymentMethodByAccountIDParamsWithTimeout ¶
func NewGetPaymentMethodByAccountIDParamsWithTimeout(timeout time.Duration) *GetPaymentMethodByAccountIDParams
NewGetPaymentMethodByAccountIDParamsWithTimeout creates a new GetPaymentMethodByAccountIDParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetPaymentMethodByAccountIDParams) SetAccountID ¶
func (o *GetPaymentMethodByAccountIDParams) SetAccountID(accountID string)
SetAccountID adds the accountId to the get payment method by account ID params
func (*GetPaymentMethodByAccountIDParams) SetContext ¶
func (o *GetPaymentMethodByAccountIDParams) SetContext(ctx context.Context)
SetContext adds the context to the get payment method by account ID params
func (*GetPaymentMethodByAccountIDParams) SetDefaultOnly ¶
func (o *GetPaymentMethodByAccountIDParams) SetDefaultOnly(defaultOnly *bool)
SetDefaultOnly adds the defaultOnly to the get payment method by account ID params
func (*GetPaymentMethodByAccountIDParams) SetHTTPClient ¶
func (o *GetPaymentMethodByAccountIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get payment method by account ID params
func (*GetPaymentMethodByAccountIDParams) SetIncludeRetired ¶
func (o *GetPaymentMethodByAccountIDParams) SetIncludeRetired(includeRetired *bool)
SetIncludeRetired adds the includeRetired to the get payment method by account ID params
func (*GetPaymentMethodByAccountIDParams) SetOffset ¶
func (o *GetPaymentMethodByAccountIDParams) SetOffset(offset *int32)
SetOffset adds the offset to the get payment method by account ID params
func (*GetPaymentMethodByAccountIDParams) SetOrder ¶
func (o *GetPaymentMethodByAccountIDParams) SetOrder(order *string)
SetOrder adds the order to the get payment method by account ID params
func (*GetPaymentMethodByAccountIDParams) SetOrderBy ¶
func (o *GetPaymentMethodByAccountIDParams) SetOrderBy(orderBy *string)
SetOrderBy adds the orderBy to the get payment method by account ID params
func (*GetPaymentMethodByAccountIDParams) SetOrganizations ¶
func (o *GetPaymentMethodByAccountIDParams) SetOrganizations(organizations []string)
SetOrganizations adds the organizations to the get payment method by account ID params
func (*GetPaymentMethodByAccountIDParams) SetRecords ¶
func (o *GetPaymentMethodByAccountIDParams) SetRecords(records *int32)
SetRecords adds the records to the get payment method by account ID params
func (*GetPaymentMethodByAccountIDParams) SetTimeout ¶
func (o *GetPaymentMethodByAccountIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get payment method by account ID params
func (*GetPaymentMethodByAccountIDParams) WithAccountID ¶
func (o *GetPaymentMethodByAccountIDParams) WithAccountID(accountID string) *GetPaymentMethodByAccountIDParams
WithAccountID adds the accountID to the get payment method by account ID params
func (*GetPaymentMethodByAccountIDParams) WithContext ¶
func (o *GetPaymentMethodByAccountIDParams) WithContext(ctx context.Context) *GetPaymentMethodByAccountIDParams
WithContext adds the context to the get payment method by account ID params
func (*GetPaymentMethodByAccountIDParams) WithDefaultOnly ¶
func (o *GetPaymentMethodByAccountIDParams) WithDefaultOnly(defaultOnly *bool) *GetPaymentMethodByAccountIDParams
WithDefaultOnly adds the defaultOnly to the get payment method by account ID params
func (*GetPaymentMethodByAccountIDParams) WithHTTPClient ¶
func (o *GetPaymentMethodByAccountIDParams) WithHTTPClient(client *http.Client) *GetPaymentMethodByAccountIDParams
WithHTTPClient adds the HTTPClient to the get payment method by account ID params
func (*GetPaymentMethodByAccountIDParams) WithIncludeRetired ¶
func (o *GetPaymentMethodByAccountIDParams) WithIncludeRetired(includeRetired *bool) *GetPaymentMethodByAccountIDParams
WithIncludeRetired adds the includeRetired to the get payment method by account ID params
func (*GetPaymentMethodByAccountIDParams) WithOffset ¶
func (o *GetPaymentMethodByAccountIDParams) WithOffset(offset *int32) *GetPaymentMethodByAccountIDParams
WithOffset adds the offset to the get payment method by account ID params
func (*GetPaymentMethodByAccountIDParams) WithOrder ¶
func (o *GetPaymentMethodByAccountIDParams) WithOrder(order *string) *GetPaymentMethodByAccountIDParams
WithOrder adds the order to the get payment method by account ID params
func (*GetPaymentMethodByAccountIDParams) WithOrderBy ¶
func (o *GetPaymentMethodByAccountIDParams) WithOrderBy(orderBy *string) *GetPaymentMethodByAccountIDParams
WithOrderBy adds the orderBy to the get payment method by account ID params
func (*GetPaymentMethodByAccountIDParams) WithOrganizations ¶
func (o *GetPaymentMethodByAccountIDParams) WithOrganizations(organizations []string) *GetPaymentMethodByAccountIDParams
WithOrganizations adds the organizations to the get payment method by account ID params
func (*GetPaymentMethodByAccountIDParams) WithRecords ¶
func (o *GetPaymentMethodByAccountIDParams) WithRecords(records *int32) *GetPaymentMethodByAccountIDParams
WithRecords adds the records to the get payment method by account ID params
func (*GetPaymentMethodByAccountIDParams) WithTimeout ¶
func (o *GetPaymentMethodByAccountIDParams) WithTimeout(timeout time.Duration) *GetPaymentMethodByAccountIDParams
WithTimeout adds the timeout to the get payment method by account ID params
func (*GetPaymentMethodByAccountIDParams) WriteToRequest ¶
func (o *GetPaymentMethodByAccountIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPaymentMethodByAccountIDReader ¶
type GetPaymentMethodByAccountIDReader struct {
// contains filtered or unexported fields
}
GetPaymentMethodByAccountIDReader is a Reader for the GetPaymentMethodByAccountID structure.
func (*GetPaymentMethodByAccountIDReader) ReadResponse ¶
func (o *GetPaymentMethodByAccountIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPaymentMethodByIDDefault ¶
type GetPaymentMethodByIDDefault struct { Payload *models.BFError // contains filtered or unexported fields }
GetPaymentMethodByIDDefault handles this case with default header values.
error
func NewGetPaymentMethodByIDDefault ¶
func NewGetPaymentMethodByIDDefault(code int) *GetPaymentMethodByIDDefault
NewGetPaymentMethodByIDDefault creates a GetPaymentMethodByIDDefault with default headers values
func (*GetPaymentMethodByIDDefault) Code ¶
func (o *GetPaymentMethodByIDDefault) Code() int
Code gets the status code for the get payment method by ID default response
func (*GetPaymentMethodByIDDefault) Error ¶
func (o *GetPaymentMethodByIDDefault) Error() string
type GetPaymentMethodByIDOK ¶
type GetPaymentMethodByIDOK struct {
Payload *models.PaymentMethodPagedMetadata
}
GetPaymentMethodByIDOK handles this case with default header values.
success
func NewGetPaymentMethodByIDOK ¶
func NewGetPaymentMethodByIDOK() *GetPaymentMethodByIDOK
NewGetPaymentMethodByIDOK creates a GetPaymentMethodByIDOK with default headers values
func (*GetPaymentMethodByIDOK) Error ¶
func (o *GetPaymentMethodByIDOK) Error() string
type GetPaymentMethodByIDParams ¶
type GetPaymentMethodByIDParams struct { /*Organizations A list of organization-IDs used to restrict the scope of API calls. */ Organizations []string /*PaymentMethodID*/ PaymentMethodID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPaymentMethodByIDParams contains all the parameters to send to the API endpoint for the get payment method by ID operation typically these are written to a http.Request
func NewGetPaymentMethodByIDParams ¶
func NewGetPaymentMethodByIDParams() *GetPaymentMethodByIDParams
NewGetPaymentMethodByIDParams creates a new GetPaymentMethodByIDParams object with the default values initialized.
func NewGetPaymentMethodByIDParamsWithContext ¶
func NewGetPaymentMethodByIDParamsWithContext(ctx context.Context) *GetPaymentMethodByIDParams
NewGetPaymentMethodByIDParamsWithContext creates a new GetPaymentMethodByIDParams object with the default values initialized, and the ability to set a context for a request
func NewGetPaymentMethodByIDParamsWithHTTPClient ¶
func NewGetPaymentMethodByIDParamsWithHTTPClient(client *http.Client) *GetPaymentMethodByIDParams
NewGetPaymentMethodByIDParamsWithHTTPClient creates a new GetPaymentMethodByIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetPaymentMethodByIDParamsWithTimeout ¶
func NewGetPaymentMethodByIDParamsWithTimeout(timeout time.Duration) *GetPaymentMethodByIDParams
NewGetPaymentMethodByIDParamsWithTimeout creates a new GetPaymentMethodByIDParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetPaymentMethodByIDParams) SetContext ¶
func (o *GetPaymentMethodByIDParams) SetContext(ctx context.Context)
SetContext adds the context to the get payment method by ID params
func (*GetPaymentMethodByIDParams) SetHTTPClient ¶
func (o *GetPaymentMethodByIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get payment method by ID params
func (*GetPaymentMethodByIDParams) SetOrganizations ¶
func (o *GetPaymentMethodByIDParams) SetOrganizations(organizations []string)
SetOrganizations adds the organizations to the get payment method by ID params
func (*GetPaymentMethodByIDParams) SetPaymentMethodID ¶
func (o *GetPaymentMethodByIDParams) SetPaymentMethodID(paymentMethodID string)
SetPaymentMethodID adds the paymentMethodId to the get payment method by ID params
func (*GetPaymentMethodByIDParams) SetTimeout ¶
func (o *GetPaymentMethodByIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get payment method by ID params
func (*GetPaymentMethodByIDParams) WithContext ¶
func (o *GetPaymentMethodByIDParams) WithContext(ctx context.Context) *GetPaymentMethodByIDParams
WithContext adds the context to the get payment method by ID params
func (*GetPaymentMethodByIDParams) WithHTTPClient ¶
func (o *GetPaymentMethodByIDParams) WithHTTPClient(client *http.Client) *GetPaymentMethodByIDParams
WithHTTPClient adds the HTTPClient to the get payment method by ID params
func (*GetPaymentMethodByIDParams) WithOrganizations ¶
func (o *GetPaymentMethodByIDParams) WithOrganizations(organizations []string) *GetPaymentMethodByIDParams
WithOrganizations adds the organizations to the get payment method by ID params
func (*GetPaymentMethodByIDParams) WithPaymentMethodID ¶
func (o *GetPaymentMethodByIDParams) WithPaymentMethodID(paymentMethodID string) *GetPaymentMethodByIDParams
WithPaymentMethodID adds the paymentMethodID to the get payment method by ID params
func (*GetPaymentMethodByIDParams) WithTimeout ¶
func (o *GetPaymentMethodByIDParams) WithTimeout(timeout time.Duration) *GetPaymentMethodByIDParams
WithTimeout adds the timeout to the get payment method by ID params
func (*GetPaymentMethodByIDParams) WriteToRequest ¶
func (o *GetPaymentMethodByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPaymentMethodByIDReader ¶
type GetPaymentMethodByIDReader struct {
// contains filtered or unexported fields
}
GetPaymentMethodByIDReader is a Reader for the GetPaymentMethodByID structure.
func (*GetPaymentMethodByIDReader) ReadResponse ¶
func (o *GetPaymentMethodByIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files
¶
- delete_payment_method_parameters.go
- delete_payment_method_responses.go
- get_all_payment_methods_parameters.go
- get_all_payment_methods_responses.go
- get_payment_method_by_account_id_parameters.go
- get_payment_method_by_account_id_responses.go
- get_payment_method_by_id_parameters.go
- get_payment_method_by_id_responses.go
- payment_methods_client.go