diff --git a/airbyte-config/init/src/main/resources/seed/source_definitions.yaml b/airbyte-config/init/src/main/resources/seed/source_definitions.yaml index 3e9d6f277d663..aab87c689d109 100644 --- a/airbyte-config/init/src/main/resources/seed/source_definitions.yaml +++ b/airbyte-config/init/src/main/resources/seed/source_definitions.yaml @@ -48,7 +48,7 @@ - name: Amazon Seller Partner sourceDefinitionId: e55879a8-0ef8-4557-abcf-ab34c53ec460 dockerRepository: airbyte/source-amazon-seller-partner - dockerImageTag: 0.2.27 + dockerImageTag: 0.2.28 sourceType: api documentationUrl: https://docs.airbyte.com/integrations/sources/amazon-seller-partner icon: amazonsellerpartner.svg diff --git a/airbyte-config/init/src/main/resources/seed/source_specs.yaml b/airbyte-config/init/src/main/resources/seed/source_specs.yaml index bd9ec2e8554f6..dd3feabe9064f 100644 --- a/airbyte-config/init/src/main/resources/seed/source_specs.yaml +++ b/airbyte-config/init/src/main/resources/seed/source_specs.yaml @@ -806,7 +806,7 @@ type: "string" path_in_connector_config: - "client_secret" -- dockerImage: "airbyte/source-amazon-seller-partner:0.2.27" +- dockerImage: "airbyte/source-amazon-seller-partner:0.2.28" spec: documentationUrl: "https://docs.airbyte.com/integrations/sources/amazon-seller-partner" changelogUrl: "https://docs.airbyte.com/integrations/sources/amazon-seller-partner" diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/Dockerfile b/airbyte-integrations/connectors/source-amazon-seller-partner/Dockerfile index e7b4197565c69..1f02d51d84eb8 100644 --- a/airbyte-integrations/connectors/source-amazon-seller-partner/Dockerfile +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/Dockerfile @@ -12,5 +12,5 @@ RUN pip install . ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py" ENTRYPOINT ["python", "/airbyte/integration_code/main.py"] -LABEL io.airbyte.version=0.2.27 +LABEL io.airbyte.version=0.2.28 LABEL io.airbyte.name=airbyte/source-amazon-seller-partner diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/acceptance-test-config.yml b/airbyte-integrations/connectors/source-amazon-seller-partner/acceptance-test-config.yml index 13530f0ade72d..135f5de1a6b42 100644 --- a/airbyte-integrations/connectors/source-amazon-seller-partner/acceptance-test-config.yml +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/acceptance-test-config.yml @@ -2,8 +2,6 @@ connector_image: airbyte/source-amazon-seller-partner:dev tests: spec: - spec_path: "integration_tests/spec.json" - backward_compatibility_tests_config: - disable_for_version: "0.2.26" connection: # - config_path: "secrets/config.json" # status: "succeed" @@ -13,8 +11,6 @@ tests: timeout_seconds: 60 discovery: - config_path: "secrets/config.json" - backward_compatibility_tests_config: - disable_for_version: "0.2.26" # TODO: uncomment when at least one record exist # basic_read: # - config_path: "secrets/config.json" @@ -30,7 +26,7 @@ tests: # "GET_FBA_FULFILLMENT_REMOVAL_ORDER_DETAIL_DATA", # "GET_FBA_FULFILLMENT_REMOVAL_SHIPMENT_DETAIL_DATA", # "GET_VENDOR_INVENTORY_HEALTH_AND_PLANNING_REPORT", -# "VendorDirectFulfillmentShipping", +# "VendorDirectFulfillmentShipping" # ] # - config_path: "secrets/config.json" # configured_catalog_path: "integration_tests/configured_catalog_brand_analytics_alternate_purchase.json" @@ -48,6 +44,50 @@ tests: # configured_catalog_path: "integration_tests/configured_catalog_browse_tree_data.json" # - config_path: "secrets/config.json" # configured_catalog_path: "integration_tests/configured_catalog_restock_inventory.json" +# - config_path: "secrets/config.json" +# configured_catalog_path: "integration_tests/configured_catalog_get_fba_estimated_fba_fees_txt_data.json" +# - config_path: "secrets/config.json" +# configured_catalog_path: "integration_tests/configured_catalog_get_fba_fulfillment_current_inventory_data.json" +# - config_path: "secrets/config.json" +# configured_catalog_path: "integration_tests/configured_catalog_get_fba_fulfillment_customer_shipment_promotion_data.json" +# - config_path: "secrets/config.json" +# configured_catalog_path: "integration_tests/configured_catalog_get_fba_fulfillment_inventory_adjustments_data.json" +# - config_path: "secrets/config.json" +# configured_catalog_path: "integration_tests/configured_catalog_get_fba_fulfillment_inventory_receipts_data.json" +# - config_path: "secrets/config.json" +# configured_catalog_path: "integration_tests/configured_catalog_get_fba_fulfillment_inventory_summary_data.json" +# - config_path: "secrets/config.json" +# configured_catalog_path: "integration_tests/configured_catalog_get_fba_fulfillment_monthly_inventory_data.json" +# - config_path: "secrets/config.json" +# configured_catalog_path: "integration_tests/configured_catalog_get_fba_myi_unsuppressed_inventory_data.json" +# - config_path: "secrets/config.json" +# configured_catalog_path: "integration_tests/configured_catalog_get_fba_sns_forecast_data.json" +# - config_path: "secrets/config.json" +# configured_catalog_path: "integration_tests/configured_catalog_get_fba_sns_performance_data.json" +# - config_path: "secrets/config.json" +# configured_catalog_path: "integration_tests/configured_catalog_get_flat_file_archived_orders_data_by_order_date.json" +# - config_path: "secrets/config.json" +# configured_catalog_path: "integration_tests/configured_catalog_get_flat_file_returns_data_by_return_date.json" +# - config_path: "secrets/config.json" +# configured_catalog_path: "integration_tests/configured_catalog_get_merchant_cancelled_listings_data.json" +# - config_path: "secrets/config.json" +# configured_catalog_path: "integration_tests/configured_catalog_get_merchant_listings_data.json" +# - config_path: "secrets/config.json" +# configured_catalog_path: "integration_tests/configured_catalog_get_merchant_listings_data_back_compat.json" +# - config_path: "secrets/config.json" +# configured_catalog_path: "integration_tests/configured_catalog_get_merchants_listings_fyp_report.json" +# - config_path: "secrets/config.json" +# configured_catalog_path: "integration_tests/configured_catalog_get_merchant_listings_inactive_data.json" +# - config_path: "secrets/config.json" +# configured_catalog_path: "integration_tests/configured_catalog_get_stranded_inventory_ui_data.json" +# - config_path: "secrets/config.json" +# configured_catalog_path: "integration_tests/configured_catalog_get_xml_all_orders_data_by_order_date_general.json" +# - config_path: "secrets/config.json" +# configured_catalog_path: "integration_tests/configured_catalog_get_ledger_detail_view_data.json" +# - config_path: "secrets/config.json" +# configured_catalog_path: "integration_tests/configured_catalog_get_fba_inventory_planning_data.json" +# - config_path: "secrets/config.json" +# configured_catalog_path: "integration_tests/configured_catalog_get_ledger_summary_view_data.json" # TODO: uncomment when Orders (or any other incremental) stream is filled with data # incremental: # - config_path: "secrets/config.json" diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_fba_estimated_fba_fees_txt_data.json b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_fba_estimated_fba_fees_txt_data.json new file mode 100644 index 0000000000000..9759ed3af1e20 --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_fba_estimated_fba_fees_txt_data.json @@ -0,0 +1,70 @@ +{ + "streams": [ + { + "stream": { + "name": "GET_FBA_ESTIMATED_FBA_FEES_TXT_DATA", + "json_schema": { + "title": "FBA Fee Preview Report", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "sku": { "type": ["null", "string"] }, + "fnsku": { "type": ["null", "string"] }, + "asin": { "type": ["null", "string"] }, + "product-name": { "type": ["null", "string"] }, + "product-group": { "type": ["null", "string"] }, + "brand": { "type": ["null", "string"] }, + "fulfilled-by": { "type": ["null", "string"] }, + "your-price": { "type": ["null", "string"] }, + "sales-price": { "type": ["null", "string"] }, + "longest-side": { "type": ["null", "string"] }, + "median-side": { "type": ["null", "string"] }, + "shortest-side": { "type": ["null", "string"] }, + "length-and-girth": { "type": ["null", "string"] }, + "unit-of-dimension": { "type": ["null", "string"] }, + "item-package-weight": { "type": ["null", "string"] }, + "unit-of-weight": { "type": ["null", "string"] }, + "product-size-tier": { "type": ["null", "string"] }, + "currency": { "type": ["null", "string"] }, + "estimated-fee-total": { "type": ["null", "string"] }, + "estimated-referral-fee-per-unit": { "type": ["null", "string"] }, + "estimated-variable-closing-fee": { "type": ["null", "string"] }, + "estimated-order-handling-fee-per-order": { + "type": ["null", "string"] + }, + "estimated-pick-pack-fee-per-unit": { "type": ["null", "string"] }, + "estimated-weight-handling-fee-per-unit": { + "type": ["null", "string"] + }, + "expected-fulfillment-fee-per-unit": { "type": ["null", "string"] }, + "estimated-future-fee (Current Selling on Amazon + Future Fulfillment fees)": { + "type": ["null", "string"] + }, + "estimated-future-order-handling-fee-per-order": { + "type": ["null", "string"] + }, + "estimated-future-pick-pack-fee-per-unit": { + "type": ["null", "string"] + }, + "estimated-future-weight-handling-fee-per-unit": { + "type": ["null", "string"] + }, + "expected-future-fulfillment-fee-per-unit": { + "type": ["null", "string"] + }, + "estimated-future-referral-fee-per-unit": { + "type": ["null", "string"] + }, + "current-fee-category": { "type": ["null", "string"] }, + "future-fee-category": { "type": ["null", "string"] }, + "future-fee-category-effective-date": { "type": ["null", "string"] } + } + }, + "supported_sync_modes": ["full_refresh"] + }, + "sync_mode": "full_refresh", + "destination_sync_mode": "overwrite" + } + ] +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_fba_fulfillment_current_inventory_data.json b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_fba_fulfillment_current_inventory_data.json new file mode 100644 index 0000000000000..376c902143556 --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_fba_fulfillment_current_inventory_data.json @@ -0,0 +1,28 @@ +{ + "streams": [ + { + "stream": { + "name": "GET_FBA_FULFILLMENT_CURRENT_INVENTORY_DATA", + "json_schema": { + "title": "FBA Daily Inventory History Report", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "snapshot-date": { "type": ["null", "string"] }, + "fnsku": { "type": ["null", "string"] }, + "sku": { "type": ["null", "string"] }, + "product-name": { "type": ["null", "string"] }, + "quantity": { "type": ["null", "string"] }, + "fulfillment-center-id": { "type": ["null", "string"] }, + "detailed-disposition": { "type": ["null", "string"] }, + "country": { "type": ["null", "string"] } + } + }, + "supported_sync_modes": ["full_refresh"] + }, + "sync_mode": "full_refresh", + "destination_sync_mode": "overwrite" + } + ] +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_fba_fulfillment_customer_shipment_promotion_data.json b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_fba_fulfillment_customer_shipment_promotion_data.json new file mode 100644 index 0000000000000..4d641e80e1fe3 --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_fba_fulfillment_customer_shipment_promotion_data.json @@ -0,0 +1,29 @@ +{ + "streams": [ + { + "stream": { + "name": "GET_FBA_FULFILLMENT_CUSTOMER_SHIPMENT_PROMOTION_DATA", + "json_schema": { + "title": "FBA Promotions Report", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "shipment-date": { "type": ["null", "string"] }, + "currency": { "type": ["null", "string"] }, + "item-promotion-discount": { "type": ["null", "string"] }, + "item-promotion-id": { "type": ["null", "string"] }, + "description": { "type": ["null", "string"] }, + "promotion-rule-value": { "type": ["null", "string"] }, + "amazon-order-id": { "type": ["null", "string"] }, + "shipment-id": { "type": ["null", "string"] }, + "shipment-item-id": { "type": ["null", "string"] } + } + }, + "supported_sync_modes": ["full_refresh"] + }, + "sync_mode": "full_refresh", + "destination_sync_mode": "overwrite" + } + ] +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_fba_fulfillment_inventory_adjustments_data.json b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_fba_fulfillment_inventory_adjustments_data.json new file mode 100644 index 0000000000000..eb241d9e7e3ee --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_fba_fulfillment_inventory_adjustments_data.json @@ -0,0 +1,31 @@ +{ + "streams": [ + { + "stream": { + "name": "GET_FBA_FULFILLMENT_INVENTORY_ADJUSTMENTS_DATA", + "json_schema": { + "title": "FBA Inventory Adjustments Report", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "adjusted-date": { "type": ["null", "string"] }, + "transaction-item-id": { "type": ["null", "string"] }, + "fnsku": { "type": ["null", "string"] }, + "sku": { "type": ["null", "string"] }, + "product-name": { "type": ["null", "string"] }, + "fulfillment-center-id": { "type": ["null", "string"] }, + "quantity": { "type": ["null", "string"] }, + "reason": { "type": ["null", "string"] }, + "disposition": { "type": ["null", "string"] }, + "reconciled": { "type": ["null", "string"] }, + "unreconciled": { "type": ["null", "string"] } + } + }, + "supported_sync_modes": ["full_refresh"] + }, + "sync_mode": "full_refresh", + "destination_sync_mode": "overwrite" + } + ] +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_fba_fulfillment_inventory_receipts_data.json b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_fba_fulfillment_inventory_receipts_data.json new file mode 100644 index 0000000000000..92575cfb052e9 --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_fba_fulfillment_inventory_receipts_data.json @@ -0,0 +1,27 @@ +{ + "streams": [ + { + "stream": { + "name": "GET_FBA_FULFILLMENT_INVENTORY_RECEIPTS_DATA", + "json_schema": { + "title": "FBA Received Inventory Report", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "received-date": { "type": ["null", "string"] }, + "fnsku": { "type": ["null", "string"] }, + "sku": { "type": ["null", "string"] }, + "product-name": { "type": ["null", "string"] }, + "quantity": { "type": ["null", "string"] }, + "fba-shipment-id": { "type": ["null", "string"] }, + "fulfillment-center-id": { "type": ["null", "string"] } + } + }, + "supported_sync_modes": ["full_refresh"] + }, + "sync_mode": "full_refresh", + "destination_sync_mode": "overwrite" + } + ] +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_fba_fulfillment_inventory_summary_data.json b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_fba_fulfillment_inventory_summary_data.json new file mode 100644 index 0000000000000..b38e9b2849efd --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_fba_fulfillment_inventory_summary_data.json @@ -0,0 +1,28 @@ +{ + "streams": [ + { + "stream": { + "name": "GET_FBA_FULFILLMENT_INVENTORY_SUMMARY_DATA", + "json_schema": { + "title": "FBA Inventory Event Detail Report", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "snapshot-date": { "type": ["null", "string"] }, + "transaction-type": { "type": ["null", "string"] }, + "fnsku": { "type": ["null", "string"] }, + "sku": { "type": ["null", "string"] }, + "product-name": { "type": ["null", "string"] }, + "fulfillment-center-id": { "type": ["null", "string"] }, + "quantity": { "type": ["null", "string"] }, + "disposition": { "type": ["null", "string"] } + } + }, + "supported_sync_modes": ["full_refresh"] + }, + "sync_mode": "full_refresh", + "destination_sync_mode": "overwrite" + } + ] +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_fba_fulfillment_monthly_inventory_data.json b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_fba_fulfillment_monthly_inventory_data.json new file mode 100644 index 0000000000000..c695f887c910b --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_fba_fulfillment_monthly_inventory_data.json @@ -0,0 +1,29 @@ +{ + "streams": [ + { + "stream": { + "name": "GET_FBA_FULFILLMENT_MONTHLY_INVENTORY_DATA", + "json_schema": { + "title": "FBA Monthly Inventory History Report", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "month": { "type": ["null", "string"] }, + "fnsku": { "type": ["null", "string"] }, + "sku": { "type": ["null", "string"] }, + "product-name": { "type": ["null", "string"] }, + "average-quantity": { "type": ["null", "string"] }, + "end-quantity": { "type": ["null", "string"] }, + "fulfillment-center-id": { "type": ["null", "string"] }, + "detailed-disposition": { "type": ["null", "string"] }, + "country": { "type": ["null", "string"] } + } + }, + "supported_sync_modes": ["full_refresh"] + }, + "sync_mode": "full_refresh", + "destination_sync_mode": "overwrite" + } + ] +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_fba_inventory_planning_data.json b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_fba_inventory_planning_data.json new file mode 100644 index 0000000000000..c1f82a2c7b7ff --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_fba_inventory_planning_data.json @@ -0,0 +1,85 @@ +{ + "streams": [ + { + "stream": { + "name": "GET_FBA_INVENTORY_PLANNING_DATA", + "json_schema": { + "title": "FBA Manage Inventory Health Report", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "snapshot-date": { "type": ["null", "string"] }, + "sku": { "type": ["null", "string"] }, + "fnsku": { "type": ["null", "string"] }, + "asin": { "type": ["null", "string"] }, + "product-name": { "type": ["null", "string"] }, + "condition": { "type": ["null", "string"] }, + "available": { "type": ["null", "string"] }, + "pending-removal-quantity": { "type": ["null", "string"] }, + "inv-age-0-to-90-days": { "type": ["null", "string"] }, + "inv-age-91-to-180-days": { "type": ["null", "string"] }, + "inv-age-181-to-270-days": { "type": ["null", "string"] }, + "inv-age-271-to-365-days": { "type": ["null", "string"] }, + "inv-age-365-plus-days": { "type": ["null", "string"] }, + "currency": { "type": ["null", "string"] }, + "qty-to-be-charged-ltsf-9-mo": { "type": ["null", "string"] }, + "projected-ltsf-9-mo": { "type": ["null", "string"] }, + "qty-to-be-charged-ltsf-12-mo": { "type": ["null", "string"] }, + "estimated-ltsf-next-charge": { "type": ["null", "string"] }, + "units-shipped-t7": { "type": ["null", "string"] }, + "units-shipped-t30": { "type": ["null", "string"] }, + "units-shipped-t60": { "type": ["null", "string"] }, + "units-shipped-t90": { "type": ["null", "string"] }, + "alert": { "type": ["null", "string"] }, + "your-price": { "type": ["null", "string"] }, + "sales-price": { "type": ["null", "string"] }, + "lowest-price-new-plus-shipping": { "type": ["null", "string"] }, + "lowest-price-used": { "type": ["null", "string"] }, + "recommended-action": { "type": ["null", "string"] }, + "healthy-inventory-level": { "type": ["null", "string"] }, + "recommended-sales-price": { "type": ["null", "string"] }, + "recommended-sale-duration-days": { "type": ["null", "string"] }, + "recommended-removal-quantity": { "type": ["null", "string"] }, + "estimated-cost-savings-of-recommended-actions": { + "type": ["null", "string"] + }, + "sell-through": { "type": ["null", "string"] }, + "item-volume": { "type": ["null", "string"] }, + "volume-unit-measurement": { "type": ["null", "string"] }, + "storage-type": { "type": ["null", "string"] }, + "storage-volume": { "type": ["null", "string"] }, + "marketplace": { "type": ["null", "string"] }, + "product-group": { "type": ["null", "string"] }, + "sales-rank": { "type": ["null", "string"] }, + "days-of-supply": { "type": ["null", "string"] }, + "estimated-excess-quantity": { "type": ["null", "string"] }, + "weeks-of-cover-t30": { "type": ["null", "string"] }, + "weeks-of-cover-t90": { "type": ["null", "string"] }, + "featuredoffer-price": { "type": ["null", "string"] }, + "sales-shipped-last-7-days": { "type": ["null", "string"] }, + "sales-shipped-last-30-days": { "type": ["null", "string"] }, + "sales-shipped-last-60-days": { "type": ["null", "string"] }, + "sales-shipped-last-90-days": { "type": ["null", "string"] }, + "inv-age-0-to-30-days": { "type": ["null", "string"] }, + "inv-age-31-to-60-days": { "type": ["null", "string"] }, + "inv-age-61-to-90-days": { "type": ["null", "string"] }, + "inv-age-181-to-330-days": { "type": ["null", "string"] }, + "inv-age-331-to-365-days": { "type": ["null", "string"] }, + "estimated-storage-cost-next-month": { "type": ["null", "string"] }, + "inbound-quantity": { "type": ["null", "string"] }, + "inbound-working": { "type": ["null", "string"] }, + "inbound-shipped": { "type": ["null", "string"] }, + "inbound-received": { "type": ["null", "string"] }, + "no-sale-last-6-months": { "type": ["null", "string"] }, + "reserved-quantity": { "type": ["null", "string"] }, + "unfulfillable-quantity": { "type": ["null", "string"] } + } + }, + "supported_sync_modes": ["full_refresh"] + }, + "sync_mode": "full_refresh", + "destination_sync_mode": "overwrite" + } + ] +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_fba_myi_unsuppressed_inventory_data.json b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_fba_myi_unsuppressed_inventory_data.json new file mode 100644 index 0000000000000..ec3bb01ef5b41 --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_fba_myi_unsuppressed_inventory_data.json @@ -0,0 +1,41 @@ +{ + "streams": [ + { + "stream": { + "name": "GET_FBA_MYI_UNSUPPRESSED_INVENTORY_DATA", + "json_schema": { + "title": "FBA Manage Inventory", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "sku": { "type": ["null", "string"] }, + "fnsku": { "type": ["null", "string"] }, + "asin": { "type": ["null", "string"] }, + "product-name": { "type": ["null", "string"] }, + "condition": { "type": ["null", "string"] }, + "your-price": { "type": ["null", "string"] }, + "mfn-listing-exists": { "type": ["null", "string"] }, + "mfn-fulfillable-quantity": { "type": ["null", "string"] }, + "afn-listing-exists": { "type": ["null", "string"] }, + "afn-warehouse-quantity": { "type": ["null", "string"] }, + "afn-fulfillable-quantity": { "type": ["null", "string"] }, + "afn-unsellable-quantity": { "type": ["null", "string"] }, + "afn-reserved-quantity": { "type": ["null", "string"] }, + "afn-total-quantity": { "type": ["null", "string"] }, + "per-unit-volume": { "type": ["null", "string"] }, + "afn-inbound-working-quantity": { "type": ["null", "string"] }, + "afn-inbound-shipped-quantity": { "type": ["null", "string"] }, + "afn-inbound-receiving-quantity": { "type": ["null", "string"] }, + "afn-researching-quantity": { "type": ["null", "string"] }, + "afn-reserved-future-supply": { "type": ["null", "string"] }, + "afn-future-supply-buyable": { "type": ["null", "string"] } + } + }, + "supported_sync_modes": ["full_refresh"] + }, + "sync_mode": "full_refresh", + "destination_sync_mode": "overwrite" + } + ] +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_fba_sns_forecast_data.json b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_fba_sns_forecast_data.json new file mode 100644 index 0000000000000..4a447e44ae417 --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_fba_sns_forecast_data.json @@ -0,0 +1,40 @@ +{ + "streams": [ + { + "stream": { + "name": "GET_FBA_SNS_FORECAST_DATA", + "json_schema": { + "title": "Subscribe and Save Forecast Report", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "offer-state": { "type": ["null", "string"] }, + "snapshot-date": { "type": ["null", "string"] }, + "sku": { "type": ["null", "string"] }, + "fnsku": { "type": ["null", "string"] }, + "asin": { "type": ["null", "string"] }, + "estimated-avg-sns-discount-next-8-weeks": { + "type": ["null", "string"] + }, + "product-name": { "type": ["null", "string"] }, + "country": { "type": ["null", "string"] }, + "active-subscriptions": { "type": ["null", "string"] }, + "week-1-start-date": { "type": ["null", "string"] }, + "scheduled-sns-units-week-1": { "type": ["null", "string"] }, + "scheduled-sns-units-week-2": { "type": ["null", "string"] }, + "scheduled-sns-units-week-3": { "type": ["null", "string"] }, + "scheduled-sns-units-week-4": { "type": ["null", "string"] }, + "scheduled-sns-units-week-5": { "type": ["null", "string"] }, + "scheduled-sns-units-week-6": { "type": ["null", "string"] }, + "scheduled-sns-units-week-7": { "type": ["null", "string"] }, + "scheduled-sns-units-week-8": { "type": ["null", "string"] } + } + }, + "supported_sync_modes": ["full_refresh"] + }, + "sync_mode": "full_refresh", + "destination_sync_mode": "overwrite" + } + ] +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_fba_sns_performance_data.json b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_fba_sns_performance_data.json new file mode 100644 index 0000000000000..42072661c95a7 --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_fba_sns_performance_data.json @@ -0,0 +1,44 @@ +{ + "streams": [ + { + "stream": { + "name": "GET_FBA_SNS_PERFORMANCE_DATA", + "json_schema": { + "title": "Subscribe and Save Performance Report", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "offer-state": { "type": ["null", "string"] }, + "snapshot-date": { "type": ["null", "string"] }, + "sku": { "type": ["null", "string"] }, + "fnsku": { "type": ["null", "string"] }, + "asin": { "type": ["null", "string"] }, + "product-name": { "type": ["null", "string"] }, + "country": { "type": ["null", "string"] }, + "week-1-start-date": { "type": ["null", "string"] }, + "sns-units-shipped-week-1": { "type": ["null", "string"] }, + "oos-rate-week-1": { "type": ["null", "string"] }, + "sns-sale-price-week-1": { "type": ["null", "string"] }, + "sns-discount-week-1": { "type": ["null", "string"] }, + "sns-units-shipped-week-2": { "type": ["null", "string"] }, + "oos-rate-week-2": { "type": ["null", "string"] }, + "sns-sale-price-week-2": { "type": ["null", "string"] }, + "sns-discount-week-2": { "type": ["null", "string"] }, + "sns-units-shipped-week-3": { "type": ["null", "string"] }, + "oos-rate-week-3": { "type": ["null", "string"] }, + "sns-sale-price-week-3": { "type": ["null", "string"] }, + "sns-discount-week-3": { "type": ["null", "string"] }, + "sns-units-shipped-week-4": { "type": ["null", "string"] }, + "oos-rate-week-4": { "type": ["null", "string"] }, + "sns-sale-price-week-4": { "type": ["null", "string"] }, + "sns-discount-week-4": { "type": ["null", "string"] } + } + }, + "supported_sync_modes": ["full_refresh"] + }, + "sync_mode": "full_refresh", + "destination_sync_mode": "overwrite" + } + ] +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_flat_file_archived_orders_data_by_order_date.json b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_flat_file_archived_orders_data_by_order_date.json new file mode 100644 index 0000000000000..a1e6825b8fc60 --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_flat_file_archived_orders_data_by_order_date.json @@ -0,0 +1,51 @@ +{ + "streams": [ + { + "stream": { + "name": "GET_FLAT_FILE_ARCHIVED_ORDERS_DATA_BY_ORDER_DATE", + "json_schema": { + "title": "Flat File Archived Orders Report", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "amazon-order-id": { "type": ["null", "string"] }, + "merchant-order-id": { "type": ["null", "string"] }, + "purchase-date": { "type": ["null", "string"] }, + "last-updated-date": { "type": ["null", "string"] }, + "order-status": { "type": ["null", "string"] }, + "fulfillment-channel": { "type": ["null", "string"] }, + "sales-channel": { "type": ["null", "string"] }, + "order-channel": { "type": ["null", "string"] }, + "url": { "type": ["null", "string"] }, + "ship-service-level": { "type": ["null", "string"] }, + "product-name": { "type": ["null", "string"] }, + "sku": { "type": ["null", "string"] }, + "asin": { "type": ["null", "string"] }, + "item-status": { "type": ["null", "string"] }, + "quantity": { "type": ["null", "string"] }, + "currency": { "type": ["null", "string"] }, + "item-price": { "type": ["null", "string"] }, + "item-tax": { "type": ["null", "string"] }, + "shipping-price": { "type": ["null", "string"] }, + "shipping-tax": { "type": ["null", "string"] }, + "gift-wrap-price": { "type": ["null", "string"] }, + "gift-wrap-tax": { "type": ["null", "string"] }, + "item-promotion-discount": { "type": ["null", "string"] }, + "ship-promotion-discount": { "type": ["null", "string"] }, + "ship-country": { "type": ["null", "string"] }, + "ship-promotion-id": { "type": ["null", "string"] }, + "promotion-ids": { "type": ["null", "string"] }, + "is-business-order": { "type": ["null", "string"] }, + "purchase-order-number": { "type": ["null", "string"] }, + "price-designation": { "type": ["null", "string"] }, + "is-replacement-order": { "type": ["null", "string"] } + } + }, + "supported_sync_modes": ["full_refresh"] + }, + "sync_mode": "full_refresh", + "destination_sync_mode": "overwrite" + } + ] +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_flat_file_returns_data_by_return_date.json b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_flat_file_returns_data_by_return_date.json new file mode 100644 index 0000000000000..d9a25080a0a96 --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_flat_file_returns_data_by_return_date.json @@ -0,0 +1,52 @@ +{ + "streams": [ + { + "stream": { + "name": "GET_FLAT_FILE_RETURNS_DATA_BY_RETURN_DATE", + "json_schema": { + "title": "Flat File Returns Report by Return Date", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "Order ID": { "type": ["null", "string"] }, + "Order date": { "type": ["null", "string"] }, + "Return request date": { "type": ["null", "string"] }, + "Return request status": { "type": ["null", "string"] }, + "Amazon RMA ID": { "type": ["null", "string"] }, + "Merchant RMA ID": { "type": ["null", "string"] }, + "Label type": { "type": ["null", "string"] }, + "Label cost": { "type": ["null", "string"] }, + "Currency code": { "type": ["null", "string"] }, + "Return carrier": { "type": ["null", "string"] }, + "Tracking ID": { "type": ["null", "string"] }, + "Label to be paid by": { "type": ["null", "string"] }, + "A-to-Z Claim": { "type": ["null", "string"] }, + "Is prime": { "type": ["null", "string"] }, + "ASIN": { "type": ["null", "string"] }, + "Merchant SKU": { "type": ["null", "string"] }, + "Item Name": { "type": ["null", "string"] }, + "Return quantity": { "type": ["null", "string"] }, + "Return Reason": { "type": ["null", "string"] }, + "In policy": { "type": ["null", "string"] }, + "Return type": { "type": ["null", "string"] }, + "Resolution": { "type": ["null", "string"] }, + "Invoice number": { "type": ["null", "string"] }, + "Return delivery date": { "type": ["null", "string"] }, + "Order Amount": { "type": ["null", "string"] }, + "Order quantity": { "type": ["null", "string"] }, + "SafeT Action reason": { "type": ["null", "string"] }, + "SafeT claim id": { "type": ["null", "string"] }, + "SafeT claim state": { "type": ["null", "string"] }, + "SafeT claim creation time": { "type": ["null", "string"] }, + "SafeT claim reimbursement amount": { "type": ["null", "string"] }, + "Refunded Amount": { "type": ["null", "string"] } + } + }, + "supported_sync_modes": ["full_refresh"] + }, + "sync_mode": "full_refresh", + "destination_sync_mode": "overwrite" + } + ] +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_ledger_detail_view_data.json b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_ledger_detail_view_data.json new file mode 100644 index 0000000000000..deb52a3a1bcae --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_ledger_detail_view_data.json @@ -0,0 +1,34 @@ +{ + "streams": [ + { + "stream": { + "name": "GET_LEDGER_DETAIL_VIEW_DATA", + "json_schema": { + "title": "Inventory Ledger Report - Detailed View", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "Date": { "type": ["null", "string"], "format": "date" }, + "FNSKU": { "type": ["null", "string"] }, + "ASIN": { "type": ["null", "string"] }, + "MSKU": { "type": ["null", "string"] }, + "Title": { "type": ["null", "string"] }, + "Event Type": { "type": ["null", "string"] }, + "Reference ID": { "type": ["null", "string"] }, + "Quantity": { "type": ["null", "string"] }, + "Fulfillment Center": { "type": ["null", "string"] }, + "Disposition": { "type": ["null", "string"] }, + "Reason": { "type": ["null", "string"] }, + "Country": { "type": ["null", "string"] }, + "Reconciled Quantity": { "type": ["null", "string"] }, + "Unreconciled Quantity": { "type": ["null", "string"] } + } + }, + "supported_sync_modes": ["full_refresh"] + }, + "sync_mode": "full_refresh", + "destination_sync_mode": "overwrite" + } + ] +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_ledger_summary_view_data.json b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_ledger_summary_view_data.json new file mode 100644 index 0000000000000..7b398f5a15620 --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_ledger_summary_view_data.json @@ -0,0 +1,41 @@ +{ + "streams": [ + { + "stream": { + "name": "GET_LEDGER_SUMMARY_VIEW_DATA", + "json_schema": { + "title": "Inventory Ledger Report - Summary View", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "Date": { "type": ["null", "string"] }, + "FNSKU": { "type": ["null", "string"] }, + "ASIN": { "type": ["null", "string"] }, + "MSKU": { "type": ["null", "string"] }, + "Title": { "type": ["null", "string"] }, + "Disposition": { "type": ["null", "string"] }, + "Starting Warehouse Balance": { "type": ["null", "string"] }, + "In Transit Between Warehouses": { "type": ["null", "string"] }, + "Receipts": { "type": ["null", "string"] }, + "Customer Shipments": { "type": ["null", "string"] }, + "Customer Returns": { "type": ["null", "string"] }, + "Vendor Returns": { "type": ["null", "string"] }, + "Warehouse Transfer In/Out": { "type": ["null", "string"] }, + "Found": { "type": ["null", "string"] }, + "Lost": { "type": ["null", "string"] }, + "Damaged": { "type": ["null", "string"] }, + "Disposed": { "type": ["null", "string"] }, + "Other Events": { "type": ["null", "string"] }, + "Ending Warehouse Balance": { "type": ["null", "string"] }, + "Unknown Events": { "type": ["null", "string"] }, + "Location": { "type": ["null", "string"] } + } + }, + "supported_sync_modes": ["full_refresh"] + }, + "sync_mode": "full_refresh", + "destination_sync_mode": "overwrite" + } + ] +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_merchant_cancelled_listings_data.json b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_merchant_cancelled_listings_data.json new file mode 100644 index 0000000000000..43cbf999744d1 --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_merchant_cancelled_listings_data.json @@ -0,0 +1,62 @@ +{ + "streams": [ + { + "stream": { + "name": "GET_MERCHANT_CANCELLED_LISTINGS_DATA", + "json_schema": { + "title": "Canceled Listings Report", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "item-name": { "type": ["null", "string"] }, + "item-description": { "type": ["null", "string"] }, + "seller-sku": { "type": ["null", "string"] }, + "price": { "type": ["null", "string"] }, + "quantity": { "type": ["null", "string"] }, + "image-url": { "type": ["null", "string"] }, + "item-is-marketplace": { "type": ["null", "string"] }, + "product-id-type": { "type": ["null", "string"] }, + "zshop-shipping-fee": { "type": ["null", "string"] }, + "item-note": { "type": ["null", "string"] }, + "item-condition": { "type": ["null", "string"] }, + "zshop-category1": { "type": ["null", "string"] }, + "zshop-browse-path": { "type": ["null", "string"] }, + "zshop-storefront-feature": { "type": ["null", "string"] }, + "asin1": { "type": ["null", "string"] }, + "asin2": { "type": ["null", "string"] }, + "asin3": { "type": ["null", "string"] }, + "will-ship-internationally": { "type": ["null", "string"] }, + "expedited-shipping": { "type": ["null", "string"] }, + "zshop-boldface": { "type": ["null", "string"] }, + "product-id": { "type": ["null", "string"] }, + "add-delete": { "type": ["null", "string"] }, + "Business Price": { "type": ["null", "string"] }, + "Quantity Price Type": { "type": ["null", "string"] }, + "Quantity Lower Bound 1": { "type": ["null", "string"] }, + "Quantity Price 1": { "type": ["null", "string"] }, + "Quantity Lower Bound 2": { "type": ["null", "string"] }, + "Quantity Price 2": { "type": ["null", "string"] }, + "Quantity Lower Bound 3": { "type": ["null", "string"] }, + "Quantity Price 3": { "type": ["null", "string"] }, + "Quantity Lower Bound 4": { "type": ["null", "string"] }, + "Quantity Price 4": { "type": ["null", "string"] }, + "Quantity Lower Bound 5": { "type": ["null", "string"] }, + "Quantity Price 5": { "type": ["null", "string"] }, + "merchant-shipping-group": { "type": ["null", "string"] }, + "Progressive Price Type": { "type": ["null", "string"] }, + "Progressive Lower Bound 1": { "type": ["null", "string"] }, + "Progressive Price 1": { "type": ["null", "string"] }, + "Progressive Lower Bound 2": { "type": ["null", "string"] }, + "Progressive Price 2": { "type": ["null", "string"] }, + "Progressive Lower Bound 3": { "type": ["null", "string"] }, + "Progressive Price 3": { "type": ["null", "string"] } + } + }, + "supported_sync_modes": ["full_refresh"] + }, + "sync_mode": "full_refresh", + "destination_sync_mode": "overwrite" + } + ] +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_merchant_listings_data.json b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_merchant_listings_data.json new file mode 100644 index 0000000000000..51425d42aaa7d --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_merchant_listings_data.json @@ -0,0 +1,67 @@ +{ + "streams": [ + { + "stream": { + "name": "GET_MERCHANT_LISTINGS_DATA", + "json_schema": { + "title": "Active Listings Report", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "item-name": { "type": ["null", "string"] }, + "item-description": { "type": ["null", "string"] }, + "listing-id": { "type": ["null", "string"] }, + "seller-sku": { "type": ["null", "string"] }, + "price": { "type": ["null", "string"] }, + "quantity": { "type": ["null", "string"] }, + "open-date": { "type": ["null", "string"] }, + "image-url": { "type": ["null", "string"] }, + "item-is-marketplace": { "type": ["null", "string"] }, + "product-id-type": { "type": ["null", "string"] }, + "zshop-shipping-fee": { "type": ["null", "string"] }, + "item-note": { "type": ["null", "string"] }, + "item-condition": { "type": ["null", "string"] }, + "zshop-category1": { "type": ["null", "string"] }, + "zshop-browse-path": { "type": ["null", "string"] }, + "zshop-storefront-feature": { "type": ["null", "string"] }, + "asin1": { "type": ["null", "string"] }, + "asin2": { "type": ["null", "string"] }, + "asin3": { "type": ["null", "string"] }, + "will-ship-internationally": { "type": ["null", "string"] }, + "expedited-shipping": { "type": ["null", "string"] }, + "zshop-boldface": { "type": ["null", "string"] }, + "product-id": { "type": ["null", "string"] }, + "bid-for-featured-placement": { "type": ["null", "string"] }, + "add-delete": { "type": ["null", "string"] }, + "pending-quantity": { "type": ["null", "string"] }, + "fulfillment-channel": { "type": ["null", "string"] }, + "Business Price": { "type": ["null", "string"] }, + "Quantity Price Type": { "type": ["null", "string"] }, + "Quantity Lower Bound 1": { "type": ["null", "string"] }, + "Quantity Price 1": { "type": ["null", "string"] }, + "Quantity Lower Bound 2": { "type": ["null", "string"] }, + "Quantity Price 2": { "type": ["null", "string"] }, + "Quantity Lower Bound 3": { "type": ["null", "string"] }, + "Quantity Price 3": { "type": ["null", "string"] }, + "Quantity Lower Bound 4": { "type": ["null", "string"] }, + "Quantity Price 4": { "type": ["null", "string"] }, + "Quantity Lower Bound 5": { "type": ["null", "string"] }, + "Quantity Price 5": { "type": ["null", "string"] }, + "merchant-shipping-group": { "type": ["null", "string"] }, + "Progressive Price Type": { "type": ["null", "string"] }, + "Progressive Lower Bound 1": { "type": ["null", "string"] }, + "Progressive Price 1": { "type": ["null", "string"] }, + "Progressive Lower Bound 2": { "type": ["null", "string"] }, + "Progressive Price 2": { "type": ["null", "string"] }, + "Progressive Lower Bound 3": { "type": ["null", "string"] }, + "Progressive Price 3": { "type": ["null", "string"] } + } + }, + "supported_sync_modes": ["full_refresh"] + }, + "sync_mode": "full_refresh", + "destination_sync_mode": "overwrite" + } + ] +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_merchant_listings_data_back_compat.json b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_merchant_listings_data_back_compat.json new file mode 100644 index 0000000000000..cc2501e6e3486 --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_merchant_listings_data_back_compat.json @@ -0,0 +1,66 @@ +{ + "streams": [ + { + "stream": { + "name": "GET_MERCHANT_LISTINGS_DATA_BACK_COMPAT", + "json_schema": { + "title": "Open Listings Report", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "item-name": { "type": ["null", "string"] }, + "item-description": { "type": ["null", "string"] }, + "listing-id": { "type": ["null", "string"] }, + "seller-sku": { "type": ["null", "string"] }, + "price": { "type": ["null", "string"] }, + "quantity": { "type": ["null", "string"] }, + "open-date": { "type": ["null", "string"] }, + "image-url": { "type": ["null", "string"] }, + "item-is-marketplace": { "type": ["null", "string"] }, + "product-id-type": { "type": ["null", "string"] }, + "zshop-shipping-fee": { "type": ["null", "string"] }, + "item-note": { "type": ["null", "string"] }, + "item-condition": { "type": ["null", "string"] }, + "zshop-category1": { "type": ["null", "string"] }, + "zshop-browse-path": { "type": ["null", "string"] }, + "zshop-storefront-feature": { "type": ["null", "string"] }, + "asin1": { "type": ["null", "string"] }, + "asin2": { "type": ["null", "string"] }, + "asin3": { "type": ["null", "string"] }, + "will-ship-internationally": { "type": ["null", "string"] }, + "expedited-shipping": { "type": ["null", "string"] }, + "zshop-boldface": { "type": ["null", "string"] }, + "product-id": { "type": ["null", "string"] }, + "bid-for-featured-placement": { "type": ["null", "string"] }, + "add-delete": { "type": ["null", "string"] }, + "pending-quantity": { "type": ["null", "string"] }, + "Business Price": { "type": ["null", "string"] }, + "Quantity Price Type": { "type": ["null", "string"] }, + "Quantity Lower Bound 1": { "type": ["null", "string"] }, + "Quantity Price 1": { "type": ["null", "string"] }, + "Quantity Lower Bound 2": { "type": ["null", "string"] }, + "Quantity Price 2": { "type": ["null", "string"] }, + "Quantity Lower Bound 3": { "type": ["null", "string"] }, + "Quantity Price 3": { "type": ["null", "string"] }, + "Quantity Lower Bound 4": { "type": ["null", "string"] }, + "Quantity Price 4": { "type": ["null", "string"] }, + "Quantity Lower Bound 5": { "type": ["null", "string"] }, + "Quantity Price 5": { "type": ["null", "string"] }, + "merchant-shipping-group": { "type": ["null", "string"] }, + "Progressive Price Type": { "type": ["null", "string"] }, + "Progressive Lower Bound 1": { "type": ["null", "string"] }, + "Progressive Price 1": { "type": ["null", "string"] }, + "Progressive Lower Bound 2": { "type": ["null", "string"] }, + "Progressive Price 2": { "type": ["null", "string"] }, + "Progressive Lower Bound 3": { "type": ["null", "string"] }, + "Progressive Price 3": { "type": ["null", "string"] } + } + }, + "supported_sync_modes": ["full_refresh"] + }, + "sync_mode": "full_refresh", + "destination_sync_mode": "overwrite" + } + ] +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_merchant_listings_inactive_data.json b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_merchant_listings_inactive_data.json new file mode 100644 index 0000000000000..4b6d2285408bd --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_merchant_listings_inactive_data.json @@ -0,0 +1,48 @@ +{ + "streams": [ + { + "stream": { + "name": "GET_MERCHANT_LISTINGS_INACTIVE_DATA", + "json_schema": { + "title": "Inactive Listings Report", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "item-name": { "type": ["null", "string"] }, + "item-description": { "type": ["null", "string"] }, + "listing-id": { "type": ["null", "string"] }, + "seller-sku": { "type": ["null", "string"] }, + "price": { "type": ["null", "string"] }, + "quantity": { "type": ["null", "string"] }, + "open-date": { "type": ["null", "string"] }, + "image-url": { "type": ["null", "string"] }, + "item-is-marketplace": { "type": ["null", "string"] }, + "product-id-type": { "type": ["null", "string"] }, + "zshop-shipping-fee": { "type": ["null", "string"] }, + "item-note": { "type": ["null", "string"] }, + "item-condition": { "type": ["null", "string"] }, + "zshop-category1": { "type": ["null", "string"] }, + "zshop-browse-path": { "type": ["null", "string"] }, + "zshop-storefront-feature": { "type": ["null", "string"] }, + "asin1": { "type": ["null", "string"] }, + "asin2": { "type": ["null", "string"] }, + "asin3": { "type": ["null", "string"] }, + "will-ship-internationally": { "type": ["null", "string"] }, + "expedited-shipping": { "type": ["null", "string"] }, + "zshop-boldface": { "type": ["null", "string"] }, + "product-id": { "type": ["null", "string"] }, + "bid-for-featured-placement": { "type": ["null", "string"] }, + "add-delete": { "type": ["null", "string"] }, + "pending-quantity": { "type": ["null", "string"] }, + "fulfillment-channel": { "type": ["null", "string"] }, + "merchant-shipping-group": { "type": ["null", "string"] } + } + }, + "supported_sync_modes": ["full_refresh"] + }, + "sync_mode": "full_refresh", + "destination_sync_mode": "overwrite" + } + ] +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_merchants_listings_fyp_report.json b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_merchants_listings_fyp_report.json new file mode 100644 index 0000000000000..499bb0acbe4f9 --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_merchants_listings_fyp_report.json @@ -0,0 +1,28 @@ +{ + "streams": [ + { + "stream": { + "name": "GET_MERCHANTS_LISTINGS_FYP_REPORT", + "json_schema": { + "title": "Suppressed Listings Report", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "Status": { "type": ["null", "string"] }, + "Reason": { "type": ["null", "string"] }, + "SKU": { "type": ["null", "string"] }, + "ASIN": { "type": ["null", "string"] }, + "Product name": { "type": ["null", "string"] }, + "Condition": { "type": ["null", "string"] }, + "Status Change Date": { "type": ["null", "string"] }, + "Issue Description": { "type": ["null", "string"] } + } + }, + "supported_sync_modes": ["full_refresh"] + }, + "sync_mode": "full_refresh", + "destination_sync_mode": "overwrite" + } + ] +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_stranded_inventory_ui_data.json b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_stranded_inventory_ui_data.json new file mode 100644 index 0000000000000..30862e161d20a --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_stranded_inventory_ui_data.json @@ -0,0 +1,38 @@ +{ + "streams": [ + { + "stream": { + "name": "GET_STRANDED_INVENTORY_UI_DATA", + "json_schema": { + "title": "FBA Stranded Inventory Report", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "primary-action": { "type": ["null", "string"] }, + "date-stranded": { "type": ["null", "string"] }, + "Date-to-take-auto-removal": { "type": ["null", "string"] }, + "status-primary": { "type": ["null", "string"] }, + "status-secondary": { "type": ["null", "string"] }, + "error-message": { "type": ["null", "string"] }, + "stranded-reason": { "type": ["null", "string"] }, + "asin": { "type": ["null", "string"] }, + "sku": { "type": ["null", "string"] }, + "fnsku": { "type": ["null", "string"] }, + "product-name": { "type": ["null", "string"] }, + "condition": { "type": ["null", "string"] }, + "fulfilled-by": { "type": ["null", "string"] }, + "fulfillable-qty": { "type": ["null", "string"] }, + "your-price": { "type": ["null", "string"] }, + "unfulfillable-qty": { "type": ["null", "string"] }, + "reserved-quantity": { "type": ["null", "string"] }, + "inbound-shipped-qty": { "type": ["null", "string"] } + } + }, + "supported_sync_modes": ["full_refresh"] + }, + "sync_mode": "full_refresh", + "destination_sync_mode": "overwrite" + } + ] +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_xml_all_orders_data_by_order_date_general.json b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_xml_all_orders_data_by_order_date_general.json new file mode 100644 index 0000000000000..b4c29300ab4ec --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/configured_catalog_get_xml_all_orders_data_by_order_date_general.json @@ -0,0 +1,74 @@ +{ + "streams": [ + { + "stream": { + "name": "GET_XML_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL", + "json_schema": { + "title": "XML Orders By Order Date Report", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "LastUpdatedDate": { "type": ["null", "string"] }, + "SalesChannel": { "type": ["null", "string"] }, + "OrderStatus": { "type": ["null", "string"] }, + "AmazonOrderID": { "type": ["null", "string"] }, + "PurchaseDate": { "type": ["null", "string"] }, + "OrderItem": { + "type": ["array"], + "items": { "type": ["null", "object"] }, + "properties": { + "ItemStatus": { "type": ["null", "string"] }, + "ProductName": { "type": ["null", "string"] }, + "ItemPrice": { + "type": ["null", "object"], + "properties": { + "Component": { + "type": ["array"], + "items": { "type": ["null", "object"] }, + "properties": { + "Type": { "type": ["null", "string"] }, + "Amount": { + "type": ["null", "object"], + "properties": { + "currency": { "type": ["null", "string"] }, + "value": { "type": ["null", "string"] } + } + } + } + } + } + }, + "ASIN": { "type": ["null", "string"] }, + "Quantity": { "type": ["null", "string"] }, + "AmazonOrderItemCode": { "type": ["null", "string"] }, + "SKU": { "type": ["null", "string"] } + } + }, + "FulfillmentData": { + "type": ["null", "object"], + "properties": { + "Address": { + "type": ["null", "object"], + "properties": { + "State": { "type": ["null", "string"] }, + "PostalCode": { "type": ["null", "string"] }, + "Country": { "type": ["null", "string"] }, + "City": { "type": ["null", "string"] } + } + }, + "ShipServiceLevel": { "type": ["null", "string"] }, + "FulfillmentChannel": { "type": ["null", "string"] } + } + }, + "IsBusinessOrder": { "type": ["null", "string"] }, + "MerchantOrderID": { "type": ["null", "string"] } + } + }, + "supported_sync_modes": ["full_refresh"] + }, + "sync_mode": "full_refresh", + "destination_sync_mode": "overwrite" + } + ] +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/sample_state.json b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/sample_state.json index ede2a81ac078a..bebd0fa00a490 100644 --- a/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/sample_state.json +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/integration_tests/sample_state.json @@ -37,5 +37,71 @@ }, "GET_XML_BROWSE_TREE_DATA": { "createdTime": "2021-07-01T00:00:00Z" + }, + "GET_FBA_ESTIMATED_FBA_FEES_TXT_DATA": { + "createdTime": "2021-07-01T00:00:00Z" + }, + "GET_FBA_FULFILLMENT_CURRENT_INVENTORY_DATA": { + "createdTime": "2021-07-01T00:00:00Z" + }, + "GET_FBA_FULFILLMENT_CUSTOMER_SHIPMENT_PROMOTION_DATA": { + "createdTime": "2021-07-01T00:00:00Z" + }, + "GET_FBA_FULFILLMENT_INVENTORY_ADJUSTMENTS_DATA": { + "createdTime": "2021-07-01T00:00:00Z" + }, + "GET_FBA_FULFILLMENT_INVENTORY_RECEIPTS_DATA": { + "createdTime": "2021-07-01T00:00:00Z" + }, + "GET_FBA_FULFILLMENT_INVENTORY_SUMMARY_DATA": { + "createdTime": "2021-07-01T00:00:00Z" + }, + "GET_FBA_FULFILLMENT_MONTHLY_INVENTORY_DATA": { + "createdTime": "2021-07-01T00:00:00Z" + }, + "GET_FBA_MYI_UNSUPPRESSED_INVENTORY_DATA": { + "createdTime": "2021-07-01T00:00:00Z" + }, + "GET_FBA_SNS_FORECAST_DATA": { + "createdTime": "2021-07-01T00:00:00Z" + }, + "GET_FBA_SNS_PERFORMANCE_DATA": { + "createdTime": "2021-07-01T00:00:00Z" + }, + "GET_FLAT_FILE_ARCHIVED_ORDERS_DATA_BY_ORDER_DATE": { + "createdTime": "2021-07-01T00:00:00Z" + }, + "GET_FLAT_FILE_RETURNS_DATA_BY_RETURN_DATE": { + "createdTime": "2021-07-01T00:00:00Z" + }, + "GET_MERCHANT_CANCELLED_LISTINGS_DATA": { + "createdTime": "2021-07-01T00:00:00Z" + }, + "GET_MERCHANT_LISTINGS_DATA": { + "createdTime": "2021-07-01T00:00:00Z" + }, + "GET_MERCHANT_LISTINGS_DATA_BACK_COMPAT": { + "createdTime": "2021-07-01T00:00:00Z" + }, + "GET_MERCHANTS_LISTINGS_FYP_REPORT": { + "createdTime": "2021-07-01T00:00:00Z" + }, + "GET_MERCHANT_LISTINGS_INACTIVE_DATA": { + "createdTime": "2021-07-01T00:00:00Z" + }, + "GET_STRANDED_INVENTORY_UI_DATA": { + "createdTime": "2021-07-01T00:00:00Z" + }, + "GET_XML_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL": { + "createdTime": "2021-07-01T00:00:00Z" + }, + "GET_LEDGER_DETAIL_VIEW_DATA": { + "createdTime": "2021-07-01T00:00:00Z" + }, + "GET_FBA_INVENTORY_PLANNING_DATA": { + "createdTime": "2021-07-01T00:00:00Z" + }, + "GET_LEDGER_SUMMARY_VIEW_DATA": { + "createdTime": "2021-07-01T00:00:00Z" } } diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_AMAZON_FULFILLED_SHIPMENTS_DATA_GENERAL.json b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_AMAZON_FULFILLED_SHIPMENTS_DATA_GENERAL.json index 214ac2b7c0200..d2e8b0e3c0363 100644 --- a/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_AMAZON_FULFILLED_SHIPMENTS_DATA_GENERAL.json +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_AMAZON_FULFILLED_SHIPMENTS_DATA_GENERAL.json @@ -4,149 +4,53 @@ "type": "object", "$schema": "http://json-schema.org/draft-07/schema#", "properties": { - "amazon-order-id": { - "type": ["null", "string"] - }, - "merchant-order-id": { - "type": ["null", "string"] - }, - "shipment-id": { - "type": ["null", "string"] - }, - "shipment-item-id": { - "type": ["null", "string"] - }, - "amazon-order-item-id": { - "type": ["null", "string"] - }, - "merchant-order-item-id": { - "type": ["null", "string"] - }, - "purchase-date": { - "type": ["null", "string"] - }, - "payments-date": { - "type": ["null", "string"] - }, - "shipment-date": { - "type": ["null", "string"] - }, - "reporting-date": { - "type": ["null", "string"] - }, - "buyer-email": { - "type": ["null", "string"] - }, - "buyer-name": { - "type": ["null", "string"] - }, - "buyer-phone-number": { - "type": ["null", "string"] - }, - "sku": { - "type": ["null", "string"] - }, - "product-name": { - "type": ["null", "string"] - }, - "quantity-shipped": { - "type": ["null", "string"] - }, - "currency": { - "type": ["null", "string"] - }, - "item-price": { - "type": ["null", "string"] - }, - "item-tax": { - "type": ["null", "string"] - }, - "shipping-price": { - "type": ["null", "string"] - }, - "shipping-tax": { - "type": ["null", "string"] - }, - "gift-wrap-price": { - "type": ["null", "string"] - }, - "gift-wrap-tax": { - "type": ["null", "string"] - }, - "ship-service-level": { - "type": ["null", "string"] - }, - "recipient-name": { - "type": ["null", "string"] - }, - "ship-address-1": { - "type": ["null", "string"] - }, - "ship-address-2": { - "type": ["null", "string"] - }, - "ship-address-3": { - "type": ["null", "string"] - }, - "ship-city": { - "type": ["null", "string"] - }, - "ship-state": { - "type": ["null", "string"] - }, - "ship-postal-code": { - "type": ["null", "string"] - }, - "ship-country": { - "type": ["null", "string"] - }, - "ship-phone-number": { - "type": ["null", "string"] - }, - "bill-address-1": { - "type": ["null", "string"] - }, - "bill-address-2": { - "type": ["null", "string"] - }, - "bill-address-3": { - "type": ["null", "string"] - }, - "bill-city": { - "type": ["null", "string"] - }, - "bill-state": { - "type": ["null", "string"] - }, - "bill-postal-code": { - "type": ["null", "string"] - }, - "bill-country": { - "type": ["null", "string"] - }, - "item-promotion-discount": { - "type": ["null", "string"] - }, - "ship-promotion-discount": { - "type": ["null", "string"] - }, - "carrier": { - "type": ["null", "string"] - }, - "tracking-number": { - "type": ["null", "string"] - }, - "estimated-arrival-date": { - "type": ["null", "string"] - }, - "fulfillment-center-id": { - "type": ["null", "string"] - }, - "fulfillment-channel": { - "type": ["null", "string"] - }, - "sales-channel": { - "type": ["null", "string"] - } + "amazon-order-id": { "type": ["null", "string"] }, + "merchant-order-id": { "type": ["null", "string"] }, + "shipment-id": { "type": ["null", "string"] }, + "shipment-item-id": { "type": ["null", "string"] }, + "amazon-order-item-id": { "type": ["null", "string"] }, + "merchant-order-item-id": { "type": ["null", "string"] }, + "purchase-date": { "type": ["null", "string"] }, + "payments-date": { "type": ["null", "string"] }, + "shipment-date": { "type": ["null", "string"] }, + "reporting-date": { "type": ["null", "string"] }, + "buyer-email": { "type": ["null", "string"] }, + "buyer-name": { "type": ["null", "string"] }, + "buyer-phone-number": { "type": ["null", "string"] }, + "sku": { "type": ["null", "string"] }, + "product-name": { "type": ["null", "string"] }, + "quantity-shipped": { "type": ["null", "string"] }, + "currency": { "type": ["null", "string"] }, + "item-price": { "type": ["null", "string"] }, + "item-tax": { "type": ["null", "string"] }, + "shipping-price": { "type": ["null", "string"] }, + "shipping-tax": { "type": ["null", "string"] }, + "gift-wrap-price": { "type": ["null", "string"] }, + "gift-wrap-tax": { "type": ["null", "string"] }, + "ship-service-level": { "type": ["null", "string"] }, + "recipient-name": { "type": ["null", "string"] }, + "ship-address-1": { "type": ["null", "string"] }, + "ship-address-2": { "type": ["null", "string"] }, + "ship-address-3": { "type": ["null", "string"] }, + "ship-city": { "type": ["null", "string"] }, + "ship-state": { "type": ["null", "string"] }, + "ship-postal-code": { "type": ["null", "string"] }, + "ship-country": { "type": ["null", "string"] }, + "ship-phone-number": { "type": ["null", "string"] }, + "bill-address-1": { "type": ["null", "string"] }, + "bill-address-2": { "type": ["null", "string"] }, + "bill-address-3": { "type": ["null", "string"] }, + "bill-city": { "type": ["null", "string"] }, + "bill-state": { "type": ["null", "string"] }, + "bill-postal-code": { "type": ["null", "string"] }, + "bill-country": { "type": ["null", "string"] }, + "item-promotion-discount": { "type": ["null", "string"] }, + "ship-promotion-discount": { "type": ["null", "string"] }, + "carrier": { "type": ["null", "string"] }, + "tracking-number": { "type": ["null", "string"] }, + "estimated-arrival-date": { "type": ["null", "string"] }, + "fulfillment-center-id": { "type": ["null", "string"] }, + "fulfillment-channel": { "type": ["null", "string"] }, + "sales-channel": { "type": ["null", "string"] } } } diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FBA_ESTIMATED_FBA_FEES_TXT_DATA.json b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FBA_ESTIMATED_FBA_FEES_TXT_DATA.json new file mode 100644 index 0000000000000..af433395dc9fa --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FBA_ESTIMATED_FBA_FEES_TXT_DATA.json @@ -0,0 +1,48 @@ +{ + "title": "FBA Fee Preview Report", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "sku": { "type": ["null", "string"] }, + "fnsku": { "type": ["null", "string"] }, + "asin": { "type": ["null", "string"] }, + "product-name": { "type": ["null", "string"] }, + "product-group": { "type": ["null", "string"] }, + "brand": { "type": ["null", "string"] }, + "fulfilled-by": { "type": ["null", "string"] }, + "your-price": { "type": ["null", "string"] }, + "sales-price": { "type": ["null", "string"] }, + "longest-side": { "type": ["null", "string"] }, + "median-side": { "type": ["null", "string"] }, + "shortest-side": { "type": ["null", "string"] }, + "length-and-girth": { "type": ["null", "string"] }, + "unit-of-dimension": { "type": ["null", "string"] }, + "item-package-weight": { "type": ["null", "string"] }, + "unit-of-weight": { "type": ["null", "string"] }, + "product-size-tier": { "type": ["null", "string"] }, + "currency": { "type": ["null", "string"] }, + "estimated-fee-total": { "type": ["null", "string"] }, + "estimated-referral-fee-per-unit": { "type": ["null", "string"] }, + "estimated-variable-closing-fee": { "type": ["null", "string"] }, + "estimated-order-handling-fee-per-order": { "type": ["null", "string"] }, + "estimated-pick-pack-fee-per-unit": { "type": ["null", "string"] }, + "estimated-weight-handling-fee-per-unit": { "type": ["null", "string"] }, + "expected-fulfillment-fee-per-unit": { "type": ["null", "string"] }, + "estimated-future-fee (Current Selling on Amazon + Future Fulfillment fees)": { + "type": ["null", "string"] + }, + "estimated-future-order-handling-fee-per-order": { + "type": ["null", "string"] + }, + "estimated-future-pick-pack-fee-per-unit": { "type": ["null", "string"] }, + "estimated-future-weight-handling-fee-per-unit": { + "type": ["null", "string"] + }, + "expected-future-fulfillment-fee-per-unit": { "type": ["null", "string"] }, + "estimated-future-referral-fee-per-unit": { "type": ["null", "string"] }, + "current-fee-category": { "type": ["null", "string"] }, + "future-fee-category": { "type": ["null", "string"] }, + "future-fee-category-effective-date": { "type": ["null", "string"] } + } +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FBA_FULFILLMENT_CURRENT_INVENTORY_DATA.json b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FBA_FULFILLMENT_CURRENT_INVENTORY_DATA.json new file mode 100644 index 0000000000000..401cbf4843809 --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FBA_FULFILLMENT_CURRENT_INVENTORY_DATA.json @@ -0,0 +1,16 @@ +{ + "title": "FBA Daily Inventory History Report", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "snapshot-date": { "type": ["null", "string"] }, + "fnsku": { "type": ["null", "string"] }, + "sku": { "type": ["null", "string"] }, + "product-name": { "type": ["null", "string"] }, + "quantity": { "type": ["null", "string"] }, + "fulfillment-center-id": { "type": ["null", "string"] }, + "detailed-disposition": { "type": ["null", "string"] }, + "country": { "type": ["null", "string"] } + } +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FBA_FULFILLMENT_CUSTOMER_SHIPMENT_PROMOTION_DATA.json b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FBA_FULFILLMENT_CUSTOMER_SHIPMENT_PROMOTION_DATA.json new file mode 100644 index 0000000000000..610e71ce9ac69 --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FBA_FULFILLMENT_CUSTOMER_SHIPMENT_PROMOTION_DATA.json @@ -0,0 +1,17 @@ +{ + "title": "FBA Promotions Report", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "shipment-date": { "type": ["null", "string"] }, + "currency": { "type": ["null", "string"] }, + "item-promotion-discount": { "type": ["null", "string"] }, + "item-promotion-id": { "type": ["null", "string"] }, + "description": { "type": ["null", "string"] }, + "promotion-rule-value": { "type": ["null", "string"] }, + "amazon-order-id": { "type": ["null", "string"] }, + "shipment-id": { "type": ["null", "string"] }, + "shipment-item-id": { "type": ["null", "string"] } + } +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FBA_FULFILLMENT_INVENTORY_ADJUSTMENTS_DATA.json b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FBA_FULFILLMENT_INVENTORY_ADJUSTMENTS_DATA.json new file mode 100644 index 0000000000000..916f932cc057a --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FBA_FULFILLMENT_INVENTORY_ADJUSTMENTS_DATA.json @@ -0,0 +1,19 @@ +{ + "title": "FBA Inventory Adjustments Report", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "adjusted-date": { "type": ["null", "string"] }, + "transaction-item-id": { "type": ["null", "string"] }, + "fnsku": { "type": ["null", "string"] }, + "sku": { "type": ["null", "string"] }, + "product-name": { "type": ["null", "string"] }, + "fulfillment-center-id": { "type": ["null", "string"] }, + "quantity": { "type": ["null", "string"] }, + "reason": { "type": ["null", "string"] }, + "disposition": { "type": ["null", "string"] }, + "reconciled": { "type": ["null", "string"] }, + "unreconciled": { "type": ["null", "string"] } + } +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FBA_FULFILLMENT_INVENTORY_RECEIPTS_DATA.json b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FBA_FULFILLMENT_INVENTORY_RECEIPTS_DATA.json new file mode 100644 index 0000000000000..3d23369d51e12 --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FBA_FULFILLMENT_INVENTORY_RECEIPTS_DATA.json @@ -0,0 +1,15 @@ +{ + "title": "FBA Received Inventory Report", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "received-date": { "type": ["null", "string"] }, + "fnsku": { "type": ["null", "string"] }, + "sku": { "type": ["null", "string"] }, + "product-name": { "type": ["null", "string"] }, + "quantity": { "type": ["null", "string"] }, + "fba-shipment-id": { "type": ["null", "string"] }, + "fulfillment-center-id": { "type": ["null", "string"] } + } +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FBA_FULFILLMENT_INVENTORY_SUMMARY_DATA.json b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FBA_FULFILLMENT_INVENTORY_SUMMARY_DATA.json new file mode 100644 index 0000000000000..1ddf4fceca59e --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FBA_FULFILLMENT_INVENTORY_SUMMARY_DATA.json @@ -0,0 +1,16 @@ +{ + "title": "FBA Inventory Event Detail Report", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "snapshot-date": { "type": ["null", "string"] }, + "transaction-type": { "type": ["null", "string"] }, + "fnsku": { "type": ["null", "string"] }, + "sku": { "type": ["null", "string"] }, + "product-name": { "type": ["null", "string"] }, + "fulfillment-center-id": { "type": ["null", "string"] }, + "quantity": { "type": ["null", "string"] }, + "disposition": { "type": ["null", "string"] } + } +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FBA_FULFILLMENT_MONTHLY_INVENTORY_DATA.json b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FBA_FULFILLMENT_MONTHLY_INVENTORY_DATA.json new file mode 100644 index 0000000000000..796985c5210ee --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FBA_FULFILLMENT_MONTHLY_INVENTORY_DATA.json @@ -0,0 +1,17 @@ +{ + "title": "FBA Monthly Inventory History Report", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "month": { "type": ["null", "string"] }, + "fnsku": { "type": ["null", "string"] }, + "sku": { "type": ["null", "string"] }, + "product-name": { "type": ["null", "string"] }, + "average-quantity": { "type": ["null", "string"] }, + "end-quantity": { "type": ["null", "string"] }, + "fulfillment-center-id": { "type": ["null", "string"] }, + "detailed-disposition": { "type": ["null", "string"] }, + "country": { "type": ["null", "string"] } + } +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FBA_INVENTORY_PLANNING_DATA.json b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FBA_INVENTORY_PLANNING_DATA.json new file mode 100644 index 0000000000000..30ead73eab606 --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FBA_INVENTORY_PLANNING_DATA.json @@ -0,0 +1,73 @@ +{ + "title": "FBA Manage Inventory Health Report", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "snapshot-date": { "type": ["null", "string"] }, + "sku": { "type": ["null", "string"] }, + "fnsku": { "type": ["null", "string"] }, + "asin": { "type": ["null", "string"] }, + "product-name": { "type": ["null", "string"] }, + "condition": { "type": ["null", "string"] }, + "available": { "type": ["null", "string"] }, + "pending-removal-quantity": { "type": ["null", "string"] }, + "inv-age-0-to-90-days": { "type": ["null", "string"] }, + "inv-age-91-to-180-days": { "type": ["null", "string"] }, + "inv-age-181-to-270-days": { "type": ["null", "string"] }, + "inv-age-271-to-365-days": { "type": ["null", "string"] }, + "inv-age-365-plus-days": { "type": ["null", "string"] }, + "currency": { "type": ["null", "string"] }, + "qty-to-be-charged-ltsf-9-mo": { "type": ["null", "string"] }, + "projected-ltsf-9-mo": { "type": ["null", "string"] }, + "qty-to-be-charged-ltsf-12-mo": { "type": ["null", "string"] }, + "estimated-ltsf-next-charge": { "type": ["null", "string"] }, + "units-shipped-t7": { "type": ["null", "string"] }, + "units-shipped-t30": { "type": ["null", "string"] }, + "units-shipped-t60": { "type": ["null", "string"] }, + "units-shipped-t90": { "type": ["null", "string"] }, + "alert": { "type": ["null", "string"] }, + "your-price": { "type": ["null", "string"] }, + "sales-price": { "type": ["null", "string"] }, + "lowest-price-new-plus-shipping": { "type": ["null", "string"] }, + "lowest-price-used": { "type": ["null", "string"] }, + "recommended-action": { "type": ["null", "string"] }, + "healthy-inventory-level": { "type": ["null", "string"] }, + "recommended-sales-price": { "type": ["null", "string"] }, + "recommended-sale-duration-days": { "type": ["null", "string"] }, + "recommended-removal-quantity": { "type": ["null", "string"] }, + "estimated-cost-savings-of-recommended-actions": { + "type": ["null", "string"] + }, + "sell-through": { "type": ["null", "string"] }, + "item-volume": { "type": ["null", "string"] }, + "volume-unit-measurement": { "type": ["null", "string"] }, + "storage-type": { "type": ["null", "string"] }, + "storage-volume": { "type": ["null", "string"] }, + "marketplace": { "type": ["null", "string"] }, + "product-group": { "type": ["null", "string"] }, + "sales-rank": { "type": ["null", "string"] }, + "days-of-supply": { "type": ["null", "string"] }, + "estimated-excess-quantity": { "type": ["null", "string"] }, + "weeks-of-cover-t30": { "type": ["null", "string"] }, + "weeks-of-cover-t90": { "type": ["null", "string"] }, + "featuredoffer-price": { "type": ["null", "string"] }, + "sales-shipped-last-7-days": { "type": ["null", "string"] }, + "sales-shipped-last-30-days": { "type": ["null", "string"] }, + "sales-shipped-last-60-days": { "type": ["null", "string"] }, + "sales-shipped-last-90-days": { "type": ["null", "string"] }, + "inv-age-0-to-30-days": { "type": ["null", "string"] }, + "inv-age-31-to-60-days": { "type": ["null", "string"] }, + "inv-age-61-to-90-days": { "type": ["null", "string"] }, + "inv-age-181-to-330-days": { "type": ["null", "string"] }, + "inv-age-331-to-365-days": { "type": ["null", "string"] }, + "estimated-storage-cost-next-month": { "type": ["null", "string"] }, + "inbound-quantity": { "type": ["null", "string"] }, + "inbound-working": { "type": ["null", "string"] }, + "inbound-shipped": { "type": ["null", "string"] }, + "inbound-received": { "type": ["null", "string"] }, + "no-sale-last-6-months": { "type": ["null", "string"] }, + "reserved-quantity": { "type": ["null", "string"] }, + "unfulfillable-quantity": { "type": ["null", "string"] } + } +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FBA_MYI_UNSUPPRESSED_INVENTORY_DATA.json b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FBA_MYI_UNSUPPRESSED_INVENTORY_DATA.json new file mode 100644 index 0000000000000..77d1c2d6c9f09 --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FBA_MYI_UNSUPPRESSED_INVENTORY_DATA.json @@ -0,0 +1,29 @@ +{ + "title": "FBA Manage Inventory", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "sku": { "type": ["null", "string"] }, + "fnsku": { "type": ["null", "string"] }, + "asin": { "type": ["null", "string"] }, + "product-name": { "type": ["null", "string"] }, + "condition": { "type": ["null", "string"] }, + "your-price": { "type": ["null", "string"] }, + "mfn-listing-exists": { "type": ["null", "string"] }, + "mfn-fulfillable-quantity": { "type": ["null", "string"] }, + "afn-listing-exists": { "type": ["null", "string"] }, + "afn-warehouse-quantity": { "type": ["null", "string"] }, + "afn-fulfillable-quantity": { "type": ["null", "string"] }, + "afn-unsellable-quantity": { "type": ["null", "string"] }, + "afn-reserved-quantity": { "type": ["null", "string"] }, + "afn-total-quantity": { "type": ["null", "string"] }, + "per-unit-volume": { "type": ["null", "string"] }, + "afn-inbound-working-quantity": { "type": ["null", "string"] }, + "afn-inbound-shipped-quantity": { "type": ["null", "string"] }, + "afn-inbound-receiving-quantity": { "type": ["null", "string"] }, + "afn-researching-quantity": { "type": ["null", "string"] }, + "afn-reserved-future-supply": { "type": ["null", "string"] }, + "afn-future-supply-buyable": { "type": ["null", "string"] } + } +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FBA_SNS_FORECAST_DATA.json b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FBA_SNS_FORECAST_DATA.json new file mode 100644 index 0000000000000..d47ec26a178e8 --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FBA_SNS_FORECAST_DATA.json @@ -0,0 +1,26 @@ +{ + "title": "Subscribe and Save Forecast Report", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "offer-state": { "type": ["null", "string"] }, + "snapshot-date": { "type": ["null", "string"] }, + "sku": { "type": ["null", "string"] }, + "fnsku": { "type": ["null", "string"] }, + "asin": { "type": ["null", "string"] }, + "estimated-avg-sns-discount-next-8-weeks": { "type": ["null", "string"] }, + "product-name": { "type": ["null", "string"] }, + "country": { "type": ["null", "string"] }, + "active-subscriptions": { "type": ["null", "string"] }, + "week-1-start-date": { "type": ["null", "string"] }, + "scheduled-sns-units-week-1": { "type": ["null", "string"] }, + "scheduled-sns-units-week-2": { "type": ["null", "string"] }, + "scheduled-sns-units-week-3": { "type": ["null", "string"] }, + "scheduled-sns-units-week-4": { "type": ["null", "string"] }, + "scheduled-sns-units-week-5": { "type": ["null", "string"] }, + "scheduled-sns-units-week-6": { "type": ["null", "string"] }, + "scheduled-sns-units-week-7": { "type": ["null", "string"] }, + "scheduled-sns-units-week-8": { "type": ["null", "string"] } + } +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FBA_SNS_PERFORMANCE_DATA.json b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FBA_SNS_PERFORMANCE_DATA.json new file mode 100644 index 0000000000000..16e1010a9387a --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FBA_SNS_PERFORMANCE_DATA.json @@ -0,0 +1,32 @@ +{ + "title": "Subscribe and Save Performance Report", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "offer-state": { "type": ["null", "string"] }, + "snapshot-date": { "type": ["null", "string"] }, + "sku": { "type": ["null", "string"] }, + "fnsku": { "type": ["null", "string"] }, + "asin": { "type": ["null", "string"] }, + "product-name": { "type": ["null", "string"] }, + "country": { "type": ["null", "string"] }, + "week-1-start-date": { "type": ["null", "string"] }, + "sns-units-shipped-week-1": { "type": ["null", "string"] }, + "oos-rate-week-1": { "type": ["null", "string"] }, + "sns-sale-price-week-1": { "type": ["null", "string"] }, + "sns-discount-week-1": { "type": ["null", "string"] }, + "sns-units-shipped-week-2": { "type": ["null", "string"] }, + "oos-rate-week-2": { "type": ["null", "string"] }, + "sns-sale-price-week-2": { "type": ["null", "string"] }, + "sns-discount-week-2": { "type": ["null", "string"] }, + "sns-units-shipped-week-3": { "type": ["null", "string"] }, + "oos-rate-week-3": { "type": ["null", "string"] }, + "sns-sale-price-week-3": { "type": ["null", "string"] }, + "sns-discount-week-3": { "type": ["null", "string"] }, + "sns-units-shipped-week-4": { "type": ["null", "string"] }, + "oos-rate-week-4": { "type": ["null", "string"] }, + "sns-sale-price-week-4": { "type": ["null", "string"] }, + "sns-discount-week-4": { "type": ["null", "string"] } + } +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FLAT_FILE_ARCHIVED_ORDERS_DATA_BY_ORDER_DATE.json b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FLAT_FILE_ARCHIVED_ORDERS_DATA_BY_ORDER_DATE.json new file mode 100644 index 0000000000000..a2635187c16bd --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FLAT_FILE_ARCHIVED_ORDERS_DATA_BY_ORDER_DATE.json @@ -0,0 +1,39 @@ +{ + "title": "Flat File Archived Orders Report", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "amazon-order-id": { "type": ["null", "string"] }, + "merchant-order-id": { "type": ["null", "string"] }, + "purchase-date": { "type": ["null", "string"] }, + "last-updated-date": { "type": ["null", "string"] }, + "order-status": { "type": ["null", "string"] }, + "fulfillment-channel": { "type": ["null", "string"] }, + "sales-channel": { "type": ["null", "string"] }, + "order-channel": { "type": ["null", "string"] }, + "url": { "type": ["null", "string"] }, + "ship-service-level": { "type": ["null", "string"] }, + "product-name": { "type": ["null", "string"] }, + "sku": { "type": ["null", "string"] }, + "asin": { "type": ["null", "string"] }, + "item-status": { "type": ["null", "string"] }, + "quantity": { "type": ["null", "string"] }, + "currency": { "type": ["null", "string"] }, + "item-price": { "type": ["null", "string"] }, + "item-tax": { "type": ["null", "string"] }, + "shipping-price": { "type": ["null", "string"] }, + "shipping-tax": { "type": ["null", "string"] }, + "gift-wrap-price": { "type": ["null", "string"] }, + "gift-wrap-tax": { "type": ["null", "string"] }, + "item-promotion-discount": { "type": ["null", "string"] }, + "ship-promotion-discount": { "type": ["null", "string"] }, + "ship-country": { "type": ["null", "string"] }, + "ship-promotion-id": { "type": ["null", "string"] }, + "promotion-ids": { "type": ["null", "string"] }, + "is-business-order": { "type": ["null", "string"] }, + "purchase-order-number": { "type": ["null", "string"] }, + "price-designation": { "type": ["null", "string"] }, + "is-replacement-order": { "type": ["null", "string"] } + } +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FLAT_FILE_RETURNS_DATA_BY_RETURN_DATE.json b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FLAT_FILE_RETURNS_DATA_BY_RETURN_DATE.json new file mode 100644 index 0000000000000..f2db5fb0b0a9f --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_FLAT_FILE_RETURNS_DATA_BY_RETURN_DATE.json @@ -0,0 +1,40 @@ +{ + "title": "Flat File Returns Report by Return Date", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "Order ID": { "type": ["null", "string"] }, + "Order date": { "type": ["null", "string"] }, + "Return request date": { "type": ["null", "string"] }, + "Return request status": { "type": ["null", "string"] }, + "Amazon RMA ID": { "type": ["null", "string"] }, + "Merchant RMA ID": { "type": ["null", "string"] }, + "Label type": { "type": ["null", "string"] }, + "Label cost": { "type": ["null", "string"] }, + "Currency code": { "type": ["null", "string"] }, + "Return carrier": { "type": ["null", "string"] }, + "Tracking ID": { "type": ["null", "string"] }, + "Label to be paid by": { "type": ["null", "string"] }, + "A-to-Z Claim": { "type": ["null", "string"] }, + "Is prime": { "type": ["null", "string"] }, + "ASIN": { "type": ["null", "string"] }, + "Merchant SKU": { "type": ["null", "string"] }, + "Item Name": { "type": ["null", "string"] }, + "Return quantity": { "type": ["null", "string"] }, + "Return Reason": { "type": ["null", "string"] }, + "In policy": { "type": ["null", "string"] }, + "Return type": { "type": ["null", "string"] }, + "Resolution": { "type": ["null", "string"] }, + "Invoice number": { "type": ["null", "string"] }, + "Return delivery date": { "type": ["null", "string"] }, + "Order Amount": { "type": ["null", "string"] }, + "Order quantity": { "type": ["null", "string"] }, + "SafeT Action reason": { "type": ["null", "string"] }, + "SafeT claim id": { "type": ["null", "string"] }, + "SafeT claim state": { "type": ["null", "string"] }, + "SafeT claim creation time": { "type": ["null", "string"] }, + "SafeT claim reimbursement amount": { "type": ["null", "string"] }, + "Refunded Amount": { "type": ["null", "string"] } + } +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_LEDGER_DETAIL_VIEW_DATA.json b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_LEDGER_DETAIL_VIEW_DATA.json new file mode 100644 index 0000000000000..1c3509889cf00 --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_LEDGER_DETAIL_VIEW_DATA.json @@ -0,0 +1,22 @@ +{ + "title": "Inventory Ledger Report - Detailed View", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "Date": { "type": ["null", "string"], "format": "date" }, + "FNSKU": { "type": ["null", "string"] }, + "ASIN": { "type": ["null", "string"] }, + "MSKU": { "type": ["null", "string"] }, + "Title": { "type": ["null", "string"] }, + "Event Type": { "type": ["null", "string"] }, + "Reference ID": { "type": ["null", "string"] }, + "Quantity": { "type": ["null", "string"] }, + "Fulfillment Center": { "type": ["null", "string"] }, + "Disposition": { "type": ["null", "string"] }, + "Reason": { "type": ["null", "string"] }, + "Country": { "type": ["null", "string"] }, + "Reconciled Quantity": { "type": ["null", "string"] }, + "Unreconciled Quantity": { "type": ["null", "string"] } + } +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_LEDGER_SUMMARY_VIEW_DATA.json b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_LEDGER_SUMMARY_VIEW_DATA.json new file mode 100644 index 0000000000000..288c4928a8a10 --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_LEDGER_SUMMARY_VIEW_DATA.json @@ -0,0 +1,29 @@ +{ + "title": "Inventory Ledger Report - Summary View", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "Date": { "type": ["null", "string"] }, + "FNSKU": { "type": ["null", "string"] }, + "ASIN": { "type": ["null", "string"] }, + "MSKU": { "type": ["null", "string"] }, + "Title": { "type": ["null", "string"] }, + "Disposition": { "type": ["null", "string"] }, + "Starting Warehouse Balance": { "type": ["null", "string"] }, + "In Transit Between Warehouses": { "type": ["null", "string"] }, + "Receipts": { "type": ["null", "string"] }, + "Customer Shipments": { "type": ["null", "string"] }, + "Customer Returns": { "type": ["null", "string"] }, + "Vendor Returns": { "type": ["null", "string"] }, + "Warehouse Transfer In/Out": { "type": ["null", "string"] }, + "Found": { "type": ["null", "string"] }, + "Lost": { "type": ["null", "string"] }, + "Damaged": { "type": ["null", "string"] }, + "Disposed": { "type": ["null", "string"] }, + "Other Events": { "type": ["null", "string"] }, + "Ending Warehouse Balance": { "type": ["null", "string"] }, + "Unknown Events": { "type": ["null", "string"] }, + "Location": { "type": ["null", "string"] } + } +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_MERCHANTS_LISTINGS_FYP_REPORT.json b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_MERCHANTS_LISTINGS_FYP_REPORT.json new file mode 100644 index 0000000000000..f2f56e7d53b18 --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_MERCHANTS_LISTINGS_FYP_REPORT.json @@ -0,0 +1,16 @@ +{ + "title": "Suppressed Listings Report", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "Status": { "type": ["null", "string"] }, + "Reason": { "type": ["null", "string"] }, + "SKU": { "type": ["null", "string"] }, + "ASIN": { "type": ["null", "string"] }, + "Product name": { "type": ["null", "string"] }, + "Condition": { "type": ["null", "string"] }, + "Status Change Date": { "type": ["null", "string"] }, + "Issue Description": { "type": ["null", "string"] } + } +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_MERCHANT_CANCELLED_LISTINGS_DATA.json b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_MERCHANT_CANCELLED_LISTINGS_DATA.json new file mode 100644 index 0000000000000..35c5cd32d74e2 --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_MERCHANT_CANCELLED_LISTINGS_DATA.json @@ -0,0 +1,50 @@ +{ + "title": "Canceled Listings Report", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "item-name": { "type": ["null", "string"] }, + "item-description": { "type": ["null", "string"] }, + "seller-sku": { "type": ["null", "string"] }, + "price": { "type": ["null", "string"] }, + "quantity": { "type": ["null", "string"] }, + "image-url": { "type": ["null", "string"] }, + "item-is-marketplace": { "type": ["null", "string"] }, + "product-id-type": { "type": ["null", "string"] }, + "zshop-shipping-fee": { "type": ["null", "string"] }, + "item-note": { "type": ["null", "string"] }, + "item-condition": { "type": ["null", "string"] }, + "zshop-category1": { "type": ["null", "string"] }, + "zshop-browse-path": { "type": ["null", "string"] }, + "zshop-storefront-feature": { "type": ["null", "string"] }, + "asin1": { "type": ["null", "string"] }, + "asin2": { "type": ["null", "string"] }, + "asin3": { "type": ["null", "string"] }, + "will-ship-internationally": { "type": ["null", "string"] }, + "expedited-shipping": { "type": ["null", "string"] }, + "zshop-boldface": { "type": ["null", "string"] }, + "product-id": { "type": ["null", "string"] }, + "add-delete": { "type": ["null", "string"] }, + "Business Price": { "type": ["null", "string"] }, + "Quantity Price Type": { "type": ["null", "string"] }, + "Quantity Lower Bound 1": { "type": ["null", "string"] }, + "Quantity Price 1": { "type": ["null", "string"] }, + "Quantity Lower Bound 2": { "type": ["null", "string"] }, + "Quantity Price 2": { "type": ["null", "string"] }, + "Quantity Lower Bound 3": { "type": ["null", "string"] }, + "Quantity Price 3": { "type": ["null", "string"] }, + "Quantity Lower Bound 4": { "type": ["null", "string"] }, + "Quantity Price 4": { "type": ["null", "string"] }, + "Quantity Lower Bound 5": { "type": ["null", "string"] }, + "Quantity Price 5": { "type": ["null", "string"] }, + "merchant-shipping-group": { "type": ["null", "string"] }, + "Progressive Price Type": { "type": ["null", "string"] }, + "Progressive Lower Bound 1": { "type": ["null", "string"] }, + "Progressive Price 1": { "type": ["null", "string"] }, + "Progressive Lower Bound 2": { "type": ["null", "string"] }, + "Progressive Price 2": { "type": ["null", "string"] }, + "Progressive Lower Bound 3": { "type": ["null", "string"] }, + "Progressive Price 3": { "type": ["null", "string"] } + } +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_MERCHANT_LISTINGS_DATA.json b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_MERCHANT_LISTINGS_DATA.json new file mode 100644 index 0000000000000..f4c243481e5dd --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_MERCHANT_LISTINGS_DATA.json @@ -0,0 +1,55 @@ +{ + "title": "Active Listings Report", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "item-name": { "type": ["null", "string"] }, + "item-description": { "type": ["null", "string"] }, + "listing-id": { "type": ["null", "string"] }, + "seller-sku": { "type": ["null", "string"] }, + "price": { "type": ["null", "string"] }, + "quantity": { "type": ["null", "string"] }, + "open-date": { "type": ["null", "string"] }, + "image-url": { "type": ["null", "string"] }, + "item-is-marketplace": { "type": ["null", "string"] }, + "product-id-type": { "type": ["null", "string"] }, + "zshop-shipping-fee": { "type": ["null", "string"] }, + "item-note": { "type": ["null", "string"] }, + "item-condition": { "type": ["null", "string"] }, + "zshop-category1": { "type": ["null", "string"] }, + "zshop-browse-path": { "type": ["null", "string"] }, + "zshop-storefront-feature": { "type": ["null", "string"] }, + "asin1": { "type": ["null", "string"] }, + "asin2": { "type": ["null", "string"] }, + "asin3": { "type": ["null", "string"] }, + "will-ship-internationally": { "type": ["null", "string"] }, + "expedited-shipping": { "type": ["null", "string"] }, + "zshop-boldface": { "type": ["null", "string"] }, + "product-id": { "type": ["null", "string"] }, + "bid-for-featured-placement": { "type": ["null", "string"] }, + "add-delete": { "type": ["null", "string"] }, + "pending-quantity": { "type": ["null", "string"] }, + "fulfillment-channel": { "type": ["null", "string"] }, + "Business Price": { "type": ["null", "string"] }, + "Quantity Price Type": { "type": ["null", "string"] }, + "Quantity Lower Bound 1": { "type": ["null", "string"] }, + "Quantity Price 1": { "type": ["null", "string"] }, + "Quantity Lower Bound 2": { "type": ["null", "string"] }, + "Quantity Price 2": { "type": ["null", "string"] }, + "Quantity Lower Bound 3": { "type": ["null", "string"] }, + "Quantity Price 3": { "type": ["null", "string"] }, + "Quantity Lower Bound 4": { "type": ["null", "string"] }, + "Quantity Price 4": { "type": ["null", "string"] }, + "Quantity Lower Bound 5": { "type": ["null", "string"] }, + "Quantity Price 5": { "type": ["null", "string"] }, + "merchant-shipping-group": { "type": ["null", "string"] }, + "Progressive Price Type": { "type": ["null", "string"] }, + "Progressive Lower Bound 1": { "type": ["null", "string"] }, + "Progressive Price 1": { "type": ["null", "string"] }, + "Progressive Lower Bound 2": { "type": ["null", "string"] }, + "Progressive Price 2": { "type": ["null", "string"] }, + "Progressive Lower Bound 3": { "type": ["null", "string"] }, + "Progressive Price 3": { "type": ["null", "string"] } + } +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_MERCHANT_LISTINGS_DATA_BACK_COMPAT.json b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_MERCHANT_LISTINGS_DATA_BACK_COMPAT.json new file mode 100644 index 0000000000000..af4b8c76d21ef --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_MERCHANT_LISTINGS_DATA_BACK_COMPAT.json @@ -0,0 +1,54 @@ +{ + "title": "Open Listings Report", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "item-name": { "type": ["null", "string"] }, + "item-description": { "type": ["null", "string"] }, + "listing-id": { "type": ["null", "string"] }, + "seller-sku": { "type": ["null", "string"] }, + "price": { "type": ["null", "string"] }, + "quantity": { "type": ["null", "string"] }, + "open-date": { "type": ["null", "string"] }, + "image-url": { "type": ["null", "string"] }, + "item-is-marketplace": { "type": ["null", "string"] }, + "product-id-type": { "type": ["null", "string"] }, + "zshop-shipping-fee": { "type": ["null", "string"] }, + "item-note": { "type": ["null", "string"] }, + "item-condition": { "type": ["null", "string"] }, + "zshop-category1": { "type": ["null", "string"] }, + "zshop-browse-path": { "type": ["null", "string"] }, + "zshop-storefront-feature": { "type": ["null", "string"] }, + "asin1": { "type": ["null", "string"] }, + "asin2": { "type": ["null", "string"] }, + "asin3": { "type": ["null", "string"] }, + "will-ship-internationally": { "type": ["null", "string"] }, + "expedited-shipping": { "type": ["null", "string"] }, + "zshop-boldface": { "type": ["null", "string"] }, + "product-id": { "type": ["null", "string"] }, + "bid-for-featured-placement": { "type": ["null", "string"] }, + "add-delete": { "type": ["null", "string"] }, + "pending-quantity": { "type": ["null", "string"] }, + "Business Price": { "type": ["null", "string"] }, + "Quantity Price Type": { "type": ["null", "string"] }, + "Quantity Lower Bound 1": { "type": ["null", "string"] }, + "Quantity Price 1": { "type": ["null", "string"] }, + "Quantity Lower Bound 2": { "type": ["null", "string"] }, + "Quantity Price 2": { "type": ["null", "string"] }, + "Quantity Lower Bound 3": { "type": ["null", "string"] }, + "Quantity Price 3": { "type": ["null", "string"] }, + "Quantity Lower Bound 4": { "type": ["null", "string"] }, + "Quantity Price 4": { "type": ["null", "string"] }, + "Quantity Lower Bound 5": { "type": ["null", "string"] }, + "Quantity Price 5": { "type": ["null", "string"] }, + "merchant-shipping-group": { "type": ["null", "string"] }, + "Progressive Price Type": { "type": ["null", "string"] }, + "Progressive Lower Bound 1": { "type": ["null", "string"] }, + "Progressive Price 1": { "type": ["null", "string"] }, + "Progressive Lower Bound 2": { "type": ["null", "string"] }, + "Progressive Price 2": { "type": ["null", "string"] }, + "Progressive Lower Bound 3": { "type": ["null", "string"] }, + "Progressive Price 3": { "type": ["null", "string"] } + } +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_MERCHANT_LISTINGS_INACTIVE_DATA.json b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_MERCHANT_LISTINGS_INACTIVE_DATA.json new file mode 100644 index 0000000000000..900d02802e1f1 --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_MERCHANT_LISTINGS_INACTIVE_DATA.json @@ -0,0 +1,36 @@ +{ + "title": "Inactive Listings Report", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "item-name": { "type": ["null", "string"] }, + "item-description": { "type": ["null", "string"] }, + "listing-id": { "type": ["null", "string"] }, + "seller-sku": { "type": ["null", "string"] }, + "price": { "type": ["null", "string"] }, + "quantity": { "type": ["null", "string"] }, + "open-date": { "type": ["null", "string"] }, + "image-url": { "type": ["null", "string"] }, + "item-is-marketplace": { "type": ["null", "string"] }, + "product-id-type": { "type": ["null", "string"] }, + "zshop-shipping-fee": { "type": ["null", "string"] }, + "item-note": { "type": ["null", "string"] }, + "item-condition": { "type": ["null", "string"] }, + "zshop-category1": { "type": ["null", "string"] }, + "zshop-browse-path": { "type": ["null", "string"] }, + "zshop-storefront-feature": { "type": ["null", "string"] }, + "asin1": { "type": ["null", "string"] }, + "asin2": { "type": ["null", "string"] }, + "asin3": { "type": ["null", "string"] }, + "will-ship-internationally": { "type": ["null", "string"] }, + "expedited-shipping": { "type": ["null", "string"] }, + "zshop-boldface": { "type": ["null", "string"] }, + "product-id": { "type": ["null", "string"] }, + "bid-for-featured-placement": { "type": ["null", "string"] }, + "add-delete": { "type": ["null", "string"] }, + "pending-quantity": { "type": ["null", "string"] }, + "fulfillment-channel": { "type": ["null", "string"] }, + "merchant-shipping-group": { "type": ["null", "string"] } + } +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_STRANDED_INVENTORY_UI_DATA.json b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_STRANDED_INVENTORY_UI_DATA.json new file mode 100644 index 0000000000000..3ebcb0d0db8ba --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_STRANDED_INVENTORY_UI_DATA.json @@ -0,0 +1,26 @@ +{ + "title": "FBA Stranded Inventory Report", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "primary-action": { "type": ["null", "string"] }, + "date-stranded": { "type": ["null", "string"] }, + "Date-to-take-auto-removal": { "type": ["null", "string"] }, + "status-primary": { "type": ["null", "string"] }, + "status-secondary": { "type": ["null", "string"] }, + "error-message": { "type": ["null", "string"] }, + "stranded-reason": { "type": ["null", "string"] }, + "asin": { "type": ["null", "string"] }, + "sku": { "type": ["null", "string"] }, + "fnsku": { "type": ["null", "string"] }, + "product-name": { "type": ["null", "string"] }, + "condition": { "type": ["null", "string"] }, + "fulfilled-by": { "type": ["null", "string"] }, + "fulfillable-qty": { "type": ["null", "string"] }, + "your-price": { "type": ["null", "string"] }, + "unfulfillable-qty": { "type": ["null", "string"] }, + "reserved-quantity": { "type": ["null", "string"] }, + "inbound-shipped-qty": { "type": ["null", "string"] } + } +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_XML_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL.json b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_XML_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL.json new file mode 100644 index 0000000000000..e06c2dda083c7 --- /dev/null +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/schemas/GET_XML_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL.json @@ -0,0 +1,62 @@ +{ + "title": "XML Orders By Order Date Report", + "description": "", + "type": "object", + "$schema": "http://json-schema.org/draft-07/schema#", + "properties": { + "LastUpdatedDate": { "type": ["null", "string"] }, + "SalesChannel": { "type": ["null", "string"] }, + "OrderStatus": { "type": ["null", "string"] }, + "AmazonOrderID": { "type": ["null", "string"] }, + "PurchaseDate": { "type": ["null", "string"] }, + "OrderItem": { + "type": ["array"], + "items": { "type": ["null", "object"] }, + "properties": { + "ItemStatus": { "type": ["null", "string"] }, + "ProductName": { "type": ["null", "string"] }, + "ItemPrice": { + "type": ["null", "object"], + "properties": { + "Component": { + "type": ["array"], + "items": { "type": ["null", "object"] }, + "properties": { + "Type": { "type": ["null", "string"] }, + "Amount": { + "type": ["null", "object"], + "properties": { + "currency": { "type": ["null", "string"] }, + "value": { "type": ["null", "string"] } + } + } + } + } + } + }, + "ASIN": { "type": ["null", "string"] }, + "Quantity": { "type": ["null", "string"] }, + "AmazonOrderItemCode": { "type": ["null", "string"] }, + "SKU": { "type": ["null", "string"] } + } + }, + "FulfillmentData": { + "type": ["null", "object"], + "properties": { + "Address": { + "type": ["null", "object"], + "properties": { + "State": { "type": ["null", "string"] }, + "PostalCode": { "type": ["null", "string"] }, + "Country": { "type": ["null", "string"] }, + "City": { "type": ["null", "string"] } + } + }, + "ShipServiceLevel": { "type": ["null", "string"] }, + "FulfillmentChannel": { "type": ["null", "string"] } + } + }, + "IsBusinessOrder": { "type": ["null", "string"] }, + "MerchantOrderID": { "type": ["null", "string"] } + } +} diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/source.py b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/source.py index 0c13cdcb8f59c..a9ead15029ce6 100644 --- a/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/source.py +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/source.py @@ -21,28 +21,50 @@ FbaAfnInventoryByCountryReports, FbaAfnInventoryReports, FbaCustomerReturnsReports, + FbaEstimatedFbaFeesTxtReport, + FbaFulfillmentCurrentInventoryReport, + FbaFulfillmentCustomerShipmentPromotionReport, + FbaFulfillmentInventoryAdjustReport, + FbaFulfillmentInventoryReceiptsReport, + FbaFulfillmentInventorySummaryReport, + FbaFulfillmentMonthlyInventoryReport, + FbaInventoryPlaningReport, FbaInventoryReports, + FbaMyiUnsuppressedInventoryReport, FbaOrdersReports, FbaReplacementsReports, FbaShipmentsReports, + FbaSnsForecastReport, + FbaSnsPerformanceReport, FbaStorageFeesReports, + FlatFileArchivedOrdersDataByOrderDate, FlatFileOpenListingsReports, FlatFileOrdersReports, FlatFileOrdersReportsByLastUpdate, + FlatFileReturnsDataByReturnDate, FlatFileSettlementV2Reports, FulfilledShipmentsReports, GetXmlBrowseTreeData, + LedgerDetailedViewReports, + LedgerSummaryViewReport, ListFinancialEventGroups, ListFinancialEvents, + MerchantCancelledListingsReport, + MerchantListingsFypReport, + MerchantListingsInactiveData, + MerchantListingsReport, + MerchantListingsReportBackCompat, MerchantListingsReports, Orders, RestockInventoryReports, SellerAnalyticsSalesAndTrafficReports, SellerFeedbackReports, + StrandedInventoryUiReport, VendorDirectFulfillmentShipping, VendorInventoryHealthReports, VendorInventoryReports, VendorSalesReports, + XmlAllOrdersDataByOrderDataGeneral, ) @@ -166,6 +188,28 @@ def streams(self, config: Mapping[str, Any]) -> List[Stream]: GetXmlBrowseTreeData(**stream_kwargs), ListFinancialEventGroups(**stream_kwargs), ListFinancialEvents(**stream_kwargs), + LedgerDetailedViewReports(**stream_kwargs), + FbaEstimatedFbaFeesTxtReport(**stream_kwargs), + FbaFulfillmentCurrentInventoryReport(**stream_kwargs), + FbaFulfillmentCustomerShipmentPromotionReport(**stream_kwargs), + FbaFulfillmentInventoryAdjustReport(**stream_kwargs), + FbaFulfillmentInventoryReceiptsReport(**stream_kwargs), + FbaFulfillmentInventorySummaryReport(**stream_kwargs), + FbaMyiUnsuppressedInventoryReport(**stream_kwargs), + MerchantCancelledListingsReport(**stream_kwargs), + MerchantListingsReport(**stream_kwargs), + MerchantListingsReportBackCompat(**stream_kwargs), + MerchantListingsInactiveData(**stream_kwargs), + StrandedInventoryUiReport(**stream_kwargs), + XmlAllOrdersDataByOrderDataGeneral(**stream_kwargs), + FbaFulfillmentMonthlyInventoryReport(**stream_kwargs), + MerchantListingsFypReport(**stream_kwargs), + FbaSnsForecastReport(**stream_kwargs), + FbaSnsPerformanceReport(**stream_kwargs), + FlatFileArchivedOrdersDataByOrderDate(**stream_kwargs), + FlatFileReturnsDataByReturnDate(**stream_kwargs), + FbaInventoryPlaningReport(**stream_kwargs), + LedgerSummaryViewReport(**stream_kwargs), ] def spec(self, *args, **kwargs) -> ConnectorSpecification: diff --git a/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/streams.py b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/streams.py index 21644dff0530b..f2bf81f423685 100644 --- a/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/streams.py +++ b/airbyte-integrations/connectors/source-amazon-seller-partner/source_amazon_seller_partner/streams.py @@ -152,6 +152,8 @@ class ReportsAmazonSPStream(Stream, ABC): - yield the report document (if report processing status is `DONE`) """ + replication_start_date_limit_in_days = 90 + primary_key = None path_prefix = f"reports/{REPORTS_API_VERSION}" sleep_seconds = 30 @@ -239,7 +241,9 @@ def _report_data( stream_slice: Mapping[str, Any] = None, stream_state: Mapping[str, Any] = None, ) -> Mapping[str, Any]: - replication_start_date = max(pendulum.parse(self._replication_start_date), pendulum.now("utc").subtract(days=90)) + replication_start_date = max( + pendulum.parse(self._replication_start_date), pendulum.now("utc").subtract(days=self.replication_start_date_limit_in_days) + ) params = { "reportType": self.name, @@ -282,6 +286,7 @@ def _retrieve_report(self, report_id: str) -> Mapping[str, Any]: ) retrieve_report_response = self._send_request(retrieve_report_request) report_payload = retrieve_report_response.json() + return report_payload def decompress_report_document(self, url, payload): @@ -412,6 +417,8 @@ class FulfilledShipmentsReports(ReportsAmazonSPStream): name = "GET_AMAZON_FULFILLED_SHIPMENTS_DATA_GENERAL" + replication_start_date_limit_in_days = 30 + class FlatFileOpenListingsReports(ReportsAmazonSPStream): name = "GET_FLAT_FILE_OPEN_LISTINGS_DATA" @@ -463,6 +470,139 @@ def parse_document(self, document): name = "GET_XML_BROWSE_TREE_DATA" +class FbaEstimatedFbaFeesTxtReport(ReportsAmazonSPStream): + name = "GET_FBA_ESTIMATED_FBA_FEES_TXT_DATA" + + +class FbaFulfillmentCurrentInventoryReport(ReportsAmazonSPStream): + name = "GET_FBA_FULFILLMENT_CURRENT_INVENTORY_DATA" + + +class FbaFulfillmentCustomerShipmentPromotionReport(ReportsAmazonSPStream): + name = "GET_FBA_FULFILLMENT_CUSTOMER_SHIPMENT_PROMOTION_DATA" + + +class FbaFulfillmentInventoryAdjustReport(ReportsAmazonSPStream): + name = "GET_FBA_FULFILLMENT_INVENTORY_ADJUSTMENTS_DATA" + + +class FbaFulfillmentInventoryReceiptsReport(ReportsAmazonSPStream): + name = "GET_FBA_FULFILLMENT_INVENTORY_RECEIPTS_DATA" + + +class FbaFulfillmentInventorySummaryReport(ReportsAmazonSPStream): + name = "GET_FBA_FULFILLMENT_INVENTORY_SUMMARY_DATA" + + +class FbaMyiUnsuppressedInventoryReport(ReportsAmazonSPStream): + name = "GET_FBA_MYI_UNSUPPRESSED_INVENTORY_DATA" + + +class MerchantListingsReport(ReportsAmazonSPStream): + name = "GET_MERCHANT_LISTINGS_DATA" + + +class MerchantListingsInactiveData(ReportsAmazonSPStream): + name = "GET_MERCHANT_LISTINGS_INACTIVE_DATA" + + +class StrandedInventoryUiReport(ReportsAmazonSPStream): + name = "GET_STRANDED_INVENTORY_UI_DATA" + + +class XmlAllOrdersDataByOrderDataGeneral(ReportsAmazonSPStream): + def parse_document(self, document): + parsed = xmltodict.parse(document, attr_prefix="", cdata_key="value", force_list={"Message", "OrderItem"}) + orders = parsed.get("AmazonEnvelope", {}).get("Message", []) + result = [] + if isinstance(orders, list): + for order in orders: + result.append(order.get("Order", {})) + + return result + + name = "GET_XML_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL" + + +class MerchantListingsReportBackCompat(ReportsAmazonSPStream): + def _report_data( + self, + sync_mode: SyncMode, + cursor_field: List[str] = None, + stream_slice: Mapping[str, Any] = None, + stream_state: Mapping[str, Any] = None, + ) -> Mapping[str, Any]: + params = super()._report_data(sync_mode, cursor_field, stream_slice, stream_state) + options = self.report_options() + if options is not None: + params.update({"reportOptions": options}) + return params + + name = "GET_MERCHANT_LISTINGS_DATA_BACK_COMPAT" + + +class MerchantCancelledListingsReport(ReportsAmazonSPStream): + def _report_data( + self, + sync_mode: SyncMode, + cursor_field: List[str] = None, + stream_slice: Mapping[str, Any] = None, + stream_state: Mapping[str, Any] = None, + ) -> Mapping[str, Any]: + params = super()._report_data(sync_mode, cursor_field, stream_slice, stream_state) + options = self.report_options() + if options is not None: + params.update({"reportOptions": options}) + return params + + name = "GET_MERCHANT_CANCELLED_LISTINGS_DATA" + + +class FbaFulfillmentMonthlyInventoryReport(ReportsAmazonSPStream): + name = "GET_FBA_FULFILLMENT_MONTHLY_INVENTORY_DATA" + + +class MerchantListingsFypReport(ReportsAmazonSPStream): + name = "GET_MERCHANTS_LISTINGS_FYP_REPORT" + + +class FbaSnsForecastReport(ReportsAmazonSPStream): + name = "GET_FBA_SNS_FORECAST_DATA" + + +class FbaSnsPerformanceReport(ReportsAmazonSPStream): + name = "GET_FBA_SNS_PERFORMANCE_DATA" + + +class FlatFileArchivedOrdersDataByOrderDate(ReportsAmazonSPStream): + name = "GET_FLAT_FILE_ARCHIVED_ORDERS_DATA_BY_ORDER_DATE" + + +class FlatFileReturnsDataByReturnDate(ReportsAmazonSPStream): + name = "GET_FLAT_FILE_RETURNS_DATA_BY_RETURN_DATE" + + +class FbaInventoryPlaningReport(ReportsAmazonSPStream): + name = "GET_FBA_INVENTORY_PLANNING_DATA" + + +class LedgerSummaryViewReport(ReportsAmazonSPStream): + def _report_data( + self, + sync_mode: SyncMode, + cursor_field: List[str] = None, + stream_slice: Mapping[str, Any] = None, + stream_state: Mapping[str, Any] = None, + ) -> Mapping[str, Any]: + params = super()._report_data(sync_mode, cursor_field, stream_slice, stream_state) + options = self.report_options() + if options is not None: + params.update({"reportOptions": options}) + return params + + name = "GET_LEDGER_SUMMARY_VIEW_DATA" + + class AnalyticsStream(ReportsAmazonSPStream): def parse_document(self, document): parsed = json_lib.loads(document) @@ -737,6 +877,29 @@ def backoff_time(self, response: requests.Response) -> Optional[float]: return self.default_backoff_time +class LedgerDetailedViewReports(IncrementalReportsAmazonSPStream): + """ + API docs: https://developer-docs.amazon.com/sp-api/docs/report-type-values + """ + + name = "GET_LEDGER_DETAIL_VIEW_DATA" + cursor_field = "Date" + transformer: TypeTransformer = TypeTransformer(TransformConfig.DefaultSchemaNormalization | TransformConfig.CustomSchemaNormalization) + + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + self.transformer.registerCustomTransform(self.get_transform_function()) + + def get_transform_function(self): + def transform_function(original_value: Any, field_schema: Dict[str, Any]) -> Any: + if original_value and field_schema.get("format") == "date": + transformed_value = pendulum.from_format(original_value, "MM/DD/YYYY").to_date_string() + return transformed_value + return original_value + + return transform_function + + class IncrementalAnalyticsStream(AnalyticsStream): fixed_period_in_days = 0 diff --git a/docs/integrations/sources/amazon-seller-partner.md b/docs/integrations/sources/amazon-seller-partner.md index 5034aa33bab54..fab319ca0b06a 100644 --- a/docs/integrations/sources/amazon-seller-partner.md +++ b/docs/integrations/sources/amazon-seller-partner.md @@ -83,6 +83,28 @@ This source is capable of syncing the following tables and their data: - [Browse tree report](https://github.com/amzn/selling-partner-api-docs/blob/main/references/reports-api/reporttype-values.md#browse-tree-report) - [Financial Event Groups](https://developer-docs.amazon.com/sp-api/docs/finances-api-reference#get-financesv0financialeventgroups) - [Financial Events](https://developer-docs.amazon.com/sp-api/docs/finances-api-reference#get-financesv0financialevents) +- [FBA Fee Preview Report](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) +- [FBA Daily Inventory History Report](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) +- [FBA Promotions Report](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) +- [FBA Inventory Adjustments Report](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) +- [FBA Received Inventory Report](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) +- [FBA Inventory Event Detail Report](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) +- [FBA Monthly Inventory History Report](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) +- [FBA Manage Inventory](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) +- [Subscribe and Save Forecast Report](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) +- [Subscribe and Save Performance Report](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) +- [Flat File Archived Orders Report](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) +- [Flat File Returns Report by Return Date](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) +- [Canceled Listings Report](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) +- [Active Listings Report](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) +- [Open Listings Report](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) +- [Suppressed Listings Report](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) +- [Inactive Listings Report](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) +- [FBA Stranded Inventory Report](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) +- [XML Orders By Order Date Report](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) +- [Inventory Ledger Report - Detailed View](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) +- [FBA Manage Inventory Health Report](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) +- [Inventory Ledger Report - Summary View](https://developer-docs.amazon.com/sp-api/docs/reports-api-v2021-06-30-reference) ## Report options @@ -104,6 +126,7 @@ Make sure to configure the [required parameters](https://developer-docs.amazon.c | Version | Date | Pull Request | Subject | |:---------|:-----------|:-----------------------------------------------------------|:-----------------------------------------------------------------------| +| `0.2.28` | 2022-10-20 | [\#18283](https://github.com/airbytehq/airbyte/pull/18283) | Added multiple (22) report types | | `0.2.26` | 2022-09-24 | [\#16629](https://github.com/airbytehq/airbyte/pull/16629) | Report API version to 2021-06-30, added multiple (5) report types | | `0.2.25` | 2022-07-27 | [\#15063](https://github.com/airbytehq/airbyte/pull/15063) | Add Restock Inventory Report | | `0.2.24` | 2022-07-12 | [\#14625](https://github.com/airbytehq/airbyte/pull/14625) | Add FBA Storage Fees Report |