omise / omise-swift

15 stars 10 forks source link

Fix decoding of unknown sources #94

Closed tobias90 closed 4 years ago

tobias90 commented 4 years ago

1. Objective

We expect that every source of type "Barcode" or "Bill Payment" has reference information. If references is null the whole decoding will fail. This affects retrieving charges. As soon as there is a new source of one of this types without references (e.g. WeChat Pay) decoding of all charges will fail.

2. Description of change

Changed decoding of references for unknown sources of type "Barcode" or "Bill Payment" to optional to allow null values.

3. Quality assurance

N/A

4. Operations impact

N/A

5. Business impact

N/A

6. Priority of change

Normal