uapi-json
uapi-json copied to clipboard
Add parsing of FOP for tickets
Form of payment should be parsed for tickets.
Following cases should be covered:
- [ ] Cash
- [ ] Invoice
- [ ] Invoice with number
- [ ] Credit card
- [ ] Exchanged ticket
- [ ] Mixed type of payment
Unable to proceed with ticket as uapi does not show all used FOPs when more than one was used.
Example:
Terminal
FOP:VI-123123 T3000/INV T200/CASH
uapi:
<common_v39_0:FormOfPayment Key="pAA7P/BAAA/BEN3OGHAAAA==" Type="Credit" Reusable="true" ProfileKey="bmjRUzMZTrOHU27DuPwSTQ==">
<common_v39_0:CreditCard Type="VI" Number="************1111" ExpDate="2017-12"/>
</common_v39_0:FormOfPayment>