Closed petermcd closed 2 years ago
As with #38 the reason this is failing Monzo allows you to create a receipt that is inadvertantly invalid. The actual output is:
{"code":"bad_response.marshaling","message":"Failed to marshal proto receipt to DTO","params":{"amount_currency":"GBP","client_id":"xxx","external_id":"ABC123","tax_currency":"","user_id":"xxx"},"retryable":{}}
It appears the created receipt is good enough to show in the Monzo app but not return using the get API or the delete using the Delete API.
Issue fixed by not sending null values to the API, therefore optional receipt items now have a sensible default value
Describe the bug Some get requests are failing when the URL needs to be appended caused by #41
To Reproduce
Expected behavior Receipt to be fetched
Environment (please complete the following information):
Additional context N/A