SECC > ISO15118-2

SECC > ISO15118-2 > PaymentServiceSelection API

PaymentServiceSelection Lua API reference.

PaymentServiceSelectionReq API

API파라미터반환
Secc.Receive_PaymentServiceSelectionReq_001()--
Secc.Check_Received_PaymentServiceSelectionReq()-boolean
Secc.Get_PaymentServiceSelectionReq_SelectedPaymentOption()-PaymentOptionType
Secc.Exist_PaymentServiceSelection_SelectedService(serviceID, parameterSetID)serviceID, parameterSetIDboolean

PaymentServiceSelectionRes API

API파라미터반환
Secc.Set_PaymentServiceSelectionRes_ResponseCode(responseCode)responseCode (ResponseCodeType)-
Secc.Get_PaymentServiceSelectionRes_ResponseCode()-ResponseCodeType
Secc.Send_PaymentServiceSelectionRes_001()--

상세 명세

Secc.Receive_PaymentServiceSelectionReq_001

Secc.Receive_PaymentServiceSelectionReq_001()

PaymentServiceSelectionReq 수신

Parameter-
Return-
MessagePaymentServiceSelectionReq
Secc.Receive_PaymentServiceSelectionReq_001()

Secc.Check_Received_PaymentServiceSelectionReq

Secc.Check_Received_PaymentServiceSelectionReq()

PaymentServiceSelectionReq.Received 확인

Parameter-
Returnboolean
MessagePaymentServiceSelectionReq
local receivedPaymentServiceSelectionReq = Secc.Check_Received_PaymentServiceSelectionReq()

Secc.Get_PaymentServiceSelectionReq_SelectedPaymentOption

Secc.Get_PaymentServiceSelectionReq_SelectedPaymentOption()

PaymentServiceSelectionReq.SelectedPaymentOption 조회

Parameter-
MessagePaymentServiceSelectionReq
local expectedSelectedPaymentOption = PaymentOptionType.ExternalPayment
local receivedSelectedPaymentOption = Secc.Get_PaymentServiceSelectionReq_SelectedPaymentOption()

Secc.Exist_PaymentServiceSelection_SelectedService

Secc.Exist_PaymentServiceSelection_SelectedService(serviceID, parameterSetID)

PaymentServiceSelectionReq.SelectedServiceList[0] 확인

ParameterserviceID, parameterSetID
Returnboolean
MessagePaymentServiceSelectionReq
local expectedSelectedServiceID = 61000
local expectedParameterSetID = 1
local receivedSelectedService = Secc.Exist_PaymentServiceSelection_SelectedService(expectedSelectedServiceID, expectedParameterSetID)

Secc.Set_PaymentServiceSelectionRes_ResponseCode

Secc.Set_PaymentServiceSelectionRes_ResponseCode(responseCode)

PaymentServiceSelectionRes.ResponseCode 설정

ParameterresponseCode (ResponseCodeType)
Return-
MessagePaymentServiceSelectionRes
local paymentServiceSelectionResponseCode = ResponseCodeType.OK
Secc.Set_PaymentServiceSelectionRes_ResponseCode(paymentServiceSelectionResponseCode)

Secc.Get_PaymentServiceSelectionRes_ResponseCode

Secc.Get_PaymentServiceSelectionRes_ResponseCode()

PaymentServiceSelectionRes.ResponseCode 조회

Parameter-
MessagePaymentServiceSelectionRes
local observedResponseCode = Secc.Get_PaymentServiceSelectionRes_ResponseCode()

Secc.Send_PaymentServiceSelectionRes_001

Secc.Send_PaymentServiceSelectionRes_001()

PaymentServiceSelectionRes 송신

Parameter-
Return-
MessagePaymentServiceSelectionRes
Secc.Send_PaymentServiceSelectionRes_001()

예제

PaymentServiceSelectionRes 설정 및 전송

Script
local paymentServiceSelectionResponseCode = ResponseCodeType.OK
Secc.Set_PaymentServiceSelectionRes_ResponseCode(paymentServiceSelectionResponseCode)

Secc.Send_PaymentServiceSelectionRes_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: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:PaymentServiceSelectionRes>
      <s1:ResponseCode>OK</s1:ResponseCode>
    </s1:PaymentServiceSelectionRes>
  </s3:Body>
</s3:V2G_Message>