EVCC > DIN70121

EVCC > DIN70121 > ServicePaymentSelection API

ServicePaymentSelection Lua API reference.

ServicePaymentSelectionReq API

API파라미터반환
Evcc.Set_ServicePaymentSelectionReq_SelectedPaymentOption(selectedPaymentOption)selectedPaymentOption (PaymentOptionType)-
Evcc.Get_ServicePaymentSelectionReq_SelectedPaymentOption()-PaymentOptionType
Evcc.Set_ServicePaymentSelectionReq_SelectedServiceList_Count(count)count-
Evcc.Add_ServicePaymentSelectionReq_SelectedServiceList_ServiceID(serviceID)serviceID-
Evcc.Send_ServicePaymentSelectionReq_001()--

ServicePaymentSelectionRes API

API파라미터반환
Evcc.Receive_ServicePaymentSelectionRes_001()--
Evcc.Get_ServicePaymentSelectionRes_ResponseCode()-ResponseCodeType

상세 명세

Evcc.Set_ServicePaymentSelectionReq_SelectedPaymentOption

Evcc.Set_ServicePaymentSelectionReq_SelectedPaymentOption(selectedPaymentOption)

ServicePaymentSelectionReq.SelectedPaymentOption 설정

ParameterselectedPaymentOption (PaymentOptionType)
Return-
MessageServicePaymentSelectionReq
local selectedPaymentOption = PaymentOptionType.ExternalPayment
Evcc.Set_ServicePaymentSelectionReq_SelectedPaymentOption(selectedPaymentOption)

Evcc.Get_ServicePaymentSelectionReq_SelectedPaymentOption

Evcc.Get_ServicePaymentSelectionReq_SelectedPaymentOption()

ServicePaymentSelectionReq.SelectedPaymentOption 조회

Parameter-
MessageServicePaymentSelectionReq
local observedSelectedPaymentOption = Evcc.Get_ServicePaymentSelectionReq_SelectedPaymentOption()

Evcc.Set_ServicePaymentSelectionReq_SelectedServiceList_Count

Evcc.Set_ServicePaymentSelectionReq_SelectedServiceList_Count(count)

ServicePaymentSelectionReq.SelectedServiceList.SelectedService.Count 설정

Parametercount
Return-
MessageServicePaymentSelectionReq
local selectedServiceCount = 1
Evcc.Set_ServicePaymentSelectionReq_SelectedServiceList_Count(selectedServiceCount)

Evcc.Add_ServicePaymentSelectionReq_SelectedServiceList_ServiceID

Evcc.Add_ServicePaymentSelectionReq_SelectedServiceList_ServiceID(serviceID)

ServicePaymentSelectionReq.SelectedServiceList.SelectedService[0].ServiceID 설정

ParameterserviceID
Return-
MessageServicePaymentSelectionReq
local selectedServiceID = 1
Evcc.Add_ServicePaymentSelectionReq_SelectedServiceList_ServiceID(selectedServiceID)

Evcc.Send_ServicePaymentSelectionReq_001

Evcc.Send_ServicePaymentSelectionReq_001()

ServicePaymentSelectionReq 송신

Parameter-
Return-
MessageServicePaymentSelectionReq
Evcc.Send_ServicePaymentSelectionReq_001()

Evcc.Receive_ServicePaymentSelectionRes_001

Evcc.Receive_ServicePaymentSelectionRes_001()

ServicePaymentSelectionRes 수신

Parameter-
Return-
MessageServicePaymentSelectionRes
Evcc.Receive_ServicePaymentSelectionRes_001()

Evcc.Get_ServicePaymentSelectionRes_ResponseCode

Evcc.Get_ServicePaymentSelectionRes_ResponseCode()

ServicePaymentSelectionRes.ResponseCode 조회

Parameter-
MessageServicePaymentSelectionRes
local expectedResponseCode = ResponseCodeType.OK
local receivedResponseCode = Evcc.Get_ServicePaymentSelectionRes_ResponseCode()

예제

ServicePaymentSelectionReq 설정 및 전송

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

local selectedServiceCount = 1
Evcc.Set_ServicePaymentSelectionReq_SelectedServiceList_Count(selectedServiceCount)

local selectedServiceID = 1
Evcc.Add_ServicePaymentSelectionReq_SelectedServiceList_ServiceID(selectedServiceID)

Evcc.Send_ServicePaymentSelectionReq_001()

V2GTP Header

Protocol Version0x01
Inverse Version0xFE
Payload Type0x8001
Payload Length0x00000010
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:din:70121:2012:MsgBody" xmlns:s2="urn:din:70121:2012:MsgDataTypes" xmlns:s3="urn:din:70121:2012:MsgDef" xmlns:s4="urn:din:70121:2012:MsgHeader">
  <s3:Header>
    <s4:SessionID>5073C54B9D321B81</s4:SessionID>
  </s3:Header>
  <s3:Body>
    <s1:ServicePaymentSelectionReq>
      <s1:SelectedPaymentOption>ExternalPayment</s1:SelectedPaymentOption>
      <s1:SelectedServiceList>
        <s2:SelectedService>
          <s2:ServiceID>1</s2:ServiceID>
        </s2:SelectedService>
      </s1:SelectedServiceList>
    </s1:ServicePaymentSelectionReq>
  </s3:Body>
</s3:V2G_Message>