Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transit type for boarding pass #29

Closed
henrymacht opened this issue May 6, 2024 · 1 comment · Fixed by #31
Closed

Transit type for boarding pass #29

henrymacht opened this issue May 6, 2024 · 1 comment · Fixed by #31

Comments

@henrymacht
Copy link

Getting this: Pass dictionary must contain key 'transitType'. Even though I set in def boarding pass. My thinking is that it is getting overridden by:

pass[@pass.pass_type] = {
headerFields: @pass.header_fields,
primaryFields: @pass.primary_fields,
secondaryFields: @pass.secondary_fields,
auxiliaryFields: @pass.auxiliary_fields,
backFields: @pass.back_fields
}

@henrymacht
Copy link
Author

annaswims added a commit to omahazoo/passkit that referenced this issue May 16, 2024
Pass.Coupon, Pass.EventTicket, Pass.EventTicket, and Pass.Generic don't have any additional feilds availabe so we don't need to provide methods for additional feilds.  boardingPass was being overwritten by the additonal feild method, now fixed.

resolves coorasse#29
coorasse added a commit that referenced this issue May 28, 2024
* fix Pass object additional feilds

Pass.Coupon, Pass.EventTicket, Pass.EventTicket, and Pass.Generic don't have any additional feilds availabe so we don't need to provide methods for additional feilds.  boardingPass was being overwritten by the additonal feild method, now fixed.

resolves #29

* Update lib/passkit/generator.rb

Co-authored-by: Alessandro Rodi <coorasse@gmail.com>

---------

Co-authored-by: Alessandro Rodi <coorasse@gmail.com>
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 a pull request may close this issue.

1 participant