SECC > DIN70121

SECC > DIN70121 > ServicePaymentSelection API

ServicePaymentSelection Lua API reference.

ServicePaymentSelectionReq API

API파라미터반환
Secc.Receive_ServicePaymentSelectionReq_001()--
Secc.Check_Received_ServicePaymentSelectionReq()-boolean
Secc.Get_ServicePaymentSelectionReq_SelectedPaymentOption()-PaymentOptionType

ServicePaymentSelectionRes API

API파라미터반환
Secc.Set_ServicePaymentSelectionRes_ResponseCode(responseCode)responseCode (ResponseCodeType)-
Secc.Get_ServicePaymentSelectionRes_ResponseCode()-ResponseCodeType
Secc.Send_ServicePaymentSelectionRes_001()--

상세 명세

Secc.Receive_ServicePaymentSelectionReq_001

Secc.Receive_ServicePaymentSelectionReq_001()

ServicePaymentSelectionReq 수신

Parameter-
Return-
MessageServicePaymentSelectionReq
Secc.Receive_ServicePaymentSelectionReq_001()

Secc.Check_Received_ServicePaymentSelectionReq

Secc.Check_Received_ServicePaymentSelectionReq()

ServicePaymentSelectionReq.Received 확인

Parameter-
Returnboolean
MessageServicePaymentSelectionReq
local receivedServicePaymentSelectionReq = Secc.Check_Received_ServicePaymentSelectionReq()

Secc.Get_ServicePaymentSelectionReq_SelectedPaymentOption

Secc.Get_ServicePaymentSelectionReq_SelectedPaymentOption()

ServicePaymentSelectionReq.SelectedPaymentOption 조회

Parameter-
MessageServicePaymentSelectionReq
local expectedSelectedPaymentOption = PaymentOptionType.ExternalPayment
local receivedSelectedPaymentOption = Secc.Get_ServicePaymentSelectionReq_SelectedPaymentOption()

Secc.Set_ServicePaymentSelectionRes_ResponseCode

Secc.Set_ServicePaymentSelectionRes_ResponseCode(responseCode)

ServicePaymentSelectionRes.ResponseCode 설정

ParameterresponseCode (ResponseCodeType)
Return-
MessageServicePaymentSelectionRes
local servicePaymentSelectionResponseCode = ResponseCodeType.OK
Secc.Set_ServicePaymentSelectionRes_ResponseCode(servicePaymentSelectionResponseCode)

Secc.Get_ServicePaymentSelectionRes_ResponseCode

Secc.Get_ServicePaymentSelectionRes_ResponseCode()

ServicePaymentSelectionRes.ResponseCode 조회

Parameter-
MessageServicePaymentSelectionRes
local observedResponseCode = Secc.Get_ServicePaymentSelectionRes_ResponseCode()

Secc.Send_ServicePaymentSelectionRes_001

Secc.Send_ServicePaymentSelectionRes_001()

ServicePaymentSelectionRes 송신

Parameter-
Return-
MessageServicePaymentSelectionRes
Secc.Send_ServicePaymentSelectionRes_001()

예제

ServicePaymentSelectionRes 설정 및 전송

Script
local servicePaymentSelectionResponseCode = ResponseCodeType.OK
Secc.Set_ServicePaymentSelectionRes_ResponseCode(servicePaymentSelectionResponseCode)

Secc.Send_ServicePaymentSelectionRes_001()

V2GTP Header

Protocol Version0x01
Inverse Version0xFE
Payload Type0x8001
Payload Length0x0000000E
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:ServicePaymentSelectionRes>
      <s1:ResponseCode>OK</s1:ResponseCode>
    </s1:ServicePaymentSelectionRes>
  </s3:Body>
</s3:V2G_Message>