fiskaly / fiskaly-sdk-swift

fiskaly Cloud-TSE SDK for Swift/iOS
MIT License
5 stars 5 forks source link

JSONRpc Error -> Order Update Transaction #25

Closed ghost closed 4 years ago

ghost commented 4 years ago

Hello, im trying to reproduce the Order Update Transaction but I get an Error:

FiskalySDK.JsonRpcError 2020-07-28 14:15:59.467193+0200 Runner[23874:5438544] Unsupported value: <invalid NS/CF object> of type FiskalySDK.JsonRpcError

Here is my Transaction Body:

let transactionBody : [String: Any] = [ "state": "ACTIVE", "client_id": self.client_id, "schema": [ "standard_v1": [ "order": [ "line_items": [ [ "quantity": "1", "text": "Beer", "price_per_unit": "6.00" ] ] ] ] ] ]

ghost commented 4 years ago

Fixed, it was because of the price_per_unit: I sent before 10.0 not 10.00 and after that I got 429 so that's why the sample from the FiskalySDKDemo not worked