oadrCreatedPartyRegistration.xml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <oadr:oadrSignedObject xmlns:oadr="http://openadr.org/oadr-2.0b/2012/07" oadr:Id="oadrSignedObject">
  2. <oadr:oadrCreatedPartyRegistration ei:schemaVersion="2.0b" xmlns:ei="http://docs.oasis-open.org/ns/energyinterop/201110">
  3. <ei:eiResponse>
  4. <ei:responseCode>{{ response.response_code }}</ei:responseCode>
  5. <ei:responseDescription>{{ response.response_description }}</ei:responseDescription>
  6. <requestID xmlns="http://docs.oasis-open.org/ns/energyinterop/201110/payloads">{{ response.request_id }}</requestID>
  7. </ei:eiResponse>
  8. {% if registration_id is defined and registration_id is not none %}
  9. <ei:registrationID>{{ registration_id }}</ei:registrationID>
  10. {% else %}
  11. <ei:registrationID />
  12. {% endif %}
  13. {% if ven_id is defined and ven_id is not none %}
  14. <ei:venID>{{ ven_id }}</ei:venID>
  15. {% else %}
  16. <ei:venID />
  17. {% endif %}
  18. <ei:vtnID>{{ vtn_id }}</ei:vtnID>
  19. <oadr:oadrProfiles>
  20. {% for profile in profiles %}
  21. <oadr:oadrProfile>
  22. <oadr:oadrProfileName>{{ profile.profile_name }}</oadr:oadrProfileName>
  23. <oadr:oadrTransports>
  24. {% for transport in profile.transports %}
  25. <oadr:oadrTransport>
  26. <oadr:oadrTransportName>{{ transport.transport_name }}</oadr:oadrTransportName>
  27. </oadr:oadrTransport>
  28. {% endfor %}
  29. </oadr:oadrTransports>
  30. </oadr:oadrProfile>
  31. {% endfor %}
  32. </oadr:oadrProfiles>
  33. {% if requested_oadr_poll_freq is defined and requested_oadr_poll_freq is not none %}
  34. <oadr:oadrRequestedOadrPollFreq>
  35. <duration xmlns="urn:ietf:params:xml:ns:icalendar-2.0">{{ requested_oadr_poll_freq|timedeltaformat }}</duration>
  36. </oadr:oadrRequestedOadrPollFreq>
  37. {% endif %}
  38. </oadr:oadrCreatedPartyRegistration>
  39. </oadr:oadrSignedObject>