#!/usr/bin/env python
# -*- coding: utf-8 -*-
import json

from alipay.aop.api.response.AlipayResponse import AlipayResponse


class AlipayCommerceTransportChargerPncCertifyResponse(AlipayResponse):

    def __init__(self):
        super(AlipayCommerceTransportChargerPncCertifyResponse, self).__init__()
        self._open_id = None
        self._phone_number = None
        self._plate_no = None
        self._user_id = None
        self._vin = None

    @property
    def open_id(self):
        return self._open_id

    @open_id.setter
    def open_id(self, value):
        self._open_id = value
    @property
    def phone_number(self):
        return self._phone_number

    @phone_number.setter
    def phone_number(self, value):
        self._phone_number = value
    @property
    def plate_no(self):
        return self._plate_no

    @plate_no.setter
    def plate_no(self, value):
        self._plate_no = value
    @property
    def user_id(self):
        return self._user_id

    @user_id.setter
    def user_id(self, value):
        self._user_id = value
    @property
    def vin(self):
        return self._vin

    @vin.setter
    def vin(self, value):
        self._vin = value

    def parse_response_content(self, response_content):
        response = super(AlipayCommerceTransportChargerPncCertifyResponse, self).parse_response_content(response_content)
        if 'open_id' in response:
            self.open_id = response['open_id']
        if 'phone_number' in response:
            self.phone_number = response['phone_number']
        if 'plate_no' in response:
            self.plate_no = response['plate_no']
        if 'user_id' in response:
            self.user_id = response['user_id']
        if 'vin' in response:
            self.vin = response['vin']
