diff --git a/tap_recharge/schemas/charges.json b/tap_recharge/schemas/charges.json index bcdf8aa..0f2fa44 100644 --- a/tap_recharge/schemas/charges.json +++ b/tap_recharge/schemas/charges.json @@ -449,12 +449,10 @@ "type": ["null", "string"] }, "total_refunds": { - "type": ["null", "number"], - "multipleOf": 1e-08 + "type": ["null", "string"] }, "total_tax": { - "type": ["null", "number"], - "multipleOf": 1e-08 + "type": ["null", "string"] }, "total_weight": { "type": ["null", "integer"] diff --git a/tap_recharge/schemas/discounts.json b/tap_recharge/schemas/discounts.json index 4cb3763..a9f3455 100644 --- a/tap_recharge/schemas/discounts.json +++ b/tap_recharge/schemas/discounts.json @@ -23,7 +23,19 @@ "type": ["null", "string"] }, "usage_limit": { - "type": ["null", "integer"] + "type": ["null", "object"], + "additionalProperties": false, + "properties": { + "max_subsequent_redemptions": { + "type": ["null", "integer"] + }, + "first_time_customer_restriction": { + "type": ["null", "boolean"] + }, + "one_application_per_customer": { + "type": ["null", "string"] + } + } }, "applies_to_id": { "type": ["null", "integer"] diff --git a/tap_recharge/schemas/metafields_customer.json b/tap_recharge/schemas/metafields_customer.json index 6f8eefe..3193ce8 100644 --- a/tap_recharge/schemas/metafields_customer.json +++ b/tap_recharge/schemas/metafields_customer.json @@ -19,7 +19,7 @@ "type": ["null", "string"] }, "owner_id": { - "type": ["null", "integer"] + "type": ["null", "string"] }, "owner_resource": { "type": ["null", "string"] diff --git a/tap_recharge/schemas/metafields_store.json b/tap_recharge/schemas/metafields_store.json index 6f8eefe..3193ce8 100644 --- a/tap_recharge/schemas/metafields_store.json +++ b/tap_recharge/schemas/metafields_store.json @@ -19,7 +19,7 @@ "type": ["null", "string"] }, "owner_id": { - "type": ["null", "integer"] + "type": ["null", "string"] }, "owner_resource": { "type": ["null", "string"] diff --git a/tap_recharge/schemas/metafields_subscription.json b/tap_recharge/schemas/metafields_subscription.json index 6f8eefe..3193ce8 100644 --- a/tap_recharge/schemas/metafields_subscription.json +++ b/tap_recharge/schemas/metafields_subscription.json @@ -19,7 +19,7 @@ "type": ["null", "string"] }, "owner_id": { - "type": ["null", "integer"] + "type": ["null", "string"] }, "owner_resource": { "type": ["null", "string"] diff --git a/tap_recharge/schemas/onetimes.json b/tap_recharge/schemas/onetimes.json index 13c967d..06b03da 100644 --- a/tap_recharge/schemas/onetimes.json +++ b/tap_recharge/schemas/onetimes.json @@ -20,8 +20,7 @@ "format": "date-time" }, "price": { - "type": ["null", "number"], - "multipleOf": 1e-08 + "type": ["null", "string"] }, "product_title": { "type": ["null", "string"] diff --git a/tap_recharge/schemas/orders.json b/tap_recharge/schemas/orders.json index 5a5ec73..927295b 100644 --- a/tap_recharge/schemas/orders.json +++ b/tap_recharge/schemas/orders.json @@ -98,7 +98,7 @@ "type": ["null", "integer"] }, "is_prepaid": { - "type": ["null", "integer"] + "type": ["null", "boolean"] }, "last_name": { "type": ["null", "string"] @@ -455,8 +455,7 @@ ] }, "total_discounts": { - "type": ["null", "number"], - "multipleOf": 1e-08 + "type": ["null", "string"] }, "total_line_items_price": { "type": ["null", "number"], @@ -466,12 +465,10 @@ "type": ["null", "string"] }, "total_refunds": { - "type": ["null", "number"], - "multipleOf": 1e-08 + "type": ["null", "string"] }, "total_tax": { - "type": ["null", "number"], - "multipleOf": 1e-08 + "type": ["null", "string"] }, "total_weight": { "type": ["null", "integer"] diff --git a/tap_recharge/schemas/subscriptions.json b/tap_recharge/schemas/subscriptions.json index ee629e6..594de49 100644 --- a/tap_recharge/schemas/subscriptions.json +++ b/tap_recharge/schemas/subscriptions.json @@ -29,7 +29,7 @@ "type": ["null", "integer"] }, "has_queued_charges": { - "type": ["null", "integer"] + "type": ["null", "boolean"] }, "id": { "type": ["null", "integer"] @@ -41,7 +41,7 @@ "type": ["null", "boolean"] }, "max_retries_reached": { - "type": ["null", "integer"] + "type": ["null", "boolean"] }, "next_charge_scheduled_at": { "type": ["null", "string"], @@ -60,8 +60,7 @@ "type": ["null", "string"] }, "price": { - "type": ["null", "number"], - "multipleOf": 1e-08 + "type": ["null", "string"] }, "product_title": { "type": ["null", "string"] @@ -104,7 +103,7 @@ "type": ["null", "string"] }, "sku_override": { - "type": ["null", "string"] + "type": ["null", "boolean"] }, "status": { "type": ["null", "string"]