From 9903c8a01842dd43de77274e1f775b22878c1042 Mon Sep 17 00:00:00 2001 From: Jon Wihl Date: Fri, 23 Aug 2024 17:46:50 -0400 Subject: [PATCH 1/5] removed date-time formatting for recharge/collections --- source-recharge/source_recharge/schemas/collections.json | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source-recharge/source_recharge/schemas/collections.json b/source-recharge/source_recharge/schemas/collections.json index 2c1c9eb7ed..4e263e2f03 100644 --- a/source-recharge/source_recharge/schemas/collections.json +++ b/source-recharge/source_recharge/schemas/collections.json @@ -10,12 +10,10 @@ "type": ["null", "string"] }, "created_at": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "string"] }, "updated_at": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "string"] } } } From dd6979c94d7cb493e5b6fdb421a6bb14182e65ba Mon Sep 17 00:00:00 2001 From: Jon Wihl Date: Fri, 23 Aug 2024 17:47:26 -0400 Subject: [PATCH 2/5] Removed date-time formatting for recharge/onetimes --- source-recharge/source_recharge/schemas/onetimes.json | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source-recharge/source_recharge/schemas/onetimes.json b/source-recharge/source_recharge/schemas/onetimes.json index edac80c89d..e2568731f5 100644 --- a/source-recharge/source_recharge/schemas/onetimes.json +++ b/source-recharge/source_recharge/schemas/onetimes.json @@ -10,8 +10,7 @@ "type": ["null", "string"] }, "created_at": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "string"] }, "customer_id": { "type": ["null", "string"] @@ -48,8 +47,7 @@ "type": ["null", "string"] }, "updated_at": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "string"] }, "variant_title": { "type": ["null", "string"] From a871f749399f8705ca8ba5d5c9c4b1d5552915e4 Mon Sep 17 00:00:00 2001 From: Jon Wihl Date: Fri, 23 Aug 2024 17:48:05 -0400 Subject: [PATCH 3/5] updated snapshots --- .../snapshot__discover__capture.stdout.json | 2836 +++++++++++++++++ .../snapshot__spec__capture.stdout.json | 82 + 2 files changed, 2918 insertions(+) create mode 100644 source-recharge/tests/snapshots/snapshot__discover__capture.stdout.json create mode 100644 source-recharge/tests/snapshots/snapshot__spec__capture.stdout.json diff --git a/source-recharge/tests/snapshots/snapshot__discover__capture.stdout.json b/source-recharge/tests/snapshots/snapshot__discover__capture.stdout.json new file mode 100644 index 0000000000..422d17157b --- /dev/null +++ b/source-recharge/tests/snapshots/snapshot__discover__capture.stdout.json @@ -0,0 +1,2836 @@ +[ + { + "documentSchema": { + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "_meta": { + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ], + "type": "object" + }, + "address1": { + "type": [ + "null", + "string" + ] + }, + "address2": { + "type": [ + "null", + "string" + ] + }, + "cart_note": { + "type": [ + "null", + "string" + ] + }, + "city": { + "type": [ + "null", + "string" + ] + }, + "company": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "created_at": { + "format": "date-time", + "type": [ + "null", + "string" + ] + }, + "customer_id": { + "type": [ + "null", + "integer" + ] + }, + "discount_id": { + "type": [ + "null", + "integer" + ] + }, + "first_name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "integer" + ] + }, + "last_name": { + "type": [ + "null", + "string" + ] + }, + "note_attributes": { + "type": [ + "null", + "array" + ] + }, + "phone": { + "type": [ + "null", + "string" + ] + }, + "province": { + "type": [ + "null", + "string" + ] + }, + "shipping_lines_override": { + "type": [ + "null", + "array" + ] + }, + "updated_at": { + "format": "date-time", + "type": [ + "null", + "string" + ] + }, + "zip": { + "type": [ + "null", + "string" + ] + } + }, + "required": [ + "id" + ], + "type": "object" + }, + "key": [ + "/id" + ], + "recommendedName": "addresses", + "resourceConfig": { + "cursorField": [ + "updated_at" + ], + "stream": "addresses", + "syncMode": "incremental" + } + }, + { + "documentSchema": { + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "_meta": { + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ], + "type": "object" + }, + "address_id": { + "type": [ + "null", + "integer" + ] + }, + "analytics_data": { + "type": [ + "null", + "object" + ] + }, + "billing_address": { + "properties": { + "address1": { + "type": [ + "null", + "string" + ] + }, + "address2": { + "type": [ + "null", + "string" + ] + }, + "cart_note": { + "type": [ + "null", + "string" + ] + }, + "city": { + "type": [ + "null", + "string" + ] + }, + "company": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "created_at": { + "format": "date-time", + "type": [ + "null", + "string" + ] + }, + "customer_id": { + "type": [ + "null", + "integer" + ] + }, + "discount_id": { + "type": [ + "null", + "integer" + ] + }, + "first_name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "last_name": { + "type": [ + "null", + "string" + ] + }, + "note_attributes": { + "type": [ + "null", + "array" + ] + }, + "phone": { + "type": [ + "null", + "string" + ] + }, + "province": { + "type": [ + "null", + "string" + ] + }, + "shipping_lines_override": { + "type": [ + "null", + "array" + ] + }, + "updated_at": { + "format": "date-time", + "type": [ + "null", + "string" + ] + }, + "zip": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "client_details": { + "type": [ + "null", + "object" + ] + }, + "created_at": { + "format": "date-time", + "type": [ + "null", + "string" + ] + }, + "customer_hash": { + "type": [ + "null", + "string" + ] + }, + "customer_id": { + "type": [ + "null", + "integer" + ] + }, + "discount_codes": { + "items": { + "type": [ + "null", + "object" + ] + }, + "type": [ + "null", + "array" + ] + }, + "email": { + "type": [ + "null", + "string" + ] + }, + "error": { + "type": [ + "null", + "string" + ] + }, + "error_type": { + "type": [ + "null", + "string" + ] + }, + "first_name": { + "type": [ + "null", + "string" + ] + }, + "has_uncommited_changes": { + "type": [ + "null", + "boolean" + ] + }, + "id": { + "type": [ + "integer" + ] + }, + "last_charge_attempt_date": { + "format": "date-time", + "type": [ + "null", + "string" + ] + }, + "last_name": { + "type": [ + "null", + "string" + ] + }, + "line_items": { + "type": [ + "null", + "array" + ] + }, + "note": { + "type": [ + "null", + "string" + ] + }, + "note_attributes": { + "type": [ + "null", + "array" + ] + }, + "number_times_tried": { + "type": [ + "null", + "integer" + ] + }, + "processed_at": { + "format": "date-time", + "type": [ + "null", + "string" + ] + }, + "processor_name": { + "type": [ + "null", + "string" + ] + }, + "retry_date": { + "format": "date-time", + "type": [ + "null", + "string" + ] + }, + "scheduled_at": { + "type": [ + "null", + "string" + ] + }, + "shipments_count": { + "type": [ + "null", + "integer" + ] + }, + "shipping_address": { + "properties": { + "address1": { + "type": [ + "null", + "string" + ] + }, + "address2": { + "type": [ + "null", + "string" + ] + }, + "cart_note": { + "type": [ + "null", + "string" + ] + }, + "city": { + "type": [ + "null", + "string" + ] + }, + "company": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "created_at": { + "format": "date-time", + "type": [ + "null", + "string" + ] + }, + "customer_id": { + "type": [ + "null", + "integer" + ] + }, + "discount_id": { + "type": [ + "null", + "integer" + ] + }, + "first_name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "last_name": { + "type": [ + "null", + "string" + ] + }, + "note_attributes": { + "type": [ + "null", + "array" + ] + }, + "phone": { + "type": [ + "null", + "string" + ] + }, + "province": { + "type": [ + "null", + "string" + ] + }, + "shipping_lines_override": { + "type": [ + "null", + "array" + ] + }, + "updated_at": { + "format": "date-time", + "type": [ + "null", + "string" + ] + }, + "zip": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "shipping_lines": { + "items": { + "type": "object" + }, + "type": [ + "null", + "array" + ] + }, + "shopify_order_id": { + "type": [ + "null", + "string" + ] + }, + "shopify_variant_id_not_found": { + "type": [ + "null", + "string" + ] + }, + "status": { + "type": [ + "null", + "string" + ] + }, + "subtotal_price": { + "type": [ + "null", + "string" + ] + }, + "tags": { + "type": [ + "null", + "string" + ] + }, + "tax_lines": { + "type": [ + "null", + "string" + ] + }, + "total_discounts": { + "type": [ + "null", + "string" + ] + }, + "total_line_items_price": { + "type": [ + "null", + "string" + ] + }, + "total_price": { + "type": [ + "null", + "string" + ] + }, + "total_refunds": { + "type": [ + "null", + "string" + ] + }, + "total_tax": { + "type": [ + "null", + "string" + ] + }, + "total_weight": { + "type": [ + "null", + "integer" + ] + }, + "transaction_id": { + "type": [ + "null", + "string" + ] + }, + "type": { + "type": [ + "null", + "string" + ] + }, + "updated_at": { + "format": "date-time", + "type": [ + "null", + "string" + ] + } + }, + "required": [ + "id" + ], + "type": "object" + }, + "key": [ + "/id" + ], + "recommendedName": "charges", + "resourceConfig": { + "cursorField": [ + "updated_at" + ], + "stream": "charges", + "syncMode": "incremental" + } + }, + { + "documentSchema": { + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "_meta": { + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ], + "type": "object" + }, + "created_at": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "integer" + ] + }, + "name": { + "type": [ + "null", + "string" + ] + }, + "updated_at": { + "type": [ + "null", + "string" + ] + } + }, + "required": [ + "id" + ], + "type": "object" + }, + "key": [ + "/id" + ], + "recommendedName": "collections", + "resourceConfig": { + "stream": "collections", + "syncMode": "full_refresh" + } + }, + { + "documentSchema": { + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "_meta": { + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ], + "type": "object" + }, + "accepts_marketing": { + "type": [ + "null", + "integer" + ] + }, + "analytics_data": { + "type": [ + "null", + "object" + ] + }, + "apply_credit_to_next_recurring_charge": { + "type": [ + "null", + "boolean" + ] + }, + "billing_address1": { + "type": [ + "null", + "string" + ] + }, + "billing_address2": { + "type": [ + "null", + "string" + ] + }, + "billing_city": { + "type": [ + "null", + "string" + ] + }, + "billing_company": { + "type": [ + "null", + "string" + ] + }, + "billing_country": { + "type": [ + "null", + "string" + ] + }, + "billing_first_name": { + "type": [ + "null", + "string" + ] + }, + "billing_last_name": { + "type": [ + "null", + "string" + ] + }, + "billing_phone": { + "type": [ + "null", + "string" + ] + }, + "billing_province": { + "type": [ + "null", + "string" + ] + }, + "billing_zip": { + "type": [ + "null", + "string" + ] + }, + "created_at": { + "format": "date-time", + "type": [ + "null", + "string" + ] + }, + "email": { + "type": [ + "null", + "string" + ] + }, + "first_charge_processed_at": { + "format": "date-time", + "type": [ + "null", + "string" + ] + }, + "first_name": { + "type": [ + "null", + "string" + ] + }, + "has_card_error_in_dunning": { + "type": [ + "null", + "boolean" + ] + }, + "has_valid_payment_method": { + "type": [ + "null", + "boolean" + ] + }, + "hash": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "integer" + ] + }, + "last_name": { + "type": [ + "null", + "string" + ] + }, + "number_active_subscriptions": { + "type": [ + "null", + "integer" + ] + }, + "number_subscriptions": { + "type": [ + "null", + "integer" + ] + }, + "processor_type": { + "type": [ + "null", + "string" + ] + }, + "reason_payment_method_not_valid": { + "type": [ + "null", + "string" + ] + }, + "shopify_customer_id": { + "type": [ + "null", + "string" + ] + }, + "status": { + "type": [ + "null", + "string" + ] + }, + "stripe_customer_token": { + "type": [ + "null", + "string" + ] + }, + "updated_at": { + "format": "date-time", + "type": [ + "null", + "string" + ] + } + }, + "required": [ + "id" + ], + "type": "object" + }, + "key": [ + "/id" + ], + "recommendedName": "customers", + "resourceConfig": { + "cursorField": [ + "updated_at" + ], + "stream": "customers", + "syncMode": "incremental" + } + }, + { + "documentSchema": { + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "_meta": { + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ], + "type": "object" + }, + "applies_to": { + "type": [ + "null", + "string" + ] + }, + "applies_to_id": { + "type": [ + "null", + "integer" + ] + }, + "applies_to_product_type": { + "type": [ + "null", + "string" + ] + }, + "applies_to_resource": { + "type": [ + "null", + "string" + ] + }, + "channel_settings": { + "properties": { + "api": { + "properties": { + "can_apply": { + "type": "boolean" + } + }, + "type": "object" + }, + "checkout_page": { + "properties": { + "can_apply": { + "type": "boolean" + } + }, + "type": "object" + }, + "customer_portal": { + "properties": { + "can_apply": { + "type": "boolean" + } + }, + "type": "object" + }, + "merchant_portal": { + "properties": { + "can_apply": { + "type": "boolean" + } + }, + "type": "object" + } + }, + "type": [ + "null", + "object" + ] + }, + "code": { + "type": [ + "null", + "string" + ] + }, + "created_at": { + "format": "date-time", + "type": [ + "null", + "string" + ] + }, + "discount_type": { + "type": [ + "null", + "string" + ] + }, + "duration": { + "type": [ + "null", + "string" + ] + }, + "duration_usage_limit": { + "type": [ + "null", + "integer" + ] + }, + "ends_at": { + "format": "date-time", + "type": [ + "null", + "string" + ] + }, + "external_discount_id": { + "type": [ + "null", + "string" + ] + }, + "external_discount_source": { + "type": [ + "null", + "string" + ] + }, + "first_time_customer_restriction": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "integer" + ] + }, + "once_per_customer": { + "type": [ + "null", + "boolean" + ] + }, + "prerequisite_subtotal_min": { + "type": [ + "null", + "number" + ] + }, + "starts_at": { + "format": "date-time", + "type": [ + "null", + "string" + ] + }, + "status": { + "type": [ + "null", + "string" + ] + }, + "times_used": { + "type": [ + "null", + "number" + ] + }, + "updated_at": { + "format": "date-time", + "type": [ + "null", + "string" + ] + }, + "usage_limit": { + "type": [ + "null", + "number" + ] + }, + "value": { + "type": [ + "null", + "number" + ] + } + }, + "required": [ + "id" + ], + "type": "object" + }, + "key": [ + "/id" + ], + "recommendedName": "discounts", + "resourceConfig": { + "cursorField": [ + "updated_at" + ], + "stream": "discounts", + "syncMode": "incremental" + } + }, + { + "documentSchema": { + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "_meta": { + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ], + "type": "object" + }, + "created_at": { + "format": "date-time", + "type": [ + "null", + "string" + ] + }, + "description": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "integer" + ] + }, + "key": { + "type": [ + "null", + "string" + ] + }, + "namespace": { + "type": [ + "null", + "string" + ] + }, + "owner_id": { + "type": [ + "null", + "string" + ] + }, + "owner_resource": { + "type": [ + "null", + "string" + ] + }, + "updated_at": { + "format": "date-time", + "type": [ + "null", + "string" + ] + }, + "value": { + "type": [ + "null", + "string" + ] + }, + "value_type": { + "type": [ + "null", + "string" + ] + } + }, + "required": [ + "id" + ], + "type": "object" + }, + "key": [ + "/id" + ], + "recommendedName": "metafields", + "resourceConfig": { + "stream": "metafields", + "syncMode": "full_refresh" + } + }, + { + "documentSchema": { + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "_meta": { + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ], + "type": "object" + }, + "address_id": { + "type": [ + "null", + "string" + ] + }, + "created_at": { + "type": [ + "null", + "string" + ] + }, + "customer_id": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "integer" + ] + }, + "next_charge_scheduled_at": { + "format": "date-time", + "type": [ + "null", + "string" + ] + }, + "price": { + "type": [ + "null", + "string" + ] + }, + "product_title": { + "type": [ + "null", + "string" + ] + }, + "properties": { + "type": [ + "null", + "array" + ] + }, + "quantity": { + "type": [ + "null", + "integer" + ] + }, + "recharge_product_id": { + "type": [ + "null", + "integer" + ] + }, + "shopify_product_id": { + "type": [ + "null", + "integer" + ] + }, + "shopify_variant_id": { + "type": [ + "null", + "integer" + ] + }, + "sku": { + "type": [ + "null", + "string" + ] + }, + "status": { + "type": [ + "null", + "string" + ] + }, + "updated_at": { + "type": [ + "null", + "string" + ] + }, + "variant_title": { + "type": [ + "null", + "string" + ] + } + }, + "required": [ + "id" + ], + "type": "object" + }, + "key": [ + "/id" + ], + "recommendedName": "onetimes", + "resourceConfig": { + "cursorField": [ + "updated_at" + ], + "stream": "onetimes", + "syncMode": "incremental" + } + }, + { + "documentSchema": { + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "_meta": { + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ], + "type": "object" + }, + "address_id": { + "type": [ + "null", + "integer" + ] + }, + "address_is_active": { + "type": [ + "null", + "integer" + ] + }, + "billing_address": { + "properties": { + "address1": { + "type": [ + "null", + "string" + ] + }, + "address2": { + "type": [ + "null", + "string" + ] + }, + "cart_note": { + "type": [ + "null", + "string" + ] + }, + "city": { + "type": [ + "null", + "string" + ] + }, + "company": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "created_at": { + "format": "date-time", + "type": [ + "null", + "string" + ] + }, + "customer_id": { + "type": [ + "null", + "integer" + ] + }, + "discount_id": { + "type": [ + "null", + "integer" + ] + }, + "first_name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "last_name": { + "type": [ + "null", + "string" + ] + }, + "note_attributes": { + "type": [ + "null", + "array" + ] + }, + "phone": { + "type": [ + "null", + "string" + ] + }, + "province": { + "type": [ + "null", + "string" + ] + }, + "shipping_lines_override": { + "type": [ + "null", + "array" + ] + }, + "updated_at": { + "format": "date-time", + "type": [ + "null", + "string" + ] + }, + "zip": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "browser_ip": { + "type": [ + "null", + "string" + ] + }, + "charge": { + "additionalProperties": true, + "properties": { + "external_transaction_id": { + "additionalProperties": true, + "properties": { + "payment_processor": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "payment_processor_name": { + "type": [ + "null", + "string" + ] + }, + "status": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "charge_id": { + "type": [ + "null", + "integer" + ] + }, + "charge_status": { + "type": [ + "null", + "string" + ] + }, + "client_details": { + "additionalProperties": true, + "properties": { + "browser_ip": { + "type": [ + "null", + "string" + ] + }, + "user_agent": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "created_at": { + "format": "date-time", + "type": [ + "null", + "string" + ] + }, + "currency": { + "type": [ + "null", + "string" + ] + }, + "customer": { + "properties": { + "billing_address1": { + "type": [ + "null", + "string" + ] + }, + "billing_address2": { + "type": [ + "null", + "string" + ] + }, + "billing_city": { + "type": [ + "null", + "string" + ] + }, + "billing_company": { + "type": [ + "null", + "string" + ] + }, + "billing_country": { + "type": [ + "null", + "string" + ] + }, + "billing_first_name": { + "type": [ + "null", + "string" + ] + }, + "billing_last_name": { + "type": [ + "null", + "string" + ] + }, + "billing_phone": { + "type": [ + "null", + "string" + ] + }, + "billing_province": { + "type": [ + "null", + "string" + ] + }, + "billing_zip": { + "type": [ + "null", + "string" + ] + }, + "created_at": { + "format": "date-time", + "type": [ + "null", + "string" + ] + }, + "email": { + "type": [ + "null", + "string" + ] + }, + "first_charge_processed_at": { + "format": "date-time", + "type": [ + "null", + "string" + ] + }, + "first_name": { + "type": [ + "null", + "string" + ] + }, + "has_card_error_in_dunning": { + "type": [ + "null", + "boolean" + ] + }, + "has_valid_payment_method": { + "type": [ + "null", + "boolean" + ] + }, + "hash": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "last_name": { + "type": [ + "null", + "string" + ] + }, + "number_active_subscriptions": { + "type": [ + "null", + "integer" + ] + }, + "number_subscriptions": { + "type": [ + "null", + "integer" + ] + }, + "processor_type": { + "type": [ + "null", + "string" + ] + }, + "reason_payment_method_not_valid": { + "type": [ + "null", + "string" + ] + }, + "shopify_customer_id": { + "type": [ + "null", + "string" + ] + }, + "status": { + "type": [ + "null", + "string" + ] + }, + "updated_at": { + "format": "date-time", + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "customer_id": { + "type": [ + "null", + "integer" + ] + }, + "discount_codes": { + "type": [ + "null", + "array" + ] + }, + "discounts": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "email": { + "type": [ + "null", + "string" + ] + }, + "error": { + "type": [ + "null", + "string" + ] + }, + "external_cart_token": { + "type": [ + "null", + "string" + ] + }, + "external_order_id": { + "additionalProperties": true, + "properties": { + "ecommerce": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "external_order_name": { + "additionalProperties": true, + "properties": { + "ecommerce": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "external_order_number": { + "additionalProperties": true, + "properties": { + "ecommerce": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "first_name": { + "type": [ + "null", + "string" + ] + }, + "hash": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "integer" + ] + }, + "is_prepaid": { + "type": [ + "null", + "integer" + ] + }, + "last_name": { + "type": [ + "null", + "string" + ] + }, + "line_items": { + "items": { + "properties": { + "external_inventory_policy": { + "type": [ + "null", + "string" + ] + }, + "grams": { + "type": [ + "null", + "number" + ] + }, + "images": { + "type": [ + "null", + "object" + ] + }, + "price": { + "type": [ + "null", + "number" + ] + }, + "properties": { + "type": [ + "null", + "array" + ] + }, + "quantity": { + "type": [ + "null", + "integer" + ] + }, + "shopify_product_id": { + "type": [ + "null", + "string" + ] + }, + "shopify_variant_id": { + "type": [ + "null", + "string" + ] + }, + "sku": { + "type": [ + "null", + "string" + ] + }, + "subscription_id": { + "type": [ + "null", + "integer" + ] + }, + "title": { + "type": [ + "null", + "string" + ] + }, + "variant_title": { + "type": [ + "null", + "string" + ] + } + }, + "type": "object" + }, + "type": [ + "null", + "array" + ] + }, + "note": { + "type": [ + "null", + "string" + ] + }, + "note_attributes": { + "type": [ + "null", + "array" + ] + }, + "order_attributes": { + "items": { + "type": [ + "null", + "string" + ] + }, + "type": [ + "null", + "array" + ] + }, + "payment_processor": { + "type": [ + "null", + "string" + ] + }, + "processed_at": { + "format": "date-time", + "type": [ + "null", + "string" + ] + }, + "redacted": { + "type": [ + "null", + "boolean" + ] + }, + "scheduled_at": { + "format": "date-time", + "type": [ + "null", + "string" + ] + }, + "shipped_date": { + "format": "date-time", + "type": [ + "null", + "string" + ] + }, + "shipping_address": { + "properties": { + "address1": { + "type": [ + "null", + "string" + ] + }, + "address2": { + "type": [ + "null", + "string" + ] + }, + "cart_note": { + "type": [ + "null", + "string" + ] + }, + "city": { + "type": [ + "null", + "string" + ] + }, + "company": { + "type": [ + "null", + "string" + ] + }, + "country": { + "type": [ + "null", + "string" + ] + }, + "created_at": { + "format": "date-time", + "type": [ + "null", + "string" + ] + }, + "customer_id": { + "type": [ + "null", + "integer" + ] + }, + "discount_id": { + "type": [ + "null", + "integer" + ] + }, + "first_name": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "null", + "integer" + ] + }, + "last_name": { + "type": [ + "null", + "string" + ] + }, + "note_attributes": { + "type": [ + "null", + "array" + ] + }, + "phone": { + "type": [ + "null", + "string" + ] + }, + "province": { + "type": [ + "null", + "string" + ] + }, + "shipping_lines_override": { + "type": [ + "null", + "array" + ] + }, + "updated_at": { + "format": "date-time", + "type": [ + "null", + "string" + ] + }, + "zip": { + "type": [ + "null", + "string" + ] + } + }, + "type": [ + "null", + "object" + ] + }, + "shipping_lines": { + "type": [ + "null", + "array" + ] + }, + "shopify_cart_token": { + "type": [ + "null", + "string" + ] + }, + "shopify_customer_id": { + "type": [ + "null", + "string" + ] + }, + "shopify_order_id": { + "type": [ + "null", + "string" + ] + }, + "shopify_order_number": { + "type": [ + "null", + "integer" + ] + }, + "status": { + "type": [ + "null", + "string" + ] + }, + "subtotal_price": { + "type": [ + "null", + "number" + ] + }, + "tags": { + "type": [ + "null", + "string" + ] + }, + "tax_lines": { + "type": [ + "null", + "array" + ] + }, + "taxable": { + "type": [ + "null", + "boolean" + ] + }, + "total_discounts": { + "type": [ + "null", + "number" + ] + }, + "total_duties": { + "type": [ + "null", + "string" + ] + }, + "total_line_items_price": { + "type": [ + "null", + "number" + ] + }, + "total_price": { + "type": [ + "null", + "number" + ] + }, + "total_refunds": { + "type": [ + "null", + "string" + ] + }, + "total_tax": { + "type": [ + "null", + "string" + ] + }, + "total_weight": { + "type": [ + "null", + "integer" + ] + }, + "total_weight_grams": { + "type": [ + "null", + "integer" + ] + }, + "transaction_id": { + "type": [ + "null", + "string" + ] + }, + "type": { + "type": [ + "null", + "string" + ] + }, + "updated_at": { + "format": "date-time", + "type": [ + "null", + "string" + ] + } + }, + "required": [ + "id" + ], + "type": "object" + }, + "key": [ + "/id" + ], + "recommendedName": "orders", + "resourceConfig": { + "cursorField": [ + "updated_at" + ], + "stream": "orders", + "syncMode": "incremental" + } + }, + { + "documentSchema": { + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "_meta": { + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ], + "type": "object" + }, + "charge_interval_frequency": { + "type": [ + "null", + "integer" + ] + }, + "collection_id": { + "type": [ + "null", + "integer" + ] + }, + "created_at": { + "format": "date-time", + "type": [ + "null", + "string" + ] + }, + "cutoff_day_of_month": { + "type": [ + "null", + "integer" + ] + }, + "cutoff_day_of_week": { + "type": [ + "null", + "integer" + ] + }, + "discount_amount": { + "type": [ + "null", + "number" + ] + }, + "discount_type": { + "type": [ + "null", + "string" + ] + }, + "expire_after_specific_number_of_charges": { + "type": [ + "null", + "integer" + ] + }, + "handle": { + "type": [ + "null", + "string" + ] + }, + "id": { + "type": [ + "integer" + ] + }, + "images": { + "type": [ + "null", + "object" + ] + }, + "modifiable_properties": { + "type": [ + "null", + "array" + ] + }, + "order_day_of_month": { + "type": [ + "null", + "integer" + ] + }, + "order_day_of_week": { + "type": [ + "null", + "integer" + ] + }, + "order_interval_frequency_options": { + "type": [ + "null", + "array" + ] + }, + "order_interval_unit": { + "type": [ + "null", + "string" + ] + }, + "shopify_product_id": { + "type": [ + "null", + "integer" + ] + }, + "storefront_purchase_options": { + "type": [ + "null", + "string" + ] + }, + "subscription_defaults": { + "type": [ + "null", + "object" + ] + }, + "title": { + "type": [ + "null", + "string" + ] + }, + "updated_at": { + "format": "date-time", + "type": [ + "null", + "string" + ] + } + }, + "required": [ + "id" + ], + "type": "object" + }, + "key": [ + "/id" + ], + "recommendedName": "products", + "resourceConfig": { + "stream": "products", + "syncMode": "full_refresh" + } + }, + { + "documentSchema": { + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "_meta": { + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ], + "type": "object" + }, + "shop": { + "type": [ + "null", + "object" + ] + }, + "store": { + "properties": { + "checkout_platform": { + "type": [ + "string", + "null" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ] + }, + "currency": { + "type": [ + "string", + "null" + ] + }, + "disabled_currencies_historical": { + "type": [ + "array", + "null" + ] + }, + "domain": { + "type": [ + "string", + "null" + ] + }, + "email": { + "type": [ + "string", + "null" + ] + }, + "enabled_presentment_currencies": { + "type": [ + "array", + "null" + ] + }, + "enabled_presentment_currencies_symbols": { + "type": [ + "array", + "null" + ] + }, + "iana_timezone": { + "type": [ + "string", + "null" + ] + }, + "id": { + "type": "integer" + }, + "my_shopify_domain": { + "type": [ + "string", + "null" + ] + }, + "name": { + "type": [ + "string", + "null" + ] + }, + "shop_email": { + "type": [ + "string", + "null" + ] + }, + "shop_phone": { + "type": [ + "string", + "null" + ] + }, + "timezone": { + "type": [ + "string", + "null" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object" + ] + }, + "store_id": { + "type": "integer" + } + }, + "required": [ + "store_id" + ], + "type": "object" + }, + "key": [ + "/store_id" + ], + "recommendedName": "shop", + "resourceConfig": { + "stream": "shop", + "syncMode": "full_refresh" + } + }, + { + "documentSchema": { + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "_meta": { + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ], + "type": "object" + }, + "address_id": { + "type": [ + "null", + "integer" + ] + }, + "analytics_data": { + "type": [ + "null", + "object" + ] + }, + "cancellation_reason": { + "type": [ + "null", + "string" + ] + }, + "cancellation_reason_comments": { + "type": [ + "null", + "string" + ] + }, + "cancelled_at": { + "format": "date-time", + "type": [ + "null", + "string" + ] + }, + "charge_interval_frequency": { + "type": [ + "null", + "string" + ] + }, + "commit_update": { + "type": [ + "null", + "boolean" + ] + }, + "created_at": { + "format": "date-time", + "type": [ + "null", + "string" + ] + }, + "customer_id": { + "type": [ + "null", + "integer" + ] + }, + "email": { + "type": [ + "null", + "string" + ] + }, + "expire_after_specific_number_of_charges": { + "type": [ + "null", + "integer" + ] + }, + "has_queued_charges": { + "type": [ + "null", + "integer" + ] + }, + "id": { + "type": [ + "integer" + ] + }, + "is_prepaid": { + "type": [ + "null", + "boolean" + ] + }, + "is_skippable": { + "type": [ + "null", + "boolean" + ] + }, + "is_swappable": { + "type": [ + "null", + "boolean" + ] + }, + "max_retries_reached": { + "type": [ + "null", + "integer" + ] + }, + "next_charge_scheduled_at": { + "type": [ + "null", + "string" + ] + }, + "order_day_of_month": { + "type": [ + "null", + "integer" + ] + }, + "order_day_of_week": { + "type": [ + "null", + "integer" + ] + }, + "order_interval_frequency": { + "type": [ + "null", + "string" + ] + }, + "order_interval_unit": { + "type": [ + "null", + "string" + ] + }, + "price": { + "type": [ + "null", + "number" + ] + }, + "product_title": { + "type": [ + "null", + "string" + ] + }, + "properties": { + "items": { + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": [ + "null", + "string" + ] + } + }, + "type": "object" + }, + "type": [ + "null", + "array" + ] + }, + "quantity": { + "type": [ + "null", + "integer" + ] + }, + "recharge_product_id": { + "type": [ + "null", + "integer" + ] + }, + "shopify_product_id": { + "type": [ + "null", + "integer" + ] + }, + "shopify_variant_id": { + "type": [ + "null", + "integer" + ] + }, + "sku": { + "type": [ + "null", + "string" + ] + }, + "sku_override": { + "type": [ + "null", + "boolean" + ] + }, + "status": { + "type": [ + "null", + "string" + ] + }, + "updated_at": { + "format": "date-time", + "type": [ + "null", + "string" + ] + }, + "variant_title": { + "type": [ + "null", + "string" + ] + } + }, + "required": [ + "id" + ], + "type": "object" + }, + "key": [ + "/id" + ], + "recommendedName": "subscriptions", + "resourceConfig": { + "cursorField": [ + "updated_at" + ], + "stream": "subscriptions", + "syncMode": "incremental" + } + } +] diff --git a/source-recharge/tests/snapshots/snapshot__spec__capture.stdout.json b/source-recharge/tests/snapshots/snapshot__spec__capture.stdout.json new file mode 100644 index 0000000000..9a6a94c03d --- /dev/null +++ b/source-recharge/tests/snapshots/snapshot__spec__capture.stdout.json @@ -0,0 +1,82 @@ +[ + { + "configSchema": { + "$schema": "http://json-schema.org/draft-07/schema#", + "additionalProperties": true, + "properties": { + "access_token": { + "airbyte_secret": true, + "description": "The value of the Access Token generated. See https://go.estuary.dev/toHj38 for more information.", + "title": "Access Token", + "type": "string" + }, + "start_date": { + "description": "The date from which you'd like to replicate data for Recharge API, in the format YYYY-MM-DDT00:00:00Z. Any data before this date will not be replicated.", + "examples": [ + "2021-05-14T00:00:00Z" + ], + "format": "date-time", + "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$", + "title": "Start Date", + "type": "string" + }, + "use_orders_deprecated_api": { + "default": true, + "description": "Define whether or not the `Orders` stream should use the deprecated `2021-01` API version, or use `2021-11`, otherwise.", + "title": "Use `Orders` Deprecated API", + "type": "boolean" + } + }, + "required": [ + "start_date", + "access_token" + ], + "title": "Recharge Spec", + "type": "object" + }, + "documentationUrl": "https://go.estuary.dev/toHj38", + "protocol": 3032023, + "resourceConfigSchema": { + "additionalProperties": false, + "description": "ResourceConfig encodes a configured resource stream", + "properties": { + "cursorField": { + "items": { + "type": "string" + }, + "title": "Cursor Field", + "type": "array" + }, + "namespace": { + "description": "Enclosing schema namespace of this resource", + "title": "Namespace", + "type": "string" + }, + "stream": { + "description": "Name of this stream", + "title": "Stream", + "type": "string" + }, + "syncMode": { + "description": "Sync this resource incrementally, or fully refresh it every run", + "enum": [ + "full_refresh", + "incremental" + ], + "title": "Sync Mode", + "type": "string" + } + }, + "required": [ + "stream", + "syncMode" + ], + "title": "ResourceConfig", + "type": "object" + }, + "resourcePathPointers": [ + "/namespace", + "/stream" + ] + } +] From c866721f6bfc00668fb131e84d2218e9b7ba3a9f Mon Sep 17 00:00:00 2001 From: Jon Wihl Date: Fri, 23 Aug 2024 18:07:50 -0400 Subject: [PATCH 4/5] Modifying onetime schema --- source-recharge/source_recharge/schemas/onetimes.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/source-recharge/source_recharge/schemas/onetimes.json b/source-recharge/source_recharge/schemas/onetimes.json index e2568731f5..d621ce7cd8 100644 --- a/source-recharge/source_recharge/schemas/onetimes.json +++ b/source-recharge/source_recharge/schemas/onetimes.json @@ -10,14 +10,14 @@ "type": ["null", "string"] }, "created_at": { - "type": ["null", "string"] + "type": ["null", "string"], + "format": "date-time" }, "customer_id": { "type": ["null", "string"] }, "next_charge_scheduled_at": { - "type": ["null", "string"], - "format": "date-time" + "type": ["null", "string"] }, "price": { "type": ["null", "string"] @@ -47,7 +47,8 @@ "type": ["null", "string"] }, "updated_at": { - "type": ["null", "string"] + "type": ["null", "string"], + "format": "date-time" }, "variant_title": { "type": ["null", "string"] From 493a7c52038c41535bfa1954a82df332128d8294 Mon Sep 17 00:00:00 2001 From: Jon Wihl Date: Fri, 23 Aug 2024 18:08:21 -0400 Subject: [PATCH 5/5] Updating snapshots --- .../tests/snapshots/snapshot__discover__capture.stdout.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source-recharge/tests/snapshots/snapshot__discover__capture.stdout.json b/source-recharge/tests/snapshots/snapshot__discover__capture.stdout.json index 422d17157b..b11daed5d6 100644 --- a/source-recharge/tests/snapshots/snapshot__discover__capture.stdout.json +++ b/source-recharge/tests/snapshots/snapshot__discover__capture.stdout.json @@ -1252,6 +1252,7 @@ ] }, "created_at": { + "format": "date-time", "type": [ "null", "string" @@ -1269,7 +1270,6 @@ ] }, "next_charge_scheduled_at": { - "format": "date-time", "type": [ "null", "string" @@ -1330,6 +1330,7 @@ ] }, "updated_at": { + "format": "date-time", "type": [ "null", "string"