inakiabt / etsy-php

Etsy API wrapper for PHP
74 stars 59 forks source link

Solved problems with php data types: #47

Open hmalicha opened 5 years ago

hmalicha commented 5 years ago

methods.json:

method "updateInventory", param "products": changed type since stringJSON isn't a valid PHP data type, which makes the validations fail

RequestValidator: Now changing $type to float if float is expected and int is given, since PHP converts floats with no decimals to integers. Here is an example: -> If you provided the price 19.95 that worked -> If you provided the price 20.00 that didn't work