google

package
v0.0.0-...-2f60d0a Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 google API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) VerifyGooglePlayPurchase

func (a *Client) VerifyGooglePlayPurchase(params *VerifyGooglePlayPurchaseParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*VerifyGooglePlayPurchaseOK, error)

VerifyGooglePlayPurchase googles play purchase verification service

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	VerifyGooglePlayPurchase(params *VerifyGooglePlayPurchaseParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*VerifyGooglePlayPurchaseOK, 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 google API client.

type VerifyGooglePlayPurchaseDefault

type VerifyGooglePlayPurchaseDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}
VerifyGooglePlayPurchaseDefault describes a response with status code -1, with default header values.

error

func NewVerifyGooglePlayPurchaseDefault

func NewVerifyGooglePlayPurchaseDefault(code int) *VerifyGooglePlayPurchaseDefault

NewVerifyGooglePlayPurchaseDefault creates a VerifyGooglePlayPurchaseDefault with default headers values

func (*VerifyGooglePlayPurchaseDefault) Code

Code gets the status code for the verify google play purchase default response

func (*VerifyGooglePlayPurchaseDefault) Error

func (*VerifyGooglePlayPurchaseDefault) GetPayload

func (o *VerifyGooglePlayPurchaseDefault) GetPayload() *models.Error

type VerifyGooglePlayPurchaseOK

type VerifyGooglePlayPurchaseOK struct {
}
VerifyGooglePlayPurchaseOK describes a response with status code 200, with default header values.

OK

func NewVerifyGooglePlayPurchaseOK

func NewVerifyGooglePlayPurchaseOK() *VerifyGooglePlayPurchaseOK

NewVerifyGooglePlayPurchaseOK creates a VerifyGooglePlayPurchaseOK with default headers values

func (*VerifyGooglePlayPurchaseOK) Error

type VerifyGooglePlayPurchaseParams

type VerifyGooglePlayPurchaseParams struct {

	// Request.
	Request *models.GooglePlayPurchaseVerificationRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

VerifyGooglePlayPurchaseParams contains all the parameters to send to the API endpoint

for the verify google play purchase operation.

Typically these are written to a http.Request.

func NewVerifyGooglePlayPurchaseParams

func NewVerifyGooglePlayPurchaseParams() *VerifyGooglePlayPurchaseParams

NewVerifyGooglePlayPurchaseParams creates a new VerifyGooglePlayPurchaseParams 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 NewVerifyGooglePlayPurchaseParamsWithContext

func NewVerifyGooglePlayPurchaseParamsWithContext(ctx context.Context) *VerifyGooglePlayPurchaseParams

NewVerifyGooglePlayPurchaseParamsWithContext creates a new VerifyGooglePlayPurchaseParams object with the ability to set a context for a request.

func NewVerifyGooglePlayPurchaseParamsWithHTTPClient

func NewVerifyGooglePlayPurchaseParamsWithHTTPClient(client *http.Client) *VerifyGooglePlayPurchaseParams

NewVerifyGooglePlayPurchaseParamsWithHTTPClient creates a new VerifyGooglePlayPurchaseParams object with the ability to set a custom HTTPClient for a request.

func NewVerifyGooglePlayPurchaseParamsWithTimeout

func NewVerifyGooglePlayPurchaseParamsWithTimeout(timeout time.Duration) *VerifyGooglePlayPurchaseParams

NewVerifyGooglePlayPurchaseParamsWithTimeout creates a new VerifyGooglePlayPurchaseParams object with the ability to set a timeout on a request.

func (*VerifyGooglePlayPurchaseParams) SetContext

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

SetContext adds the context to the verify google play purchase params

func (*VerifyGooglePlayPurchaseParams) SetDefaults

func (o *VerifyGooglePlayPurchaseParams) SetDefaults()

SetDefaults hydrates default values in the verify google play purchase params (not the query body).

All values with no default are reset to their zero value.

func (*VerifyGooglePlayPurchaseParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the verify google play purchase params

func (*VerifyGooglePlayPurchaseParams) SetRequest

SetRequest adds the request to the verify google play purchase params

func (*VerifyGooglePlayPurchaseParams) SetTimeout

func (o *VerifyGooglePlayPurchaseParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the verify google play purchase params

func (*VerifyGooglePlayPurchaseParams) WithContext

WithContext adds the context to the verify google play purchase params

func (*VerifyGooglePlayPurchaseParams) WithDefaults

WithDefaults hydrates default values in the verify google play purchase params (not the query body).

All values with no default are reset to their zero value.

func (*VerifyGooglePlayPurchaseParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the verify google play purchase params

func (*VerifyGooglePlayPurchaseParams) WithRequest

WithRequest adds the request to the verify google play purchase params

func (*VerifyGooglePlayPurchaseParams) WithTimeout

WithTimeout adds the timeout to the verify google play purchase params

func (*VerifyGooglePlayPurchaseParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type VerifyGooglePlayPurchaseReader

type VerifyGooglePlayPurchaseReader struct {
	// contains filtered or unexported fields
}

VerifyGooglePlayPurchaseReader is a Reader for the VerifyGooglePlayPurchase structure.

func (*VerifyGooglePlayPurchaseReader) ReadResponse

func (o *VerifyGooglePlayPurchaseReader) 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