Skip to content

Conversation

@minlux
Copy link

@minlux minlux commented Dec 13, 2025

This PR adds a packet for the Authorization (06 01) command, to zvt.
It also adds a sub-command --pay to zvt_cli to trigger payment process (using the authorization command).

@minlux minlux force-pushed the feat/authorization branch from 919aaed to e728ebe Compare December 16, 2025 16:03
@dorezyuk
Copy link
Contributor

dorezyuk commented Jan 7, 2026

hey thanks for the prs - will try to review them in the next days

@dorezyuk dorezyuk self-requested a review January 7, 2026 10:28

#[derive(Debug, Default, PartialEq, Zvt)]
#[zvt_control_field(class = 0x06, instr = 0x01)]
pub struct Authorization {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think this is mostly the same as reservation - but we don't have a nice flatten option as in serde so right now there is probably no good way around copy and pasting it

#[derive(Debug, Default, PartialEq, Zvt)]
pub struct AuthorizationData {
#[zvt_tlv(tag = 0x25, encoding = encoding::Hex)]
pub adf_name: Option<String>,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not it the standard I have - do you have a reference that it can be send as tlv in the auth data?

Signed-off-by: Manuel Heiß <manuel-heiss@gmx.de>
@minlux minlux force-pushed the feat/authorization branch from e728ebe to 1b3e6d5 Compare January 28, 2026 18:24
@minlux minlux requested a review from dorezyuk January 29, 2026 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants