goid_gojek_go

package module
v0.0.0-...-7aef1de Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: MIT Imports: 22 Imported by: 0

README

Go API client for goid_gojek_go

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.0.1
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import sw "./goid_gojek_go"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value sw.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), sw.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value sw.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), sw.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), sw.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), sw.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to https://goid.gojekapi.com

Class Method HTTP request Description
TokenApi GenerateToken Post /goid/token POST token
TokenApi LoginRequest Post /goid/login/request POST request

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKeys takes a string apikey as authentication for the request
	ContextAPIKeys = contextKey("apiKeys")

	// ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request.
	ContextHttpSignatureAuth = contextKey("httpsignature")

	// ContextServerIndex uses a server configuration from the index.
	ContextServerIndex = contextKey("serverIndex")

	// ContextOperationServerIndices uses a server configuration from the index mapping.
	ContextOperationServerIndices = contextKey("serverOperationIndices")

	// ContextServerVariables overrides a server configuration variables.
	ContextServerVariables = contextKey("serverVariables")

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	TokenApi *TokenApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the goid.gojekapi.com API v1.0.1 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type ApiGenerateTokenRequest

type ApiGenerateTokenRequest struct {
	ApiService *TokenApiService
	// contains filtered or unexported fields
}

func (ApiGenerateTokenRequest) Execute

func (ApiGenerateTokenRequest) GenerateTokenRequest

func (r ApiGenerateTokenRequest) GenerateTokenRequest(generateTokenRequest GenerateTokenRequest) ApiGenerateTokenRequest

func (ApiGenerateTokenRequest) XAppid

func (ApiGenerateTokenRequest) XAppversion

func (r ApiGenerateTokenRequest) XAppversion(xAppversion string) ApiGenerateTokenRequest

func (ApiGenerateTokenRequest) XDeviceos

func (ApiGenerateTokenRequest) XPhonemake

func (r ApiGenerateTokenRequest) XPhonemake(xPhonemake string) ApiGenerateTokenRequest

func (ApiGenerateTokenRequest) XPhonemodel

func (r ApiGenerateTokenRequest) XPhonemodel(xPhonemodel string) ApiGenerateTokenRequest

func (ApiGenerateTokenRequest) XPlatform

func (ApiGenerateTokenRequest) XPushtokentype

func (r ApiGenerateTokenRequest) XPushtokentype(xPushtokentype string) ApiGenerateTokenRequest

func (ApiGenerateTokenRequest) XUniqueid

func (ApiGenerateTokenRequest) XUserType

type ApiLoginRequestRequest

type ApiLoginRequestRequest struct {
	ApiService *TokenApiService
	// contains filtered or unexported fields
}

func (ApiLoginRequestRequest) Execute

func (ApiLoginRequestRequest) LoginRequestBody

func (r ApiLoginRequestRequest) LoginRequestBody(loginRequestBody LoginRequestBody) ApiLoginRequestRequest

func (ApiLoginRequestRequest) XAppid

func (ApiLoginRequestRequest) XAppversion

func (r ApiLoginRequestRequest) XAppversion(xAppversion string) ApiLoginRequestRequest

func (ApiLoginRequestRequest) XDeviceos

func (r ApiLoginRequestRequest) XDeviceos(xDeviceos string) ApiLoginRequestRequest

func (ApiLoginRequestRequest) XPhonemake

func (r ApiLoginRequestRequest) XPhonemake(xPhonemake string) ApiLoginRequestRequest

func (ApiLoginRequestRequest) XPhonemodel

func (r ApiLoginRequestRequest) XPhonemodel(xPhonemodel string) ApiLoginRequestRequest

func (ApiLoginRequestRequest) XPlatform

func (r ApiLoginRequestRequest) XPlatform(xPlatform string) ApiLoginRequestRequest

func (ApiLoginRequestRequest) XPushtokentype

func (r ApiLoginRequestRequest) XPushtokentype(xPushtokentype string) ApiLoginRequestRequest

func (ApiLoginRequestRequest) XUniqueid

func (r ApiLoginRequestRequest) XUniqueid(xUniqueid string) ApiLoginRequestRequest

func (ApiLoginRequestRequest) XUserType

func (r ApiLoginRequestRequest) XUserType(xUserType string) ApiLoginRequestRequest

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type Configuration

type Configuration struct {
	Host             string            `json:"host,omitempty"`
	Scheme           string            `json:"scheme,omitempty"`
	DefaultHeader    map[string]string `json:"defaultHeader,omitempty"`
	UserAgent        string            `json:"userAgent,omitempty"`
	Debug            bool              `json:"debug,omitempty"`
	Servers          ServerConfigurations
	OperationServers map[string]ServerConfigurations
	HTTPClient       *http.Client
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

ServerURLWithContext returns a new server URL given an endpoint

type GenerateTokenRequest

type GenerateTokenRequest struct {
	ClientId     *string        `json:"client_id,omitempty"`
	ClientSecret *string        `json:"client_secret,omitempty"`
	Data         *GoidTokenData `json:"data,omitempty"`
	GrantType    *string        `json:"grant_type,omitempty"`
	Scopes       *[]interface{} `json:"scopes,omitempty"`
}

GenerateTokenRequest struct for GenerateTokenRequest

func NewGenerateTokenRequest

func NewGenerateTokenRequest() *GenerateTokenRequest

NewGenerateTokenRequest instantiates a new GenerateTokenRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGenerateTokenRequestWithDefaults

func NewGenerateTokenRequestWithDefaults() *GenerateTokenRequest

NewGenerateTokenRequestWithDefaults instantiates a new GenerateTokenRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GenerateTokenRequest) GetClientId

func (o *GenerateTokenRequest) GetClientId() string

GetClientId returns the ClientId field value if set, zero value otherwise.

func (*GenerateTokenRequest) GetClientIdOk

func (o *GenerateTokenRequest) GetClientIdOk() (*string, bool)

GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GenerateTokenRequest) GetClientSecret

func (o *GenerateTokenRequest) GetClientSecret() string

GetClientSecret returns the ClientSecret field value if set, zero value otherwise.

func (*GenerateTokenRequest) GetClientSecretOk

func (o *GenerateTokenRequest) GetClientSecretOk() (*string, bool)

GetClientSecretOk returns a tuple with the ClientSecret field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GenerateTokenRequest) GetData

func (o *GenerateTokenRequest) GetData() GoidTokenData

GetData returns the Data field value if set, zero value otherwise.

func (*GenerateTokenRequest) GetDataOk

func (o *GenerateTokenRequest) GetDataOk() (*GoidTokenData, bool)

GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GenerateTokenRequest) GetGrantType

func (o *GenerateTokenRequest) GetGrantType() string

GetGrantType returns the GrantType field value if set, zero value otherwise.

func (*GenerateTokenRequest) GetGrantTypeOk

func (o *GenerateTokenRequest) GetGrantTypeOk() (*string, bool)

GetGrantTypeOk returns a tuple with the GrantType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GenerateTokenRequest) GetScopes

func (o *GenerateTokenRequest) GetScopes() []interface{}

GetScopes returns the Scopes field value if set, zero value otherwise.

func (*GenerateTokenRequest) GetScopesOk

func (o *GenerateTokenRequest) GetScopesOk() (*[]interface{}, bool)

GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GenerateTokenRequest) HasClientId

func (o *GenerateTokenRequest) HasClientId() bool

HasClientId returns a boolean if a field has been set.

func (*GenerateTokenRequest) HasClientSecret

func (o *GenerateTokenRequest) HasClientSecret() bool

HasClientSecret returns a boolean if a field has been set.

func (*GenerateTokenRequest) HasData

func (o *GenerateTokenRequest) HasData() bool

HasData returns a boolean if a field has been set.

func (*GenerateTokenRequest) HasGrantType

func (o *GenerateTokenRequest) HasGrantType() bool

HasGrantType returns a boolean if a field has been set.

func (*GenerateTokenRequest) HasScopes

func (o *GenerateTokenRequest) HasScopes() bool

HasScopes returns a boolean if a field has been set.

func (GenerateTokenRequest) MarshalJSON

func (o GenerateTokenRequest) MarshalJSON() ([]byte, error)

func (*GenerateTokenRequest) SetClientId

func (o *GenerateTokenRequest) SetClientId(v string)

SetClientId gets a reference to the given string and assigns it to the ClientId field.

func (*GenerateTokenRequest) SetClientSecret

func (o *GenerateTokenRequest) SetClientSecret(v string)

SetClientSecret gets a reference to the given string and assigns it to the ClientSecret field.

func (*GenerateTokenRequest) SetData

func (o *GenerateTokenRequest) SetData(v GoidTokenData)

SetData gets a reference to the given GoidTokenData and assigns it to the Data field.

func (*GenerateTokenRequest) SetGrantType

func (o *GenerateTokenRequest) SetGrantType(v string)

SetGrantType gets a reference to the given string and assigns it to the GrantType field.

func (*GenerateTokenRequest) SetScopes

func (o *GenerateTokenRequest) SetScopes(v []interface{})

SetScopes gets a reference to the given []interface{} and assigns it to the Scopes field.

type GenerateTokenResponse

type GenerateTokenResponse struct {
	AccessToken  *string                     `json:"access_token,omitempty"`
	RefreshToken *string                     `json:"refresh_token,omitempty"`
	DblEnabled   *bool                       `json:"dbl_enabled,omitempty"`
	Flags        *GenerateTokenResponseFlags `json:"flags,omitempty"`
}

GenerateTokenResponse struct for GenerateTokenResponse

func NewGenerateTokenResponse

func NewGenerateTokenResponse() *GenerateTokenResponse

NewGenerateTokenResponse instantiates a new GenerateTokenResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGenerateTokenResponseWithDefaults

func NewGenerateTokenResponseWithDefaults() *GenerateTokenResponse

NewGenerateTokenResponseWithDefaults instantiates a new GenerateTokenResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GenerateTokenResponse) GetAccessToken

func (o *GenerateTokenResponse) GetAccessToken() string

GetAccessToken returns the AccessToken field value if set, zero value otherwise.

func (*GenerateTokenResponse) GetAccessTokenOk

func (o *GenerateTokenResponse) GetAccessTokenOk() (*string, bool)

GetAccessTokenOk returns a tuple with the AccessToken field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GenerateTokenResponse) GetDblEnabled

func (o *GenerateTokenResponse) GetDblEnabled() bool

GetDblEnabled returns the DblEnabled field value if set, zero value otherwise.

func (*GenerateTokenResponse) GetDblEnabledOk

func (o *GenerateTokenResponse) GetDblEnabledOk() (*bool, bool)

GetDblEnabledOk returns a tuple with the DblEnabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GenerateTokenResponse) GetFlags

GetFlags returns the Flags field value if set, zero value otherwise.

func (*GenerateTokenResponse) GetFlagsOk

GetFlagsOk returns a tuple with the Flags field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GenerateTokenResponse) GetRefreshToken

func (o *GenerateTokenResponse) GetRefreshToken() string

GetRefreshToken returns the RefreshToken field value if set, zero value otherwise.

func (*GenerateTokenResponse) GetRefreshTokenOk

func (o *GenerateTokenResponse) GetRefreshTokenOk() (*string, bool)

GetRefreshTokenOk returns a tuple with the RefreshToken field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GenerateTokenResponse) HasAccessToken

func (o *GenerateTokenResponse) HasAccessToken() bool

HasAccessToken returns a boolean if a field has been set.

func (*GenerateTokenResponse) HasDblEnabled

func (o *GenerateTokenResponse) HasDblEnabled() bool

HasDblEnabled returns a boolean if a field has been set.

func (*GenerateTokenResponse) HasFlags

func (o *GenerateTokenResponse) HasFlags() bool

HasFlags returns a boolean if a field has been set.

func (*GenerateTokenResponse) HasRefreshToken

func (o *GenerateTokenResponse) HasRefreshToken() bool

HasRefreshToken returns a boolean if a field has been set.

func (GenerateTokenResponse) MarshalJSON

func (o GenerateTokenResponse) MarshalJSON() ([]byte, error)

func (*GenerateTokenResponse) SetAccessToken

func (o *GenerateTokenResponse) SetAccessToken(v string)

SetAccessToken gets a reference to the given string and assigns it to the AccessToken field.

func (*GenerateTokenResponse) SetDblEnabled

func (o *GenerateTokenResponse) SetDblEnabled(v bool)

SetDblEnabled gets a reference to the given bool and assigns it to the DblEnabled field.

func (*GenerateTokenResponse) SetFlags

SetFlags gets a reference to the given GenerateTokenResponseFlags and assigns it to the Flags field.

func (*GenerateTokenResponse) SetRefreshToken

func (o *GenerateTokenResponse) SetRefreshToken(v string)

SetRefreshToken gets a reference to the given string and assigns it to the RefreshToken field.

type GenerateTokenResponseFlags

type GenerateTokenResponseFlags struct {
	OnetapEligible *bool `json:"onetap_eligible,omitempty"`
	IsAppPinSet    *bool `json:"is_app_pin_set,omitempty"`
}

GenerateTokenResponseFlags struct for GenerateTokenResponseFlags

func NewGenerateTokenResponseFlags

func NewGenerateTokenResponseFlags() *GenerateTokenResponseFlags

NewGenerateTokenResponseFlags instantiates a new GenerateTokenResponseFlags object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGenerateTokenResponseFlagsWithDefaults

func NewGenerateTokenResponseFlagsWithDefaults() *GenerateTokenResponseFlags

NewGenerateTokenResponseFlagsWithDefaults instantiates a new GenerateTokenResponseFlags object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GenerateTokenResponseFlags) GetIsAppPinSet

func (o *GenerateTokenResponseFlags) GetIsAppPinSet() bool

GetIsAppPinSet returns the IsAppPinSet field value if set, zero value otherwise.

func (*GenerateTokenResponseFlags) GetIsAppPinSetOk

func (o *GenerateTokenResponseFlags) GetIsAppPinSetOk() (*bool, bool)

GetIsAppPinSetOk returns a tuple with the IsAppPinSet field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GenerateTokenResponseFlags) GetOnetapEligible

func (o *GenerateTokenResponseFlags) GetOnetapEligible() bool

GetOnetapEligible returns the OnetapEligible field value if set, zero value otherwise.

func (*GenerateTokenResponseFlags) GetOnetapEligibleOk

func (o *GenerateTokenResponseFlags) GetOnetapEligibleOk() (*bool, bool)

GetOnetapEligibleOk returns a tuple with the OnetapEligible field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GenerateTokenResponseFlags) HasIsAppPinSet

func (o *GenerateTokenResponseFlags) HasIsAppPinSet() bool

HasIsAppPinSet returns a boolean if a field has been set.

func (*GenerateTokenResponseFlags) HasOnetapEligible

func (o *GenerateTokenResponseFlags) HasOnetapEligible() bool

HasOnetapEligible returns a boolean if a field has been set.

func (GenerateTokenResponseFlags) MarshalJSON

func (o GenerateTokenResponseFlags) MarshalJSON() ([]byte, error)

func (*GenerateTokenResponseFlags) SetIsAppPinSet

func (o *GenerateTokenResponseFlags) SetIsAppPinSet(v bool)

SetIsAppPinSet gets a reference to the given bool and assigns it to the IsAppPinSet field.

func (*GenerateTokenResponseFlags) SetOnetapEligible

func (o *GenerateTokenResponseFlags) SetOnetapEligible(v bool)

SetOnetapEligible gets a reference to the given bool and assigns it to the OnetapEligible field.

type GenericOpenAPIError

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

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type GoidTokenData

type GoidTokenData struct {
	// OTP from whatsapp or SMS
	Otp *string `json:"otp,omitempty"`
	// OTP token from login request
	OtpToken *string `json:"otp_token,omitempty"`
}

GoidTokenData struct for GoidTokenData

func NewGoidTokenData

func NewGoidTokenData() *GoidTokenData

NewGoidTokenData instantiates a new GoidTokenData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGoidTokenDataWithDefaults

func NewGoidTokenDataWithDefaults() *GoidTokenData

NewGoidTokenDataWithDefaults instantiates a new GoidTokenData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GoidTokenData) GetOtp

func (o *GoidTokenData) GetOtp() string

GetOtp returns the Otp field value if set, zero value otherwise.

func (*GoidTokenData) GetOtpOk

func (o *GoidTokenData) GetOtpOk() (*string, bool)

GetOtpOk returns a tuple with the Otp field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GoidTokenData) GetOtpToken

func (o *GoidTokenData) GetOtpToken() string

GetOtpToken returns the OtpToken field value if set, zero value otherwise.

func (*GoidTokenData) GetOtpTokenOk

func (o *GoidTokenData) GetOtpTokenOk() (*string, bool)

GetOtpTokenOk returns a tuple with the OtpToken field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GoidTokenData) HasOtp

func (o *GoidTokenData) HasOtp() bool

HasOtp returns a boolean if a field has been set.

func (*GoidTokenData) HasOtpToken

func (o *GoidTokenData) HasOtpToken() bool

HasOtpToken returns a boolean if a field has been set.

func (GoidTokenData) MarshalJSON

func (o GoidTokenData) MarshalJSON() ([]byte, error)

func (*GoidTokenData) SetOtp

func (o *GoidTokenData) SetOtp(v string)

SetOtp gets a reference to the given string and assigns it to the Otp field.

func (*GoidTokenData) SetOtpToken

func (o *GoidTokenData) SetOtpToken(v string)

SetOtpToken gets a reference to the given string and assigns it to the OtpToken field.

type LoginRequestBody

type LoginRequestBody struct {
	ClientId     *string `json:"client_id,omitempty"`
	ClientSecret *string `json:"client_secret,omitempty"`
	CountryCode  *string `json:"country_code,omitempty"`
	// possible value: otp_whatsapp, sms
	LoginType    *string `json:"login_type,omitempty"`
	MagicLinkRef *string `json:"magic_link_ref,omitempty"`
	PhoneNumber  *string `json:"phone_number,omitempty"`
}

LoginRequestBody struct for LoginRequestBody

func NewLoginRequestBody

func NewLoginRequestBody() *LoginRequestBody

NewLoginRequestBody instantiates a new LoginRequestBody object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewLoginRequestBodyWithDefaults

func NewLoginRequestBodyWithDefaults() *LoginRequestBody

NewLoginRequestBodyWithDefaults instantiates a new LoginRequestBody object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*LoginRequestBody) GetClientId

func (o *LoginRequestBody) GetClientId() string

GetClientId returns the ClientId field value if set, zero value otherwise.

func (*LoginRequestBody) GetClientIdOk

func (o *LoginRequestBody) GetClientIdOk() (*string, bool)

GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LoginRequestBody) GetClientSecret

func (o *LoginRequestBody) GetClientSecret() string

GetClientSecret returns the ClientSecret field value if set, zero value otherwise.

func (*LoginRequestBody) GetClientSecretOk

func (o *LoginRequestBody) GetClientSecretOk() (*string, bool)

GetClientSecretOk returns a tuple with the ClientSecret field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LoginRequestBody) GetCountryCode

func (o *LoginRequestBody) GetCountryCode() string

GetCountryCode returns the CountryCode field value if set, zero value otherwise.

func (*LoginRequestBody) GetCountryCodeOk

func (o *LoginRequestBody) GetCountryCodeOk() (*string, bool)

GetCountryCodeOk returns a tuple with the CountryCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LoginRequestBody) GetLoginType

func (o *LoginRequestBody) GetLoginType() string

GetLoginType returns the LoginType field value if set, zero value otherwise.

func (*LoginRequestBody) GetLoginTypeOk

func (o *LoginRequestBody) GetLoginTypeOk() (*string, bool)

GetLoginTypeOk returns a tuple with the LoginType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LoginRequestBody) GetMagicLinkRef

func (o *LoginRequestBody) GetMagicLinkRef() string

GetMagicLinkRef returns the MagicLinkRef field value if set, zero value otherwise.

func (*LoginRequestBody) GetMagicLinkRefOk

func (o *LoginRequestBody) GetMagicLinkRefOk() (*string, bool)

GetMagicLinkRefOk returns a tuple with the MagicLinkRef field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LoginRequestBody) GetPhoneNumber

func (o *LoginRequestBody) GetPhoneNumber() string

GetPhoneNumber returns the PhoneNumber field value if set, zero value otherwise.

func (*LoginRequestBody) GetPhoneNumberOk

func (o *LoginRequestBody) GetPhoneNumberOk() (*string, bool)

GetPhoneNumberOk returns a tuple with the PhoneNumber field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LoginRequestBody) HasClientId

func (o *LoginRequestBody) HasClientId() bool

HasClientId returns a boolean if a field has been set.

func (*LoginRequestBody) HasClientSecret

func (o *LoginRequestBody) HasClientSecret() bool

HasClientSecret returns a boolean if a field has been set.

func (*LoginRequestBody) HasCountryCode

func (o *LoginRequestBody) HasCountryCode() bool

HasCountryCode returns a boolean if a field has been set.

func (*LoginRequestBody) HasLoginType

func (o *LoginRequestBody) HasLoginType() bool

HasLoginType returns a boolean if a field has been set.

func (*LoginRequestBody) HasMagicLinkRef

func (o *LoginRequestBody) HasMagicLinkRef() bool

HasMagicLinkRef returns a boolean if a field has been set.

func (*LoginRequestBody) HasPhoneNumber

func (o *LoginRequestBody) HasPhoneNumber() bool

HasPhoneNumber returns a boolean if a field has been set.

func (LoginRequestBody) MarshalJSON

func (o LoginRequestBody) MarshalJSON() ([]byte, error)

func (*LoginRequestBody) SetClientId

func (o *LoginRequestBody) SetClientId(v string)

SetClientId gets a reference to the given string and assigns it to the ClientId field.

func (*LoginRequestBody) SetClientSecret

func (o *LoginRequestBody) SetClientSecret(v string)

SetClientSecret gets a reference to the given string and assigns it to the ClientSecret field.

func (*LoginRequestBody) SetCountryCode

func (o *LoginRequestBody) SetCountryCode(v string)

SetCountryCode gets a reference to the given string and assigns it to the CountryCode field.

func (*LoginRequestBody) SetLoginType

func (o *LoginRequestBody) SetLoginType(v string)

SetLoginType gets a reference to the given string and assigns it to the LoginType field.

func (*LoginRequestBody) SetMagicLinkRef

func (o *LoginRequestBody) SetMagicLinkRef(v string)

SetMagicLinkRef gets a reference to the given string and assigns it to the MagicLinkRef field.

func (*LoginRequestBody) SetPhoneNumber

func (o *LoginRequestBody) SetPhoneNumber(v string)

SetPhoneNumber gets a reference to the given string and assigns it to the PhoneNumber field.

type LoginRequestResponse

type LoginRequestResponse struct {
	Data    *LoginRequestResponseData `json:"data,omitempty"`
	Success *bool                     `json:"success,omitempty"`
	Errors  *[]interface{}            `json:"errors,omitempty"`
}

LoginRequestResponse struct for LoginRequestResponse

func NewLoginRequestResponse

func NewLoginRequestResponse() *LoginRequestResponse

NewLoginRequestResponse instantiates a new LoginRequestResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewLoginRequestResponseWithDefaults

func NewLoginRequestResponseWithDefaults() *LoginRequestResponse

NewLoginRequestResponseWithDefaults instantiates a new LoginRequestResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*LoginRequestResponse) GetData

GetData returns the Data field value if set, zero value otherwise.

func (*LoginRequestResponse) GetDataOk

GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LoginRequestResponse) GetErrors

func (o *LoginRequestResponse) GetErrors() []interface{}

GetErrors returns the Errors field value if set, zero value otherwise.

func (*LoginRequestResponse) GetErrorsOk

func (o *LoginRequestResponse) GetErrorsOk() (*[]interface{}, bool)

GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LoginRequestResponse) GetSuccess

func (o *LoginRequestResponse) GetSuccess() bool

GetSuccess returns the Success field value if set, zero value otherwise.

func (*LoginRequestResponse) GetSuccessOk

func (o *LoginRequestResponse) GetSuccessOk() (*bool, bool)

GetSuccessOk returns a tuple with the Success field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LoginRequestResponse) HasData

func (o *LoginRequestResponse) HasData() bool

HasData returns a boolean if a field has been set.

func (*LoginRequestResponse) HasErrors

func (o *LoginRequestResponse) HasErrors() bool

HasErrors returns a boolean if a field has been set.

func (*LoginRequestResponse) HasSuccess

func (o *LoginRequestResponse) HasSuccess() bool

HasSuccess returns a boolean if a field has been set.

func (LoginRequestResponse) MarshalJSON

func (o LoginRequestResponse) MarshalJSON() ([]byte, error)

func (*LoginRequestResponse) SetData

SetData gets a reference to the given LoginRequestResponseData and assigns it to the Data field.

func (*LoginRequestResponse) SetErrors

func (o *LoginRequestResponse) SetErrors(v []interface{})

SetErrors gets a reference to the given []interface{} and assigns it to the Errors field.

func (*LoginRequestResponse) SetSuccess

func (o *LoginRequestResponse) SetSuccess(v bool)

SetSuccess gets a reference to the given bool and assigns it to the Success field.

type LoginRequestResponseData

type LoginRequestResponseData struct {
	OtpToken     *string                            `json:"otp_token,omitempty"`
	OtpExpiresIn *float32                           `json:"otp_expires_in,omitempty"`
	OtpLength    *float32                           `json:"otp_length,omitempty"`
	NextState    *LoginRequestResponseDataNextState `json:"next_state,omitempty"`
}

LoginRequestResponseData struct for LoginRequestResponseData

func NewLoginRequestResponseData

func NewLoginRequestResponseData() *LoginRequestResponseData

NewLoginRequestResponseData instantiates a new LoginRequestResponseData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewLoginRequestResponseDataWithDefaults

func NewLoginRequestResponseDataWithDefaults() *LoginRequestResponseData

NewLoginRequestResponseDataWithDefaults instantiates a new LoginRequestResponseData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*LoginRequestResponseData) GetNextState

GetNextState returns the NextState field value if set, zero value otherwise.

func (*LoginRequestResponseData) GetNextStateOk

GetNextStateOk returns a tuple with the NextState field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LoginRequestResponseData) GetOtpExpiresIn

func (o *LoginRequestResponseData) GetOtpExpiresIn() float32

GetOtpExpiresIn returns the OtpExpiresIn field value if set, zero value otherwise.

func (*LoginRequestResponseData) GetOtpExpiresInOk

func (o *LoginRequestResponseData) GetOtpExpiresInOk() (*float32, bool)

GetOtpExpiresInOk returns a tuple with the OtpExpiresIn field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LoginRequestResponseData) GetOtpLength

func (o *LoginRequestResponseData) GetOtpLength() float32

GetOtpLength returns the OtpLength field value if set, zero value otherwise.

func (*LoginRequestResponseData) GetOtpLengthOk

func (o *LoginRequestResponseData) GetOtpLengthOk() (*float32, bool)

GetOtpLengthOk returns a tuple with the OtpLength field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LoginRequestResponseData) GetOtpToken

func (o *LoginRequestResponseData) GetOtpToken() string

GetOtpToken returns the OtpToken field value if set, zero value otherwise.

func (*LoginRequestResponseData) GetOtpTokenOk

func (o *LoginRequestResponseData) GetOtpTokenOk() (*string, bool)

GetOtpTokenOk returns a tuple with the OtpToken field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LoginRequestResponseData) HasNextState

func (o *LoginRequestResponseData) HasNextState() bool

HasNextState returns a boolean if a field has been set.

func (*LoginRequestResponseData) HasOtpExpiresIn

func (o *LoginRequestResponseData) HasOtpExpiresIn() bool

HasOtpExpiresIn returns a boolean if a field has been set.

func (*LoginRequestResponseData) HasOtpLength

func (o *LoginRequestResponseData) HasOtpLength() bool

HasOtpLength returns a boolean if a field has been set.

func (*LoginRequestResponseData) HasOtpToken

func (o *LoginRequestResponseData) HasOtpToken() bool

HasOtpToken returns a boolean if a field has been set.

func (LoginRequestResponseData) MarshalJSON

func (o LoginRequestResponseData) MarshalJSON() ([]byte, error)

func (*LoginRequestResponseData) SetNextState

SetNextState gets a reference to the given LoginRequestResponseDataNextState and assigns it to the NextState field.

func (*LoginRequestResponseData) SetOtpExpiresIn

func (o *LoginRequestResponseData) SetOtpExpiresIn(v float32)

SetOtpExpiresIn gets a reference to the given float32 and assigns it to the OtpExpiresIn field.

func (*LoginRequestResponseData) SetOtpLength

func (o *LoginRequestResponseData) SetOtpLength(v float32)

SetOtpLength gets a reference to the given float32 and assigns it to the OtpLength field.

func (*LoginRequestResponseData) SetOtpToken

func (o *LoginRequestResponseData) SetOtpToken(v string)

SetOtpToken gets a reference to the given string and assigns it to the OtpToken field.

type LoginRequestResponseDataNextState

type LoginRequestResponseDataNextState struct {
	State          *string  `json:"state,omitempty"`
	Destination    *string  `json:"destination,omitempty"`
	TimerInSeconds *float32 `json:"timer_in_seconds,omitempty"`
}

LoginRequestResponseDataNextState struct for LoginRequestResponseDataNextState

func NewLoginRequestResponseDataNextState

func NewLoginRequestResponseDataNextState() *LoginRequestResponseDataNextState

NewLoginRequestResponseDataNextState instantiates a new LoginRequestResponseDataNextState object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewLoginRequestResponseDataNextStateWithDefaults

func NewLoginRequestResponseDataNextStateWithDefaults() *LoginRequestResponseDataNextState

NewLoginRequestResponseDataNextStateWithDefaults instantiates a new LoginRequestResponseDataNextState object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*LoginRequestResponseDataNextState) GetDestination

func (o *LoginRequestResponseDataNextState) GetDestination() string

GetDestination returns the Destination field value if set, zero value otherwise.

func (*LoginRequestResponseDataNextState) GetDestinationOk

func (o *LoginRequestResponseDataNextState) GetDestinationOk() (*string, bool)

GetDestinationOk returns a tuple with the Destination field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LoginRequestResponseDataNextState) GetState

GetState returns the State field value if set, zero value otherwise.

func (*LoginRequestResponseDataNextState) GetStateOk

func (o *LoginRequestResponseDataNextState) GetStateOk() (*string, bool)

GetStateOk returns a tuple with the State field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LoginRequestResponseDataNextState) GetTimerInSeconds

func (o *LoginRequestResponseDataNextState) GetTimerInSeconds() float32

GetTimerInSeconds returns the TimerInSeconds field value if set, zero value otherwise.

func (*LoginRequestResponseDataNextState) GetTimerInSecondsOk

func (o *LoginRequestResponseDataNextState) GetTimerInSecondsOk() (*float32, bool)

GetTimerInSecondsOk returns a tuple with the TimerInSeconds field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LoginRequestResponseDataNextState) HasDestination

func (o *LoginRequestResponseDataNextState) HasDestination() bool

HasDestination returns a boolean if a field has been set.

func (*LoginRequestResponseDataNextState) HasState

HasState returns a boolean if a field has been set.

func (*LoginRequestResponseDataNextState) HasTimerInSeconds

func (o *LoginRequestResponseDataNextState) HasTimerInSeconds() bool

HasTimerInSeconds returns a boolean if a field has been set.

func (LoginRequestResponseDataNextState) MarshalJSON

func (o LoginRequestResponseDataNextState) MarshalJSON() ([]byte, error)

func (*LoginRequestResponseDataNextState) SetDestination

func (o *LoginRequestResponseDataNextState) SetDestination(v string)

SetDestination gets a reference to the given string and assigns it to the Destination field.

func (*LoginRequestResponseDataNextState) SetState

SetState gets a reference to the given string and assigns it to the State field.

func (*LoginRequestResponseDataNextState) SetTimerInSeconds

func (o *LoginRequestResponseDataNextState) SetTimerInSeconds(v float32)

SetTimerInSeconds gets a reference to the given float32 and assigns it to the TimerInSeconds field.

type NullableBool

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

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableFloat32

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

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

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

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableGenerateTokenRequest

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

func NewNullableGenerateTokenRequest

func NewNullableGenerateTokenRequest(val *GenerateTokenRequest) *NullableGenerateTokenRequest

func (NullableGenerateTokenRequest) Get

func (NullableGenerateTokenRequest) IsSet

func (NullableGenerateTokenRequest) MarshalJSON

func (v NullableGenerateTokenRequest) MarshalJSON() ([]byte, error)

func (*NullableGenerateTokenRequest) Set

func (*NullableGenerateTokenRequest) UnmarshalJSON

func (v *NullableGenerateTokenRequest) UnmarshalJSON(src []byte) error

func (*NullableGenerateTokenRequest) Unset

func (v *NullableGenerateTokenRequest) Unset()

type NullableGenerateTokenResponse

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

func (NullableGenerateTokenResponse) Get

func (NullableGenerateTokenResponse) IsSet

func (NullableGenerateTokenResponse) MarshalJSON

func (v NullableGenerateTokenResponse) MarshalJSON() ([]byte, error)

func (*NullableGenerateTokenResponse) Set

func (*NullableGenerateTokenResponse) UnmarshalJSON

func (v *NullableGenerateTokenResponse) UnmarshalJSON(src []byte) error

func (*NullableGenerateTokenResponse) Unset

func (v *NullableGenerateTokenResponse) Unset()

type NullableGenerateTokenResponseFlags

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

func (NullableGenerateTokenResponseFlags) Get

func (NullableGenerateTokenResponseFlags) IsSet

func (NullableGenerateTokenResponseFlags) MarshalJSON

func (v NullableGenerateTokenResponseFlags) MarshalJSON() ([]byte, error)

func (*NullableGenerateTokenResponseFlags) Set

func (*NullableGenerateTokenResponseFlags) UnmarshalJSON

func (v *NullableGenerateTokenResponseFlags) UnmarshalJSON(src []byte) error

func (*NullableGenerateTokenResponseFlags) Unset

type NullableGoidTokenData

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

func NewNullableGoidTokenData

func NewNullableGoidTokenData(val *GoidTokenData) *NullableGoidTokenData

func (NullableGoidTokenData) Get

func (NullableGoidTokenData) IsSet

func (v NullableGoidTokenData) IsSet() bool

func (NullableGoidTokenData) MarshalJSON

func (v NullableGoidTokenData) MarshalJSON() ([]byte, error)

func (*NullableGoidTokenData) Set

func (v *NullableGoidTokenData) Set(val *GoidTokenData)

func (*NullableGoidTokenData) UnmarshalJSON

func (v *NullableGoidTokenData) UnmarshalJSON(src []byte) error

func (*NullableGoidTokenData) Unset

func (v *NullableGoidTokenData) Unset()

type NullableInt

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

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

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

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

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

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableLoginRequestBody

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

func NewNullableLoginRequestBody

func NewNullableLoginRequestBody(val *LoginRequestBody) *NullableLoginRequestBody

func (NullableLoginRequestBody) Get

func (NullableLoginRequestBody) IsSet

func (v NullableLoginRequestBody) IsSet() bool

func (NullableLoginRequestBody) MarshalJSON

func (v NullableLoginRequestBody) MarshalJSON() ([]byte, error)

func (*NullableLoginRequestBody) Set

func (*NullableLoginRequestBody) UnmarshalJSON

func (v *NullableLoginRequestBody) UnmarshalJSON(src []byte) error

func (*NullableLoginRequestBody) Unset

func (v *NullableLoginRequestBody) Unset()

type NullableLoginRequestResponse

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

func NewNullableLoginRequestResponse

func NewNullableLoginRequestResponse(val *LoginRequestResponse) *NullableLoginRequestResponse

func (NullableLoginRequestResponse) Get

func (NullableLoginRequestResponse) IsSet

func (NullableLoginRequestResponse) MarshalJSON

func (v NullableLoginRequestResponse) MarshalJSON() ([]byte, error)

func (*NullableLoginRequestResponse) Set

func (*NullableLoginRequestResponse) UnmarshalJSON

func (v *NullableLoginRequestResponse) UnmarshalJSON(src []byte) error

func (*NullableLoginRequestResponse) Unset

func (v *NullableLoginRequestResponse) Unset()

type NullableLoginRequestResponseData

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

func (NullableLoginRequestResponseData) Get

func (NullableLoginRequestResponseData) IsSet

func (NullableLoginRequestResponseData) MarshalJSON

func (v NullableLoginRequestResponseData) MarshalJSON() ([]byte, error)

func (*NullableLoginRequestResponseData) Set

func (*NullableLoginRequestResponseData) UnmarshalJSON

func (v *NullableLoginRequestResponseData) UnmarshalJSON(src []byte) error

func (*NullableLoginRequestResponseData) Unset

type NullableLoginRequestResponseDataNextState

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

func (NullableLoginRequestResponseDataNextState) Get

func (NullableLoginRequestResponseDataNextState) IsSet

func (NullableLoginRequestResponseDataNextState) MarshalJSON

func (*NullableLoginRequestResponseDataNextState) Set

func (*NullableLoginRequestResponseDataNextState) UnmarshalJSON

func (v *NullableLoginRequestResponseDataNextState) UnmarshalJSON(src []byte) error

func (*NullableLoginRequestResponseDataNextState) Unset

type NullableString

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

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableTime

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

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

type TokenApiService

type TokenApiService service

TokenApiService TokenApi service

func (*TokenApiService) GenerateToken

GenerateToken POST token

Generate authentication token from OTP

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGenerateTokenRequest

func (*TokenApiService) GenerateTokenExecute

Execute executes the request

@return GenerateTokenResponse

func (*TokenApiService) LoginRequest

LoginRequest POST request

Request OTP to whatsapp or SMS

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiLoginRequestRequest

func (*TokenApiService) LoginRequestExecute

Execute executes the request

@return LoginRequestResponse

Jump to

Keyboard shortcuts

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