Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type RegisterDomainOK
- type RegisterDomainParams
- func NewRegisterDomainParams() *RegisterDomainParams
- func NewRegisterDomainParamsWithContext(ctx context.Context) *RegisterDomainParams
- func NewRegisterDomainParamsWithHTTPClient(client *http.Client) *RegisterDomainParams
- func NewRegisterDomainParamsWithTimeout(timeout time.Duration) *RegisterDomainParams
- func (o *RegisterDomainParams) SetBody(body *models.RegisterDomainRequest)
- func (o *RegisterDomainParams) SetContext(ctx context.Context)
- func (o *RegisterDomainParams) SetDefaults()
- func (o *RegisterDomainParams) SetHTTPClient(client *http.Client)
- func (o *RegisterDomainParams) SetTimeout(timeout time.Duration)
- func (o *RegisterDomainParams) WithBody(body *models.RegisterDomainRequest) *RegisterDomainParams
- func (o *RegisterDomainParams) WithContext(ctx context.Context) *RegisterDomainParams
- func (o *RegisterDomainParams) WithDefaults() *RegisterDomainParams
- func (o *RegisterDomainParams) WithHTTPClient(client *http.Client) *RegisterDomainParams
- func (o *RegisterDomainParams) WithTimeout(timeout time.Duration) *RegisterDomainParams
- func (o *RegisterDomainParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RegisterDomainReader
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 apple pay API
func (*Client) RegisterDomain ¶
func (a *Client) RegisterDomain(params *RegisterDomainParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RegisterDomainOK, error)
RegisterDomain registers domain Activates a domain for use with Web Apple Pay and Square. A validation
will be performed on this domain by Apple to ensure is it properly set up as an Apple Pay enabled domain.
This endpoint provides an easy way for platform developers to bulk activate Web Apple Pay with Square for merchants using their platform.
To learn more about Apple Pay on Web see the Apple Pay section in the [Square Payment Form Walkthrough](/docs/payment-form/payment-form-walkthrough).
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { RegisterDomain(params *RegisterDomainParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RegisterDomainOK, 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 apple pay API client.
type RegisterDomainOK ¶
type RegisterDomainOK struct {
Payload *models.RegisterDomainResponse
}
RegisterDomainOK describes a response with status code 200, with default header values.
Success
func NewRegisterDomainOK ¶
func NewRegisterDomainOK() *RegisterDomainOK
NewRegisterDomainOK creates a RegisterDomainOK with default headers values
func (*RegisterDomainOK) Error ¶
func (o *RegisterDomainOK) Error() string
func (*RegisterDomainOK) GetPayload ¶
func (o *RegisterDomainOK) GetPayload() *models.RegisterDomainResponse
type RegisterDomainParams ¶
type RegisterDomainParams struct { /* Body. An object containing the fields to POST for the request. See the corresponding object definition for field details. */ Body *models.RegisterDomainRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RegisterDomainParams contains all the parameters to send to the API endpoint
for the register domain operation. Typically these are written to a http.Request.
func NewRegisterDomainParams ¶
func NewRegisterDomainParams() *RegisterDomainParams
NewRegisterDomainParams creates a new RegisterDomainParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewRegisterDomainParamsWithContext ¶
func NewRegisterDomainParamsWithContext(ctx context.Context) *RegisterDomainParams
NewRegisterDomainParamsWithContext creates a new RegisterDomainParams object with the ability to set a context for a request.
func NewRegisterDomainParamsWithHTTPClient ¶
func NewRegisterDomainParamsWithHTTPClient(client *http.Client) *RegisterDomainParams
NewRegisterDomainParamsWithHTTPClient creates a new RegisterDomainParams object with the ability to set a custom HTTPClient for a request.
func NewRegisterDomainParamsWithTimeout ¶
func NewRegisterDomainParamsWithTimeout(timeout time.Duration) *RegisterDomainParams
NewRegisterDomainParamsWithTimeout creates a new RegisterDomainParams object with the ability to set a timeout on a request.
func (*RegisterDomainParams) SetBody ¶
func (o *RegisterDomainParams) SetBody(body *models.RegisterDomainRequest)
SetBody adds the body to the register domain params
func (*RegisterDomainParams) SetContext ¶
func (o *RegisterDomainParams) SetContext(ctx context.Context)
SetContext adds the context to the register domain params
func (*RegisterDomainParams) SetDefaults ¶
func (o *RegisterDomainParams) SetDefaults()
SetDefaults hydrates default values in the register domain params (not the query body).
All values with no default are reset to their zero value.
func (*RegisterDomainParams) SetHTTPClient ¶
func (o *RegisterDomainParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the register domain params
func (*RegisterDomainParams) SetTimeout ¶
func (o *RegisterDomainParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the register domain params
func (*RegisterDomainParams) WithBody ¶
func (o *RegisterDomainParams) WithBody(body *models.RegisterDomainRequest) *RegisterDomainParams
WithBody adds the body to the register domain params
func (*RegisterDomainParams) WithContext ¶
func (o *RegisterDomainParams) WithContext(ctx context.Context) *RegisterDomainParams
WithContext adds the context to the register domain params
func (*RegisterDomainParams) WithDefaults ¶
func (o *RegisterDomainParams) WithDefaults() *RegisterDomainParams
WithDefaults hydrates default values in the register domain params (not the query body).
All values with no default are reset to their zero value.
func (*RegisterDomainParams) WithHTTPClient ¶
func (o *RegisterDomainParams) WithHTTPClient(client *http.Client) *RegisterDomainParams
WithHTTPClient adds the HTTPClient to the register domain params
func (*RegisterDomainParams) WithTimeout ¶
func (o *RegisterDomainParams) WithTimeout(timeout time.Duration) *RegisterDomainParams
WithTimeout adds the timeout to the register domain params
func (*RegisterDomainParams) WriteToRequest ¶
func (o *RegisterDomainParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RegisterDomainReader ¶
type RegisterDomainReader struct {
// contains filtered or unexported fields
}
RegisterDomainReader is a Reader for the RegisterDomain structure.
func (*RegisterDomainReader) ReadResponse ¶
func (o *RegisterDomainReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.