From 1a90d6cd89970a3ae01b5b3f8cfcff1d9be41243 Mon Sep 17 00:00:00 2001 From: btkcodedev Date: Sat, 14 Oct 2023 03:15:15 +0530 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8Source=20Square:=20Add=20new=20stream?= =?UTF-8?q?=20Inventory=20(#31107)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Mal Hancock --- .../connectors/source-square/Dockerfile | 2 +- .../source-square/acceptance-test-config.yml | 12 +--- .../integration_tests/configured_catalog.json | 12 ++++ .../integration_tests/expected_records.jsonl | 66 +++++++++++-------- .../connectors/source-square/metadata.yaml | 2 +- .../source-square/source_square/manifest.yaml | 19 ++++++ .../source_square/schemas/inventory.json | 26 ++++++++ docs/integrations/sources/square.md | 2 + 8 files changed, 100 insertions(+), 41 deletions(-) create mode 100644 airbyte-integrations/connectors/source-square/source_square/schemas/inventory.json diff --git a/airbyte-integrations/connectors/source-square/Dockerfile b/airbyte-integrations/connectors/source-square/Dockerfile index bdac632d5be6..7f8f3ac40291 100644 --- a/airbyte-integrations/connectors/source-square/Dockerfile +++ b/airbyte-integrations/connectors/source-square/Dockerfile @@ -34,5 +34,5 @@ COPY source_square ./source_square ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py" ENTRYPOINT ["python", "/airbyte/integration_code/main.py"] -LABEL io.airbyte.version=1.2.0 +LABEL io.airbyte.version=1.3.0 LABEL io.airbyte.name=airbyte/source-square diff --git a/airbyte-integrations/connectors/source-square/acceptance-test-config.yml b/airbyte-integrations/connectors/source-square/acceptance-test-config.yml index 3087c1a5876c..aa426233b168 100644 --- a/airbyte-integrations/connectors/source-square/acceptance-test-config.yml +++ b/airbyte-integrations/connectors/source-square/acceptance-test-config.yml @@ -24,20 +24,12 @@ acceptance_tests: disable_for_version: "1.0.0" basic_read: tests: - - config_path: "secrets/config_oauth.json" + - config_path: "secrets/config.json" empty_streams: - - name: shifts - bypass_reason: "Not able to fill stream" - - name: orders - bypass_reason: "Not able to fill stream" - - name: payments - bypass_reason: "Not able to fill stream" - - name: refunds - bypass_reason: "Not able to fill stream" - name: cash_drawers bypass_reason: "Not able to fill stream" expect_records: - path: "integration_tests/expected_records_oauth.jsonl" + path: "integration_tests/expected_records.jsonl" ignored_fields: items: - name: version diff --git a/airbyte-integrations/connectors/source-square/integration_tests/configured_catalog.json b/airbyte-integrations/connectors/source-square/integration_tests/configured_catalog.json index 72198c43bc55..d83988b59c2d 100644 --- a/airbyte-integrations/connectors/source-square/integration_tests/configured_catalog.json +++ b/airbyte-integrations/connectors/source-square/integration_tests/configured_catalog.json @@ -24,6 +24,18 @@ "cursor_field": ["updated_at"], "destination_sync_mode": "append" }, + { + "stream": { + "name": "inventory", + "json_schema": {}, + "supported_sync_modes": ["full_refresh"], + "source_defined_cursor": true, + "default_cursor_field": ["catalog_object_id"] + }, + "sync_mode": "full_refresh", + "cursor_field": ["catalog_object_id"], + "destination_sync_mode": "overwrite" + }, { "stream": { "name": "discounts", diff --git a/airbyte-integrations/connectors/source-square/integration_tests/expected_records.jsonl b/airbyte-integrations/connectors/source-square/integration_tests/expected_records.jsonl index a2c1000cccc3..91867cf30cfe 100644 --- a/airbyte-integrations/connectors/source-square/integration_tests/expected_records.jsonl +++ b/airbyte-integrations/connectors/source-square/integration_tests/expected_records.jsonl @@ -1,29 +1,37 @@ -{"stream":"items","data":{"type":"ITEM","id":"K7CL577FVTGEGWEHZUU3NA6P","updated_at":"2021-06-10T22:17:32.995Z","created_at":"2021-06-10T09:58:41.311Z","version":1623363452995,"is_deleted":false,"custom_attribute_values":{"Square:eca67bfb-68a4-4218-950a-09eec906143d":{"name":"With coffee cup","string_value":"Yes","custom_attribute_definition_id":"VR43EHV5M3Z4P4CWA7K3ZXPA","type":"STRING","key":"Square:eca67bfb-68a4-4218-950a-09eec906143d"}},"present_at_all_locations":true,"item_data":{"name":"Coffee","description":"Some coffee drink","visibility":"PRIVATE","category_id":"WBVNPPUWI2YCVI2XJZNHPSQC","modifier_list_info":[{"modifier_list_id":"ZYESF2MGAMVORYB66VVXFW6V","visibility":"PUBLIC","min_selected_modifiers":-1,"max_selected_modifiers":-1,"enabled":true}],"variations":[{"type":"ITEM_VARIATION","id":"DT52FVGPUEJ7KL5WYPIK5TTP","updated_at":"2021-06-10T09:58:41.311Z","created_at":"2021-06-10T09:58:41.311Z","version":1623319121311,"is_deleted":false,"present_at_all_locations":true,"item_variation_data":{"item_id":"K7CL577FVTGEGWEHZUU3NA6P","name":"Black","sku":"1","ordinal":0,"pricing_type":"FIXED_PRICING","price_money":{"amount":900,"currency":"USD"},"location_overrides":[{"location_id":"LH2XR7AMG39HX","track_inventory":true}],"item_option_values":[{"item_option_id":"QTE3WP7JI64XLUD7AX5ER2ZI","item_option_value_id":"KRNNA4P57TDNVBJLWIBW5D47"}],"sellable":true,"stockable":true}},{"type":"ITEM_VARIATION","id":"SZTS6NG7OGC25KGTRXJEUAKK","updated_at":"2021-06-10T09:58:41.311Z","created_at":"2021-06-10T09:58:41.311Z","version":1623319121311,"is_deleted":false,"present_at_all_locations":true,"item_variation_data":{"item_id":"K7CL577FVTGEGWEHZUU3NA6P","name":"White","sku":"2","ordinal":1,"pricing_type":"FIXED_PRICING","price_money":{"amount":1000,"currency":"USD"},"location_overrides":[{"location_id":"LH2XR7AMG39HX","track_inventory":true}],"item_option_values":[{"item_option_id":"QTE3WP7JI64XLUD7AX5ER2ZI","item_option_value_id":"LIB3NSHGZUXFM3NFDHTUM4CJ"}],"sellable":true,"stockable":true}}],"product_type":"REGULAR","skip_modifier_screen":false,"item_options":[{"item_option_id":"QTE3WP7JI64XLUD7AX5ER2ZI"}],"ecom_visibility":"UNINDEXED"}},"emitted_at":1668290115725} -{"stream":"items","data":{"type":"ITEM","id":"SY3I7GJTCYIJTOD6PKLO6VKI","updated_at":"2021-06-10T21:07:19.929Z","created_at":"2021-06-10T21:07:19.929Z","version":1623359239929,"is_deleted":false,"present_at_all_locations":true,"item_data":{"name":"Tea","description":"Just the tea example","visibility":"PRIVATE","category_id":"WBVNPPUWI2YCVI2XJZNHPSQC","variations":[{"type":"ITEM_VARIATION","id":"PGOQKJWR6ALTCFPVGV54LHA6","updated_at":"2021-06-10T21:07:19.929Z","created_at":"2021-06-10T21:07:19.929Z","version":1623359239929,"is_deleted":false,"present_at_all_locations":true,"item_variation_data":{"item_id":"SY3I7GJTCYIJTOD6PKLO6VKI","name":"Regular","sku":"3","ordinal":1,"pricing_type":"FIXED_PRICING","price_money":{"amount":500,"currency":"USD"},"location_overrides":[{"location_id":"LH2XR7AMG39HX","track_inventory":true}],"sellable":true,"stockable":true}}],"product_type":"REGULAR","skip_modifier_screen":false,"ecom_visibility":"UNINDEXED"}},"emitted_at":1668290115725} -{"stream":"items","data":{"type":"ITEM","id":"UCYFEEPFPQFTWAGMH6T56L4U","updated_at":"2021-06-14T11:24:52.498Z","created_at":"2021-06-10T21:16:07.366Z","version":1623669892498,"is_deleted":false,"present_at_all_locations":true,"image_id":"7JPVLNMPVEBNXPQT5JXYCNF2","item_data":{"name":"Beer","description":"Unfiltered","visibility":"PRIVATE","category_id":"WBVNPPUWI2YCVI2XJZNHPSQC","variations":[{"type":"ITEM_VARIATION","id":"AVZZR4PLYHND3GQU5KD25GYD","updated_at":"2021-06-10T21:16:07.366Z","created_at":"2021-06-10T21:16:07.366Z","version":1623359767366,"is_deleted":false,"present_at_all_locations":true,"item_variation_data":{"item_id":"UCYFEEPFPQFTWAGMH6T56L4U","name":"Light","sku":"4","ordinal":1,"pricing_type":"FIXED_PRICING","price_money":{"amount":1100,"currency":"USD"},"location_overrides":[{"location_id":"LH2XR7AMG39HX","track_inventory":true}],"sellable":true,"stockable":true}},{"type":"ITEM_VARIATION","id":"QR3GL6QNSGG7TPGX3W6F72BK","updated_at":"2021-06-10T21:46:15.762Z","created_at":"2021-06-10T21:46:15.762Z","version":1623361575762,"is_deleted":false,"present_at_all_locations":false,"present_at_location_ids":["LH2XR7AMG39HX"],"item_variation_data":{"item_id":"UCYFEEPFPQFTWAGMH6T56L4U","name":"Unfiltered","sku":"6","ordinal":1,"pricing_type":"FIXED_PRICING","price_money":{"amount":1300,"currency":"USD"},"location_overrides":[{"location_id":"LH2XR7AMG39HX","track_inventory":true}],"sellable":true,"stockable":true}},{"type":"ITEM_VARIATION","id":"DJQ5F7NPJZCO7CMCPAU4GMTN","updated_at":"2021-06-10T21:16:07.366Z","created_at":"2021-06-10T21:16:07.366Z","version":1623359767366,"is_deleted":false,"present_at_all_locations":true,"item_variation_data":{"item_id":"UCYFEEPFPQFTWAGMH6T56L4U","name":"Dark","sku":"5","ordinal":2,"pricing_type":"FIXED_PRICING","price_money":{"amount":1200,"currency":"USD"},"location_overrides":[{"location_id":"LH2XR7AMG39HX","track_inventory":true}],"sellable":true,"stockable":true}}],"product_type":"REGULAR","skip_modifier_screen":false,"ecom_visibility":"UNINDEXED"}},"emitted_at":1668290115726} -{"stream":"categories","data":{"type":"CATEGORY","id":"WBVNPPUWI2YCVI2XJZNHPSQC","updated_at":"2022-10-19T19:33:30.646Z","created_at":"2021-06-10T09:58:41.311Z","version":1666208010646,"is_deleted":false,"present_at_all_locations":true,"category_data":{"name":"Drinks","is_top_level":true}},"emitted_at":1668290117366} -{"stream":"categories","data":{"type":"CATEGORY","id":"FIMYVNYAQ3JS337TP6YBQBBQ","updated_at":"2022-10-19T19:33:30.646Z","created_at":"2021-06-10T21:56:26.794Z","version":1666208010646,"is_deleted":false,"present_at_all_locations":true,"category_data":{"name":"Sign","is_top_level":true}},"emitted_at":1668290117366} -{"stream":"categories","data":{"type":"CATEGORY","id":"NC7RMZ5L7KR262JLJVJTWBDY","updated_at":"2022-10-19T19:33:30.646Z","created_at":"2021-06-10T21:56:26.794Z","version":1666208010646,"is_deleted":false,"present_at_all_locations":true,"category_data":{"name":"Quality","is_top_level":true}},"emitted_at":1668290117366} -{"stream":"discounts","data":{"type":"DISCOUNT","id":"Q7AQZ6WPGAWPFAIYBTYT7XXP","updated_at":"2021-06-14T13:47:48.539Z","created_at":"2021-06-10T22:15:06.693Z","version":1623678468539,"is_deleted":false,"present_at_all_locations":false,"present_at_location_ids":["L9A5Y0JR014G1"],"discount_data":{"name":"discount_20_p","discount_type":"FIXED_PERCENTAGE","percentage":"20.0","application_method":"MANUALLY_APPLIED","modify_tax_basis":"MODIFY_TAX_BASIS"}},"emitted_at":1668290117986} -{"stream":"discounts","data":{"type":"DISCOUNT","id":"HKYNSSNT2XWGYGPQNPVWFEAG","updated_at":"2021-06-14T13:48:20.638Z","created_at":"2021-06-10T22:15:45.239Z","version":1623678500638,"is_deleted":false,"present_at_all_locations":false,"present_at_location_ids":["LH2XR7AMG39HX"],"discount_data":{"name":"discount_5_p","discount_type":"FIXED_PERCENTAGE","percentage":"5.0","application_method":"MANUALLY_APPLIED","modify_tax_basis":"MODIFY_TAX_BASIS"}},"emitted_at":1668290117987} -{"stream":"discounts","data":{"type":"DISCOUNT","id":"TN6YCTI5DDYJTDQUW3VQ733L","updated_at":"2021-06-10T22:16:29.308Z","created_at":"2021-06-10T22:16:29.308Z","version":1623363389308,"is_deleted":false,"present_at_all_locations":true,"discount_data":{"name":"discount_1_usd","discount_type":"FIXED_AMOUNT","amount_money":{"amount":100,"currency":"USD"},"application_method":"MANUALLY_APPLIED","modify_tax_basis":"MODIFY_TAX_BASIS"}},"emitted_at":1668290117988} -{"stream":"taxes","data":{"type":"TAX","id":"CWU3GDBRZJ4TPNCVTX7AL6Q7","updated_at":"2021-06-14T13:12:47.779Z","created_at":"2021-06-10T22:13:33.029Z","version":1623676367779,"is_deleted":false,"present_at_all_locations":true,"tax_data":{"name":"20_p","calculation_phase":"TAX_SUBTOTAL_PHASE","inclusion_type":"ADDITIVE","percentage":"20.0","applies_to_custom_amounts":false,"enabled":true,"tax_type_id":"us_sales_tax","tax_type_name":"Sales Tax"}},"emitted_at":1668290118598} -{"stream":"taxes","data":{"type":"TAX","id":"C3EB6HITDFUUSQJIHM7KGFRU","updated_at":"2021-06-15T13:17:49.723Z","created_at":"2021-06-10T22:13:47.037Z","version":1623763069723,"is_deleted":false,"present_at_all_locations":true,"absent_at_location_ids":["LH2XR7AMG39HX"],"tax_data":{"name":"5_p","calculation_phase":"TAX_SUBTOTAL_PHASE","inclusion_type":"INCLUSIVE","percentage":"5.0","applies_to_custom_amounts":true,"enabled":true,"tax_type_id":"us_sales_tax","tax_type_name":"Sales Tax"}},"emitted_at":1668290118598} -{"stream":"taxes","data":{"type":"TAX","id":"5X7QCTRTQ7MEUFFWF2ESR3IA","updated_at":"2021-06-15T13:18:45.628Z","created_at":"2021-06-15T13:18:45.628Z","version":1623763125628,"is_deleted":false,"present_at_all_locations":true,"absent_at_location_ids":["L9A5Y0JR014G1"],"tax_data":{"name":"15_p","calculation_phase":"TAX_SUBTOTAL_PHASE","inclusion_type":"ADDITIVE","percentage":"15.0","applies_to_custom_amounts":true,"enabled":true,"tax_type_id":"us_sales_tax","tax_type_name":"Sales Tax"}},"emitted_at":1668290118598} -{"stream":"locations","data":{"id":"L9A5Y0JR014G1","name":"Coffe_shop","address":{"address_line_1":"1600 Pennsylvania Ave NW","locality":"Washington","administrative_district_level_1":"DC","postal_code":"20500","country":"US"},"timezone":"UTC","capabilities":["CREDIT_CARD_PROCESSING","AUTOMATIC_TRANSFERS"],"status":"ACTIVE","created_at":"2021-06-14T13:40:57.441Z","merchant_id":"ML7SCCR7EMAK4","country":"US","language_code":"en-US","currency":"USD","phone_number":"+1 800-444-4444","business_name":"Second_Test_Location","type":"PHYSICAL","website_url":"example.com","business_hours":{},"business_email":"some_email@coffee.com","description":"a brief bio","twitter_username":"test","instagram_username":"test","facebook_url":"facebook.com/example","mcc":"7299"},"emitted_at":1668290119400} -{"stream":"locations","data":{"id":"LH2XR7AMG39HX","name":"Default Test Account","address":{"address_line_1":"1600 Pennsylvania Ave NW","locality":"Washington","administrative_district_level_1":"DC","postal_code":"20500","country":"US"},"timezone":"UTC","capabilities":["CREDIT_CARD_PROCESSING","AUTOMATIC_TRANSFERS"],"status":"ACTIVE","created_at":"2021-04-30T05:16:05.977Z","merchant_id":"ML7SCCR7EMAK4","country":"US","language_code":"en-US","currency":"USD","business_name":"Default Test Account","type":"PHYSICAL","business_hours":{},"mcc":"7299"},"emitted_at":1668290119400} -{"stream":"team_members","data":{"id":"TMA-T96eUCnR9DkX","is_owner":true,"status":"ACTIVE","given_name":"Sandbox","family_name":"Seller","email_address":"sandbox-merchant+ryeggsjovidbpszhnwkskzvma10qzjcb@squareup.com","created_at":"2021-04-30T05:16:05Z","updated_at":"2021-04-30T05:16:05Z","assigned_locations":{"assignment_type":"ALL_CURRENT_AND_FUTURE_LOCATIONS"}},"emitted_at":1668290120212} -{"stream":"team_members","data":{"id":"TMcnrxWIJPlmU4c5","reference_id":"2","is_owner":false,"status":"ACTIVE","given_name":"Team","family_name":"Member_2","email_address":"team_member_2@airbyte.com","phone_number":"+19008080808","created_at":"2021-06-18T13:17:37Z","updated_at":"2021-06-18T13:17:37Z","assigned_locations":{"assignment_type":"EXPLICIT_LOCATIONS"}},"emitted_at":1668290120213} -{"stream":"team_members","data":{"id":"TMx95KdTStPnIxgp","reference_id":"1","is_owner":false,"status":"ACTIVE","given_name":"Team","family_name":"Member_1","email_address":"team_member_1@airbyte.com","phone_number":"+18008080808","created_at":"2021-06-18T13:15:49Z","updated_at":"2021-06-18T13:17:06Z","assigned_locations":{"assignment_type":"EXPLICIT_LOCATIONS"}},"emitted_at":1668290120213} -{"stream":"team_member_wages","data":{"id":"XGC1R9wiiymBJ4M1K8puuJGZ","team_member_id":"TMA-T96eUCnR9DkX","title":"Owner"},"emitted_at":1668290121140} -{"stream":"team_member_wages","data":{"id":"hFDaXrhWZ1BhnZLbrJTqqCfm","team_member_id":"TMcnrxWIJPlmU4c5","title":"Barista","hourly_rate":{"amount":2000,"currency":"USD"}},"emitted_at":1668290121141} -{"stream":"team_member_wages","data":{"id":"pC3birEsVhGyF58XjPvQ6BhD","team_member_id":"TMx95KdTStPnIxgp","title":"Cashier","hourly_rate":{"amount":2404,"currency":"USD"}},"emitted_at":1668290121141} -{"stream":"refunds","data":{"id":"NWO7kC96bJDUNKLovcUnapxGeOWZY_0um3GHK0AHt273xEe6I3u1y96Lnm018b0WAtyyOYRrP","status":"COMPLETED","amount_money":{"amount":1485,"currency":"USD"},"payment_id":"NWO7kC96bJDUNKLovcUnapxGeOWZY","order_id":"NpZRjYMGKOKeTe0BTp7N5r8kM0LZY","created_at":"2021-06-18T13:37:34.471Z","updated_at":"2021-06-18T13:37:37.319Z","processing_fee":[{"effective_at":"2021-06-18T15:31:43.000Z","type":"INITIAL","amount_money":{"amount":-51,"currency":"USD"}}],"location_id":"LH2XR7AMG39HX","reason":"Broken item","destination_type":"CARD"},"emitted_at":1668290122154} -{"stream":"refunds","data":{"id":"NWO7kC96bJDUNKLovcUnapxGeOWZY_BH7uyAXe6SqRc99uEExljMwERWZPci10Og6zIyfynAB","status":"COMPLETED","amount_money":{"amount":500,"currency":"USD"},"payment_id":"NWO7kC96bJDUNKLovcUnapxGeOWZY","order_id":"BFkIiV4W7baTDDx2CGGhdEzvTOCZY","created_at":"2021-06-22T19:35:20.612Z","updated_at":"2021-06-22T19:35:23.683Z","processing_fee":[{"effective_at":"2021-06-18T15:31:43.000Z","type":"INITIAL","amount_money":{"amount":-18,"currency":"USD"}}],"location_id":"LH2XR7AMG39HX","reason":"Overpayment","destination_type":"CARD"},"emitted_at":1668290122155} -{"stream":"customers","data":{"id":"WYP9CC9M156J71DMQF41Q8VMWW","created_at":"2021-06-18T14:02:43.476Z","updated_at":"2021-06-18T14:03:25Z","cards":[{"id":"ccof:k0ZuyEJ7sQGFsgfA4GB","card_brand":"VISA","last_4":"1111","exp_month":6,"exp_year":2026,"cardholder_name":"Test Customer","billing_address":{"postal_code":"12345"}}],"given_name":"Test","family_name":"Customer_1","email_address":"test_customer_1@airbyte.io","address":{"address_line_1":"street","address_line_2":"apt","locality":"city","administrative_district_level_1":"AL","postal_code":"35242"},"phone_number":"+18009090909","reference_id":"12345","company_name":"Company","preferences":{"email_unsubscribed":false},"creation_source":"DIRECTORY","birthday":"1990-08-09T00:00:00-00:00","segment_ids":["ML7SCCR7EMAK4.REACHABLE","ML7SCCR7EMAK4.CARDS_ON_FILE"],"version":1},"emitted_at":1668290124016} -{"stream":"modifier_list","data":{"type":"MODIFIER_LIST","id":"ZYESF2MGAMVORYB66VVXFW6V","updated_at":"2021-06-10T22:17:15.317Z","created_at":"2021-06-10T22:17:15.317Z","version":1623363435317,"is_deleted":false,"present_at_all_locations":true,"modifier_list_data":{"name":"With_accessory","selection_type":"MULTIPLE","modifiers":[{"type":"MODIFIER","id":"EW5DQKRKJH5LF2O5OM3TLT32","updated_at":"2021-06-10T22:17:15.317Z","created_at":"2021-06-10T22:17:15.317Z","version":1623363435317,"is_deleted":false,"present_at_all_locations":true,"modifier_data":{"name":"1_accessory","price_money":{"amount":100,"currency":"USD"},"on_by_default":false,"ordinal":1,"modifier_list_id":"ZYESF2MGAMVORYB66VVXFW6V"}},{"type":"MODIFIER","id":"APBZ4WD5P3FPUYSLG4U7MEJF","updated_at":"2021-06-10T22:17:15.317Z","created_at":"2021-06-10T22:17:15.317Z","version":1623363435317,"is_deleted":false,"present_at_all_locations":true,"modifier_data":{"name":"2_accessory","price_money":{"amount":200,"currency":"USD"},"on_by_default":false,"ordinal":2,"modifier_list_id":"ZYESF2MGAMVORYB66VVXFW6V"}}]}},"emitted_at":1668290124798} -{"stream":"modifier_list","data":{"type":"MODIFIER_LIST","id":"MKW7LLF4IRUX773KBHH4XQZA","updated_at":"2021-06-14T13:10:54.797Z","created_at":"2021-06-14T13:10:54.797Z","version":1623676254797,"is_deleted":false,"present_at_all_locations":true,"modifier_list_data":{"name":"With_something_else","selection_type":"MULTIPLE","modifiers":[{"type":"MODIFIER","id":"IA66H4C4C6JNXMHXQI3LDWFP","updated_at":"2021-06-14T13:10:54.797Z","created_at":"2021-06-14T13:10:54.797Z","version":1623676254797,"is_deleted":false,"present_at_all_locations":true,"modifier_data":{"name":"something_else","price_money":{"amount":1000,"currency":"USD"},"on_by_default":false,"ordinal":1,"modifier_list_id":"MKW7LLF4IRUX773KBHH4XQZA"}},{"type":"MODIFIER","id":"CS5VQADEB4GZXEL3TWHQDRER","updated_at":"2021-06-14T13:10:54.797Z","created_at":"2021-06-14T13:10:54.797Z","version":1623676254797,"is_deleted":false,"present_at_all_locations":true,"modifier_data":{"name":"something_else_2","price_money":{"amount":1500,"currency":"USD"},"on_by_default":false,"ordinal":2,"modifier_list_id":"MKW7LLF4IRUX773KBHH4XQZA"}}]}},"emitted_at":1668290124799} -{"stream":"shifts","data":{"id":"M60G9R7E1H52J","employee_id":"TMA-T96eUCnR9DkX","location_id":"L9A5Y0JR014G1","timezone":"UTC","start_at":"2021-06-17T08:00:00Z","end_at":"2021-06-17T20:00:00Z","wage":{"title":"Owner","hourly_rate":{"amount":4050,"currency":"USD"}},"breaks":[{"id":"ZXR4CMNAEGXW6","start_at":"2021-06-17T10:00:00Z","end_at":"2021-06-17T11:00:00Z","break_type_id":"HDY9769K81MN7","name":"Lunch Break","expected_duration":"PT1H","is_paid":true},{"id":"2N4RYD910S698","start_at":"2021-06-17T17:00:00Z","end_at":"2021-06-17T17:30:00Z","break_type_id":"NEHDKJ0V03XP2","name":"Tea Break","expected_duration":"PT30M","is_paid":true}],"status":"CLOSED","version":1,"created_at":"2021-06-18T20:46:59Z","updated_at":"2021-06-18T20:46:59Z","team_member_id":"TMA-T96eUCnR9DkX"},"emitted_at":1668290125739} -{"stream":"shifts","data":{"id":"WET1AZXN164BB","employee_id":"TMA-T96eUCnR9DkX","location_id":"L9A5Y0JR014G1","timezone":"UTC","start_at":"2019-01-25T08:11:00Z","end_at":"2019-01-25T18:11:00Z","wage":{"hourly_rate":{"amount":1100,"currency":"USD"}},"breaks":[{"id":"Q00NYDFJ36K9Y","start_at":"2019-01-25T11:11:00Z","end_at":"2019-01-25T11:41:00Z","break_type_id":"NEHDKJ0V03XP2","name":"Tea Break","expected_duration":"PT30M","is_paid":true}],"status":"CLOSED","version":1,"created_at":"2021-06-18T20:37:39Z","updated_at":"2021-06-18T20:37:39Z","team_member_id":"TMA-T96eUCnR9DkX"},"emitted_at":1668290125741} -{"stream":"orders","data":{"id":"xHRYELdzIG3Fb9gJPuPk4shKafUZY","location_id":"LH2XR7AMG39HX","line_items":[{"uid":"h5XEkuLUYQ1LS7B8o42dVD","catalog_object_id":"PJF2F6CAXLYBCTSKHAY2HXXW","catalog_version":1624046773184,"quantity":"2","name":"Health drop","variation_name":"Congress","base_price_money":{"amount":10900,"currency":"USD"},"gross_sales_money":{"amount":21800,"currency":"USD"},"total_tax_money":{"amount":0,"currency":"USD"},"total_discount_money":{"amount":0,"currency":"USD"},"total_money":{"amount":21800,"currency":"USD"},"variation_total_price_money":{"amount":21800,"currency":"USD"},"item_type":"ITEM"}],"fulfillments":[{"uid":"8ghcTCAgVT6kqWbrCdQxVB","type":"PICKUP","state":"COMPLETED","pickup_details":{"expires_at":"2021-07-01T20:21:54.859Z","pickup_at":"2021-07-01T19:21:54.859Z","note":"Pour over coffee","placed_at":"2021-06-29T21:32:32.387Z","accepted_at":"2021-06-29T21:47:07.804Z","ready_at":"2021-06-29T21:47:14.292Z","schedule_type":"SCHEDULED","recipient":{"display_name":"Jaiden Urie"},"auto_complete_duration":"P0DT1H0S","picked_up_at":"2021-06-29T21:47:16.440Z"}}],"created_at":"2021-06-29T21:09:26.402Z","updated_at":"2021-06-29T21:47:16.441Z","state":"COMPLETED","version":8,"total_tax_money":{"amount":0,"currency":"USD"},"total_discount_money":{"amount":0,"currency":"USD"},"total_tip_money":{"amount":0,"currency":"USD"},"total_money":{"amount":21800,"currency":"USD"},"closed_at":"2021-06-29T21:47:16.441Z","tenders":[{"id":"RK7310wbjzTWtIxoW1btCPNqYT6YY","location_id":"LH2XR7AMG39HX","transaction_id":"xHRYELdzIG3Fb9gJPuPk4shKafUZY","created_at":"2021-06-29T21:32:32Z","amount_money":{"amount":21800,"currency":"USD"},"type":"CARD","card_details":{"status":"CAPTURED","card":{"card_brand":"VISA","last_4":"5858","fingerprint":"sq-1-ebU3Ci-dcOxf-pVya9fDChHVLpXmNo73UaTsGbKLjBVtdqie8txHwuAY1SxA2F3c0g"},"entry_method":"KEYED"},"payment_id":"RK7310wbjzTWtIxoW1btCPNqYT6YY"}],"total_service_charge_money":{"amount":0,"currency":"USD"},"net_amounts":{"total_money":{"amount":21800,"currency":"USD"},"tax_money":{"amount":0,"currency":"USD"},"discount_money":{"amount":0,"currency":"USD"},"tip_money":{"amount":0,"currency":"USD"},"service_charge_money":{"amount":0,"currency":"USD"}},"source":{"name":"Sandbox for sq0idp-7KVC6qHcSDMXsm40SAA9TA"}},"emitted_at":1668290127537} -{"stream":"orders","data":{"id":"rOIV8oJ0c4jHUym6dQUscxJSUb4F","location_id":"L9A5Y0JR014G1","line_items":[{"uid":"EZHPqvnWeiTrOw8ONrDBKB","catalog_object_id":"DT52FVGPUEJ7KL5WYPIK5TTP","catalog_version":1624046773184,"quantity":"2","name":"Coffee","variation_name":"Black","base_price_money":{"amount":900,"currency":"USD"},"modifiers":[{"uid":"x5bl7VpXSZNqByeAvcvZyD","base_price_money":{"amount":100,"currency":"USD"},"total_price_money":{"amount":200,"currency":"USD"},"name":"1_accessory","catalog_object_id":"EW5DQKRKJH5LF2O5OM3TLT32","catalog_version":1624046773184}],"gross_sales_money":{"amount":2000,"currency":"USD"},"total_tax_money":{"amount":0,"currency":"USD"},"total_discount_money":{"amount":0,"currency":"USD"},"total_money":{"amount":2000,"currency":"USD"},"variation_total_price_money":{"amount":1800,"currency":"USD"},"item_type":"ITEM"}],"fulfillments":[{"uid":"yNY39gzb50jUC1oZ9HxsFD","type":"PICKUP","state":"COMPLETED","pickup_details":{"expires_at":"2021-07-01T20:21:54.859Z","pickup_at":"2021-07-01T19:21:54.859Z","note":"Pour over coffee","placed_at":"2021-06-29T21:36:04.916Z","accepted_at":"2021-06-29T21:47:18.618Z","ready_at":"2021-06-29T21:47:18.618Z","schedule_type":"SCHEDULED","recipient":{"display_name":"Jaiden Urie"},"auto_complete_duration":"P0DT1H0S","picked_up_at":"2021-06-29T21:47:18.618Z"}}],"created_at":"2021-06-29T21:06:22.910Z","updated_at":"2021-06-29T21:47:18.620Z","state":"COMPLETED","version":5,"total_tax_money":{"amount":0,"currency":"USD"},"total_discount_money":{"amount":0,"currency":"USD"},"total_tip_money":{"amount":0,"currency":"USD"},"total_money":{"amount":2000,"currency":"USD"},"closed_at":"2021-06-29T21:47:18.620Z","tenders":[{"id":"HrQAhauwBhT6fdNRfguwoPyCPTdZY","location_id":"L9A5Y0JR014G1","transaction_id":"rOIV8oJ0c4jHUym6dQUscxJSUb4F","created_at":"2021-06-29T21:36:04Z","amount_money":{"amount":2000,"currency":"USD"},"type":"CASH","cash_details":{"buyer_tendered_money":{"amount":3000,"currency":"USD"},"change_back_money":{"amount":1000,"currency":"USD"}},"payment_id":"HrQAhauwBhT6fdNRfguwoPyCPTdZY"}],"total_service_charge_money":{"amount":0,"currency":"USD"},"net_amounts":{"total_money":{"amount":2000,"currency":"USD"},"tax_money":{"amount":0,"currency":"USD"},"discount_money":{"amount":0,"currency":"USD"},"tip_money":{"amount":0,"currency":"USD"},"service_charge_money":{"amount":0,"currency":"USD"}},"source":{"name":"Sandbox for sq0idp-7KVC6qHcSDMXsm40SAA9TA"}},"emitted_at":1668290127538} +{"stream": "team_member_wages", "data": {"id": "XGC1R9wiiymBJ4M1K8puuJGZ", "team_member_id": "TMA-T96eUCnR9DkX", "title": "Owner"}, "emitted_at": 1697217912786} +{"stream": "team_member_wages", "data": {"id": "hFDaXrhWZ1BhnZLbrJTqqCfm", "team_member_id": "TMcnrxWIJPlmU4c5", "title": "Barista", "hourly_rate": {"amount": 2000, "currency": "USD"}}, "emitted_at": 1697217912790} +{"stream": "team_member_wages", "data": {"id": "pC3birEsVhGyF58XjPvQ6BhD", "team_member_id": "TMx95KdTStPnIxgp", "title": "Cashier", "hourly_rate": {"amount": 2404, "currency": "USD"}}, "emitted_at": 1697217912793} +{"stream": "refunds", "data": {"id": "NWO7kC96bJDUNKLovcUnapxGeOWZY_0um3GHK0AHt273xEe6I3u1y96Lnm018b0WAtyyOYRrP", "status": "COMPLETED", "amount_money": {"amount": 1485, "currency": "USD"}, "payment_id": "NWO7kC96bJDUNKLovcUnapxGeOWZY", "order_id": "NpZRjYMGKOKeTe0BTp7N5r8kM0LZY", "created_at": "2021-06-18T13:37:34.471Z", "updated_at": "2021-06-18T13:37:37.319Z", "processing_fee": [{"effective_at": "2021-06-18T15:31:43.000Z", "type": "INITIAL", "amount_money": {"amount": -51, "currency": "USD"}}], "location_id": "LH2XR7AMG39HX", "reason": "Broken item", "destination_type": "CARD"}, "emitted_at": 1697217913234} +{"stream": "refunds", "data": {"id": "NWO7kC96bJDUNKLovcUnapxGeOWZY_BH7uyAXe6SqRc99uEExljMwERWZPci10Og6zIyfynAB", "status": "COMPLETED", "amount_money": {"amount": 500, "currency": "USD"}, "payment_id": "NWO7kC96bJDUNKLovcUnapxGeOWZY", "order_id": "BFkIiV4W7baTDDx2CGGhdEzvTOCZY", "created_at": "2021-06-22T19:35:20.612Z", "updated_at": "2021-06-22T19:35:23.683Z", "processing_fee": [{"effective_at": "2021-06-18T15:31:43.000Z", "type": "INITIAL", "amount_money": {"amount": -18, "currency": "USD"}}], "location_id": "LH2XR7AMG39HX", "reason": "Overpayment", "destination_type": "CARD"}, "emitted_at": 1697217913243} +{"stream": "customers", "data": {"id": "WYP9CC9M156J71DMQF41Q8VMWW", "created_at": "2021-06-18T14:02:43.476Z", "updated_at": "2021-06-18T14:03:25Z", "cards": [{"id": "ccof:k0ZuyEJ7sQGFsgfA4GB", "card_brand": "VISA", "last_4": "1111", "exp_month": 6, "exp_year": 2026, "cardholder_name": "Test Customer", "billing_address": {"postal_code": "12345"}}], "given_name": "Test", "family_name": "Customer_1", "email_address": "test_customer_1@airbyte.io", "address": {"address_line_1": "street", "address_line_2": "apt", "locality": "city", "administrative_district_level_1": "AL", "postal_code": "35242"}, "phone_number": "+18009090909", "reference_id": "12345", "company_name": "Company", "preferences": {"email_unsubscribed": false}, "creation_source": "DIRECTORY", "birthday": "1990-08-09T00:00:00-00:00", "segment_ids": ["ML7SCCR7EMAK4.CARDS_ON_FILE", "ML7SCCR7EMAK4.REACHABLE"], "version": 1}, "emitted_at": 1697217931447} +{"stream": "taxes", "data": {"type": "TAX", "id": "CWU3GDBRZJ4TPNCVTX7AL6Q7", "updated_at": "2021-06-14T13:12:47.779Z", "created_at": "2021-06-10T22:13:33.029Z", "version": 1623676367779, "is_deleted": false, "present_at_all_locations": true, "tax_data": {"name": "20_p", "calculation_phase": "TAX_SUBTOTAL_PHASE", "inclusion_type": "ADDITIVE", "percentage": "20.0", "applies_to_custom_amounts": false, "enabled": true, "tax_type_id": "us_sales_tax", "tax_type_name": "Sales Tax"}}, "emitted_at": 1697217904696} +{"stream": "taxes", "data": {"type": "TAX", "id": "C3EB6HITDFUUSQJIHM7KGFRU", "updated_at": "2021-06-15T13:17:49.723Z", "created_at": "2021-06-10T22:13:47.037Z", "version": 1623763069723, "is_deleted": false, "present_at_all_locations": true, "absent_at_location_ids": ["LH2XR7AMG39HX"], "tax_data": {"name": "5_p", "calculation_phase": "TAX_SUBTOTAL_PHASE", "inclusion_type": "INCLUSIVE", "percentage": "5.0", "applies_to_custom_amounts": true, "enabled": true, "tax_type_id": "us_sales_tax", "tax_type_name": "Sales Tax"}}, "emitted_at": 1697217904702} +{"stream": "taxes", "data": {"type": "TAX", "id": "5X7QCTRTQ7MEUFFWF2ESR3IA", "updated_at": "2021-06-15T13:18:45.628Z", "created_at": "2021-06-15T13:18:45.628Z", "version": 1623763125628, "is_deleted": false, "present_at_all_locations": true, "absent_at_location_ids": ["L9A5Y0JR014G1"], "tax_data": {"name": "15_p", "calculation_phase": "TAX_SUBTOTAL_PHASE", "inclusion_type": "ADDITIVE", "percentage": "15.0", "applies_to_custom_amounts": true, "enabled": true, "tax_type_id": "us_sales_tax", "tax_type_name": "Sales Tax"}}, "emitted_at": 1697217904706} +{"stream": "payments", "data": {"id": "9m4YvEyzLRUvwUeBf2DNtVOh6cIZY", "created_at": "2021-06-08T20:21:39.212Z", "updated_at": "2021-06-08T20:21:41.165Z", "amount_money": {"amount": 100, "currency": "USD"}, "status": "COMPLETED", "delay_duration": "PT168H", "source_type": "CARD", "card_details": {"status": "CAPTURED", "card": {"card_brand": "MASTERCARD", "last_4": "9029", "exp_month": 6, "exp_year": 2023, "fingerprint": "sq-1-MTQOLCjEOIzHvJvKX4yxf6qBvj6DAFuB8wlWoKW4NI1BAFV5cdlJmge8ehPFGUSeuw", "card_type": "CREDIT", "prepaid_type": "NOT_PREPAID", "bin": "540988"}, "entry_method": "KEYED", "cvv_status": "CVV_ACCEPTED", "avs_status": "AVS_ACCEPTED", "statement_description": "SQ *DEFAULT TEST ACCOUNT", "card_payment_timeline": {"authorized_at": "2021-06-08T20:21:39.320Z", "captured_at": "2021-06-08T20:21:39.395Z"}}, "location_id": "LH2XR7AMG39HX", "order_id": "jqYrf6arFpUo7zElfWu9GRF5lAWZY", "risk_evaluation": {"created_at": "2021-06-08T20:21:39.321Z", "risk_level": "NORMAL"}, "processing_fee": [{"effective_at": "2021-06-08T22:21:41.000Z", "type": "INITIAL", "amount_money": {"amount": 33, "currency": "USD"}}], "total_money": {"amount": 100, "currency": "USD"}, "approved_money": {"amount": 100, "currency": "USD"}, "receipt_number": "9m4Y", "receipt_url": "https://squareupsandbox.com/receipt/preview/9m4YvEyzLRUvwUeBf2DNtVOh6cIZY", "delay_action": "CANCEL", "delayed_until": "2021-06-15T20:21:39.212Z", "application_details": {"square_product": "ECOMMERCE_API", "application_id": "sandbox-sq0idb-Nd7U5HfhPMxxK3f1Me-yKw"}, "version_token": "d4BjlOwbOUGifHe9BMhuSCRTDGvKA1MYm3aaTzOjbCT6o"}, "emitted_at": 1697217922482} +{"stream": "payments", "data": {"id": "rLBl9k8kKVV8uXNymUEct6S2ebIZY", "created_at": "2021-06-18T13:30:27.850Z", "updated_at": "2021-06-18T13:30:28.721Z", "amount_money": {"amount": 2056, "currency": "USD"}, "status": "COMPLETED", "delay_duration": "PT168H", "source_type": "CARD", "card_details": {"status": "CAPTURED", "card": {"card_brand": "VISA", "last_4": "1111", "exp_month": 6, "exp_year": 2026, "fingerprint": "sq-1-mqW9yIk2eKV4LdXhGzf-FYu1knqb1IT7lXybOaFbMwIH2-9d1qdVOGNUMA8TDALoqg", "card_type": "CREDIT", "bin": "411111"}, "entry_method": "KEYED", "cvv_status": "CVV_ACCEPTED", "avs_status": "AVS_ACCEPTED", "statement_description": "SQ *DEFAULT TEST ACCOUNT", "card_payment_timeline": {"authorized_at": "2021-06-18T13:30:27.959Z", "captured_at": "2021-06-18T13:30:28.030Z"}}, "location_id": "LH2XR7AMG39HX", "order_id": "hD1xqUBBHQ3ejMBQiSSmncrYg7OZY", "processing_fee": [{"effective_at": "2021-06-18T15:30:28.000Z", "type": "INITIAL", "amount_money": {"amount": 87, "currency": "USD"}}], "note": "20$ money payment", "total_money": {"amount": 2056, "currency": "USD"}, "approved_money": {"amount": 2056, "currency": "USD"}, "employee_id": "TMA-T96eUCnR9DkX", "receipt_number": "rLBl", "receipt_url": "https://squareupsandbox.com/receipt/preview/rLBl9k8kKVV8uXNymUEct6S2ebIZY", "delay_action": "CANCEL", "delayed_until": "2021-06-25T13:30:27.850Z", "team_member_id": "TMA-T96eUCnR9DkX", "application_details": {"square_product": "VIRTUAL_TERMINAL", "application_id": "sandbox-sq0idb-BbZvlaIkgSYnVUI4rpSedg"}, "version_token": "KcdXvgWNGUYOUmWdF4K0Cmi5bhfxSLMIc12PwLSAG9e6o"}, "emitted_at": 1697217922488} +{"stream": "payments", "data": {"id": "NWO7kC96bJDUNKLovcUnapxGeOWZY", "created_at": "2021-06-18T13:31:43.040Z", "updated_at": "2021-06-22T19:35:23.683Z", "amount_money": {"amount": 11385, "currency": "USD"}, "refunded_money": {"amount": 1985, "currency": "USD"}, "status": "COMPLETED", "delay_duration": "PT168H", "source_type": "CARD", "card_details": {"status": "CAPTURED", "card": {"card_brand": "VISA", "last_4": "1111", "exp_month": 6, "exp_year": 2026, "fingerprint": "sq-1-mqW9yIk2eKV4LdXhGzf-FYu1knqb1IT7lXybOaFbMwIH2-9d1qdVOGNUMA8TDALoqg", "card_type": "CREDIT", "bin": "411111"}, "entry_method": "KEYED", "cvv_status": "CVV_ACCEPTED", "avs_status": "AVS_ACCEPTED", "statement_description": "SQ *DEFAULT TEST ACCOUNT", "card_payment_timeline": {"authorized_at": "2021-06-18T13:31:43.148Z", "captured_at": "2021-06-18T13:31:43.258Z"}}, "location_id": "LH2XR7AMG39HX", "order_id": "BxCc4Y2KBt10BUWQheazcgRUR7bZY", "refund_ids": ["NWO7kC96bJDUNKLovcUnapxGeOWZY_0um3GHK0AHt273xEe6I3u1y96Lnm018b0WAtyyOYRrP", "NWO7kC96bJDUNKLovcUnapxGeOWZY_BH7uyAXe6SqRc99uEExljMwERWZPci10Og6zIyfynAB"], "processing_fee": [{"effective_at": "2021-06-18T15:31:43.000Z", "type": "INITIAL", "amount_money": {"amount": 413, "currency": "USD"}}], "note": "113,85$ payment", "total_money": {"amount": 11385, "currency": "USD"}, "approved_money": {"amount": 11385, "currency": "USD"}, "employee_id": "TMA-T96eUCnR9DkX", "receipt_number": "NWO7", "receipt_url": "https://squareupsandbox.com/receipt/preview/NWO7kC96bJDUNKLovcUnapxGeOWZY", "delay_action": "CANCEL", "delayed_until": "2021-06-25T13:31:43.040Z", "team_member_id": "TMA-T96eUCnR9DkX", "application_details": {"square_product": "VIRTUAL_TERMINAL", "application_id": "sandbox-sq0idb-BbZvlaIkgSYnVUI4rpSedg"}, "version_token": "JuGNurRABx1mNvkMlYLtu8LI05JpiYOupyZwZtoQELk6o"}, "emitted_at": 1697217922492} +{"stream": "categories", "data": {"type": "CATEGORY", "id": "WBVNPPUWI2YCVI2XJZNHPSQC", "updated_at": "2022-10-19T19:33:30.646Z", "created_at": "2021-06-10T09:58:41.311Z", "version": 1666208010646, "is_deleted": false, "present_at_all_locations": true, "category_data": {"name": "Drinks", "is_top_level": true}}, "emitted_at": 1697217887093} +{"stream": "categories", "data": {"type": "CATEGORY", "id": "FIMYVNYAQ3JS337TP6YBQBBQ", "updated_at": "2022-10-19T19:33:30.646Z", "created_at": "2021-06-10T21:56:26.794Z", "version": 1666208010646, "is_deleted": false, "present_at_all_locations": true, "category_data": {"name": "Sign", "is_top_level": true}}, "emitted_at": 1697217887096} +{"stream": "categories", "data": {"type": "CATEGORY", "id": "NC7RMZ5L7KR262JLJVJTWBDY", "updated_at": "2022-10-19T19:33:30.646Z", "created_at": "2021-06-10T21:56:26.794Z", "version": 1666208010646, "is_deleted": false, "present_at_all_locations": true, "category_data": {"name": "Quality", "is_top_level": true}}, "emitted_at": 1697217887099} +{"stream": "team_members", "data": {"id": "TMA-T96eUCnR9DkX", "is_owner": true, "status": "ACTIVE", "given_name": "Sandbox", "family_name": "Seller", "email_address": "sandbox-merchant+ryeggsjovidbpszhnwkskzvma10qzjcb@squareup.com", "created_at": "2021-04-30T05:16:05Z", "updated_at": "2023-07-07T17:07:41Z", "assigned_locations": {"assignment_type": "ALL_CURRENT_AND_FUTURE_LOCATIONS"}}, "emitted_at": 1697217912327} +{"stream": "team_members", "data": {"id": "TMcnrxWIJPlmU4c5", "reference_id": "2", "is_owner": false, "status": "ACTIVE", "given_name": "Team", "family_name": "Member_2", "email_address": "team_member_2@airbyte.com", "phone_number": "+19008080808", "created_at": "2021-06-18T13:17:37Z", "updated_at": "2021-06-18T13:17:37Z", "assigned_locations": {"assignment_type": "EXPLICIT_LOCATIONS"}}, "emitted_at": 1697217912332} +{"stream": "team_members", "data": {"id": "TMx95KdTStPnIxgp", "reference_id": "1", "is_owner": false, "status": "ACTIVE", "given_name": "Team", "family_name": "Member_1", "email_address": "team_member_1@airbyte.com", "phone_number": "+18008080808", "created_at": "2021-06-18T13:15:49Z", "updated_at": "2021-06-18T13:17:06Z", "assigned_locations": {"assignment_type": "EXPLICIT_LOCATIONS"}}, "emitted_at": 1697217912335} +{"stream": "shifts", "data": {"id": "M60G9R7E1H52J", "employee_id": "TMA-T96eUCnR9DkX", "location_id": "L9A5Y0JR014G1", "timezone": "UTC", "start_at": "2021-06-17T08:00:00Z", "end_at": "2021-06-17T20:00:00Z", "wage": {"title": "Owner", "hourly_rate": {"amount": 4050, "currency": "USD"}}, "breaks": [{"id": "ZXR4CMNAEGXW6", "start_at": "2021-06-17T10:00:00Z", "end_at": "2021-06-17T11:00:00Z", "break_type_id": "HDY9769K81MN7", "name": "Lunch Break", "expected_duration": "PT1H", "is_paid": true}, {"id": "2N4RYD910S698", "start_at": "2021-06-17T17:00:00Z", "end_at": "2021-06-17T17:30:00Z", "break_type_id": "NEHDKJ0V03XP2", "name": "Tea Break", "expected_duration": "PT30M", "is_paid": true}], "status": "CLOSED", "version": 1, "created_at": "2021-06-18T20:46:59Z", "updated_at": "2021-06-18T20:46:59Z", "team_member_id": "TMA-T96eUCnR9DkX"}, "emitted_at": 1697217938884} +{"stream": "shifts", "data": {"id": "WET1AZXN164BB", "employee_id": "TMA-T96eUCnR9DkX", "location_id": "L9A5Y0JR014G1", "timezone": "UTC", "start_at": "2019-01-25T08:11:00Z", "end_at": "2019-01-25T18:11:00Z", "wage": {"hourly_rate": {"amount": 1100, "currency": "USD"}}, "breaks": [{"id": "Q00NYDFJ36K9Y", "start_at": "2019-01-25T11:11:00Z", "end_at": "2019-01-25T11:41:00Z", "break_type_id": "NEHDKJ0V03XP2", "name": "Tea Break", "expected_duration": "PT30M", "is_paid": true}], "status": "CLOSED", "version": 1, "created_at": "2021-06-18T20:37:39Z", "updated_at": "2021-06-18T20:37:39Z", "team_member_id": "TMA-T96eUCnR9DkX"}, "emitted_at": 1697217938888} +{"stream": "locations", "data": {"id": "L9A5Y0JR014G1", "name": "Coffe_shop", "address": {"address_line_1": "1600 Pennsylvania Ave NW", "locality": "Washington", "administrative_district_level_1": "DC", "postal_code": "20500", "country": "US"}, "timezone": "UTC", "capabilities": ["CREDIT_CARD_PROCESSING", "AUTOMATIC_TRANSFERS"], "status": "ACTIVE", "created_at": "2021-06-14T13:40:57.441Z", "merchant_id": "ML7SCCR7EMAK4", "country": "US", "language_code": "en-US", "currency": "USD", "phone_number": "+1 800-444-4444", "business_name": "Second_Test_Location", "type": "PHYSICAL", "website_url": "example.com", "business_hours": {}, "business_email": "some_email@coffee.com", "description": "a brief bio", "twitter_username": "test", "instagram_username": "test", "facebook_url": "facebook.com/example", "mcc": "7299"}, "emitted_at": 1697217911705} +{"stream": "locations", "data": {"id": "LH2XR7AMG39HX", "name": "Default Test Account", "address": {"address_line_1": "1600 Pennsylvania Ave NW", "locality": "Washington", "administrative_district_level_1": "DC", "postal_code": "20500", "country": "US"}, "timezone": "UTC", "capabilities": ["CREDIT_CARD_PROCESSING", "AUTOMATIC_TRANSFERS"], "status": "ACTIVE", "created_at": "2021-04-30T05:16:05.977Z", "merchant_id": "ML7SCCR7EMAK4", "country": "US", "language_code": "en-US", "currency": "USD", "business_name": "Default Test Account", "type": "PHYSICAL", "business_hours": {}, "mcc": "7299"}, "emitted_at": 1697217911713} +{"stream": "locations", "data": {"id": "LGTMGD6Y4MH5R", "name": "test", "address": {"address_line_1": "1600 Pennsylvania Ave NW", "locality": "Washington", "administrative_district_level_1": "DC", "postal_code": "20500", "country": "US"}, "timezone": "UTC", "capabilities": ["CREDIT_CARD_PROCESSING", "AUTOMATIC_TRANSFERS"], "status": "ACTIVE", "created_at": "2023-01-04T15:20:43.345Z", "merchant_id": "ML7SCCR7EMAK4", "country": "US", "language_code": "en-US", "currency": "USD", "business_name": "Default Test Account", "type": "PHYSICAL", "business_hours": {}, "business_email": "test@test.com", "mcc": "7299"}, "emitted_at": 1697217911717} +{"stream": "items", "data": {"type": "ITEM", "id": "K7CL577FVTGEGWEHZUU3NA6P", "updated_at": "2023-02-28T17:03:10.233Z", "created_at": "2021-06-10T09:58:41.311Z", "version": 1677603790233, "is_deleted": false, "custom_attribute_values": {"Square:eca67bfb-68a4-4218-950a-09eec906143d": {"name": "With coffee cup", "string_value": "Yes", "custom_attribute_definition_id": "VR43EHV5M3Z4P4CWA7K3ZXPA", "type": "STRING", "key": "Square:eca67bfb-68a4-4218-950a-09eec906143d"}}, "present_at_all_locations": true, "item_data": {"name": "Coffee", "description": "Some coffee drink", "is_taxable": true, "visibility": "PRIVATE", "category_id": "WBVNPPUWI2YCVI2XJZNHPSQC", "modifier_list_info": [{"modifier_list_id": "ZYESF2MGAMVORYB66VVXFW6V", "visibility": "PUBLIC", "min_selected_modifiers": -1, "max_selected_modifiers": -1, "enabled": true}], "variations": [{"type": "ITEM_VARIATION", "id": "DT52FVGPUEJ7KL5WYPIK5TTP", "updated_at": "2021-06-10T09:58:41.311Z", "created_at": "2021-06-10T09:58:41.311Z", "version": 1623319121311, "is_deleted": false, "present_at_all_locations": true, "item_variation_data": {"item_id": "K7CL577FVTGEGWEHZUU3NA6P", "name": "Black", "sku": "1", "ordinal": 0, "pricing_type": "FIXED_PRICING", "price_money": {"amount": 900, "currency": "USD"}, "location_overrides": [{"location_id": "LH2XR7AMG39HX", "track_inventory": true}], "item_option_values": [{"item_option_id": "QTE3WP7JI64XLUD7AX5ER2ZI", "item_option_value_id": "KRNNA4P57TDNVBJLWIBW5D47"}], "sellable": true, "stockable": true}}, {"type": "ITEM_VARIATION", "id": "SZTS6NG7OGC25KGTRXJEUAKK", "updated_at": "2021-06-10T09:58:41.311Z", "created_at": "2021-06-10T09:58:41.311Z", "version": 1623319121311, "is_deleted": false, "present_at_all_locations": true, "item_variation_data": {"item_id": "K7CL577FVTGEGWEHZUU3NA6P", "name": "White", "sku": "2", "ordinal": 1, "pricing_type": "FIXED_PRICING", "price_money": {"amount": 1000, "currency": "USD"}, "location_overrides": [{"location_id": "LH2XR7AMG39HX", "track_inventory": true}], "item_option_values": [{"item_option_id": "QTE3WP7JI64XLUD7AX5ER2ZI", "item_option_value_id": "LIB3NSHGZUXFM3NFDHTUM4CJ"}], "sellable": true, "stockable": true}}], "product_type": "REGULAR", "skip_modifier_screen": false, "item_options": [{"item_option_id": "QTE3WP7JI64XLUD7AX5ER2ZI"}], "ecom_visibility": "UNINDEXED"}}, "emitted_at": 1697217792587} +{"stream": "items", "data": {"type": "ITEM", "id": "SY3I7GJTCYIJTOD6PKLO6VKI", "updated_at": "2023-02-28T17:03:10.233Z", "created_at": "2021-06-10T21:07:19.929Z", "version": 1677603790233, "is_deleted": false, "present_at_all_locations": true, "item_data": {"name": "Tea", "description": "Just the tea example", "is_taxable": true, "visibility": "PRIVATE", "category_id": "WBVNPPUWI2YCVI2XJZNHPSQC", "variations": [{"type": "ITEM_VARIATION", "id": "PGOQKJWR6ALTCFPVGV54LHA6", "updated_at": "2021-06-10T21:07:19.929Z", "created_at": "2021-06-10T21:07:19.929Z", "version": 1623359239929, "is_deleted": false, "present_at_all_locations": true, "item_variation_data": {"item_id": "SY3I7GJTCYIJTOD6PKLO6VKI", "name": "Regular", "sku": "3", "ordinal": 1, "pricing_type": "FIXED_PRICING", "price_money": {"amount": 500, "currency": "USD"}, "location_overrides": [{"location_id": "LH2XR7AMG39HX", "track_inventory": true}], "sellable": true, "stockable": true}}], "product_type": "REGULAR", "skip_modifier_screen": false, "ecom_visibility": "UNINDEXED"}}, "emitted_at": 1697217792588} +{"stream": "items", "data": {"type": "ITEM", "id": "UCYFEEPFPQFTWAGMH6T56L4U", "updated_at": "2023-02-28T17:03:10.233Z", "created_at": "2021-06-10T21:16:07.366Z", "version": 1677603790233, "is_deleted": false, "present_at_all_locations": true, "image_id": "7JPVLNMPVEBNXPQT5JXYCNF2", "item_data": {"name": "Beer", "description": "Unfiltered", "is_taxable": true, "visibility": "PRIVATE", "category_id": "WBVNPPUWI2YCVI2XJZNHPSQC", "variations": [{"type": "ITEM_VARIATION", "id": "AVZZR4PLYHND3GQU5KD25GYD", "updated_at": "2021-06-10T21:16:07.366Z", "created_at": "2021-06-10T21:16:07.366Z", "version": 1623359767366, "is_deleted": false, "present_at_all_locations": true, "item_variation_data": {"item_id": "UCYFEEPFPQFTWAGMH6T56L4U", "name": "Light", "sku": "4", "ordinal": 1, "pricing_type": "FIXED_PRICING", "price_money": {"amount": 1100, "currency": "USD"}, "location_overrides": [{"location_id": "LH2XR7AMG39HX", "track_inventory": true}], "sellable": true, "stockable": true}}, {"type": "ITEM_VARIATION", "id": "QR3GL6QNSGG7TPGX3W6F72BK", "updated_at": "2021-06-10T21:46:15.762Z", "created_at": "2021-06-10T21:46:15.762Z", "version": 1623361575762, "is_deleted": false, "present_at_all_locations": false, "present_at_location_ids": ["LH2XR7AMG39HX"], "item_variation_data": {"item_id": "UCYFEEPFPQFTWAGMH6T56L4U", "name": "Unfiltered", "sku": "6", "ordinal": 1, "pricing_type": "FIXED_PRICING", "price_money": {"amount": 1300, "currency": "USD"}, "location_overrides": [{"location_id": "LH2XR7AMG39HX", "track_inventory": true}], "sellable": true, "stockable": true}}, {"type": "ITEM_VARIATION", "id": "DJQ5F7NPJZCO7CMCPAU4GMTN", "updated_at": "2021-06-10T21:16:07.366Z", "created_at": "2021-06-10T21:16:07.366Z", "version": 1623359767366, "is_deleted": false, "present_at_all_locations": true, "item_variation_data": {"item_id": "UCYFEEPFPQFTWAGMH6T56L4U", "name": "Dark", "sku": "5", "ordinal": 2, "pricing_type": "FIXED_PRICING", "price_money": {"amount": 1200, "currency": "USD"}, "location_overrides": [{"location_id": "LH2XR7AMG39HX", "track_inventory": true}], "sellable": true, "stockable": true}}], "product_type": "REGULAR", "skip_modifier_screen": false, "ecom_visibility": "UNINDEXED"}}, "emitted_at": 1697217792590} +{"stream": "discounts", "data": {"type": "DISCOUNT", "id": "Q7AQZ6WPGAWPFAIYBTYT7XXP", "updated_at": "2021-06-14T13:47:48.539Z", "created_at": "2021-06-10T22:15:06.693Z", "version": 1623678468539, "is_deleted": false, "present_at_all_locations": false, "present_at_location_ids": ["L9A5Y0JR014G1"], "discount_data": {"name": "discount_20_p", "discount_type": "FIXED_PERCENTAGE", "percentage": "20.0", "application_method": "MANUALLY_APPLIED", "modify_tax_basis": "MODIFY_TAX_BASIS"}}, "emitted_at": 1697217897637} +{"stream": "discounts", "data": {"type": "DISCOUNT", "id": "HKYNSSNT2XWGYGPQNPVWFEAG", "updated_at": "2021-06-14T13:48:20.638Z", "created_at": "2021-06-10T22:15:45.239Z", "version": 1623678500638, "is_deleted": false, "present_at_all_locations": false, "present_at_location_ids": ["LH2XR7AMG39HX"], "discount_data": {"name": "discount_5_p", "discount_type": "FIXED_PERCENTAGE", "percentage": "5.0", "application_method": "MANUALLY_APPLIED", "modify_tax_basis": "MODIFY_TAX_BASIS"}}, "emitted_at": 1697217897646} +{"stream": "discounts", "data": {"type": "DISCOUNT", "id": "TN6YCTI5DDYJTDQUW3VQ733L", "updated_at": "2021-06-10T22:16:29.308Z", "created_at": "2021-06-10T22:16:29.308Z", "version": 1623363389308, "is_deleted": false, "present_at_all_locations": true, "discount_data": {"name": "discount_1_usd", "discount_type": "FIXED_AMOUNT", "amount_money": {"amount": 100, "currency": "USD"}, "application_method": "MANUALLY_APPLIED", "modify_tax_basis": "MODIFY_TAX_BASIS"}}, "emitted_at": 1697217897651} +{"stream": "modifier_list", "data": {"type": "MODIFIER_LIST", "id": "ZYESF2MGAMVORYB66VVXFW6V", "updated_at": "2021-06-10T22:17:15.317Z", "created_at": "2021-06-10T22:17:15.317Z", "version": 1623363435317, "is_deleted": false, "present_at_all_locations": true, "modifier_list_data": {"name": "With_accessory", "selection_type": "MULTIPLE", "modifiers": [{"type": "MODIFIER", "id": "EW5DQKRKJH5LF2O5OM3TLT32", "updated_at": "2021-06-10T22:17:15.317Z", "created_at": "2021-06-10T22:17:15.317Z", "version": 1623363435317, "is_deleted": false, "present_at_all_locations": true, "modifier_data": {"name": "1_accessory", "price_money": {"amount": 100, "currency": "USD"}, "on_by_default": false, "ordinal": 1, "modifier_list_id": "ZYESF2MGAMVORYB66VVXFW6V"}}, {"type": "MODIFIER", "id": "APBZ4WD5P3FPUYSLG4U7MEJF", "updated_at": "2021-06-10T22:17:15.317Z", "created_at": "2021-06-10T22:17:15.317Z", "version": 1623363435317, "is_deleted": false, "present_at_all_locations": true, "modifier_data": {"name": "2_accessory", "price_money": {"amount": 200, "currency": "USD"}, "on_by_default": false, "ordinal": 2, "modifier_list_id": "ZYESF2MGAMVORYB66VVXFW6V"}}]}}, "emitted_at": 1697217931779} +{"stream": "modifier_list", "data": {"type": "MODIFIER_LIST", "id": "MKW7LLF4IRUX773KBHH4XQZA", "updated_at": "2021-06-14T13:10:54.797Z", "created_at": "2021-06-14T13:10:54.797Z", "version": 1623676254797, "is_deleted": false, "present_at_all_locations": true, "modifier_list_data": {"name": "With_something_else", "selection_type": "MULTIPLE", "modifiers": [{"type": "MODIFIER", "id": "IA66H4C4C6JNXMHXQI3LDWFP", "updated_at": "2021-06-14T13:10:54.797Z", "created_at": "2021-06-14T13:10:54.797Z", "version": 1623676254797, "is_deleted": false, "present_at_all_locations": true, "modifier_data": {"name": "something_else", "price_money": {"amount": 1000, "currency": "USD"}, "on_by_default": false, "ordinal": 1, "modifier_list_id": "MKW7LLF4IRUX773KBHH4XQZA"}}, {"type": "MODIFIER", "id": "CS5VQADEB4GZXEL3TWHQDRER", "updated_at": "2021-06-14T13:10:54.797Z", "created_at": "2021-06-14T13:10:54.797Z", "version": 1623676254797, "is_deleted": false, "present_at_all_locations": true, "modifier_data": {"name": "something_else_2", "price_money": {"amount": 1500, "currency": "USD"}, "on_by_default": false, "ordinal": 2, "modifier_list_id": "MKW7LLF4IRUX773KBHH4XQZA"}}]}}, "emitted_at": 1697217931785} +{"stream": "inventory", "data": {"catalog_object_id": "ARZ6U6FLKCLA6EOIKBYK3DZ7", "catalog_object_type": "ITEM_VARIATION", "state": "IN_STOCK", "location_id": "LH2XR7AMG39HX", "quantity": "124", "calculated_at": "2023-01-06T21:08:23.095Z"}, "emitted_at": 1697217897015} +{"stream": "inventory", "data": {"catalog_object_id": "ARZ6U6FLKCLA6EOIKBYK3DZ7", "catalog_object_type": "ITEM_VARIATION", "state": "IN_STOCK", "location_id": "L9A5Y0JR014G1", "quantity": "124", "calculated_at": "2023-01-06T21:06:55.36Z"}, "emitted_at": 1697217897017} +{"stream": "inventory", "data": {"catalog_object_id": "YUDRKASZGJ3AFJGOQUMPP3EJ", "catalog_object_type": "ITEM_VARIATION", "state": "IN_STOCK", "location_id": "LH2XR7AMG39HX", "quantity": "500", "calculated_at": "2023-01-06T20:00:26.338Z"}, "emitted_at": 1697217897019} +{"stream": "orders", "data": {"id": "jqYrf6arFpUo7zElfWu9GRF5lAWZY", "location_id": "LH2XR7AMG39HX", "line_items": [{"uid": "JYEv3BLPY5FmSaVXDdbESD", "quantity": "1", "base_price_money": {"amount": 100, "currency": "USD"}, "gross_sales_money": {"amount": 100, "currency": "USD"}, "total_tax_money": {"amount": 0, "currency": "USD"}, "total_discount_money": {"amount": 0, "currency": "USD"}, "total_money": {"amount": 100, "currency": "USD"}, "variation_total_price_money": {"amount": 100, "currency": "USD"}, "item_type": "CUSTOM_AMOUNT"}], "created_at": "2021-06-08T20:21:39.163Z", "updated_at": "2021-06-08T20:21:41.000Z", "state": "COMPLETED", "version": 4, "total_tax_money": {"amount": 0, "currency": "USD"}, "total_discount_money": {"amount": 0, "currency": "USD"}, "total_tip_money": {"amount": 0, "currency": "USD"}, "total_money": {"amount": 100, "currency": "USD"}, "closed_at": "2021-06-08T20:21:39.406Z", "tenders": [{"id": "9m4YvEyzLRUvwUeBf2DNtVOh6cIZY", "location_id": "LH2XR7AMG39HX", "transaction_id": "jqYrf6arFpUo7zElfWu9GRF5lAWZY", "created_at": "2021-06-08T20:21:39Z", "amount_money": {"amount": 100, "currency": "USD"}, "type": "CARD", "card_details": {"status": "CAPTURED", "card": {"card_brand": "MASTERCARD", "last_4": "9029", "fingerprint": "sq-1-MTQOLCjEOIzHvJvKX4yxf6qBvj6DAFuB8wlWoKW4NI1BAFV5cdlJmge8ehPFGUSeuw"}, "entry_method": "KEYED"}, "payment_id": "9m4YvEyzLRUvwUeBf2DNtVOh6cIZY"}], "total_service_charge_money": {"amount": 0, "currency": "USD"}, "net_amounts": {"total_money": {"amount": 100, "currency": "USD"}, "tax_money": {"amount": 0, "currency": "USD"}, "discount_money": {"amount": 0, "currency": "USD"}, "tip_money": {"amount": 0, "currency": "USD"}, "service_charge_money": {"amount": 0, "currency": "USD"}}, "source": {"name": "Sandbox for sq0idp-7KVC6qHcSDMXsm40SAA9TA"}}, "emitted_at": 1697217939855} +{"stream": "orders", "data": {"id": "hD1xqUBBHQ3ejMBQiSSmncrYg7OZY", "location_id": "LH2XR7AMG39HX", "line_items": [{"uid": "v6KbyuUoPvjZ6hHLVLpvi", "quantity": "1", "base_price_money": {"amount": 2056, "currency": "USD"}, "note": "20$ money payment", "gross_sales_money": {"amount": 2056, "currency": "USD"}, "total_tax_money": {"amount": 0, "currency": "USD"}, "total_discount_money": {"amount": 0, "currency": "USD"}, "total_money": {"amount": 2056, "currency": "USD"}, "variation_total_price_money": {"amount": 2056, "currency": "USD"}, "item_type": "CUSTOM_AMOUNT"}], "created_at": "2021-06-18T13:30:27.796Z", "updated_at": "2021-06-18T13:30:30.000Z", "state": "COMPLETED", "version": 4, "total_tax_money": {"amount": 0, "currency": "USD"}, "total_discount_money": {"amount": 0, "currency": "USD"}, "total_tip_money": {"amount": 0, "currency": "USD"}, "total_money": {"amount": 2056, "currency": "USD"}, "closed_at": "2021-06-18T13:30:28.042Z", "tenders": [{"id": "rLBl9k8kKVV8uXNymUEct6S2ebIZY", "location_id": "LH2XR7AMG39HX", "transaction_id": "hD1xqUBBHQ3ejMBQiSSmncrYg7OZY", "created_at": "2021-06-18T13:30:27Z", "note": "20$ money payment", "amount_money": {"amount": 2056, "currency": "USD"}, "type": "CARD", "card_details": {"status": "CAPTURED", "card": {"card_brand": "VISA", "last_4": "1111", "fingerprint": "sq-1-mqW9yIk2eKV4LdXhGzf-FYu1knqb1IT7lXybOaFbMwIH2-9d1qdVOGNUMA8TDALoqg"}, "entry_method": "KEYED"}, "payment_id": "rLBl9k8kKVV8uXNymUEct6S2ebIZY"}], "total_service_charge_money": {"amount": 0, "currency": "USD"}, "net_amounts": {"total_money": {"amount": 2056, "currency": "USD"}, "tax_money": {"amount": 0, "currency": "USD"}, "discount_money": {"amount": 0, "currency": "USD"}, "tip_money": {"amount": 0, "currency": "USD"}, "service_charge_money": {"amount": 0, "currency": "USD"}}, "source": {"name": "Sandbox for sq0idp-4Uw2-7Sy15Umdnct7FTeuQ"}}, "emitted_at": 1697217939866} +{"stream": "orders", "data": {"id": "NpZRjYMGKOKeTe0BTp7N5r8kM0LZY", "location_id": "LH2XR7AMG39HX", "created_at": "2021-06-18T13:37:33.422Z", "updated_at": "2021-06-18T13:37:37.000Z", "state": "COMPLETED", "version": 4, "closed_at": "2021-06-18T13:37:34.544Z", "returns": [{"uid": "utVo8VtdQxlKZdVh1n6jaD", "source_order_id": "BxCc4Y2KBt10BUWQheazcgRUR7bZY", "return_line_items": [{"uid": "Ck0UkAjcVHe6guD1HNWub", "quantity": "1", "item_type": "CUSTOM_AMOUNT", "base_price_money": {"amount": 1485, "currency": "USD"}, "variation_total_price_money": {"amount": 1485, "currency": "USD"}, "gross_return_money": {"amount": 1485, "currency": "USD"}, "total_tax_money": {"amount": 0, "currency": "USD"}, "total_discount_money": {"amount": 0, "currency": "USD"}, "total_money": {"amount": 1485, "currency": "USD"}}]}], "return_amounts": {"total_money": {"amount": 1485, "currency": "USD"}, "tax_money": {"amount": 0, "currency": "USD"}, "discount_money": {"amount": 0, "currency": "USD"}, "tip_money": {"amount": 0, "currency": "USD"}, "service_charge_money": {"amount": 0, "currency": "USD"}}, "refunds": [{"id": "0um3GHK0AHt273xEe6I3u1y96Lnm018b0WAtyyOYRrP", "location_id": "LH2XR7AMG39HX", "transaction_id": "BxCc4Y2KBt10BUWQheazcgRUR7bZY", "tender_id": "NWO7kC96bJDUNKLovcUnapxGeOWZY", "created_at": "2021-06-18T13:37:33Z", "reason": "Broken item", "amount_money": {"amount": 1485, "currency": "USD"}, "status": "APPROVED"}], "source": {}}, "emitted_at": 1697217939875} diff --git a/airbyte-integrations/connectors/source-square/metadata.yaml b/airbyte-integrations/connectors/source-square/metadata.yaml index f9559e832224..83eb2609ca54 100644 --- a/airbyte-integrations/connectors/source-square/metadata.yaml +++ b/airbyte-integrations/connectors/source-square/metadata.yaml @@ -9,7 +9,7 @@ data: connectorSubtype: api connectorType: source definitionId: 77225a51-cd15-4a13-af02-65816bd0ecf4 - dockerImageTag: 1.2.0 + dockerImageTag: 1.3.0 dockerRepository: airbyte/source-square documentationUrl: https://docs.airbyte.com/integrations/sources/square githubIssueLabel: source-square diff --git a/airbyte-integrations/connectors/source-square/source_square/manifest.yaml b/airbyte-integrations/connectors/source-square/source_square/manifest.yaml index 6599c7451846..78f8a8443b37 100644 --- a/airbyte-integrations/connectors/source-square/source_square/manifest.yaml +++ b/airbyte-integrations/connectors/source-square/source_square/manifest.yaml @@ -184,6 +184,24 @@ definitions: primary_key: "id" path: "/team-members/search" + inventory_stream: + $ref: "#/definitions/base_stream" + $parameters: + name: "inventory" + primary_key: "catalog_object_id" + path: "/inventory/counts/batch-retrieve" + retriever: + $ref: "#/definitions/base_stream_page_json_limit/retriever" + requester: + $ref: "#/definitions/base_stream_page_json_limit/retriever/requester" + http_method: "POST" + request_body_json: + limit: "{{ 500 }}" + record_selector: + $ref: "#/definitions/selector" + extractor: + field_path: ["counts"] + team_member_wages_stream: $ref: "#/definitions/base_stream" $parameters: @@ -327,6 +345,7 @@ streams: - "#/definitions/taxes_stream" - "#/definitions/modifier_list_stream" - "#/definitions/refunds_stream" + - "#/definitions/inventory_stream" - "#/definitions/payments_stream" - "#/definitions/orders_stream" - "#/definitions/cash_drawers_stream" diff --git a/airbyte-integrations/connectors/source-square/source_square/schemas/inventory.json b/airbyte-integrations/connectors/source-square/source_square/schemas/inventory.json new file mode 100644 index 000000000000..275a6eace961 --- /dev/null +++ b/airbyte-integrations/connectors/source-square/source_square/schemas/inventory.json @@ -0,0 +1,26 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Inventory Schema", + "additionalProperties": true, + "type": ["object", "null"], + "properties": { + "catalog_object_id": { + "type": ["string", "null"] + }, + "catalog_object_type": { + "type": ["string", "null"] + }, + "state": { + "type": ["string", "null"] + }, + "location_id": { + "type": ["string", "null"] + }, + "quantity": { + "type": ["string", "null"] + }, + "calculated_at": { + "type": ["string", "null"] + } + } +} diff --git a/docs/integrations/sources/square.md b/docs/integrations/sources/square.md index fe9a86105d42..a18d34ca62c9 100644 --- a/docs/integrations/sources/square.md +++ b/docs/integrations/sources/square.md @@ -68,6 +68,7 @@ The Square source connector supports the following [ sync modes](https://docs.ai - [List Team Member Wages](https://developer.squareup.com/explorer/square/labor-api/list-team-member-wages) - [Customers](https://developer.squareup.com/explorer/square/customers-api/list-customers) - [Shifts](https://developer.squareup.com/reference/square/labor-api/search-shifts) +- [Inventory](https://developer.squareup.com/reference/square/inventory-api/batch-retrieve-inventory-counts) - [Orders](https://developer.squareup.com/reference/square/orders-api/search-orders) - [Cash drawers](https://developer.squareup.com/explorer/square/cash-drawers-api/list-cash-drawer-shifts) @@ -98,6 +99,7 @@ Exponential [Backoff](https://developer.squareup.com/forums/t/current-square-api | Version | Date | Pull Request | Subject | | :------ |:-----------| :------------------------------------------------------- |:--------------------------------------------------------------------------| +| 1.3.0 | 2023-10-12 | [31107](https://github.com/airbytehq/airbyte/pull/31107) | Add new stream Inventory | | 1.2.0 | 2023-10-10 | [31065](https://github.com/airbytehq/airbyte/pull/31065) | Add new stream Cash drawers shifts | | 1.1.3 | 2023-10-10 | [30960](https://github.com/airbytehq/airbyte/pull/30960) | Update `airbyte-cdk` version to `>=0.51.31` | | 1.1.2 | 2023-07-10 | [28019](https://github.com/airbytehq/airbyte/pull/28019) | fix display order of spec fields |