Skip to content

Construct Uri from Enrolled method - #236

Closed
DanGould wants to merge 1 commit into
payjoin:masterfrom
DanGould:uri-from-enrolled
Closed

Construct Uri from Enrolled method#236
DanGould wants to merge 1 commit into
payjoin:masterfrom
DanGould:uri-from-enrolled

Conversation

@DanGould

@DanGould DanGould commented Apr 28, 2024

Copy link
Copy Markdown
Member

Close #205

I chose to actually return a PjUriBuilder since it lets the downstream implementor construct the rest of the Uri.

Question: Are any downstream implementations constructing their own URIs which would have a problem with this return type? or can they extract the necessary Uri parameters from the builder?

@DanGould
DanGould requested a review from jbesraa April 28, 2024 17:15
@DanGould
DanGould marked this pull request as draft April 28, 2024 17:24
Comment thread payjoin/src/receive/v2.rs
}
}

pub fn pj_uri_builder(&self, address: Address) -> Result<PjUriBuilder, Error> {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

does it make sense for this to be fallable if this state is already Enrolled, proving the pj_url correct? Shouldn't enrolling fail if no pj_url is available?

@DanGould DanGould added this to the 0.17.0 milestone Jun 2, 2024
@DanGould DanGould modified the milestones: 0.17.0, 0.18.0 Jun 17, 2024
@DanGould

Copy link
Copy Markdown
Member Author

Closed by #283 with ActiveSession::pj_url

@DanGould DanGould closed this Jun 26, 2024
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.

Construct Uri from Enrolled method

1 participant