Question about types for Currency Amounts. Questi...
# singer-tap-development
Question about types for Currency Amounts. Question about genson. I don't see it creating useful types, am I missing something with the command? or is it simply that that api throws out strings e.g. total_price I'm exploring genson as an alternative to defining customer json schema types, 'total_price' is not acceptable as an IntegerType or NumberType of course
Copy code
genson -i 2 ./orders.json
where orders.json is
Copy code
    "orders": [
            "id": 4673406632095,
            "admin_graphql_api_id": "<gid://shopify/Order/4673406632095>",
            "app_id": 580111,
            "browser_ip": "",
            "buyer_accepts_marketing": false,
            "cancel_reason": null,
            "cancelled_at": null,
            "cart_token": null,
            "checkout_id": 24167827865759,
            "checkout_token": "dc6f6a96f31cf73e99b1f92e243c1279",
            "client_details": {
                "accept_language": "en-GB,en-US;q=0.9,en;q=0.8",
                "browser_height": 948,
                "browser_ip": "",
                "browser_width": 1848,
                "session_hash": null,
                "user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36"
            "closed_at": null,
            "confirmed": true,
            "contact_email": "<|>",
            "created_at": "2022-02-23T19:18:02+00:00",
            "currency": "GBP",
            "current_subtotal_price": "99.00",
            "current_total_tax": "0.00",
            "customer_locale": "en",
            "device_id": null,
            "discount_codes": [],
            "email": "<|>",
            "estimated_taxes": false,
            "financial_status": "paid",
            "fulfillment_status": null,
            "gateway": "bogus",
            "landing_site": "/wallets/checkouts.json",
            "landing_site_ref": null,
            "location_id": null,
            "name": "#1004",
            "note": null,
            "note_attributes": [],
            "number": 4,
            "order_number": 1004,
            "order_status_url": "<>",
            "original_total_duties_set": null,
            "payment_gateway_names": [
            "phone": null,
            "presentment_currency": "GBP",
            "processed_at": "2022-02-23T19:18:00+00:00",
            "processing_method": "direct",
            "reference": null,
            "referring_site": "<>",
            "source_identifier": null,
            "source_name": "web",
            "source_url": null,
            "subtotal_price": "99.00",
            "tags": "",
            "total_outstanding": "0.00",
            "total_price": "99.00",