EVCC > ISO15118-2

EVCC > ISO15118-2 > PaymentServiceSelection API

PaymentServiceSelection Lua API reference.

PaymentServiceSelectionReq API

API파라미터반환
Evcc.Set_PaymentServiceSelectionReq_SelectedPaymentOption(selectedPaymentOption)selectedPaymentOption (PaymentOptionType)-
Evcc.Get_PaymentServiceSelectionReq_SelectedPaymentOption()-PaymentOptionType
Evcc.Set_PaymentServiceSelectionReq_SelectedServiceList_Count(count)count-
Evcc.Set_PaymentServiceSelectionReq_SelectedServiceList_ServiceID(index, serviceID)index, serviceID-
Evcc.Set_PaymentServiceSelectionReq_SelectedServiceList_ParameterSetID(index, parameterSetId)index, parameterSetId-
Evcc.Send_PaymentServiceSelectionReq_001()--

PaymentServiceSelectionRes API

API파라미터반환
Evcc.Receive_PaymentServiceSelectionRes_001()--
Evcc.Get_PaymentServiceSelectionRes_ResponseCode()-ResponseCodeType

상세 명세

Evcc.Set_PaymentServiceSelectionReq_SelectedPaymentOption

Evcc.Set_PaymentServiceSelectionReq_SelectedPaymentOption(selectedPaymentOption)

PaymentServiceSelectionReq.SelectedPaymentOption 설정

ParameterselectedPaymentOption (PaymentOptionType)
Return-
MessagePaymentServiceSelectionReq
local selectedPaymentOption = PaymentOptionType.ExternalPayment
Evcc.Set_PaymentServiceSelectionReq_SelectedPaymentOption(selectedPaymentOption)

Evcc.Get_PaymentServiceSelectionReq_SelectedPaymentOption

Evcc.Get_PaymentServiceSelectionReq_SelectedPaymentOption()

PaymentServiceSelectionReq.SelectedPaymentOption 조회

Parameter-
MessagePaymentServiceSelectionReq
local observedSelectedPaymentOption = Evcc.Get_PaymentServiceSelectionReq_SelectedPaymentOption()

Evcc.Set_PaymentServiceSelectionReq_SelectedServiceList_Count

Evcc.Set_PaymentServiceSelectionReq_SelectedServiceList_Count(count)

PaymentServiceSelectionReq.SelectedServiceList.Count 설정

Parametercount
Return-
MessagePaymentServiceSelectionReq
local selectedServiceCount = 1
Evcc.Set_PaymentServiceSelectionReq_SelectedServiceList_Count(selectedServiceCount)

Evcc.Set_PaymentServiceSelectionReq_SelectedServiceList_ServiceID

Evcc.Set_PaymentServiceSelectionReq_SelectedServiceList_ServiceID(index, serviceID)

PaymentServiceSelectionReq.SelectedServiceList[0].ServiceID 설정

Parameterindex, serviceID
Return-
MessagePaymentServiceSelectionReq
local selectedServiceIndex = 0
local selectedServiceID = 61000
Evcc.Set_PaymentServiceSelectionReq_SelectedServiceList_ServiceID(selectedServiceIndex, selectedServiceID)

Evcc.Set_PaymentServiceSelectionReq_SelectedServiceList_ParameterSetID

Evcc.Set_PaymentServiceSelectionReq_SelectedServiceList_ParameterSetID(index, parameterSetId)

PaymentServiceSelectionReq.SelectedServiceList[0].ParameterSetID 설정

Parameterindex, parameterSetId
Return-
MessagePaymentServiceSelectionReq
local selectedParameterSetID = 1
Evcc.Set_PaymentServiceSelectionReq_SelectedServiceList_ParameterSetID(selectedServiceIndex, selectedParameterSetID)

Evcc.Send_PaymentServiceSelectionReq_001

Evcc.Send_PaymentServiceSelectionReq_001()

PaymentServiceSelectionReq 송신

Parameter-
Return-
MessagePaymentServiceSelectionReq
Evcc.Send_PaymentServiceSelectionReq_001()

Evcc.Receive_PaymentServiceSelectionRes_001

Evcc.Receive_PaymentServiceSelectionRes_001()

PaymentServiceSelectionRes 수신

Parameter-
Return-
MessagePaymentServiceSelectionRes
Evcc.Receive_PaymentServiceSelectionRes_001()

Evcc.Get_PaymentServiceSelectionRes_ResponseCode

Evcc.Get_PaymentServiceSelectionRes_ResponseCode()

PaymentServiceSelectionRes.ResponseCode 조회

Parameter-
MessagePaymentServiceSelectionRes
local expectedResponseCode = ResponseCodeType.OK
local receivedResponseCode = Evcc.Get_PaymentServiceSelectionRes_ResponseCode()

예제

PaymentServiceSelectionReq 설정 및 전송

Script
local selectedPaymentOption = PaymentOptionType.ExternalPayment
Evcc.Set_PaymentServiceSelectionReq_SelectedPaymentOption(selectedPaymentOption)

local selectedServiceCount = 1
Evcc.Set_PaymentServiceSelectionReq_SelectedServiceList_Count(selectedServiceCount)

local selectedServiceIndex = 0
local selectedServiceID = 61000
Evcc.Set_PaymentServiceSelectionReq_SelectedServiceList_ServiceID(selectedServiceIndex, selectedServiceID)

local selectedParameterSetID = 1
Evcc.Set_PaymentServiceSelectionReq_SelectedServiceList_ParameterSetID(selectedServiceIndex, selectedParameterSetID)

Evcc.Send_PaymentServiceSelectionReq_001()

V2GTP Header

Protocol Version0x01
Inverse Version0xFE
Payload Type0x8001
Payload Length0x00000013
PayloadEXIEncodedV2GMessage

XML Example

<?xml version="1.0" ?>
<s3:V2G_Message xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://www.w3.org/2000/09/xmldsig#" xmlns:s1="urn:iso:15118:2:2013:MsgBody" xmlns:s2="urn:iso:15118:2:2013:MsgDataTypes" xmlns:s3="urn:iso:15118:2:2013:MsgDef" xmlns:s4="urn:iso:15118:2:2013:MsgHeader">
  <s3:Header>
    <s4:SessionID>AA1D6C2C59C61DB8</s4:SessionID>
  </s3:Header>
  <s3:Body>
    <s1:PaymentServiceSelectionReq>
      <s1:SelectedPaymentOption>ExternalPayment</s1:SelectedPaymentOption>
      <s1:SelectedServiceList>
        <s2:SelectedService>
          <s2:ServiceID>61000</s2:ServiceID>
          <s2:ParameterSetID>1</s2:ParameterSetID>
        </s2:SelectedService>
      </s1:SelectedServiceList>
    </s1:PaymentServiceSelectionReq>
  </s3:Body>
</s3:V2G_Message>