Class: Adyen::PosMobileApi

Inherits:
Service
  • Object
show all
Defined in:
lib/adyen/services/posMobile/pos_mobile_api.rb

Overview

NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech

Do not edit the class manually.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Service

action_for_method_name, #create_query_string

Constructor Details

#initialize(client, version = DEFAULT_VERSION) ⇒ PosMobileApi

Returns a new instance of PosMobileApi.



11
12
13
# File 'lib/adyen/services/posMobile/pos_mobile_api.rb', line 11

def initialize(client, version = DEFAULT_VERSION)
  super(client, version, 'PosMobile')
end

Instance Attribute Details

#serviceObject

Returns the value of attribute service.



9
10
11
# File 'lib/adyen/services/posMobile/pos_mobile_api.rb', line 9

def service
  @service
end

#versionObject

Returns the value of attribute version.



9
10
11
# File 'lib/adyen/services/posMobile/pos_mobile_api.rb', line 9

def version
  @version
end

Instance Method Details

#create_communication_session(request, headers: {}) ⇒ Object

Deprecated.

Create a communication session

Deprecated since POS Mobile API v68 Use POST /auth/certificate to establish secure communications.



20
21
22
23
24
25
26
# File 'lib/adyen/services/posMobile/pos_mobile_api.rb', line 20

def create_communication_session(request, headers: {})
  Adyen::Deprecation.warn(:create_communication_session, since: 'POS Mobile API v68', message: 'Use POST [/auth/certificate](https://docs.adyen.com/api-explorer/softpos-configuration-api/latest/post/auth/certificate) to establish secure communications.')
  endpoint = build_endpoint('/sessions')
  
  action = { method: 'post', url: endpoint }
  @client.call_adyen_api(@service, action, request, headers, @version)
end