Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨Source Amazon Seller Partner: add VendorOrders stream #35273

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ acceptance_tests:
bypass_reason: "Data cannot be seeded in the test account, integration tests added for the stream instead"
- name: GET_VENDOR_TRAFFIC_REPORT
bypass_reason: "Data cannot be seeded in the test account, integration tests added for the stream instead"
- name: VendorOrders
bypass_reason: "Data cannot be seeded in the test account, integration tests added for the stream instead"
incremental:
tests:
- config_path: "secrets/config.json"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ data:
connectorSubtype: api
connectorType: source
definitionId: e55879a8-0ef8-4557-abcf-ab34c53ec460
dockerImageTag: 3.3.2
dockerImageTag: 3.4.0
dockerRepository: airbyte/source-amazon-seller-partner
documentationUrl: https://docs.airbyte.com/integrations/sources/amazon-seller-partner
githubIssueLabel: source-amazon-seller-partner
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,354 @@
{
"title": "Vendor Orders",
"description": "All vendor purchase orders that were updated after a specified date",
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"purchaseOrderNumber": {
"type": ["null", "string"]
},
"purchaseOrderState": {
"type": ["null", "string"]
},
"orderDetails": {
"type": ["null", "object"],
"properties": {
"purchaseOrderDate": {
"type": ["null", "string"],
"format": "date-time"
},
"purchaseOrderChangedDate": {
"type": ["null", "string"],
"format": "date-time"
},
"purchaseOrderStateChangedDate": {
"type": ["null", "string"],
"format": "date-time"
},
"purchaseOrderType": {
"type": ["null", "string"]
},
"importDetails": {
"type": ["null", "object"],
"properties": {
"methodOfPayment": {
"type": ["null", "string"]
},
"internationalCommercialTerms": {
"type": ["null", "string"]
},
"portOfDelivery": {
"type": ["null", "string"]
},
"importContainers": {
"type": ["null", "string"]
},
"shippingInstructions": {
"type": ["null", "string"]
}
}
},
"dealCode": {
"type": ["null", "string"]
},
"paymentMethod": {
"type": ["null", "string"]
},
"buyingParty": {
"type": ["null", "object"],
"properties": {
"partyId": {
"type": ["null", "string"]
},
"address": {
"type": ["null", "object"],
"properties": {
"name": {
"type": ["null", "string"]
},
"addressLine1": {
"type": ["null", "string"]
},
"addressLine2": {
"type": ["null", "string"]
},
"addressLine3": {
"type": ["null", "string"]
},
"city": {
"type": ["null", "string"]
},
"county": {
"type": ["null", "string"]
},
"district": {
"type": ["null", "string"]
},
"stateOrRegion": {
"type": ["null", "string"]
},
"postalCode": {
"type": ["null", "string"]
},
"countryCode": {
"type": ["null", "string"]
},
"phone": {
"type": ["null", "string"]
}
}
},
"taxInfo": {
"type": ["null", "object"],
"properties": {
"taxType": {
"type": ["null", "string"]
},
"taxRegistrationNumber": {
"type": ["null", "string"]
}
}
}
}
},
"sellingParty": {
"type": ["null", "object"],
"properties": {
"partyId": {
"type": ["null", "string"]
},
"address": {
"type": ["null", "object"],
"properties": {
"name": {
"type": ["null", "string"]
},
"addressLine1": {
"type": ["null", "string"]
},
"addressLine2": {
"type": ["null", "string"]
},
"addressLine3": {
"type": ["null", "string"]
},
"city": {
"type": ["null", "string"]
},
"county": {
"type": ["null", "string"]
},
"district": {
"type": ["null", "string"]
},
"stateOrRegion": {
"type": ["null", "string"]
},
"postalCode": {
"type": ["null", "string"]
},
"countryCode": {
"type": ["null", "string"]
},
"phone": {
"type": ["null", "string"]
}
}
},
"taxInfo": {
"type": ["null", "object"],
"properties": {
"taxType": {
"type": ["null", "string"]
},
"taxRegistrationNumber": {
"type": ["null", "string"]
}
}
}
}
},
"shipToParty": {
"type": ["null", "object"],
"properties": {
"partyId": {
"type": ["null", "string"]
},
"address": {
"type": ["null", "object"],
"properties": {
"name": {
"type": ["null", "string"]
},
"addressLine1": {
"type": ["null", "string"]
},
"addressLine2": {
"type": ["null", "string"]
},
"addressLine3": {
"type": ["null", "string"]
},
"city": {
"type": ["null", "string"]
},
"county": {
"type": ["null", "string"]
},
"district": {
"type": ["null", "string"]
},
"stateOrRegion": {
"type": ["null", "string"]
},
"postalCode": {
"type": ["null", "string"]
},
"countryCode": {
"type": ["null", "string"]
},
"phone": {
"type": ["null", "string"]
}
}
},
"taxInfo": {
"type": ["null", "object"],
"properties": {
"taxType": {
"type": ["null", "string"]
},
"taxRegistrationNumber": {
"type": ["null", "string"]
}
}
}
}
},
"billToParty": {
"type": ["null", "object"],
"properties": {
"partyId": {
"type": ["null", "string"]
},
"address": {
"type": ["null", "object"],
"properties": {
"name": {
"type": ["null", "string"]
},
"addressLine1": {
"type": ["null", "string"]
},
"addressLine2": {
"type": ["null", "string"]
},
"addressLine3": {
"type": ["null", "string"]
},
"city": {
"type": ["null", "string"]
},
"county": {
"type": ["null", "string"]
},
"district": {
"type": ["null", "string"]
},
"stateOrRegion": {
"type": ["null", "string"]
},
"postalCode": {
"type": ["null", "string"]
},
"countryCode": {
"type": ["null", "string"]
},
"phone": {
"type": ["null", "string"]
}
}
},
"taxInfo": {
"type": ["null", "object"],
"properties": {
"taxType": {
"type": ["null", "string"]
},
"taxRegistrationNumber": {
"type": ["null", "string"]
}
}
}
}
},
"shipWindow": {
"type": ["null", "string"]
},
"deliveryWindow": {
"type": ["null", "string"]
},
"items": {
"type": ["null", "array"],
"items": {
"type": ["null", "object"],
"properties": {
"itemSequenceNumber": {
"type": ["null", "string"]
},
"amazonProductIdentifier": {
"type": ["null", "string"]
},
"vendorProductIdentifier": {
"type": ["null", "string"]
},
"orderedQuantity": {
"type": ["null", "object"],
"properties": {
"amount": {
"type": ["null", "integer"]
},
"unitOfMeasure": {
"type": ["null", "string"]
},
"unitSize": {
"type": ["null", "integer"]
}
}
},
"isBackOrderAllowed": {
"type": ["null", "boolean"]
},
"netCost": {
"type": ["null", "object"],
"properties": {
"amount": {
"type": ["null", "string"]
},
"currencyCode": {
"type": ["null", "string"]
}
}
},
"listPrice": {
"type": ["null", "object"],
"properties": {
"amount": {
"type": ["null", "string"]
},
"currencyCode": {
"type": ["null", "string"]
}
}
}
}
}
}
}
},
"changedBefore": {
"type": ["null", "string"],
"format": "date-time"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#


import traceback
from os import getenv
from typing import Any, List, Mapping, Optional, Tuple

Expand Down Expand Up @@ -64,6 +63,7 @@
StrandedInventoryUiReport,
VendorDirectFulfillmentShipping,
VendorInventoryReports,
VendorOrders,
VendorSalesReports,
VendorTrafficReport,
XmlAllOrdersDataByOrderDataGeneral,
Expand Down Expand Up @@ -181,6 +181,7 @@ def streams(self, config: Mapping[str, Any]) -> List[Stream]:
FbaInventoryPlaningReport,
LedgerSummaryViewReport,
FbaReimbursementsReports,
VendorOrders,
]

# TODO: Remove after Brand Analytics will be enabled in CLOUD: https://github.com/airbytehq/airbyte/issues/32353
Expand Down
Loading
Loading