Documentation ¶
Index ¶
- type CreateSessionRequest
- func (o *CreateSessionRequest) GetMerchantAccount() string
- func (o *CreateSessionRequest) GetMerchantAccountOk() (*string, bool)
- func (o *CreateSessionRequest) GetSetupToken() string
- func (o *CreateSessionRequest) GetSetupTokenOk() (*string, bool)
- func (o *CreateSessionRequest) GetStore() string
- func (o *CreateSessionRequest) GetStoreOk() (*string, bool)
- func (o *CreateSessionRequest) HasStore() bool
- func (o CreateSessionRequest) MarshalJSON() ([]byte, error)
- func (o *CreateSessionRequest) SetMerchantAccount(v string)
- func (o *CreateSessionRequest) SetSetupToken(v string)
- func (o *CreateSessionRequest) SetStore(v string)
- func (o CreateSessionRequest) ToMap() (map[string]interface{}, error)
- type CreateSessionResponse
- func (o *CreateSessionResponse) GetId() string
- func (o *CreateSessionResponse) GetIdOk() (*string, bool)
- func (o *CreateSessionResponse) GetInstallationId() string
- func (o *CreateSessionResponse) GetInstallationIdOk() (*string, bool)
- func (o *CreateSessionResponse) GetMerchantAccount() string
- func (o *CreateSessionResponse) GetMerchantAccountOk() (*string, bool)
- func (o *CreateSessionResponse) GetSdkData() string
- func (o *CreateSessionResponse) GetSdkDataOk() (*string, bool)
- func (o *CreateSessionResponse) GetStore() string
- func (o *CreateSessionResponse) GetStoreOk() (*string, bool)
- func (o *CreateSessionResponse) HasId() bool
- func (o *CreateSessionResponse) HasInstallationId() bool
- func (o *CreateSessionResponse) HasMerchantAccount() bool
- func (o *CreateSessionResponse) HasSdkData() bool
- func (o *CreateSessionResponse) HasStore() bool
- func (o CreateSessionResponse) MarshalJSON() ([]byte, error)
- func (o *CreateSessionResponse) SetId(v string)
- func (o *CreateSessionResponse) SetInstallationId(v string)
- func (o *CreateSessionResponse) SetMerchantAccount(v string)
- func (o *CreateSessionResponse) SetSdkData(v string)
- func (o *CreateSessionResponse) SetStore(v string)
- func (o CreateSessionResponse) ToMap() (map[string]interface{}, error)
- type GeneralApi
- type GeneralApiCreateCommunicationSessionInput
- type NullableCreateSessionRequest
- func (v NullableCreateSessionRequest) Get() *CreateSessionRequest
- func (v NullableCreateSessionRequest) IsSet() bool
- func (v NullableCreateSessionRequest) MarshalJSON() ([]byte, error)
- func (v *NullableCreateSessionRequest) Set(val *CreateSessionRequest)
- func (v *NullableCreateSessionRequest) UnmarshalJSON(src []byte) error
- func (v *NullableCreateSessionRequest) Unset()
- type NullableCreateSessionResponse
- func (v NullableCreateSessionResponse) Get() *CreateSessionResponse
- func (v NullableCreateSessionResponse) IsSet() bool
- func (v NullableCreateSessionResponse) MarshalJSON() ([]byte, error)
- func (v *NullableCreateSessionResponse) Set(val *CreateSessionResponse)
- func (v *NullableCreateSessionResponse) UnmarshalJSON(src []byte) error
- func (v *NullableCreateSessionResponse) Unset()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateSessionRequest ¶
type CreateSessionRequest struct { // The unique identifier of your merchant account. MerchantAccount string `json:"merchantAccount"` // The setup token provided by the POS Mobile SDK. - When using the Android POS Mobile SDK, obtain the token through the `AuthenticationService.authenticate(setupToken)` callback of `AuthenticationService`. - When using the iOS POS Mobile SDK, obtain the token through the `PaymentServiceDelegate.register(with:)` callback of `PaymentServiceDelegate`. SetupToken string `json:"setupToken"` // The unique identifier of the store that you want to process transactions for. Store *string `json:"store,omitempty"` }
CreateSessionRequest struct for CreateSessionRequest
func NewCreateSessionRequest ¶
func NewCreateSessionRequest(merchantAccount string, setupToken string) *CreateSessionRequest
NewCreateSessionRequest instantiates a new CreateSessionRequest 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 NewCreateSessionRequestWithDefaults ¶
func NewCreateSessionRequestWithDefaults() *CreateSessionRequest
NewCreateSessionRequestWithDefaults instantiates a new CreateSessionRequest 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 (*CreateSessionRequest) GetMerchantAccount ¶
func (o *CreateSessionRequest) GetMerchantAccount() string
GetMerchantAccount returns the MerchantAccount field value
func (*CreateSessionRequest) GetMerchantAccountOk ¶
func (o *CreateSessionRequest) GetMerchantAccountOk() (*string, bool)
GetMerchantAccountOk returns a tuple with the MerchantAccount field value and a boolean to check if the value has been set.
func (*CreateSessionRequest) GetSetupToken ¶
func (o *CreateSessionRequest) GetSetupToken() string
GetSetupToken returns the SetupToken field value
func (*CreateSessionRequest) GetSetupTokenOk ¶
func (o *CreateSessionRequest) GetSetupTokenOk() (*string, bool)
GetSetupTokenOk returns a tuple with the SetupToken field value and a boolean to check if the value has been set.
func (*CreateSessionRequest) GetStore ¶
func (o *CreateSessionRequest) GetStore() string
GetStore returns the Store field value if set, zero value otherwise.
func (*CreateSessionRequest) GetStoreOk ¶
func (o *CreateSessionRequest) GetStoreOk() (*string, bool)
GetStoreOk returns a tuple with the Store field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateSessionRequest) HasStore ¶
func (o *CreateSessionRequest) HasStore() bool
HasStore returns a boolean if a field has been set.
func (CreateSessionRequest) MarshalJSON ¶
func (o CreateSessionRequest) MarshalJSON() ([]byte, error)
func (*CreateSessionRequest) SetMerchantAccount ¶
func (o *CreateSessionRequest) SetMerchantAccount(v string)
SetMerchantAccount sets field value
func (*CreateSessionRequest) SetSetupToken ¶
func (o *CreateSessionRequest) SetSetupToken(v string)
SetSetupToken sets field value
func (*CreateSessionRequest) SetStore ¶
func (o *CreateSessionRequest) SetStore(v string)
SetStore gets a reference to the given string and assigns it to the Store field.
func (CreateSessionRequest) ToMap ¶
func (o CreateSessionRequest) ToMap() (map[string]interface{}, error)
type CreateSessionResponse ¶
type CreateSessionResponse struct { // The unique identifier of the session. Id *string `json:"id,omitempty"` // The unique identifier of the SDK installation. If you create the [Terminal API](https://docs.adyen.com/point-of-sale/design-your-integration/terminal-api/) transaction request on your backend, use this as the `POIID` in the `MessageHeader` of the request. InstallationId *string `json:"installationId,omitempty"` // The unique identifier of your merchant account. MerchantAccount *string `json:"merchantAccount,omitempty"` // The data that the SDK uses to authenticate responses from the Adyen payments platform. Pass this value to your POS app. SdkData *string `json:"sdkData,omitempty"` // The unique identifier of the store that you want to process transactions for. Store *string `json:"store,omitempty"` }
CreateSessionResponse struct for CreateSessionResponse
func NewCreateSessionResponse ¶
func NewCreateSessionResponse() *CreateSessionResponse
NewCreateSessionResponse instantiates a new CreateSessionResponse 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 NewCreateSessionResponseWithDefaults ¶
func NewCreateSessionResponseWithDefaults() *CreateSessionResponse
NewCreateSessionResponseWithDefaults instantiates a new CreateSessionResponse 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 (*CreateSessionResponse) GetId ¶
func (o *CreateSessionResponse) GetId() string
GetId returns the Id field value if set, zero value otherwise.
func (*CreateSessionResponse) GetIdOk ¶
func (o *CreateSessionResponse) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateSessionResponse) GetInstallationId ¶
func (o *CreateSessionResponse) GetInstallationId() string
GetInstallationId returns the InstallationId field value if set, zero value otherwise.
func (*CreateSessionResponse) GetInstallationIdOk ¶
func (o *CreateSessionResponse) GetInstallationIdOk() (*string, bool)
GetInstallationIdOk returns a tuple with the InstallationId field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateSessionResponse) GetMerchantAccount ¶
func (o *CreateSessionResponse) GetMerchantAccount() string
GetMerchantAccount returns the MerchantAccount field value if set, zero value otherwise.
func (*CreateSessionResponse) GetMerchantAccountOk ¶
func (o *CreateSessionResponse) GetMerchantAccountOk() (*string, bool)
GetMerchantAccountOk returns a tuple with the MerchantAccount field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateSessionResponse) GetSdkData ¶
func (o *CreateSessionResponse) GetSdkData() string
GetSdkData returns the SdkData field value if set, zero value otherwise.
func (*CreateSessionResponse) GetSdkDataOk ¶
func (o *CreateSessionResponse) GetSdkDataOk() (*string, bool)
GetSdkDataOk returns a tuple with the SdkData field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateSessionResponse) GetStore ¶
func (o *CreateSessionResponse) GetStore() string
GetStore returns the Store field value if set, zero value otherwise.
func (*CreateSessionResponse) GetStoreOk ¶
func (o *CreateSessionResponse) GetStoreOk() (*string, bool)
GetStoreOk returns a tuple with the Store field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateSessionResponse) HasId ¶
func (o *CreateSessionResponse) HasId() bool
HasId returns a boolean if a field has been set.
func (*CreateSessionResponse) HasInstallationId ¶
func (o *CreateSessionResponse) HasInstallationId() bool
HasInstallationId returns a boolean if a field has been set.
func (*CreateSessionResponse) HasMerchantAccount ¶
func (o *CreateSessionResponse) HasMerchantAccount() bool
HasMerchantAccount returns a boolean if a field has been set.
func (*CreateSessionResponse) HasSdkData ¶
func (o *CreateSessionResponse) HasSdkData() bool
HasSdkData returns a boolean if a field has been set.
func (*CreateSessionResponse) HasStore ¶
func (o *CreateSessionResponse) HasStore() bool
HasStore returns a boolean if a field has been set.
func (CreateSessionResponse) MarshalJSON ¶
func (o CreateSessionResponse) MarshalJSON() ([]byte, error)
func (*CreateSessionResponse) SetId ¶
func (o *CreateSessionResponse) SetId(v string)
SetId gets a reference to the given string and assigns it to the Id field.
func (*CreateSessionResponse) SetInstallationId ¶
func (o *CreateSessionResponse) SetInstallationId(v string)
SetInstallationId gets a reference to the given string and assigns it to the InstallationId field.
func (*CreateSessionResponse) SetMerchantAccount ¶
func (o *CreateSessionResponse) SetMerchantAccount(v string)
SetMerchantAccount gets a reference to the given string and assigns it to the MerchantAccount field.
func (*CreateSessionResponse) SetSdkData ¶
func (o *CreateSessionResponse) SetSdkData(v string)
SetSdkData gets a reference to the given string and assigns it to the SdkData field.
func (*CreateSessionResponse) SetStore ¶
func (o *CreateSessionResponse) SetStore(v string)
SetStore gets a reference to the given string and assigns it to the Store field.
func (CreateSessionResponse) ToMap ¶
func (o CreateSessionResponse) ToMap() (map[string]interface{}, error)
type GeneralApi ¶
GeneralApi service
func (*GeneralApi) CreateCommunicationSession ¶
func (a *GeneralApi) CreateCommunicationSession(ctx context.Context, r GeneralApiCreateCommunicationSessionInput) (CreateSessionResponse, *http.Response, error)
CreateCommunicationSession Create a communication session
Establishes a secure communications session between the POS Mobile SDK and the Adyen payments platform, through mutual authentication. The request sends a setup token that identifies the SDK and the device. The response returns a session token that the SDK can use to authenticate responses received from the Adyen payments platform. >This request applies to **mobile in-person** transactions. You cannot use this request to create online payments sessions.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param r GeneralApiCreateCommunicationSessionInput - Request parameters, see CreateCommunicationSessionInput @return CreateSessionResponse, *http.Response, error
func (*GeneralApi) CreateCommunicationSessionInput ¶
func (a *GeneralApi) CreateCommunicationSessionInput() GeneralApiCreateCommunicationSessionInput
Prepare a request for CreateCommunicationSession
@return GeneralApiCreateCommunicationSessionInput
type GeneralApiCreateCommunicationSessionInput ¶
type GeneralApiCreateCommunicationSessionInput struct {
// contains filtered or unexported fields
}
All parameters accepted by GeneralApi.CreateCommunicationSession
func (GeneralApiCreateCommunicationSessionInput) CreateSessionRequest ¶
func (r GeneralApiCreateCommunicationSessionInput) CreateSessionRequest(createSessionRequest CreateSessionRequest) GeneralApiCreateCommunicationSessionInput
type NullableCreateSessionRequest ¶
type NullableCreateSessionRequest struct {
// contains filtered or unexported fields
}
func NewNullableCreateSessionRequest ¶
func NewNullableCreateSessionRequest(val *CreateSessionRequest) *NullableCreateSessionRequest
func (NullableCreateSessionRequest) Get ¶
func (v NullableCreateSessionRequest) Get() *CreateSessionRequest
func (NullableCreateSessionRequest) IsSet ¶
func (v NullableCreateSessionRequest) IsSet() bool
func (NullableCreateSessionRequest) MarshalJSON ¶
func (v NullableCreateSessionRequest) MarshalJSON() ([]byte, error)
func (*NullableCreateSessionRequest) Set ¶
func (v *NullableCreateSessionRequest) Set(val *CreateSessionRequest)
func (*NullableCreateSessionRequest) UnmarshalJSON ¶
func (v *NullableCreateSessionRequest) UnmarshalJSON(src []byte) error
func (*NullableCreateSessionRequest) Unset ¶
func (v *NullableCreateSessionRequest) Unset()
type NullableCreateSessionResponse ¶
type NullableCreateSessionResponse struct {
// contains filtered or unexported fields
}
func NewNullableCreateSessionResponse ¶
func NewNullableCreateSessionResponse(val *CreateSessionResponse) *NullableCreateSessionResponse
func (NullableCreateSessionResponse) Get ¶
func (v NullableCreateSessionResponse) Get() *CreateSessionResponse
func (NullableCreateSessionResponse) IsSet ¶
func (v NullableCreateSessionResponse) IsSet() bool
func (NullableCreateSessionResponse) MarshalJSON ¶
func (v NullableCreateSessionResponse) MarshalJSON() ([]byte, error)
func (*NullableCreateSessionResponse) Set ¶
func (v *NullableCreateSessionResponse) Set(val *CreateSessionResponse)
func (*NullableCreateSessionResponse) UnmarshalJSON ¶
func (v *NullableCreateSessionResponse) UnmarshalJSON(src []byte) error
func (*NullableCreateSessionResponse) Unset ¶
func (v *NullableCreateSessionResponse) Unset()