From 5af63703d297ec4c92e1d67aaa38b8c681ba32ca Mon Sep 17 00:00:00 2001 From: Rob Wigginton <8102829+bob2021@users.noreply.github.com> Date: Thu, 26 Mar 2026 18:17:44 +0000 Subject: [PATCH 1/7] Add interim `WarehouseInventoryAdjustmentAdvices` support based on XML schema. --- generate.sh | 1 + .../WarehouseInventoryAdjustmentAdvices.json | 3270 +++++++++++++++++ .../WarehouseInventoryAdjustmentAdvice.php | 54 + ...rehouseInventoryAdjustmentAdviceHeader.php | 73 + ...toryAdjustmentAdviceHeaderAddressItems.php | 351 ++ ...tAdviceHeaderAddressItemsContactsItems.php | 120 + ...actsItemsAdditionalContactDetailsItems.php | 69 + ...mentAdviceHeaderAddressItemsDatesItems.php | 57 + ...dviceHeaderAddressItemsReferencesItems.php | 43 + ...oryAdjustmentAdviceHeaderContactsItems.php | 120 + ...actsItemsAdditionalContactDetailsItems.php | 69 + ...entoryAdjustmentAdviceHeaderDatesItems.php | 140 + ...ntoryAdjustmentAdviceHeaderHeaderOrder.php | 130 + ...justmentAdviceHeaderMiscellaneousItems.php | 55 + ...entoryAdjustmentAdviceHeaderNotesItems.php | 81 + ...yAdjustmentAdviceHeaderReferencesItems.php | 150 + ...ouseInventoryAdjustmentAdviceLineItems.php | 38 + ...AdjustmentAdviceLineItemsLineItemItems.php | 61 + ...viceLineItemsLineItemItemsAddressItems.php | 345 ++ ...emsLineItemItemsAddressItemsDatesItems.php | 57 + ...neItemItemsAddressItemsReferencesItems.php | 43 + ...AdviceLineItemsLineItemItemsDatesItems.php | 140 + ...AdviceLineItemsLineItemItemsItemDetail.php | 547 +++ ...neItemsLineItemItemsMiscellaneousItems.php | 55 + ...eLineItemsLineItemItemsReferencesItems.php | 150 + ...WarehouseInventoryAdjustmentAdviceMeta.php | 187 + ...ehouseInventoryAdjustmentAdviceSummary.php | 101 + 27 files changed, 6507 insertions(+) create mode 100644 json-schema/v777/WarehouseInventoryAdjustmentAdvices.json create mode 100644 src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdvice.php create mode 100644 src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeader.php create mode 100644 src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItems.php create mode 100644 src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactsItems.php create mode 100644 src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactsItemsAdditionalContactDetailsItems.php create mode 100644 src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsDatesItems.php create mode 100644 src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferencesItems.php create mode 100644 src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderContactsItems.php create mode 100644 src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderContactsItemsAdditionalContactDetailsItems.php create mode 100644 src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderDatesItems.php create mode 100644 src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderHeaderOrder.php create mode 100644 src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderMiscellaneousItems.php create mode 100644 src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderNotesItems.php create mode 100644 src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderReferencesItems.php create mode 100644 src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItems.php create mode 100644 src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItems.php create mode 100644 src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItems.php create mode 100644 src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsDatesItems.php create mode 100644 src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferencesItems.php create mode 100644 src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsDatesItems.php create mode 100644 src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsItemDetail.php create mode 100644 src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsMiscellaneousItems.php create mode 100644 src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsReferencesItems.php create mode 100644 src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceMeta.php create mode 100644 src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceSummary.php diff --git a/generate.sh b/generate.sh index 8c7cf6e..eaa7d19 100755 --- a/generate.sh +++ b/generate.sh @@ -17,6 +17,7 @@ apis=( "PlanningSchedules.json|PlanningSchedule" "ProductActivities.json|ProductActivity" "Shipments.json|Shipment" +"WarehouseInventoryAdjustmentAdvices.json|WarehouseInventoryAdjustmentAdvice" "WarehouseTransferReceiptAdvices.json|WarehouseTransferReceiptAdvice" ) for api in "${apis[@]}"; do diff --git a/json-schema/v777/WarehouseInventoryAdjustmentAdvices.json b/json-schema/v777/WarehouseInventoryAdjustmentAdvices.json new file mode 100644 index 0000000..d410f1e --- /dev/null +++ b/json-schema/v777/WarehouseInventoryAdjustmentAdvices.json @@ -0,0 +1,3270 @@ +{ + "schema": "http://json-schema.org/draft-07/schema#", + "title": "WarehouseInventoryAdjustmentAdvices", + "$comment": "COPYRIGHT SPS COMMERCE, INC. ALL RIGHTS RESERVED 2020. SUPPLIED AS-IS WITH NO WARRANTIES.", + "definitions": { + "WarehouseInventoryAdjustmentAdvice": { + "type": "object", + "description": "Provides inventory adjustment details from the warehouse", + "additionalProperties": false, + "required": [ + "Header" + ], + "properties": { + "Meta": { + "type": "object", + "description": "Information used for internal purposes at SPS Commerce", + "additionalProperties": false, + "required": [], + "properties": { + "SenderUniqueID": { + "type": "string" + }, + "SenderCompanyName": { + "type": "string" + }, + "ReceiverUniqueID": { + "type": "string" + }, + "ReceiverCompanyName": { + "type": "string" + }, + "IsDropShip": { + "type": "boolean" + }, + "InterchangeControlNumber": { + "type": "string" + }, + "GroupControlIdentifier": { + "type": "string" + }, + "GroupControlNumber": { + "type": "string" + }, + "DocumentControlIdentifier": { + "type": "string" + }, + "DocumentControlNumber": { + "type": "string" + }, + "InterchangeSenderID": { + "type": "string" + }, + "InterchangeReceiverID": { + "type": "string" + }, + "GroupSenderID": { + "type": "string" + }, + "GroupReceiverID": { + "type": "string" + }, + "BatchPart": { + "type": "string" + }, + "BatchTotal": { + "type": "integer" + }, + "BatchID": { + "type": "string" + }, + "Comments": { + "type": "string" + }, + "Validation": { + "type": "string" + }, + "OrderManagement": { + "type": "string", + "enum": [ + "Bulk-Import", + "CrossDock", + "DropShip", + "InventoryAdvice", + "ItemManagementService", + "LogisticsManagement", + "MultiStore", + "None", + "PlanningScheduleRelease", + "ProductActivityReport", + "SalesOrPriceCatalog", + "SmallPackage", + "StockRelease", + "StockTransfer", + "Truckload-LTL", + "WarehouseInventoryAdjustment" + ], + "enumDescriptions": { + "Bulk-Import": { + "description": "For use with the Invoices, OrderAcks, OrderChanges, OrderChangeAcks, Orders, or Shipments schemas only" + }, + "CrossDock": { + "description": "For use with the Invoices, OrderAcks, OrderChanges, OrderChangeAcks, Orders, or Shipments schemas only" + }, + "DropShip": { + "description": "For use with the Invoices, OrderAcks, OrderChanges, OrderChangeAcks, Orders, or Shipments schemas only" + }, + "InventoryAdvice": { + "description": "For use with the ItemRegistries schema only" + }, + "ItemManagementService": { + "description": "For use with the ItemRegistries schema only" + }, + "LogisticsManagement": { + "description": "For use with the CarrierLoadTenders, MotorCarrierFreightDetails, or CarrierLoadTenderResponses schemas only" + }, + "MultiStore": { + "description": "For use with the Invoices, OrderAcks, OrderChanges, OrderChangeAcks, Orders, or Shipments schemas only" + }, + "None": { + "description": "For use with the OrganizationalRelationships schema only" + }, + "PlanningScheduleRelease": { + "description": "For use with the PlanningSchedules schema only" + }, + "ProductActivityReport": { + "description": "For use with the ProductActivities schema only" + }, + "SalesOrPriceCatalog": { + "description": "For use with the ItemRegistries schema only" + }, + "SmallPackage": { + "description": "For use with the CarrierStatusMessages schema only" + }, + "StockRelease": { + "description": "For use with the Orders or Shipments schemas only" + }, + "StockTransfer": { + "description": "For use with the Shipments or WarehouseTransferReceiptAdvices schemas only" + }, + "Truckload-LTL": { + "description": "For use with the CarrierStatusMessages schema only" + }, + "WarehouseInventoryAdjustment": { + "description": "For use with the WarehouseInventoryAdjustmentAdvices schema only" + } + } + }, + "Version": { + "description": "XML Version number", + "type": "string" + } + } + }, + "Header": { + "type": "object", + "description": "Encloses all document header elements", + "additionalProperties": false, + "required": [ + "HeaderOrder" + ], + "properties": { + "HeaderOrder": { + "type": "object", + "description": "Contains the commonly used fields in the header of the transaction", + "additionalProperties": false, + "required": [ + "TradingPartnerId", + "DocumentId", + "Date1" + ], + "properties": { + "TradingPartnerId": { + "description": "Unique internal identifier defined by SPS Commerce which identifies the relationship", + "examples": [ + "000ALLTESTID" + ], + "type": "string", + "minLength": 1, + "maxLength": 15 + }, + "DocumentId": { + "description": "Unique internal identifier defined by SPS Commerce which identifies the document", + "examples": [ + "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" + ], + "type": "string" + }, + "Date1": { + "description": "Date of the inventory adjustment", + "examples": [ + "2013-09-22" + ], + "type": "string", + "format": "date" + }, + "AdjustmentNumber1": { + "description": "Primary adjustment number assigned to the inventory adjustment", + "type": "string" + }, + "AdjustmentNumber2": { + "description": "Secondary adjustment number assigned to the inventory adjustment", + "type": "string" + }, + "TsetPurposeCode": { + "description": "Code indicating the purpose of the transaction set", + "type": "string", + "enum": [ + "00", + "01", + "05", + "07" + ], + "enumDescriptions": { + "00": { + "description": "Original" + }, + "01": { + "description": "Cancellation" + }, + "05": { + "description": "Replace" + }, + "07": { + "description": "Duplicate" + } + } + }, + "PurchaseOrderNumber": { + "description": "Identifying number for a purchase order assigned by the orderer/buyer", + "type": "string" + }, + "TransactionTypeCode": { + "description": "Code specifying the type of transaction", + "type": "string", + "enum": [ + "CR", + "DR" + ], + "enumDescriptions": { + "CR": { + "description": "Credit Memo" + }, + "DR": { + "description": "Debit Memo" + } + } + }, + "ActionCode": { + "description": "Code indicating the type of action", + "type": "string", + "enum": [ + "2", + "4", + "RH", + "ST", + "WQ" + ], + "enumDescriptions": { + "2": { + "description": "Change" + }, + "4": { + "description": "Delete" + }, + "RH": { + "description": "Release Hold" + }, + "ST": { + "description": "Stock Transfer" + }, + "WQ": { + "description": "Warehouse Quantity Adjustment" + } + } + } + } + }, + "References": { + "type": "array", + "items": { + "type": "object", + "description": "Supplemental information supporting the transaction", + "additionalProperties": false, + "required": [], + "properties": { + "ReferenceQual": { + "description": "Code specifying the type of data in the ReferenceID/ReferenceDescription", + "type": "string", + "enum": [ + "02", + "06", + "12", + "19", + "2I", + "AH", + "AN", + "AO", + "BM", + "BT", + "BY", + "CN", + "CT", + "DO", + "GS", + "IL", + "IN", + "IT", + "IV", + "KW", + "LO", + "MK", + "OC", + "PD", + "PK", + "PO", + "SE", + "SI", + "TN", + "VN", + "WH", + "WLT", + "WS" + ], + "enumDescriptions": { + "02": { + "description": "Society for Worldwide Interbank Financial Telecommunication", + "longDescription": "A unique identification code for a particular bank" + }, + "06": { + "description": "System Number" + }, + "12": { + "description": "Billing Account Number", + "longDescription": "Account number in a trading partner's accounts receivable system" + }, + "19": { + "description": "Division", + "longDescription": "Different entities belonging to the same parent company" + }, + "2I": { + "description": "Tracking Number" + }, + "AH": { + "description": "Agreement Number" + }, + "AN": { + "description": "Appointment Number" + }, + "AO": { + "description": "Account Suffix" + }, + "BM": { + "description": "Bill of Lading Number" + }, + "BT": { + "description": "Batch Number" + }, + "BY": { + "description": "Repair Category Number" + }, + "CN": { + "description": "Carrier PRO Number", + "longDescription": "Unique number assigned by the carrier to track a shipment" + }, + "CT": { + "description": "Contract Number" + }, + "DO": { + "description": "Delivery Order Number" + }, + "GS": { + "description": "Internal Vendor Number" + }, + "IL": { + "description": "Internal Order Number" + }, + "IN": { + "description": "Invoice Number" + }, + "IT": { + "description": "Internal Customer Number" + }, + "IV": { + "description": "Seller's Invoice Number" + }, + "KW": { + "description": "Certification or License Number" + }, + "LO": { + "description": "Load Planning Number" + }, + "MK": { + "description": "Medical Record Identification Number" + }, + "OC": { + "description": "Old Order Number" + }, + "PD": { + "description": "Promotion Number" + }, + "PK": { + "description": "Packing List Number" + }, + "PO": { + "description": "Purchase Order Number" + }, + "SE": { + "description": "Serial Number" + }, + "SI": { + "description": "Shipper's Identifying Number for Shipment" + }, + "TN": { + "description": "Transaction Reference Number" + }, + "VN": { + "description": "Vendor Order Number" + }, + "WH": { + "description": "Master Reference Link Number", + "longDescription": "Used primarily by logistic firms to associate order documents to warehouse shipments when documents are received independently or not simultaneously but need to be fulfilled at the same time" + }, + "WLT": { + "description": "Warehouse Lot Number", + "longDescription": "Number identifying the section within an area of a storage facility. This further describes the position within the warehouse storage location number" + }, + "WS": { + "description": "Warehouse Storage Location Number", + "longDescription": "Number to identify a specific area within a storage facility" + } + } + }, + "ReferenceID": { + "description": "Value as defined by the ReferenceQual", + "type": "string" + }, + "Description": { + "description": "Free-form textual description to clarify the related data elements and their content", + "examples": [ + "New products only. Do not reuse packaging" + ], + "type": "string" + } + } + } + }, + "Dates": { + "type": "array", + "items": { + "type": "object", + "description": "Provides date and time information", + "additionalProperties": false, + "required": [], + "properties": { + "DateTimeQualifier": { + "description": "Code specifying the type of date", + "type": "string", + "enum": [ + "001", + "002", + "007", + "011", + "017", + "035", + "036", + "050", + "067", + "068", + "097", + "118", + "196", + "197", + "328", + "369", + "370", + "371", + "372", + "405", + "510", + "511", + "636", + "807", + "945", + "ACT", + "TRM" + ], + "enumDescriptions": { + "001": { + "description": "Cancel Date" + }, + "002": { + "description": "Requested Delivery" + }, + "007": { + "description": "Effective" + }, + "011": { + "description": "Actual Ship" + }, + "017": { + "description": "Estimated Delivery" + }, + "035": { + "description": "Actual Delivery" + }, + "036": { + "description": "Discontinued", + "longDescription": "Date when something is no longer available/valid" + }, + "050": { + "description": "Received Date" + }, + "067": { + "description": "Current Schedule Delivery" + }, + "068": { + "description": "Scheduled Ship" + }, + "097": { + "description": "Document/Transaction Date" + }, + "118": { + "description": "Requested Pick Up Date" + }, + "196": { + "description": "Start Date" + }, + "197": { + "description": "End Date" + }, + "328": { + "description": "Change" + }, + "369": { + "description": "Estimated Departure Date" + }, + "370": { + "description": "Actual Departure Date" + }, + "371": { + "description": "Estimated Arrival Date", + "longDescription": "The expected date of receiving a good or service" + }, + "372": { + "description": "Actual Arrival Date" + }, + "405": { + "description": "Production", + "longDescription": "Indicates the date that an item or good is created or manufactured" + }, + "510": { + "description": "Date Packed" + }, + "511": { + "description": "Shelf Life Expiration", + "longDescription": "Date when a product can not be legally sold due to it being unfit for use or consumption" + }, + "636": { + "description": "Last Update Date", + "longDescription": "The most recent date at which an update was made to the transaction" + }, + "807": { + "description": "Stored" + }, + "945": { + "description": "Activity" + }, + "ACT": { + "description": "Active Date", + "longDescription": "The date at which the document is effective for terms and contractual agreements" + }, + "TRM": { + "description": "Transmission Date", + "longDescription": "Date the document was sent" + } + } + }, + "Date": { + "description": "A specific day", + "examples": [ + "2012-10-31", + "2013-12-21" + ], + "type": "string", + "format": "date" + }, + "Time": { + "description": "All standard XML formats are accepted.", + "examples": [ + "16:13:03-05:00" + ], + "type": "string", + "format": "time" + }, + "DateTimePeriod": { + "description": "A date, time, or range of dates and times", + "type": "string" + } + } + } + }, + "Contacts": { + "type": "array", + "items": { + "type": "object", + "description": "Provides contact information", + "additionalProperties": false, + "required": [], + "properties": { + "ContactTypeCode": { + "description": "Code identifying a type of contact", + "type": "string", + "enum": [ + "AL", + "BD", + "BI", + "CH", + "CR", + "EX", + "HM", + "IC", + "MRP", + "OC", + "RE", + "SC", + "SGN", + "SR", + "TIC" + ], + "enumDescriptions": { + "AL": { + "description": "Alternate Information Contact" + }, + "BD": { + "description": "Buyer Name or Department" + }, + "BI": { + "description": "Bill Inquiry Contact" + }, + "CH": { + "description": "Change Order Approver" + }, + "CR": { + "description": "Buyer Customer Relations" + }, + "EX": { + "description": "Expeditor" + }, + "HM": { + "description": "Hazardous Material Contact", + "longDescription": "Who to contact regarding inquiries or emergencies for a hazardous load" + }, + "IC": { + "description": "Primary Information Contact" + }, + "MRP": { + "description": "Material Requirements Planning Controller", + "longDescription": "Person or persons responsible for monitoring material availability [MRP]" + }, + "OC": { + "description": "Order Contact" + }, + "RE": { + "description": "Receiving Contact", + "longDescription": "The recipient receiving the merchandise" + }, + "SC": { + "description": "Shipping Contact", + "longDescription": "Point of contact for shipping information" + }, + "SGN": { + "description": "Signed By", + "longDescription": "Individual who signed related documents" + }, + "SR": { + "description": "Sales Representative or Department" + }, + "TIC": { + "description": "Technical Representative", + "longDescription": "Point of contact for technical information" + } + } + }, + "ContactName": { + "description": "Free-form name", + "examples": [ + "SPS Commerce" + ], + "type": "string" + }, + "PrimaryPhone": { + "description": "Phone number of contact listed", + "examples": [ + "866-245-8100" + ], + "type": "string" + }, + "PrimaryFax": { + "description": "Fax number of contact listed", + "examples": [ + "612-435-9401" + ], + "type": "string" + }, + "PrimaryEmail": { + "description": "E-mail address for contact listed", + "examples": [ + "info@spscommerce.com" + ], + "type": "string" + }, + "AdditionalContactDetails": { + "type": "array", + "items": { + "type": "object", + "description": "This group should be used if the associated normalized fields already contain information.", + "additionalProperties": false, + "required": [], + "properties": { + "ContactQual": { + "description": "Indicates the method of contact", + "type": "string", + "enum": [ + "AU", + "CP", + "EX", + "FT", + "HP", + "NP", + "WP", + "X4" + ], + "enumDescriptions": { + "AU": { + "description": "Defense Switched Network", + "longDescription": "The Defense Switched Network (DSN) is the primary system of interbase communication for the U.S. Department of Defense" + }, + "CP": { + "description": "Cell Phone" + }, + "EX": { + "description": "Telephone Extension", + "longDescription": "An additional telephone set that is connected to the same telephone line" + }, + "FT": { + "description": "Federal Telecommunications System", + "longDescription": "A long-distance telephone network serving the civilian agencies of the United States federal government" + }, + "HP": { + "description": "Home Phone" + }, + "NP": { + "description": "Nighttime Phone" + }, + "WP": { + "description": "Work Phone" + }, + "X4": { + "description": "X400 Address" + } + } + }, + "ContactID": { + "description": "The value of the identified contact", + "examples": [ + "999-999-9999" + ], + "type": "string" + } + } + } + }, + "ContactReference": { + "description": "Additional field to clarify a contact", + "examples": [ + "ext: 451" + ], + "type": "string" + } + } + } + }, + "Address": { + "type": "array", + "items": { + "type": "object", + "description": "Represent an entity such as an organizational, physical location, property, or individual", + "additionalProperties": false, + "required": [], + "properties": { + "AddressTypeCode": { + "description": "Code identifying an organizational entity, a physical location, property, or an individual", + "type": "string", + "enum": [ + "88", + "9C", + "AG", + "BE", + "BK", + "BO", + "BOWN", + "BT", + "BY", + "CB", + "CN", + "CQ", + "CS", + "CT", + "DA", + "DE", + "DS", + "DV", + "ESIID", + "FR", + "FW", + "IA", + "MF", + "N1", + "NES", + "OB", + "PATI", + "PF", + "PLCO", + "POAR", + "PODI", + "POEN", + "POOR", + "PR", + "PW", + "RAMP", + "RI", + "RL", + "RT", + "SF", + "SO", + "ST", + "TO", + "TP", + "TS", + "VN", + "WH", + "Z7" + ], + "enumDescriptions": { + "88": { + "description": "Approver", + "longDescription": "Party approving claim for payment" + }, + "9C": { + "description": "Country of Destination" + }, + "AG": { + "description": "Agent" + }, + "BE": { + "description": "Beneficiary" + }, + "BK": { + "description": "Bank" + }, + "BO": { + "description": "Broker" + }, + "BOWN": { + "description": "Brand Owner", + "longDescription": "Party who owns the brand of the item[s]" + }, + "BT": { + "description": "Bill to Party", + "longDescription": "Party receiving invoice information" + }, + "BY": { + "description": "Buying Party", + "longDescription": "Party who is purchasing the product and/or service, but is not necessarily initiating the order" + }, + "CB": { + "description": "Customs Broker" + }, + "CN": { + "description": "Consignee" + }, + "CQ": { + "description": "Corporate Office", + "longDescription": "Used to indicate the location of the business's headquarters" + }, + "CS": { + "description": "Consolidator" + }, + "CT": { + "description": "Country of Origin" + }, + "DA": { + "description": "Delivery Address" + }, + "DE": { + "description": "Depositor" + }, + "DS": { + "description": "Distributor", + "longDescription": "Party who purchases goods, promotes and resales those goods to retailers at a markup or fee" + }, + "DV": { + "description": "Division", + "longDescription": "Component of a business entity.", + "examples": [ + "Lady Footlocker" + ] + }, + "ESIID": { + "description": "Electric Service Identifier ID", + "longDescription": "17 or 22-digit number used to identify a unique point of electric service delivery to a home or business" + }, + "FR": { + "description": "Message From", + "longDescription": "Used primary on reporting documents where there is no buyer or seller" + }, + "FW": { + "description": "Forwarder", + "longDescription": "Also called Freight Forwarder, or Forwarding Agent" + }, + "IA": { + "description": "Install Address", + "longDescription": "Location of installation" + }, + "MF": { + "description": "Manufacturer of Goods" + }, + "N1": { + "description": "Notify Party", + "longDescription": "Party which must be made aware of a shipment arriving at a location. Typically used with imports/exports" + }, + "NES": { + "description": "New Store" + }, + "OB": { + "description": "Ordered By", + "longDescription": "Party who initiates an order for goods and/or services, but is not necessarily purchasing it" + }, + "PATI": { + "description": "Patient", + "longDescription": "A location of a person receiving or registered to receive medical treatment" + }, + "PF": { + "description": "Party to Receive Freight Bill" + }, + "PLCO": { + "description": "Place of Consumption", + "longDescription": "A location where goods enter the marketplace of the importing country" + }, + "POAR": { + "description": "Port Of Arrival", + "longDescription": "A location where goods enter a country but may not require passing through customs" + }, + "PODI": { + "description": "Port of Discharge", + "longDescription": "A location where goods are unloaded" + }, + "POEN": { + "description": "Port of Entry", + "longDescription": "A border crossing where persons and/or goods legally [via customs] enter a country" + }, + "POOR": { + "description": "Port Of Origin" + }, + "PR": { + "description": "Payer", + "longDescription": "Party responsible for initiating payment" + }, + "PW": { + "description": "Pickup Address", + "longDescription": "Location in which the shipment will be picked up from" + }, + "RAMP": { + "description": "Repair and Maintenance Provider", + "longDescription": "A location where repair and maintenance is administered" + }, + "RI": { + "description": "Remit To" + }, + "RL": { + "description": "Reporting Location" + }, + "RT": { + "description": "Return Address" + }, + "SF": { + "description": "Ship From" + }, + "SO": { + "description": "Sold To" + }, + "ST": { + "description": "Ship To" + }, + "TO": { + "description": "Message To", + "longDescription": "Used primary on reporting documents where there is no buyer or seller" + }, + "TP": { + "description": "Transportation Provider" + }, + "TS": { + "description": "Transshipment Location", + "longDescription": "Transfer point between different carriers or between different vehicles of the same carrier" + }, + "VN": { + "description": "Vendor" + }, + "WH": { + "description": "Warehouse" + }, + "Z7": { + "description": "Mark for Party" + } + } + }, + "LocationCodeQualifier": { + "description": "Code identifying the structure or format of the related location number[s]", + "type": "string", + "enum": [ + "1", + "10", + "11", + "15", + "21", + "33", + "6", + "9", + "91", + "92", + "A1", + "BE", + "D", + "K", + "TPL", + "UL" + ], + "enumDescriptions": { + "1": { + "description": "Duns Number" + }, + "10": { + "description": "Department of Defense Activity Address Code", + "longDescription": "A six position code that uniquely identifies a Department of Defense unit, activity or organization (DoDDAC)" + }, + "11": { + "description": "Drug Enforcement Administration Number" + }, + "15": { + "description": "Standard Address Number[SAN]" + }, + "21": { + "description": "Health Industry Number" + }, + "33": { + "description": "Commercial and Government Entity", + "longDescription": "A five character identification assigned by the Department of Defense's Defense Logistics Agency used as a standardized method of identifying a given legal entity at a specific location (CAGE)" + }, + "6": { + "description": "Plant Code" + }, + "9": { + "description": "Duns Plus 4 Number" + }, + "91": { + "description": "Seller Location Number" + }, + "92": { + "description": "Buyer Location Number" + }, + "A1": { + "description": "Approver ID" + }, + "BE": { + "description": "Common Language Location Identifier [CLLI]", + "longDescription": "The standard address location code for a specific equipment location as used in the telephone industry" + }, + "D": { + "description": "Census Schedule D", + "longDescription": "Classification of U.S. Customs districts and ports for which shipments are reportable" + }, + "K": { + "description": "Census Schedule K", + "longDescription": "Classification of foreign ports by geographic trade area and country from the Maritime Administration" + }, + "TPL": { + "description": "Third Party Location Number", + "longDescription": "Location number assigned by a third party who was not involved in the buying cycle and is different than the buying and selling location numbers" + }, + "UL": { + "description": "Global Location Number[GLN]" + } + } + }, + "AddressLocationNumber": { + "description": "Unique value assigned to identify a location", + "examples": [ + "11111" + ], + "type": "string" + }, + "AddressName": { + "description": "Primary free-form textual description of a location", + "examples": [ + "SPS Commerce", + "The White House" + ], + "type": "string" + }, + "AddressAlternateName": { + "description": "Additional free-form description of a location", + "examples": [ + "ATTN: Marketing" + ], + "type": "string" + }, + "AddressAlternateName2": { + "description": "Additional free-form description of a location", + "examples": [ + "ATTN: John Doe" + ], + "type": "string" + }, + "Address1": { + "description": "Address information", + "examples": [ + "1600 Pennsylvania Ave NW", + "333 South 7th Street" + ], + "type": "string" + }, + "Address2": { + "description": "Address information", + "examples": [ + "ATTN: The President", + "Suite 1000" + ], + "type": "string" + }, + "Address3": { + "description": "Address information", + "examples": [ + "333 South Seventh Street Tower" + ], + "type": "string" + }, + "Address4": { + "description": "Address information", + "examples": [ + "10th Floor" + ], + "type": "string" + }, + "City": { + "description": "Free-form text for city name", + "examples": [ + "Minneapolis", + "Washington" + ], + "type": "string" + }, + "State": { + "description": "Code[Standard State/Province] as defined by appropriate government agency", + "examples": [ + "DC", + "MN" + ], + "type": "string" + }, + "PostalCode": { + "description": "International postal zone excluding punctuation and blanks[Zip Code for United States]", + "examples": [ + "20500", + "55402" + ], + "type": "string" + }, + "Country": { + "description": "Human readable description identifying the country", + "examples": [ + "US", + "USA" + ], + "type": "string" + }, + "LocationID": { + "description": "Provides further description to the address information. This can be either text or an ID", + "examples": [ + "555555", + "East Location, next to interstate" + ], + "type": "string" + }, + "CountrySubDivision": { + "description": "An administrative division such as a subnational entity, constituent unit, or country subdivision", + "type": "string" + }, + "AddressTaxIdNumber": { + "description": "Unique number assigned by the relevant tax authority to identify a party for use in relation to Value Added Tax[VAT]", + "examples": [ + "999999" + ], + "type": "string" + }, + "AddressTaxExemptNumber": { + "description": "Unique tax exemption number assigned by the relevant tax authority to identify an entity or organization", + "type": "string" + }, + "Contacts": { + "type": "array", + "items": { + "type": "object", + "description": "Provides contact information", + "additionalProperties": false, + "required": [], + "properties": { + "ContactTypeCode": { + "description": "Code identifying a type of contact", + "type": "string", + "enum": [ + "AL", + "BD", + "BI", + "CH", + "CR", + "EX", + "HM", + "IC", + "MRP", + "OC", + "RE", + "SC", + "SGN", + "SR", + "TIC" + ], + "enumDescriptions": { + "AL": { + "description": "Alternate Information Contact" + }, + "BD": { + "description": "Buyer Name or Department" + }, + "BI": { + "description": "Bill Inquiry Contact" + }, + "CH": { + "description": "Change Order Approver" + }, + "CR": { + "description": "Buyer Customer Relations" + }, + "EX": { + "description": "Expeditor" + }, + "HM": { + "description": "Hazardous Material Contact", + "longDescription": "Who to contact regarding inquiries or emergencies for a hazardous load" + }, + "IC": { + "description": "Primary Information Contact" + }, + "MRP": { + "description": "Material Requirements Planning Controller", + "longDescription": "Person or persons responsible for monitoring material availability [MRP]" + }, + "OC": { + "description": "Order Contact" + }, + "RE": { + "description": "Receiving Contact", + "longDescription": "The recipient receiving the merchandise" + }, + "SC": { + "description": "Shipping Contact", + "longDescription": "Point of contact for shipping information" + }, + "SGN": { + "description": "Signed By", + "longDescription": "Individual who signed related documents" + }, + "SR": { + "description": "Sales Representative or Department" + }, + "TIC": { + "description": "Technical Representative", + "longDescription": "Point of contact for technical information" + } + } + }, + "ContactName": { + "description": "Free-form name", + "examples": [ + "SPS Commerce" + ], + "type": "string" + }, + "PrimaryPhone": { + "description": "Phone number of contact listed", + "examples": [ + "866-245-8100" + ], + "type": "string" + }, + "PrimaryFax": { + "description": "Fax number of contact listed", + "examples": [ + "612-435-9401" + ], + "type": "string" + }, + "PrimaryEmail": { + "description": "E-mail address for contact listed", + "examples": [ + "info@spscommerce.com" + ], + "type": "string" + }, + "AdditionalContactDetails": { + "type": "array", + "items": { + "type": "object", + "description": "This group should be used if the associated normalized fields already contain information.", + "additionalProperties": false, + "required": [], + "properties": { + "ContactQual": { + "description": "Indicates the method of contact", + "type": "string", + "enum": [ + "AU", + "CP", + "EX", + "FT", + "HP", + "NP", + "WP", + "X4" + ], + "enumDescriptions": { + "AU": { + "description": "Defense Switched Network", + "longDescription": "The Defense Switched Network (DSN) is the primary system of interbase communication for the U.S. Department of Defense" + }, + "CP": { + "description": "Cell Phone" + }, + "EX": { + "description": "Telephone Extension", + "longDescription": "An additional telephone set that is connected to the same telephone line" + }, + "FT": { + "description": "Federal Telecommunications System", + "longDescription": "A long-distance telephone network serving the civilian agencies of the United States federal government" + }, + "HP": { + "description": "Home Phone" + }, + "NP": { + "description": "Nighttime Phone" + }, + "WP": { + "description": "Work Phone" + }, + "X4": { + "description": "X400 Address" + } + } + }, + "ContactID": { + "description": "The value of the identified contact", + "examples": [ + "999-999-9999" + ], + "type": "string" + } + } + } + }, + "ContactReference": { + "description": "Additional field to clarify a contact", + "examples": [ + "ext: 451" + ], + "type": "string" + } + } + } + }, + "References": { + "type": "array", + "items": { + "type": "object", + "description": "Supplemental information supporting the transaction", + "additionalProperties": false, + "required": [], + "properties": { + "ReferenceQual": { + "description": "Code specifying the type of data in the ReferenceID/ReferenceDescription", + "type": "string" + }, + "ReferenceID": { + "description": "Value as defined by the ReferenceQual", + "type": "string" + } + } + } + }, + "Dates": { + "type": "array", + "items": { + "type": "object", + "description": "Provides date and time information", + "additionalProperties": false, + "required": [], + "properties": { + "DateTimeQualifier": { + "description": "Code specifying the type of date", + "type": "string" + }, + "Date": { + "description": "A specific day", + "examples": [ + "2012-10-31", + "2013-12-21" + ], + "type": "string", + "format": "date" + }, + "Time": { + "description": "All standard XML formats are accepted.", + "examples": [ + "16:13:03-05:00" + ], + "type": "string", + "format": "time" + }, + "DateTimePeriod": { + "description": "A date, time, or range of dates and times", + "type": "string" + } + } + } + } + } + } + }, + "Notes": { + "type": "array", + "items": { + "type": "object", + "description": "Supplemental text for the transaction", + "additionalProperties": false, + "required": [], + "properties": { + "NoteCode": { + "description": "Code specifying the type of note", + "type": "string", + "enum": [ + "CCG", + "GEN", + "GFT", + "MKG", + "PCK", + "PRN", + "RTN", + "SHP", + "SPE", + "TPA" + ], + "enumDescriptions": { + "CCG": { + "description": "Customization", + "longDescription": "i.e Need a specific part for a specific year vehicle" + }, + "GEN": { + "description": "General Note" + }, + "GFT": { + "description": "Gift Note", + "longDescription": "i.e. Indicates no pricing on packing slip and a message to the receiver" + }, + "MKG": { + "description": "Marketing Message", + "longDescription": "i.e. If you bought this product, you might like this other product" + }, + "PCK": { + "description": "Packing Slip", + "longDescription": "Hard-coded notes to be placed on the packing slip" + }, + "PRN": { + "description": "Personalization", + "longDescription": "i.e. Your name on this blanket" + }, + "RTN": { + "description": "Return Instructions", + "longDescription": "i.e. If you need to return this product" + }, + "SHP": { + "description": "Shipping Note", + "longDescription": "Ship with another order: CarrierNotes" + }, + "SPE": { + "description": "Special Instructions", + "longDescription": "i.e. This needs to be packaged a specific way" + }, + "TPA": { + "description": "Trading Partner Agreement", + "longDescription": "Textual information regarding how to refer to, or comply with, the agreement of the trading partner" + } + } + }, + "Note": { + "description": "Free-form textual description of the note", + "examples": [ + "REPEAT LOGO PREVIOUS ORDER" + ], + "type": "string" + }, + "LanguageCode": { + "description": "Code designating the language used in text. ISO 639 language code", + "examples": [ + "ENG" + ], + "type": "string" + } + } + } + }, + "Miscellaneous": { + "type": "array", + "items": { + "type": "object", + "description": "Provides additional miscellaneous information", + "additionalProperties": false, + "required": [], + "properties": { + "Qualifier1": { + "description": "Code qualifying the miscellaneous data element", + "type": "string" + }, + "Description1": { + "description": "Free-form description of the miscellaneous element", + "type": "string" + }, + "Qualifier2": { + "description": "Code qualifying the miscellaneous data element", + "type": "string" + }, + "Description2": { + "description": "Free-form description of the miscellaneous element", + "type": "string" + } + } + } + } + } + }, + "LineItems": { + "type": "object", + "description": "Encloses all document line item elements", + "additionalProperties": false, + "required": [ + "LineItem" + ], + "properties": { + "LineItem": { + "type": "array", + "items": { + "type": "object", + "description": "Encloses all document line item elements", + "additionalProperties": false, + "required": [ + "ItemDetail" + ], + "properties": { + "ItemDetail": { + "type": "object", + "description": "Contains the commonly used fields in the line item level of the transaction", + "additionalProperties": false, + "required": [ + "AdjReasonCode", + "QtyAdjusted", + "QtyAdjustedUOM" + ], + "properties": { + "LineSequenceNumber": { + "description": "For an initiated document, this is a unique number for the line item[s]. For a return transaction, this number should be the same as what was received from the source transaction.", + "examples": [ + "01", + "02", + "08" + ], + "type": "string" + }, + "ApplicationId": { + "description": "ERP generated code to uniquely identify the item", + "examples": [ + "980023" + ], + "type": "string" + }, + "BuyerPartNumber": { + "description": "Buyer's primary product identifier", + "examples": [ + "9999-SPS" + ], + "type": "string" + }, + "VendorPartNumber": { + "description": "Vendor's primary product identifier", + "examples": [ + "11155-559999" + ], + "type": "string" + }, + "ConsumerPackageCode": { + "description": "Consumer level or customer unit product identification number", + "examples": [ + "093597609541" + ], + "type": "string" + }, + "GTIN": { + "description": "Global Trade Item Number which is an item identifier that encompasses all product identification numbers such as UPC, EAN, ITF, etc. and can be assigned at various packing levels", + "examples": [ + "12345678901234" + ], + "type": "string" + }, + "UPCCaseCode": { + "description": "Package or case level product identification number", + "examples": [ + "98765432101" + ], + "type": "string" + }, + "NatlDrugCode": { + "description": "National Drug Code or NDC is a unique, universal product identifier for drugs. Primarily used in the pharmaceutical industry", + "examples": [ + "51456-299" + ], + "type": "string" + }, + "PartNumberQualifier1": { + "description": "Qualifier describing the additional product identification number", + "type": "string", + "enum": [ + "AR", + "B8", + "BO", + "CB", + "IS", + "IT", + "MF", + "MG", + "MN", + "SE", + "SK", + "UP", + "VP" + ], + "enumDescriptions": { + "AR": { + "description": "Supplier Catalog Number" + }, + "B8": { + "description": "Buyer's Item Number" + }, + "BO": { + "description": "Buyer's Option Number" + }, + "CB": { + "description": "Buyer's Catalog Number" + }, + "IS": { + "description": "ISBN Number" + }, + "IT": { + "description": "Buyer's Internal Product Group Code" + }, + "MF": { + "description": "Manufacturer's Part Number" + }, + "MG": { + "description": "Manufacturer's Number" + }, + "MN": { + "description": "Model Number" + }, + "SE": { + "description": "Serial Number" + }, + "SK": { + "description": "SKU" + }, + "UP": { + "description": "UPC Consumer Package Code" + }, + "VP": { + "description": "Vendor's Part Number" + } + } + }, + "PartNumber1": { + "description": "Additional product identification number as described by the PartNumberQualifier1", + "type": "string" + }, + "PartNumberQualifier2": { + "description": "Qualifier describing the additional product identification number", + "type": "string", + "enum": [ + "AR", + "B8", + "BO", + "CB", + "IS", + "IT", + "MF", + "MG", + "MN", + "SE", + "SK", + "UP", + "VP" + ], + "enumDescriptions": { + "AR": { + "description": "Supplier Catalog Number" + }, + "B8": { + "description": "Buyer's Item Number" + }, + "BO": { + "description": "Buyer's Option Number" + }, + "CB": { + "description": "Buyer's Catalog Number" + }, + "IS": { + "description": "ISBN Number" + }, + "IT": { + "description": "Buyer's Internal Product Group Code" + }, + "MF": { + "description": "Manufacturer's Part Number" + }, + "MG": { + "description": "Manufacturer's Number" + }, + "MN": { + "description": "Model Number" + }, + "SE": { + "description": "Serial Number" + }, + "SK": { + "description": "SKU" + }, + "UP": { + "description": "UPC Consumer Package Code" + }, + "VP": { + "description": "Vendor's Part Number" + } + } + }, + "PartNumber2": { + "description": "Additional product identification number as described by the PartNumberQualifier2", + "type": "string" + }, + "PartNumberQualifier3": { + "description": "Qualifier describing the additional product identification number", + "type": "string", + "enum": [ + "AR", + "B8", + "BO", + "CB", + "IS", + "IT", + "MF", + "MG", + "MN", + "SE", + "SK", + "UP", + "VP" + ], + "enumDescriptions": { + "AR": { + "description": "Supplier Catalog Number" + }, + "B8": { + "description": "Buyer's Item Number" + }, + "BO": { + "description": "Buyer's Option Number" + }, + "CB": { + "description": "Buyer's Catalog Number" + }, + "IS": { + "description": "ISBN Number" + }, + "IT": { + "description": "Buyer's Internal Product Group Code" + }, + "MF": { + "description": "Manufacturer's Part Number" + }, + "MG": { + "description": "Manufacturer's Number" + }, + "MN": { + "description": "Model Number" + }, + "SE": { + "description": "Serial Number" + }, + "SK": { + "description": "SKU" + }, + "UP": { + "description": "UPC Consumer Package Code" + }, + "VP": { + "description": "Vendor's Part Number" + } + } + }, + "PartNumber3": { + "description": "Additional product identification number as described by the PartNumberQualifier3", + "type": "string" + }, + "PartNumberQualifier4": { + "description": "Qualifier describing the additional product identification number", + "type": "string", + "enum": [ + "AR", + "B8", + "BO", + "CB", + "IS", + "IT", + "MF", + "MG", + "MN", + "SE", + "SK", + "UP", + "VP" + ], + "enumDescriptions": { + "AR": { + "description": "Supplier Catalog Number" + }, + "B8": { + "description": "Buyer's Item Number" + }, + "BO": { + "description": "Buyer's Option Number" + }, + "CB": { + "description": "Buyer's Catalog Number" + }, + "IS": { + "description": "ISBN Number" + }, + "IT": { + "description": "Buyer's Internal Product Group Code" + }, + "MF": { + "description": "Manufacturer's Part Number" + }, + "MG": { + "description": "Manufacturer's Number" + }, + "MN": { + "description": "Model Number" + }, + "SE": { + "description": "Serial Number" + }, + "SK": { + "description": "SKU" + }, + "UP": { + "description": "UPC Consumer Package Code" + }, + "VP": { + "description": "Vendor's Part Number" + } + } + }, + "PartNumber4": { + "description": "Additional product identification number as described by the PartNumberQualifier4", + "type": "string" + }, + "PartDescription1": { + "description": "Product description of the item", + "type": "string" + }, + "PartDescription2": { + "description": "Additional product description of the item", + "type": "string" + }, + "AdjReasonCode": { + "description": "Code indicating the reason for the inventory adjustment", + "type": "string", + "enum": [ + "03", + "04", + "05", + "06", + "07", + "08", + "51", + "52", + "53", + "54", + "55", + "56", + "88", + "AA", + "AB", + "AC", + "AD", + "AE", + "AF", + "AG", + "AH", + "AI", + "AJ", + "AK", + "AL", + "AM", + "AN", + "AP", + "AQ", + "AR", + "AS", + "AT", + "AU", + "AV", + "AW", + "AX", + "AY", + "BA", + "BD", + "BK", + "BM", + "BN", + "BR", + "BS", + "BT", + "CD", + "CO", + "CR", + "CS", + "PC", + "TC", + "UD" + ], + "enumDescriptions": { + "03": { + "description": "Shipment Greater Than Previously Reported" + }, + "04": { + "description": "Receipt Less Than Previously Reported" + }, + "05": { + "description": "Product Put on Hold" + }, + "06": { + "description": "Book Adjustment Decrease" + }, + "07": { + "description": "Product Dumped or Destroyed" + }, + "08": { + "description": "Product Put in Quality Inspection" + }, + "51": { + "description": "Unable-to-Locate (UTL) Product Located" + }, + "52": { + "description": "Recoup/Rework of Damaged Product" + }, + "53": { + "description": "Shipment Less Than Previously Reported" + }, + "54": { + "description": "Receipt Greater Than Previously Reported" + }, + "55": { + "description": "Product Taken Off Hold" + }, + "56": { + "description": "Book Adjustment Increase" + }, + "88": { + "description": "Product Removed from Quality Inspection" + }, + "AA": { + "description": "Physical Count" + }, + "AB": { + "description": "Accounting Error" + }, + "AC": { + "description": "Condition Change" + }, + "AD": { + "description": "Purpose Change" + }, + "AE": { + "description": "Reidentification" + }, + "AF": { + "description": "Stock Number Change" + }, + "AG": { + "description": "Ownership Change" + }, + "AH": { + "description": "Other" + }, + "AI": { + "description": "Disaster" + }, + "AJ": { + "description": "Survey" + }, + "AK": { + "description": "Transfer" + }, + "AL": { + "description": "Capitalization" + }, + "AM": { + "description": "Missing UII/Serial Number" + }, + "AN": { + "description": "Unit of Issue Change" + }, + "AP": { + "description": "Product/Formula Evaluation and Testing" + }, + "AQ": { + "description": "UII/Serial Number Mismatch" + }, + "AR": { + "description": "Order Shipment Error" + }, + "AS": { + "description": "Recouping" + }, + "AT": { + "description": "Prepack Preparation" + }, + "AU": { + "description": "Damaged in Facility" + }, + "AV": { + "description": "Damaged in Transit" + }, + "AW": { + "description": "Product Recall" + }, + "AX": { + "description": "Shelf-life Obsolescence" + }, + "AY": { + "description": "Receipt Error" + }, + "BA": { + "description": "Operating Variance" + }, + "BD": { + "description": "Nonrecoverable" + }, + "BK": { + "description": "Off Specification" + }, + "BM": { + "description": "Replacement" + }, + "BN": { + "description": "Tariff Deduction" + }, + "BR": { + "description": "Regrade" + }, + "BS": { + "description": "Downgrade" + }, + "BT": { + "description": "Additive" + }, + "CD": { + "description": "Product Donations" + }, + "CO": { + "description": "Consignment" + }, + "CR": { + "description": "Customer Returned Inventory" + }, + "CS": { + "description": "Product Samples" + }, + "PC": { + "description": "Product Reserved for Customer" + }, + "TC": { + "description": "Tax Conversion" + }, + "UD": { + "description": "Unauthorized Destruction" + } + } + }, + "QtyAdjusted": { + "description": "Quantity of the item being adjusted", + "examples": [ + 10, + 25.5 + ], + "type": "number" + }, + "QtyAdjustedUOM": { + "description": "Unit of measure for the adjusted quantity", + "type": "string", + "enum": [ + "BG", + "BX", + "CA", + "CT", + "DZ", + "EA", + "FT", + "GA", + "KG", + "LB", + "LT", + "OZ", + "PC", + "PK", + "RL", + "SF", + "YD" + ], + "enumDescriptions": { + "BG": { + "description": "Bag" + }, + "BX": { + "description": "Box" + }, + "CA": { + "description": "Case" + }, + "CT": { + "description": "Carton" + }, + "DZ": { + "description": "Dozen" + }, + "EA": { + "description": "Each" + }, + "FT": { + "description": "Foot" + }, + "GA": { + "description": "Gallon" + }, + "KG": { + "description": "Kilogram" + }, + "LB": { + "description": "Pound" + }, + "LT": { + "description": "Liter" + }, + "OZ": { + "description": "Ounce" + }, + "PC": { + "description": "Piece" + }, + "PK": { + "description": "Pack" + }, + "RL": { + "description": "Roll" + }, + "SF": { + "description": "Square Foot" + }, + "YD": { + "description": "Yard" + } + } + }, + "WarehouseLotID": { + "description": "Warehouse lot identification number", + "type": "string" + }, + "Weight1": { + "description": "Numeric value of weight", + "type": "number" + }, + "WeightQualifier1": { + "description": "Code qualifying the weight", + "type": "string", + "enum": [ + "G", + "N" + ], + "enumDescriptions": { + "G": { + "description": "Gross Weight" + }, + "N": { + "description": "Net Weight" + } + } + }, + "WeightUOM1": { + "description": "Unit of measure for weight", + "type": "string", + "enum": [ + "01", + "GR", + "KG", + "LB", + "OZ", + "TO" + ], + "enumDescriptions": { + "01": { + "description": "Actual Net Weight" + }, + "GR": { + "description": "Gram" + }, + "KG": { + "description": "Kilogram" + }, + "LB": { + "description": "Pound" + }, + "OZ": { + "description": "Ounce" + }, + "TO": { + "description": "Metric Ton" + } + } + }, + "Weight2": { + "description": "Numeric value of weight", + "type": "number" + }, + "WeightQualifier2": { + "description": "Code qualifying the weight", + "type": "string", + "enum": [ + "G", + "N" + ], + "enumDescriptions": { + "G": { + "description": "Gross Weight" + }, + "N": { + "description": "Net Weight" + } + } + }, + "WeightUOM2": { + "description": "Unit of measure for weight", + "type": "string", + "enum": [ + "01", + "GR", + "KG", + "LB", + "OZ", + "TO" + ], + "enumDescriptions": { + "01": { + "description": "Actual Net Weight" + }, + "GR": { + "description": "Gram" + }, + "KG": { + "description": "Kilogram" + }, + "LB": { + "description": "Pound" + }, + "OZ": { + "description": "Ounce" + }, + "TO": { + "description": "Metric Ton" + } + } + }, + "InventoryTransaction": { + "description": "Code indicating the type of inventory transaction", + "type": "string", + "enum": [ + "AD", + "TF" + ], + "enumDescriptions": { + "AD": { + "description": "Adjustment" + }, + "TF": { + "description": "Transfer" + } + } + }, + "ExtendedItemTotal": { + "description": "Dollar amount of the extended item total", + "type": "number" + } + } + }, + "References": { + "type": "array", + "items": { + "type": "object", + "description": "Supplemental information supporting the transaction", + "additionalProperties": false, + "required": [], + "properties": { + "ReferenceQual": { + "description": "Code specifying the type of data in the ReferenceID/ReferenceDescription", + "type": "string", + "enum": [ + "02", + "06", + "12", + "19", + "2I", + "AH", + "AN", + "AO", + "BM", + "BT", + "BY", + "CN", + "CT", + "DO", + "GS", + "IL", + "IN", + "IT", + "IV", + "KW", + "LO", + "MK", + "OC", + "PD", + "PK", + "PO", + "SE", + "SI", + "TN", + "VN", + "WH", + "WLT", + "WS" + ], + "enumDescriptions": { + "02": { + "description": "Society for Worldwide Interbank Financial Telecommunication", + "longDescription": "A unique identification code for a particular bank" + }, + "06": { + "description": "System Number" + }, + "12": { + "description": "Billing Account Number", + "longDescription": "Account number in a trading partner's accounts receivable system" + }, + "19": { + "description": "Division", + "longDescription": "Different entities belonging to the same parent company" + }, + "2I": { + "description": "Tracking Number" + }, + "AH": { + "description": "Agreement Number" + }, + "AN": { + "description": "Appointment Number" + }, + "AO": { + "description": "Account Suffix" + }, + "BM": { + "description": "Bill of Lading Number" + }, + "BT": { + "description": "Batch Number" + }, + "BY": { + "description": "Repair Category Number" + }, + "CN": { + "description": "Carrier PRO Number", + "longDescription": "Unique number assigned by the carrier to track a shipment" + }, + "CT": { + "description": "Contract Number" + }, + "DO": { + "description": "Delivery Order Number" + }, + "GS": { + "description": "Internal Vendor Number" + }, + "IL": { + "description": "Internal Order Number" + }, + "IN": { + "description": "Invoice Number" + }, + "IT": { + "description": "Internal Customer Number" + }, + "IV": { + "description": "Seller's Invoice Number" + }, + "KW": { + "description": "Certification or License Number" + }, + "LO": { + "description": "Load Planning Number" + }, + "MK": { + "description": "Medical Record Identification Number" + }, + "OC": { + "description": "Old Order Number" + }, + "PD": { + "description": "Promotion Number" + }, + "PK": { + "description": "Packing List Number" + }, + "PO": { + "description": "Purchase Order Number" + }, + "SE": { + "description": "Serial Number" + }, + "SI": { + "description": "Shipper's Identifying Number for Shipment" + }, + "TN": { + "description": "Transaction Reference Number" + }, + "VN": { + "description": "Vendor Order Number" + }, + "WH": { + "description": "Master Reference Link Number", + "longDescription": "Used primarily by logistic firms to associate order documents to warehouse shipments when documents are received independently or not simultaneously but need to be fulfilled at the same time" + }, + "WLT": { + "description": "Warehouse Lot Number", + "longDescription": "Number identifying the section within an area of a storage facility. This further describes the position within the warehouse storage location number" + }, + "WS": { + "description": "Warehouse Storage Location Number", + "longDescription": "Number to identify a specific area within a storage facility" + } + } + }, + "ReferenceID": { + "description": "Value as defined by the ReferenceQual", + "type": "string" + }, + "Description": { + "description": "Free-form textual description to clarify the related data elements and their content", + "examples": [ + "New products only. Do not reuse packaging" + ], + "type": "string" + } + } + } + }, + "Dates": { + "type": "array", + "items": { + "type": "object", + "description": "Provides date and time information", + "additionalProperties": false, + "required": [], + "properties": { + "DateTimeQualifier": { + "description": "Code specifying the type of date", + "type": "string", + "enum": [ + "001", + "002", + "007", + "011", + "017", + "035", + "036", + "050", + "067", + "068", + "097", + "118", + "196", + "197", + "328", + "369", + "370", + "371", + "372", + "405", + "510", + "511", + "636", + "807", + "945", + "ACT", + "TRM" + ], + "enumDescriptions": { + "001": { + "description": "Cancel Date" + }, + "002": { + "description": "Requested Delivery" + }, + "007": { + "description": "Effective" + }, + "011": { + "description": "Actual Ship" + }, + "017": { + "description": "Estimated Delivery" + }, + "035": { + "description": "Actual Delivery" + }, + "036": { + "description": "Discontinued", + "longDescription": "Date when something is no longer available/valid" + }, + "050": { + "description": "Received Date" + }, + "067": { + "description": "Current Schedule Delivery" + }, + "068": { + "description": "Scheduled Ship" + }, + "097": { + "description": "Document/Transaction Date" + }, + "118": { + "description": "Requested Pick Up Date" + }, + "196": { + "description": "Start Date" + }, + "197": { + "description": "End Date" + }, + "328": { + "description": "Change" + }, + "369": { + "description": "Estimated Departure Date" + }, + "370": { + "description": "Actual Departure Date" + }, + "371": { + "description": "Estimated Arrival Date", + "longDescription": "The expected date of receiving a good or service" + }, + "372": { + "description": "Actual Arrival Date" + }, + "405": { + "description": "Production", + "longDescription": "Indicates the date that an item or good is created or manufactured" + }, + "510": { + "description": "Date Packed" + }, + "511": { + "description": "Shelf Life Expiration", + "longDescription": "Date when a product can not be legally sold due to it being unfit for use or consumption" + }, + "636": { + "description": "Last Update Date", + "longDescription": "The most recent date at which an update was made to the transaction" + }, + "807": { + "description": "Stored" + }, + "945": { + "description": "Activity" + }, + "ACT": { + "description": "Active Date", + "longDescription": "The date at which the document is effective for terms and contractual agreements" + }, + "TRM": { + "description": "Transmission Date", + "longDescription": "Date the document was sent" + } + } + }, + "Date": { + "description": "A specific day", + "examples": [ + "2012-10-31", + "2013-12-21" + ], + "type": "string", + "format": "date" + }, + "Time": { + "description": "All standard XML formats are accepted.", + "examples": [ + "16:13:03-05:00" + ], + "type": "string", + "format": "time" + }, + "DateTimePeriod": { + "description": "A date, time, or range of dates and times", + "type": "string" + } + } + } + }, + "Address": { + "type": "array", + "items": { + "type": "object", + "description": "Represent an entity such as an organizational, physical location, property, or individual", + "additionalProperties": false, + "required": [], + "properties": { + "AddressTypeCode": { + "description": "Code identifying an organizational entity, a physical location, property, or an individual", + "type": "string", + "enum": [ + "88", + "9C", + "AG", + "BE", + "BK", + "BO", + "BOWN", + "BT", + "BY", + "CB", + "CN", + "CQ", + "CS", + "CT", + "DA", + "DE", + "DS", + "DV", + "ESIID", + "FR", + "FW", + "IA", + "MF", + "N1", + "NES", + "OB", + "PATI", + "PF", + "PLCO", + "POAR", + "PODI", + "POEN", + "POOR", + "PR", + "PW", + "RAMP", + "RI", + "RL", + "RT", + "SF", + "SO", + "ST", + "TO", + "TP", + "TS", + "VN", + "WH", + "Z7" + ], + "enumDescriptions": { + "88": { + "description": "Approver", + "longDescription": "Party approving claim for payment" + }, + "9C": { + "description": "Country of Destination" + }, + "AG": { + "description": "Agent" + }, + "BE": { + "description": "Beneficiary" + }, + "BK": { + "description": "Bank" + }, + "BO": { + "description": "Broker" + }, + "BOWN": { + "description": "Brand Owner", + "longDescription": "Party who owns the brand of the item[s]" + }, + "BT": { + "description": "Bill to Party", + "longDescription": "Party receiving invoice information" + }, + "BY": { + "description": "Buying Party", + "longDescription": "Party who is purchasing the product and/or service, but is not necessarily initiating the order" + }, + "CB": { + "description": "Customs Broker" + }, + "CN": { + "description": "Consignee" + }, + "CQ": { + "description": "Corporate Office", + "longDescription": "Used to indicate the location of the business's headquarters" + }, + "CS": { + "description": "Consolidator" + }, + "CT": { + "description": "Country of Origin" + }, + "DA": { + "description": "Delivery Address" + }, + "DE": { + "description": "Depositor" + }, + "DS": { + "description": "Distributor", + "longDescription": "Party who purchases goods, promotes and resales those goods to retailers at a markup or fee" + }, + "DV": { + "description": "Division", + "longDescription": "Component of a business entity.", + "examples": [ + "Lady Footlocker" + ] + }, + "ESIID": { + "description": "Electric Service Identifier ID", + "longDescription": "17 or 22-digit number used to identify a unique point of electric service delivery to a home or business" + }, + "FR": { + "description": "Message From", + "longDescription": "Used primary on reporting documents where there is no buyer or seller" + }, + "FW": { + "description": "Forwarder", + "longDescription": "Also called Freight Forwarder, or Forwarding Agent" + }, + "IA": { + "description": "Install Address", + "longDescription": "Location of installation" + }, + "MF": { + "description": "Manufacturer of Goods" + }, + "N1": { + "description": "Notify Party", + "longDescription": "Party which must be made aware of a shipment arriving at a location. Typically used with imports/exports" + }, + "NES": { + "description": "New Store" + }, + "OB": { + "description": "Ordered By", + "longDescription": "Party who initiates an order for goods and/or services, but is not necessarily purchasing it" + }, + "PATI": { + "description": "Patient", + "longDescription": "A location of a person receiving or registered to receive medical treatment" + }, + "PF": { + "description": "Party to Receive Freight Bill" + }, + "PLCO": { + "description": "Place of Consumption", + "longDescription": "A location where goods enter the marketplace of the importing country" + }, + "POAR": { + "description": "Port Of Arrival", + "longDescription": "A location where goods enter a country but may not require passing through customs" + }, + "PODI": { + "description": "Port of Discharge", + "longDescription": "A location where goods are unloaded" + }, + "POEN": { + "description": "Port of Entry", + "longDescription": "A border crossing where persons and/or goods legally [via customs] enter a country" + }, + "POOR": { + "description": "Port Of Origin" + }, + "PR": { + "description": "Payer", + "longDescription": "Party responsible for initiating payment" + }, + "PW": { + "description": "Pickup Address", + "longDescription": "Location in which the shipment will be picked up from" + }, + "RAMP": { + "description": "Repair and Maintenance Provider", + "longDescription": "A location where repair and maintenance is administered" + }, + "RI": { + "description": "Remit To" + }, + "RL": { + "description": "Reporting Location" + }, + "RT": { + "description": "Return Address" + }, + "SF": { + "description": "Ship From" + }, + "SO": { + "description": "Sold To" + }, + "ST": { + "description": "Ship To" + }, + "TO": { + "description": "Message To", + "longDescription": "Used primary on reporting documents where there is no buyer or seller" + }, + "TP": { + "description": "Transportation Provider" + }, + "TS": { + "description": "Transshipment Location", + "longDescription": "Transfer point between different carriers or between different vehicles of the same carrier" + }, + "VN": { + "description": "Vendor" + }, + "WH": { + "description": "Warehouse" + }, + "Z7": { + "description": "Mark for Party" + } + } + }, + "LocationCodeQualifier": { + "description": "Code identifying the structure or format of the related location number[s]", + "type": "string", + "enum": [ + "1", + "10", + "11", + "15", + "21", + "33", + "6", + "9", + "91", + "92", + "A1", + "BE", + "D", + "K", + "TPL", + "UL" + ], + "enumDescriptions": { + "1": { + "description": "Duns Number" + }, + "10": { + "description": "Department of Defense Activity Address Code", + "longDescription": "A six position code that uniquely identifies a Department of Defense unit, activity or organization (DoDDAC)" + }, + "11": { + "description": "Drug Enforcement Administration Number" + }, + "15": { + "description": "Standard Address Number[SAN]" + }, + "21": { + "description": "Health Industry Number" + }, + "33": { + "description": "Commercial and Government Entity", + "longDescription": "A five character identification assigned by the Department of Defense's Defense Logistics Agency used as a standardized method of identifying a given legal entity at a specific location (CAGE)" + }, + "6": { + "description": "Plant Code" + }, + "9": { + "description": "Duns Plus 4 Number" + }, + "91": { + "description": "Seller Location Number" + }, + "92": { + "description": "Buyer Location Number" + }, + "A1": { + "description": "Approver ID" + }, + "BE": { + "description": "Common Language Location Identifier [CLLI]", + "longDescription": "The standard address location code for a specific equipment location as used in the telephone industry" + }, + "D": { + "description": "Census Schedule D", + "longDescription": "Classification of U.S. Customs districts and ports for which shipments are reportable" + }, + "K": { + "description": "Census Schedule K", + "longDescription": "Classification of foreign ports by geographic trade area and country from the Maritime Administration" + }, + "TPL": { + "description": "Third Party Location Number", + "longDescription": "Location number assigned by a third party who was not involved in the buying cycle and is different than the buying and selling location numbers" + }, + "UL": { + "description": "Global Location Number[GLN]" + } + } + }, + "AddressLocationNumber": { + "description": "Unique value assigned to identify a location", + "examples": [ + "11111" + ], + "type": "string" + }, + "AddressName": { + "description": "Primary free-form textual description of a location", + "examples": [ + "SPS Commerce", + "The White House" + ], + "type": "string" + }, + "AddressAlternateName": { + "description": "Additional free-form description of a location", + "examples": [ + "ATTN: Marketing" + ], + "type": "string" + }, + "AddressAlternateName2": { + "description": "Additional free-form description of a location", + "examples": [ + "ATTN: John Doe" + ], + "type": "string" + }, + "Address1": { + "description": "Address information", + "examples": [ + "1600 Pennsylvania Ave NW", + "333 South 7th Street" + ], + "type": "string" + }, + "Address2": { + "description": "Address information", + "examples": [ + "ATTN: The President", + "Suite 1000" + ], + "type": "string" + }, + "Address3": { + "description": "Address information", + "examples": [ + "333 South Seventh Street Tower" + ], + "type": "string" + }, + "Address4": { + "description": "Address information", + "examples": [ + "10th Floor" + ], + "type": "string" + }, + "City": { + "description": "Free-form text for city name", + "examples": [ + "Minneapolis", + "Washington" + ], + "type": "string" + }, + "State": { + "description": "Code[Standard State/Province] as defined by appropriate government agency", + "examples": [ + "DC", + "MN" + ], + "type": "string" + }, + "PostalCode": { + "description": "International postal zone excluding punctuation and blanks[Zip Code for United States]", + "examples": [ + "20500", + "55402" + ], + "type": "string" + }, + "Country": { + "description": "Human readable description identifying the country", + "examples": [ + "US", + "USA" + ], + "type": "string" + }, + "LocationID": { + "description": "Provides further description to the address information. This can be either text or an ID", + "examples": [ + "555555", + "East Location, next to interstate" + ], + "type": "string" + }, + "CountrySubDivision": { + "description": "An administrative division such as a subnational entity, constituent unit, or country subdivision", + "type": "string" + }, + "AddressTaxIdNumber": { + "description": "Unique number assigned by the relevant tax authority to identify a party for use in relation to Value Added Tax[VAT]", + "examples": [ + "999999" + ], + "type": "string" + }, + "AddressTaxExemptNumber": { + "description": "Unique tax exemption number assigned by the relevant tax authority to identify an entity or organization", + "type": "string" + }, + "References": { + "type": "array", + "items": { + "type": "object", + "description": "Supplemental information supporting the transaction", + "additionalProperties": false, + "required": [], + "properties": { + "ReferenceQual": { + "description": "Code specifying the type of data in the ReferenceID/ReferenceDescription", + "type": "string" + }, + "ReferenceID": { + "description": "Value as defined by the ReferenceQual", + "type": "string" + } + } + } + }, + "Dates": { + "type": "array", + "items": { + "type": "object", + "description": "Provides date and time information", + "additionalProperties": false, + "required": [], + "properties": { + "DateTimeQualifier": { + "description": "Code specifying the type of date", + "type": "string" + }, + "Date": { + "description": "A specific day", + "examples": [ + "2012-10-31", + "2013-12-21" + ], + "type": "string", + "format": "date" + }, + "Time": { + "description": "All standard XML formats are accepted.", + "examples": [ + "16:13:03-05:00" + ], + "type": "string", + "format": "time" + }, + "DateTimePeriod": { + "description": "A date, time, or range of dates and times", + "type": "string" + } + } + } + } + } + } + }, + "Miscellaneous": { + "type": "array", + "items": { + "type": "object", + "description": "Provides additional miscellaneous information", + "additionalProperties": false, + "required": [], + "properties": { + "Qualifier1": { + "description": "Code qualifying the miscellaneous data element", + "type": "string" + }, + "Description1": { + "description": "Free-form description of the miscellaneous element", + "type": "string" + }, + "Qualifier2": { + "description": "Code qualifying the miscellaneous data element", + "type": "string" + }, + "Description2": { + "description": "Free-form description of the miscellaneous element", + "type": "string" + } + } + } + } + } + } + } + } + }, + "Summary": { + "type": "object", + "description": "Encloses all document summary elements", + "additionalProperties": false, + "required": [], + "properties": { + "TotalOrders": { + "description": "Total number of line items in the transaction", + "type": "number" + }, + "TotalWeight": { + "description": "Total weight of all items in the transaction", + "type": "number" + }, + "WeightUOM": { + "description": "Unit of measure for the total weight", + "type": "string", + "enum": [ + "01", + "GR", + "KG", + "LB", + "OZ", + "TO" + ], + "enumDescriptions": { + "01": { + "description": "Actual Net Weight" + }, + "GR": { + "description": "Gram" + }, + "KG": { + "description": "Kilogram" + }, + "LB": { + "description": "Pound" + }, + "OZ": { + "description": "Ounce" + }, + "TO": { + "description": "Metric Ton" + } + } + }, + "TotalVolume": { + "description": "Total volume of all items in the transaction", + "type": "number" + }, + "VolumeUOM": { + "description": "Unit of measure for the total volume", + "type": "string", + "enum": [ + "CF", + "CI", + "CR", + "GA", + "LT", + "ML" + ], + "enumDescriptions": { + "CF": { + "description": "Cubic Feet" + }, + "CI": { + "description": "Cubic Inches" + }, + "CR": { + "description": "Cubic Meter" + }, + "GA": { + "description": "Gallon" + }, + "LT": { + "description": "Liter" + }, + "ML": { + "description": "Milliliter" + } + } + } + } + } + } + } + }, + "type": "array", + "items": { + "$ref": "#/definitions/WarehouseInventoryAdjustmentAdvice" + } +} diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdvice.php b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdvice.php new file mode 100644 index 0000000..644110d --- /dev/null +++ b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdvice.php @@ -0,0 +1,54 @@ +meta = WarehouseInventoryAdjustmentAdviceMeta::schema(); + $ownerSchema->addPropertyMapping('Meta', self::names()->meta); + $properties->header = WarehouseInventoryAdjustmentAdviceHeader::schema(); + $ownerSchema->addPropertyMapping('Header', self::names()->header); + $properties->lineItems = WarehouseInventoryAdjustmentAdviceLineItems::schema(); + $ownerSchema->addPropertyMapping('LineItems', self::names()->lineItems); + $properties->summary = WarehouseInventoryAdjustmentAdviceSummary::schema(); + $ownerSchema->addPropertyMapping('Summary', self::names()->summary); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->additionalProperties = false; + $ownerSchema->description = "Provides inventory adjustment details from the warehouse"; + $ownerSchema->required = array( + 'Header', + ); + $ownerSchema->setFromRef('WarehouseInventoryAdjustmentAdvices.json#/definitions/WarehouseInventoryAdjustmentAdvice'); + } +} \ No newline at end of file diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeader.php b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeader.php new file mode 100644 index 0000000..5be3452 --- /dev/null +++ b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeader.php @@ -0,0 +1,73 @@ +headerOrder = WarehouseInventoryAdjustmentAdviceHeaderHeaderOrder::schema(); + $ownerSchema->addPropertyMapping('HeaderOrder', self::names()->headerOrder); + $properties->references = Schema::arr(); + $properties->references->items = WarehouseInventoryAdjustmentAdviceHeaderReferencesItems::schema(); + $ownerSchema->addPropertyMapping('References', self::names()->references); + $properties->dates = Schema::arr(); + $properties->dates->items = WarehouseInventoryAdjustmentAdviceHeaderDatesItems::schema(); + $ownerSchema->addPropertyMapping('Dates', self::names()->dates); + $properties->contacts = Schema::arr(); + $properties->contacts->items = WarehouseInventoryAdjustmentAdviceHeaderContactsItems::schema(); + $ownerSchema->addPropertyMapping('Contacts', self::names()->contacts); + $properties->address = Schema::arr(); + $properties->address->items = WarehouseInventoryAdjustmentAdviceHeaderAddressItems::schema(); + $ownerSchema->addPropertyMapping('Address', self::names()->address); + $properties->notes = Schema::arr(); + $properties->notes->items = WarehouseInventoryAdjustmentAdviceHeaderNotesItems::schema(); + $ownerSchema->addPropertyMapping('Notes', self::names()->notes); + $properties->miscellaneous = Schema::arr(); + $properties->miscellaneous->items = WarehouseInventoryAdjustmentAdviceHeaderMiscellaneousItems::schema(); + $ownerSchema->addPropertyMapping('Miscellaneous', self::names()->miscellaneous); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->additionalProperties = false; + $ownerSchema->description = "Encloses all document header elements"; + $ownerSchema->required = array( + 'HeaderOrder', + ); + } +} \ No newline at end of file diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItems.php b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItems.php new file mode 100644 index 0000000..c90e1c8 --- /dev/null +++ b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItems.php @@ -0,0 +1,351 @@ +addressTypeCode = Schema::string(); + $properties->addressTypeCode->enum = array( + self::CONST_88, + self::CONST_9_C, + self::AG, + self::BE, + self::BK, + self::BO, + self::BOWN, + self::BT, + self::BY, + self::CB, + self::CN, + self::CQ, + self::CS, + self::CT, + self::DA, + self::DE, + self::DS, + self::DV, + self::ESIID, + self::FR, + self::FW, + self::IA, + self::MF, + self::N1, + self::NES, + self::OB, + self::PATI, + self::PF, + self::PLCO, + self::POAR, + self::PODI, + self::POEN, + self::POOR, + self::PR, + self::PW, + self::RAMP, + self::RI, + self::RL, + self::RT, + self::SF, + self::SO, + self::ST, + self::TO, + self::TP, + self::TS, + self::VN, + self::WH, + self::Z7, + ); + $properties->addressTypeCode->description = "Code identifying an organizational entity, a physical location, property, or an individual"; + $ownerSchema->addPropertyMapping('AddressTypeCode', self::names()->addressTypeCode); + $properties->locationCodeQualifier = Schema::string(); + $properties->locationCodeQualifier->enum = array( + self::CONST_1, + self::CONST_10, + self::CONST_11, + self::CONST_15, + self::CONST_21, + self::CONST_33, + self::CONST_6, + self::CONST_9, + self::CONST_91, + self::CONST_92, + self::A1, + self::BE, + self::D, + self::K, + self::TPL, + self::UL, + ); + $properties->locationCodeQualifier->description = "Code identifying the structure or format of the related location number[s]"; + $ownerSchema->addPropertyMapping('LocationCodeQualifier', self::names()->locationCodeQualifier); + $properties->addressLocationNumber = Schema::string(); + $properties->addressLocationNumber->description = "Unique value assigned to identify a location"; + $ownerSchema->addPropertyMapping('AddressLocationNumber', self::names()->addressLocationNumber); + $properties->addressName = Schema::string(); + $properties->addressName->description = "Primary free-form textual description of a location"; + $ownerSchema->addPropertyMapping('AddressName', self::names()->addressName); + $properties->addressAlternateName = Schema::string(); + $properties->addressAlternateName->description = "Additional free-form description of a location"; + $ownerSchema->addPropertyMapping('AddressAlternateName', self::names()->addressAlternateName); + $properties->addressAlternateName2 = Schema::string(); + $properties->addressAlternateName2->description = "Additional free-form description of a location"; + $ownerSchema->addPropertyMapping('AddressAlternateName2', self::names()->addressAlternateName2); + $properties->address1 = Schema::string(); + $properties->address1->description = "Address information"; + $ownerSchema->addPropertyMapping('Address1', self::names()->address1); + $properties->address2 = Schema::string(); + $properties->address2->description = "Address information"; + $ownerSchema->addPropertyMapping('Address2', self::names()->address2); + $properties->address3 = Schema::string(); + $properties->address3->description = "Address information"; + $ownerSchema->addPropertyMapping('Address3', self::names()->address3); + $properties->address4 = Schema::string(); + $properties->address4->description = "Address information"; + $ownerSchema->addPropertyMapping('Address4', self::names()->address4); + $properties->city = Schema::string(); + $properties->city->description = "Free-form text for city name"; + $ownerSchema->addPropertyMapping('City', self::names()->city); + $properties->state = Schema::string(); + $properties->state->description = "Code[Standard State/Province] as defined by appropriate government agency"; + $ownerSchema->addPropertyMapping('State', self::names()->state); + $properties->postalCode = Schema::string(); + $properties->postalCode->description = "International postal zone excluding punctuation and blanks[Zip Code for United States]"; + $ownerSchema->addPropertyMapping('PostalCode', self::names()->postalCode); + $properties->country = Schema::string(); + $properties->country->description = "Human readable description identifying the country"; + $ownerSchema->addPropertyMapping('Country', self::names()->country); + $properties->locationID = Schema::string(); + $properties->locationID->description = "Provides further description to the address information. This can be either text or an ID"; + $ownerSchema->addPropertyMapping('LocationID', self::names()->locationID); + $properties->countrySubDivision = Schema::string(); + $properties->countrySubDivision->description = "An administrative division such as a subnational entity, constituent unit, or country subdivision"; + $ownerSchema->addPropertyMapping('CountrySubDivision', self::names()->countrySubDivision); + $properties->addressTaxIdNumber = Schema::string(); + $properties->addressTaxIdNumber->description = "Unique number assigned by the relevant tax authority to identify a party for use in relation to Value Added Tax[VAT]"; + $ownerSchema->addPropertyMapping('AddressTaxIdNumber', self::names()->addressTaxIdNumber); + $properties->addressTaxExemptNumber = Schema::string(); + $properties->addressTaxExemptNumber->description = "Unique tax exemption number assigned by the relevant tax authority to identify an entity or organization"; + $ownerSchema->addPropertyMapping('AddressTaxExemptNumber', self::names()->addressTaxExemptNumber); + $properties->contacts = Schema::arr(); + $properties->contacts->items = WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactsItems::schema(); + $ownerSchema->addPropertyMapping('Contacts', self::names()->contacts); + $properties->references = Schema::arr(); + $properties->references->items = WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferencesItems::schema(); + $ownerSchema->addPropertyMapping('References', self::names()->references); + $properties->dates = Schema::arr(); + $properties->dates->items = WarehouseInventoryAdjustmentAdviceHeaderAddressItemsDatesItems::schema(); + $ownerSchema->addPropertyMapping('Dates', self::names()->dates); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->additionalProperties = false; + $ownerSchema->description = "Represent an entity such as an organizational, physical location, property, or individual"; + $ownerSchema->required = array( + ); + } +} \ No newline at end of file diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactsItems.php b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactsItems.php new file mode 100644 index 0000000..fea943a --- /dev/null +++ b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactsItems.php @@ -0,0 +1,120 @@ +contactTypeCode = Schema::string(); + $properties->contactTypeCode->enum = array( + self::AL, + self::BD, + self::BI, + self::CH, + self::CR, + self::EX, + self::HM, + self::IC, + self::MRP, + self::OC, + self::RE, + self::SC, + self::SGN, + self::SR, + self::TIC, + ); + $properties->contactTypeCode->description = "Code identifying a type of contact"; + $ownerSchema->addPropertyMapping('ContactTypeCode', self::names()->contactTypeCode); + $properties->contactName = Schema::string(); + $properties->contactName->description = "Free-form name"; + $ownerSchema->addPropertyMapping('ContactName', self::names()->contactName); + $properties->primaryPhone = Schema::string(); + $properties->primaryPhone->description = "Phone number of contact listed"; + $ownerSchema->addPropertyMapping('PrimaryPhone', self::names()->primaryPhone); + $properties->primaryFax = Schema::string(); + $properties->primaryFax->description = "Fax number of contact listed"; + $ownerSchema->addPropertyMapping('PrimaryFax', self::names()->primaryFax); + $properties->primaryEmail = Schema::string(); + $properties->primaryEmail->description = "E-mail address for contact listed"; + $ownerSchema->addPropertyMapping('PrimaryEmail', self::names()->primaryEmail); + $properties->additionalContactDetails = Schema::arr(); + $properties->additionalContactDetails->items = WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactsItemsAdditionalContactDetailsItems::schema(); + $ownerSchema->addPropertyMapping('AdditionalContactDetails', self::names()->additionalContactDetails); + $properties->contactReference = Schema::string(); + $properties->contactReference->description = "Additional field to clarify a contact"; + $ownerSchema->addPropertyMapping('ContactReference', self::names()->contactReference); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->additionalProperties = false; + $ownerSchema->description = "Provides contact information"; + $ownerSchema->required = array( + ); + } +} \ No newline at end of file diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactsItemsAdditionalContactDetailsItems.php b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactsItemsAdditionalContactDetailsItems.php new file mode 100644 index 0000000..53344d9 --- /dev/null +++ b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactsItemsAdditionalContactDetailsItems.php @@ -0,0 +1,69 @@ +contactQual = Schema::string(); + $properties->contactQual->enum = array( + self::AU, + self::CP, + self::EX, + self::FT, + self::HP, + self::NP, + self::WP, + self::X4, + ); + $properties->contactQual->description = "Indicates the method of contact"; + $ownerSchema->addPropertyMapping('ContactQual', self::names()->contactQual); + $properties->contactID = Schema::string(); + $properties->contactID->description = "The value of the identified contact"; + $ownerSchema->addPropertyMapping('ContactID', self::names()->contactID); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->additionalProperties = false; + $ownerSchema->description = "This group should be used if the associated normalized fields already contain information."; + $ownerSchema->required = array( + ); + } +} \ No newline at end of file diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsDatesItems.php b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsDatesItems.php new file mode 100644 index 0000000..6348890 --- /dev/null +++ b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsDatesItems.php @@ -0,0 +1,57 @@ +dateTimeQualifier = Schema::string(); + $properties->dateTimeQualifier->description = "Code specifying the type of date"; + $ownerSchema->addPropertyMapping('DateTimeQualifier', self::names()->dateTimeQualifier); + $properties->date = Schema::string(); + $properties->date->description = "A specific day"; + $properties->date->format = "date"; + $ownerSchema->addPropertyMapping('Date', self::names()->date); + $properties->time = Schema::string(); + $properties->time->description = "All standard XML formats are accepted."; + $properties->time->format = "time"; + $ownerSchema->addPropertyMapping('Time', self::names()->time); + $properties->dateTimePeriod = Schema::string(); + $properties->dateTimePeriod->description = "A date, time, or range of dates and times"; + $ownerSchema->addPropertyMapping('DateTimePeriod', self::names()->dateTimePeriod); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->additionalProperties = false; + $ownerSchema->description = "Provides date and time information"; + $ownerSchema->required = array( + ); + } +} \ No newline at end of file diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferencesItems.php b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferencesItems.php new file mode 100644 index 0000000..c221829 --- /dev/null +++ b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferencesItems.php @@ -0,0 +1,43 @@ +referenceQual = Schema::string(); + $properties->referenceQual->description = "Code specifying the type of data in the ReferenceID/ReferenceDescription"; + $ownerSchema->addPropertyMapping('ReferenceQual', self::names()->referenceQual); + $properties->referenceID = Schema::string(); + $properties->referenceID->description = "Value as defined by the ReferenceQual"; + $ownerSchema->addPropertyMapping('ReferenceID', self::names()->referenceID); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->additionalProperties = false; + $ownerSchema->description = "Supplemental information supporting the transaction"; + $ownerSchema->required = array( + ); + } +} \ No newline at end of file diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderContactsItems.php b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderContactsItems.php new file mode 100644 index 0000000..6e130de --- /dev/null +++ b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderContactsItems.php @@ -0,0 +1,120 @@ +contactTypeCode = Schema::string(); + $properties->contactTypeCode->enum = array( + self::AL, + self::BD, + self::BI, + self::CH, + self::CR, + self::EX, + self::HM, + self::IC, + self::MRP, + self::OC, + self::RE, + self::SC, + self::SGN, + self::SR, + self::TIC, + ); + $properties->contactTypeCode->description = "Code identifying a type of contact"; + $ownerSchema->addPropertyMapping('ContactTypeCode', self::names()->contactTypeCode); + $properties->contactName = Schema::string(); + $properties->contactName->description = "Free-form name"; + $ownerSchema->addPropertyMapping('ContactName', self::names()->contactName); + $properties->primaryPhone = Schema::string(); + $properties->primaryPhone->description = "Phone number of contact listed"; + $ownerSchema->addPropertyMapping('PrimaryPhone', self::names()->primaryPhone); + $properties->primaryFax = Schema::string(); + $properties->primaryFax->description = "Fax number of contact listed"; + $ownerSchema->addPropertyMapping('PrimaryFax', self::names()->primaryFax); + $properties->primaryEmail = Schema::string(); + $properties->primaryEmail->description = "E-mail address for contact listed"; + $ownerSchema->addPropertyMapping('PrimaryEmail', self::names()->primaryEmail); + $properties->additionalContactDetails = Schema::arr(); + $properties->additionalContactDetails->items = WarehouseInventoryAdjustmentAdviceHeaderContactsItemsAdditionalContactDetailsItems::schema(); + $ownerSchema->addPropertyMapping('AdditionalContactDetails', self::names()->additionalContactDetails); + $properties->contactReference = Schema::string(); + $properties->contactReference->description = "Additional field to clarify a contact"; + $ownerSchema->addPropertyMapping('ContactReference', self::names()->contactReference); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->additionalProperties = false; + $ownerSchema->description = "Provides contact information"; + $ownerSchema->required = array( + ); + } +} \ No newline at end of file diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderContactsItemsAdditionalContactDetailsItems.php b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderContactsItemsAdditionalContactDetailsItems.php new file mode 100644 index 0000000..160b6dc --- /dev/null +++ b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderContactsItemsAdditionalContactDetailsItems.php @@ -0,0 +1,69 @@ +contactQual = Schema::string(); + $properties->contactQual->enum = array( + self::AU, + self::CP, + self::EX, + self::FT, + self::HP, + self::NP, + self::WP, + self::X4, + ); + $properties->contactQual->description = "Indicates the method of contact"; + $ownerSchema->addPropertyMapping('ContactQual', self::names()->contactQual); + $properties->contactID = Schema::string(); + $properties->contactID->description = "The value of the identified contact"; + $ownerSchema->addPropertyMapping('ContactID', self::names()->contactID); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->additionalProperties = false; + $ownerSchema->description = "This group should be used if the associated normalized fields already contain information."; + $ownerSchema->required = array( + ); + } +} \ No newline at end of file diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderDatesItems.php b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderDatesItems.php new file mode 100644 index 0000000..4611e8f --- /dev/null +++ b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderDatesItems.php @@ -0,0 +1,140 @@ +dateTimeQualifier = Schema::string(); + $properties->dateTimeQualifier->enum = array( + self::CONST_001, + self::CONST_002, + self::CONST_007, + self::CONST_011, + self::CONST_017, + self::CONST_035, + self::CONST_036, + self::CONST_050, + self::CONST_067, + self::CONST_068, + self::CONST_097, + self::CONST_118, + self::CONST_196, + self::CONST_197, + self::CONST_328, + self::CONST_369, + self::CONST_370, + self::CONST_371, + self::CONST_372, + self::CONST_405, + self::CONST_510, + self::CONST_511, + self::CONST_636, + self::CONST_807, + self::CONST_945, + self::ACT, + self::TRM, + ); + $properties->dateTimeQualifier->description = "Code specifying the type of date"; + $ownerSchema->addPropertyMapping('DateTimeQualifier', self::names()->dateTimeQualifier); + $properties->date = Schema::string(); + $properties->date->description = "A specific day"; + $properties->date->format = "date"; + $ownerSchema->addPropertyMapping('Date', self::names()->date); + $properties->time = Schema::string(); + $properties->time->description = "All standard XML formats are accepted."; + $properties->time->format = "time"; + $ownerSchema->addPropertyMapping('Time', self::names()->time); + $properties->dateTimePeriod = Schema::string(); + $properties->dateTimePeriod->description = "A date, time, or range of dates and times"; + $ownerSchema->addPropertyMapping('DateTimePeriod', self::names()->dateTimePeriod); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->additionalProperties = false; + $ownerSchema->description = "Provides date and time information"; + $ownerSchema->required = array( + ); + } +} \ No newline at end of file diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderHeaderOrder.php b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderHeaderOrder.php new file mode 100644 index 0000000..d9c8028 --- /dev/null +++ b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderHeaderOrder.php @@ -0,0 +1,130 @@ +tradingPartnerId = Schema::string(); + $properties->tradingPartnerId->description = "Unique internal identifier defined by SPS Commerce which identifies the relationship"; + $properties->tradingPartnerId->maxLength = 15; + $properties->tradingPartnerId->minLength = 1; + $ownerSchema->addPropertyMapping('TradingPartnerId', self::names()->tradingPartnerId); + $properties->documentId = Schema::string(); + $properties->documentId->description = "Unique internal identifier defined by SPS Commerce which identifies the document"; + $ownerSchema->addPropertyMapping('DocumentId', self::names()->documentId); + $properties->date1 = Schema::string(); + $properties->date1->description = "Date of the inventory adjustment"; + $properties->date1->format = "date"; + $ownerSchema->addPropertyMapping('Date1', self::names()->date1); + $properties->adjustmentNumber1 = Schema::string(); + $properties->adjustmentNumber1->description = "Primary adjustment number assigned to the inventory adjustment"; + $ownerSchema->addPropertyMapping('AdjustmentNumber1', self::names()->adjustmentNumber1); + $properties->adjustmentNumber2 = Schema::string(); + $properties->adjustmentNumber2->description = "Secondary adjustment number assigned to the inventory adjustment"; + $ownerSchema->addPropertyMapping('AdjustmentNumber2', self::names()->adjustmentNumber2); + $properties->tsetPurposeCode = Schema::string(); + $properties->tsetPurposeCode->enum = array( + self::CONST_00, + self::CONST_01, + self::CONST_05, + self::CONST_07, + ); + $properties->tsetPurposeCode->description = "Code indicating the purpose of the transaction set"; + $ownerSchema->addPropertyMapping('TsetPurposeCode', self::names()->tsetPurposeCode); + $properties->purchaseOrderNumber = Schema::string(); + $properties->purchaseOrderNumber->description = "Identifying number for a purchase order assigned by the orderer/buyer"; + $ownerSchema->addPropertyMapping('PurchaseOrderNumber', self::names()->purchaseOrderNumber); + $properties->transactionTypeCode = Schema::string(); + $properties->transactionTypeCode->enum = array( + self::CR, + self::DR, + ); + $properties->transactionTypeCode->description = "Code specifying the type of transaction"; + $ownerSchema->addPropertyMapping('TransactionTypeCode', self::names()->transactionTypeCode); + $properties->actionCode = Schema::string(); + $properties->actionCode->enum = array( + self::CONST_2, + self::CONST_4, + self::RH, + self::ST, + self::WQ, + ); + $properties->actionCode->description = "Code indicating the type of action"; + $ownerSchema->addPropertyMapping('ActionCode', self::names()->actionCode); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->additionalProperties = false; + $ownerSchema->description = "Contains the commonly used fields in the header of the transaction"; + $ownerSchema->required = array( + 'TradingPartnerId', + 'DocumentId', + 'Date1', + ); + } +} \ No newline at end of file diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderMiscellaneousItems.php b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderMiscellaneousItems.php new file mode 100644 index 0000000..c1697fd --- /dev/null +++ b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderMiscellaneousItems.php @@ -0,0 +1,55 @@ +qualifier1 = Schema::string(); + $properties->qualifier1->description = "Code qualifying the miscellaneous data element"; + $ownerSchema->addPropertyMapping('Qualifier1', self::names()->qualifier1); + $properties->description1 = Schema::string(); + $properties->description1->description = "Free-form description of the miscellaneous element"; + $ownerSchema->addPropertyMapping('Description1', self::names()->description1); + $properties->qualifier2 = Schema::string(); + $properties->qualifier2->description = "Code qualifying the miscellaneous data element"; + $ownerSchema->addPropertyMapping('Qualifier2', self::names()->qualifier2); + $properties->description2 = Schema::string(); + $properties->description2->description = "Free-form description of the miscellaneous element"; + $ownerSchema->addPropertyMapping('Description2', self::names()->description2); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->additionalProperties = false; + $ownerSchema->description = "Provides additional miscellaneous information"; + $ownerSchema->required = array( + ); + } +} \ No newline at end of file diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderNotesItems.php b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderNotesItems.php new file mode 100644 index 0000000..5ef6ae5 --- /dev/null +++ b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderNotesItems.php @@ -0,0 +1,81 @@ +noteCode = Schema::string(); + $properties->noteCode->enum = array( + self::CCG, + self::GEN, + self::GFT, + self::MKG, + self::PCK, + self::PRN, + self::RTN, + self::SHP, + self::SPE, + self::TPA, + ); + $properties->noteCode->description = "Code specifying the type of note"; + $ownerSchema->addPropertyMapping('NoteCode', self::names()->noteCode); + $properties->note = Schema::string(); + $properties->note->description = "Free-form textual description of the note"; + $ownerSchema->addPropertyMapping('Note', self::names()->note); + $properties->languageCode = Schema::string(); + $properties->languageCode->description = "Code designating the language used in text. ISO 639 language code"; + $ownerSchema->addPropertyMapping('LanguageCode', self::names()->languageCode); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->additionalProperties = false; + $ownerSchema->description = "Supplemental text for the transaction"; + $ownerSchema->required = array( + ); + } +} \ No newline at end of file diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderReferencesItems.php b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderReferencesItems.php new file mode 100644 index 0000000..708bacc --- /dev/null +++ b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderReferencesItems.php @@ -0,0 +1,150 @@ +referenceQual = Schema::string(); + $properties->referenceQual->enum = array( + self::CONST_02, + self::CONST_06, + self::CONST_12, + self::CONST_19, + self::CONST_2_I, + self::AH, + self::AN, + self::AO, + self::BM, + self::BT, + self::BY, + self::CN, + self::CT, + self::_DO, + self::GS, + self::IL, + self::IN, + self::IT, + self::IV, + self::KW, + self::LO, + self::MK, + self::OC, + self::PD, + self::PK, + self::PO, + self::SE, + self::SI, + self::TN, + self::VN, + self::WH, + self::WLT, + self::WS, + ); + $properties->referenceQual->description = "Code specifying the type of data in the ReferenceID/ReferenceDescription"; + $ownerSchema->addPropertyMapping('ReferenceQual', self::names()->referenceQual); + $properties->referenceID = Schema::string(); + $properties->referenceID->description = "Value as defined by the ReferenceQual"; + $ownerSchema->addPropertyMapping('ReferenceID', self::names()->referenceID); + $properties->description = Schema::string(); + $properties->description->description = "Free-form textual description to clarify the related data elements and their content"; + $ownerSchema->addPropertyMapping('Description', self::names()->description); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->additionalProperties = false; + $ownerSchema->description = "Supplemental information supporting the transaction"; + $ownerSchema->required = array( + ); + } +} \ No newline at end of file diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItems.php b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItems.php new file mode 100644 index 0000000..f19cf0b --- /dev/null +++ b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItems.php @@ -0,0 +1,38 @@ +lineItem = Schema::arr(); + $properties->lineItem->items = WarehouseInventoryAdjustmentAdviceLineItemsLineItemItems::schema(); + $ownerSchema->addPropertyMapping('LineItem', self::names()->lineItem); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->additionalProperties = false; + $ownerSchema->description = "Encloses all document line item elements"; + $ownerSchema->required = array( + 'LineItem', + ); + } +} \ No newline at end of file diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItems.php b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItems.php new file mode 100644 index 0000000..917d050 --- /dev/null +++ b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItems.php @@ -0,0 +1,61 @@ +itemDetail = WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsItemDetail::schema(); + $ownerSchema->addPropertyMapping('ItemDetail', self::names()->itemDetail); + $properties->references = Schema::arr(); + $properties->references->items = WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsReferencesItems::schema(); + $ownerSchema->addPropertyMapping('References', self::names()->references); + $properties->dates = Schema::arr(); + $properties->dates->items = WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsDatesItems::schema(); + $ownerSchema->addPropertyMapping('Dates', self::names()->dates); + $properties->address = Schema::arr(); + $properties->address->items = WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItems::schema(); + $ownerSchema->addPropertyMapping('Address', self::names()->address); + $properties->miscellaneous = Schema::arr(); + $properties->miscellaneous->items = WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsMiscellaneousItems::schema(); + $ownerSchema->addPropertyMapping('Miscellaneous', self::names()->miscellaneous); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->additionalProperties = false; + $ownerSchema->description = "Encloses all document line item elements"; + $ownerSchema->required = array( + 'ItemDetail', + ); + } +} \ No newline at end of file diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItems.php b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItems.php new file mode 100644 index 0000000..2654513 --- /dev/null +++ b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItems.php @@ -0,0 +1,345 @@ +addressTypeCode = Schema::string(); + $properties->addressTypeCode->enum = array( + self::CONST_88, + self::CONST_9_C, + self::AG, + self::BE, + self::BK, + self::BO, + self::BOWN, + self::BT, + self::BY, + self::CB, + self::CN, + self::CQ, + self::CS, + self::CT, + self::DA, + self::DE, + self::DS, + self::DV, + self::ESIID, + self::FR, + self::FW, + self::IA, + self::MF, + self::N1, + self::NES, + self::OB, + self::PATI, + self::PF, + self::PLCO, + self::POAR, + self::PODI, + self::POEN, + self::POOR, + self::PR, + self::PW, + self::RAMP, + self::RI, + self::RL, + self::RT, + self::SF, + self::SO, + self::ST, + self::TO, + self::TP, + self::TS, + self::VN, + self::WH, + self::Z7, + ); + $properties->addressTypeCode->description = "Code identifying an organizational entity, a physical location, property, or an individual"; + $ownerSchema->addPropertyMapping('AddressTypeCode', self::names()->addressTypeCode); + $properties->locationCodeQualifier = Schema::string(); + $properties->locationCodeQualifier->enum = array( + self::CONST_1, + self::CONST_10, + self::CONST_11, + self::CONST_15, + self::CONST_21, + self::CONST_33, + self::CONST_6, + self::CONST_9, + self::CONST_91, + self::CONST_92, + self::A1, + self::BE, + self::D, + self::K, + self::TPL, + self::UL, + ); + $properties->locationCodeQualifier->description = "Code identifying the structure or format of the related location number[s]"; + $ownerSchema->addPropertyMapping('LocationCodeQualifier', self::names()->locationCodeQualifier); + $properties->addressLocationNumber = Schema::string(); + $properties->addressLocationNumber->description = "Unique value assigned to identify a location"; + $ownerSchema->addPropertyMapping('AddressLocationNumber', self::names()->addressLocationNumber); + $properties->addressName = Schema::string(); + $properties->addressName->description = "Primary free-form textual description of a location"; + $ownerSchema->addPropertyMapping('AddressName', self::names()->addressName); + $properties->addressAlternateName = Schema::string(); + $properties->addressAlternateName->description = "Additional free-form description of a location"; + $ownerSchema->addPropertyMapping('AddressAlternateName', self::names()->addressAlternateName); + $properties->addressAlternateName2 = Schema::string(); + $properties->addressAlternateName2->description = "Additional free-form description of a location"; + $ownerSchema->addPropertyMapping('AddressAlternateName2', self::names()->addressAlternateName2); + $properties->address1 = Schema::string(); + $properties->address1->description = "Address information"; + $ownerSchema->addPropertyMapping('Address1', self::names()->address1); + $properties->address2 = Schema::string(); + $properties->address2->description = "Address information"; + $ownerSchema->addPropertyMapping('Address2', self::names()->address2); + $properties->address3 = Schema::string(); + $properties->address3->description = "Address information"; + $ownerSchema->addPropertyMapping('Address3', self::names()->address3); + $properties->address4 = Schema::string(); + $properties->address4->description = "Address information"; + $ownerSchema->addPropertyMapping('Address4', self::names()->address4); + $properties->city = Schema::string(); + $properties->city->description = "Free-form text for city name"; + $ownerSchema->addPropertyMapping('City', self::names()->city); + $properties->state = Schema::string(); + $properties->state->description = "Code[Standard State/Province] as defined by appropriate government agency"; + $ownerSchema->addPropertyMapping('State', self::names()->state); + $properties->postalCode = Schema::string(); + $properties->postalCode->description = "International postal zone excluding punctuation and blanks[Zip Code for United States]"; + $ownerSchema->addPropertyMapping('PostalCode', self::names()->postalCode); + $properties->country = Schema::string(); + $properties->country->description = "Human readable description identifying the country"; + $ownerSchema->addPropertyMapping('Country', self::names()->country); + $properties->locationID = Schema::string(); + $properties->locationID->description = "Provides further description to the address information. This can be either text or an ID"; + $ownerSchema->addPropertyMapping('LocationID', self::names()->locationID); + $properties->countrySubDivision = Schema::string(); + $properties->countrySubDivision->description = "An administrative division such as a subnational entity, constituent unit, or country subdivision"; + $ownerSchema->addPropertyMapping('CountrySubDivision', self::names()->countrySubDivision); + $properties->addressTaxIdNumber = Schema::string(); + $properties->addressTaxIdNumber->description = "Unique number assigned by the relevant tax authority to identify a party for use in relation to Value Added Tax[VAT]"; + $ownerSchema->addPropertyMapping('AddressTaxIdNumber', self::names()->addressTaxIdNumber); + $properties->addressTaxExemptNumber = Schema::string(); + $properties->addressTaxExemptNumber->description = "Unique tax exemption number assigned by the relevant tax authority to identify an entity or organization"; + $ownerSchema->addPropertyMapping('AddressTaxExemptNumber', self::names()->addressTaxExemptNumber); + $properties->references = Schema::arr(); + $properties->references->items = WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferencesItems::schema(); + $ownerSchema->addPropertyMapping('References', self::names()->references); + $properties->dates = Schema::arr(); + $properties->dates->items = WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsDatesItems::schema(); + $ownerSchema->addPropertyMapping('Dates', self::names()->dates); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->additionalProperties = false; + $ownerSchema->description = "Represent an entity such as an organizational, physical location, property, or individual"; + $ownerSchema->required = array( + ); + } +} \ No newline at end of file diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsDatesItems.php b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsDatesItems.php new file mode 100644 index 0000000..7a43c58 --- /dev/null +++ b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsDatesItems.php @@ -0,0 +1,57 @@ +dateTimeQualifier = Schema::string(); + $properties->dateTimeQualifier->description = "Code specifying the type of date"; + $ownerSchema->addPropertyMapping('DateTimeQualifier', self::names()->dateTimeQualifier); + $properties->date = Schema::string(); + $properties->date->description = "A specific day"; + $properties->date->format = "date"; + $ownerSchema->addPropertyMapping('Date', self::names()->date); + $properties->time = Schema::string(); + $properties->time->description = "All standard XML formats are accepted."; + $properties->time->format = "time"; + $ownerSchema->addPropertyMapping('Time', self::names()->time); + $properties->dateTimePeriod = Schema::string(); + $properties->dateTimePeriod->description = "A date, time, or range of dates and times"; + $ownerSchema->addPropertyMapping('DateTimePeriod', self::names()->dateTimePeriod); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->additionalProperties = false; + $ownerSchema->description = "Provides date and time information"; + $ownerSchema->required = array( + ); + } +} \ No newline at end of file diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferencesItems.php b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferencesItems.php new file mode 100644 index 0000000..6d75413 --- /dev/null +++ b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferencesItems.php @@ -0,0 +1,43 @@ +referenceQual = Schema::string(); + $properties->referenceQual->description = "Code specifying the type of data in the ReferenceID/ReferenceDescription"; + $ownerSchema->addPropertyMapping('ReferenceQual', self::names()->referenceQual); + $properties->referenceID = Schema::string(); + $properties->referenceID->description = "Value as defined by the ReferenceQual"; + $ownerSchema->addPropertyMapping('ReferenceID', self::names()->referenceID); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->additionalProperties = false; + $ownerSchema->description = "Supplemental information supporting the transaction"; + $ownerSchema->required = array( + ); + } +} \ No newline at end of file diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsDatesItems.php b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsDatesItems.php new file mode 100644 index 0000000..f2d02bb --- /dev/null +++ b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsDatesItems.php @@ -0,0 +1,140 @@ +dateTimeQualifier = Schema::string(); + $properties->dateTimeQualifier->enum = array( + self::CONST_001, + self::CONST_002, + self::CONST_007, + self::CONST_011, + self::CONST_017, + self::CONST_035, + self::CONST_036, + self::CONST_050, + self::CONST_067, + self::CONST_068, + self::CONST_097, + self::CONST_118, + self::CONST_196, + self::CONST_197, + self::CONST_328, + self::CONST_369, + self::CONST_370, + self::CONST_371, + self::CONST_372, + self::CONST_405, + self::CONST_510, + self::CONST_511, + self::CONST_636, + self::CONST_807, + self::CONST_945, + self::ACT, + self::TRM, + ); + $properties->dateTimeQualifier->description = "Code specifying the type of date"; + $ownerSchema->addPropertyMapping('DateTimeQualifier', self::names()->dateTimeQualifier); + $properties->date = Schema::string(); + $properties->date->description = "A specific day"; + $properties->date->format = "date"; + $ownerSchema->addPropertyMapping('Date', self::names()->date); + $properties->time = Schema::string(); + $properties->time->description = "All standard XML formats are accepted."; + $properties->time->format = "time"; + $ownerSchema->addPropertyMapping('Time', self::names()->time); + $properties->dateTimePeriod = Schema::string(); + $properties->dateTimePeriod->description = "A date, time, or range of dates and times"; + $ownerSchema->addPropertyMapping('DateTimePeriod', self::names()->dateTimePeriod); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->additionalProperties = false; + $ownerSchema->description = "Provides date and time information"; + $ownerSchema->required = array( + ); + } +} \ No newline at end of file diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsItemDetail.php b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsItemDetail.php new file mode 100644 index 0000000..925fef9 --- /dev/null +++ b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsItemDetail.php @@ -0,0 +1,547 @@ +lineSequenceNumber = Schema::string(); + $properties->lineSequenceNumber->description = "For an initiated document, this is a unique number for the line item[s]. For a return transaction, this number should be the same as what was received from the source transaction."; + $ownerSchema->addPropertyMapping('LineSequenceNumber', self::names()->lineSequenceNumber); + $properties->applicationId = Schema::string(); + $properties->applicationId->description = "ERP generated code to uniquely identify the item"; + $ownerSchema->addPropertyMapping('ApplicationId', self::names()->applicationId); + $properties->buyerPartNumber = Schema::string(); + $properties->buyerPartNumber->description = "Buyer's primary product identifier"; + $ownerSchema->addPropertyMapping('BuyerPartNumber', self::names()->buyerPartNumber); + $properties->vendorPartNumber = Schema::string(); + $properties->vendorPartNumber->description = "Vendor's primary product identifier"; + $ownerSchema->addPropertyMapping('VendorPartNumber', self::names()->vendorPartNumber); + $properties->consumerPackageCode = Schema::string(); + $properties->consumerPackageCode->description = "Consumer level or customer unit product identification number"; + $ownerSchema->addPropertyMapping('ConsumerPackageCode', self::names()->consumerPackageCode); + $properties->gTIN = Schema::string(); + $properties->gTIN->description = "Global Trade Item Number which is an item identifier that encompasses all product identification numbers such as UPC, EAN, ITF, etc. and can be assigned at various packing levels"; + $ownerSchema->addPropertyMapping('GTIN', self::names()->gTIN); + $properties->uPCCaseCode = Schema::string(); + $properties->uPCCaseCode->description = "Package or case level product identification number"; + $ownerSchema->addPropertyMapping('UPCCaseCode', self::names()->uPCCaseCode); + $properties->natlDrugCode = Schema::string(); + $properties->natlDrugCode->description = "National Drug Code or NDC is a unique, universal product identifier for drugs. Primarily used in the pharmaceutical industry"; + $ownerSchema->addPropertyMapping('NatlDrugCode', self::names()->natlDrugCode); + $properties->partNumberQualifier1 = Schema::string(); + $properties->partNumberQualifier1->enum = array( + self::AR, + self::B8, + self::BO, + self::CB, + self::IS, + self::IT, + self::MF, + self::MG, + self::MN, + self::SE, + self::SK, + self::UP, + self::VP, + ); + $properties->partNumberQualifier1->description = "Qualifier describing the additional product identification number"; + $ownerSchema->addPropertyMapping('PartNumberQualifier1', self::names()->partNumberQualifier1); + $properties->partNumber1 = Schema::string(); + $properties->partNumber1->description = "Additional product identification number as described by the PartNumberQualifier1"; + $ownerSchema->addPropertyMapping('PartNumber1', self::names()->partNumber1); + $properties->partNumberQualifier2 = Schema::string(); + $properties->partNumberQualifier2->enum = array( + self::AR, + self::B8, + self::BO, + self::CB, + self::IS, + self::IT, + self::MF, + self::MG, + self::MN, + self::SE, + self::SK, + self::UP, + self::VP, + ); + $properties->partNumberQualifier2->description = "Qualifier describing the additional product identification number"; + $ownerSchema->addPropertyMapping('PartNumberQualifier2', self::names()->partNumberQualifier2); + $properties->partNumber2 = Schema::string(); + $properties->partNumber2->description = "Additional product identification number as described by the PartNumberQualifier2"; + $ownerSchema->addPropertyMapping('PartNumber2', self::names()->partNumber2); + $properties->partNumberQualifier3 = Schema::string(); + $properties->partNumberQualifier3->enum = array( + self::AR, + self::B8, + self::BO, + self::CB, + self::IS, + self::IT, + self::MF, + self::MG, + self::MN, + self::SE, + self::SK, + self::UP, + self::VP, + ); + $properties->partNumberQualifier3->description = "Qualifier describing the additional product identification number"; + $ownerSchema->addPropertyMapping('PartNumberQualifier3', self::names()->partNumberQualifier3); + $properties->partNumber3 = Schema::string(); + $properties->partNumber3->description = "Additional product identification number as described by the PartNumberQualifier3"; + $ownerSchema->addPropertyMapping('PartNumber3', self::names()->partNumber3); + $properties->partNumberQualifier4 = Schema::string(); + $properties->partNumberQualifier4->enum = array( + self::AR, + self::B8, + self::BO, + self::CB, + self::IS, + self::IT, + self::MF, + self::MG, + self::MN, + self::SE, + self::SK, + self::UP, + self::VP, + ); + $properties->partNumberQualifier4->description = "Qualifier describing the additional product identification number"; + $ownerSchema->addPropertyMapping('PartNumberQualifier4', self::names()->partNumberQualifier4); + $properties->partNumber4 = Schema::string(); + $properties->partNumber4->description = "Additional product identification number as described by the PartNumberQualifier4"; + $ownerSchema->addPropertyMapping('PartNumber4', self::names()->partNumber4); + $properties->partDescription1 = Schema::string(); + $properties->partDescription1->description = "Product description of the item"; + $ownerSchema->addPropertyMapping('PartDescription1', self::names()->partDescription1); + $properties->partDescription2 = Schema::string(); + $properties->partDescription2->description = "Additional product description of the item"; + $ownerSchema->addPropertyMapping('PartDescription2', self::names()->partDescription2); + $properties->adjReasonCode = Schema::string(); + $properties->adjReasonCode->enum = array( + self::CONST_03, + self::CONST_04, + self::CONST_05, + self::CONST_06, + self::CONST_07, + self::CONST_08, + self::CONST_51, + self::CONST_52, + self::CONST_53, + self::CONST_54, + self::CONST_55, + self::CONST_56, + self::CONST_88, + self::AA, + self::AB, + self::AC, + self::AD, + self::AE, + self::AF, + self::AG, + self::AH, + self::AI, + self::AJ, + self::AK, + self::AL, + self::AM, + self::AN, + self::AP, + self::AQ, + self::AR, + self::_AS, + self::AT, + self::AU, + self::AV, + self::AW, + self::AX, + self::AY, + self::BA, + self::BD, + self::BK, + self::BM, + self::BN, + self::BR, + self::BS, + self::BT, + self::CD, + self::CO, + self::CR, + self::CS, + self::PC, + self::TC, + self::UD, + ); + $properties->adjReasonCode->description = "Code indicating the reason for the inventory adjustment"; + $ownerSchema->addPropertyMapping('AdjReasonCode', self::names()->adjReasonCode); + $properties->qtyAdjusted = Schema::number(); + $properties->qtyAdjusted->description = "Quantity of the item being adjusted"; + $ownerSchema->addPropertyMapping('QtyAdjusted', self::names()->qtyAdjusted); + $properties->qtyAdjustedUOM = Schema::string(); + $properties->qtyAdjustedUOM->enum = array( + self::BG, + self::BX, + self::CA, + self::CT, + self::DZ, + self::EA, + self::FT, + self::GA, + self::KG, + self::LB, + self::LT, + self::OZ, + self::PC, + self::PK, + self::RL, + self::SF, + self::YD, + ); + $properties->qtyAdjustedUOM->description = "Unit of measure for the adjusted quantity"; + $ownerSchema->addPropertyMapping('QtyAdjustedUOM', self::names()->qtyAdjustedUOM); + $properties->warehouseLotID = Schema::string(); + $properties->warehouseLotID->description = "Warehouse lot identification number"; + $ownerSchema->addPropertyMapping('WarehouseLotID', self::names()->warehouseLotID); + $properties->weight1 = Schema::number(); + $properties->weight1->description = "Numeric value of weight"; + $ownerSchema->addPropertyMapping('Weight1', self::names()->weight1); + $properties->weightQualifier1 = Schema::string(); + $properties->weightQualifier1->enum = array( + self::G, + self::N, + ); + $properties->weightQualifier1->description = "Code qualifying the weight"; + $ownerSchema->addPropertyMapping('WeightQualifier1', self::names()->weightQualifier1); + $properties->weightUOM1 = Schema::string(); + $properties->weightUOM1->enum = array( + self::CONST_01, + self::GR, + self::KG, + self::LB, + self::OZ, + self::TO, + ); + $properties->weightUOM1->description = "Unit of measure for weight"; + $ownerSchema->addPropertyMapping('WeightUOM1', self::names()->weightUOM1); + $properties->weight2 = Schema::number(); + $properties->weight2->description = "Numeric value of weight"; + $ownerSchema->addPropertyMapping('Weight2', self::names()->weight2); + $properties->weightQualifier2 = Schema::string(); + $properties->weightQualifier2->enum = array( + self::G, + self::N, + ); + $properties->weightQualifier2->description = "Code qualifying the weight"; + $ownerSchema->addPropertyMapping('WeightQualifier2', self::names()->weightQualifier2); + $properties->weightUOM2 = Schema::string(); + $properties->weightUOM2->enum = array( + self::CONST_01, + self::GR, + self::KG, + self::LB, + self::OZ, + self::TO, + ); + $properties->weightUOM2->description = "Unit of measure for weight"; + $ownerSchema->addPropertyMapping('WeightUOM2', self::names()->weightUOM2); + $properties->inventoryTransaction = Schema::string(); + $properties->inventoryTransaction->enum = array( + self::AD, + self::TF, + ); + $properties->inventoryTransaction->description = "Code indicating the type of inventory transaction"; + $ownerSchema->addPropertyMapping('InventoryTransaction', self::names()->inventoryTransaction); + $properties->extendedItemTotal = Schema::number(); + $properties->extendedItemTotal->description = "Dollar amount of the extended item total"; + $ownerSchema->addPropertyMapping('ExtendedItemTotal', self::names()->extendedItemTotal); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->additionalProperties = false; + $ownerSchema->description = "Contains the commonly used fields in the line item level of the transaction"; + $ownerSchema->required = array( + 'AdjReasonCode', + 'QtyAdjusted', + 'QtyAdjustedUOM', + ); + } +} \ No newline at end of file diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsMiscellaneousItems.php b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsMiscellaneousItems.php new file mode 100644 index 0000000..f730472 --- /dev/null +++ b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsMiscellaneousItems.php @@ -0,0 +1,55 @@ +qualifier1 = Schema::string(); + $properties->qualifier1->description = "Code qualifying the miscellaneous data element"; + $ownerSchema->addPropertyMapping('Qualifier1', self::names()->qualifier1); + $properties->description1 = Schema::string(); + $properties->description1->description = "Free-form description of the miscellaneous element"; + $ownerSchema->addPropertyMapping('Description1', self::names()->description1); + $properties->qualifier2 = Schema::string(); + $properties->qualifier2->description = "Code qualifying the miscellaneous data element"; + $ownerSchema->addPropertyMapping('Qualifier2', self::names()->qualifier2); + $properties->description2 = Schema::string(); + $properties->description2->description = "Free-form description of the miscellaneous element"; + $ownerSchema->addPropertyMapping('Description2', self::names()->description2); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->additionalProperties = false; + $ownerSchema->description = "Provides additional miscellaneous information"; + $ownerSchema->required = array( + ); + } +} \ No newline at end of file diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsReferencesItems.php b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsReferencesItems.php new file mode 100644 index 0000000..8ebc250 --- /dev/null +++ b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsReferencesItems.php @@ -0,0 +1,150 @@ +referenceQual = Schema::string(); + $properties->referenceQual->enum = array( + self::CONST_02, + self::CONST_06, + self::CONST_12, + self::CONST_19, + self::CONST_2_I, + self::AH, + self::AN, + self::AO, + self::BM, + self::BT, + self::BY, + self::CN, + self::CT, + self::_DO, + self::GS, + self::IL, + self::IN, + self::IT, + self::IV, + self::KW, + self::LO, + self::MK, + self::OC, + self::PD, + self::PK, + self::PO, + self::SE, + self::SI, + self::TN, + self::VN, + self::WH, + self::WLT, + self::WS, + ); + $properties->referenceQual->description = "Code specifying the type of data in the ReferenceID/ReferenceDescription"; + $ownerSchema->addPropertyMapping('ReferenceQual', self::names()->referenceQual); + $properties->referenceID = Schema::string(); + $properties->referenceID->description = "Value as defined by the ReferenceQual"; + $ownerSchema->addPropertyMapping('ReferenceID', self::names()->referenceID); + $properties->description = Schema::string(); + $properties->description->description = "Free-form textual description to clarify the related data elements and their content"; + $ownerSchema->addPropertyMapping('Description', self::names()->description); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->additionalProperties = false; + $ownerSchema->description = "Supplemental information supporting the transaction"; + $ownerSchema->required = array( + ); + } +} \ No newline at end of file diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceMeta.php b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceMeta.php new file mode 100644 index 0000000..31ed338 --- /dev/null +++ b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceMeta.php @@ -0,0 +1,187 @@ +senderUniqueID = Schema::string(); + $ownerSchema->addPropertyMapping('SenderUniqueID', self::names()->senderUniqueID); + $properties->senderCompanyName = Schema::string(); + $ownerSchema->addPropertyMapping('SenderCompanyName', self::names()->senderCompanyName); + $properties->receiverUniqueID = Schema::string(); + $ownerSchema->addPropertyMapping('ReceiverUniqueID', self::names()->receiverUniqueID); + $properties->receiverCompanyName = Schema::string(); + $ownerSchema->addPropertyMapping('ReceiverCompanyName', self::names()->receiverCompanyName); + $properties->isDropShip = Schema::boolean(); + $ownerSchema->addPropertyMapping('IsDropShip', self::names()->isDropShip); + $properties->interchangeControlNumber = Schema::string(); + $ownerSchema->addPropertyMapping('InterchangeControlNumber', self::names()->interchangeControlNumber); + $properties->groupControlIdentifier = Schema::string(); + $ownerSchema->addPropertyMapping('GroupControlIdentifier', self::names()->groupControlIdentifier); + $properties->groupControlNumber = Schema::string(); + $ownerSchema->addPropertyMapping('GroupControlNumber', self::names()->groupControlNumber); + $properties->documentControlIdentifier = Schema::string(); + $ownerSchema->addPropertyMapping('DocumentControlIdentifier', self::names()->documentControlIdentifier); + $properties->documentControlNumber = Schema::string(); + $ownerSchema->addPropertyMapping('DocumentControlNumber', self::names()->documentControlNumber); + $properties->interchangeSenderID = Schema::string(); + $ownerSchema->addPropertyMapping('InterchangeSenderID', self::names()->interchangeSenderID); + $properties->interchangeReceiverID = Schema::string(); + $ownerSchema->addPropertyMapping('InterchangeReceiverID', self::names()->interchangeReceiverID); + $properties->groupSenderID = Schema::string(); + $ownerSchema->addPropertyMapping('GroupSenderID', self::names()->groupSenderID); + $properties->groupReceiverID = Schema::string(); + $ownerSchema->addPropertyMapping('GroupReceiverID', self::names()->groupReceiverID); + $properties->batchPart = Schema::string(); + $ownerSchema->addPropertyMapping('BatchPart', self::names()->batchPart); + $properties->batchTotal = Schema::integer(); + $ownerSchema->addPropertyMapping('BatchTotal', self::names()->batchTotal); + $properties->batchID = Schema::string(); + $ownerSchema->addPropertyMapping('BatchID', self::names()->batchID); + $properties->comments = Schema::string(); + $ownerSchema->addPropertyMapping('Comments', self::names()->comments); + $properties->validation = Schema::string(); + $ownerSchema->addPropertyMapping('Validation', self::names()->validation); + $properties->orderManagement = Schema::string(); + $properties->orderManagement->enum = array( + self::BULK_IMPORT, + self::CROSS_DOCK, + self::DROP_SHIP, + self::INVENTORY_ADVICE, + self::ITEM_MANAGEMENT_SERVICE, + self::LOGISTICS_MANAGEMENT, + self::MULTI_STORE, + self::NONE, + self::PLANNING_SCHEDULE_RELEASE, + self::PRODUCT_ACTIVITY_REPORT, + self::SALES_OR_PRICE_CATALOG, + self::SMALL_PACKAGE, + self::STOCK_RELEASE, + self::STOCK_TRANSFER, + self::TRUCKLOAD_LTL, + self::WAREHOUSE_INVENTORY_ADJUSTMENT, + ); + $ownerSchema->addPropertyMapping('OrderManagement', self::names()->orderManagement); + $properties->version = Schema::string(); + $properties->version->description = "XML Version number"; + $ownerSchema->addPropertyMapping('Version', self::names()->version); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->additionalProperties = false; + $ownerSchema->description = "Information used for internal purposes at SPS Commerce"; + $ownerSchema->required = array( + ); + } +} \ No newline at end of file diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceSummary.php b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceSummary.php new file mode 100644 index 0000000..0360314 --- /dev/null +++ b/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceSummary.php @@ -0,0 +1,101 @@ +totalOrders = Schema::number(); + $properties->totalOrders->description = "Total number of line items in the transaction"; + $ownerSchema->addPropertyMapping('TotalOrders', self::names()->totalOrders); + $properties->totalWeight = Schema::number(); + $properties->totalWeight->description = "Total weight of all items in the transaction"; + $ownerSchema->addPropertyMapping('TotalWeight', self::names()->totalWeight); + $properties->weightUOM = Schema::string(); + $properties->weightUOM->enum = array( + self::CONST_01, + self::GR, + self::KG, + self::LB, + self::OZ, + self::TO, + ); + $properties->weightUOM->description = "Unit of measure for the total weight"; + $ownerSchema->addPropertyMapping('WeightUOM', self::names()->weightUOM); + $properties->totalVolume = Schema::number(); + $properties->totalVolume->description = "Total volume of all items in the transaction"; + $ownerSchema->addPropertyMapping('TotalVolume', self::names()->totalVolume); + $properties->volumeUOM = Schema::string(); + $properties->volumeUOM->enum = array( + self::CF, + self::CI, + self::CR, + self::GA, + self::LT, + self::ML, + ); + $properties->volumeUOM->description = "Unit of measure for the total volume"; + $ownerSchema->addPropertyMapping('VolumeUOM', self::names()->volumeUOM); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->additionalProperties = false; + $ownerSchema->description = "Encloses all document summary elements"; + $ownerSchema->required = array( + ); + } +} \ No newline at end of file From 1ed37ece741ffe4a28f3d517af9f5943e909f4bd Mon Sep 17 00:00:00 2001 From: Rob Wigginton <8102829+bob2021@users.noreply.github.com> Date: Tue, 31 Mar 2026 11:55:07 +0100 Subject: [PATCH 2/7] Move WarehouseInventoryAdjustmentAdvices schema to an older version namespace. --- generate.sh | 31 ++++++++++-------- .../WarehouseInventoryAdjustmentAdvices.json | 32 +++++++++---------- .../WarehouseInventoryAdjustmentAdvice.php | 2 +- ...rehouseInventoryAdjustmentAdviceHeader.php | 32 +++++++++---------- ...toryAdjustmentAdviceHeaderAddressItems.php | 32 +++++++++---------- ...tAdviceHeaderAddressItemsContactItems.php} | 8 ++--- ...actItemsAdditionalContactDetailsItems.php} | 4 +-- ...mentAdviceHeaderAddressItemsDateItems.php} | 4 +-- ...dviceHeaderAddressItemsReferenceItems.php} | 4 +-- ...oryAdjustmentAdviceHeaderContactItems.php} | 8 ++--- ...actItemsAdditionalContactDetailsItems.php} | 4 +-- ...entoryAdjustmentAdviceHeaderDateItems.php} | 4 +-- ...ntoryAdjustmentAdviceHeaderHeaderOrder.php | 2 +- ...justmentAdviceHeaderMiscellaneousItems.php | 2 +- ...entoryAdjustmentAdviceHeaderNotesItems.php | 14 ++++---- ...yAdjustmentAdviceHeaderReferenceItems.php} | 4 +-- ...ouseInventoryAdjustmentAdviceLineItems.php | 2 +- ...AdjustmentAdviceLineItemsLineItemItems.php | 22 ++++++------- ...viceLineItemsLineItemItemsAddressItems.php | 22 ++++++------- ...emsLineItemItemsAddressItemsDateItems.php} | 4 +-- ...neItemItemsAddressItemsReferenceItems.php} | 4 +-- ...AdviceLineItemsLineItemItemsDateItems.php} | 4 +-- ...AdviceLineItemsLineItemItemsItemDetail.php | 2 +- ...neItemsLineItemItemsMiscellaneousItems.php | 2 +- ...eLineItemsLineItemItemsReferenceItems.php} | 4 +-- ...WarehouseInventoryAdjustmentAdviceMeta.php | 2 +- ...ehouseInventoryAdjustmentAdviceSummary.php | 2 +- 27 files changed, 130 insertions(+), 127 deletions(-) rename json-schema/{v777 => v710}/WarehouseInventoryAdjustmentAdvices.json (99%) rename src/RSX/{v777 => v710}/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdvice.php (97%) rename src/RSX/{v777 => v710}/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeader.php (68%) rename src/RSX/{v777 => v710}/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItems.php (92%) rename src/RSX/{v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactsItems.php => v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactItems.php} (93%) rename src/RSX/{v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactsItemsAdditionalContactDetailsItems.php => v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactItemsAdditionalContactDetailsItems.php} (94%) rename src/RSX/{v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsDatesItems.php => v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsDateItems.php} (93%) rename src/RSX/{v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferencesItems.php => v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferenceItems.php} (94%) rename src/RSX/{v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderContactsItems.php => v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderContactItems.php} (91%) rename src/RSX/{v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderContactsItemsAdditionalContactDetailsItems.php => v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderContactItemsAdditionalContactDetailsItems.php} (91%) rename src/RSX/{v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderDatesItems.php => v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderDateItems.php} (96%) rename src/RSX/{v777 => v710}/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderHeaderOrder.php (98%) rename src/RSX/{v777 => v710}/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderMiscellaneousItems.php (97%) rename src/RSX/{v777 => v710}/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderNotesItems.php (85%) rename src/RSX/{v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderReferencesItems.php => v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderReferenceItems.php} (95%) rename src/RSX/{v777 => v710}/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItems.php (95%) rename src/RSX/{v777 => v710}/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItems.php (77%) rename src/RSX/{v777 => v710}/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItems.php (93%) rename src/RSX/{v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsDatesItems.php => v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsDateItems.php} (95%) rename src/RSX/{v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferencesItems.php => v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferenceItems.php} (93%) rename src/RSX/{v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsDatesItems.php => v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsDateItems.php} (97%) rename src/RSX/{v777 => v710}/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsItemDetail.php (99%) rename src/RSX/{v777 => v710}/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsMiscellaneousItems.php (97%) rename src/RSX/{v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsReferencesItems.php => v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsReferenceItems.php} (97%) rename src/RSX/{v777 => v710}/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceMeta.php (99%) rename src/RSX/{v777 => v710}/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceSummary.php (98%) diff --git a/generate.sh b/generate.sh index eaa7d19..b8e0078 100755 --- a/generate.sh +++ b/generate.sh @@ -1,7 +1,7 @@ #!/bin/bash set -e cd "$(dirname "${BASH_SOURCE[0]}")" -version=v777 +versions=(v710 v777) apis=( "CarrierFreightDetails.json|CarrierFreightDetail" "CarrierLoadTenderResponses.json|CarrierLoadTenderResponse" @@ -20,17 +20,20 @@ apis=( "WarehouseInventoryAdjustmentAdvices.json|WarehouseInventoryAdjustmentAdvice" "WarehouseTransferReceiptAdvices.json|WarehouseTransferReceiptAdvice" ) -for api in "${apis[@]}"; do - file=${api%%|*} - class=${api##*|} - name=${file%.json} - echo "Generating $class classes for $file schema" - mkdir -p src/RSX/$version/$name - docker run --rm -v $PWD:/app --workdir /app \ - swaggest/json-cli \ - json-cli gen-php "json-schema/$version/$file" \ - --ptr-in-schema "#/definitions/$class" \ - --def-ptr "#/definitions" \ - --ns ShipStream\\SpsCommerce\\RSX\\$version\\$name \ - --ns-path src/RSX/$version/$name/ +for version in "${versions[@]}"; do + for api in "${apis[@]}"; do + file=${api%%|*} + class=${api##*|} + name=${file%.json} + [ ! -f "json-schema/$version/$file" ] && continue + echo "Generating $class classes for $version/$file schema" + mkdir -p src/RSX/$version/$name + docker run --rm -v $PWD:/app --workdir /app \ + swaggest/json-cli \ + json-cli gen-php "json-schema/$version/$file" \ + --ptr-in-schema "#/definitions/$class" \ + --def-ptr "#/definitions" \ + --ns ShipStream\\SpsCommerce\\RSX\\$version\\$name \ + --ns-path src/RSX/$version/$name/ + done done diff --git a/json-schema/v777/WarehouseInventoryAdjustmentAdvices.json b/json-schema/v710/WarehouseInventoryAdjustmentAdvices.json similarity index 99% rename from json-schema/v777/WarehouseInventoryAdjustmentAdvices.json rename to json-schema/v710/WarehouseInventoryAdjustmentAdvices.json index d410f1e..63dc22f 100644 --- a/json-schema/v777/WarehouseInventoryAdjustmentAdvices.json +++ b/json-schema/v710/WarehouseInventoryAdjustmentAdvices.json @@ -275,7 +275,7 @@ } } }, - "References": { + "Reference": { "type": "array", "items": { "type": "object", @@ -444,7 +444,7 @@ } } }, - "Dates": { + "Date": { "type": "array", "items": { "type": "object", @@ -599,7 +599,7 @@ } } }, - "Contacts": { + "Contact": { "type": "array", "items": { "type": "object", @@ -1206,7 +1206,7 @@ "description": "Unique tax exemption number assigned by the relevant tax authority to identify an entity or organization", "type": "string" }, - "Contacts": { + "Contact": { "type": "array", "items": { "type": "object", @@ -1387,7 +1387,7 @@ } } }, - "References": { + "Reference": { "type": "array", "items": { "type": "object", @@ -1406,7 +1406,7 @@ } } }, - "Dates": { + "Date": { "type": "array", "items": { "type": "object", @@ -1510,17 +1510,17 @@ } } }, - "Note": { - "description": "Free-form textual description of the note", + "LanguageCode": { + "description": "Code designating the language used in text. ISO 639 language code", "examples": [ - "REPEAT LOGO PREVIOUS ORDER" + "ENG" ], "type": "string" }, - "LanguageCode": { - "description": "Code designating the language used in text. ISO 639 language code", + "NoteInformationField": { + "description": "Free-form textual description of the note", "examples": [ - "ENG" + "REPEAT LOGO PREVIOUS ORDER" ], "type": "string" } @@ -2336,7 +2336,7 @@ } } }, - "References": { + "Reference": { "type": "array", "items": { "type": "object", @@ -2505,7 +2505,7 @@ } } }, - "Dates": { + "Date": { "type": "array", "items": { "type": "object", @@ -3086,7 +3086,7 @@ "description": "Unique tax exemption number assigned by the relevant tax authority to identify an entity or organization", "type": "string" }, - "References": { + "Reference": { "type": "array", "items": { "type": "object", @@ -3105,7 +3105,7 @@ } } }, - "Dates": { + "Date": { "type": "array", "items": { "type": "object", diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdvice.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdvice.php similarity index 97% rename from src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdvice.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdvice.php index 644110d..c3423c5 100644 --- a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdvice.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdvice.php @@ -4,7 +4,7 @@ * Please consider to NOT put any emotional human-generated modifications as the splendid AI will throw them away with no mercy. */ -namespace ShipStream\SpsCommerce\RSX\v777\WarehouseInventoryAdjustmentAdvices; +namespace ShipStream\SpsCommerce\RSX\v710\WarehouseInventoryAdjustmentAdvices; use Swaggest\JsonSchema\Constraint\Properties; use Swaggest\JsonSchema\Schema; diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeader.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeader.php similarity index 68% rename from src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeader.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeader.php index 5be3452..6fa175b 100644 --- a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeader.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeader.php @@ -4,7 +4,7 @@ * Please consider to NOT put any emotional human-generated modifications as the splendid AI will throw them away with no mercy. */ -namespace ShipStream\SpsCommerce\RSX\v777\WarehouseInventoryAdjustmentAdvices; +namespace ShipStream\SpsCommerce\RSX\v710\WarehouseInventoryAdjustmentAdvices; use Swaggest\JsonSchema\Constraint\Properties; use Swaggest\JsonSchema\Schema; @@ -19,14 +19,14 @@ class WarehouseInventoryAdjustmentAdviceHeader extends ClassStructure /** @var WarehouseInventoryAdjustmentAdviceHeaderHeaderOrder Contains the commonly used fields in the header of the transaction */ public $headerOrder; - /** @var WarehouseInventoryAdjustmentAdviceHeaderReferencesItems[]|array */ - public $references; + /** @var WarehouseInventoryAdjustmentAdviceHeaderReferenceItems[]|array */ + public $reference; - /** @var WarehouseInventoryAdjustmentAdviceHeaderDatesItems[]|array */ - public $dates; + /** @var WarehouseInventoryAdjustmentAdviceHeaderDateItems[]|array */ + public $date; - /** @var WarehouseInventoryAdjustmentAdviceHeaderContactsItems[]|array */ - public $contacts; + /** @var WarehouseInventoryAdjustmentAdviceHeaderContactItems[]|array */ + public $contact; /** @var WarehouseInventoryAdjustmentAdviceHeaderAddressItems[]|array */ public $address; @@ -45,15 +45,15 @@ public static function setUpProperties($properties, Schema $ownerSchema) { $properties->headerOrder = WarehouseInventoryAdjustmentAdviceHeaderHeaderOrder::schema(); $ownerSchema->addPropertyMapping('HeaderOrder', self::names()->headerOrder); - $properties->references = Schema::arr(); - $properties->references->items = WarehouseInventoryAdjustmentAdviceHeaderReferencesItems::schema(); - $ownerSchema->addPropertyMapping('References', self::names()->references); - $properties->dates = Schema::arr(); - $properties->dates->items = WarehouseInventoryAdjustmentAdviceHeaderDatesItems::schema(); - $ownerSchema->addPropertyMapping('Dates', self::names()->dates); - $properties->contacts = Schema::arr(); - $properties->contacts->items = WarehouseInventoryAdjustmentAdviceHeaderContactsItems::schema(); - $ownerSchema->addPropertyMapping('Contacts', self::names()->contacts); + $properties->reference = Schema::arr(); + $properties->reference->items = WarehouseInventoryAdjustmentAdviceHeaderReferenceItems::schema(); + $ownerSchema->addPropertyMapping('Reference', self::names()->reference); + $properties->date = Schema::arr(); + $properties->date->items = WarehouseInventoryAdjustmentAdviceHeaderDateItems::schema(); + $ownerSchema->addPropertyMapping('Date', self::names()->date); + $properties->contact = Schema::arr(); + $properties->contact->items = WarehouseInventoryAdjustmentAdviceHeaderContactItems::schema(); + $ownerSchema->addPropertyMapping('Contact', self::names()->contact); $properties->address = Schema::arr(); $properties->address->items = WarehouseInventoryAdjustmentAdviceHeaderAddressItems::schema(); $ownerSchema->addPropertyMapping('Address', self::names()->address); diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItems.php similarity index 92% rename from src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItems.php index c90e1c8..76ccdb6 100644 --- a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItems.php @@ -4,7 +4,7 @@ * Please consider to NOT put any emotional human-generated modifications as the splendid AI will throw them away with no mercy. */ -namespace ShipStream\SpsCommerce\RSX\v777\WarehouseInventoryAdjustmentAdvices; +namespace ShipStream\SpsCommerce\RSX\v710\WarehouseInventoryAdjustmentAdvices; use Swaggest\JsonSchema\Constraint\Properties; use Swaggest\JsonSchema\Schema; @@ -196,14 +196,14 @@ class WarehouseInventoryAdjustmentAdviceHeaderAddressItems extends ClassStructur /** @var string Unique tax exemption number assigned by the relevant tax authority to identify an entity or organization */ public $addressTaxExemptNumber; - /** @var WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactsItems[]|array */ - public $contacts; + /** @var WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactItems[]|array */ + public $contact; - /** @var WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferencesItems[]|array */ - public $references; + /** @var WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferenceItems[]|array */ + public $reference; - /** @var WarehouseInventoryAdjustmentAdviceHeaderAddressItemsDatesItems[]|array */ - public $dates; + /** @var WarehouseInventoryAdjustmentAdviceHeaderAddressItemsDateItems[]|array */ + public $date; /** * @param Properties|static $properties @@ -333,15 +333,15 @@ public static function setUpProperties($properties, Schema $ownerSchema) $properties->addressTaxExemptNumber = Schema::string(); $properties->addressTaxExemptNumber->description = "Unique tax exemption number assigned by the relevant tax authority to identify an entity or organization"; $ownerSchema->addPropertyMapping('AddressTaxExemptNumber', self::names()->addressTaxExemptNumber); - $properties->contacts = Schema::arr(); - $properties->contacts->items = WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactsItems::schema(); - $ownerSchema->addPropertyMapping('Contacts', self::names()->contacts); - $properties->references = Schema::arr(); - $properties->references->items = WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferencesItems::schema(); - $ownerSchema->addPropertyMapping('References', self::names()->references); - $properties->dates = Schema::arr(); - $properties->dates->items = WarehouseInventoryAdjustmentAdviceHeaderAddressItemsDatesItems::schema(); - $ownerSchema->addPropertyMapping('Dates', self::names()->dates); + $properties->contact = Schema::arr(); + $properties->contact->items = WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactItems::schema(); + $ownerSchema->addPropertyMapping('Contact', self::names()->contact); + $properties->reference = Schema::arr(); + $properties->reference->items = WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferenceItems::schema(); + $ownerSchema->addPropertyMapping('Reference', self::names()->reference); + $properties->date = Schema::arr(); + $properties->date->items = WarehouseInventoryAdjustmentAdviceHeaderAddressItemsDateItems::schema(); + $ownerSchema->addPropertyMapping('Date', self::names()->date); $ownerSchema->type = Schema::OBJECT; $ownerSchema->additionalProperties = false; $ownerSchema->description = "Represent an entity such as an organizational, physical location, property, or individual"; diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactsItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactItems.php similarity index 93% rename from src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactsItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactItems.php index fea943a..d6e0d4b 100644 --- a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactsItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactItems.php @@ -4,7 +4,7 @@ * Please consider to NOT put any emotional human-generated modifications as the splendid AI will throw them away with no mercy. */ -namespace ShipStream\SpsCommerce\RSX\v777\WarehouseInventoryAdjustmentAdvices; +namespace ShipStream\SpsCommerce\RSX\v710\WarehouseInventoryAdjustmentAdvices; use Swaggest\JsonSchema\Constraint\Properties; use Swaggest\JsonSchema\Schema; @@ -14,7 +14,7 @@ /** * Provides contact information */ -class WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactsItems extends ClassStructure +class WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactItems extends ClassStructure { const AL = 'AL'; @@ -61,7 +61,7 @@ class WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactsItems extends /** @var string E-mail address for contact listed */ public $primaryEmail; - /** @var WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactsItemsAdditionalContactDetailsItems[]|array */ + /** @var WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactItemsAdditionalContactDetailsItems[]|array */ public $additionalContactDetails; /** @var string Additional field to clarify a contact */ @@ -106,7 +106,7 @@ public static function setUpProperties($properties, Schema $ownerSchema) $properties->primaryEmail->description = "E-mail address for contact listed"; $ownerSchema->addPropertyMapping('PrimaryEmail', self::names()->primaryEmail); $properties->additionalContactDetails = Schema::arr(); - $properties->additionalContactDetails->items = WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactsItemsAdditionalContactDetailsItems::schema(); + $properties->additionalContactDetails->items = WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactItemsAdditionalContactDetailsItems::schema(); $ownerSchema->addPropertyMapping('AdditionalContactDetails', self::names()->additionalContactDetails); $properties->contactReference = Schema::string(); $properties->contactReference->description = "Additional field to clarify a contact"; diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactsItemsAdditionalContactDetailsItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactItemsAdditionalContactDetailsItems.php similarity index 94% rename from src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactsItemsAdditionalContactDetailsItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactItemsAdditionalContactDetailsItems.php index 53344d9..0cf4a50 100644 --- a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactsItemsAdditionalContactDetailsItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactItemsAdditionalContactDetailsItems.php @@ -4,7 +4,7 @@ * Please consider to NOT put any emotional human-generated modifications as the splendid AI will throw them away with no mercy. */ -namespace ShipStream\SpsCommerce\RSX\v777\WarehouseInventoryAdjustmentAdvices; +namespace ShipStream\SpsCommerce\RSX\v710\WarehouseInventoryAdjustmentAdvices; use Swaggest\JsonSchema\Constraint\Properties; use Swaggest\JsonSchema\Schema; @@ -14,7 +14,7 @@ /** * This group should be used if the associated normalized fields already contain information. */ -class WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactsItemsAdditionalContactDetailsItems extends ClassStructure +class WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactItemsAdditionalContactDetailsItems extends ClassStructure { const AU = 'AU'; diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsDatesItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsDateItems.php similarity index 93% rename from src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsDatesItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsDateItems.php index 6348890..44be187 100644 --- a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsDatesItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsDateItems.php @@ -4,7 +4,7 @@ * Please consider to NOT put any emotional human-generated modifications as the splendid AI will throw them away with no mercy. */ -namespace ShipStream\SpsCommerce\RSX\v777\WarehouseInventoryAdjustmentAdvices; +namespace ShipStream\SpsCommerce\RSX\v710\WarehouseInventoryAdjustmentAdvices; use Swaggest\JsonSchema\Constraint\Properties; use Swaggest\JsonSchema\Schema; @@ -14,7 +14,7 @@ /** * Provides date and time information */ -class WarehouseInventoryAdjustmentAdviceHeaderAddressItemsDatesItems extends ClassStructure +class WarehouseInventoryAdjustmentAdviceHeaderAddressItemsDateItems extends ClassStructure { /** @var string Code specifying the type of date */ public $dateTimeQualifier; diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferencesItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferenceItems.php similarity index 94% rename from src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferencesItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferenceItems.php index c221829..faa43ed 100644 --- a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferencesItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferenceItems.php @@ -4,7 +4,7 @@ * Please consider to NOT put any emotional human-generated modifications as the splendid AI will throw them away with no mercy. */ -namespace ShipStream\SpsCommerce\RSX\v777\WarehouseInventoryAdjustmentAdvices; +namespace ShipStream\SpsCommerce\RSX\v710\WarehouseInventoryAdjustmentAdvices; use Swaggest\JsonSchema\Constraint\Properties; use Swaggest\JsonSchema\Schema; @@ -14,7 +14,7 @@ /** * Supplemental information supporting the transaction */ -class WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferencesItems extends ClassStructure +class WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferenceItems extends ClassStructure { /** @var string Code specifying the type of data in the ReferenceID/ReferenceDescription */ public $referenceQual; diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderContactsItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderContactItems.php similarity index 91% rename from src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderContactsItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderContactItems.php index 6e130de..15b59d7 100644 --- a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderContactsItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderContactItems.php @@ -4,7 +4,7 @@ * Please consider to NOT put any emotional human-generated modifications as the splendid AI will throw them away with no mercy. */ -namespace ShipStream\SpsCommerce\RSX\v777\WarehouseInventoryAdjustmentAdvices; +namespace ShipStream\SpsCommerce\RSX\v710\WarehouseInventoryAdjustmentAdvices; use Swaggest\JsonSchema\Constraint\Properties; use Swaggest\JsonSchema\Schema; @@ -14,7 +14,7 @@ /** * Provides contact information */ -class WarehouseInventoryAdjustmentAdviceHeaderContactsItems extends ClassStructure +class WarehouseInventoryAdjustmentAdviceHeaderContactItems extends ClassStructure { const AL = 'AL'; @@ -61,7 +61,7 @@ class WarehouseInventoryAdjustmentAdviceHeaderContactsItems extends ClassStructu /** @var string E-mail address for contact listed */ public $primaryEmail; - /** @var WarehouseInventoryAdjustmentAdviceHeaderContactsItemsAdditionalContactDetailsItems[]|array */ + /** @var WarehouseInventoryAdjustmentAdviceHeaderContactItemsAdditionalContactDetailsItems[]|array */ public $additionalContactDetails; /** @var string Additional field to clarify a contact */ @@ -106,7 +106,7 @@ public static function setUpProperties($properties, Schema $ownerSchema) $properties->primaryEmail->description = "E-mail address for contact listed"; $ownerSchema->addPropertyMapping('PrimaryEmail', self::names()->primaryEmail); $properties->additionalContactDetails = Schema::arr(); - $properties->additionalContactDetails->items = WarehouseInventoryAdjustmentAdviceHeaderContactsItemsAdditionalContactDetailsItems::schema(); + $properties->additionalContactDetails->items = WarehouseInventoryAdjustmentAdviceHeaderContactItemsAdditionalContactDetailsItems::schema(); $ownerSchema->addPropertyMapping('AdditionalContactDetails', self::names()->additionalContactDetails); $properties->contactReference = Schema::string(); $properties->contactReference->description = "Additional field to clarify a contact"; diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderContactsItemsAdditionalContactDetailsItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderContactItemsAdditionalContactDetailsItems.php similarity index 91% rename from src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderContactsItemsAdditionalContactDetailsItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderContactItemsAdditionalContactDetailsItems.php index 160b6dc..6182bfb 100644 --- a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderContactsItemsAdditionalContactDetailsItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderContactItemsAdditionalContactDetailsItems.php @@ -4,7 +4,7 @@ * Please consider to NOT put any emotional human-generated modifications as the splendid AI will throw them away with no mercy. */ -namespace ShipStream\SpsCommerce\RSX\v777\WarehouseInventoryAdjustmentAdvices; +namespace ShipStream\SpsCommerce\RSX\v710\WarehouseInventoryAdjustmentAdvices; use Swaggest\JsonSchema\Constraint\Properties; use Swaggest\JsonSchema\Schema; @@ -14,7 +14,7 @@ /** * This group should be used if the associated normalized fields already contain information. */ -class WarehouseInventoryAdjustmentAdviceHeaderContactsItemsAdditionalContactDetailsItems extends ClassStructure +class WarehouseInventoryAdjustmentAdviceHeaderContactItemsAdditionalContactDetailsItems extends ClassStructure { const AU = 'AU'; diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderDatesItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderDateItems.php similarity index 96% rename from src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderDatesItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderDateItems.php index 4611e8f..71bb6de 100644 --- a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderDatesItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderDateItems.php @@ -4,7 +4,7 @@ * Please consider to NOT put any emotional human-generated modifications as the splendid AI will throw them away with no mercy. */ -namespace ShipStream\SpsCommerce\RSX\v777\WarehouseInventoryAdjustmentAdvices; +namespace ShipStream\SpsCommerce\RSX\v710\WarehouseInventoryAdjustmentAdvices; use Swaggest\JsonSchema\Constraint\Properties; use Swaggest\JsonSchema\Schema; @@ -14,7 +14,7 @@ /** * Provides date and time information */ -class WarehouseInventoryAdjustmentAdviceHeaderDatesItems extends ClassStructure +class WarehouseInventoryAdjustmentAdviceHeaderDateItems extends ClassStructure { const CONST_001 = '001'; diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderHeaderOrder.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderHeaderOrder.php similarity index 98% rename from src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderHeaderOrder.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderHeaderOrder.php index d9c8028..82e1ca7 100644 --- a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderHeaderOrder.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderHeaderOrder.php @@ -4,7 +4,7 @@ * Please consider to NOT put any emotional human-generated modifications as the splendid AI will throw them away with no mercy. */ -namespace ShipStream\SpsCommerce\RSX\v777\WarehouseInventoryAdjustmentAdvices; +namespace ShipStream\SpsCommerce\RSX\v710\WarehouseInventoryAdjustmentAdvices; use Swaggest\JsonSchema\Constraint\Properties; use Swaggest\JsonSchema\Schema; diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderMiscellaneousItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderMiscellaneousItems.php similarity index 97% rename from src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderMiscellaneousItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderMiscellaneousItems.php index c1697fd..04e2e94 100644 --- a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderMiscellaneousItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderMiscellaneousItems.php @@ -4,7 +4,7 @@ * Please consider to NOT put any emotional human-generated modifications as the splendid AI will throw them away with no mercy. */ -namespace ShipStream\SpsCommerce\RSX\v777\WarehouseInventoryAdjustmentAdvices; +namespace ShipStream\SpsCommerce\RSX\v710\WarehouseInventoryAdjustmentAdvices; use Swaggest\JsonSchema\Constraint\Properties; use Swaggest\JsonSchema\Schema; diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderNotesItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderNotesItems.php similarity index 85% rename from src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderNotesItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderNotesItems.php index 5ef6ae5..a869ff7 100644 --- a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderNotesItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderNotesItems.php @@ -4,7 +4,7 @@ * Please consider to NOT put any emotional human-generated modifications as the splendid AI will throw them away with no mercy. */ -namespace ShipStream\SpsCommerce\RSX\v777\WarehouseInventoryAdjustmentAdvices; +namespace ShipStream\SpsCommerce\RSX\v710\WarehouseInventoryAdjustmentAdvices; use Swaggest\JsonSchema\Constraint\Properties; use Swaggest\JsonSchema\Schema; @@ -39,12 +39,12 @@ class WarehouseInventoryAdjustmentAdviceHeaderNotesItems extends ClassStructure /** @var string Code specifying the type of note */ public $noteCode; - /** @var string Free-form textual description of the note */ - public $note; - /** @var string Code designating the language used in text. ISO 639 language code */ public $languageCode; + /** @var string Free-form textual description of the note */ + public $noteInformationField; + /** * @param Properties|static $properties * @param Schema $ownerSchema @@ -66,12 +66,12 @@ public static function setUpProperties($properties, Schema $ownerSchema) ); $properties->noteCode->description = "Code specifying the type of note"; $ownerSchema->addPropertyMapping('NoteCode', self::names()->noteCode); - $properties->note = Schema::string(); - $properties->note->description = "Free-form textual description of the note"; - $ownerSchema->addPropertyMapping('Note', self::names()->note); $properties->languageCode = Schema::string(); $properties->languageCode->description = "Code designating the language used in text. ISO 639 language code"; $ownerSchema->addPropertyMapping('LanguageCode', self::names()->languageCode); + $properties->noteInformationField = Schema::string(); + $properties->noteInformationField->description = "Free-form textual description of the note"; + $ownerSchema->addPropertyMapping('NoteInformationField', self::names()->noteInformationField); $ownerSchema->type = Schema::OBJECT; $ownerSchema->additionalProperties = false; $ownerSchema->description = "Supplemental text for the transaction"; diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderReferencesItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderReferenceItems.php similarity index 95% rename from src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderReferencesItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderReferenceItems.php index 708bacc..babbe0f 100644 --- a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderReferencesItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderReferenceItems.php @@ -4,7 +4,7 @@ * Please consider to NOT put any emotional human-generated modifications as the splendid AI will throw them away with no mercy. */ -namespace ShipStream\SpsCommerce\RSX\v777\WarehouseInventoryAdjustmentAdvices; +namespace ShipStream\SpsCommerce\RSX\v710\WarehouseInventoryAdjustmentAdvices; use Swaggest\JsonSchema\Constraint\Properties; use Swaggest\JsonSchema\Schema; @@ -14,7 +14,7 @@ /** * Supplemental information supporting the transaction */ -class WarehouseInventoryAdjustmentAdviceHeaderReferencesItems extends ClassStructure +class WarehouseInventoryAdjustmentAdviceHeaderReferenceItems extends ClassStructure { const CONST_02 = '02'; diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItems.php similarity index 95% rename from src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItems.php index f19cf0b..5ab4486 100644 --- a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItems.php @@ -4,7 +4,7 @@ * Please consider to NOT put any emotional human-generated modifications as the splendid AI will throw them away with no mercy. */ -namespace ShipStream\SpsCommerce\RSX\v777\WarehouseInventoryAdjustmentAdvices; +namespace ShipStream\SpsCommerce\RSX\v710\WarehouseInventoryAdjustmentAdvices; use Swaggest\JsonSchema\Constraint\Properties; use Swaggest\JsonSchema\Schema; diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItems.php similarity index 77% rename from src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItems.php index 917d050..aff4a43 100644 --- a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItems.php @@ -4,7 +4,7 @@ * Please consider to NOT put any emotional human-generated modifications as the splendid AI will throw them away with no mercy. */ -namespace ShipStream\SpsCommerce\RSX\v777\WarehouseInventoryAdjustmentAdvices; +namespace ShipStream\SpsCommerce\RSX\v710\WarehouseInventoryAdjustmentAdvices; use Swaggest\JsonSchema\Constraint\Properties; use Swaggest\JsonSchema\Schema; @@ -19,11 +19,11 @@ class WarehouseInventoryAdjustmentAdviceLineItemsLineItemItems extends ClassStru /** @var WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsItemDetail Contains the commonly used fields in the line item level of the transaction */ public $itemDetail; - /** @var WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsReferencesItems[]|array */ - public $references; + /** @var WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsReferenceItems[]|array */ + public $reference; - /** @var WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsDatesItems[]|array */ - public $dates; + /** @var WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsDateItems[]|array */ + public $date; /** @var WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItems[]|array */ public $address; @@ -39,12 +39,12 @@ public static function setUpProperties($properties, Schema $ownerSchema) { $properties->itemDetail = WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsItemDetail::schema(); $ownerSchema->addPropertyMapping('ItemDetail', self::names()->itemDetail); - $properties->references = Schema::arr(); - $properties->references->items = WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsReferencesItems::schema(); - $ownerSchema->addPropertyMapping('References', self::names()->references); - $properties->dates = Schema::arr(); - $properties->dates->items = WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsDatesItems::schema(); - $ownerSchema->addPropertyMapping('Dates', self::names()->dates); + $properties->reference = Schema::arr(); + $properties->reference->items = WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsReferenceItems::schema(); + $ownerSchema->addPropertyMapping('Reference', self::names()->reference); + $properties->date = Schema::arr(); + $properties->date->items = WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsDateItems::schema(); + $ownerSchema->addPropertyMapping('Date', self::names()->date); $properties->address = Schema::arr(); $properties->address->items = WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItems::schema(); $ownerSchema->addPropertyMapping('Address', self::names()->address); diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItems.php similarity index 93% rename from src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItems.php index 2654513..f68954a 100644 --- a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItems.php @@ -4,7 +4,7 @@ * Please consider to NOT put any emotional human-generated modifications as the splendid AI will throw them away with no mercy. */ -namespace ShipStream\SpsCommerce\RSX\v777\WarehouseInventoryAdjustmentAdvices; +namespace ShipStream\SpsCommerce\RSX\v710\WarehouseInventoryAdjustmentAdvices; use Swaggest\JsonSchema\Constraint\Properties; use Swaggest\JsonSchema\Schema; @@ -196,11 +196,11 @@ class WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItems exten /** @var string Unique tax exemption number assigned by the relevant tax authority to identify an entity or organization */ public $addressTaxExemptNumber; - /** @var WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferencesItems[]|array */ - public $references; + /** @var WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferenceItems[]|array */ + public $reference; - /** @var WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsDatesItems[]|array */ - public $dates; + /** @var WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsDateItems[]|array */ + public $date; /** * @param Properties|static $properties @@ -330,12 +330,12 @@ public static function setUpProperties($properties, Schema $ownerSchema) $properties->addressTaxExemptNumber = Schema::string(); $properties->addressTaxExemptNumber->description = "Unique tax exemption number assigned by the relevant tax authority to identify an entity or organization"; $ownerSchema->addPropertyMapping('AddressTaxExemptNumber', self::names()->addressTaxExemptNumber); - $properties->references = Schema::arr(); - $properties->references->items = WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferencesItems::schema(); - $ownerSchema->addPropertyMapping('References', self::names()->references); - $properties->dates = Schema::arr(); - $properties->dates->items = WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsDatesItems::schema(); - $ownerSchema->addPropertyMapping('Dates', self::names()->dates); + $properties->reference = Schema::arr(); + $properties->reference->items = WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferenceItems::schema(); + $ownerSchema->addPropertyMapping('Reference', self::names()->reference); + $properties->date = Schema::arr(); + $properties->date->items = WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsDateItems::schema(); + $ownerSchema->addPropertyMapping('Date', self::names()->date); $ownerSchema->type = Schema::OBJECT; $ownerSchema->additionalProperties = false; $ownerSchema->description = "Represent an entity such as an organizational, physical location, property, or individual"; diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsDatesItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsDateItems.php similarity index 95% rename from src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsDatesItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsDateItems.php index 7a43c58..ed0b815 100644 --- a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsDatesItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsDateItems.php @@ -4,7 +4,7 @@ * Please consider to NOT put any emotional human-generated modifications as the splendid AI will throw them away with no mercy. */ -namespace ShipStream\SpsCommerce\RSX\v777\WarehouseInventoryAdjustmentAdvices; +namespace ShipStream\SpsCommerce\RSX\v710\WarehouseInventoryAdjustmentAdvices; use Swaggest\JsonSchema\Constraint\Properties; use Swaggest\JsonSchema\Schema; @@ -14,7 +14,7 @@ /** * Provides date and time information */ -class WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsDatesItems extends ClassStructure +class WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsDateItems extends ClassStructure { /** @var string Code specifying the type of date */ public $dateTimeQualifier; diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferencesItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferenceItems.php similarity index 93% rename from src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferencesItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferenceItems.php index 6d75413..168688b 100644 --- a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferencesItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferenceItems.php @@ -4,7 +4,7 @@ * Please consider to NOT put any emotional human-generated modifications as the splendid AI will throw them away with no mercy. */ -namespace ShipStream\SpsCommerce\RSX\v777\WarehouseInventoryAdjustmentAdvices; +namespace ShipStream\SpsCommerce\RSX\v710\WarehouseInventoryAdjustmentAdvices; use Swaggest\JsonSchema\Constraint\Properties; use Swaggest\JsonSchema\Schema; @@ -14,7 +14,7 @@ /** * Supplemental information supporting the transaction */ -class WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferencesItems extends ClassStructure +class WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferenceItems extends ClassStructure { /** @var string Code specifying the type of data in the ReferenceID/ReferenceDescription */ public $referenceQual; diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsDatesItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsDateItems.php similarity index 97% rename from src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsDatesItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsDateItems.php index f2d02bb..8c2d4db 100644 --- a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsDatesItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsDateItems.php @@ -4,7 +4,7 @@ * Please consider to NOT put any emotional human-generated modifications as the splendid AI will throw them away with no mercy. */ -namespace ShipStream\SpsCommerce\RSX\v777\WarehouseInventoryAdjustmentAdvices; +namespace ShipStream\SpsCommerce\RSX\v710\WarehouseInventoryAdjustmentAdvices; use Swaggest\JsonSchema\Constraint\Properties; use Swaggest\JsonSchema\Schema; @@ -14,7 +14,7 @@ /** * Provides date and time information */ -class WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsDatesItems extends ClassStructure +class WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsDateItems extends ClassStructure { const CONST_001 = '001'; diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsItemDetail.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsItemDetail.php similarity index 99% rename from src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsItemDetail.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsItemDetail.php index 925fef9..4d842bd 100644 --- a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsItemDetail.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsItemDetail.php @@ -4,7 +4,7 @@ * Please consider to NOT put any emotional human-generated modifications as the splendid AI will throw them away with no mercy. */ -namespace ShipStream\SpsCommerce\RSX\v777\WarehouseInventoryAdjustmentAdvices; +namespace ShipStream\SpsCommerce\RSX\v710\WarehouseInventoryAdjustmentAdvices; use Swaggest\JsonSchema\Constraint\Properties; use Swaggest\JsonSchema\Schema; diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsMiscellaneousItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsMiscellaneousItems.php similarity index 97% rename from src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsMiscellaneousItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsMiscellaneousItems.php index f730472..0c7f963 100644 --- a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsMiscellaneousItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsMiscellaneousItems.php @@ -4,7 +4,7 @@ * Please consider to NOT put any emotional human-generated modifications as the splendid AI will throw them away with no mercy. */ -namespace ShipStream\SpsCommerce\RSX\v777\WarehouseInventoryAdjustmentAdvices; +namespace ShipStream\SpsCommerce\RSX\v710\WarehouseInventoryAdjustmentAdvices; use Swaggest\JsonSchema\Constraint\Properties; use Swaggest\JsonSchema\Schema; diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsReferencesItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsReferenceItems.php similarity index 97% rename from src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsReferencesItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsReferenceItems.php index 8ebc250..a4beebd 100644 --- a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsReferencesItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsReferenceItems.php @@ -4,7 +4,7 @@ * Please consider to NOT put any emotional human-generated modifications as the splendid AI will throw them away with no mercy. */ -namespace ShipStream\SpsCommerce\RSX\v777\WarehouseInventoryAdjustmentAdvices; +namespace ShipStream\SpsCommerce\RSX\v710\WarehouseInventoryAdjustmentAdvices; use Swaggest\JsonSchema\Constraint\Properties; use Swaggest\JsonSchema\Schema; @@ -14,7 +14,7 @@ /** * Supplemental information supporting the transaction */ -class WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsReferencesItems extends ClassStructure +class WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsReferenceItems extends ClassStructure { const CONST_02 = '02'; diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceMeta.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceMeta.php similarity index 99% rename from src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceMeta.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceMeta.php index 31ed338..0a2ff24 100644 --- a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceMeta.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceMeta.php @@ -4,7 +4,7 @@ * Please consider to NOT put any emotional human-generated modifications as the splendid AI will throw them away with no mercy. */ -namespace ShipStream\SpsCommerce\RSX\v777\WarehouseInventoryAdjustmentAdvices; +namespace ShipStream\SpsCommerce\RSX\v710\WarehouseInventoryAdjustmentAdvices; use Swaggest\JsonSchema\Constraint\Properties; use Swaggest\JsonSchema\Schema; diff --git a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceSummary.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceSummary.php similarity index 98% rename from src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceSummary.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceSummary.php index 0360314..5ffeddb 100644 --- a/src/RSX/v777/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceSummary.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceSummary.php @@ -4,7 +4,7 @@ * Please consider to NOT put any emotional human-generated modifications as the splendid AI will throw them away with no mercy. */ -namespace ShipStream\SpsCommerce\RSX\v777\WarehouseInventoryAdjustmentAdvices; +namespace ShipStream\SpsCommerce\RSX\v710\WarehouseInventoryAdjustmentAdvices; use Swaggest\JsonSchema\Constraint\Properties; use Swaggest\JsonSchema\Schema; From 476674bf2f69f63fa5b99228c6b78f98361d788d Mon Sep 17 00:00:00 2001 From: Rob Wigginton <8102829+bob2021@users.noreply.github.com> Date: Tue, 31 Mar 2026 12:47:59 +0100 Subject: [PATCH 3/7] Rebuild 947 schema from json schema. --- generate.sh | 24 +- .../WarehouseInventoryAdjustmentAdvices.json | 3824 +++-------------- ...yAdjustmentAdviceHeader.php => Header.php} | 41 +- .../HeaderAddressItems.php | 164 + .../HeaderContactItems.php | 80 + .../HeaderDateItems.php | 74 + .../HeaderHeaderOrder.php | 86 + ...Items.php => HeaderMiscellaneousItems.php} | 41 +- .../HeaderNotesItems.php | 50 + ...enceItems.php => HeaderReferenceItems.php} | 39 +- ...tmentAdviceLineItems.php => LineItems.php} | 11 +- ...emItems.php => LineItemsLineItemItems.php} | 31 +- .../LineItemsLineItemItemsAddressItems.php | 164 + .../LineItemsLineItemItemsDateItems.php | 74 + .../LineItemsLineItemItemsItemDetail.php | 218 + ...eItemsLineItemItemsMiscellaneousItems.php} | 41 +- ... LineItemsLineItemItemsReferenceItems.php} | 39 +- .../Property01abfc.php | 51 + .../Summary.php | 74 + .../WarehouseInventoryAdjustmentAdvice.php | 54 - ...toryAdjustmentAdviceHeaderAddressItems.php | 351 -- ...ntAdviceHeaderAddressItemsContactItems.php | 120 - ...tactItemsAdditionalContactDetailsItems.php | 69 - ...tmentAdviceHeaderAddressItemsDateItems.php | 57 - ...toryAdjustmentAdviceHeaderContactItems.php | 120 - ...tactItemsAdditionalContactDetailsItems.php | 69 - ...ventoryAdjustmentAdviceHeaderDateItems.php | 140 - ...ntoryAdjustmentAdviceHeaderHeaderOrder.php | 130 - ...entoryAdjustmentAdviceHeaderNotesItems.php | 81 - ...ryAdjustmentAdviceHeaderReferenceItems.php | 150 - ...viceLineItemsLineItemItemsAddressItems.php | 345 -- ...temsLineItemItemsAddressItemsDateItems.php | 57 - ...tAdviceLineItemsLineItemItemsDateItems.php | 140 - ...AdviceLineItemsLineItemItemsItemDetail.php | 547 --- ...ceLineItemsLineItemItemsReferenceItems.php | 150 - ...WarehouseInventoryAdjustmentAdviceMeta.php | 187 - ...ehouseInventoryAdjustmentAdviceSummary.php | 101 - 37 files changed, 1867 insertions(+), 6127 deletions(-) rename src/RSX/v710/WarehouseInventoryAdjustmentAdvices/{WarehouseInventoryAdjustmentAdviceHeader.php => Header.php} (52%) create mode 100644 src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItems.php create mode 100644 src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderContactItems.php create mode 100644 src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderDateItems.php create mode 100644 src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderHeaderOrder.php rename src/RSX/v710/WarehouseInventoryAdjustmentAdvices/{WarehouseInventoryAdjustmentAdviceHeaderMiscellaneousItems.php => HeaderMiscellaneousItems.php} (58%) create mode 100644 src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderNotesItems.php rename src/RSX/v710/WarehouseInventoryAdjustmentAdvices/{WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferenceItems.php => HeaderReferenceItems.php} (50%) rename src/RSX/v710/WarehouseInventoryAdjustmentAdvices/{WarehouseInventoryAdjustmentAdviceLineItems.php => LineItems.php} (66%) rename src/RSX/v710/WarehouseInventoryAdjustmentAdvices/{WarehouseInventoryAdjustmentAdviceLineItemsLineItemItems.php => LineItemsLineItemItems.php} (50%) create mode 100644 src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItems.php create mode 100644 src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsDateItems.php create mode 100644 src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsItemDetail.php rename src/RSX/v710/WarehouseInventoryAdjustmentAdvices/{WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsMiscellaneousItems.php => LineItemsLineItemItemsMiscellaneousItems.php} (58%) rename src/RSX/v710/WarehouseInventoryAdjustmentAdvices/{WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferenceItems.php => LineItemsLineItemItemsReferenceItems.php} (50%) create mode 100644 src/RSX/v710/WarehouseInventoryAdjustmentAdvices/Property01abfc.php create mode 100644 src/RSX/v710/WarehouseInventoryAdjustmentAdvices/Summary.php delete mode 100644 src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdvice.php delete mode 100644 src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItems.php delete mode 100644 src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactItems.php delete mode 100644 src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactItemsAdditionalContactDetailsItems.php delete mode 100644 src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsDateItems.php delete mode 100644 src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderContactItems.php delete mode 100644 src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderContactItemsAdditionalContactDetailsItems.php delete mode 100644 src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderDateItems.php delete mode 100644 src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderHeaderOrder.php delete mode 100644 src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderNotesItems.php delete mode 100644 src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderReferenceItems.php delete mode 100644 src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItems.php delete mode 100644 src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsDateItems.php delete mode 100644 src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsDateItems.php delete mode 100644 src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsItemDetail.php delete mode 100644 src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsReferenceItems.php delete mode 100644 src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceMeta.php delete mode 100644 src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceSummary.php diff --git a/generate.sh b/generate.sh index b8e0078..f1a243e 100755 --- a/generate.sh +++ b/generate.sh @@ -28,12 +28,22 @@ for version in "${versions[@]}"; do [ ! -f "json-schema/$version/$file" ] && continue echo "Generating $class classes for $version/$file schema" mkdir -p src/RSX/$version/$name - docker run --rm -v $PWD:/app --workdir /app \ - swaggest/json-cli \ - json-cli gen-php "json-schema/$version/$file" \ - --ptr-in-schema "#/definitions/$class" \ - --def-ptr "#/definitions" \ - --ns ShipStream\\SpsCommerce\\RSX\\$version\\$name \ - --ns-path src/RSX/$version/$name/ + if [[ "$version" == "v710" ]]; then + docker run --rm -v $PWD:/app --workdir /app \ + swaggest/json-cli \ + json-cli gen-php "json-schema/$version/$file" \ + --ptr-in-schema "#" \ + --root-name $class \ + --ns ShipStream\\SpsCommerce\\RSX\\$version\\$name \ + --ns-path src/RSX/$version/$name/ + else + docker run --rm -v $PWD:/app --workdir /app \ + swaggest/json-cli \ + json-cli gen-php "json-schema/$version/$file" \ + --ptr-in-schema "#/definitions/$class" \ + --def-ptr "#/definitions" \ + --ns ShipStream\\SpsCommerce\\RSX\\$version\\$name \ + --ns-path src/RSX/$version/$name/ + fi done done diff --git a/json-schema/v710/WarehouseInventoryAdjustmentAdvices.json b/json-schema/v710/WarehouseInventoryAdjustmentAdvices.json index 63dc22f..ce4ad1e 100644 --- a/json-schema/v710/WarehouseInventoryAdjustmentAdvices.json +++ b/json-schema/v710/WarehouseInventoryAdjustmentAdvices.json @@ -1,3270 +1,774 @@ { - "schema": "http://json-schema.org/draft-07/schema#", - "title": "WarehouseInventoryAdjustmentAdvices", - "$comment": "COPYRIGHT SPS COMMERCE, INC. ALL RIGHTS RESERVED 2020. SUPPLIED AS-IS WITH NO WARRANTIES.", - "definitions": { - "WarehouseInventoryAdjustmentAdvice": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Generated schema for Root", + "type": "object", + "properties": { + "Header": { "type": "object", - "description": "Provides inventory adjustment details from the warehouse", - "additionalProperties": false, - "required": [ - "Header" - ], "properties": { - "Meta": { + "HeaderOrder": { "type": "object", - "description": "Information used for internal purposes at SPS Commerce", - "additionalProperties": false, - "required": [], "properties": { - "SenderUniqueID": { - "type": "string" - }, - "SenderCompanyName": { - "type": "string" - }, - "ReceiverUniqueID": { - "type": "string" - }, - "ReceiverCompanyName": { + "TradingPartnerId": { "type": "string" }, - "IsDropShip": { - "type": "boolean" - }, - "InterchangeControlNumber": { - "type": "string" - }, - "GroupControlIdentifier": { + "DocumentId": { "type": "string" }, - "GroupControlNumber": { + "RecordType": { "type": "string" }, - "DocumentControlIdentifier": { + "Date1": { "type": "string" }, - "DocumentControlNumber": { + "AdjustmentNumber1": { "type": "string" }, - "InterchangeSenderID": { + "AdjustmentNumber2": { "type": "string" }, - "InterchangeReceiverID": { + "TsetPurposeCode": { "type": "string" }, - "GroupSenderID": { + "PurchaseOrderNumber": { "type": "string" }, - "GroupReceiverID": { + "TransactionTypeCode": { "type": "string" }, - "BatchPart": { + "ActionCode": { "type": "string" + } + }, + "required": [ + "TradingPartnerId", + "DocumentId", + "RecordType", + "Date1", + "AdjustmentNumber1", + "AdjustmentNumber2", + "TsetPurposeCode", + "PurchaseOrderNumber", + "TransactionTypeCode", + "ActionCode" + ] + }, + "Reference": { + "type": "array", + "items": { + "type": "object", + "properties": { + "TradingPartnerId": { + "type": "string" + }, + "DocumentId": { + "type": "string" + }, + "RecordType": { + "type": "string" + }, + "ReferenceQual": { + "type": "string" + }, + "ReferenceID": { + "type": "string" + }, + "Description": { + "type": "string" + } }, - "BatchTotal": { - "type": "integer" - }, - "BatchID": { - "type": "string" + "required": [ + "TradingPartnerId", + "DocumentId", + "RecordType", + "ReferenceQual", + "ReferenceID", + "Description" + ] + } + }, + "Date": { + "type": "array", + "items": { + "type": "object", + "properties": { + "TradingPartnerId": { + "type": "string" + }, + "DocumentId": { + "type": "string" + }, + "RecordType": { + "type": "string" + }, + "DateTimeQualifier1": { + "type": "string" + }, + "Date1": { + "type": "string" + }, + "Time1": { + "type": "string" + }, + "TimeCode1": { + "type": "string" + }, + "DateTimeFormQualifier1": { + "type": "string" + } }, - "Comments": { - "type": "string" + "required": [ + "TradingPartnerId", + "DocumentId", + "RecordType", + "DateTimeQualifier1", + "Date1", + "Time1", + "TimeCode1", + "DateTimeFormQualifier1" + ] + } + }, + "Contact": { + "type": "array", + "items": { + "type": "object", + "properties": { + "TradingPartnerId": { + "type": "string" + }, + "DocumentId": { + "type": "string" + }, + "RecordType": { + "type": "string" + }, + "ContactTypeCode": { + "type": "string" + }, + "ContactName": { + "type": "string" + }, + "ContactPhone": { + "type": "string" + }, + "ContactFax": { + "type": "string" + }, + "ContactEmail": { + "type": "string" + }, + "ContactReference": { + "type": "string" + } }, - "Validation": { - "type": "string" + "required": [ + "TradingPartnerId", + "DocumentId", + "RecordType", + "ContactTypeCode", + "ContactName", + "ContactPhone", + "ContactFax", + "ContactEmail", + "ContactReference" + ] + } + }, + "Address": { + "type": "array", + "items": { + "type": "object", + "properties": { + "TradingPartnerId": { + "type": "string" + }, + "DocumentId": { + "type": "string" + }, + "RecordType": { + "type": "string" + }, + "AddressTypeCode": { + "type": "string" + }, + "LocationCodeQualifier": { + "type": "string" + }, + "AddressLocationNumber": { + "type": "string" + }, + "AddressName": { + "type": "string" + }, + "AddressAlternateName": { + "type": "string" + }, + "Address1": { + "type": "string" + }, + "Address2": { + "type": "string" + }, + "Address3": { + "type": "string" + }, + "Address4": { + "type": "string" + }, + "City": { + "type": "string" + }, + "State": { + "type": "string" + }, + "PostalCode": { + "type": "string" + }, + "Country": { + "type": "string" + }, + "ContactName": { + "type": "string" + }, + "ContactPhone": { + "type": "string" + }, + "ContactFax": { + "type": "string" + }, + "ContactEmail": { + "type": "string" + }, + "AddressTaxIdNumber": { + "type": "string" + }, + "AddressTaxExemptNumber": { + "type": "string" + }, + "AddressAlternateName2": { + "type": "string" + } }, - "OrderManagement": { - "type": "string", - "enum": [ - "Bulk-Import", - "CrossDock", - "DropShip", - "InventoryAdvice", - "ItemManagementService", - "LogisticsManagement", - "MultiStore", - "None", - "PlanningScheduleRelease", - "ProductActivityReport", - "SalesOrPriceCatalog", - "SmallPackage", - "StockRelease", - "StockTransfer", - "Truckload-LTL", - "WarehouseInventoryAdjustment" - ], - "enumDescriptions": { - "Bulk-Import": { - "description": "For use with the Invoices, OrderAcks, OrderChanges, OrderChangeAcks, Orders, or Shipments schemas only" - }, - "CrossDock": { - "description": "For use with the Invoices, OrderAcks, OrderChanges, OrderChangeAcks, Orders, or Shipments schemas only" - }, - "DropShip": { - "description": "For use with the Invoices, OrderAcks, OrderChanges, OrderChangeAcks, Orders, or Shipments schemas only" - }, - "InventoryAdvice": { - "description": "For use with the ItemRegistries schema only" - }, - "ItemManagementService": { - "description": "For use with the ItemRegistries schema only" - }, - "LogisticsManagement": { - "description": "For use with the CarrierLoadTenders, MotorCarrierFreightDetails, or CarrierLoadTenderResponses schemas only" - }, - "MultiStore": { - "description": "For use with the Invoices, OrderAcks, OrderChanges, OrderChangeAcks, Orders, or Shipments schemas only" - }, - "None": { - "description": "For use with the OrganizationalRelationships schema only" - }, - "PlanningScheduleRelease": { - "description": "For use with the PlanningSchedules schema only" - }, - "ProductActivityReport": { - "description": "For use with the ProductActivities schema only" - }, - "SalesOrPriceCatalog": { - "description": "For use with the ItemRegistries schema only" - }, - "SmallPackage": { - "description": "For use with the CarrierStatusMessages schema only" - }, - "StockRelease": { - "description": "For use with the Orders or Shipments schemas only" - }, - "StockTransfer": { - "description": "For use with the Shipments or WarehouseTransferReceiptAdvices schemas only" - }, - "Truckload-LTL": { - "description": "For use with the CarrierStatusMessages schema only" - }, - "WarehouseInventoryAdjustment": { - "description": "For use with the WarehouseInventoryAdjustmentAdvices schema only" - } + "required": [ + "TradingPartnerId", + "DocumentId", + "RecordType", + "AddressTypeCode", + "LocationCodeQualifier", + "AddressLocationNumber", + "AddressName", + "AddressAlternateName", + "Address1", + "Address2", + "Address3", + "Address4", + "City", + "State", + "PostalCode", + "Country", + "ContactName", + "ContactPhone", + "ContactFax", + "ContactEmail", + "AddressTaxIdNumber", + "AddressTaxExemptNumber", + "AddressAlternateName2" + ] + } + }, + "Notes": { + "type": "array", + "items": { + "type": "object", + "properties": { + "TradingPartnerId": { + "type": "string" + }, + "DocumentId": { + "type": "string" + }, + "RecordType": { + "type": "string" + }, + "NoteInformationField": { + "type": "string" } }, - "Version": { - "description": "XML Version number", - "type": "string" - } + "required": [ + "TradingPartnerId", + "DocumentId", + "RecordType", + "NoteInformationField" + ] } }, - "Header": { - "type": "object", - "description": "Encloses all document header elements", - "additionalProperties": false, - "required": [ - "HeaderOrder" - ], - "properties": { - "HeaderOrder": { - "type": "object", - "description": "Contains the commonly used fields in the header of the transaction", - "additionalProperties": false, - "required": [ - "TradingPartnerId", - "DocumentId", - "Date1" - ], - "properties": { - "TradingPartnerId": { - "description": "Unique internal identifier defined by SPS Commerce which identifies the relationship", - "examples": [ - "000ALLTESTID" - ], - "type": "string", - "minLength": 1, - "maxLength": 15 - }, - "DocumentId": { - "description": "Unique internal identifier defined by SPS Commerce which identifies the document", - "examples": [ - "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" - ], - "type": "string" - }, - "Date1": { - "description": "Date of the inventory adjustment", - "examples": [ - "2013-09-22" - ], - "type": "string", - "format": "date" - }, - "AdjustmentNumber1": { - "description": "Primary adjustment number assigned to the inventory adjustment", - "type": "string" - }, - "AdjustmentNumber2": { - "description": "Secondary adjustment number assigned to the inventory adjustment", - "type": "string" - }, - "TsetPurposeCode": { - "description": "Code indicating the purpose of the transaction set", - "type": "string", - "enum": [ - "00", - "01", - "05", - "07" - ], - "enumDescriptions": { - "00": { - "description": "Original" - }, - "01": { - "description": "Cancellation" - }, - "05": { - "description": "Replace" - }, - "07": { - "description": "Duplicate" - } - } - }, - "PurchaseOrderNumber": { - "description": "Identifying number for a purchase order assigned by the orderer/buyer", - "type": "string" - }, - "TransactionTypeCode": { - "description": "Code specifying the type of transaction", - "type": "string", - "enum": [ - "CR", - "DR" - ], - "enumDescriptions": { - "CR": { - "description": "Credit Memo" - }, - "DR": { - "description": "Debit Memo" - } - } - }, - "ActionCode": { - "description": "Code indicating the type of action", - "type": "string", - "enum": [ - "2", - "4", - "RH", - "ST", - "WQ" - ], - "enumDescriptions": { - "2": { - "description": "Change" - }, - "4": { - "description": "Delete" - }, - "RH": { - "description": "Release Hold" - }, - "ST": { - "description": "Stock Transfer" - }, - "WQ": { - "description": "Warehouse Quantity Adjustment" - } - } - } + "Miscellaneous": { + "type": "array", + "items": { + "type": "object", + "properties": { + "TradingPartnerId": { + "type": "string" + }, + "DocumentId": { + "type": "string" + }, + "RecordType": { + "type": "string" + }, + "Qualifier1": { + "type": "string" + }, + "Description1": { + "type": "string" + }, + "Qualifier2": { + "type": "string" + }, + "Description2": { + "type": "string" } }, - "Reference": { - "type": "array", - "items": { + "required": [ + "TradingPartnerId", + "DocumentId", + "RecordType", + "Qualifier1", + "Description1", + "Qualifier2", + "Description2" + ] + } + } + }, + "required": [ + "HeaderOrder", + "Reference", + "Date", + "Contact", + "Address", + "Notes", + "Miscellaneous" + ] + }, + "LineItems": { + "type": "object", + "properties": { + "LineItem": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ItemDetail": { "type": "object", - "description": "Supplemental information supporting the transaction", - "additionalProperties": false, - "required": [], "properties": { - "ReferenceQual": { - "description": "Code specifying the type of data in the ReferenceID/ReferenceDescription", - "type": "string", - "enum": [ - "02", - "06", - "12", - "19", - "2I", - "AH", - "AN", - "AO", - "BM", - "BT", - "BY", - "CN", - "CT", - "DO", - "GS", - "IL", - "IN", - "IT", - "IV", - "KW", - "LO", - "MK", - "OC", - "PD", - "PK", - "PO", - "SE", - "SI", - "TN", - "VN", - "WH", - "WLT", - "WS" - ], - "enumDescriptions": { - "02": { - "description": "Society for Worldwide Interbank Financial Telecommunication", - "longDescription": "A unique identification code for a particular bank" - }, - "06": { - "description": "System Number" - }, - "12": { - "description": "Billing Account Number", - "longDescription": "Account number in a trading partner's accounts receivable system" - }, - "19": { - "description": "Division", - "longDescription": "Different entities belonging to the same parent company" - }, - "2I": { - "description": "Tracking Number" - }, - "AH": { - "description": "Agreement Number" - }, - "AN": { - "description": "Appointment Number" - }, - "AO": { - "description": "Account Suffix" - }, - "BM": { - "description": "Bill of Lading Number" - }, - "BT": { - "description": "Batch Number" - }, - "BY": { - "description": "Repair Category Number" - }, - "CN": { - "description": "Carrier PRO Number", - "longDescription": "Unique number assigned by the carrier to track a shipment" - }, - "CT": { - "description": "Contract Number" - }, - "DO": { - "description": "Delivery Order Number" - }, - "GS": { - "description": "Internal Vendor Number" - }, - "IL": { - "description": "Internal Order Number" - }, - "IN": { - "description": "Invoice Number" - }, - "IT": { - "description": "Internal Customer Number" - }, - "IV": { - "description": "Seller's Invoice Number" - }, - "KW": { - "description": "Certification or License Number" - }, - "LO": { - "description": "Load Planning Number" - }, - "MK": { - "description": "Medical Record Identification Number" - }, - "OC": { - "description": "Old Order Number" - }, - "PD": { - "description": "Promotion Number" - }, - "PK": { - "description": "Packing List Number" - }, - "PO": { - "description": "Purchase Order Number" - }, - "SE": { - "description": "Serial Number" - }, - "SI": { - "description": "Shipper's Identifying Number for Shipment" - }, - "TN": { - "description": "Transaction Reference Number" - }, - "VN": { - "description": "Vendor Order Number" - }, - "WH": { - "description": "Master Reference Link Number", - "longDescription": "Used primarily by logistic firms to associate order documents to warehouse shipments when documents are received independently or not simultaneously but need to be fulfilled at the same time" - }, - "WLT": { - "description": "Warehouse Lot Number", - "longDescription": "Number identifying the section within an area of a storage facility. This further describes the position within the warehouse storage location number" - }, - "WS": { - "description": "Warehouse Storage Location Number", - "longDescription": "Number to identify a specific area within a storage facility" - } - } - }, - "ReferenceID": { - "description": "Value as defined by the ReferenceQual", + "TradingPartnerId": { "type": "string" }, - "Description": { - "description": "Free-form textual description to clarify the related data elements and their content", - "examples": [ - "New products only. Do not reuse packaging" - ], + "DocumentId": { "type": "string" - } - } - } - }, - "Date": { - "type": "array", - "items": { - "type": "object", - "description": "Provides date and time information", - "additionalProperties": false, - "required": [], - "properties": { - "DateTimeQualifier": { - "description": "Code specifying the type of date", - "type": "string", - "enum": [ - "001", - "002", - "007", - "011", - "017", - "035", - "036", - "050", - "067", - "068", - "097", - "118", - "196", - "197", - "328", - "369", - "370", - "371", - "372", - "405", - "510", - "511", - "636", - "807", - "945", - "ACT", - "TRM" - ], - "enumDescriptions": { - "001": { - "description": "Cancel Date" - }, - "002": { - "description": "Requested Delivery" - }, - "007": { - "description": "Effective" - }, - "011": { - "description": "Actual Ship" - }, - "017": { - "description": "Estimated Delivery" - }, - "035": { - "description": "Actual Delivery" - }, - "036": { - "description": "Discontinued", - "longDescription": "Date when something is no longer available/valid" - }, - "050": { - "description": "Received Date" - }, - "067": { - "description": "Current Schedule Delivery" - }, - "068": { - "description": "Scheduled Ship" - }, - "097": { - "description": "Document/Transaction Date" - }, - "118": { - "description": "Requested Pick Up Date" - }, - "196": { - "description": "Start Date" - }, - "197": { - "description": "End Date" - }, - "328": { - "description": "Change" - }, - "369": { - "description": "Estimated Departure Date" - }, - "370": { - "description": "Actual Departure Date" - }, - "371": { - "description": "Estimated Arrival Date", - "longDescription": "The expected date of receiving a good or service" - }, - "372": { - "description": "Actual Arrival Date" - }, - "405": { - "description": "Production", - "longDescription": "Indicates the date that an item or good is created or manufactured" - }, - "510": { - "description": "Date Packed" - }, - "511": { - "description": "Shelf Life Expiration", - "longDescription": "Date when a product can not be legally sold due to it being unfit for use or consumption" - }, - "636": { - "description": "Last Update Date", - "longDescription": "The most recent date at which an update was made to the transaction" - }, - "807": { - "description": "Stored" - }, - "945": { - "description": "Activity" - }, - "ACT": { - "description": "Active Date", - "longDescription": "The date at which the document is effective for terms and contractual agreements" - }, - "TRM": { - "description": "Transmission Date", - "longDescription": "Date the document was sent" - } - } }, - "Date": { - "description": "A specific day", - "examples": [ - "2012-10-31", - "2013-12-21" - ], - "type": "string", - "format": "date" - }, - "Time": { - "description": "All standard XML formats are accepted.", - "examples": [ - "16:13:03-05:00" - ], - "type": "string", - "format": "time" - }, - "DateTimePeriod": { - "description": "A date, time, or range of dates and times", + "RecordType": { "type": "string" - } - } - } - }, - "Contact": { - "type": "array", - "items": { - "type": "object", - "description": "Provides contact information", - "additionalProperties": false, - "required": [], - "properties": { - "ContactTypeCode": { - "description": "Code identifying a type of contact", - "type": "string", - "enum": [ - "AL", - "BD", - "BI", - "CH", - "CR", - "EX", - "HM", - "IC", - "MRP", - "OC", - "RE", - "SC", - "SGN", - "SR", - "TIC" - ], - "enumDescriptions": { - "AL": { - "description": "Alternate Information Contact" - }, - "BD": { - "description": "Buyer Name or Department" - }, - "BI": { - "description": "Bill Inquiry Contact" - }, - "CH": { - "description": "Change Order Approver" - }, - "CR": { - "description": "Buyer Customer Relations" - }, - "EX": { - "description": "Expeditor" - }, - "HM": { - "description": "Hazardous Material Contact", - "longDescription": "Who to contact regarding inquiries or emergencies for a hazardous load" - }, - "IC": { - "description": "Primary Information Contact" - }, - "MRP": { - "description": "Material Requirements Planning Controller", - "longDescription": "Person or persons responsible for monitoring material availability [MRP]" - }, - "OC": { - "description": "Order Contact" - }, - "RE": { - "description": "Receiving Contact", - "longDescription": "The recipient receiving the merchandise" - }, - "SC": { - "description": "Shipping Contact", - "longDescription": "Point of contact for shipping information" - }, - "SGN": { - "description": "Signed By", - "longDescription": "Individual who signed related documents" - }, - "SR": { - "description": "Sales Representative or Department" - }, - "TIC": { - "description": "Technical Representative", - "longDescription": "Point of contact for technical information" - } - } }, - "ContactName": { - "description": "Free-form name", - "examples": [ - "SPS Commerce" - ], + "LineSequenceNumber": { "type": "string" }, - "PrimaryPhone": { - "description": "Phone number of contact listed", - "examples": [ - "866-245-8100" - ], + "BuyerPartNumber": { "type": "string" }, - "PrimaryFax": { - "description": "Fax number of contact listed", - "examples": [ - "612-435-9401" - ], + "VendorPartNumber": { "type": "string" }, - "PrimaryEmail": { - "description": "E-mail address for contact listed", - "examples": [ - "info@spscommerce.com" - ], + "ConsumerPackageCode": { "type": "string" }, - "AdditionalContactDetails": { - "type": "array", - "items": { - "type": "object", - "description": "This group should be used if the associated normalized fields already contain information.", - "additionalProperties": false, - "required": [], - "properties": { - "ContactQual": { - "description": "Indicates the method of contact", - "type": "string", - "enum": [ - "AU", - "CP", - "EX", - "FT", - "HP", - "NP", - "WP", - "X4" - ], - "enumDescriptions": { - "AU": { - "description": "Defense Switched Network", - "longDescription": "The Defense Switched Network (DSN) is the primary system of interbase communication for the U.S. Department of Defense" - }, - "CP": { - "description": "Cell Phone" - }, - "EX": { - "description": "Telephone Extension", - "longDescription": "An additional telephone set that is connected to the same telephone line" - }, - "FT": { - "description": "Federal Telecommunications System", - "longDescription": "A long-distance telephone network serving the civilian agencies of the United States federal government" - }, - "HP": { - "description": "Home Phone" - }, - "NP": { - "description": "Nighttime Phone" - }, - "WP": { - "description": "Work Phone" - }, - "X4": { - "description": "X400 Address" - } - } - }, - "ContactID": { - "description": "The value of the identified contact", - "examples": [ - "999-999-9999" - ], - "type": "string" - } - } - } - }, - "ContactReference": { - "description": "Additional field to clarify a contact", - "examples": [ - "ext: 451" - ], + "GTIN": { "type": "string" - } - } - } - }, - "Address": { - "type": "array", - "items": { - "type": "object", - "description": "Represent an entity such as an organizational, physical location, property, or individual", - "additionalProperties": false, - "required": [], - "properties": { - "AddressTypeCode": { - "description": "Code identifying an organizational entity, a physical location, property, or an individual", - "type": "string", - "enum": [ - "88", - "9C", - "AG", - "BE", - "BK", - "BO", - "BOWN", - "BT", - "BY", - "CB", - "CN", - "CQ", - "CS", - "CT", - "DA", - "DE", - "DS", - "DV", - "ESIID", - "FR", - "FW", - "IA", - "MF", - "N1", - "NES", - "OB", - "PATI", - "PF", - "PLCO", - "POAR", - "PODI", - "POEN", - "POOR", - "PR", - "PW", - "RAMP", - "RI", - "RL", - "RT", - "SF", - "SO", - "ST", - "TO", - "TP", - "TS", - "VN", - "WH", - "Z7" - ], - "enumDescriptions": { - "88": { - "description": "Approver", - "longDescription": "Party approving claim for payment" - }, - "9C": { - "description": "Country of Destination" - }, - "AG": { - "description": "Agent" - }, - "BE": { - "description": "Beneficiary" - }, - "BK": { - "description": "Bank" - }, - "BO": { - "description": "Broker" - }, - "BOWN": { - "description": "Brand Owner", - "longDescription": "Party who owns the brand of the item[s]" - }, - "BT": { - "description": "Bill to Party", - "longDescription": "Party receiving invoice information" - }, - "BY": { - "description": "Buying Party", - "longDescription": "Party who is purchasing the product and/or service, but is not necessarily initiating the order" - }, - "CB": { - "description": "Customs Broker" - }, - "CN": { - "description": "Consignee" - }, - "CQ": { - "description": "Corporate Office", - "longDescription": "Used to indicate the location of the business's headquarters" - }, - "CS": { - "description": "Consolidator" - }, - "CT": { - "description": "Country of Origin" - }, - "DA": { - "description": "Delivery Address" - }, - "DE": { - "description": "Depositor" - }, - "DS": { - "description": "Distributor", - "longDescription": "Party who purchases goods, promotes and resales those goods to retailers at a markup or fee" - }, - "DV": { - "description": "Division", - "longDescription": "Component of a business entity.", - "examples": [ - "Lady Footlocker" - ] - }, - "ESIID": { - "description": "Electric Service Identifier ID", - "longDescription": "17 or 22-digit number used to identify a unique point of electric service delivery to a home or business" - }, - "FR": { - "description": "Message From", - "longDescription": "Used primary on reporting documents where there is no buyer or seller" - }, - "FW": { - "description": "Forwarder", - "longDescription": "Also called Freight Forwarder, or Forwarding Agent" - }, - "IA": { - "description": "Install Address", - "longDescription": "Location of installation" - }, - "MF": { - "description": "Manufacturer of Goods" - }, - "N1": { - "description": "Notify Party", - "longDescription": "Party which must be made aware of a shipment arriving at a location. Typically used with imports/exports" - }, - "NES": { - "description": "New Store" - }, - "OB": { - "description": "Ordered By", - "longDescription": "Party who initiates an order for goods and/or services, but is not necessarily purchasing it" - }, - "PATI": { - "description": "Patient", - "longDescription": "A location of a person receiving or registered to receive medical treatment" - }, - "PF": { - "description": "Party to Receive Freight Bill" - }, - "PLCO": { - "description": "Place of Consumption", - "longDescription": "A location where goods enter the marketplace of the importing country" - }, - "POAR": { - "description": "Port Of Arrival", - "longDescription": "A location where goods enter a country but may not require passing through customs" - }, - "PODI": { - "description": "Port of Discharge", - "longDescription": "A location where goods are unloaded" - }, - "POEN": { - "description": "Port of Entry", - "longDescription": "A border crossing where persons and/or goods legally [via customs] enter a country" - }, - "POOR": { - "description": "Port Of Origin" - }, - "PR": { - "description": "Payer", - "longDescription": "Party responsible for initiating payment" - }, - "PW": { - "description": "Pickup Address", - "longDescription": "Location in which the shipment will be picked up from" - }, - "RAMP": { - "description": "Repair and Maintenance Provider", - "longDescription": "A location where repair and maintenance is administered" - }, - "RI": { - "description": "Remit To" - }, - "RL": { - "description": "Reporting Location" - }, - "RT": { - "description": "Return Address" - }, - "SF": { - "description": "Ship From" - }, - "SO": { - "description": "Sold To" - }, - "ST": { - "description": "Ship To" - }, - "TO": { - "description": "Message To", - "longDescription": "Used primary on reporting documents where there is no buyer or seller" - }, - "TP": { - "description": "Transportation Provider" - }, - "TS": { - "description": "Transshipment Location", - "longDescription": "Transfer point between different carriers or between different vehicles of the same carrier" - }, - "VN": { - "description": "Vendor" - }, - "WH": { - "description": "Warehouse" - }, - "Z7": { - "description": "Mark for Party" - } - } - }, - "LocationCodeQualifier": { - "description": "Code identifying the structure or format of the related location number[s]", - "type": "string", - "enum": [ - "1", - "10", - "11", - "15", - "21", - "33", - "6", - "9", - "91", - "92", - "A1", - "BE", - "D", - "K", - "TPL", - "UL" - ], - "enumDescriptions": { - "1": { - "description": "Duns Number" - }, - "10": { - "description": "Department of Defense Activity Address Code", - "longDescription": "A six position code that uniquely identifies a Department of Defense unit, activity or organization (DoDDAC)" - }, - "11": { - "description": "Drug Enforcement Administration Number" - }, - "15": { - "description": "Standard Address Number[SAN]" - }, - "21": { - "description": "Health Industry Number" - }, - "33": { - "description": "Commercial and Government Entity", - "longDescription": "A five character identification assigned by the Department of Defense's Defense Logistics Agency used as a standardized method of identifying a given legal entity at a specific location (CAGE)" - }, - "6": { - "description": "Plant Code" - }, - "9": { - "description": "Duns Plus 4 Number" - }, - "91": { - "description": "Seller Location Number" - }, - "92": { - "description": "Buyer Location Number" - }, - "A1": { - "description": "Approver ID" - }, - "BE": { - "description": "Common Language Location Identifier [CLLI]", - "longDescription": "The standard address location code for a specific equipment location as used in the telephone industry" - }, - "D": { - "description": "Census Schedule D", - "longDescription": "Classification of U.S. Customs districts and ports for which shipments are reportable" - }, - "K": { - "description": "Census Schedule K", - "longDescription": "Classification of foreign ports by geographic trade area and country from the Maritime Administration" - }, - "TPL": { - "description": "Third Party Location Number", - "longDescription": "Location number assigned by a third party who was not involved in the buying cycle and is different than the buying and selling location numbers" - }, - "UL": { - "description": "Global Location Number[GLN]" - } - } }, - "AddressLocationNumber": { - "description": "Unique value assigned to identify a location", - "examples": [ - "11111" - ], + "UPCCaseCode": { "type": "string" }, - "AddressName": { - "description": "Primary free-form textual description of a location", - "examples": [ - "SPS Commerce", - "The White House" - ], + "NatlDrugCode": { "type": "string" }, - "AddressAlternateName": { - "description": "Additional free-form description of a location", - "examples": [ - "ATTN: Marketing" - ], + "PartNumberQualifier1": { "type": "string" }, - "AddressAlternateName2": { - "description": "Additional free-form description of a location", - "examples": [ - "ATTN: John Doe" - ], + "PartNumber1": { "type": "string" }, - "Address1": { - "description": "Address information", - "examples": [ - "1600 Pennsylvania Ave NW", - "333 South 7th Street" - ], + "PartNumberQualifier2": { "type": "string" }, - "Address2": { - "description": "Address information", - "examples": [ - "ATTN: The President", - "Suite 1000" - ], + "PartNumber2": { "type": "string" }, - "Address3": { - "description": "Address information", - "examples": [ - "333 South Seventh Street Tower" - ], + "PartNumberQualifier3": { "type": "string" }, - "Address4": { - "description": "Address information", - "examples": [ - "10th Floor" - ], + "PartNumber3": { "type": "string" }, - "City": { - "description": "Free-form text for city name", - "examples": [ - "Minneapolis", - "Washington" - ], + "PartNumberQualifier4": { "type": "string" }, - "State": { - "description": "Code[Standard State/Province] as defined by appropriate government agency", - "examples": [ - "DC", - "MN" - ], + "PartNumber4": { "type": "string" }, - "PostalCode": { - "description": "International postal zone excluding punctuation and blanks[Zip Code for United States]", - "examples": [ - "20500", - "55402" - ], + "PartDescription1": { "type": "string" }, - "Country": { - "description": "Human readable description identifying the country", - "examples": [ - "US", - "USA" - ], + "PartDescription2": { "type": "string" }, - "LocationID": { - "description": "Provides further description to the address information. This can be either text or an ID", - "examples": [ - "555555", - "East Location, next to interstate" - ], + "AdjReasonCode": { "type": "string" }, - "CountrySubDivision": { - "description": "An administrative division such as a subnational entity, constituent unit, or country subdivision", - "type": "string" + "QtyAdjusted": { + "type": "number" }, - "AddressTaxIdNumber": { - "description": "Unique number assigned by the relevant tax authority to identify a party for use in relation to Value Added Tax[VAT]", - "examples": [ - "999999" - ], + "QtyAdjustedUOM": { "type": "string" }, - "AddressTaxExemptNumber": { - "description": "Unique tax exemption number assigned by the relevant tax authority to identify an entity or organization", + "WarehouseLotID": { "type": "string" }, - "Contact": { - "type": "array", - "items": { - "type": "object", - "description": "Provides contact information", - "additionalProperties": false, - "required": [], - "properties": { - "ContactTypeCode": { - "description": "Code identifying a type of contact", - "type": "string", - "enum": [ - "AL", - "BD", - "BI", - "CH", - "CR", - "EX", - "HM", - "IC", - "MRP", - "OC", - "RE", - "SC", - "SGN", - "SR", - "TIC" - ], - "enumDescriptions": { - "AL": { - "description": "Alternate Information Contact" - }, - "BD": { - "description": "Buyer Name or Department" - }, - "BI": { - "description": "Bill Inquiry Contact" - }, - "CH": { - "description": "Change Order Approver" - }, - "CR": { - "description": "Buyer Customer Relations" - }, - "EX": { - "description": "Expeditor" - }, - "HM": { - "description": "Hazardous Material Contact", - "longDescription": "Who to contact regarding inquiries or emergencies for a hazardous load" - }, - "IC": { - "description": "Primary Information Contact" - }, - "MRP": { - "description": "Material Requirements Planning Controller", - "longDescription": "Person or persons responsible for monitoring material availability [MRP]" - }, - "OC": { - "description": "Order Contact" - }, - "RE": { - "description": "Receiving Contact", - "longDescription": "The recipient receiving the merchandise" - }, - "SC": { - "description": "Shipping Contact", - "longDescription": "Point of contact for shipping information" - }, - "SGN": { - "description": "Signed By", - "longDescription": "Individual who signed related documents" - }, - "SR": { - "description": "Sales Representative or Department" - }, - "TIC": { - "description": "Technical Representative", - "longDescription": "Point of contact for technical information" - } - } - }, - "ContactName": { - "description": "Free-form name", - "examples": [ - "SPS Commerce" - ], - "type": "string" - }, - "PrimaryPhone": { - "description": "Phone number of contact listed", - "examples": [ - "866-245-8100" - ], - "type": "string" - }, - "PrimaryFax": { - "description": "Fax number of contact listed", - "examples": [ - "612-435-9401" - ], - "type": "string" - }, - "PrimaryEmail": { - "description": "E-mail address for contact listed", - "examples": [ - "info@spscommerce.com" - ], - "type": "string" - }, - "AdditionalContactDetails": { - "type": "array", - "items": { - "type": "object", - "description": "This group should be used if the associated normalized fields already contain information.", - "additionalProperties": false, - "required": [], - "properties": { - "ContactQual": { - "description": "Indicates the method of contact", - "type": "string", - "enum": [ - "AU", - "CP", - "EX", - "FT", - "HP", - "NP", - "WP", - "X4" - ], - "enumDescriptions": { - "AU": { - "description": "Defense Switched Network", - "longDescription": "The Defense Switched Network (DSN) is the primary system of interbase communication for the U.S. Department of Defense" - }, - "CP": { - "description": "Cell Phone" - }, - "EX": { - "description": "Telephone Extension", - "longDescription": "An additional telephone set that is connected to the same telephone line" - }, - "FT": { - "description": "Federal Telecommunications System", - "longDescription": "A long-distance telephone network serving the civilian agencies of the United States federal government" - }, - "HP": { - "description": "Home Phone" - }, - "NP": { - "description": "Nighttime Phone" - }, - "WP": { - "description": "Work Phone" - }, - "X4": { - "description": "X400 Address" - } - } - }, - "ContactID": { - "description": "The value of the identified contact", - "examples": [ - "999-999-9999" - ], - "type": "string" - } - } - } - }, - "ContactReference": { - "description": "Additional field to clarify a contact", - "examples": [ - "ext: 451" - ], - "type": "string" - } - } - } - }, - "Reference": { - "type": "array", - "items": { - "type": "object", - "description": "Supplemental information supporting the transaction", - "additionalProperties": false, - "required": [], - "properties": { - "ReferenceQual": { - "description": "Code specifying the type of data in the ReferenceID/ReferenceDescription", - "type": "string" - }, - "ReferenceID": { - "description": "Value as defined by the ReferenceQual", - "type": "string" - } - } - } - }, - "Date": { - "type": "array", - "items": { - "type": "object", - "description": "Provides date and time information", - "additionalProperties": false, - "required": [], - "properties": { - "DateTimeQualifier": { - "description": "Code specifying the type of date", - "type": "string" - }, - "Date": { - "description": "A specific day", - "examples": [ - "2012-10-31", - "2013-12-21" - ], - "type": "string", - "format": "date" - }, - "Time": { - "description": "All standard XML formats are accepted.", - "examples": [ - "16:13:03-05:00" - ], - "type": "string", - "format": "time" - }, - "DateTimePeriod": { - "description": "A date, time, or range of dates and times", - "type": "string" - } - } - } - } - } - } - }, - "Notes": { - "type": "array", - "items": { - "type": "object", - "description": "Supplemental text for the transaction", - "additionalProperties": false, - "required": [], - "properties": { - "NoteCode": { - "description": "Code specifying the type of note", - "type": "string", - "enum": [ - "CCG", - "GEN", - "GFT", - "MKG", - "PCK", - "PRN", - "RTN", - "SHP", - "SPE", - "TPA" - ], - "enumDescriptions": { - "CCG": { - "description": "Customization", - "longDescription": "i.e Need a specific part for a specific year vehicle" - }, - "GEN": { - "description": "General Note" - }, - "GFT": { - "description": "Gift Note", - "longDescription": "i.e. Indicates no pricing on packing slip and a message to the receiver" - }, - "MKG": { - "description": "Marketing Message", - "longDescription": "i.e. If you bought this product, you might like this other product" - }, - "PCK": { - "description": "Packing Slip", - "longDescription": "Hard-coded notes to be placed on the packing slip" - }, - "PRN": { - "description": "Personalization", - "longDescription": "i.e. Your name on this blanket" - }, - "RTN": { - "description": "Return Instructions", - "longDescription": "i.e. If you need to return this product" - }, - "SHP": { - "description": "Shipping Note", - "longDescription": "Ship with another order: CarrierNotes" - }, - "SPE": { - "description": "Special Instructions", - "longDescription": "i.e. This needs to be packaged a specific way" - }, - "TPA": { - "description": "Trading Partner Agreement", - "longDescription": "Textual information regarding how to refer to, or comply with, the agreement of the trading partner" - } - } + "Weight1": { + "type": "number" }, - "LanguageCode": { - "description": "Code designating the language used in text. ISO 639 language code", - "examples": [ - "ENG" - ], + "WeightQualifier1": { "type": "string" }, - "NoteInformationField": { - "description": "Free-form textual description of the note", - "examples": [ - "REPEAT LOGO PREVIOUS ORDER" - ], - "type": "string" - } - } - } - }, - "Miscellaneous": { - "type": "array", - "items": { - "type": "object", - "description": "Provides additional miscellaneous information", - "additionalProperties": false, - "required": [], - "properties": { - "Qualifier1": { - "description": "Code qualifying the miscellaneous data element", + "WeightUOM1": { "type": "string" }, - "Description1": { - "description": "Free-form description of the miscellaneous element", + "Weight2": { + "type": "number" + }, + "WeightQualifier2": { "type": "string" }, - "Qualifier2": { - "description": "Code qualifying the miscellaneous data element", + "WeightUOM2": { "type": "string" }, - "Description2": { - "description": "Free-form description of the miscellaneous element", + "InventoryTransaction": { "type": "string" + }, + "ExtendedItemTotal": { + "type": "number" } - } - } - } - } - }, - "LineItems": { - "type": "object", - "description": "Encloses all document line item elements", - "additionalProperties": false, - "required": [ - "LineItem" - ], - "properties": { - "LineItem": { - "type": "array", - "items": { - "type": "object", - "description": "Encloses all document line item elements", - "additionalProperties": false, + }, "required": [ - "ItemDetail" - ], - "properties": { - "ItemDetail": { - "type": "object", - "description": "Contains the commonly used fields in the line item level of the transaction", - "additionalProperties": false, - "required": [ - "AdjReasonCode", - "QtyAdjusted", - "QtyAdjustedUOM" - ], - "properties": { - "LineSequenceNumber": { - "description": "For an initiated document, this is a unique number for the line item[s]. For a return transaction, this number should be the same as what was received from the source transaction.", - "examples": [ - "01", - "02", - "08" - ], - "type": "string" - }, - "ApplicationId": { - "description": "ERP generated code to uniquely identify the item", - "examples": [ - "980023" - ], - "type": "string" - }, - "BuyerPartNumber": { - "description": "Buyer's primary product identifier", - "examples": [ - "9999-SPS" - ], - "type": "string" - }, - "VendorPartNumber": { - "description": "Vendor's primary product identifier", - "examples": [ - "11155-559999" - ], - "type": "string" - }, - "ConsumerPackageCode": { - "description": "Consumer level or customer unit product identification number", - "examples": [ - "093597609541" - ], - "type": "string" - }, - "GTIN": { - "description": "Global Trade Item Number which is an item identifier that encompasses all product identification numbers such as UPC, EAN, ITF, etc. and can be assigned at various packing levels", - "examples": [ - "12345678901234" - ], - "type": "string" - }, - "UPCCaseCode": { - "description": "Package or case level product identification number", - "examples": [ - "98765432101" - ], - "type": "string" - }, - "NatlDrugCode": { - "description": "National Drug Code or NDC is a unique, universal product identifier for drugs. Primarily used in the pharmaceutical industry", - "examples": [ - "51456-299" - ], - "type": "string" - }, - "PartNumberQualifier1": { - "description": "Qualifier describing the additional product identification number", - "type": "string", - "enum": [ - "AR", - "B8", - "BO", - "CB", - "IS", - "IT", - "MF", - "MG", - "MN", - "SE", - "SK", - "UP", - "VP" - ], - "enumDescriptions": { - "AR": { - "description": "Supplier Catalog Number" - }, - "B8": { - "description": "Buyer's Item Number" - }, - "BO": { - "description": "Buyer's Option Number" - }, - "CB": { - "description": "Buyer's Catalog Number" - }, - "IS": { - "description": "ISBN Number" - }, - "IT": { - "description": "Buyer's Internal Product Group Code" - }, - "MF": { - "description": "Manufacturer's Part Number" - }, - "MG": { - "description": "Manufacturer's Number" - }, - "MN": { - "description": "Model Number" - }, - "SE": { - "description": "Serial Number" - }, - "SK": { - "description": "SKU" - }, - "UP": { - "description": "UPC Consumer Package Code" - }, - "VP": { - "description": "Vendor's Part Number" - } - } - }, - "PartNumber1": { - "description": "Additional product identification number as described by the PartNumberQualifier1", - "type": "string" - }, - "PartNumberQualifier2": { - "description": "Qualifier describing the additional product identification number", - "type": "string", - "enum": [ - "AR", - "B8", - "BO", - "CB", - "IS", - "IT", - "MF", - "MG", - "MN", - "SE", - "SK", - "UP", - "VP" - ], - "enumDescriptions": { - "AR": { - "description": "Supplier Catalog Number" - }, - "B8": { - "description": "Buyer's Item Number" - }, - "BO": { - "description": "Buyer's Option Number" - }, - "CB": { - "description": "Buyer's Catalog Number" - }, - "IS": { - "description": "ISBN Number" - }, - "IT": { - "description": "Buyer's Internal Product Group Code" - }, - "MF": { - "description": "Manufacturer's Part Number" - }, - "MG": { - "description": "Manufacturer's Number" - }, - "MN": { - "description": "Model Number" - }, - "SE": { - "description": "Serial Number" - }, - "SK": { - "description": "SKU" - }, - "UP": { - "description": "UPC Consumer Package Code" - }, - "VP": { - "description": "Vendor's Part Number" - } - } - }, - "PartNumber2": { - "description": "Additional product identification number as described by the PartNumberQualifier2", - "type": "string" - }, - "PartNumberQualifier3": { - "description": "Qualifier describing the additional product identification number", - "type": "string", - "enum": [ - "AR", - "B8", - "BO", - "CB", - "IS", - "IT", - "MF", - "MG", - "MN", - "SE", - "SK", - "UP", - "VP" - ], - "enumDescriptions": { - "AR": { - "description": "Supplier Catalog Number" - }, - "B8": { - "description": "Buyer's Item Number" - }, - "BO": { - "description": "Buyer's Option Number" - }, - "CB": { - "description": "Buyer's Catalog Number" - }, - "IS": { - "description": "ISBN Number" - }, - "IT": { - "description": "Buyer's Internal Product Group Code" - }, - "MF": { - "description": "Manufacturer's Part Number" - }, - "MG": { - "description": "Manufacturer's Number" - }, - "MN": { - "description": "Model Number" - }, - "SE": { - "description": "Serial Number" - }, - "SK": { - "description": "SKU" - }, - "UP": { - "description": "UPC Consumer Package Code" - }, - "VP": { - "description": "Vendor's Part Number" - } - } - }, - "PartNumber3": { - "description": "Additional product identification number as described by the PartNumberQualifier3", - "type": "string" - }, - "PartNumberQualifier4": { - "description": "Qualifier describing the additional product identification number", - "type": "string", - "enum": [ - "AR", - "B8", - "BO", - "CB", - "IS", - "IT", - "MF", - "MG", - "MN", - "SE", - "SK", - "UP", - "VP" - ], - "enumDescriptions": { - "AR": { - "description": "Supplier Catalog Number" - }, - "B8": { - "description": "Buyer's Item Number" - }, - "BO": { - "description": "Buyer's Option Number" - }, - "CB": { - "description": "Buyer's Catalog Number" - }, - "IS": { - "description": "ISBN Number" - }, - "IT": { - "description": "Buyer's Internal Product Group Code" - }, - "MF": { - "description": "Manufacturer's Part Number" - }, - "MG": { - "description": "Manufacturer's Number" - }, - "MN": { - "description": "Model Number" - }, - "SE": { - "description": "Serial Number" - }, - "SK": { - "description": "SKU" - }, - "UP": { - "description": "UPC Consumer Package Code" - }, - "VP": { - "description": "Vendor's Part Number" - } - } - }, - "PartNumber4": { - "description": "Additional product identification number as described by the PartNumberQualifier4", - "type": "string" - }, - "PartDescription1": { - "description": "Product description of the item", - "type": "string" - }, - "PartDescription2": { - "description": "Additional product description of the item", - "type": "string" - }, - "AdjReasonCode": { - "description": "Code indicating the reason for the inventory adjustment", - "type": "string", - "enum": [ - "03", - "04", - "05", - "06", - "07", - "08", - "51", - "52", - "53", - "54", - "55", - "56", - "88", - "AA", - "AB", - "AC", - "AD", - "AE", - "AF", - "AG", - "AH", - "AI", - "AJ", - "AK", - "AL", - "AM", - "AN", - "AP", - "AQ", - "AR", - "AS", - "AT", - "AU", - "AV", - "AW", - "AX", - "AY", - "BA", - "BD", - "BK", - "BM", - "BN", - "BR", - "BS", - "BT", - "CD", - "CO", - "CR", - "CS", - "PC", - "TC", - "UD" - ], - "enumDescriptions": { - "03": { - "description": "Shipment Greater Than Previously Reported" - }, - "04": { - "description": "Receipt Less Than Previously Reported" - }, - "05": { - "description": "Product Put on Hold" - }, - "06": { - "description": "Book Adjustment Decrease" - }, - "07": { - "description": "Product Dumped or Destroyed" - }, - "08": { - "description": "Product Put in Quality Inspection" - }, - "51": { - "description": "Unable-to-Locate (UTL) Product Located" - }, - "52": { - "description": "Recoup/Rework of Damaged Product" - }, - "53": { - "description": "Shipment Less Than Previously Reported" - }, - "54": { - "description": "Receipt Greater Than Previously Reported" - }, - "55": { - "description": "Product Taken Off Hold" - }, - "56": { - "description": "Book Adjustment Increase" - }, - "88": { - "description": "Product Removed from Quality Inspection" - }, - "AA": { - "description": "Physical Count" - }, - "AB": { - "description": "Accounting Error" - }, - "AC": { - "description": "Condition Change" - }, - "AD": { - "description": "Purpose Change" - }, - "AE": { - "description": "Reidentification" - }, - "AF": { - "description": "Stock Number Change" - }, - "AG": { - "description": "Ownership Change" - }, - "AH": { - "description": "Other" - }, - "AI": { - "description": "Disaster" - }, - "AJ": { - "description": "Survey" - }, - "AK": { - "description": "Transfer" - }, - "AL": { - "description": "Capitalization" - }, - "AM": { - "description": "Missing UII/Serial Number" - }, - "AN": { - "description": "Unit of Issue Change" - }, - "AP": { - "description": "Product/Formula Evaluation and Testing" - }, - "AQ": { - "description": "UII/Serial Number Mismatch" - }, - "AR": { - "description": "Order Shipment Error" - }, - "AS": { - "description": "Recouping" - }, - "AT": { - "description": "Prepack Preparation" - }, - "AU": { - "description": "Damaged in Facility" - }, - "AV": { - "description": "Damaged in Transit" - }, - "AW": { - "description": "Product Recall" - }, - "AX": { - "description": "Shelf-life Obsolescence" - }, - "AY": { - "description": "Receipt Error" - }, - "BA": { - "description": "Operating Variance" - }, - "BD": { - "description": "Nonrecoverable" - }, - "BK": { - "description": "Off Specification" - }, - "BM": { - "description": "Replacement" - }, - "BN": { - "description": "Tariff Deduction" - }, - "BR": { - "description": "Regrade" - }, - "BS": { - "description": "Downgrade" - }, - "BT": { - "description": "Additive" - }, - "CD": { - "description": "Product Donations" - }, - "CO": { - "description": "Consignment" - }, - "CR": { - "description": "Customer Returned Inventory" - }, - "CS": { - "description": "Product Samples" - }, - "PC": { - "description": "Product Reserved for Customer" - }, - "TC": { - "description": "Tax Conversion" - }, - "UD": { - "description": "Unauthorized Destruction" - } - } - }, - "QtyAdjusted": { - "description": "Quantity of the item being adjusted", - "examples": [ - 10, - 25.5 - ], - "type": "number" - }, - "QtyAdjustedUOM": { - "description": "Unit of measure for the adjusted quantity", - "type": "string", - "enum": [ - "BG", - "BX", - "CA", - "CT", - "DZ", - "EA", - "FT", - "GA", - "KG", - "LB", - "LT", - "OZ", - "PC", - "PK", - "RL", - "SF", - "YD" - ], - "enumDescriptions": { - "BG": { - "description": "Bag" - }, - "BX": { - "description": "Box" - }, - "CA": { - "description": "Case" - }, - "CT": { - "description": "Carton" - }, - "DZ": { - "description": "Dozen" - }, - "EA": { - "description": "Each" - }, - "FT": { - "description": "Foot" - }, - "GA": { - "description": "Gallon" - }, - "KG": { - "description": "Kilogram" - }, - "LB": { - "description": "Pound" - }, - "LT": { - "description": "Liter" - }, - "OZ": { - "description": "Ounce" - }, - "PC": { - "description": "Piece" - }, - "PK": { - "description": "Pack" - }, - "RL": { - "description": "Roll" - }, - "SF": { - "description": "Square Foot" - }, - "YD": { - "description": "Yard" - } - } - }, - "WarehouseLotID": { - "description": "Warehouse lot identification number", - "type": "string" - }, - "Weight1": { - "description": "Numeric value of weight", - "type": "number" - }, - "WeightQualifier1": { - "description": "Code qualifying the weight", - "type": "string", - "enum": [ - "G", - "N" - ], - "enumDescriptions": { - "G": { - "description": "Gross Weight" - }, - "N": { - "description": "Net Weight" - } - } - }, - "WeightUOM1": { - "description": "Unit of measure for weight", - "type": "string", - "enum": [ - "01", - "GR", - "KG", - "LB", - "OZ", - "TO" - ], - "enumDescriptions": { - "01": { - "description": "Actual Net Weight" - }, - "GR": { - "description": "Gram" - }, - "KG": { - "description": "Kilogram" - }, - "LB": { - "description": "Pound" - }, - "OZ": { - "description": "Ounce" - }, - "TO": { - "description": "Metric Ton" - } - } - }, - "Weight2": { - "description": "Numeric value of weight", - "type": "number" - }, - "WeightQualifier2": { - "description": "Code qualifying the weight", - "type": "string", - "enum": [ - "G", - "N" - ], - "enumDescriptions": { - "G": { - "description": "Gross Weight" - }, - "N": { - "description": "Net Weight" - } - } - }, - "WeightUOM2": { - "description": "Unit of measure for weight", - "type": "string", - "enum": [ - "01", - "GR", - "KG", - "LB", - "OZ", - "TO" - ], - "enumDescriptions": { - "01": { - "description": "Actual Net Weight" - }, - "GR": { - "description": "Gram" - }, - "KG": { - "description": "Kilogram" - }, - "LB": { - "description": "Pound" - }, - "OZ": { - "description": "Ounce" - }, - "TO": { - "description": "Metric Ton" - } - } - }, - "InventoryTransaction": { - "description": "Code indicating the type of inventory transaction", - "type": "string", - "enum": [ - "AD", - "TF" - ], - "enumDescriptions": { - "AD": { - "description": "Adjustment" - }, - "TF": { - "description": "Transfer" - } - } - }, - "ExtendedItemTotal": { - "description": "Dollar amount of the extended item total", - "type": "number" - } + "TradingPartnerId", + "DocumentId", + "RecordType", + "LineSequenceNumber", + "BuyerPartNumber", + "VendorPartNumber", + "ConsumerPackageCode", + "GTIN", + "UPCCaseCode", + "NatlDrugCode", + "PartNumberQualifier1", + "PartNumber1", + "PartNumberQualifier2", + "PartNumber2", + "PartNumberQualifier3", + "PartNumber3", + "PartNumberQualifier4", + "PartNumber4", + "PartDescription1", + "PartDescription2", + "AdjReasonCode", + "QtyAdjusted", + "QtyAdjustedUOM", + "WarehouseLotID", + "Weight1", + "WeightQualifier1", + "WeightUOM1", + "Weight2", + "WeightQualifier2", + "WeightUOM2", + "InventoryTransaction", + "ExtendedItemTotal" + ] + }, + "Reference": { + "type": "array", + "items": { + "type": "object", + "properties": { + "TradingPartnerId": { + "type": "string" + }, + "DocumentId": { + "type": "string" + }, + "RecordType": { + "type": "string" + }, + "ReferenceQual": { + "type": "string" + }, + "ReferenceID": { + "type": "string" + }, + "Description": { + "type": "string" } }, - "Reference": { - "type": "array", - "items": { - "type": "object", - "description": "Supplemental information supporting the transaction", - "additionalProperties": false, - "required": [], - "properties": { - "ReferenceQual": { - "description": "Code specifying the type of data in the ReferenceID/ReferenceDescription", - "type": "string", - "enum": [ - "02", - "06", - "12", - "19", - "2I", - "AH", - "AN", - "AO", - "BM", - "BT", - "BY", - "CN", - "CT", - "DO", - "GS", - "IL", - "IN", - "IT", - "IV", - "KW", - "LO", - "MK", - "OC", - "PD", - "PK", - "PO", - "SE", - "SI", - "TN", - "VN", - "WH", - "WLT", - "WS" - ], - "enumDescriptions": { - "02": { - "description": "Society for Worldwide Interbank Financial Telecommunication", - "longDescription": "A unique identification code for a particular bank" - }, - "06": { - "description": "System Number" - }, - "12": { - "description": "Billing Account Number", - "longDescription": "Account number in a trading partner's accounts receivable system" - }, - "19": { - "description": "Division", - "longDescription": "Different entities belonging to the same parent company" - }, - "2I": { - "description": "Tracking Number" - }, - "AH": { - "description": "Agreement Number" - }, - "AN": { - "description": "Appointment Number" - }, - "AO": { - "description": "Account Suffix" - }, - "BM": { - "description": "Bill of Lading Number" - }, - "BT": { - "description": "Batch Number" - }, - "BY": { - "description": "Repair Category Number" - }, - "CN": { - "description": "Carrier PRO Number", - "longDescription": "Unique number assigned by the carrier to track a shipment" - }, - "CT": { - "description": "Contract Number" - }, - "DO": { - "description": "Delivery Order Number" - }, - "GS": { - "description": "Internal Vendor Number" - }, - "IL": { - "description": "Internal Order Number" - }, - "IN": { - "description": "Invoice Number" - }, - "IT": { - "description": "Internal Customer Number" - }, - "IV": { - "description": "Seller's Invoice Number" - }, - "KW": { - "description": "Certification or License Number" - }, - "LO": { - "description": "Load Planning Number" - }, - "MK": { - "description": "Medical Record Identification Number" - }, - "OC": { - "description": "Old Order Number" - }, - "PD": { - "description": "Promotion Number" - }, - "PK": { - "description": "Packing List Number" - }, - "PO": { - "description": "Purchase Order Number" - }, - "SE": { - "description": "Serial Number" - }, - "SI": { - "description": "Shipper's Identifying Number for Shipment" - }, - "TN": { - "description": "Transaction Reference Number" - }, - "VN": { - "description": "Vendor Order Number" - }, - "WH": { - "description": "Master Reference Link Number", - "longDescription": "Used primarily by logistic firms to associate order documents to warehouse shipments when documents are received independently or not simultaneously but need to be fulfilled at the same time" - }, - "WLT": { - "description": "Warehouse Lot Number", - "longDescription": "Number identifying the section within an area of a storage facility. This further describes the position within the warehouse storage location number" - }, - "WS": { - "description": "Warehouse Storage Location Number", - "longDescription": "Number to identify a specific area within a storage facility" - } - } - }, - "ReferenceID": { - "description": "Value as defined by the ReferenceQual", - "type": "string" - }, - "Description": { - "description": "Free-form textual description to clarify the related data elements and their content", - "examples": [ - "New products only. Do not reuse packaging" - ], - "type": "string" - } - } + "required": [ + "TradingPartnerId", + "DocumentId", + "RecordType", + "ReferenceQual", + "ReferenceID", + "Description" + ] + } + }, + "Date": { + "type": "array", + "items": { + "type": "object", + "properties": { + "TradingPartnerId": { + "type": "string" + }, + "DocumentId": { + "type": "string" + }, + "RecordType": { + "type": "string" + }, + "DateTimeQualifier1": { + "type": "string" + }, + "Date1": { + "type": "string" + }, + "Time1": { + "type": "string" + }, + "TimeCode1": { + "type": "string" + }, + "DateTimeFormQualifier1": { + "type": "string" } }, - "Date": { - "type": "array", - "items": { - "type": "object", - "description": "Provides date and time information", - "additionalProperties": false, - "required": [], - "properties": { - "DateTimeQualifier": { - "description": "Code specifying the type of date", - "type": "string", - "enum": [ - "001", - "002", - "007", - "011", - "017", - "035", - "036", - "050", - "067", - "068", - "097", - "118", - "196", - "197", - "328", - "369", - "370", - "371", - "372", - "405", - "510", - "511", - "636", - "807", - "945", - "ACT", - "TRM" - ], - "enumDescriptions": { - "001": { - "description": "Cancel Date" - }, - "002": { - "description": "Requested Delivery" - }, - "007": { - "description": "Effective" - }, - "011": { - "description": "Actual Ship" - }, - "017": { - "description": "Estimated Delivery" - }, - "035": { - "description": "Actual Delivery" - }, - "036": { - "description": "Discontinued", - "longDescription": "Date when something is no longer available/valid" - }, - "050": { - "description": "Received Date" - }, - "067": { - "description": "Current Schedule Delivery" - }, - "068": { - "description": "Scheduled Ship" - }, - "097": { - "description": "Document/Transaction Date" - }, - "118": { - "description": "Requested Pick Up Date" - }, - "196": { - "description": "Start Date" - }, - "197": { - "description": "End Date" - }, - "328": { - "description": "Change" - }, - "369": { - "description": "Estimated Departure Date" - }, - "370": { - "description": "Actual Departure Date" - }, - "371": { - "description": "Estimated Arrival Date", - "longDescription": "The expected date of receiving a good or service" - }, - "372": { - "description": "Actual Arrival Date" - }, - "405": { - "description": "Production", - "longDescription": "Indicates the date that an item or good is created or manufactured" - }, - "510": { - "description": "Date Packed" - }, - "511": { - "description": "Shelf Life Expiration", - "longDescription": "Date when a product can not be legally sold due to it being unfit for use or consumption" - }, - "636": { - "description": "Last Update Date", - "longDescription": "The most recent date at which an update was made to the transaction" - }, - "807": { - "description": "Stored" - }, - "945": { - "description": "Activity" - }, - "ACT": { - "description": "Active Date", - "longDescription": "The date at which the document is effective for terms and contractual agreements" - }, - "TRM": { - "description": "Transmission Date", - "longDescription": "Date the document was sent" - } - } - }, - "Date": { - "description": "A specific day", - "examples": [ - "2012-10-31", - "2013-12-21" - ], - "type": "string", - "format": "date" - }, - "Time": { - "description": "All standard XML formats are accepted.", - "examples": [ - "16:13:03-05:00" - ], - "type": "string", - "format": "time" - }, - "DateTimePeriod": { - "description": "A date, time, or range of dates and times", - "type": "string" - } - } + "required": [ + "TradingPartnerId", + "DocumentId", + "RecordType", + "DateTimeQualifier1", + "Date1", + "Time1", + "TimeCode1", + "DateTimeFormQualifier1" + ] + } + }, + "Address": { + "type": "array", + "items": { + "type": "object", + "properties": { + "TradingPartnerId": { + "type": "string" + }, + "DocumentId": { + "type": "string" + }, + "RecordType": { + "type": "string" + }, + "AddressTypeCode": { + "type": "string" + }, + "LocationCodeQualifier": { + "type": "string" + }, + "AddressLocationNumber": { + "type": "string" + }, + "AddressName": { + "type": "string" + }, + "AddressAlternateName": { + "type": "string" + }, + "Address1": { + "type": "string" + }, + "Address2": { + "type": "string" + }, + "Address3": { + "type": "string" + }, + "Address4": { + "type": "string" + }, + "City": { + "type": "string" + }, + "State": { + "type": "string" + }, + "PostalCode": { + "type": "string" + }, + "Country": { + "type": "string" + }, + "ContactName": { + "type": "string" + }, + "ContactPhone": { + "type": "string" + }, + "ContactFax": { + "type": "string" + }, + "ContactEmail": { + "type": "string" + }, + "AddressTaxIdNumber": { + "type": "string" + }, + "AddressTaxExemptNumber": { + "type": "string" + }, + "AddressAlternateName2": { + "type": "string" } }, - "Address": { - "type": "array", - "items": { - "type": "object", - "description": "Represent an entity such as an organizational, physical location, property, or individual", - "additionalProperties": false, - "required": [], - "properties": { - "AddressTypeCode": { - "description": "Code identifying an organizational entity, a physical location, property, or an individual", - "type": "string", - "enum": [ - "88", - "9C", - "AG", - "BE", - "BK", - "BO", - "BOWN", - "BT", - "BY", - "CB", - "CN", - "CQ", - "CS", - "CT", - "DA", - "DE", - "DS", - "DV", - "ESIID", - "FR", - "FW", - "IA", - "MF", - "N1", - "NES", - "OB", - "PATI", - "PF", - "PLCO", - "POAR", - "PODI", - "POEN", - "POOR", - "PR", - "PW", - "RAMP", - "RI", - "RL", - "RT", - "SF", - "SO", - "ST", - "TO", - "TP", - "TS", - "VN", - "WH", - "Z7" - ], - "enumDescriptions": { - "88": { - "description": "Approver", - "longDescription": "Party approving claim for payment" - }, - "9C": { - "description": "Country of Destination" - }, - "AG": { - "description": "Agent" - }, - "BE": { - "description": "Beneficiary" - }, - "BK": { - "description": "Bank" - }, - "BO": { - "description": "Broker" - }, - "BOWN": { - "description": "Brand Owner", - "longDescription": "Party who owns the brand of the item[s]" - }, - "BT": { - "description": "Bill to Party", - "longDescription": "Party receiving invoice information" - }, - "BY": { - "description": "Buying Party", - "longDescription": "Party who is purchasing the product and/or service, but is not necessarily initiating the order" - }, - "CB": { - "description": "Customs Broker" - }, - "CN": { - "description": "Consignee" - }, - "CQ": { - "description": "Corporate Office", - "longDescription": "Used to indicate the location of the business's headquarters" - }, - "CS": { - "description": "Consolidator" - }, - "CT": { - "description": "Country of Origin" - }, - "DA": { - "description": "Delivery Address" - }, - "DE": { - "description": "Depositor" - }, - "DS": { - "description": "Distributor", - "longDescription": "Party who purchases goods, promotes and resales those goods to retailers at a markup or fee" - }, - "DV": { - "description": "Division", - "longDescription": "Component of a business entity.", - "examples": [ - "Lady Footlocker" - ] - }, - "ESIID": { - "description": "Electric Service Identifier ID", - "longDescription": "17 or 22-digit number used to identify a unique point of electric service delivery to a home or business" - }, - "FR": { - "description": "Message From", - "longDescription": "Used primary on reporting documents where there is no buyer or seller" - }, - "FW": { - "description": "Forwarder", - "longDescription": "Also called Freight Forwarder, or Forwarding Agent" - }, - "IA": { - "description": "Install Address", - "longDescription": "Location of installation" - }, - "MF": { - "description": "Manufacturer of Goods" - }, - "N1": { - "description": "Notify Party", - "longDescription": "Party which must be made aware of a shipment arriving at a location. Typically used with imports/exports" - }, - "NES": { - "description": "New Store" - }, - "OB": { - "description": "Ordered By", - "longDescription": "Party who initiates an order for goods and/or services, but is not necessarily purchasing it" - }, - "PATI": { - "description": "Patient", - "longDescription": "A location of a person receiving or registered to receive medical treatment" - }, - "PF": { - "description": "Party to Receive Freight Bill" - }, - "PLCO": { - "description": "Place of Consumption", - "longDescription": "A location where goods enter the marketplace of the importing country" - }, - "POAR": { - "description": "Port Of Arrival", - "longDescription": "A location where goods enter a country but may not require passing through customs" - }, - "PODI": { - "description": "Port of Discharge", - "longDescription": "A location where goods are unloaded" - }, - "POEN": { - "description": "Port of Entry", - "longDescription": "A border crossing where persons and/or goods legally [via customs] enter a country" - }, - "POOR": { - "description": "Port Of Origin" - }, - "PR": { - "description": "Payer", - "longDescription": "Party responsible for initiating payment" - }, - "PW": { - "description": "Pickup Address", - "longDescription": "Location in which the shipment will be picked up from" - }, - "RAMP": { - "description": "Repair and Maintenance Provider", - "longDescription": "A location where repair and maintenance is administered" - }, - "RI": { - "description": "Remit To" - }, - "RL": { - "description": "Reporting Location" - }, - "RT": { - "description": "Return Address" - }, - "SF": { - "description": "Ship From" - }, - "SO": { - "description": "Sold To" - }, - "ST": { - "description": "Ship To" - }, - "TO": { - "description": "Message To", - "longDescription": "Used primary on reporting documents where there is no buyer or seller" - }, - "TP": { - "description": "Transportation Provider" - }, - "TS": { - "description": "Transshipment Location", - "longDescription": "Transfer point between different carriers or between different vehicles of the same carrier" - }, - "VN": { - "description": "Vendor" - }, - "WH": { - "description": "Warehouse" - }, - "Z7": { - "description": "Mark for Party" - } - } - }, - "LocationCodeQualifier": { - "description": "Code identifying the structure or format of the related location number[s]", - "type": "string", - "enum": [ - "1", - "10", - "11", - "15", - "21", - "33", - "6", - "9", - "91", - "92", - "A1", - "BE", - "D", - "K", - "TPL", - "UL" - ], - "enumDescriptions": { - "1": { - "description": "Duns Number" - }, - "10": { - "description": "Department of Defense Activity Address Code", - "longDescription": "A six position code that uniquely identifies a Department of Defense unit, activity or organization (DoDDAC)" - }, - "11": { - "description": "Drug Enforcement Administration Number" - }, - "15": { - "description": "Standard Address Number[SAN]" - }, - "21": { - "description": "Health Industry Number" - }, - "33": { - "description": "Commercial and Government Entity", - "longDescription": "A five character identification assigned by the Department of Defense's Defense Logistics Agency used as a standardized method of identifying a given legal entity at a specific location (CAGE)" - }, - "6": { - "description": "Plant Code" - }, - "9": { - "description": "Duns Plus 4 Number" - }, - "91": { - "description": "Seller Location Number" - }, - "92": { - "description": "Buyer Location Number" - }, - "A1": { - "description": "Approver ID" - }, - "BE": { - "description": "Common Language Location Identifier [CLLI]", - "longDescription": "The standard address location code for a specific equipment location as used in the telephone industry" - }, - "D": { - "description": "Census Schedule D", - "longDescription": "Classification of U.S. Customs districts and ports for which shipments are reportable" - }, - "K": { - "description": "Census Schedule K", - "longDescription": "Classification of foreign ports by geographic trade area and country from the Maritime Administration" - }, - "TPL": { - "description": "Third Party Location Number", - "longDescription": "Location number assigned by a third party who was not involved in the buying cycle and is different than the buying and selling location numbers" - }, - "UL": { - "description": "Global Location Number[GLN]" - } - } - }, - "AddressLocationNumber": { - "description": "Unique value assigned to identify a location", - "examples": [ - "11111" - ], - "type": "string" - }, - "AddressName": { - "description": "Primary free-form textual description of a location", - "examples": [ - "SPS Commerce", - "The White House" - ], - "type": "string" - }, - "AddressAlternateName": { - "description": "Additional free-form description of a location", - "examples": [ - "ATTN: Marketing" - ], - "type": "string" - }, - "AddressAlternateName2": { - "description": "Additional free-form description of a location", - "examples": [ - "ATTN: John Doe" - ], - "type": "string" - }, - "Address1": { - "description": "Address information", - "examples": [ - "1600 Pennsylvania Ave NW", - "333 South 7th Street" - ], - "type": "string" - }, - "Address2": { - "description": "Address information", - "examples": [ - "ATTN: The President", - "Suite 1000" - ], - "type": "string" - }, - "Address3": { - "description": "Address information", - "examples": [ - "333 South Seventh Street Tower" - ], - "type": "string" - }, - "Address4": { - "description": "Address information", - "examples": [ - "10th Floor" - ], - "type": "string" - }, - "City": { - "description": "Free-form text for city name", - "examples": [ - "Minneapolis", - "Washington" - ], - "type": "string" - }, - "State": { - "description": "Code[Standard State/Province] as defined by appropriate government agency", - "examples": [ - "DC", - "MN" - ], - "type": "string" - }, - "PostalCode": { - "description": "International postal zone excluding punctuation and blanks[Zip Code for United States]", - "examples": [ - "20500", - "55402" - ], - "type": "string" - }, - "Country": { - "description": "Human readable description identifying the country", - "examples": [ - "US", - "USA" - ], - "type": "string" - }, - "LocationID": { - "description": "Provides further description to the address information. This can be either text or an ID", - "examples": [ - "555555", - "East Location, next to interstate" - ], - "type": "string" - }, - "CountrySubDivision": { - "description": "An administrative division such as a subnational entity, constituent unit, or country subdivision", - "type": "string" - }, - "AddressTaxIdNumber": { - "description": "Unique number assigned by the relevant tax authority to identify a party for use in relation to Value Added Tax[VAT]", - "examples": [ - "999999" - ], - "type": "string" - }, - "AddressTaxExemptNumber": { - "description": "Unique tax exemption number assigned by the relevant tax authority to identify an entity or organization", - "type": "string" - }, - "Reference": { - "type": "array", - "items": { - "type": "object", - "description": "Supplemental information supporting the transaction", - "additionalProperties": false, - "required": [], - "properties": { - "ReferenceQual": { - "description": "Code specifying the type of data in the ReferenceID/ReferenceDescription", - "type": "string" - }, - "ReferenceID": { - "description": "Value as defined by the ReferenceQual", - "type": "string" - } - } - } - }, - "Date": { - "type": "array", - "items": { - "type": "object", - "description": "Provides date and time information", - "additionalProperties": false, - "required": [], - "properties": { - "DateTimeQualifier": { - "description": "Code specifying the type of date", - "type": "string" - }, - "Date": { - "description": "A specific day", - "examples": [ - "2012-10-31", - "2013-12-21" - ], - "type": "string", - "format": "date" - }, - "Time": { - "description": "All standard XML formats are accepted.", - "examples": [ - "16:13:03-05:00" - ], - "type": "string", - "format": "time" - }, - "DateTimePeriod": { - "description": "A date, time, or range of dates and times", - "type": "string" - } - } - } - } - } + "required": [ + "TradingPartnerId", + "DocumentId", + "RecordType", + "AddressTypeCode", + "LocationCodeQualifier", + "AddressLocationNumber", + "AddressName", + "AddressAlternateName", + "Address1", + "Address2", + "Address3", + "Address4", + "City", + "State", + "PostalCode", + "Country", + "ContactName", + "ContactPhone", + "ContactFax", + "ContactEmail", + "AddressTaxIdNumber", + "AddressTaxExemptNumber", + "AddressAlternateName2" + ] + } + }, + "Miscellaneous": { + "type": "array", + "items": { + "type": "object", + "properties": { + "TradingPartnerId": { + "type": "string" + }, + "DocumentId": { + "type": "string" + }, + "RecordType": { + "type": "string" + }, + "Qualifier1": { + "type": "string" + }, + "Description1": { + "type": "string" + }, + "Qualifier2": { + "type": "string" + }, + "Description2": { + "type": "string" } }, - "Miscellaneous": { - "type": "array", - "items": { - "type": "object", - "description": "Provides additional miscellaneous information", - "additionalProperties": false, - "required": [], - "properties": { - "Qualifier1": { - "description": "Code qualifying the miscellaneous data element", - "type": "string" - }, - "Description1": { - "description": "Free-form description of the miscellaneous element", - "type": "string" - }, - "Qualifier2": { - "description": "Code qualifying the miscellaneous data element", - "type": "string" - }, - "Description2": { - "description": "Free-form description of the miscellaneous element", - "type": "string" - } - } - } - } + "required": [ + "TradingPartnerId", + "DocumentId", + "RecordType", + "Qualifier1", + "Description1", + "Qualifier2", + "Description2" + ] } } - } - } - }, - "Summary": { - "type": "object", - "description": "Encloses all document summary elements", - "additionalProperties": false, - "required": [], - "properties": { - "TotalOrders": { - "description": "Total number of line items in the transaction", - "type": "number" }, - "TotalWeight": { - "description": "Total weight of all items in the transaction", - "type": "number" - }, - "WeightUOM": { - "description": "Unit of measure for the total weight", - "type": "string", - "enum": [ - "01", - "GR", - "KG", - "LB", - "OZ", - "TO" - ], - "enumDescriptions": { - "01": { - "description": "Actual Net Weight" - }, - "GR": { - "description": "Gram" - }, - "KG": { - "description": "Kilogram" - }, - "LB": { - "description": "Pound" - }, - "OZ": { - "description": "Ounce" - }, - "TO": { - "description": "Metric Ton" - } - } - }, - "TotalVolume": { - "description": "Total volume of all items in the transaction", - "type": "number" - }, - "VolumeUOM": { - "description": "Unit of measure for the total volume", - "type": "string", - "enum": [ - "CF", - "CI", - "CR", - "GA", - "LT", - "ML" - ], - "enumDescriptions": { - "CF": { - "description": "Cubic Feet" - }, - "CI": { - "description": "Cubic Inches" - }, - "CR": { - "description": "Cubic Meter" - }, - "GA": { - "description": "Gallon" - }, - "LT": { - "description": "Liter" - }, - "ML": { - "description": "Milliliter" - } - } - } + "required": [ + "ItemDetail", + "Reference", + "Date", + "Address", + "Miscellaneous" + ] } } - } + }, + "required": [ + "LineItem" + ] + }, + "Summary": { + "type": "object", + "properties": { + "TradingPartnerId": { + "type": "string" + }, + "DocumentId": { + "type": "string" + }, + "RecordType": { + "type": "string" + }, + "TotalOrders": { + "type": "number" + }, + "TotalWeight": { + "type": "number" + }, + "WeightUOM": { + "type": "string" + }, + "TotalVolume": { + "type": "number" + }, + "VolumeUOM": { + "type": "string" + } + }, + "required": [ + "TradingPartnerId", + "DocumentId", + "RecordType", + "TotalOrders", + "TotalWeight", + "WeightUOM", + "TotalVolume", + "VolumeUOM" + ] } }, - "type": "array", - "items": { - "$ref": "#/definitions/WarehouseInventoryAdjustmentAdvice" - } -} + "required": [ + "Header", + "LineItems", + "Summary" + ] +} \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeader.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/Header.php similarity index 52% rename from src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeader.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/Header.php index 6fa175b..69780c9 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeader.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/Header.php @@ -11,30 +11,27 @@ use Swaggest\JsonSchema\Structure\ClassStructure; -/** - * Encloses all document header elements - */ -class WarehouseInventoryAdjustmentAdviceHeader extends ClassStructure +class Header extends ClassStructure { - /** @var WarehouseInventoryAdjustmentAdviceHeaderHeaderOrder Contains the commonly used fields in the header of the transaction */ + /** @var HeaderHeaderOrder */ public $headerOrder; - /** @var WarehouseInventoryAdjustmentAdviceHeaderReferenceItems[]|array */ + /** @var HeaderReferenceItems[]|array */ public $reference; - /** @var WarehouseInventoryAdjustmentAdviceHeaderDateItems[]|array */ + /** @var HeaderDateItems[]|array */ public $date; - /** @var WarehouseInventoryAdjustmentAdviceHeaderContactItems[]|array */ + /** @var HeaderContactItems[]|array */ public $contact; - /** @var WarehouseInventoryAdjustmentAdviceHeaderAddressItems[]|array */ + /** @var HeaderAddressItems[]|array */ public $address; - /** @var WarehouseInventoryAdjustmentAdviceHeaderNotesItems[]|array */ + /** @var HeaderNotesItems[]|array */ public $notes; - /** @var WarehouseInventoryAdjustmentAdviceHeaderMiscellaneousItems[]|array */ + /** @var HeaderMiscellaneousItems[]|array */ public $miscellaneous; /** @@ -43,31 +40,35 @@ class WarehouseInventoryAdjustmentAdviceHeader extends ClassStructure */ public static function setUpProperties($properties, Schema $ownerSchema) { - $properties->headerOrder = WarehouseInventoryAdjustmentAdviceHeaderHeaderOrder::schema(); + $properties->headerOrder = HeaderHeaderOrder::schema(); $ownerSchema->addPropertyMapping('HeaderOrder', self::names()->headerOrder); $properties->reference = Schema::arr(); - $properties->reference->items = WarehouseInventoryAdjustmentAdviceHeaderReferenceItems::schema(); + $properties->reference->items = HeaderReferenceItems::schema(); $ownerSchema->addPropertyMapping('Reference', self::names()->reference); $properties->date = Schema::arr(); - $properties->date->items = WarehouseInventoryAdjustmentAdviceHeaderDateItems::schema(); + $properties->date->items = HeaderDateItems::schema(); $ownerSchema->addPropertyMapping('Date', self::names()->date); $properties->contact = Schema::arr(); - $properties->contact->items = WarehouseInventoryAdjustmentAdviceHeaderContactItems::schema(); + $properties->contact->items = HeaderContactItems::schema(); $ownerSchema->addPropertyMapping('Contact', self::names()->contact); $properties->address = Schema::arr(); - $properties->address->items = WarehouseInventoryAdjustmentAdviceHeaderAddressItems::schema(); + $properties->address->items = HeaderAddressItems::schema(); $ownerSchema->addPropertyMapping('Address', self::names()->address); $properties->notes = Schema::arr(); - $properties->notes->items = WarehouseInventoryAdjustmentAdviceHeaderNotesItems::schema(); + $properties->notes->items = HeaderNotesItems::schema(); $ownerSchema->addPropertyMapping('Notes', self::names()->notes); $properties->miscellaneous = Schema::arr(); - $properties->miscellaneous->items = WarehouseInventoryAdjustmentAdviceHeaderMiscellaneousItems::schema(); + $properties->miscellaneous->items = HeaderMiscellaneousItems::schema(); $ownerSchema->addPropertyMapping('Miscellaneous', self::names()->miscellaneous); $ownerSchema->type = Schema::OBJECT; - $ownerSchema->additionalProperties = false; - $ownerSchema->description = "Encloses all document header elements"; $ownerSchema->required = array( 'HeaderOrder', + 'Reference', + 'Date', + 'Contact', + 'Address', + 'Notes', + 'Miscellaneous', ); } } \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItems.php new file mode 100644 index 0000000..fb3d939 --- /dev/null +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItems.php @@ -0,0 +1,164 @@ +tradingPartnerId = Schema::string(); + $ownerSchema->addPropertyMapping('TradingPartnerId', self::names()->tradingPartnerId); + $properties->documentId = Schema::string(); + $ownerSchema->addPropertyMapping('DocumentId', self::names()->documentId); + $properties->recordType = Schema::string(); + $ownerSchema->addPropertyMapping('RecordType', self::names()->recordType); + $properties->addressTypeCode = Schema::string(); + $ownerSchema->addPropertyMapping('AddressTypeCode', self::names()->addressTypeCode); + $properties->locationCodeQualifier = Schema::string(); + $ownerSchema->addPropertyMapping('LocationCodeQualifier', self::names()->locationCodeQualifier); + $properties->addressLocationNumber = Schema::string(); + $ownerSchema->addPropertyMapping('AddressLocationNumber', self::names()->addressLocationNumber); + $properties->addressName = Schema::string(); + $ownerSchema->addPropertyMapping('AddressName', self::names()->addressName); + $properties->addressAlternateName = Schema::string(); + $ownerSchema->addPropertyMapping('AddressAlternateName', self::names()->addressAlternateName); + $properties->address1 = Schema::string(); + $ownerSchema->addPropertyMapping('Address1', self::names()->address1); + $properties->address2 = Schema::string(); + $ownerSchema->addPropertyMapping('Address2', self::names()->address2); + $properties->address3 = Schema::string(); + $ownerSchema->addPropertyMapping('Address3', self::names()->address3); + $properties->address4 = Schema::string(); + $ownerSchema->addPropertyMapping('Address4', self::names()->address4); + $properties->city = Schema::string(); + $ownerSchema->addPropertyMapping('City', self::names()->city); + $properties->state = Schema::string(); + $ownerSchema->addPropertyMapping('State', self::names()->state); + $properties->postalCode = Schema::string(); + $ownerSchema->addPropertyMapping('PostalCode', self::names()->postalCode); + $properties->country = Schema::string(); + $ownerSchema->addPropertyMapping('Country', self::names()->country); + $properties->contactName = Schema::string(); + $ownerSchema->addPropertyMapping('ContactName', self::names()->contactName); + $properties->contactPhone = Schema::string(); + $ownerSchema->addPropertyMapping('ContactPhone', self::names()->contactPhone); + $properties->contactFax = Schema::string(); + $ownerSchema->addPropertyMapping('ContactFax', self::names()->contactFax); + $properties->contactEmail = Schema::string(); + $ownerSchema->addPropertyMapping('ContactEmail', self::names()->contactEmail); + $properties->addressTaxIdNumber = Schema::string(); + $ownerSchema->addPropertyMapping('AddressTaxIdNumber', self::names()->addressTaxIdNumber); + $properties->addressTaxExemptNumber = Schema::string(); + $ownerSchema->addPropertyMapping('AddressTaxExemptNumber', self::names()->addressTaxExemptNumber); + $properties->addressAlternateName2 = Schema::string(); + $ownerSchema->addPropertyMapping('AddressAlternateName2', self::names()->addressAlternateName2); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->required = array( + 'TradingPartnerId', + 'DocumentId', + 'RecordType', + 'AddressTypeCode', + 'LocationCodeQualifier', + 'AddressLocationNumber', + 'AddressName', + 'AddressAlternateName', + 'Address1', + 'Address2', + 'Address3', + 'Address4', + 'City', + 'State', + 'PostalCode', + 'Country', + 'ContactName', + 'ContactPhone', + 'ContactFax', + 'ContactEmail', + 'AddressTaxIdNumber', + 'AddressTaxExemptNumber', + 'AddressAlternateName2', + ); + } +} \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderContactItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderContactItems.php new file mode 100644 index 0000000..8f1fabb --- /dev/null +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderContactItems.php @@ -0,0 +1,80 @@ +tradingPartnerId = Schema::string(); + $ownerSchema->addPropertyMapping('TradingPartnerId', self::names()->tradingPartnerId); + $properties->documentId = Schema::string(); + $ownerSchema->addPropertyMapping('DocumentId', self::names()->documentId); + $properties->recordType = Schema::string(); + $ownerSchema->addPropertyMapping('RecordType', self::names()->recordType); + $properties->contactTypeCode = Schema::string(); + $ownerSchema->addPropertyMapping('ContactTypeCode', self::names()->contactTypeCode); + $properties->contactName = Schema::string(); + $ownerSchema->addPropertyMapping('ContactName', self::names()->contactName); + $properties->contactPhone = Schema::string(); + $ownerSchema->addPropertyMapping('ContactPhone', self::names()->contactPhone); + $properties->contactFax = Schema::string(); + $ownerSchema->addPropertyMapping('ContactFax', self::names()->contactFax); + $properties->contactEmail = Schema::string(); + $ownerSchema->addPropertyMapping('ContactEmail', self::names()->contactEmail); + $properties->contactReference = Schema::string(); + $ownerSchema->addPropertyMapping('ContactReference', self::names()->contactReference); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->required = array( + 'TradingPartnerId', + 'DocumentId', + 'RecordType', + 'ContactTypeCode', + 'ContactName', + 'ContactPhone', + 'ContactFax', + 'ContactEmail', + 'ContactReference', + ); + } +} \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderDateItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderDateItems.php new file mode 100644 index 0000000..b750883 --- /dev/null +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderDateItems.php @@ -0,0 +1,74 @@ +tradingPartnerId = Schema::string(); + $ownerSchema->addPropertyMapping('TradingPartnerId', self::names()->tradingPartnerId); + $properties->documentId = Schema::string(); + $ownerSchema->addPropertyMapping('DocumentId', self::names()->documentId); + $properties->recordType = Schema::string(); + $ownerSchema->addPropertyMapping('RecordType', self::names()->recordType); + $properties->dateTimeQualifier1 = Schema::string(); + $ownerSchema->addPropertyMapping('DateTimeQualifier1', self::names()->dateTimeQualifier1); + $properties->date1 = Schema::string(); + $ownerSchema->addPropertyMapping('Date1', self::names()->date1); + $properties->time1 = Schema::string(); + $ownerSchema->addPropertyMapping('Time1', self::names()->time1); + $properties->timeCode1 = Schema::string(); + $ownerSchema->addPropertyMapping('TimeCode1', self::names()->timeCode1); + $properties->dateTimeFormQualifier1 = Schema::string(); + $ownerSchema->addPropertyMapping('DateTimeFormQualifier1', self::names()->dateTimeFormQualifier1); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->required = array( + 'TradingPartnerId', + 'DocumentId', + 'RecordType', + 'DateTimeQualifier1', + 'Date1', + 'Time1', + 'TimeCode1', + 'DateTimeFormQualifier1', + ); + } +} \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderHeaderOrder.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderHeaderOrder.php new file mode 100644 index 0000000..4b547ad --- /dev/null +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderHeaderOrder.php @@ -0,0 +1,86 @@ +tradingPartnerId = Schema::string(); + $ownerSchema->addPropertyMapping('TradingPartnerId', self::names()->tradingPartnerId); + $properties->documentId = Schema::string(); + $ownerSchema->addPropertyMapping('DocumentId', self::names()->documentId); + $properties->recordType = Schema::string(); + $ownerSchema->addPropertyMapping('RecordType', self::names()->recordType); + $properties->date1 = Schema::string(); + $ownerSchema->addPropertyMapping('Date1', self::names()->date1); + $properties->adjustmentNumber1 = Schema::string(); + $ownerSchema->addPropertyMapping('AdjustmentNumber1', self::names()->adjustmentNumber1); + $properties->adjustmentNumber2 = Schema::string(); + $ownerSchema->addPropertyMapping('AdjustmentNumber2', self::names()->adjustmentNumber2); + $properties->tsetPurposeCode = Schema::string(); + $ownerSchema->addPropertyMapping('TsetPurposeCode', self::names()->tsetPurposeCode); + $properties->purchaseOrderNumber = Schema::string(); + $ownerSchema->addPropertyMapping('PurchaseOrderNumber', self::names()->purchaseOrderNumber); + $properties->transactionTypeCode = Schema::string(); + $ownerSchema->addPropertyMapping('TransactionTypeCode', self::names()->transactionTypeCode); + $properties->actionCode = Schema::string(); + $ownerSchema->addPropertyMapping('ActionCode', self::names()->actionCode); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->required = array( + 'TradingPartnerId', + 'DocumentId', + 'RecordType', + 'Date1', + 'AdjustmentNumber1', + 'AdjustmentNumber2', + 'TsetPurposeCode', + 'PurchaseOrderNumber', + 'TransactionTypeCode', + 'ActionCode', + ); + } +} \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderMiscellaneousItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderMiscellaneousItems.php similarity index 58% rename from src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderMiscellaneousItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderMiscellaneousItems.php index 04e2e94..a0cfa09 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderMiscellaneousItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderMiscellaneousItems.php @@ -11,21 +11,27 @@ use Swaggest\JsonSchema\Structure\ClassStructure; -/** - * Provides additional miscellaneous information - */ -class WarehouseInventoryAdjustmentAdviceHeaderMiscellaneousItems extends ClassStructure +class HeaderMiscellaneousItems extends ClassStructure { - /** @var string Code qualifying the miscellaneous data element */ + /** @var string */ + public $tradingPartnerId; + + /** @var string */ + public $documentId; + + /** @var string */ + public $recordType; + + /** @var string */ public $qualifier1; - /** @var string Free-form description of the miscellaneous element */ + /** @var string */ public $description1; - /** @var string Code qualifying the miscellaneous data element */ + /** @var string */ public $qualifier2; - /** @var string Free-form description of the miscellaneous element */ + /** @var string */ public $description2; /** @@ -34,22 +40,29 @@ class WarehouseInventoryAdjustmentAdviceHeaderMiscellaneousItems extends ClassSt */ public static function setUpProperties($properties, Schema $ownerSchema) { + $properties->tradingPartnerId = Schema::string(); + $ownerSchema->addPropertyMapping('TradingPartnerId', self::names()->tradingPartnerId); + $properties->documentId = Schema::string(); + $ownerSchema->addPropertyMapping('DocumentId', self::names()->documentId); + $properties->recordType = Schema::string(); + $ownerSchema->addPropertyMapping('RecordType', self::names()->recordType); $properties->qualifier1 = Schema::string(); - $properties->qualifier1->description = "Code qualifying the miscellaneous data element"; $ownerSchema->addPropertyMapping('Qualifier1', self::names()->qualifier1); $properties->description1 = Schema::string(); - $properties->description1->description = "Free-form description of the miscellaneous element"; $ownerSchema->addPropertyMapping('Description1', self::names()->description1); $properties->qualifier2 = Schema::string(); - $properties->qualifier2->description = "Code qualifying the miscellaneous data element"; $ownerSchema->addPropertyMapping('Qualifier2', self::names()->qualifier2); $properties->description2 = Schema::string(); - $properties->description2->description = "Free-form description of the miscellaneous element"; $ownerSchema->addPropertyMapping('Description2', self::names()->description2); $ownerSchema->type = Schema::OBJECT; - $ownerSchema->additionalProperties = false; - $ownerSchema->description = "Provides additional miscellaneous information"; $ownerSchema->required = array( + 'TradingPartnerId', + 'DocumentId', + 'RecordType', + 'Qualifier1', + 'Description1', + 'Qualifier2', + 'Description2', ); } } \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderNotesItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderNotesItems.php new file mode 100644 index 0000000..7f4fdba --- /dev/null +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderNotesItems.php @@ -0,0 +1,50 @@ +tradingPartnerId = Schema::string(); + $ownerSchema->addPropertyMapping('TradingPartnerId', self::names()->tradingPartnerId); + $properties->documentId = Schema::string(); + $ownerSchema->addPropertyMapping('DocumentId', self::names()->documentId); + $properties->recordType = Schema::string(); + $ownerSchema->addPropertyMapping('RecordType', self::names()->recordType); + $properties->noteInformationField = Schema::string(); + $ownerSchema->addPropertyMapping('NoteInformationField', self::names()->noteInformationField); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->required = array( + 'TradingPartnerId', + 'DocumentId', + 'RecordType', + 'NoteInformationField', + ); + } +} \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferenceItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderReferenceItems.php similarity index 50% rename from src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferenceItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderReferenceItems.php index faa43ed..e7dc2bd 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferenceItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderReferenceItems.php @@ -11,33 +11,52 @@ use Swaggest\JsonSchema\Structure\ClassStructure; -/** - * Supplemental information supporting the transaction - */ -class WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferenceItems extends ClassStructure +class HeaderReferenceItems extends ClassStructure { - /** @var string Code specifying the type of data in the ReferenceID/ReferenceDescription */ + /** @var string */ + public $tradingPartnerId; + + /** @var string */ + public $documentId; + + /** @var string */ + public $recordType; + + /** @var string */ public $referenceQual; - /** @var string Value as defined by the ReferenceQual */ + /** @var string */ public $referenceID; + /** @var string */ + public $description; + /** * @param Properties|static $properties * @param Schema $ownerSchema */ public static function setUpProperties($properties, Schema $ownerSchema) { + $properties->tradingPartnerId = Schema::string(); + $ownerSchema->addPropertyMapping('TradingPartnerId', self::names()->tradingPartnerId); + $properties->documentId = Schema::string(); + $ownerSchema->addPropertyMapping('DocumentId', self::names()->documentId); + $properties->recordType = Schema::string(); + $ownerSchema->addPropertyMapping('RecordType', self::names()->recordType); $properties->referenceQual = Schema::string(); - $properties->referenceQual->description = "Code specifying the type of data in the ReferenceID/ReferenceDescription"; $ownerSchema->addPropertyMapping('ReferenceQual', self::names()->referenceQual); $properties->referenceID = Schema::string(); - $properties->referenceID->description = "Value as defined by the ReferenceQual"; $ownerSchema->addPropertyMapping('ReferenceID', self::names()->referenceID); + $properties->description = Schema::string(); + $ownerSchema->addPropertyMapping('Description', self::names()->description); $ownerSchema->type = Schema::OBJECT; - $ownerSchema->additionalProperties = false; - $ownerSchema->description = "Supplemental information supporting the transaction"; $ownerSchema->required = array( + 'TradingPartnerId', + 'DocumentId', + 'RecordType', + 'ReferenceQual', + 'ReferenceID', + 'Description', ); } } \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItems.php similarity index 66% rename from src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItems.php index 5ab4486..94403d3 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItems.php @@ -11,12 +11,9 @@ use Swaggest\JsonSchema\Structure\ClassStructure; -/** - * Encloses all document line item elements - */ -class WarehouseInventoryAdjustmentAdviceLineItems extends ClassStructure +class LineItems extends ClassStructure { - /** @var WarehouseInventoryAdjustmentAdviceLineItemsLineItemItems[]|array */ + /** @var LineItemsLineItemItems[]|array */ public $lineItem; /** @@ -26,11 +23,9 @@ class WarehouseInventoryAdjustmentAdviceLineItems extends ClassStructure public static function setUpProperties($properties, Schema $ownerSchema) { $properties->lineItem = Schema::arr(); - $properties->lineItem->items = WarehouseInventoryAdjustmentAdviceLineItemsLineItemItems::schema(); + $properties->lineItem->items = LineItemsLineItemItems::schema(); $ownerSchema->addPropertyMapping('LineItem', self::names()->lineItem); $ownerSchema->type = Schema::OBJECT; - $ownerSchema->additionalProperties = false; - $ownerSchema->description = "Encloses all document line item elements"; $ownerSchema->required = array( 'LineItem', ); diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItems.php similarity index 50% rename from src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItems.php index aff4a43..dda7618 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItems.php @@ -11,24 +11,21 @@ use Swaggest\JsonSchema\Structure\ClassStructure; -/** - * Encloses all document line item elements - */ -class WarehouseInventoryAdjustmentAdviceLineItemsLineItemItems extends ClassStructure +class LineItemsLineItemItems extends ClassStructure { - /** @var WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsItemDetail Contains the commonly used fields in the line item level of the transaction */ + /** @var LineItemsLineItemItemsItemDetail */ public $itemDetail; - /** @var WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsReferenceItems[]|array */ + /** @var LineItemsLineItemItemsReferenceItems[]|array */ public $reference; - /** @var WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsDateItems[]|array */ + /** @var LineItemsLineItemItemsDateItems[]|array */ public $date; - /** @var WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItems[]|array */ + /** @var LineItemsLineItemItemsAddressItems[]|array */ public $address; - /** @var WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsMiscellaneousItems[]|array */ + /** @var LineItemsLineItemItemsMiscellaneousItems[]|array */ public $miscellaneous; /** @@ -37,25 +34,27 @@ class WarehouseInventoryAdjustmentAdviceLineItemsLineItemItems extends ClassStru */ public static function setUpProperties($properties, Schema $ownerSchema) { - $properties->itemDetail = WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsItemDetail::schema(); + $properties->itemDetail = LineItemsLineItemItemsItemDetail::schema(); $ownerSchema->addPropertyMapping('ItemDetail', self::names()->itemDetail); $properties->reference = Schema::arr(); - $properties->reference->items = WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsReferenceItems::schema(); + $properties->reference->items = LineItemsLineItemItemsReferenceItems::schema(); $ownerSchema->addPropertyMapping('Reference', self::names()->reference); $properties->date = Schema::arr(); - $properties->date->items = WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsDateItems::schema(); + $properties->date->items = LineItemsLineItemItemsDateItems::schema(); $ownerSchema->addPropertyMapping('Date', self::names()->date); $properties->address = Schema::arr(); - $properties->address->items = WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItems::schema(); + $properties->address->items = LineItemsLineItemItemsAddressItems::schema(); $ownerSchema->addPropertyMapping('Address', self::names()->address); $properties->miscellaneous = Schema::arr(); - $properties->miscellaneous->items = WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsMiscellaneousItems::schema(); + $properties->miscellaneous->items = LineItemsLineItemItemsMiscellaneousItems::schema(); $ownerSchema->addPropertyMapping('Miscellaneous', self::names()->miscellaneous); $ownerSchema->type = Schema::OBJECT; - $ownerSchema->additionalProperties = false; - $ownerSchema->description = "Encloses all document line item elements"; $ownerSchema->required = array( 'ItemDetail', + 'Reference', + 'Date', + 'Address', + 'Miscellaneous', ); } } \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItems.php new file mode 100644 index 0000000..c3f0237 --- /dev/null +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItems.php @@ -0,0 +1,164 @@ +tradingPartnerId = Schema::string(); + $ownerSchema->addPropertyMapping('TradingPartnerId', self::names()->tradingPartnerId); + $properties->documentId = Schema::string(); + $ownerSchema->addPropertyMapping('DocumentId', self::names()->documentId); + $properties->recordType = Schema::string(); + $ownerSchema->addPropertyMapping('RecordType', self::names()->recordType); + $properties->addressTypeCode = Schema::string(); + $ownerSchema->addPropertyMapping('AddressTypeCode', self::names()->addressTypeCode); + $properties->locationCodeQualifier = Schema::string(); + $ownerSchema->addPropertyMapping('LocationCodeQualifier', self::names()->locationCodeQualifier); + $properties->addressLocationNumber = Schema::string(); + $ownerSchema->addPropertyMapping('AddressLocationNumber', self::names()->addressLocationNumber); + $properties->addressName = Schema::string(); + $ownerSchema->addPropertyMapping('AddressName', self::names()->addressName); + $properties->addressAlternateName = Schema::string(); + $ownerSchema->addPropertyMapping('AddressAlternateName', self::names()->addressAlternateName); + $properties->address1 = Schema::string(); + $ownerSchema->addPropertyMapping('Address1', self::names()->address1); + $properties->address2 = Schema::string(); + $ownerSchema->addPropertyMapping('Address2', self::names()->address2); + $properties->address3 = Schema::string(); + $ownerSchema->addPropertyMapping('Address3', self::names()->address3); + $properties->address4 = Schema::string(); + $ownerSchema->addPropertyMapping('Address4', self::names()->address4); + $properties->city = Schema::string(); + $ownerSchema->addPropertyMapping('City', self::names()->city); + $properties->state = Schema::string(); + $ownerSchema->addPropertyMapping('State', self::names()->state); + $properties->postalCode = Schema::string(); + $ownerSchema->addPropertyMapping('PostalCode', self::names()->postalCode); + $properties->country = Schema::string(); + $ownerSchema->addPropertyMapping('Country', self::names()->country); + $properties->contactName = Schema::string(); + $ownerSchema->addPropertyMapping('ContactName', self::names()->contactName); + $properties->contactPhone = Schema::string(); + $ownerSchema->addPropertyMapping('ContactPhone', self::names()->contactPhone); + $properties->contactFax = Schema::string(); + $ownerSchema->addPropertyMapping('ContactFax', self::names()->contactFax); + $properties->contactEmail = Schema::string(); + $ownerSchema->addPropertyMapping('ContactEmail', self::names()->contactEmail); + $properties->addressTaxIdNumber = Schema::string(); + $ownerSchema->addPropertyMapping('AddressTaxIdNumber', self::names()->addressTaxIdNumber); + $properties->addressTaxExemptNumber = Schema::string(); + $ownerSchema->addPropertyMapping('AddressTaxExemptNumber', self::names()->addressTaxExemptNumber); + $properties->addressAlternateName2 = Schema::string(); + $ownerSchema->addPropertyMapping('AddressAlternateName2', self::names()->addressAlternateName2); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->required = array( + 'TradingPartnerId', + 'DocumentId', + 'RecordType', + 'AddressTypeCode', + 'LocationCodeQualifier', + 'AddressLocationNumber', + 'AddressName', + 'AddressAlternateName', + 'Address1', + 'Address2', + 'Address3', + 'Address4', + 'City', + 'State', + 'PostalCode', + 'Country', + 'ContactName', + 'ContactPhone', + 'ContactFax', + 'ContactEmail', + 'AddressTaxIdNumber', + 'AddressTaxExemptNumber', + 'AddressAlternateName2', + ); + } +} \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsDateItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsDateItems.php new file mode 100644 index 0000000..7bc1c7e --- /dev/null +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsDateItems.php @@ -0,0 +1,74 @@ +tradingPartnerId = Schema::string(); + $ownerSchema->addPropertyMapping('TradingPartnerId', self::names()->tradingPartnerId); + $properties->documentId = Schema::string(); + $ownerSchema->addPropertyMapping('DocumentId', self::names()->documentId); + $properties->recordType = Schema::string(); + $ownerSchema->addPropertyMapping('RecordType', self::names()->recordType); + $properties->dateTimeQualifier1 = Schema::string(); + $ownerSchema->addPropertyMapping('DateTimeQualifier1', self::names()->dateTimeQualifier1); + $properties->date1 = Schema::string(); + $ownerSchema->addPropertyMapping('Date1', self::names()->date1); + $properties->time1 = Schema::string(); + $ownerSchema->addPropertyMapping('Time1', self::names()->time1); + $properties->timeCode1 = Schema::string(); + $ownerSchema->addPropertyMapping('TimeCode1', self::names()->timeCode1); + $properties->dateTimeFormQualifier1 = Schema::string(); + $ownerSchema->addPropertyMapping('DateTimeFormQualifier1', self::names()->dateTimeFormQualifier1); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->required = array( + 'TradingPartnerId', + 'DocumentId', + 'RecordType', + 'DateTimeQualifier1', + 'Date1', + 'Time1', + 'TimeCode1', + 'DateTimeFormQualifier1', + ); + } +} \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsItemDetail.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsItemDetail.php new file mode 100644 index 0000000..52427b2 --- /dev/null +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsItemDetail.php @@ -0,0 +1,218 @@ +tradingPartnerId = Schema::string(); + $ownerSchema->addPropertyMapping('TradingPartnerId', self::names()->tradingPartnerId); + $properties->documentId = Schema::string(); + $ownerSchema->addPropertyMapping('DocumentId', self::names()->documentId); + $properties->recordType = Schema::string(); + $ownerSchema->addPropertyMapping('RecordType', self::names()->recordType); + $properties->lineSequenceNumber = Schema::string(); + $ownerSchema->addPropertyMapping('LineSequenceNumber', self::names()->lineSequenceNumber); + $properties->buyerPartNumber = Schema::string(); + $ownerSchema->addPropertyMapping('BuyerPartNumber', self::names()->buyerPartNumber); + $properties->vendorPartNumber = Schema::string(); + $ownerSchema->addPropertyMapping('VendorPartNumber', self::names()->vendorPartNumber); + $properties->consumerPackageCode = Schema::string(); + $ownerSchema->addPropertyMapping('ConsumerPackageCode', self::names()->consumerPackageCode); + $properties->gTIN = Schema::string(); + $ownerSchema->addPropertyMapping('GTIN', self::names()->gTIN); + $properties->uPCCaseCode = Schema::string(); + $ownerSchema->addPropertyMapping('UPCCaseCode', self::names()->uPCCaseCode); + $properties->natlDrugCode = Schema::string(); + $ownerSchema->addPropertyMapping('NatlDrugCode', self::names()->natlDrugCode); + $properties->partNumberQualifier1 = Schema::string(); + $ownerSchema->addPropertyMapping('PartNumberQualifier1', self::names()->partNumberQualifier1); + $properties->partNumber1 = Schema::string(); + $ownerSchema->addPropertyMapping('PartNumber1', self::names()->partNumber1); + $properties->partNumberQualifier2 = Schema::string(); + $ownerSchema->addPropertyMapping('PartNumberQualifier2', self::names()->partNumberQualifier2); + $properties->partNumber2 = Schema::string(); + $ownerSchema->addPropertyMapping('PartNumber2', self::names()->partNumber2); + $properties->partNumberQualifier3 = Schema::string(); + $ownerSchema->addPropertyMapping('PartNumberQualifier3', self::names()->partNumberQualifier3); + $properties->partNumber3 = Schema::string(); + $ownerSchema->addPropertyMapping('PartNumber3', self::names()->partNumber3); + $properties->partNumberQualifier4 = Schema::string(); + $ownerSchema->addPropertyMapping('PartNumberQualifier4', self::names()->partNumberQualifier4); + $properties->partNumber4 = Schema::string(); + $ownerSchema->addPropertyMapping('PartNumber4', self::names()->partNumber4); + $properties->partDescription1 = Schema::string(); + $ownerSchema->addPropertyMapping('PartDescription1', self::names()->partDescription1); + $properties->partDescription2 = Schema::string(); + $ownerSchema->addPropertyMapping('PartDescription2', self::names()->partDescription2); + $properties->adjReasonCode = Schema::string(); + $ownerSchema->addPropertyMapping('AdjReasonCode', self::names()->adjReasonCode); + $properties->qtyAdjusted = Schema::number(); + $ownerSchema->addPropertyMapping('QtyAdjusted', self::names()->qtyAdjusted); + $properties->qtyAdjustedUOM = Schema::string(); + $ownerSchema->addPropertyMapping('QtyAdjustedUOM', self::names()->qtyAdjustedUOM); + $properties->warehouseLotID = Schema::string(); + $ownerSchema->addPropertyMapping('WarehouseLotID', self::names()->warehouseLotID); + $properties->weight1 = Schema::number(); + $ownerSchema->addPropertyMapping('Weight1', self::names()->weight1); + $properties->weightQualifier1 = Schema::string(); + $ownerSchema->addPropertyMapping('WeightQualifier1', self::names()->weightQualifier1); + $properties->weightUOM1 = Schema::string(); + $ownerSchema->addPropertyMapping('WeightUOM1', self::names()->weightUOM1); + $properties->weight2 = Schema::number(); + $ownerSchema->addPropertyMapping('Weight2', self::names()->weight2); + $properties->weightQualifier2 = Schema::string(); + $ownerSchema->addPropertyMapping('WeightQualifier2', self::names()->weightQualifier2); + $properties->weightUOM2 = Schema::string(); + $ownerSchema->addPropertyMapping('WeightUOM2', self::names()->weightUOM2); + $properties->inventoryTransaction = Schema::string(); + $ownerSchema->addPropertyMapping('InventoryTransaction', self::names()->inventoryTransaction); + $properties->extendedItemTotal = Schema::number(); + $ownerSchema->addPropertyMapping('ExtendedItemTotal', self::names()->extendedItemTotal); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->required = array( + 'TradingPartnerId', + 'DocumentId', + 'RecordType', + 'LineSequenceNumber', + 'BuyerPartNumber', + 'VendorPartNumber', + 'ConsumerPackageCode', + 'GTIN', + 'UPCCaseCode', + 'NatlDrugCode', + 'PartNumberQualifier1', + 'PartNumber1', + 'PartNumberQualifier2', + 'PartNumber2', + 'PartNumberQualifier3', + 'PartNumber3', + 'PartNumberQualifier4', + 'PartNumber4', + 'PartDescription1', + 'PartDescription2', + 'AdjReasonCode', + 'QtyAdjusted', + 'QtyAdjustedUOM', + 'WarehouseLotID', + 'Weight1', + 'WeightQualifier1', + 'WeightUOM1', + 'Weight2', + 'WeightQualifier2', + 'WeightUOM2', + 'InventoryTransaction', + 'ExtendedItemTotal', + ); + } +} \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsMiscellaneousItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsMiscellaneousItems.php similarity index 58% rename from src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsMiscellaneousItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsMiscellaneousItems.php index 0c7f963..e7e963d 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsMiscellaneousItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsMiscellaneousItems.php @@ -11,21 +11,27 @@ use Swaggest\JsonSchema\Structure\ClassStructure; -/** - * Provides additional miscellaneous information - */ -class WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsMiscellaneousItems extends ClassStructure +class LineItemsLineItemItemsMiscellaneousItems extends ClassStructure { - /** @var string Code qualifying the miscellaneous data element */ + /** @var string */ + public $tradingPartnerId; + + /** @var string */ + public $documentId; + + /** @var string */ + public $recordType; + + /** @var string */ public $qualifier1; - /** @var string Free-form description of the miscellaneous element */ + /** @var string */ public $description1; - /** @var string Code qualifying the miscellaneous data element */ + /** @var string */ public $qualifier2; - /** @var string Free-form description of the miscellaneous element */ + /** @var string */ public $description2; /** @@ -34,22 +40,29 @@ class WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsMiscellaneousItems */ public static function setUpProperties($properties, Schema $ownerSchema) { + $properties->tradingPartnerId = Schema::string(); + $ownerSchema->addPropertyMapping('TradingPartnerId', self::names()->tradingPartnerId); + $properties->documentId = Schema::string(); + $ownerSchema->addPropertyMapping('DocumentId', self::names()->documentId); + $properties->recordType = Schema::string(); + $ownerSchema->addPropertyMapping('RecordType', self::names()->recordType); $properties->qualifier1 = Schema::string(); - $properties->qualifier1->description = "Code qualifying the miscellaneous data element"; $ownerSchema->addPropertyMapping('Qualifier1', self::names()->qualifier1); $properties->description1 = Schema::string(); - $properties->description1->description = "Free-form description of the miscellaneous element"; $ownerSchema->addPropertyMapping('Description1', self::names()->description1); $properties->qualifier2 = Schema::string(); - $properties->qualifier2->description = "Code qualifying the miscellaneous data element"; $ownerSchema->addPropertyMapping('Qualifier2', self::names()->qualifier2); $properties->description2 = Schema::string(); - $properties->description2->description = "Free-form description of the miscellaneous element"; $ownerSchema->addPropertyMapping('Description2', self::names()->description2); $ownerSchema->type = Schema::OBJECT; - $ownerSchema->additionalProperties = false; - $ownerSchema->description = "Provides additional miscellaneous information"; $ownerSchema->required = array( + 'TradingPartnerId', + 'DocumentId', + 'RecordType', + 'Qualifier1', + 'Description1', + 'Qualifier2', + 'Description2', ); } } \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferenceItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsReferenceItems.php similarity index 50% rename from src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferenceItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsReferenceItems.php index 168688b..e435aaf 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferenceItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsReferenceItems.php @@ -11,33 +11,52 @@ use Swaggest\JsonSchema\Structure\ClassStructure; -/** - * Supplemental information supporting the transaction - */ -class WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferenceItems extends ClassStructure +class LineItemsLineItemItemsReferenceItems extends ClassStructure { - /** @var string Code specifying the type of data in the ReferenceID/ReferenceDescription */ + /** @var string */ + public $tradingPartnerId; + + /** @var string */ + public $documentId; + + /** @var string */ + public $recordType; + + /** @var string */ public $referenceQual; - /** @var string Value as defined by the ReferenceQual */ + /** @var string */ public $referenceID; + /** @var string */ + public $description; + /** * @param Properties|static $properties * @param Schema $ownerSchema */ public static function setUpProperties($properties, Schema $ownerSchema) { + $properties->tradingPartnerId = Schema::string(); + $ownerSchema->addPropertyMapping('TradingPartnerId', self::names()->tradingPartnerId); + $properties->documentId = Schema::string(); + $ownerSchema->addPropertyMapping('DocumentId', self::names()->documentId); + $properties->recordType = Schema::string(); + $ownerSchema->addPropertyMapping('RecordType', self::names()->recordType); $properties->referenceQual = Schema::string(); - $properties->referenceQual->description = "Code specifying the type of data in the ReferenceID/ReferenceDescription"; $ownerSchema->addPropertyMapping('ReferenceQual', self::names()->referenceQual); $properties->referenceID = Schema::string(); - $properties->referenceID->description = "Value as defined by the ReferenceQual"; $ownerSchema->addPropertyMapping('ReferenceID', self::names()->referenceID); + $properties->description = Schema::string(); + $ownerSchema->addPropertyMapping('Description', self::names()->description); $ownerSchema->type = Schema::OBJECT; - $ownerSchema->additionalProperties = false; - $ownerSchema->description = "Supplemental information supporting the transaction"; $ownerSchema->required = array( + 'TradingPartnerId', + 'DocumentId', + 'RecordType', + 'ReferenceQual', + 'ReferenceID', + 'Description', ); } } \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/Property01abfc.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/Property01abfc.php new file mode 100644 index 0000000..c0b598e --- /dev/null +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/Property01abfc.php @@ -0,0 +1,51 @@ +header = Header::schema(); + $ownerSchema->addPropertyMapping('Header', self::names()->header); + $properties->lineItems = LineItems::schema(); + $ownerSchema->addPropertyMapping('LineItems', self::names()->lineItems); + $properties->summary = Summary::schema(); + $ownerSchema->addPropertyMapping('Summary', self::names()->summary); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->schema = "http://json-schema.org/draft-07/schema#"; + $ownerSchema->title = "Generated schema for Root"; + $ownerSchema->required = array( + 'Header', + 'LineItems', + 'Summary', + ); + $ownerSchema->setFromRef('WarehouseInventoryAdjustmentAdvices.json#'); + } +} \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/Summary.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/Summary.php new file mode 100644 index 0000000..346ad39 --- /dev/null +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/Summary.php @@ -0,0 +1,74 @@ +tradingPartnerId = Schema::string(); + $ownerSchema->addPropertyMapping('TradingPartnerId', self::names()->tradingPartnerId); + $properties->documentId = Schema::string(); + $ownerSchema->addPropertyMapping('DocumentId', self::names()->documentId); + $properties->recordType = Schema::string(); + $ownerSchema->addPropertyMapping('RecordType', self::names()->recordType); + $properties->totalOrders = Schema::number(); + $ownerSchema->addPropertyMapping('TotalOrders', self::names()->totalOrders); + $properties->totalWeight = Schema::number(); + $ownerSchema->addPropertyMapping('TotalWeight', self::names()->totalWeight); + $properties->weightUOM = Schema::string(); + $ownerSchema->addPropertyMapping('WeightUOM', self::names()->weightUOM); + $properties->totalVolume = Schema::number(); + $ownerSchema->addPropertyMapping('TotalVolume', self::names()->totalVolume); + $properties->volumeUOM = Schema::string(); + $ownerSchema->addPropertyMapping('VolumeUOM', self::names()->volumeUOM); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->required = array( + 'TradingPartnerId', + 'DocumentId', + 'RecordType', + 'TotalOrders', + 'TotalWeight', + 'WeightUOM', + 'TotalVolume', + 'VolumeUOM', + ); + } +} \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdvice.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdvice.php deleted file mode 100644 index c3423c5..0000000 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdvice.php +++ /dev/null @@ -1,54 +0,0 @@ -meta = WarehouseInventoryAdjustmentAdviceMeta::schema(); - $ownerSchema->addPropertyMapping('Meta', self::names()->meta); - $properties->header = WarehouseInventoryAdjustmentAdviceHeader::schema(); - $ownerSchema->addPropertyMapping('Header', self::names()->header); - $properties->lineItems = WarehouseInventoryAdjustmentAdviceLineItems::schema(); - $ownerSchema->addPropertyMapping('LineItems', self::names()->lineItems); - $properties->summary = WarehouseInventoryAdjustmentAdviceSummary::schema(); - $ownerSchema->addPropertyMapping('Summary', self::names()->summary); - $ownerSchema->type = Schema::OBJECT; - $ownerSchema->additionalProperties = false; - $ownerSchema->description = "Provides inventory adjustment details from the warehouse"; - $ownerSchema->required = array( - 'Header', - ); - $ownerSchema->setFromRef('WarehouseInventoryAdjustmentAdvices.json#/definitions/WarehouseInventoryAdjustmentAdvice'); - } -} \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItems.php deleted file mode 100644 index 76ccdb6..0000000 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItems.php +++ /dev/null @@ -1,351 +0,0 @@ -addressTypeCode = Schema::string(); - $properties->addressTypeCode->enum = array( - self::CONST_88, - self::CONST_9_C, - self::AG, - self::BE, - self::BK, - self::BO, - self::BOWN, - self::BT, - self::BY, - self::CB, - self::CN, - self::CQ, - self::CS, - self::CT, - self::DA, - self::DE, - self::DS, - self::DV, - self::ESIID, - self::FR, - self::FW, - self::IA, - self::MF, - self::N1, - self::NES, - self::OB, - self::PATI, - self::PF, - self::PLCO, - self::POAR, - self::PODI, - self::POEN, - self::POOR, - self::PR, - self::PW, - self::RAMP, - self::RI, - self::RL, - self::RT, - self::SF, - self::SO, - self::ST, - self::TO, - self::TP, - self::TS, - self::VN, - self::WH, - self::Z7, - ); - $properties->addressTypeCode->description = "Code identifying an organizational entity, a physical location, property, or an individual"; - $ownerSchema->addPropertyMapping('AddressTypeCode', self::names()->addressTypeCode); - $properties->locationCodeQualifier = Schema::string(); - $properties->locationCodeQualifier->enum = array( - self::CONST_1, - self::CONST_10, - self::CONST_11, - self::CONST_15, - self::CONST_21, - self::CONST_33, - self::CONST_6, - self::CONST_9, - self::CONST_91, - self::CONST_92, - self::A1, - self::BE, - self::D, - self::K, - self::TPL, - self::UL, - ); - $properties->locationCodeQualifier->description = "Code identifying the structure or format of the related location number[s]"; - $ownerSchema->addPropertyMapping('LocationCodeQualifier', self::names()->locationCodeQualifier); - $properties->addressLocationNumber = Schema::string(); - $properties->addressLocationNumber->description = "Unique value assigned to identify a location"; - $ownerSchema->addPropertyMapping('AddressLocationNumber', self::names()->addressLocationNumber); - $properties->addressName = Schema::string(); - $properties->addressName->description = "Primary free-form textual description of a location"; - $ownerSchema->addPropertyMapping('AddressName', self::names()->addressName); - $properties->addressAlternateName = Schema::string(); - $properties->addressAlternateName->description = "Additional free-form description of a location"; - $ownerSchema->addPropertyMapping('AddressAlternateName', self::names()->addressAlternateName); - $properties->addressAlternateName2 = Schema::string(); - $properties->addressAlternateName2->description = "Additional free-form description of a location"; - $ownerSchema->addPropertyMapping('AddressAlternateName2', self::names()->addressAlternateName2); - $properties->address1 = Schema::string(); - $properties->address1->description = "Address information"; - $ownerSchema->addPropertyMapping('Address1', self::names()->address1); - $properties->address2 = Schema::string(); - $properties->address2->description = "Address information"; - $ownerSchema->addPropertyMapping('Address2', self::names()->address2); - $properties->address3 = Schema::string(); - $properties->address3->description = "Address information"; - $ownerSchema->addPropertyMapping('Address3', self::names()->address3); - $properties->address4 = Schema::string(); - $properties->address4->description = "Address information"; - $ownerSchema->addPropertyMapping('Address4', self::names()->address4); - $properties->city = Schema::string(); - $properties->city->description = "Free-form text for city name"; - $ownerSchema->addPropertyMapping('City', self::names()->city); - $properties->state = Schema::string(); - $properties->state->description = "Code[Standard State/Province] as defined by appropriate government agency"; - $ownerSchema->addPropertyMapping('State', self::names()->state); - $properties->postalCode = Schema::string(); - $properties->postalCode->description = "International postal zone excluding punctuation and blanks[Zip Code for United States]"; - $ownerSchema->addPropertyMapping('PostalCode', self::names()->postalCode); - $properties->country = Schema::string(); - $properties->country->description = "Human readable description identifying the country"; - $ownerSchema->addPropertyMapping('Country', self::names()->country); - $properties->locationID = Schema::string(); - $properties->locationID->description = "Provides further description to the address information. This can be either text or an ID"; - $ownerSchema->addPropertyMapping('LocationID', self::names()->locationID); - $properties->countrySubDivision = Schema::string(); - $properties->countrySubDivision->description = "An administrative division such as a subnational entity, constituent unit, or country subdivision"; - $ownerSchema->addPropertyMapping('CountrySubDivision', self::names()->countrySubDivision); - $properties->addressTaxIdNumber = Schema::string(); - $properties->addressTaxIdNumber->description = "Unique number assigned by the relevant tax authority to identify a party for use in relation to Value Added Tax[VAT]"; - $ownerSchema->addPropertyMapping('AddressTaxIdNumber', self::names()->addressTaxIdNumber); - $properties->addressTaxExemptNumber = Schema::string(); - $properties->addressTaxExemptNumber->description = "Unique tax exemption number assigned by the relevant tax authority to identify an entity or organization"; - $ownerSchema->addPropertyMapping('AddressTaxExemptNumber', self::names()->addressTaxExemptNumber); - $properties->contact = Schema::arr(); - $properties->contact->items = WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactItems::schema(); - $ownerSchema->addPropertyMapping('Contact', self::names()->contact); - $properties->reference = Schema::arr(); - $properties->reference->items = WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferenceItems::schema(); - $ownerSchema->addPropertyMapping('Reference', self::names()->reference); - $properties->date = Schema::arr(); - $properties->date->items = WarehouseInventoryAdjustmentAdviceHeaderAddressItemsDateItems::schema(); - $ownerSchema->addPropertyMapping('Date', self::names()->date); - $ownerSchema->type = Schema::OBJECT; - $ownerSchema->additionalProperties = false; - $ownerSchema->description = "Represent an entity such as an organizational, physical location, property, or individual"; - $ownerSchema->required = array( - ); - } -} \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactItems.php deleted file mode 100644 index d6e0d4b..0000000 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactItems.php +++ /dev/null @@ -1,120 +0,0 @@ -contactTypeCode = Schema::string(); - $properties->contactTypeCode->enum = array( - self::AL, - self::BD, - self::BI, - self::CH, - self::CR, - self::EX, - self::HM, - self::IC, - self::MRP, - self::OC, - self::RE, - self::SC, - self::SGN, - self::SR, - self::TIC, - ); - $properties->contactTypeCode->description = "Code identifying a type of contact"; - $ownerSchema->addPropertyMapping('ContactTypeCode', self::names()->contactTypeCode); - $properties->contactName = Schema::string(); - $properties->contactName->description = "Free-form name"; - $ownerSchema->addPropertyMapping('ContactName', self::names()->contactName); - $properties->primaryPhone = Schema::string(); - $properties->primaryPhone->description = "Phone number of contact listed"; - $ownerSchema->addPropertyMapping('PrimaryPhone', self::names()->primaryPhone); - $properties->primaryFax = Schema::string(); - $properties->primaryFax->description = "Fax number of contact listed"; - $ownerSchema->addPropertyMapping('PrimaryFax', self::names()->primaryFax); - $properties->primaryEmail = Schema::string(); - $properties->primaryEmail->description = "E-mail address for contact listed"; - $ownerSchema->addPropertyMapping('PrimaryEmail', self::names()->primaryEmail); - $properties->additionalContactDetails = Schema::arr(); - $properties->additionalContactDetails->items = WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactItemsAdditionalContactDetailsItems::schema(); - $ownerSchema->addPropertyMapping('AdditionalContactDetails', self::names()->additionalContactDetails); - $properties->contactReference = Schema::string(); - $properties->contactReference->description = "Additional field to clarify a contact"; - $ownerSchema->addPropertyMapping('ContactReference', self::names()->contactReference); - $ownerSchema->type = Schema::OBJECT; - $ownerSchema->additionalProperties = false; - $ownerSchema->description = "Provides contact information"; - $ownerSchema->required = array( - ); - } -} \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactItemsAdditionalContactDetailsItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactItemsAdditionalContactDetailsItems.php deleted file mode 100644 index 0cf4a50..0000000 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactItemsAdditionalContactDetailsItems.php +++ /dev/null @@ -1,69 +0,0 @@ -contactQual = Schema::string(); - $properties->contactQual->enum = array( - self::AU, - self::CP, - self::EX, - self::FT, - self::HP, - self::NP, - self::WP, - self::X4, - ); - $properties->contactQual->description = "Indicates the method of contact"; - $ownerSchema->addPropertyMapping('ContactQual', self::names()->contactQual); - $properties->contactID = Schema::string(); - $properties->contactID->description = "The value of the identified contact"; - $ownerSchema->addPropertyMapping('ContactID', self::names()->contactID); - $ownerSchema->type = Schema::OBJECT; - $ownerSchema->additionalProperties = false; - $ownerSchema->description = "This group should be used if the associated normalized fields already contain information."; - $ownerSchema->required = array( - ); - } -} \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsDateItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsDateItems.php deleted file mode 100644 index 44be187..0000000 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsDateItems.php +++ /dev/null @@ -1,57 +0,0 @@ -dateTimeQualifier = Schema::string(); - $properties->dateTimeQualifier->description = "Code specifying the type of date"; - $ownerSchema->addPropertyMapping('DateTimeQualifier', self::names()->dateTimeQualifier); - $properties->date = Schema::string(); - $properties->date->description = "A specific day"; - $properties->date->format = "date"; - $ownerSchema->addPropertyMapping('Date', self::names()->date); - $properties->time = Schema::string(); - $properties->time->description = "All standard XML formats are accepted."; - $properties->time->format = "time"; - $ownerSchema->addPropertyMapping('Time', self::names()->time); - $properties->dateTimePeriod = Schema::string(); - $properties->dateTimePeriod->description = "A date, time, or range of dates and times"; - $ownerSchema->addPropertyMapping('DateTimePeriod', self::names()->dateTimePeriod); - $ownerSchema->type = Schema::OBJECT; - $ownerSchema->additionalProperties = false; - $ownerSchema->description = "Provides date and time information"; - $ownerSchema->required = array( - ); - } -} \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderContactItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderContactItems.php deleted file mode 100644 index 15b59d7..0000000 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderContactItems.php +++ /dev/null @@ -1,120 +0,0 @@ -contactTypeCode = Schema::string(); - $properties->contactTypeCode->enum = array( - self::AL, - self::BD, - self::BI, - self::CH, - self::CR, - self::EX, - self::HM, - self::IC, - self::MRP, - self::OC, - self::RE, - self::SC, - self::SGN, - self::SR, - self::TIC, - ); - $properties->contactTypeCode->description = "Code identifying a type of contact"; - $ownerSchema->addPropertyMapping('ContactTypeCode', self::names()->contactTypeCode); - $properties->contactName = Schema::string(); - $properties->contactName->description = "Free-form name"; - $ownerSchema->addPropertyMapping('ContactName', self::names()->contactName); - $properties->primaryPhone = Schema::string(); - $properties->primaryPhone->description = "Phone number of contact listed"; - $ownerSchema->addPropertyMapping('PrimaryPhone', self::names()->primaryPhone); - $properties->primaryFax = Schema::string(); - $properties->primaryFax->description = "Fax number of contact listed"; - $ownerSchema->addPropertyMapping('PrimaryFax', self::names()->primaryFax); - $properties->primaryEmail = Schema::string(); - $properties->primaryEmail->description = "E-mail address for contact listed"; - $ownerSchema->addPropertyMapping('PrimaryEmail', self::names()->primaryEmail); - $properties->additionalContactDetails = Schema::arr(); - $properties->additionalContactDetails->items = WarehouseInventoryAdjustmentAdviceHeaderContactItemsAdditionalContactDetailsItems::schema(); - $ownerSchema->addPropertyMapping('AdditionalContactDetails', self::names()->additionalContactDetails); - $properties->contactReference = Schema::string(); - $properties->contactReference->description = "Additional field to clarify a contact"; - $ownerSchema->addPropertyMapping('ContactReference', self::names()->contactReference); - $ownerSchema->type = Schema::OBJECT; - $ownerSchema->additionalProperties = false; - $ownerSchema->description = "Provides contact information"; - $ownerSchema->required = array( - ); - } -} \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderContactItemsAdditionalContactDetailsItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderContactItemsAdditionalContactDetailsItems.php deleted file mode 100644 index 6182bfb..0000000 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderContactItemsAdditionalContactDetailsItems.php +++ /dev/null @@ -1,69 +0,0 @@ -contactQual = Schema::string(); - $properties->contactQual->enum = array( - self::AU, - self::CP, - self::EX, - self::FT, - self::HP, - self::NP, - self::WP, - self::X4, - ); - $properties->contactQual->description = "Indicates the method of contact"; - $ownerSchema->addPropertyMapping('ContactQual', self::names()->contactQual); - $properties->contactID = Schema::string(); - $properties->contactID->description = "The value of the identified contact"; - $ownerSchema->addPropertyMapping('ContactID', self::names()->contactID); - $ownerSchema->type = Schema::OBJECT; - $ownerSchema->additionalProperties = false; - $ownerSchema->description = "This group should be used if the associated normalized fields already contain information."; - $ownerSchema->required = array( - ); - } -} \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderDateItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderDateItems.php deleted file mode 100644 index 71bb6de..0000000 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderDateItems.php +++ /dev/null @@ -1,140 +0,0 @@ -dateTimeQualifier = Schema::string(); - $properties->dateTimeQualifier->enum = array( - self::CONST_001, - self::CONST_002, - self::CONST_007, - self::CONST_011, - self::CONST_017, - self::CONST_035, - self::CONST_036, - self::CONST_050, - self::CONST_067, - self::CONST_068, - self::CONST_097, - self::CONST_118, - self::CONST_196, - self::CONST_197, - self::CONST_328, - self::CONST_369, - self::CONST_370, - self::CONST_371, - self::CONST_372, - self::CONST_405, - self::CONST_510, - self::CONST_511, - self::CONST_636, - self::CONST_807, - self::CONST_945, - self::ACT, - self::TRM, - ); - $properties->dateTimeQualifier->description = "Code specifying the type of date"; - $ownerSchema->addPropertyMapping('DateTimeQualifier', self::names()->dateTimeQualifier); - $properties->date = Schema::string(); - $properties->date->description = "A specific day"; - $properties->date->format = "date"; - $ownerSchema->addPropertyMapping('Date', self::names()->date); - $properties->time = Schema::string(); - $properties->time->description = "All standard XML formats are accepted."; - $properties->time->format = "time"; - $ownerSchema->addPropertyMapping('Time', self::names()->time); - $properties->dateTimePeriod = Schema::string(); - $properties->dateTimePeriod->description = "A date, time, or range of dates and times"; - $ownerSchema->addPropertyMapping('DateTimePeriod', self::names()->dateTimePeriod); - $ownerSchema->type = Schema::OBJECT; - $ownerSchema->additionalProperties = false; - $ownerSchema->description = "Provides date and time information"; - $ownerSchema->required = array( - ); - } -} \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderHeaderOrder.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderHeaderOrder.php deleted file mode 100644 index 82e1ca7..0000000 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderHeaderOrder.php +++ /dev/null @@ -1,130 +0,0 @@ -tradingPartnerId = Schema::string(); - $properties->tradingPartnerId->description = "Unique internal identifier defined by SPS Commerce which identifies the relationship"; - $properties->tradingPartnerId->maxLength = 15; - $properties->tradingPartnerId->minLength = 1; - $ownerSchema->addPropertyMapping('TradingPartnerId', self::names()->tradingPartnerId); - $properties->documentId = Schema::string(); - $properties->documentId->description = "Unique internal identifier defined by SPS Commerce which identifies the document"; - $ownerSchema->addPropertyMapping('DocumentId', self::names()->documentId); - $properties->date1 = Schema::string(); - $properties->date1->description = "Date of the inventory adjustment"; - $properties->date1->format = "date"; - $ownerSchema->addPropertyMapping('Date1', self::names()->date1); - $properties->adjustmentNumber1 = Schema::string(); - $properties->adjustmentNumber1->description = "Primary adjustment number assigned to the inventory adjustment"; - $ownerSchema->addPropertyMapping('AdjustmentNumber1', self::names()->adjustmentNumber1); - $properties->adjustmentNumber2 = Schema::string(); - $properties->adjustmentNumber2->description = "Secondary adjustment number assigned to the inventory adjustment"; - $ownerSchema->addPropertyMapping('AdjustmentNumber2', self::names()->adjustmentNumber2); - $properties->tsetPurposeCode = Schema::string(); - $properties->tsetPurposeCode->enum = array( - self::CONST_00, - self::CONST_01, - self::CONST_05, - self::CONST_07, - ); - $properties->tsetPurposeCode->description = "Code indicating the purpose of the transaction set"; - $ownerSchema->addPropertyMapping('TsetPurposeCode', self::names()->tsetPurposeCode); - $properties->purchaseOrderNumber = Schema::string(); - $properties->purchaseOrderNumber->description = "Identifying number for a purchase order assigned by the orderer/buyer"; - $ownerSchema->addPropertyMapping('PurchaseOrderNumber', self::names()->purchaseOrderNumber); - $properties->transactionTypeCode = Schema::string(); - $properties->transactionTypeCode->enum = array( - self::CR, - self::DR, - ); - $properties->transactionTypeCode->description = "Code specifying the type of transaction"; - $ownerSchema->addPropertyMapping('TransactionTypeCode', self::names()->transactionTypeCode); - $properties->actionCode = Schema::string(); - $properties->actionCode->enum = array( - self::CONST_2, - self::CONST_4, - self::RH, - self::ST, - self::WQ, - ); - $properties->actionCode->description = "Code indicating the type of action"; - $ownerSchema->addPropertyMapping('ActionCode', self::names()->actionCode); - $ownerSchema->type = Schema::OBJECT; - $ownerSchema->additionalProperties = false; - $ownerSchema->description = "Contains the commonly used fields in the header of the transaction"; - $ownerSchema->required = array( - 'TradingPartnerId', - 'DocumentId', - 'Date1', - ); - } -} \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderNotesItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderNotesItems.php deleted file mode 100644 index a869ff7..0000000 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderNotesItems.php +++ /dev/null @@ -1,81 +0,0 @@ -noteCode = Schema::string(); - $properties->noteCode->enum = array( - self::CCG, - self::GEN, - self::GFT, - self::MKG, - self::PCK, - self::PRN, - self::RTN, - self::SHP, - self::SPE, - self::TPA, - ); - $properties->noteCode->description = "Code specifying the type of note"; - $ownerSchema->addPropertyMapping('NoteCode', self::names()->noteCode); - $properties->languageCode = Schema::string(); - $properties->languageCode->description = "Code designating the language used in text. ISO 639 language code"; - $ownerSchema->addPropertyMapping('LanguageCode', self::names()->languageCode); - $properties->noteInformationField = Schema::string(); - $properties->noteInformationField->description = "Free-form textual description of the note"; - $ownerSchema->addPropertyMapping('NoteInformationField', self::names()->noteInformationField); - $ownerSchema->type = Schema::OBJECT; - $ownerSchema->additionalProperties = false; - $ownerSchema->description = "Supplemental text for the transaction"; - $ownerSchema->required = array( - ); - } -} \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderReferenceItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderReferenceItems.php deleted file mode 100644 index babbe0f..0000000 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderReferenceItems.php +++ /dev/null @@ -1,150 +0,0 @@ -referenceQual = Schema::string(); - $properties->referenceQual->enum = array( - self::CONST_02, - self::CONST_06, - self::CONST_12, - self::CONST_19, - self::CONST_2_I, - self::AH, - self::AN, - self::AO, - self::BM, - self::BT, - self::BY, - self::CN, - self::CT, - self::_DO, - self::GS, - self::IL, - self::IN, - self::IT, - self::IV, - self::KW, - self::LO, - self::MK, - self::OC, - self::PD, - self::PK, - self::PO, - self::SE, - self::SI, - self::TN, - self::VN, - self::WH, - self::WLT, - self::WS, - ); - $properties->referenceQual->description = "Code specifying the type of data in the ReferenceID/ReferenceDescription"; - $ownerSchema->addPropertyMapping('ReferenceQual', self::names()->referenceQual); - $properties->referenceID = Schema::string(); - $properties->referenceID->description = "Value as defined by the ReferenceQual"; - $ownerSchema->addPropertyMapping('ReferenceID', self::names()->referenceID); - $properties->description = Schema::string(); - $properties->description->description = "Free-form textual description to clarify the related data elements and their content"; - $ownerSchema->addPropertyMapping('Description', self::names()->description); - $ownerSchema->type = Schema::OBJECT; - $ownerSchema->additionalProperties = false; - $ownerSchema->description = "Supplemental information supporting the transaction"; - $ownerSchema->required = array( - ); - } -} \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItems.php deleted file mode 100644 index f68954a..0000000 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItems.php +++ /dev/null @@ -1,345 +0,0 @@ -addressTypeCode = Schema::string(); - $properties->addressTypeCode->enum = array( - self::CONST_88, - self::CONST_9_C, - self::AG, - self::BE, - self::BK, - self::BO, - self::BOWN, - self::BT, - self::BY, - self::CB, - self::CN, - self::CQ, - self::CS, - self::CT, - self::DA, - self::DE, - self::DS, - self::DV, - self::ESIID, - self::FR, - self::FW, - self::IA, - self::MF, - self::N1, - self::NES, - self::OB, - self::PATI, - self::PF, - self::PLCO, - self::POAR, - self::PODI, - self::POEN, - self::POOR, - self::PR, - self::PW, - self::RAMP, - self::RI, - self::RL, - self::RT, - self::SF, - self::SO, - self::ST, - self::TO, - self::TP, - self::TS, - self::VN, - self::WH, - self::Z7, - ); - $properties->addressTypeCode->description = "Code identifying an organizational entity, a physical location, property, or an individual"; - $ownerSchema->addPropertyMapping('AddressTypeCode', self::names()->addressTypeCode); - $properties->locationCodeQualifier = Schema::string(); - $properties->locationCodeQualifier->enum = array( - self::CONST_1, - self::CONST_10, - self::CONST_11, - self::CONST_15, - self::CONST_21, - self::CONST_33, - self::CONST_6, - self::CONST_9, - self::CONST_91, - self::CONST_92, - self::A1, - self::BE, - self::D, - self::K, - self::TPL, - self::UL, - ); - $properties->locationCodeQualifier->description = "Code identifying the structure or format of the related location number[s]"; - $ownerSchema->addPropertyMapping('LocationCodeQualifier', self::names()->locationCodeQualifier); - $properties->addressLocationNumber = Schema::string(); - $properties->addressLocationNumber->description = "Unique value assigned to identify a location"; - $ownerSchema->addPropertyMapping('AddressLocationNumber', self::names()->addressLocationNumber); - $properties->addressName = Schema::string(); - $properties->addressName->description = "Primary free-form textual description of a location"; - $ownerSchema->addPropertyMapping('AddressName', self::names()->addressName); - $properties->addressAlternateName = Schema::string(); - $properties->addressAlternateName->description = "Additional free-form description of a location"; - $ownerSchema->addPropertyMapping('AddressAlternateName', self::names()->addressAlternateName); - $properties->addressAlternateName2 = Schema::string(); - $properties->addressAlternateName2->description = "Additional free-form description of a location"; - $ownerSchema->addPropertyMapping('AddressAlternateName2', self::names()->addressAlternateName2); - $properties->address1 = Schema::string(); - $properties->address1->description = "Address information"; - $ownerSchema->addPropertyMapping('Address1', self::names()->address1); - $properties->address2 = Schema::string(); - $properties->address2->description = "Address information"; - $ownerSchema->addPropertyMapping('Address2', self::names()->address2); - $properties->address3 = Schema::string(); - $properties->address3->description = "Address information"; - $ownerSchema->addPropertyMapping('Address3', self::names()->address3); - $properties->address4 = Schema::string(); - $properties->address4->description = "Address information"; - $ownerSchema->addPropertyMapping('Address4', self::names()->address4); - $properties->city = Schema::string(); - $properties->city->description = "Free-form text for city name"; - $ownerSchema->addPropertyMapping('City', self::names()->city); - $properties->state = Schema::string(); - $properties->state->description = "Code[Standard State/Province] as defined by appropriate government agency"; - $ownerSchema->addPropertyMapping('State', self::names()->state); - $properties->postalCode = Schema::string(); - $properties->postalCode->description = "International postal zone excluding punctuation and blanks[Zip Code for United States]"; - $ownerSchema->addPropertyMapping('PostalCode', self::names()->postalCode); - $properties->country = Schema::string(); - $properties->country->description = "Human readable description identifying the country"; - $ownerSchema->addPropertyMapping('Country', self::names()->country); - $properties->locationID = Schema::string(); - $properties->locationID->description = "Provides further description to the address information. This can be either text or an ID"; - $ownerSchema->addPropertyMapping('LocationID', self::names()->locationID); - $properties->countrySubDivision = Schema::string(); - $properties->countrySubDivision->description = "An administrative division such as a subnational entity, constituent unit, or country subdivision"; - $ownerSchema->addPropertyMapping('CountrySubDivision', self::names()->countrySubDivision); - $properties->addressTaxIdNumber = Schema::string(); - $properties->addressTaxIdNumber->description = "Unique number assigned by the relevant tax authority to identify a party for use in relation to Value Added Tax[VAT]"; - $ownerSchema->addPropertyMapping('AddressTaxIdNumber', self::names()->addressTaxIdNumber); - $properties->addressTaxExemptNumber = Schema::string(); - $properties->addressTaxExemptNumber->description = "Unique tax exemption number assigned by the relevant tax authority to identify an entity or organization"; - $ownerSchema->addPropertyMapping('AddressTaxExemptNumber', self::names()->addressTaxExemptNumber); - $properties->reference = Schema::arr(); - $properties->reference->items = WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferenceItems::schema(); - $ownerSchema->addPropertyMapping('Reference', self::names()->reference); - $properties->date = Schema::arr(); - $properties->date->items = WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsDateItems::schema(); - $ownerSchema->addPropertyMapping('Date', self::names()->date); - $ownerSchema->type = Schema::OBJECT; - $ownerSchema->additionalProperties = false; - $ownerSchema->description = "Represent an entity such as an organizational, physical location, property, or individual"; - $ownerSchema->required = array( - ); - } -} \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsDateItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsDateItems.php deleted file mode 100644 index ed0b815..0000000 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsDateItems.php +++ /dev/null @@ -1,57 +0,0 @@ -dateTimeQualifier = Schema::string(); - $properties->dateTimeQualifier->description = "Code specifying the type of date"; - $ownerSchema->addPropertyMapping('DateTimeQualifier', self::names()->dateTimeQualifier); - $properties->date = Schema::string(); - $properties->date->description = "A specific day"; - $properties->date->format = "date"; - $ownerSchema->addPropertyMapping('Date', self::names()->date); - $properties->time = Schema::string(); - $properties->time->description = "All standard XML formats are accepted."; - $properties->time->format = "time"; - $ownerSchema->addPropertyMapping('Time', self::names()->time); - $properties->dateTimePeriod = Schema::string(); - $properties->dateTimePeriod->description = "A date, time, or range of dates and times"; - $ownerSchema->addPropertyMapping('DateTimePeriod', self::names()->dateTimePeriod); - $ownerSchema->type = Schema::OBJECT; - $ownerSchema->additionalProperties = false; - $ownerSchema->description = "Provides date and time information"; - $ownerSchema->required = array( - ); - } -} \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsDateItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsDateItems.php deleted file mode 100644 index 8c2d4db..0000000 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsDateItems.php +++ /dev/null @@ -1,140 +0,0 @@ -dateTimeQualifier = Schema::string(); - $properties->dateTimeQualifier->enum = array( - self::CONST_001, - self::CONST_002, - self::CONST_007, - self::CONST_011, - self::CONST_017, - self::CONST_035, - self::CONST_036, - self::CONST_050, - self::CONST_067, - self::CONST_068, - self::CONST_097, - self::CONST_118, - self::CONST_196, - self::CONST_197, - self::CONST_328, - self::CONST_369, - self::CONST_370, - self::CONST_371, - self::CONST_372, - self::CONST_405, - self::CONST_510, - self::CONST_511, - self::CONST_636, - self::CONST_807, - self::CONST_945, - self::ACT, - self::TRM, - ); - $properties->dateTimeQualifier->description = "Code specifying the type of date"; - $ownerSchema->addPropertyMapping('DateTimeQualifier', self::names()->dateTimeQualifier); - $properties->date = Schema::string(); - $properties->date->description = "A specific day"; - $properties->date->format = "date"; - $ownerSchema->addPropertyMapping('Date', self::names()->date); - $properties->time = Schema::string(); - $properties->time->description = "All standard XML formats are accepted."; - $properties->time->format = "time"; - $ownerSchema->addPropertyMapping('Time', self::names()->time); - $properties->dateTimePeriod = Schema::string(); - $properties->dateTimePeriod->description = "A date, time, or range of dates and times"; - $ownerSchema->addPropertyMapping('DateTimePeriod', self::names()->dateTimePeriod); - $ownerSchema->type = Schema::OBJECT; - $ownerSchema->additionalProperties = false; - $ownerSchema->description = "Provides date and time information"; - $ownerSchema->required = array( - ); - } -} \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsItemDetail.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsItemDetail.php deleted file mode 100644 index 4d842bd..0000000 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsItemDetail.php +++ /dev/null @@ -1,547 +0,0 @@ -lineSequenceNumber = Schema::string(); - $properties->lineSequenceNumber->description = "For an initiated document, this is a unique number for the line item[s]. For a return transaction, this number should be the same as what was received from the source transaction."; - $ownerSchema->addPropertyMapping('LineSequenceNumber', self::names()->lineSequenceNumber); - $properties->applicationId = Schema::string(); - $properties->applicationId->description = "ERP generated code to uniquely identify the item"; - $ownerSchema->addPropertyMapping('ApplicationId', self::names()->applicationId); - $properties->buyerPartNumber = Schema::string(); - $properties->buyerPartNumber->description = "Buyer's primary product identifier"; - $ownerSchema->addPropertyMapping('BuyerPartNumber', self::names()->buyerPartNumber); - $properties->vendorPartNumber = Schema::string(); - $properties->vendorPartNumber->description = "Vendor's primary product identifier"; - $ownerSchema->addPropertyMapping('VendorPartNumber', self::names()->vendorPartNumber); - $properties->consumerPackageCode = Schema::string(); - $properties->consumerPackageCode->description = "Consumer level or customer unit product identification number"; - $ownerSchema->addPropertyMapping('ConsumerPackageCode', self::names()->consumerPackageCode); - $properties->gTIN = Schema::string(); - $properties->gTIN->description = "Global Trade Item Number which is an item identifier that encompasses all product identification numbers such as UPC, EAN, ITF, etc. and can be assigned at various packing levels"; - $ownerSchema->addPropertyMapping('GTIN', self::names()->gTIN); - $properties->uPCCaseCode = Schema::string(); - $properties->uPCCaseCode->description = "Package or case level product identification number"; - $ownerSchema->addPropertyMapping('UPCCaseCode', self::names()->uPCCaseCode); - $properties->natlDrugCode = Schema::string(); - $properties->natlDrugCode->description = "National Drug Code or NDC is a unique, universal product identifier for drugs. Primarily used in the pharmaceutical industry"; - $ownerSchema->addPropertyMapping('NatlDrugCode', self::names()->natlDrugCode); - $properties->partNumberQualifier1 = Schema::string(); - $properties->partNumberQualifier1->enum = array( - self::AR, - self::B8, - self::BO, - self::CB, - self::IS, - self::IT, - self::MF, - self::MG, - self::MN, - self::SE, - self::SK, - self::UP, - self::VP, - ); - $properties->partNumberQualifier1->description = "Qualifier describing the additional product identification number"; - $ownerSchema->addPropertyMapping('PartNumberQualifier1', self::names()->partNumberQualifier1); - $properties->partNumber1 = Schema::string(); - $properties->partNumber1->description = "Additional product identification number as described by the PartNumberQualifier1"; - $ownerSchema->addPropertyMapping('PartNumber1', self::names()->partNumber1); - $properties->partNumberQualifier2 = Schema::string(); - $properties->partNumberQualifier2->enum = array( - self::AR, - self::B8, - self::BO, - self::CB, - self::IS, - self::IT, - self::MF, - self::MG, - self::MN, - self::SE, - self::SK, - self::UP, - self::VP, - ); - $properties->partNumberQualifier2->description = "Qualifier describing the additional product identification number"; - $ownerSchema->addPropertyMapping('PartNumberQualifier2', self::names()->partNumberQualifier2); - $properties->partNumber2 = Schema::string(); - $properties->partNumber2->description = "Additional product identification number as described by the PartNumberQualifier2"; - $ownerSchema->addPropertyMapping('PartNumber2', self::names()->partNumber2); - $properties->partNumberQualifier3 = Schema::string(); - $properties->partNumberQualifier3->enum = array( - self::AR, - self::B8, - self::BO, - self::CB, - self::IS, - self::IT, - self::MF, - self::MG, - self::MN, - self::SE, - self::SK, - self::UP, - self::VP, - ); - $properties->partNumberQualifier3->description = "Qualifier describing the additional product identification number"; - $ownerSchema->addPropertyMapping('PartNumberQualifier3', self::names()->partNumberQualifier3); - $properties->partNumber3 = Schema::string(); - $properties->partNumber3->description = "Additional product identification number as described by the PartNumberQualifier3"; - $ownerSchema->addPropertyMapping('PartNumber3', self::names()->partNumber3); - $properties->partNumberQualifier4 = Schema::string(); - $properties->partNumberQualifier4->enum = array( - self::AR, - self::B8, - self::BO, - self::CB, - self::IS, - self::IT, - self::MF, - self::MG, - self::MN, - self::SE, - self::SK, - self::UP, - self::VP, - ); - $properties->partNumberQualifier4->description = "Qualifier describing the additional product identification number"; - $ownerSchema->addPropertyMapping('PartNumberQualifier4', self::names()->partNumberQualifier4); - $properties->partNumber4 = Schema::string(); - $properties->partNumber4->description = "Additional product identification number as described by the PartNumberQualifier4"; - $ownerSchema->addPropertyMapping('PartNumber4', self::names()->partNumber4); - $properties->partDescription1 = Schema::string(); - $properties->partDescription1->description = "Product description of the item"; - $ownerSchema->addPropertyMapping('PartDescription1', self::names()->partDescription1); - $properties->partDescription2 = Schema::string(); - $properties->partDescription2->description = "Additional product description of the item"; - $ownerSchema->addPropertyMapping('PartDescription2', self::names()->partDescription2); - $properties->adjReasonCode = Schema::string(); - $properties->adjReasonCode->enum = array( - self::CONST_03, - self::CONST_04, - self::CONST_05, - self::CONST_06, - self::CONST_07, - self::CONST_08, - self::CONST_51, - self::CONST_52, - self::CONST_53, - self::CONST_54, - self::CONST_55, - self::CONST_56, - self::CONST_88, - self::AA, - self::AB, - self::AC, - self::AD, - self::AE, - self::AF, - self::AG, - self::AH, - self::AI, - self::AJ, - self::AK, - self::AL, - self::AM, - self::AN, - self::AP, - self::AQ, - self::AR, - self::_AS, - self::AT, - self::AU, - self::AV, - self::AW, - self::AX, - self::AY, - self::BA, - self::BD, - self::BK, - self::BM, - self::BN, - self::BR, - self::BS, - self::BT, - self::CD, - self::CO, - self::CR, - self::CS, - self::PC, - self::TC, - self::UD, - ); - $properties->adjReasonCode->description = "Code indicating the reason for the inventory adjustment"; - $ownerSchema->addPropertyMapping('AdjReasonCode', self::names()->adjReasonCode); - $properties->qtyAdjusted = Schema::number(); - $properties->qtyAdjusted->description = "Quantity of the item being adjusted"; - $ownerSchema->addPropertyMapping('QtyAdjusted', self::names()->qtyAdjusted); - $properties->qtyAdjustedUOM = Schema::string(); - $properties->qtyAdjustedUOM->enum = array( - self::BG, - self::BX, - self::CA, - self::CT, - self::DZ, - self::EA, - self::FT, - self::GA, - self::KG, - self::LB, - self::LT, - self::OZ, - self::PC, - self::PK, - self::RL, - self::SF, - self::YD, - ); - $properties->qtyAdjustedUOM->description = "Unit of measure for the adjusted quantity"; - $ownerSchema->addPropertyMapping('QtyAdjustedUOM', self::names()->qtyAdjustedUOM); - $properties->warehouseLotID = Schema::string(); - $properties->warehouseLotID->description = "Warehouse lot identification number"; - $ownerSchema->addPropertyMapping('WarehouseLotID', self::names()->warehouseLotID); - $properties->weight1 = Schema::number(); - $properties->weight1->description = "Numeric value of weight"; - $ownerSchema->addPropertyMapping('Weight1', self::names()->weight1); - $properties->weightQualifier1 = Schema::string(); - $properties->weightQualifier1->enum = array( - self::G, - self::N, - ); - $properties->weightQualifier1->description = "Code qualifying the weight"; - $ownerSchema->addPropertyMapping('WeightQualifier1', self::names()->weightQualifier1); - $properties->weightUOM1 = Schema::string(); - $properties->weightUOM1->enum = array( - self::CONST_01, - self::GR, - self::KG, - self::LB, - self::OZ, - self::TO, - ); - $properties->weightUOM1->description = "Unit of measure for weight"; - $ownerSchema->addPropertyMapping('WeightUOM1', self::names()->weightUOM1); - $properties->weight2 = Schema::number(); - $properties->weight2->description = "Numeric value of weight"; - $ownerSchema->addPropertyMapping('Weight2', self::names()->weight2); - $properties->weightQualifier2 = Schema::string(); - $properties->weightQualifier2->enum = array( - self::G, - self::N, - ); - $properties->weightQualifier2->description = "Code qualifying the weight"; - $ownerSchema->addPropertyMapping('WeightQualifier2', self::names()->weightQualifier2); - $properties->weightUOM2 = Schema::string(); - $properties->weightUOM2->enum = array( - self::CONST_01, - self::GR, - self::KG, - self::LB, - self::OZ, - self::TO, - ); - $properties->weightUOM2->description = "Unit of measure for weight"; - $ownerSchema->addPropertyMapping('WeightUOM2', self::names()->weightUOM2); - $properties->inventoryTransaction = Schema::string(); - $properties->inventoryTransaction->enum = array( - self::AD, - self::TF, - ); - $properties->inventoryTransaction->description = "Code indicating the type of inventory transaction"; - $ownerSchema->addPropertyMapping('InventoryTransaction', self::names()->inventoryTransaction); - $properties->extendedItemTotal = Schema::number(); - $properties->extendedItemTotal->description = "Dollar amount of the extended item total"; - $ownerSchema->addPropertyMapping('ExtendedItemTotal', self::names()->extendedItemTotal); - $ownerSchema->type = Schema::OBJECT; - $ownerSchema->additionalProperties = false; - $ownerSchema->description = "Contains the commonly used fields in the line item level of the transaction"; - $ownerSchema->required = array( - 'AdjReasonCode', - 'QtyAdjusted', - 'QtyAdjustedUOM', - ); - } -} \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsReferenceItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsReferenceItems.php deleted file mode 100644 index a4beebd..0000000 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsReferenceItems.php +++ /dev/null @@ -1,150 +0,0 @@ -referenceQual = Schema::string(); - $properties->referenceQual->enum = array( - self::CONST_02, - self::CONST_06, - self::CONST_12, - self::CONST_19, - self::CONST_2_I, - self::AH, - self::AN, - self::AO, - self::BM, - self::BT, - self::BY, - self::CN, - self::CT, - self::_DO, - self::GS, - self::IL, - self::IN, - self::IT, - self::IV, - self::KW, - self::LO, - self::MK, - self::OC, - self::PD, - self::PK, - self::PO, - self::SE, - self::SI, - self::TN, - self::VN, - self::WH, - self::WLT, - self::WS, - ); - $properties->referenceQual->description = "Code specifying the type of data in the ReferenceID/ReferenceDescription"; - $ownerSchema->addPropertyMapping('ReferenceQual', self::names()->referenceQual); - $properties->referenceID = Schema::string(); - $properties->referenceID->description = "Value as defined by the ReferenceQual"; - $ownerSchema->addPropertyMapping('ReferenceID', self::names()->referenceID); - $properties->description = Schema::string(); - $properties->description->description = "Free-form textual description to clarify the related data elements and their content"; - $ownerSchema->addPropertyMapping('Description', self::names()->description); - $ownerSchema->type = Schema::OBJECT; - $ownerSchema->additionalProperties = false; - $ownerSchema->description = "Supplemental information supporting the transaction"; - $ownerSchema->required = array( - ); - } -} \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceMeta.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceMeta.php deleted file mode 100644 index 0a2ff24..0000000 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceMeta.php +++ /dev/null @@ -1,187 +0,0 @@ -senderUniqueID = Schema::string(); - $ownerSchema->addPropertyMapping('SenderUniqueID', self::names()->senderUniqueID); - $properties->senderCompanyName = Schema::string(); - $ownerSchema->addPropertyMapping('SenderCompanyName', self::names()->senderCompanyName); - $properties->receiverUniqueID = Schema::string(); - $ownerSchema->addPropertyMapping('ReceiverUniqueID', self::names()->receiverUniqueID); - $properties->receiverCompanyName = Schema::string(); - $ownerSchema->addPropertyMapping('ReceiverCompanyName', self::names()->receiverCompanyName); - $properties->isDropShip = Schema::boolean(); - $ownerSchema->addPropertyMapping('IsDropShip', self::names()->isDropShip); - $properties->interchangeControlNumber = Schema::string(); - $ownerSchema->addPropertyMapping('InterchangeControlNumber', self::names()->interchangeControlNumber); - $properties->groupControlIdentifier = Schema::string(); - $ownerSchema->addPropertyMapping('GroupControlIdentifier', self::names()->groupControlIdentifier); - $properties->groupControlNumber = Schema::string(); - $ownerSchema->addPropertyMapping('GroupControlNumber', self::names()->groupControlNumber); - $properties->documentControlIdentifier = Schema::string(); - $ownerSchema->addPropertyMapping('DocumentControlIdentifier', self::names()->documentControlIdentifier); - $properties->documentControlNumber = Schema::string(); - $ownerSchema->addPropertyMapping('DocumentControlNumber', self::names()->documentControlNumber); - $properties->interchangeSenderID = Schema::string(); - $ownerSchema->addPropertyMapping('InterchangeSenderID', self::names()->interchangeSenderID); - $properties->interchangeReceiverID = Schema::string(); - $ownerSchema->addPropertyMapping('InterchangeReceiverID', self::names()->interchangeReceiverID); - $properties->groupSenderID = Schema::string(); - $ownerSchema->addPropertyMapping('GroupSenderID', self::names()->groupSenderID); - $properties->groupReceiverID = Schema::string(); - $ownerSchema->addPropertyMapping('GroupReceiverID', self::names()->groupReceiverID); - $properties->batchPart = Schema::string(); - $ownerSchema->addPropertyMapping('BatchPart', self::names()->batchPart); - $properties->batchTotal = Schema::integer(); - $ownerSchema->addPropertyMapping('BatchTotal', self::names()->batchTotal); - $properties->batchID = Schema::string(); - $ownerSchema->addPropertyMapping('BatchID', self::names()->batchID); - $properties->comments = Schema::string(); - $ownerSchema->addPropertyMapping('Comments', self::names()->comments); - $properties->validation = Schema::string(); - $ownerSchema->addPropertyMapping('Validation', self::names()->validation); - $properties->orderManagement = Schema::string(); - $properties->orderManagement->enum = array( - self::BULK_IMPORT, - self::CROSS_DOCK, - self::DROP_SHIP, - self::INVENTORY_ADVICE, - self::ITEM_MANAGEMENT_SERVICE, - self::LOGISTICS_MANAGEMENT, - self::MULTI_STORE, - self::NONE, - self::PLANNING_SCHEDULE_RELEASE, - self::PRODUCT_ACTIVITY_REPORT, - self::SALES_OR_PRICE_CATALOG, - self::SMALL_PACKAGE, - self::STOCK_RELEASE, - self::STOCK_TRANSFER, - self::TRUCKLOAD_LTL, - self::WAREHOUSE_INVENTORY_ADJUSTMENT, - ); - $ownerSchema->addPropertyMapping('OrderManagement', self::names()->orderManagement); - $properties->version = Schema::string(); - $properties->version->description = "XML Version number"; - $ownerSchema->addPropertyMapping('Version', self::names()->version); - $ownerSchema->type = Schema::OBJECT; - $ownerSchema->additionalProperties = false; - $ownerSchema->description = "Information used for internal purposes at SPS Commerce"; - $ownerSchema->required = array( - ); - } -} \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceSummary.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceSummary.php deleted file mode 100644 index 5ffeddb..0000000 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceSummary.php +++ /dev/null @@ -1,101 +0,0 @@ -totalOrders = Schema::number(); - $properties->totalOrders->description = "Total number of line items in the transaction"; - $ownerSchema->addPropertyMapping('TotalOrders', self::names()->totalOrders); - $properties->totalWeight = Schema::number(); - $properties->totalWeight->description = "Total weight of all items in the transaction"; - $ownerSchema->addPropertyMapping('TotalWeight', self::names()->totalWeight); - $properties->weightUOM = Schema::string(); - $properties->weightUOM->enum = array( - self::CONST_01, - self::GR, - self::KG, - self::LB, - self::OZ, - self::TO, - ); - $properties->weightUOM->description = "Unit of measure for the total weight"; - $ownerSchema->addPropertyMapping('WeightUOM', self::names()->weightUOM); - $properties->totalVolume = Schema::number(); - $properties->totalVolume->description = "Total volume of all items in the transaction"; - $ownerSchema->addPropertyMapping('TotalVolume', self::names()->totalVolume); - $properties->volumeUOM = Schema::string(); - $properties->volumeUOM->enum = array( - self::CF, - self::CI, - self::CR, - self::GA, - self::LT, - self::ML, - ); - $properties->volumeUOM->description = "Unit of measure for the total volume"; - $ownerSchema->addPropertyMapping('VolumeUOM', self::names()->volumeUOM); - $ownerSchema->type = Schema::OBJECT; - $ownerSchema->additionalProperties = false; - $ownerSchema->description = "Encloses all document summary elements"; - $ownerSchema->required = array( - ); - } -} \ No newline at end of file From 2defffc6958f8d2874fbe9e4d20f5bab841b7c21 Mon Sep 17 00:00:00 2001 From: Rob Wigginton <8102829+bob2021@users.noreply.github.com> Date: Tue, 31 Mar 2026 12:55:42 +0100 Subject: [PATCH 4/7] Enhance 947 json schema with data from xsd schema. --- .../WarehouseInventoryAdjustmentAdvices.json | 849 +++++++++++++----- .../Header.php | 10 +- .../HeaderAddressItems.php | 63 +- .../HeaderAddressItemsContactItems.php | 79 ++ .../HeaderAddressItemsDateItems.php | 82 ++ ...ressItemsReferenceIdentificationsItems.php | 111 +++ .../HeaderAddressItemsReferenceItems.php | 61 ++ .../HeaderContactItems.php | 15 +- .../HeaderDateItems.php | 20 +- .../HeaderHeaderOrder.php | 10 +- .../HeaderMiscellaneousItems.php | 16 +- .../HeaderNotesItems.php | 47 +- .../HeaderReferenceItems.php | 15 +- .../LineItemsLineItemItems.php | 8 +- .../LineItemsLineItemItemsAddressItems.php | 63 +- ...sLineItemItemsAddressItemsContactItems.php | 79 ++ ...temsLineItemItemsAddressItemsDateItems.php | 82 ++ ...ressItemsReferenceIdentificationsItems.php | 111 +++ ...ineItemItemsAddressItemsReferenceItems.php | 61 ++ .../LineItemsLineItemItemsDateItems.php | 20 +- .../LineItemsLineItemItemsItemDetail.php | 101 ++- ...neItemsLineItemItemsMiscellaneousItems.php | 16 +- .../LineItemsLineItemItemsReferenceItems.php | 15 +- .../Meta.php | 146 +++ .../Property01abfc.php | 9 +- .../Summary.php | 17 +- 26 files changed, 1740 insertions(+), 366 deletions(-) create mode 100644 src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItemsContactItems.php create mode 100644 src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItemsDateItems.php create mode 100644 src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItemsReferenceIdentificationsItems.php create mode 100644 src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItemsReferenceItems.php create mode 100644 src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItemsContactItems.php create mode 100644 src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItemsDateItems.php create mode 100644 src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItemsReferenceIdentificationsItems.php create mode 100644 src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItemsReferenceItems.php create mode 100644 src/RSX/v710/WarehouseInventoryAdjustmentAdvices/Meta.php diff --git a/json-schema/v710/WarehouseInventoryAdjustmentAdvices.json b/json-schema/v710/WarehouseInventoryAdjustmentAdvices.json index ce4ad1e..7886261 100644 --- a/json-schema/v710/WarehouseInventoryAdjustmentAdvices.json +++ b/json-schema/v710/WarehouseInventoryAdjustmentAdvices.json @@ -1,8 +1,87 @@ { "$schema": "http://json-schema.org/draft-07/schema#", - "title": "Generated schema for Root", + "title": "WarehouseInventoryAdjustmentAdvice", "type": "object", "properties": { + "Meta": { + "type": "object", + "properties": { + "TradingPartnerId": { + "type": "string" + }, + "DocumentId": { + "type": "string", + "maxLength": 30 + }, + "PurchaseOrderNumber": { + "type": "string", + "maxLength": 30 + }, + "RecordType": { + "type": "string" + }, + "SenderUniqueID": { + "type": "integer" + }, + "SenderCompanyName": { + "type": "string" + }, + "ReceiverUniqueID": { + "type": "integer" + }, + "ReceiverCompanyName": { + "type": "string" + }, + "IsDropShip": { + "type": "boolean" + }, + "InterchangeControlNumber": { + "type": "string" + }, + "GroupControlIdentifier": { + "type": "string" + }, + "GroupControlNumber": { + "type": "string" + }, + "DocumentControlIdentifier": { + "type": "string" + }, + "DocumentControlNumber": { + "type": "string" + }, + "InterchangeSenderID": { + "type": "string" + }, + "InterchangeReceiverID": { + "type": "string" + }, + "GroupSenderID": { + "type": "string" + }, + "GroupReceiverID": { + "type": "string" + }, + "BatchPart": { + "type": "integer" + }, + "BatchTotal": { + "type": "integer" + }, + "BatchID": { + "type": "string" + }, + "Comments": { + "type": "string" + }, + "Validation": { + "type": "string" + }, + "OrderManagement": { + "type": "string" + } + } + }, "Header": { "type": "object", "properties": { @@ -13,13 +92,15 @@ "type": "string" }, "DocumentId": { - "type": "string" + "type": "string", + "maxLength": 30 }, "RecordType": { "type": "string" }, "Date1": { - "type": "string" + "type": "string", + "format": "date" }, "AdjustmentNumber1": { "type": "string" @@ -31,7 +112,8 @@ "type": "string" }, "PurchaseOrderNumber": { - "type": "string" + "type": "string", + "maxLength": 30 }, "TransactionTypeCode": { "type": "string" @@ -43,14 +125,7 @@ "required": [ "TradingPartnerId", "DocumentId", - "RecordType", - "Date1", - "AdjustmentNumber1", - "AdjustmentNumber2", - "TsetPurposeCode", - "PurchaseOrderNumber", - "TransactionTypeCode", - "ActionCode" + "Date1" ] }, "Reference": { @@ -62,7 +137,12 @@ "type": "string" }, "DocumentId": { - "type": "string" + "type": "string", + "maxLength": 30 + }, + "PurchaseOrderNumber": { + "type": "string", + "maxLength": 30 }, "RecordType": { "type": "string" @@ -76,16 +156,9 @@ "Description": { "type": "string" } - }, - "required": [ - "TradingPartnerId", - "DocumentId", - "RecordType", - "ReferenceQual", - "ReferenceID", - "Description" - ] - } + } + }, + "maxItems": 10 }, "Date": { "type": "array", @@ -96,7 +169,12 @@ "type": "string" }, "DocumentId": { - "type": "string" + "type": "string", + "maxLength": 30 + }, + "PurchaseOrderNumber": { + "type": "string", + "maxLength": 30 }, "RecordType": { "type": "string" @@ -105,29 +183,29 @@ "type": "string" }, "Date1": { - "type": "string" + "type": "string", + "format": "date" }, "Time1": { - "type": "string" + "type": "string", + "format": "time" }, "TimeCode1": { "type": "string" }, "DateTimeFormQualifier1": { "type": "string" + }, + "DateTimePeriod": { + "type": "string" } }, "required": [ - "TradingPartnerId", - "DocumentId", - "RecordType", "DateTimeQualifier1", - "Date1", - "Time1", - "TimeCode1", - "DateTimeFormQualifier1" + "Date1" ] - } + }, + "maxItems": 5 }, "Contact": { "type": "array", @@ -138,7 +216,12 @@ "type": "string" }, "DocumentId": { - "type": "string" + "type": "string", + "maxLength": 30 + }, + "PurchaseOrderNumber": { + "type": "string", + "maxLength": 30 }, "RecordType": { "type": "string" @@ -163,17 +246,10 @@ } }, "required": [ - "TradingPartnerId", - "DocumentId", - "RecordType", - "ContactTypeCode", - "ContactName", - "ContactPhone", - "ContactFax", - "ContactEmail", - "ContactReference" + "ContactTypeCode" ] - } + }, + "maxItems": 3 }, "Address": { "type": "array", @@ -184,7 +260,12 @@ "type": "string" }, "DocumentId": { - "type": "string" + "type": "string", + "maxLength": 30 + }, + "PurchaseOrderNumber": { + "type": "string", + "maxLength": 30 }, "RecordType": { "type": "string" @@ -228,6 +309,12 @@ "Country": { "type": "string" }, + "LocationID": { + "type": "string" + }, + "CountrySubDivision": { + "type": "string" + }, "ContactName": { "type": "string" }, @@ -248,34 +335,196 @@ }, "AddressAlternateName2": { "type": "string" + }, + "ReferenceIdentifications": { + "type": "array", + "items": { + "type": "object", + "properties": { + "TradingPartnerId": { + "type": "string" + }, + "DocumentId": { + "type": "string", + "maxLength": 30 + }, + "PurchaseOrderNumber": { + "type": "string", + "maxLength": 30 + }, + "RecordType": { + "type": "string" + }, + "ReferenceQual1": { + "type": "string" + }, + "ReferenceID1": { + "type": "string" + }, + "Description": { + "type": "string" + }, + "Date1": { + "type": "string", + "format": "date" + }, + "Time1": { + "type": "string", + "format": "time" + }, + "TimeCode1": { + "type": "string" + }, + "ReferenceQual2": { + "type": "string" + }, + "ReferenceID2": { + "type": "string" + }, + "ReferenceQual3": { + "type": "string" + }, + "ReferenceID3": { + "type": "string" + }, + "ReferenceQual4": { + "type": "string" + }, + "ReferenceID4": { + "type": "string" + } + }, + "required": [ + "ReferenceQual1" + ] + } + }, + "Reference": { + "type": "array", + "items": { + "type": "object", + "properties": { + "TradingPartnerId": { + "type": "string" + }, + "DocumentId": { + "type": "string", + "maxLength": 30 + }, + "PurchaseOrderNumber": { + "type": "string", + "maxLength": 30 + }, + "RecordType": { + "type": "string" + }, + "ReferenceQual": { + "type": "string" + }, + "ReferenceID": { + "type": "string" + }, + "Description": { + "type": "string" + } + } + } + }, + "Contact": { + "type": "array", + "items": { + "type": "object", + "properties": { + "TradingPartnerId": { + "type": "string" + }, + "DocumentId": { + "type": "string", + "maxLength": 30 + }, + "PurchaseOrderNumber": { + "type": "string", + "maxLength": 30 + }, + "RecordType": { + "type": "string" + }, + "ContactTypeCode": { + "type": "string" + }, + "ContactName": { + "type": "string" + }, + "ContactPhone": { + "type": "string" + }, + "ContactFax": { + "type": "string" + }, + "ContactEmail": { + "type": "string" + }, + "ContactReference": { + "type": "string" + } + }, + "required": [ + "ContactTypeCode" + ] + } + }, + "Date": { + "type": "array", + "items": { + "type": "object", + "properties": { + "TradingPartnerId": { + "type": "string" + }, + "DocumentId": { + "type": "string", + "maxLength": 30 + }, + "PurchaseOrderNumber": { + "type": "string", + "maxLength": 30 + }, + "RecordType": { + "type": "string" + }, + "DateTimeQualifier1": { + "type": "string" + }, + "Date1": { + "type": "string", + "format": "date" + }, + "Time1": { + "type": "string", + "format": "time" + }, + "TimeCode1": { + "type": "string" + }, + "DateTimeFormQualifier1": { + "type": "string" + }, + "DateTimePeriod": { + "type": "string" + } + }, + "required": [ + "DateTimeQualifier1", + "Date1" + ] + } } }, "required": [ - "TradingPartnerId", - "DocumentId", - "RecordType", - "AddressTypeCode", - "LocationCodeQualifier", - "AddressLocationNumber", - "AddressName", - "AddressAlternateName", - "Address1", - "Address2", - "Address3", - "Address4", - "City", - "State", - "PostalCode", - "Country", - "ContactName", - "ContactPhone", - "ContactFax", - "ContactEmail", - "AddressTaxIdNumber", - "AddressTaxExemptNumber", - "AddressAlternateName2" + "AddressTypeCode" ] - } + }, + "maxItems": 100 }, "Notes": { "type": "array", @@ -286,22 +535,44 @@ "type": "string" }, "DocumentId": { - "type": "string" + "type": "string", + "maxLength": 30 + }, + "PurchaseOrderNumber": { + "type": "string", + "maxLength": 30 }, "RecordType": { "type": "string" }, + "NoteCode": { + "type": "string" + }, "NoteInformationField": { + "type": "array", + "items": { + "type": "string" + }, + "maxItems": 2 + }, + "PrinterCarriageControlCode": { + "type": "string" + }, + "Number": { + "type": "string" + }, + "LanguageCode": { + "type": "string" + }, + "NoteFormatCode": { + "type": "string" + }, + "NoteFunctionCode": { "type": "string" } - }, - "required": [ - "TradingPartnerId", - "DocumentId", - "RecordType", - "NoteInformationField" - ] - } + } + }, + "maxItems": 20 }, "Miscellaneous": { "type": "array", @@ -312,7 +583,12 @@ "type": "string" }, "DocumentId": { - "type": "string" + "type": "string", + "maxLength": 30 + }, + "PurchaseOrderNumber": { + "type": "string", + "maxLength": 30 }, "RecordType": { "type": "string" @@ -329,27 +605,13 @@ "Description2": { "type": "string" } - }, - "required": [ - "TradingPartnerId", - "DocumentId", - "RecordType", - "Qualifier1", - "Description1", - "Qualifier2", - "Description2" - ] + } } } }, "required": [ "HeaderOrder", - "Reference", - "Date", - "Contact", - "Address", - "Notes", - "Miscellaneous" + "Address" ] }, "LineItems": { @@ -367,7 +629,12 @@ "type": "string" }, "DocumentId": { - "type": "string" + "type": "string", + "maxLength": 30 + }, + "PurchaseOrderNumber": { + "type": "string", + "maxLength": 30 }, "RecordType": { "type": "string" @@ -375,6 +642,9 @@ "LineSequenceNumber": { "type": "string" }, + "ApplicationId": { + "type": "string" + }, "BuyerPartNumber": { "type": "string" }, @@ -417,6 +687,42 @@ "PartNumber4": { "type": "string" }, + "PartNumberQualifier5": { + "type": "string" + }, + "PartNumber5": { + "type": "string" + }, + "PartNumberQualifier6": { + "type": "string" + }, + "PartNumber6": { + "type": "string" + }, + "PartNumberQualifier7": { + "type": "string" + }, + "PartNumber7": { + "type": "string" + }, + "PartNumberQualifier8": { + "type": "string" + }, + "PartNumber8": { + "type": "string" + }, + "PartNumberQualifier9": { + "type": "string" + }, + "PartNumber9": { + "type": "string" + }, + "PartNumberQualifier10": { + "type": "string" + }, + "PartNumber10": { + "type": "string" + }, "PartDescription1": { "type": "string" }, @@ -461,38 +767,9 @@ } }, "required": [ - "TradingPartnerId", - "DocumentId", - "RecordType", - "LineSequenceNumber", - "BuyerPartNumber", - "VendorPartNumber", - "ConsumerPackageCode", - "GTIN", - "UPCCaseCode", - "NatlDrugCode", - "PartNumberQualifier1", - "PartNumber1", - "PartNumberQualifier2", - "PartNumber2", - "PartNumberQualifier3", - "PartNumber3", - "PartNumberQualifier4", - "PartNumber4", - "PartDescription1", - "PartDescription2", "AdjReasonCode", "QtyAdjusted", - "QtyAdjustedUOM", - "WarehouseLotID", - "Weight1", - "WeightQualifier1", - "WeightUOM1", - "Weight2", - "WeightQualifier2", - "WeightUOM2", - "InventoryTransaction", - "ExtendedItemTotal" + "QtyAdjustedUOM" ] }, "Reference": { @@ -504,7 +781,12 @@ "type": "string" }, "DocumentId": { - "type": "string" + "type": "string", + "maxLength": 30 + }, + "PurchaseOrderNumber": { + "type": "string", + "maxLength": 30 }, "RecordType": { "type": "string" @@ -518,16 +800,9 @@ "Description": { "type": "string" } - }, - "required": [ - "TradingPartnerId", - "DocumentId", - "RecordType", - "ReferenceQual", - "ReferenceID", - "Description" - ] - } + } + }, + "maxItems": 10 }, "Date": { "type": "array", @@ -538,7 +813,12 @@ "type": "string" }, "DocumentId": { - "type": "string" + "type": "string", + "maxLength": 30 + }, + "PurchaseOrderNumber": { + "type": "string", + "maxLength": 30 }, "RecordType": { "type": "string" @@ -547,29 +827,29 @@ "type": "string" }, "Date1": { - "type": "string" + "type": "string", + "format": "date" }, "Time1": { - "type": "string" + "type": "string", + "format": "time" }, "TimeCode1": { "type": "string" }, "DateTimeFormQualifier1": { "type": "string" + }, + "DateTimePeriod": { + "type": "string" } }, "required": [ - "TradingPartnerId", - "DocumentId", - "RecordType", "DateTimeQualifier1", - "Date1", - "Time1", - "TimeCode1", - "DateTimeFormQualifier1" + "Date1" ] - } + }, + "maxItems": 10 }, "Address": { "type": "array", @@ -580,7 +860,12 @@ "type": "string" }, "DocumentId": { - "type": "string" + "type": "string", + "maxLength": 30 + }, + "PurchaseOrderNumber": { + "type": "string", + "maxLength": 30 }, "RecordType": { "type": "string" @@ -624,6 +909,12 @@ "Country": { "type": "string" }, + "LocationID": { + "type": "string" + }, + "CountrySubDivision": { + "type": "string" + }, "ContactName": { "type": "string" }, @@ -644,34 +935,196 @@ }, "AddressAlternateName2": { "type": "string" + }, + "ReferenceIdentifications": { + "type": "array", + "items": { + "type": "object", + "properties": { + "TradingPartnerId": { + "type": "string" + }, + "DocumentId": { + "type": "string", + "maxLength": 30 + }, + "PurchaseOrderNumber": { + "type": "string", + "maxLength": 30 + }, + "RecordType": { + "type": "string" + }, + "ReferenceQual1": { + "type": "string" + }, + "ReferenceID1": { + "type": "string" + }, + "Description": { + "type": "string" + }, + "Date1": { + "type": "string", + "format": "date" + }, + "Time1": { + "type": "string", + "format": "time" + }, + "TimeCode1": { + "type": "string" + }, + "ReferenceQual2": { + "type": "string" + }, + "ReferenceID2": { + "type": "string" + }, + "ReferenceQual3": { + "type": "string" + }, + "ReferenceID3": { + "type": "string" + }, + "ReferenceQual4": { + "type": "string" + }, + "ReferenceID4": { + "type": "string" + } + }, + "required": [ + "ReferenceQual1" + ] + } + }, + "Reference": { + "type": "array", + "items": { + "type": "object", + "properties": { + "TradingPartnerId": { + "type": "string" + }, + "DocumentId": { + "type": "string", + "maxLength": 30 + }, + "PurchaseOrderNumber": { + "type": "string", + "maxLength": 30 + }, + "RecordType": { + "type": "string" + }, + "ReferenceQual": { + "type": "string" + }, + "ReferenceID": { + "type": "string" + }, + "Description": { + "type": "string" + } + } + } + }, + "Contact": { + "type": "array", + "items": { + "type": "object", + "properties": { + "TradingPartnerId": { + "type": "string" + }, + "DocumentId": { + "type": "string", + "maxLength": 30 + }, + "PurchaseOrderNumber": { + "type": "string", + "maxLength": 30 + }, + "RecordType": { + "type": "string" + }, + "ContactTypeCode": { + "type": "string" + }, + "ContactName": { + "type": "string" + }, + "ContactPhone": { + "type": "string" + }, + "ContactFax": { + "type": "string" + }, + "ContactEmail": { + "type": "string" + }, + "ContactReference": { + "type": "string" + } + }, + "required": [ + "ContactTypeCode" + ] + } + }, + "Date": { + "type": "array", + "items": { + "type": "object", + "properties": { + "TradingPartnerId": { + "type": "string" + }, + "DocumentId": { + "type": "string", + "maxLength": 30 + }, + "PurchaseOrderNumber": { + "type": "string", + "maxLength": 30 + }, + "RecordType": { + "type": "string" + }, + "DateTimeQualifier1": { + "type": "string" + }, + "Date1": { + "type": "string", + "format": "date" + }, + "Time1": { + "type": "string", + "format": "time" + }, + "TimeCode1": { + "type": "string" + }, + "DateTimeFormQualifier1": { + "type": "string" + }, + "DateTimePeriod": { + "type": "string" + } + }, + "required": [ + "DateTimeQualifier1", + "Date1" + ] + } } }, "required": [ - "TradingPartnerId", - "DocumentId", - "RecordType", - "AddressTypeCode", - "LocationCodeQualifier", - "AddressLocationNumber", - "AddressName", - "AddressAlternateName", - "Address1", - "Address2", - "Address3", - "Address4", - "City", - "State", - "PostalCode", - "Country", - "ContactName", - "ContactPhone", - "ContactFax", - "ContactEmail", - "AddressTaxIdNumber", - "AddressTaxExemptNumber", - "AddressAlternateName2" + "AddressTypeCode" ] - } + }, + "maxItems": 50 }, "Miscellaneous": { "type": "array", @@ -682,7 +1135,12 @@ "type": "string" }, "DocumentId": { - "type": "string" + "type": "string", + "maxLength": 30 + }, + "PurchaseOrderNumber": { + "type": "string", + "maxLength": 30 }, "RecordType": { "type": "string" @@ -699,25 +1157,13 @@ "Description2": { "type": "string" } - }, - "required": [ - "TradingPartnerId", - "DocumentId", - "RecordType", - "Qualifier1", - "Description1", - "Qualifier2", - "Description2" - ] - } + } + }, + "maxItems": 20 } }, "required": [ - "ItemDetail", - "Reference", - "Date", - "Address", - "Miscellaneous" + "ItemDetail" ] } } @@ -733,7 +1179,12 @@ "type": "string" }, "DocumentId": { - "type": "string" + "type": "string", + "maxLength": 30 + }, + "PurchaseOrderNumber": { + "type": "string", + "maxLength": 30 }, "RecordType": { "type": "string" @@ -753,17 +1204,7 @@ "VolumeUOM": { "type": "string" } - }, - "required": [ - "TradingPartnerId", - "DocumentId", - "RecordType", - "TotalOrders", - "TotalWeight", - "WeightUOM", - "TotalVolume", - "VolumeUOM" - ] + } } }, "required": [ @@ -771,4 +1212,4 @@ "LineItems", "Summary" ] -} \ No newline at end of file +} diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/Header.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/Header.php index 69780c9..860d5c6 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/Header.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/Header.php @@ -44,18 +44,23 @@ public static function setUpProperties($properties, Schema $ownerSchema) $ownerSchema->addPropertyMapping('HeaderOrder', self::names()->headerOrder); $properties->reference = Schema::arr(); $properties->reference->items = HeaderReferenceItems::schema(); + $properties->reference->maxItems = 10; $ownerSchema->addPropertyMapping('Reference', self::names()->reference); $properties->date = Schema::arr(); $properties->date->items = HeaderDateItems::schema(); + $properties->date->maxItems = 5; $ownerSchema->addPropertyMapping('Date', self::names()->date); $properties->contact = Schema::arr(); $properties->contact->items = HeaderContactItems::schema(); + $properties->contact->maxItems = 3; $ownerSchema->addPropertyMapping('Contact', self::names()->contact); $properties->address = Schema::arr(); $properties->address->items = HeaderAddressItems::schema(); + $properties->address->maxItems = 100; $ownerSchema->addPropertyMapping('Address', self::names()->address); $properties->notes = Schema::arr(); $properties->notes->items = HeaderNotesItems::schema(); + $properties->notes->maxItems = 20; $ownerSchema->addPropertyMapping('Notes', self::names()->notes); $properties->miscellaneous = Schema::arr(); $properties->miscellaneous->items = HeaderMiscellaneousItems::schema(); @@ -63,12 +68,7 @@ public static function setUpProperties($properties, Schema $ownerSchema) $ownerSchema->type = Schema::OBJECT; $ownerSchema->required = array( 'HeaderOrder', - 'Reference', - 'Date', - 'Contact', 'Address', - 'Notes', - 'Miscellaneous', ); } } \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItems.php index fb3d939..3793a6d 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItems.php @@ -19,6 +19,9 @@ class HeaderAddressItems extends ClassStructure /** @var string */ public $documentId; + /** @var string */ + public $purchaseOrderNumber; + /** @var string */ public $recordType; @@ -61,6 +64,12 @@ class HeaderAddressItems extends ClassStructure /** @var string */ public $country; + /** @var string */ + public $locationID; + + /** @var string */ + public $countrySubDivision; + /** @var string */ public $contactName; @@ -82,6 +91,18 @@ class HeaderAddressItems extends ClassStructure /** @var string */ public $addressAlternateName2; + /** @var HeaderAddressItemsReferenceIdentificationsItems[]|array */ + public $referenceIdentifications; + + /** @var HeaderAddressItemsReferenceItems[]|array */ + public $reference; + + /** @var HeaderAddressItemsContactItems[]|array */ + public $contact; + + /** @var HeaderAddressItemsDateItems[]|array */ + public $date; + /** * @param Properties|static $properties * @param Schema $ownerSchema @@ -91,7 +112,11 @@ public static function setUpProperties($properties, Schema $ownerSchema) $properties->tradingPartnerId = Schema::string(); $ownerSchema->addPropertyMapping('TradingPartnerId', self::names()->tradingPartnerId); $properties->documentId = Schema::string(); + $properties->documentId->maxLength = 30; $ownerSchema->addPropertyMapping('DocumentId', self::names()->documentId); + $properties->purchaseOrderNumber = Schema::string(); + $properties->purchaseOrderNumber->maxLength = 30; + $ownerSchema->addPropertyMapping('PurchaseOrderNumber', self::names()->purchaseOrderNumber); $properties->recordType = Schema::string(); $ownerSchema->addPropertyMapping('RecordType', self::names()->recordType); $properties->addressTypeCode = Schema::string(); @@ -120,6 +145,10 @@ public static function setUpProperties($properties, Schema $ownerSchema) $ownerSchema->addPropertyMapping('PostalCode', self::names()->postalCode); $properties->country = Schema::string(); $ownerSchema->addPropertyMapping('Country', self::names()->country); + $properties->locationID = Schema::string(); + $ownerSchema->addPropertyMapping('LocationID', self::names()->locationID); + $properties->countrySubDivision = Schema::string(); + $ownerSchema->addPropertyMapping('CountrySubDivision', self::names()->countrySubDivision); $properties->contactName = Schema::string(); $ownerSchema->addPropertyMapping('ContactName', self::names()->contactName); $properties->contactPhone = Schema::string(); @@ -134,31 +163,21 @@ public static function setUpProperties($properties, Schema $ownerSchema) $ownerSchema->addPropertyMapping('AddressTaxExemptNumber', self::names()->addressTaxExemptNumber); $properties->addressAlternateName2 = Schema::string(); $ownerSchema->addPropertyMapping('AddressAlternateName2', self::names()->addressAlternateName2); + $properties->referenceIdentifications = Schema::arr(); + $properties->referenceIdentifications->items = HeaderAddressItemsReferenceIdentificationsItems::schema(); + $ownerSchema->addPropertyMapping('ReferenceIdentifications', self::names()->referenceIdentifications); + $properties->reference = Schema::arr(); + $properties->reference->items = HeaderAddressItemsReferenceItems::schema(); + $ownerSchema->addPropertyMapping('Reference', self::names()->reference); + $properties->contact = Schema::arr(); + $properties->contact->items = HeaderAddressItemsContactItems::schema(); + $ownerSchema->addPropertyMapping('Contact', self::names()->contact); + $properties->date = Schema::arr(); + $properties->date->items = HeaderAddressItemsDateItems::schema(); + $ownerSchema->addPropertyMapping('Date', self::names()->date); $ownerSchema->type = Schema::OBJECT; $ownerSchema->required = array( - 'TradingPartnerId', - 'DocumentId', - 'RecordType', 'AddressTypeCode', - 'LocationCodeQualifier', - 'AddressLocationNumber', - 'AddressName', - 'AddressAlternateName', - 'Address1', - 'Address2', - 'Address3', - 'Address4', - 'City', - 'State', - 'PostalCode', - 'Country', - 'ContactName', - 'ContactPhone', - 'ContactFax', - 'ContactEmail', - 'AddressTaxIdNumber', - 'AddressTaxExemptNumber', - 'AddressAlternateName2', ); } } \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItemsContactItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItemsContactItems.php new file mode 100644 index 0000000..009cc03 --- /dev/null +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItemsContactItems.php @@ -0,0 +1,79 @@ +tradingPartnerId = Schema::string(); + $ownerSchema->addPropertyMapping('TradingPartnerId', self::names()->tradingPartnerId); + $properties->documentId = Schema::string(); + $properties->documentId->maxLength = 30; + $ownerSchema->addPropertyMapping('DocumentId', self::names()->documentId); + $properties->purchaseOrderNumber = Schema::string(); + $properties->purchaseOrderNumber->maxLength = 30; + $ownerSchema->addPropertyMapping('PurchaseOrderNumber', self::names()->purchaseOrderNumber); + $properties->recordType = Schema::string(); + $ownerSchema->addPropertyMapping('RecordType', self::names()->recordType); + $properties->contactTypeCode = Schema::string(); + $ownerSchema->addPropertyMapping('ContactTypeCode', self::names()->contactTypeCode); + $properties->contactName = Schema::string(); + $ownerSchema->addPropertyMapping('ContactName', self::names()->contactName); + $properties->contactPhone = Schema::string(); + $ownerSchema->addPropertyMapping('ContactPhone', self::names()->contactPhone); + $properties->contactFax = Schema::string(); + $ownerSchema->addPropertyMapping('ContactFax', self::names()->contactFax); + $properties->contactEmail = Schema::string(); + $ownerSchema->addPropertyMapping('ContactEmail', self::names()->contactEmail); + $properties->contactReference = Schema::string(); + $ownerSchema->addPropertyMapping('ContactReference', self::names()->contactReference); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->required = array( + 'ContactTypeCode', + ); + } +} \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItemsDateItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItemsDateItems.php new file mode 100644 index 0000000..b67a72c --- /dev/null +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItemsDateItems.php @@ -0,0 +1,82 @@ +tradingPartnerId = Schema::string(); + $ownerSchema->addPropertyMapping('TradingPartnerId', self::names()->tradingPartnerId); + $properties->documentId = Schema::string(); + $properties->documentId->maxLength = 30; + $ownerSchema->addPropertyMapping('DocumentId', self::names()->documentId); + $properties->purchaseOrderNumber = Schema::string(); + $properties->purchaseOrderNumber->maxLength = 30; + $ownerSchema->addPropertyMapping('PurchaseOrderNumber', self::names()->purchaseOrderNumber); + $properties->recordType = Schema::string(); + $ownerSchema->addPropertyMapping('RecordType', self::names()->recordType); + $properties->dateTimeQualifier1 = Schema::string(); + $ownerSchema->addPropertyMapping('DateTimeQualifier1', self::names()->dateTimeQualifier1); + $properties->date1 = Schema::string(); + $properties->date1->format = "date"; + $ownerSchema->addPropertyMapping('Date1', self::names()->date1); + $properties->time1 = Schema::string(); + $properties->time1->format = "time"; + $ownerSchema->addPropertyMapping('Time1', self::names()->time1); + $properties->timeCode1 = Schema::string(); + $ownerSchema->addPropertyMapping('TimeCode1', self::names()->timeCode1); + $properties->dateTimeFormQualifier1 = Schema::string(); + $ownerSchema->addPropertyMapping('DateTimeFormQualifier1', self::names()->dateTimeFormQualifier1); + $properties->dateTimePeriod = Schema::string(); + $ownerSchema->addPropertyMapping('DateTimePeriod', self::names()->dateTimePeriod); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->required = array( + 'DateTimeQualifier1', + 'Date1', + ); + } +} \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItemsReferenceIdentificationsItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItemsReferenceIdentificationsItems.php new file mode 100644 index 0000000..56c140a --- /dev/null +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItemsReferenceIdentificationsItems.php @@ -0,0 +1,111 @@ +tradingPartnerId = Schema::string(); + $ownerSchema->addPropertyMapping('TradingPartnerId', self::names()->tradingPartnerId); + $properties->documentId = Schema::string(); + $properties->documentId->maxLength = 30; + $ownerSchema->addPropertyMapping('DocumentId', self::names()->documentId); + $properties->purchaseOrderNumber = Schema::string(); + $properties->purchaseOrderNumber->maxLength = 30; + $ownerSchema->addPropertyMapping('PurchaseOrderNumber', self::names()->purchaseOrderNumber); + $properties->recordType = Schema::string(); + $ownerSchema->addPropertyMapping('RecordType', self::names()->recordType); + $properties->referenceQual1 = Schema::string(); + $ownerSchema->addPropertyMapping('ReferenceQual1', self::names()->referenceQual1); + $properties->referenceID1 = Schema::string(); + $ownerSchema->addPropertyMapping('ReferenceID1', self::names()->referenceID1); + $properties->description = Schema::string(); + $ownerSchema->addPropertyMapping('Description', self::names()->description); + $properties->date1 = Schema::string(); + $properties->date1->format = "date"; + $ownerSchema->addPropertyMapping('Date1', self::names()->date1); + $properties->time1 = Schema::string(); + $properties->time1->format = "time"; + $ownerSchema->addPropertyMapping('Time1', self::names()->time1); + $properties->timeCode1 = Schema::string(); + $ownerSchema->addPropertyMapping('TimeCode1', self::names()->timeCode1); + $properties->referenceQual2 = Schema::string(); + $ownerSchema->addPropertyMapping('ReferenceQual2', self::names()->referenceQual2); + $properties->referenceID2 = Schema::string(); + $ownerSchema->addPropertyMapping('ReferenceID2', self::names()->referenceID2); + $properties->referenceQual3 = Schema::string(); + $ownerSchema->addPropertyMapping('ReferenceQual3', self::names()->referenceQual3); + $properties->referenceID3 = Schema::string(); + $ownerSchema->addPropertyMapping('ReferenceID3', self::names()->referenceID3); + $properties->referenceQual4 = Schema::string(); + $ownerSchema->addPropertyMapping('ReferenceQual4', self::names()->referenceQual4); + $properties->referenceID4 = Schema::string(); + $ownerSchema->addPropertyMapping('ReferenceID4', self::names()->referenceID4); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->required = array( + 'ReferenceQual1', + ); + } +} \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItemsReferenceItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItemsReferenceItems.php new file mode 100644 index 0000000..8986319 --- /dev/null +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItemsReferenceItems.php @@ -0,0 +1,61 @@ +tradingPartnerId = Schema::string(); + $ownerSchema->addPropertyMapping('TradingPartnerId', self::names()->tradingPartnerId); + $properties->documentId = Schema::string(); + $properties->documentId->maxLength = 30; + $ownerSchema->addPropertyMapping('DocumentId', self::names()->documentId); + $properties->purchaseOrderNumber = Schema::string(); + $properties->purchaseOrderNumber->maxLength = 30; + $ownerSchema->addPropertyMapping('PurchaseOrderNumber', self::names()->purchaseOrderNumber); + $properties->recordType = Schema::string(); + $ownerSchema->addPropertyMapping('RecordType', self::names()->recordType); + $properties->referenceQual = Schema::string(); + $ownerSchema->addPropertyMapping('ReferenceQual', self::names()->referenceQual); + $properties->referenceID = Schema::string(); + $ownerSchema->addPropertyMapping('ReferenceID', self::names()->referenceID); + $properties->description = Schema::string(); + $ownerSchema->addPropertyMapping('Description', self::names()->description); + $ownerSchema->type = Schema::OBJECT; + } +} \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderContactItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderContactItems.php index 8f1fabb..314127a 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderContactItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderContactItems.php @@ -19,6 +19,9 @@ class HeaderContactItems extends ClassStructure /** @var string */ public $documentId; + /** @var string */ + public $purchaseOrderNumber; + /** @var string */ public $recordType; @@ -49,7 +52,11 @@ public static function setUpProperties($properties, Schema $ownerSchema) $properties->tradingPartnerId = Schema::string(); $ownerSchema->addPropertyMapping('TradingPartnerId', self::names()->tradingPartnerId); $properties->documentId = Schema::string(); + $properties->documentId->maxLength = 30; $ownerSchema->addPropertyMapping('DocumentId', self::names()->documentId); + $properties->purchaseOrderNumber = Schema::string(); + $properties->purchaseOrderNumber->maxLength = 30; + $ownerSchema->addPropertyMapping('PurchaseOrderNumber', self::names()->purchaseOrderNumber); $properties->recordType = Schema::string(); $ownerSchema->addPropertyMapping('RecordType', self::names()->recordType); $properties->contactTypeCode = Schema::string(); @@ -66,15 +73,7 @@ public static function setUpProperties($properties, Schema $ownerSchema) $ownerSchema->addPropertyMapping('ContactReference', self::names()->contactReference); $ownerSchema->type = Schema::OBJECT; $ownerSchema->required = array( - 'TradingPartnerId', - 'DocumentId', - 'RecordType', 'ContactTypeCode', - 'ContactName', - 'ContactPhone', - 'ContactFax', - 'ContactEmail', - 'ContactReference', ); } } \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderDateItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderDateItems.php index b750883..028a290 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderDateItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderDateItems.php @@ -19,6 +19,9 @@ class HeaderDateItems extends ClassStructure /** @var string */ public $documentId; + /** @var string */ + public $purchaseOrderNumber; + /** @var string */ public $recordType; @@ -37,6 +40,9 @@ class HeaderDateItems extends ClassStructure /** @var string */ public $dateTimeFormQualifier1; + /** @var string */ + public $dateTimePeriod; + /** * @param Properties|static $properties * @param Schema $ownerSchema @@ -46,29 +52,31 @@ public static function setUpProperties($properties, Schema $ownerSchema) $properties->tradingPartnerId = Schema::string(); $ownerSchema->addPropertyMapping('TradingPartnerId', self::names()->tradingPartnerId); $properties->documentId = Schema::string(); + $properties->documentId->maxLength = 30; $ownerSchema->addPropertyMapping('DocumentId', self::names()->documentId); + $properties->purchaseOrderNumber = Schema::string(); + $properties->purchaseOrderNumber->maxLength = 30; + $ownerSchema->addPropertyMapping('PurchaseOrderNumber', self::names()->purchaseOrderNumber); $properties->recordType = Schema::string(); $ownerSchema->addPropertyMapping('RecordType', self::names()->recordType); $properties->dateTimeQualifier1 = Schema::string(); $ownerSchema->addPropertyMapping('DateTimeQualifier1', self::names()->dateTimeQualifier1); $properties->date1 = Schema::string(); + $properties->date1->format = "date"; $ownerSchema->addPropertyMapping('Date1', self::names()->date1); $properties->time1 = Schema::string(); + $properties->time1->format = "time"; $ownerSchema->addPropertyMapping('Time1', self::names()->time1); $properties->timeCode1 = Schema::string(); $ownerSchema->addPropertyMapping('TimeCode1', self::names()->timeCode1); $properties->dateTimeFormQualifier1 = Schema::string(); $ownerSchema->addPropertyMapping('DateTimeFormQualifier1', self::names()->dateTimeFormQualifier1); + $properties->dateTimePeriod = Schema::string(); + $ownerSchema->addPropertyMapping('DateTimePeriod', self::names()->dateTimePeriod); $ownerSchema->type = Schema::OBJECT; $ownerSchema->required = array( - 'TradingPartnerId', - 'DocumentId', - 'RecordType', 'DateTimeQualifier1', 'Date1', - 'Time1', - 'TimeCode1', - 'DateTimeFormQualifier1', ); } } \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderHeaderOrder.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderHeaderOrder.php index 4b547ad..d99de24 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderHeaderOrder.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderHeaderOrder.php @@ -52,10 +52,12 @@ public static function setUpProperties($properties, Schema $ownerSchema) $properties->tradingPartnerId = Schema::string(); $ownerSchema->addPropertyMapping('TradingPartnerId', self::names()->tradingPartnerId); $properties->documentId = Schema::string(); + $properties->documentId->maxLength = 30; $ownerSchema->addPropertyMapping('DocumentId', self::names()->documentId); $properties->recordType = Schema::string(); $ownerSchema->addPropertyMapping('RecordType', self::names()->recordType); $properties->date1 = Schema::string(); + $properties->date1->format = "date"; $ownerSchema->addPropertyMapping('Date1', self::names()->date1); $properties->adjustmentNumber1 = Schema::string(); $ownerSchema->addPropertyMapping('AdjustmentNumber1', self::names()->adjustmentNumber1); @@ -64,6 +66,7 @@ public static function setUpProperties($properties, Schema $ownerSchema) $properties->tsetPurposeCode = Schema::string(); $ownerSchema->addPropertyMapping('TsetPurposeCode', self::names()->tsetPurposeCode); $properties->purchaseOrderNumber = Schema::string(); + $properties->purchaseOrderNumber->maxLength = 30; $ownerSchema->addPropertyMapping('PurchaseOrderNumber', self::names()->purchaseOrderNumber); $properties->transactionTypeCode = Schema::string(); $ownerSchema->addPropertyMapping('TransactionTypeCode', self::names()->transactionTypeCode); @@ -73,14 +76,7 @@ public static function setUpProperties($properties, Schema $ownerSchema) $ownerSchema->required = array( 'TradingPartnerId', 'DocumentId', - 'RecordType', 'Date1', - 'AdjustmentNumber1', - 'AdjustmentNumber2', - 'TsetPurposeCode', - 'PurchaseOrderNumber', - 'TransactionTypeCode', - 'ActionCode', ); } } \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderMiscellaneousItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderMiscellaneousItems.php index a0cfa09..96f6817 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderMiscellaneousItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderMiscellaneousItems.php @@ -19,6 +19,9 @@ class HeaderMiscellaneousItems extends ClassStructure /** @var string */ public $documentId; + /** @var string */ + public $purchaseOrderNumber; + /** @var string */ public $recordType; @@ -43,7 +46,11 @@ public static function setUpProperties($properties, Schema $ownerSchema) $properties->tradingPartnerId = Schema::string(); $ownerSchema->addPropertyMapping('TradingPartnerId', self::names()->tradingPartnerId); $properties->documentId = Schema::string(); + $properties->documentId->maxLength = 30; $ownerSchema->addPropertyMapping('DocumentId', self::names()->documentId); + $properties->purchaseOrderNumber = Schema::string(); + $properties->purchaseOrderNumber->maxLength = 30; + $ownerSchema->addPropertyMapping('PurchaseOrderNumber', self::names()->purchaseOrderNumber); $properties->recordType = Schema::string(); $ownerSchema->addPropertyMapping('RecordType', self::names()->recordType); $properties->qualifier1 = Schema::string(); @@ -55,14 +62,5 @@ public static function setUpProperties($properties, Schema $ownerSchema) $properties->description2 = Schema::string(); $ownerSchema->addPropertyMapping('Description2', self::names()->description2); $ownerSchema->type = Schema::OBJECT; - $ownerSchema->required = array( - 'TradingPartnerId', - 'DocumentId', - 'RecordType', - 'Qualifier1', - 'Description1', - 'Qualifier2', - 'Description2', - ); } } \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderNotesItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderNotesItems.php index 7f4fdba..0b551e3 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderNotesItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderNotesItems.php @@ -19,12 +19,33 @@ class HeaderNotesItems extends ClassStructure /** @var string */ public $documentId; + /** @var string */ + public $purchaseOrderNumber; + /** @var string */ public $recordType; /** @var string */ + public $noteCode; + + /** @var string[]|array */ public $noteInformationField; + /** @var string */ + public $printerCarriageControlCode; + + /** @var string */ + public $number; + + /** @var string */ + public $languageCode; + + /** @var string */ + public $noteFormatCode; + + /** @var string */ + public $noteFunctionCode; + /** * @param Properties|static $properties * @param Schema $ownerSchema @@ -34,17 +55,29 @@ public static function setUpProperties($properties, Schema $ownerSchema) $properties->tradingPartnerId = Schema::string(); $ownerSchema->addPropertyMapping('TradingPartnerId', self::names()->tradingPartnerId); $properties->documentId = Schema::string(); + $properties->documentId->maxLength = 30; $ownerSchema->addPropertyMapping('DocumentId', self::names()->documentId); + $properties->purchaseOrderNumber = Schema::string(); + $properties->purchaseOrderNumber->maxLength = 30; + $ownerSchema->addPropertyMapping('PurchaseOrderNumber', self::names()->purchaseOrderNumber); $properties->recordType = Schema::string(); $ownerSchema->addPropertyMapping('RecordType', self::names()->recordType); - $properties->noteInformationField = Schema::string(); + $properties->noteCode = Schema::string(); + $ownerSchema->addPropertyMapping('NoteCode', self::names()->noteCode); + $properties->noteInformationField = Schema::arr(); + $properties->noteInformationField->items = Schema::string(); + $properties->noteInformationField->maxItems = 2; $ownerSchema->addPropertyMapping('NoteInformationField', self::names()->noteInformationField); + $properties->printerCarriageControlCode = Schema::string(); + $ownerSchema->addPropertyMapping('PrinterCarriageControlCode', self::names()->printerCarriageControlCode); + $properties->number = Schema::string(); + $ownerSchema->addPropertyMapping('Number', self::names()->number); + $properties->languageCode = Schema::string(); + $ownerSchema->addPropertyMapping('LanguageCode', self::names()->languageCode); + $properties->noteFormatCode = Schema::string(); + $ownerSchema->addPropertyMapping('NoteFormatCode', self::names()->noteFormatCode); + $properties->noteFunctionCode = Schema::string(); + $ownerSchema->addPropertyMapping('NoteFunctionCode', self::names()->noteFunctionCode); $ownerSchema->type = Schema::OBJECT; - $ownerSchema->required = array( - 'TradingPartnerId', - 'DocumentId', - 'RecordType', - 'NoteInformationField', - ); } } \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderReferenceItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderReferenceItems.php index e7dc2bd..e493ef4 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderReferenceItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderReferenceItems.php @@ -19,6 +19,9 @@ class HeaderReferenceItems extends ClassStructure /** @var string */ public $documentId; + /** @var string */ + public $purchaseOrderNumber; + /** @var string */ public $recordType; @@ -40,7 +43,11 @@ public static function setUpProperties($properties, Schema $ownerSchema) $properties->tradingPartnerId = Schema::string(); $ownerSchema->addPropertyMapping('TradingPartnerId', self::names()->tradingPartnerId); $properties->documentId = Schema::string(); + $properties->documentId->maxLength = 30; $ownerSchema->addPropertyMapping('DocumentId', self::names()->documentId); + $properties->purchaseOrderNumber = Schema::string(); + $properties->purchaseOrderNumber->maxLength = 30; + $ownerSchema->addPropertyMapping('PurchaseOrderNumber', self::names()->purchaseOrderNumber); $properties->recordType = Schema::string(); $ownerSchema->addPropertyMapping('RecordType', self::names()->recordType); $properties->referenceQual = Schema::string(); @@ -50,13 +57,5 @@ public static function setUpProperties($properties, Schema $ownerSchema) $properties->description = Schema::string(); $ownerSchema->addPropertyMapping('Description', self::names()->description); $ownerSchema->type = Schema::OBJECT; - $ownerSchema->required = array( - 'TradingPartnerId', - 'DocumentId', - 'RecordType', - 'ReferenceQual', - 'ReferenceID', - 'Description', - ); } } \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItems.php index dda7618..7bb804f 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItems.php @@ -38,23 +38,23 @@ public static function setUpProperties($properties, Schema $ownerSchema) $ownerSchema->addPropertyMapping('ItemDetail', self::names()->itemDetail); $properties->reference = Schema::arr(); $properties->reference->items = LineItemsLineItemItemsReferenceItems::schema(); + $properties->reference->maxItems = 10; $ownerSchema->addPropertyMapping('Reference', self::names()->reference); $properties->date = Schema::arr(); $properties->date->items = LineItemsLineItemItemsDateItems::schema(); + $properties->date->maxItems = 10; $ownerSchema->addPropertyMapping('Date', self::names()->date); $properties->address = Schema::arr(); $properties->address->items = LineItemsLineItemItemsAddressItems::schema(); + $properties->address->maxItems = 50; $ownerSchema->addPropertyMapping('Address', self::names()->address); $properties->miscellaneous = Schema::arr(); $properties->miscellaneous->items = LineItemsLineItemItemsMiscellaneousItems::schema(); + $properties->miscellaneous->maxItems = 20; $ownerSchema->addPropertyMapping('Miscellaneous', self::names()->miscellaneous); $ownerSchema->type = Schema::OBJECT; $ownerSchema->required = array( 'ItemDetail', - 'Reference', - 'Date', - 'Address', - 'Miscellaneous', ); } } \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItems.php index c3f0237..a74b8f1 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItems.php @@ -19,6 +19,9 @@ class LineItemsLineItemItemsAddressItems extends ClassStructure /** @var string */ public $documentId; + /** @var string */ + public $purchaseOrderNumber; + /** @var string */ public $recordType; @@ -61,6 +64,12 @@ class LineItemsLineItemItemsAddressItems extends ClassStructure /** @var string */ public $country; + /** @var string */ + public $locationID; + + /** @var string */ + public $countrySubDivision; + /** @var string */ public $contactName; @@ -82,6 +91,18 @@ class LineItemsLineItemItemsAddressItems extends ClassStructure /** @var string */ public $addressAlternateName2; + /** @var LineItemsLineItemItemsAddressItemsReferenceIdentificationsItems[]|array */ + public $referenceIdentifications; + + /** @var LineItemsLineItemItemsAddressItemsReferenceItems[]|array */ + public $reference; + + /** @var LineItemsLineItemItemsAddressItemsContactItems[]|array */ + public $contact; + + /** @var LineItemsLineItemItemsAddressItemsDateItems[]|array */ + public $date; + /** * @param Properties|static $properties * @param Schema $ownerSchema @@ -91,7 +112,11 @@ public static function setUpProperties($properties, Schema $ownerSchema) $properties->tradingPartnerId = Schema::string(); $ownerSchema->addPropertyMapping('TradingPartnerId', self::names()->tradingPartnerId); $properties->documentId = Schema::string(); + $properties->documentId->maxLength = 30; $ownerSchema->addPropertyMapping('DocumentId', self::names()->documentId); + $properties->purchaseOrderNumber = Schema::string(); + $properties->purchaseOrderNumber->maxLength = 30; + $ownerSchema->addPropertyMapping('PurchaseOrderNumber', self::names()->purchaseOrderNumber); $properties->recordType = Schema::string(); $ownerSchema->addPropertyMapping('RecordType', self::names()->recordType); $properties->addressTypeCode = Schema::string(); @@ -120,6 +145,10 @@ public static function setUpProperties($properties, Schema $ownerSchema) $ownerSchema->addPropertyMapping('PostalCode', self::names()->postalCode); $properties->country = Schema::string(); $ownerSchema->addPropertyMapping('Country', self::names()->country); + $properties->locationID = Schema::string(); + $ownerSchema->addPropertyMapping('LocationID', self::names()->locationID); + $properties->countrySubDivision = Schema::string(); + $ownerSchema->addPropertyMapping('CountrySubDivision', self::names()->countrySubDivision); $properties->contactName = Schema::string(); $ownerSchema->addPropertyMapping('ContactName', self::names()->contactName); $properties->contactPhone = Schema::string(); @@ -134,31 +163,21 @@ public static function setUpProperties($properties, Schema $ownerSchema) $ownerSchema->addPropertyMapping('AddressTaxExemptNumber', self::names()->addressTaxExemptNumber); $properties->addressAlternateName2 = Schema::string(); $ownerSchema->addPropertyMapping('AddressAlternateName2', self::names()->addressAlternateName2); + $properties->referenceIdentifications = Schema::arr(); + $properties->referenceIdentifications->items = LineItemsLineItemItemsAddressItemsReferenceIdentificationsItems::schema(); + $ownerSchema->addPropertyMapping('ReferenceIdentifications', self::names()->referenceIdentifications); + $properties->reference = Schema::arr(); + $properties->reference->items = LineItemsLineItemItemsAddressItemsReferenceItems::schema(); + $ownerSchema->addPropertyMapping('Reference', self::names()->reference); + $properties->contact = Schema::arr(); + $properties->contact->items = LineItemsLineItemItemsAddressItemsContactItems::schema(); + $ownerSchema->addPropertyMapping('Contact', self::names()->contact); + $properties->date = Schema::arr(); + $properties->date->items = LineItemsLineItemItemsAddressItemsDateItems::schema(); + $ownerSchema->addPropertyMapping('Date', self::names()->date); $ownerSchema->type = Schema::OBJECT; $ownerSchema->required = array( - 'TradingPartnerId', - 'DocumentId', - 'RecordType', 'AddressTypeCode', - 'LocationCodeQualifier', - 'AddressLocationNumber', - 'AddressName', - 'AddressAlternateName', - 'Address1', - 'Address2', - 'Address3', - 'Address4', - 'City', - 'State', - 'PostalCode', - 'Country', - 'ContactName', - 'ContactPhone', - 'ContactFax', - 'ContactEmail', - 'AddressTaxIdNumber', - 'AddressTaxExemptNumber', - 'AddressAlternateName2', ); } } \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItemsContactItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItemsContactItems.php new file mode 100644 index 0000000..12c5512 --- /dev/null +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItemsContactItems.php @@ -0,0 +1,79 @@ +tradingPartnerId = Schema::string(); + $ownerSchema->addPropertyMapping('TradingPartnerId', self::names()->tradingPartnerId); + $properties->documentId = Schema::string(); + $properties->documentId->maxLength = 30; + $ownerSchema->addPropertyMapping('DocumentId', self::names()->documentId); + $properties->purchaseOrderNumber = Schema::string(); + $properties->purchaseOrderNumber->maxLength = 30; + $ownerSchema->addPropertyMapping('PurchaseOrderNumber', self::names()->purchaseOrderNumber); + $properties->recordType = Schema::string(); + $ownerSchema->addPropertyMapping('RecordType', self::names()->recordType); + $properties->contactTypeCode = Schema::string(); + $ownerSchema->addPropertyMapping('ContactTypeCode', self::names()->contactTypeCode); + $properties->contactName = Schema::string(); + $ownerSchema->addPropertyMapping('ContactName', self::names()->contactName); + $properties->contactPhone = Schema::string(); + $ownerSchema->addPropertyMapping('ContactPhone', self::names()->contactPhone); + $properties->contactFax = Schema::string(); + $ownerSchema->addPropertyMapping('ContactFax', self::names()->contactFax); + $properties->contactEmail = Schema::string(); + $ownerSchema->addPropertyMapping('ContactEmail', self::names()->contactEmail); + $properties->contactReference = Schema::string(); + $ownerSchema->addPropertyMapping('ContactReference', self::names()->contactReference); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->required = array( + 'ContactTypeCode', + ); + } +} \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItemsDateItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItemsDateItems.php new file mode 100644 index 0000000..1bdb7c8 --- /dev/null +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItemsDateItems.php @@ -0,0 +1,82 @@ +tradingPartnerId = Schema::string(); + $ownerSchema->addPropertyMapping('TradingPartnerId', self::names()->tradingPartnerId); + $properties->documentId = Schema::string(); + $properties->documentId->maxLength = 30; + $ownerSchema->addPropertyMapping('DocumentId', self::names()->documentId); + $properties->purchaseOrderNumber = Schema::string(); + $properties->purchaseOrderNumber->maxLength = 30; + $ownerSchema->addPropertyMapping('PurchaseOrderNumber', self::names()->purchaseOrderNumber); + $properties->recordType = Schema::string(); + $ownerSchema->addPropertyMapping('RecordType', self::names()->recordType); + $properties->dateTimeQualifier1 = Schema::string(); + $ownerSchema->addPropertyMapping('DateTimeQualifier1', self::names()->dateTimeQualifier1); + $properties->date1 = Schema::string(); + $properties->date1->format = "date"; + $ownerSchema->addPropertyMapping('Date1', self::names()->date1); + $properties->time1 = Schema::string(); + $properties->time1->format = "time"; + $ownerSchema->addPropertyMapping('Time1', self::names()->time1); + $properties->timeCode1 = Schema::string(); + $ownerSchema->addPropertyMapping('TimeCode1', self::names()->timeCode1); + $properties->dateTimeFormQualifier1 = Schema::string(); + $ownerSchema->addPropertyMapping('DateTimeFormQualifier1', self::names()->dateTimeFormQualifier1); + $properties->dateTimePeriod = Schema::string(); + $ownerSchema->addPropertyMapping('DateTimePeriod', self::names()->dateTimePeriod); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->required = array( + 'DateTimeQualifier1', + 'Date1', + ); + } +} \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItemsReferenceIdentificationsItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItemsReferenceIdentificationsItems.php new file mode 100644 index 0000000..41121c0 --- /dev/null +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItemsReferenceIdentificationsItems.php @@ -0,0 +1,111 @@ +tradingPartnerId = Schema::string(); + $ownerSchema->addPropertyMapping('TradingPartnerId', self::names()->tradingPartnerId); + $properties->documentId = Schema::string(); + $properties->documentId->maxLength = 30; + $ownerSchema->addPropertyMapping('DocumentId', self::names()->documentId); + $properties->purchaseOrderNumber = Schema::string(); + $properties->purchaseOrderNumber->maxLength = 30; + $ownerSchema->addPropertyMapping('PurchaseOrderNumber', self::names()->purchaseOrderNumber); + $properties->recordType = Schema::string(); + $ownerSchema->addPropertyMapping('RecordType', self::names()->recordType); + $properties->referenceQual1 = Schema::string(); + $ownerSchema->addPropertyMapping('ReferenceQual1', self::names()->referenceQual1); + $properties->referenceID1 = Schema::string(); + $ownerSchema->addPropertyMapping('ReferenceID1', self::names()->referenceID1); + $properties->description = Schema::string(); + $ownerSchema->addPropertyMapping('Description', self::names()->description); + $properties->date1 = Schema::string(); + $properties->date1->format = "date"; + $ownerSchema->addPropertyMapping('Date1', self::names()->date1); + $properties->time1 = Schema::string(); + $properties->time1->format = "time"; + $ownerSchema->addPropertyMapping('Time1', self::names()->time1); + $properties->timeCode1 = Schema::string(); + $ownerSchema->addPropertyMapping('TimeCode1', self::names()->timeCode1); + $properties->referenceQual2 = Schema::string(); + $ownerSchema->addPropertyMapping('ReferenceQual2', self::names()->referenceQual2); + $properties->referenceID2 = Schema::string(); + $ownerSchema->addPropertyMapping('ReferenceID2', self::names()->referenceID2); + $properties->referenceQual3 = Schema::string(); + $ownerSchema->addPropertyMapping('ReferenceQual3', self::names()->referenceQual3); + $properties->referenceID3 = Schema::string(); + $ownerSchema->addPropertyMapping('ReferenceID3', self::names()->referenceID3); + $properties->referenceQual4 = Schema::string(); + $ownerSchema->addPropertyMapping('ReferenceQual4', self::names()->referenceQual4); + $properties->referenceID4 = Schema::string(); + $ownerSchema->addPropertyMapping('ReferenceID4', self::names()->referenceID4); + $ownerSchema->type = Schema::OBJECT; + $ownerSchema->required = array( + 'ReferenceQual1', + ); + } +} \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItemsReferenceItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItemsReferenceItems.php new file mode 100644 index 0000000..665850b --- /dev/null +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItemsReferenceItems.php @@ -0,0 +1,61 @@ +tradingPartnerId = Schema::string(); + $ownerSchema->addPropertyMapping('TradingPartnerId', self::names()->tradingPartnerId); + $properties->documentId = Schema::string(); + $properties->documentId->maxLength = 30; + $ownerSchema->addPropertyMapping('DocumentId', self::names()->documentId); + $properties->purchaseOrderNumber = Schema::string(); + $properties->purchaseOrderNumber->maxLength = 30; + $ownerSchema->addPropertyMapping('PurchaseOrderNumber', self::names()->purchaseOrderNumber); + $properties->recordType = Schema::string(); + $ownerSchema->addPropertyMapping('RecordType', self::names()->recordType); + $properties->referenceQual = Schema::string(); + $ownerSchema->addPropertyMapping('ReferenceQual', self::names()->referenceQual); + $properties->referenceID = Schema::string(); + $ownerSchema->addPropertyMapping('ReferenceID', self::names()->referenceID); + $properties->description = Schema::string(); + $ownerSchema->addPropertyMapping('Description', self::names()->description); + $ownerSchema->type = Schema::OBJECT; + } +} \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsDateItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsDateItems.php index 7bc1c7e..8b55639 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsDateItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsDateItems.php @@ -19,6 +19,9 @@ class LineItemsLineItemItemsDateItems extends ClassStructure /** @var string */ public $documentId; + /** @var string */ + public $purchaseOrderNumber; + /** @var string */ public $recordType; @@ -37,6 +40,9 @@ class LineItemsLineItemItemsDateItems extends ClassStructure /** @var string */ public $dateTimeFormQualifier1; + /** @var string */ + public $dateTimePeriod; + /** * @param Properties|static $properties * @param Schema $ownerSchema @@ -46,29 +52,31 @@ public static function setUpProperties($properties, Schema $ownerSchema) $properties->tradingPartnerId = Schema::string(); $ownerSchema->addPropertyMapping('TradingPartnerId', self::names()->tradingPartnerId); $properties->documentId = Schema::string(); + $properties->documentId->maxLength = 30; $ownerSchema->addPropertyMapping('DocumentId', self::names()->documentId); + $properties->purchaseOrderNumber = Schema::string(); + $properties->purchaseOrderNumber->maxLength = 30; + $ownerSchema->addPropertyMapping('PurchaseOrderNumber', self::names()->purchaseOrderNumber); $properties->recordType = Schema::string(); $ownerSchema->addPropertyMapping('RecordType', self::names()->recordType); $properties->dateTimeQualifier1 = Schema::string(); $ownerSchema->addPropertyMapping('DateTimeQualifier1', self::names()->dateTimeQualifier1); $properties->date1 = Schema::string(); + $properties->date1->format = "date"; $ownerSchema->addPropertyMapping('Date1', self::names()->date1); $properties->time1 = Schema::string(); + $properties->time1->format = "time"; $ownerSchema->addPropertyMapping('Time1', self::names()->time1); $properties->timeCode1 = Schema::string(); $ownerSchema->addPropertyMapping('TimeCode1', self::names()->timeCode1); $properties->dateTimeFormQualifier1 = Schema::string(); $ownerSchema->addPropertyMapping('DateTimeFormQualifier1', self::names()->dateTimeFormQualifier1); + $properties->dateTimePeriod = Schema::string(); + $ownerSchema->addPropertyMapping('DateTimePeriod', self::names()->dateTimePeriod); $ownerSchema->type = Schema::OBJECT; $ownerSchema->required = array( - 'TradingPartnerId', - 'DocumentId', - 'RecordType', 'DateTimeQualifier1', 'Date1', - 'Time1', - 'TimeCode1', - 'DateTimeFormQualifier1', ); } } \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsItemDetail.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsItemDetail.php index 52427b2..28e9bde 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsItemDetail.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsItemDetail.php @@ -19,12 +19,18 @@ class LineItemsLineItemItemsItemDetail extends ClassStructure /** @var string */ public $documentId; + /** @var string */ + public $purchaseOrderNumber; + /** @var string */ public $recordType; /** @var string */ public $lineSequenceNumber; + /** @var string */ + public $applicationId; + /** @var string */ public $buyerPartNumber; @@ -67,6 +73,42 @@ class LineItemsLineItemItemsItemDetail extends ClassStructure /** @var string */ public $partNumber4; + /** @var string */ + public $partNumberQualifier5; + + /** @var string */ + public $partNumber5; + + /** @var string */ + public $partNumberQualifier6; + + /** @var string */ + public $partNumber6; + + /** @var string */ + public $partNumberQualifier7; + + /** @var string */ + public $partNumber7; + + /** @var string */ + public $partNumberQualifier8; + + /** @var string */ + public $partNumber8; + + /** @var string */ + public $partNumberQualifier9; + + /** @var string */ + public $partNumber9; + + /** @var string */ + public $partNumberQualifier10; + + /** @var string */ + public $partNumber10; + /** @var string */ public $partDescription1; @@ -118,11 +160,17 @@ public static function setUpProperties($properties, Schema $ownerSchema) $properties->tradingPartnerId = Schema::string(); $ownerSchema->addPropertyMapping('TradingPartnerId', self::names()->tradingPartnerId); $properties->documentId = Schema::string(); + $properties->documentId->maxLength = 30; $ownerSchema->addPropertyMapping('DocumentId', self::names()->documentId); + $properties->purchaseOrderNumber = Schema::string(); + $properties->purchaseOrderNumber->maxLength = 30; + $ownerSchema->addPropertyMapping('PurchaseOrderNumber', self::names()->purchaseOrderNumber); $properties->recordType = Schema::string(); $ownerSchema->addPropertyMapping('RecordType', self::names()->recordType); $properties->lineSequenceNumber = Schema::string(); $ownerSchema->addPropertyMapping('LineSequenceNumber', self::names()->lineSequenceNumber); + $properties->applicationId = Schema::string(); + $ownerSchema->addPropertyMapping('ApplicationId', self::names()->applicationId); $properties->buyerPartNumber = Schema::string(); $ownerSchema->addPropertyMapping('BuyerPartNumber', self::names()->buyerPartNumber); $properties->vendorPartNumber = Schema::string(); @@ -151,6 +199,30 @@ public static function setUpProperties($properties, Schema $ownerSchema) $ownerSchema->addPropertyMapping('PartNumberQualifier4', self::names()->partNumberQualifier4); $properties->partNumber4 = Schema::string(); $ownerSchema->addPropertyMapping('PartNumber4', self::names()->partNumber4); + $properties->partNumberQualifier5 = Schema::string(); + $ownerSchema->addPropertyMapping('PartNumberQualifier5', self::names()->partNumberQualifier5); + $properties->partNumber5 = Schema::string(); + $ownerSchema->addPropertyMapping('PartNumber5', self::names()->partNumber5); + $properties->partNumberQualifier6 = Schema::string(); + $ownerSchema->addPropertyMapping('PartNumberQualifier6', self::names()->partNumberQualifier6); + $properties->partNumber6 = Schema::string(); + $ownerSchema->addPropertyMapping('PartNumber6', self::names()->partNumber6); + $properties->partNumberQualifier7 = Schema::string(); + $ownerSchema->addPropertyMapping('PartNumberQualifier7', self::names()->partNumberQualifier7); + $properties->partNumber7 = Schema::string(); + $ownerSchema->addPropertyMapping('PartNumber7', self::names()->partNumber7); + $properties->partNumberQualifier8 = Schema::string(); + $ownerSchema->addPropertyMapping('PartNumberQualifier8', self::names()->partNumberQualifier8); + $properties->partNumber8 = Schema::string(); + $ownerSchema->addPropertyMapping('PartNumber8', self::names()->partNumber8); + $properties->partNumberQualifier9 = Schema::string(); + $ownerSchema->addPropertyMapping('PartNumberQualifier9', self::names()->partNumberQualifier9); + $properties->partNumber9 = Schema::string(); + $ownerSchema->addPropertyMapping('PartNumber9', self::names()->partNumber9); + $properties->partNumberQualifier10 = Schema::string(); + $ownerSchema->addPropertyMapping('PartNumberQualifier10', self::names()->partNumberQualifier10); + $properties->partNumber10 = Schema::string(); + $ownerSchema->addPropertyMapping('PartNumber10', self::names()->partNumber10); $properties->partDescription1 = Schema::string(); $ownerSchema->addPropertyMapping('PartDescription1', self::names()->partDescription1); $properties->partDescription2 = Schema::string(); @@ -181,38 +253,9 @@ public static function setUpProperties($properties, Schema $ownerSchema) $ownerSchema->addPropertyMapping('ExtendedItemTotal', self::names()->extendedItemTotal); $ownerSchema->type = Schema::OBJECT; $ownerSchema->required = array( - 'TradingPartnerId', - 'DocumentId', - 'RecordType', - 'LineSequenceNumber', - 'BuyerPartNumber', - 'VendorPartNumber', - 'ConsumerPackageCode', - 'GTIN', - 'UPCCaseCode', - 'NatlDrugCode', - 'PartNumberQualifier1', - 'PartNumber1', - 'PartNumberQualifier2', - 'PartNumber2', - 'PartNumberQualifier3', - 'PartNumber3', - 'PartNumberQualifier4', - 'PartNumber4', - 'PartDescription1', - 'PartDescription2', 'AdjReasonCode', 'QtyAdjusted', 'QtyAdjustedUOM', - 'WarehouseLotID', - 'Weight1', - 'WeightQualifier1', - 'WeightUOM1', - 'Weight2', - 'WeightQualifier2', - 'WeightUOM2', - 'InventoryTransaction', - 'ExtendedItemTotal', ); } } \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsMiscellaneousItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsMiscellaneousItems.php index e7e963d..6922177 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsMiscellaneousItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsMiscellaneousItems.php @@ -19,6 +19,9 @@ class LineItemsLineItemItemsMiscellaneousItems extends ClassStructure /** @var string */ public $documentId; + /** @var string */ + public $purchaseOrderNumber; + /** @var string */ public $recordType; @@ -43,7 +46,11 @@ public static function setUpProperties($properties, Schema $ownerSchema) $properties->tradingPartnerId = Schema::string(); $ownerSchema->addPropertyMapping('TradingPartnerId', self::names()->tradingPartnerId); $properties->documentId = Schema::string(); + $properties->documentId->maxLength = 30; $ownerSchema->addPropertyMapping('DocumentId', self::names()->documentId); + $properties->purchaseOrderNumber = Schema::string(); + $properties->purchaseOrderNumber->maxLength = 30; + $ownerSchema->addPropertyMapping('PurchaseOrderNumber', self::names()->purchaseOrderNumber); $properties->recordType = Schema::string(); $ownerSchema->addPropertyMapping('RecordType', self::names()->recordType); $properties->qualifier1 = Schema::string(); @@ -55,14 +62,5 @@ public static function setUpProperties($properties, Schema $ownerSchema) $properties->description2 = Schema::string(); $ownerSchema->addPropertyMapping('Description2', self::names()->description2); $ownerSchema->type = Schema::OBJECT; - $ownerSchema->required = array( - 'TradingPartnerId', - 'DocumentId', - 'RecordType', - 'Qualifier1', - 'Description1', - 'Qualifier2', - 'Description2', - ); } } \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsReferenceItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsReferenceItems.php index e435aaf..8b54903 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsReferenceItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsReferenceItems.php @@ -19,6 +19,9 @@ class LineItemsLineItemItemsReferenceItems extends ClassStructure /** @var string */ public $documentId; + /** @var string */ + public $purchaseOrderNumber; + /** @var string */ public $recordType; @@ -40,7 +43,11 @@ public static function setUpProperties($properties, Schema $ownerSchema) $properties->tradingPartnerId = Schema::string(); $ownerSchema->addPropertyMapping('TradingPartnerId', self::names()->tradingPartnerId); $properties->documentId = Schema::string(); + $properties->documentId->maxLength = 30; $ownerSchema->addPropertyMapping('DocumentId', self::names()->documentId); + $properties->purchaseOrderNumber = Schema::string(); + $properties->purchaseOrderNumber->maxLength = 30; + $ownerSchema->addPropertyMapping('PurchaseOrderNumber', self::names()->purchaseOrderNumber); $properties->recordType = Schema::string(); $ownerSchema->addPropertyMapping('RecordType', self::names()->recordType); $properties->referenceQual = Schema::string(); @@ -50,13 +57,5 @@ public static function setUpProperties($properties, Schema $ownerSchema) $properties->description = Schema::string(); $ownerSchema->addPropertyMapping('Description', self::names()->description); $ownerSchema->type = Schema::OBJECT; - $ownerSchema->required = array( - 'TradingPartnerId', - 'DocumentId', - 'RecordType', - 'ReferenceQual', - 'ReferenceID', - 'Description', - ); } } \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/Meta.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/Meta.php new file mode 100644 index 0000000..d534fe9 --- /dev/null +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/Meta.php @@ -0,0 +1,146 @@ +tradingPartnerId = Schema::string(); + $ownerSchema->addPropertyMapping('TradingPartnerId', self::names()->tradingPartnerId); + $properties->documentId = Schema::string(); + $properties->documentId->maxLength = 30; + $ownerSchema->addPropertyMapping('DocumentId', self::names()->documentId); + $properties->purchaseOrderNumber = Schema::string(); + $properties->purchaseOrderNumber->maxLength = 30; + $ownerSchema->addPropertyMapping('PurchaseOrderNumber', self::names()->purchaseOrderNumber); + $properties->recordType = Schema::string(); + $ownerSchema->addPropertyMapping('RecordType', self::names()->recordType); + $properties->senderUniqueID = Schema::integer(); + $ownerSchema->addPropertyMapping('SenderUniqueID', self::names()->senderUniqueID); + $properties->senderCompanyName = Schema::string(); + $ownerSchema->addPropertyMapping('SenderCompanyName', self::names()->senderCompanyName); + $properties->receiverUniqueID = Schema::integer(); + $ownerSchema->addPropertyMapping('ReceiverUniqueID', self::names()->receiverUniqueID); + $properties->receiverCompanyName = Schema::string(); + $ownerSchema->addPropertyMapping('ReceiverCompanyName', self::names()->receiverCompanyName); + $properties->isDropShip = Schema::boolean(); + $ownerSchema->addPropertyMapping('IsDropShip', self::names()->isDropShip); + $properties->interchangeControlNumber = Schema::string(); + $ownerSchema->addPropertyMapping('InterchangeControlNumber', self::names()->interchangeControlNumber); + $properties->groupControlIdentifier = Schema::string(); + $ownerSchema->addPropertyMapping('GroupControlIdentifier', self::names()->groupControlIdentifier); + $properties->groupControlNumber = Schema::string(); + $ownerSchema->addPropertyMapping('GroupControlNumber', self::names()->groupControlNumber); + $properties->documentControlIdentifier = Schema::string(); + $ownerSchema->addPropertyMapping('DocumentControlIdentifier', self::names()->documentControlIdentifier); + $properties->documentControlNumber = Schema::string(); + $ownerSchema->addPropertyMapping('DocumentControlNumber', self::names()->documentControlNumber); + $properties->interchangeSenderID = Schema::string(); + $ownerSchema->addPropertyMapping('InterchangeSenderID', self::names()->interchangeSenderID); + $properties->interchangeReceiverID = Schema::string(); + $ownerSchema->addPropertyMapping('InterchangeReceiverID', self::names()->interchangeReceiverID); + $properties->groupSenderID = Schema::string(); + $ownerSchema->addPropertyMapping('GroupSenderID', self::names()->groupSenderID); + $properties->groupReceiverID = Schema::string(); + $ownerSchema->addPropertyMapping('GroupReceiverID', self::names()->groupReceiverID); + $properties->batchPart = Schema::integer(); + $ownerSchema->addPropertyMapping('BatchPart', self::names()->batchPart); + $properties->batchTotal = Schema::integer(); + $ownerSchema->addPropertyMapping('BatchTotal', self::names()->batchTotal); + $properties->batchID = Schema::string(); + $ownerSchema->addPropertyMapping('BatchID', self::names()->batchID); + $properties->comments = Schema::string(); + $ownerSchema->addPropertyMapping('Comments', self::names()->comments); + $properties->validation = Schema::string(); + $ownerSchema->addPropertyMapping('Validation', self::names()->validation); + $properties->orderManagement = Schema::string(); + $ownerSchema->addPropertyMapping('OrderManagement', self::names()->orderManagement); + $ownerSchema->type = Schema::OBJECT; + } +} \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/Property01abfc.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/Property01abfc.php index c0b598e..09dd264 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/Property01abfc.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/Property01abfc.php @@ -12,11 +12,14 @@ /** - * Generated schema for Root + * WarehouseInventoryAdjustmentAdvice * Built from WarehouseInventoryAdjustmentAdvices.json# */ class Property01abfc extends ClassStructure { + /** @var Meta */ + public $meta; + /** @var Header */ public $header; @@ -32,6 +35,8 @@ class Property01abfc extends ClassStructure */ public static function setUpProperties($properties, Schema $ownerSchema) { + $properties->meta = Meta::schema(); + $ownerSchema->addPropertyMapping('Meta', self::names()->meta); $properties->header = Header::schema(); $ownerSchema->addPropertyMapping('Header', self::names()->header); $properties->lineItems = LineItems::schema(); @@ -40,7 +45,7 @@ public static function setUpProperties($properties, Schema $ownerSchema) $ownerSchema->addPropertyMapping('Summary', self::names()->summary); $ownerSchema->type = Schema::OBJECT; $ownerSchema->schema = "http://json-schema.org/draft-07/schema#"; - $ownerSchema->title = "Generated schema for Root"; + $ownerSchema->title = "WarehouseInventoryAdjustmentAdvice"; $ownerSchema->required = array( 'Header', 'LineItems', diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/Summary.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/Summary.php index 346ad39..f77f7ae 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/Summary.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/Summary.php @@ -19,6 +19,9 @@ class Summary extends ClassStructure /** @var string */ public $documentId; + /** @var string */ + public $purchaseOrderNumber; + /** @var string */ public $recordType; @@ -46,7 +49,11 @@ public static function setUpProperties($properties, Schema $ownerSchema) $properties->tradingPartnerId = Schema::string(); $ownerSchema->addPropertyMapping('TradingPartnerId', self::names()->tradingPartnerId); $properties->documentId = Schema::string(); + $properties->documentId->maxLength = 30; $ownerSchema->addPropertyMapping('DocumentId', self::names()->documentId); + $properties->purchaseOrderNumber = Schema::string(); + $properties->purchaseOrderNumber->maxLength = 30; + $ownerSchema->addPropertyMapping('PurchaseOrderNumber', self::names()->purchaseOrderNumber); $properties->recordType = Schema::string(); $ownerSchema->addPropertyMapping('RecordType', self::names()->recordType); $properties->totalOrders = Schema::number(); @@ -60,15 +67,5 @@ public static function setUpProperties($properties, Schema $ownerSchema) $properties->volumeUOM = Schema::string(); $ownerSchema->addPropertyMapping('VolumeUOM', self::names()->volumeUOM); $ownerSchema->type = Schema::OBJECT; - $ownerSchema->required = array( - 'TradingPartnerId', - 'DocumentId', - 'RecordType', - 'TotalOrders', - 'TotalWeight', - 'WeightUOM', - 'TotalVolume', - 'VolumeUOM', - ); } } \ No newline at end of file From c338b5f91354eaf93cb4a688bf32a994e1ecd570 Mon Sep 17 00:00:00 2001 From: Rob Wigginton <8102829+bob2021@users.noreply.github.com> Date: Tue, 31 Mar 2026 13:09:21 +0100 Subject: [PATCH 5/7] Add known enums to 947 schema. --- .../WarehouseInventoryAdjustmentAdvices.json | 18 +- .../LineItemsLineItemItemsItemDetail.php | 166 ++++++++++++++++++ 2 files changed, 182 insertions(+), 2 deletions(-) diff --git a/json-schema/v710/WarehouseInventoryAdjustmentAdvices.json b/json-schema/v710/WarehouseInventoryAdjustmentAdvices.json index 7886261..939eca8 100644 --- a/json-schema/v710/WarehouseInventoryAdjustmentAdvices.json +++ b/json-schema/v710/WarehouseInventoryAdjustmentAdvices.json @@ -730,13 +730,27 @@ "type": "string" }, "AdjReasonCode": { - "type": "string" + "type": "string", + "enum": [ + "03", "04", "05", "06", "07", "08", + "51", "52", "53", "54", "55", "56", + "88", + "AA", "AB", "AC", "AD", "AE", "AF", + "AG", "AH", "AI", "AJ", "AK", "AL", + "AM", "AN", "AP", "AQ", "AR", "AS", + "AT", "AU", "AV", "AW", "AX", "AY", + "BA", "BD", "BK", "BM", "BN", "BR", + "BS", "BT", + "CD", "CO", "CR", "CS", + "PC", "TC", "UD" + ] }, "QtyAdjusted": { "type": "number" }, "QtyAdjustedUOM": { - "type": "string" + "type": "string", + "enum": ["EA", "CA"] }, "WarehouseLotID": { "type": "string" diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsItemDetail.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsItemDetail.php index 28e9bde..7a38e17 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsItemDetail.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsItemDetail.php @@ -13,6 +13,114 @@ class LineItemsLineItemItemsItemDetail extends ClassStructure { + const CONST_03 = '03'; + + const CONST_04 = '04'; + + const CONST_05 = '05'; + + const CONST_06 = '06'; + + const CONST_07 = '07'; + + const CONST_08 = '08'; + + const CONST_51 = '51'; + + const CONST_52 = '52'; + + const CONST_53 = '53'; + + const CONST_54 = '54'; + + const CONST_55 = '55'; + + const CONST_56 = '56'; + + const CONST_88 = '88'; + + const AA = 'AA'; + + const AB = 'AB'; + + const AC = 'AC'; + + const AD = 'AD'; + + const AE = 'AE'; + + const AF = 'AF'; + + const AG = 'AG'; + + const AH = 'AH'; + + const AI = 'AI'; + + const AJ = 'AJ'; + + const AK = 'AK'; + + const AL = 'AL'; + + const AM = 'AM'; + + const AN = 'AN'; + + const AP = 'AP'; + + const AQ = 'AQ'; + + const AR = 'AR'; + + const _AS = 'AS'; + + const AT = 'AT'; + + const AU = 'AU'; + + const AV = 'AV'; + + const AW = 'AW'; + + const AX = 'AX'; + + const AY = 'AY'; + + const BA = 'BA'; + + const BD = 'BD'; + + const BK = 'BK'; + + const BM = 'BM'; + + const BN = 'BN'; + + const BR = 'BR'; + + const BS = 'BS'; + + const BT = 'BT'; + + const CD = 'CD'; + + const CO = 'CO'; + + const CR = 'CR'; + + const CS = 'CS'; + + const PC = 'PC'; + + const TC = 'TC'; + + const UD = 'UD'; + + const EA = 'EA'; + + const CA = 'CA'; + /** @var string */ public $tradingPartnerId; @@ -228,10 +336,68 @@ public static function setUpProperties($properties, Schema $ownerSchema) $properties->partDescription2 = Schema::string(); $ownerSchema->addPropertyMapping('PartDescription2', self::names()->partDescription2); $properties->adjReasonCode = Schema::string(); + $properties->adjReasonCode->enum = array( + self::CONST_03, + self::CONST_04, + self::CONST_05, + self::CONST_06, + self::CONST_07, + self::CONST_08, + self::CONST_51, + self::CONST_52, + self::CONST_53, + self::CONST_54, + self::CONST_55, + self::CONST_56, + self::CONST_88, + self::AA, + self::AB, + self::AC, + self::AD, + self::AE, + self::AF, + self::AG, + self::AH, + self::AI, + self::AJ, + self::AK, + self::AL, + self::AM, + self::AN, + self::AP, + self::AQ, + self::AR, + self::_AS, + self::AT, + self::AU, + self::AV, + self::AW, + self::AX, + self::AY, + self::BA, + self::BD, + self::BK, + self::BM, + self::BN, + self::BR, + self::BS, + self::BT, + self::CD, + self::CO, + self::CR, + self::CS, + self::PC, + self::TC, + self::UD, + ); $ownerSchema->addPropertyMapping('AdjReasonCode', self::names()->adjReasonCode); $properties->qtyAdjusted = Schema::number(); $ownerSchema->addPropertyMapping('QtyAdjusted', self::names()->qtyAdjusted); $properties->qtyAdjustedUOM = Schema::string(); + $properties->qtyAdjustedUOM->enum = array( + self::EA, + self::CA, + ); $ownerSchema->addPropertyMapping('QtyAdjustedUOM', self::names()->qtyAdjustedUOM); $properties->warehouseLotID = Schema::string(); $ownerSchema->addPropertyMapping('WarehouseLotID', self::names()->warehouseLotID); From 6a9c90f991124b98048b56d51c87bf172dca02df Mon Sep 17 00:00:00 2001 From: Rob Wigginton <8102829+bob2021@users.noreply.github.com> Date: Tue, 31 Mar 2026 14:26:45 +0100 Subject: [PATCH 6/7] Patch 7.1.0 schema to fix file names. --- generate.sh | 11 +++++-- ...=> WarehouseInventoryAdjustmentAdvice.php} | 25 +++++++--------- ...ehouseInventoryAdjustmentAdviceHeader.php} | 30 +++++++++---------- ...oryAdjustmentAdviceHeaderAddressItems.php} | 18 +++++------ ...tAdviceHeaderAddressItemsContactItems.php} | 2 +- ...mentAdviceHeaderAddressItemsDateItems.php} | 2 +- ...essItemsReferenceIdentificationsItems.php} | 2 +- ...dviceHeaderAddressItemsReferenceItems.php} | 2 +- ...oryAdjustmentAdviceHeaderContactItems.php} | 2 +- ...entoryAdjustmentAdviceHeaderDateItems.php} | 2 +- ...toryAdjustmentAdviceHeaderHeaderOrder.php} | 2 +- ...ustmentAdviceHeaderMiscellaneousItems.php} | 2 +- ...ntoryAdjustmentAdviceHeaderNotesItems.php} | 2 +- ...yAdjustmentAdviceHeaderReferenceItems.php} | 2 +- ...useInventoryAdjustmentAdviceLineItems.php} | 6 ++-- ...djustmentAdviceLineItemsLineItemItems.php} | 22 +++++++------- ...iceLineItemsLineItemItemsAddressItems.php} | 18 +++++------ ...LineItemItemsAddressItemsContactItems.php} | 2 +- ...emsLineItemItemsAddressItemsDateItems.php} | 2 +- ...essItemsReferenceIdentificationsItems.php} | 2 +- ...neItemItemsAddressItemsReferenceItems.php} | 2 +- ...AdviceLineItemsLineItemItemsDateItems.php} | 2 +- ...dviceLineItemsLineItemItemsItemDetail.php} | 2 +- ...eItemsLineItemItemsMiscellaneousItems.php} | 2 +- ...eLineItemsLineItemItemsReferenceItems.php} | 2 +- ...arehouseInventoryAdjustmentAdviceMeta.php} | 2 +- ...houseInventoryAdjustmentAdviceSummary.php} | 2 +- 27 files changed, 87 insertions(+), 83 deletions(-) rename src/RSX/v710/WarehouseInventoryAdjustmentAdvices/{Property01abfc.php => WarehouseInventoryAdjustmentAdvice.php} (61%) rename src/RSX/v710/WarehouseInventoryAdjustmentAdvices/{Header.php => WarehouseInventoryAdjustmentAdviceHeader.php} (60%) rename src/RSX/v710/WarehouseInventoryAdjustmentAdvices/{HeaderAddressItems.php => WarehouseInventoryAdjustmentAdviceHeaderAddressItems.php} (87%) rename src/RSX/v710/WarehouseInventoryAdjustmentAdvices/{HeaderAddressItemsContactItems.php => WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactItems.php} (96%) rename src/RSX/v710/WarehouseInventoryAdjustmentAdvices/{HeaderDateItems.php => WarehouseInventoryAdjustmentAdviceHeaderAddressItemsDateItems.php} (96%) rename src/RSX/v710/WarehouseInventoryAdjustmentAdvices/{HeaderAddressItemsReferenceIdentificationsItems.php => WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferenceIdentificationsItems.php} (97%) rename src/RSX/v710/WarehouseInventoryAdjustmentAdvices/{LineItemsLineItemItemsAddressItemsReferenceItems.php => WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferenceItems.php} (95%) rename src/RSX/v710/WarehouseInventoryAdjustmentAdvices/{HeaderContactItems.php => WarehouseInventoryAdjustmentAdviceHeaderContactItems.php} (97%) rename src/RSX/v710/WarehouseInventoryAdjustmentAdvices/{LineItemsLineItemItemsDateItems.php => WarehouseInventoryAdjustmentAdviceHeaderDateItems.php} (97%) rename src/RSX/v710/WarehouseInventoryAdjustmentAdvices/{HeaderHeaderOrder.php => WarehouseInventoryAdjustmentAdviceHeaderHeaderOrder.php} (97%) rename src/RSX/v710/WarehouseInventoryAdjustmentAdvices/{LineItemsLineItemItemsMiscellaneousItems.php => WarehouseInventoryAdjustmentAdviceHeaderMiscellaneousItems.php} (96%) rename src/RSX/v710/WarehouseInventoryAdjustmentAdvices/{HeaderNotesItems.php => WarehouseInventoryAdjustmentAdviceHeaderNotesItems.php} (97%) rename src/RSX/v710/WarehouseInventoryAdjustmentAdvices/{HeaderAddressItemsReferenceItems.php => WarehouseInventoryAdjustmentAdviceHeaderReferenceItems.php} (96%) rename src/RSX/v710/WarehouseInventoryAdjustmentAdvices/{LineItems.php => WarehouseInventoryAdjustmentAdviceLineItems.php} (77%) rename src/RSX/v710/WarehouseInventoryAdjustmentAdvices/{LineItemsLineItemItems.php => WarehouseInventoryAdjustmentAdviceLineItemsLineItemItems.php} (58%) rename src/RSX/v710/WarehouseInventoryAdjustmentAdvices/{LineItemsLineItemItemsAddressItems.php => WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItems.php} (85%) rename src/RSX/v710/WarehouseInventoryAdjustmentAdvices/{LineItemsLineItemItemsAddressItemsContactItems.php => WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsContactItems.php} (96%) rename src/RSX/v710/WarehouseInventoryAdjustmentAdvices/{HeaderAddressItemsDateItems.php => WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsDateItems.php} (96%) rename src/RSX/v710/WarehouseInventoryAdjustmentAdvices/{LineItemsLineItemItemsAddressItemsReferenceIdentificationsItems.php => WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferenceIdentificationsItems.php} (96%) rename src/RSX/v710/WarehouseInventoryAdjustmentAdvices/{LineItemsLineItemItemsReferenceItems.php => WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferenceItems.php} (95%) rename src/RSX/v710/WarehouseInventoryAdjustmentAdvices/{LineItemsLineItemItemsAddressItemsDateItems.php => WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsDateItems.php} (96%) rename src/RSX/v710/WarehouseInventoryAdjustmentAdvices/{LineItemsLineItemItemsItemDetail.php => WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsItemDetail.php} (99%) rename src/RSX/v710/WarehouseInventoryAdjustmentAdvices/{HeaderMiscellaneousItems.php => WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsMiscellaneousItems.php} (95%) rename src/RSX/v710/WarehouseInventoryAdjustmentAdvices/{HeaderReferenceItems.php => WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsReferenceItems.php} (95%) rename src/RSX/v710/WarehouseInventoryAdjustmentAdvices/{Meta.php => WarehouseInventoryAdjustmentAdviceMeta.php} (98%) rename src/RSX/v710/WarehouseInventoryAdjustmentAdvices/{Summary.php => WarehouseInventoryAdjustmentAdviceSummary.php} (97%) diff --git a/generate.sh b/generate.sh index f1a243e..4cd6ba9 100755 --- a/generate.sh +++ b/generate.sh @@ -29,13 +29,20 @@ for version in "${versions[@]}"; do echo "Generating $class classes for $version/$file schema" mkdir -p src/RSX/$version/$name if [[ "$version" == "v710" ]]; then + # Older schema format without definitions block — use a patch to wrap it + patch=$(mktemp -p .) + cat > "$patch" <meta = Meta::schema(); + $properties->meta = WarehouseInventoryAdjustmentAdviceMeta::schema(); $ownerSchema->addPropertyMapping('Meta', self::names()->meta); - $properties->header = Header::schema(); + $properties->header = WarehouseInventoryAdjustmentAdviceHeader::schema(); $ownerSchema->addPropertyMapping('Header', self::names()->header); - $properties->lineItems = LineItems::schema(); + $properties->lineItems = WarehouseInventoryAdjustmentAdviceLineItems::schema(); $ownerSchema->addPropertyMapping('LineItems', self::names()->lineItems); - $properties->summary = Summary::schema(); + $properties->summary = WarehouseInventoryAdjustmentAdviceSummary::schema(); $ownerSchema->addPropertyMapping('Summary', self::names()->summary); $ownerSchema->type = Schema::OBJECT; - $ownerSchema->schema = "http://json-schema.org/draft-07/schema#"; - $ownerSchema->title = "WarehouseInventoryAdjustmentAdvice"; $ownerSchema->required = array( 'Header', 'LineItems', 'Summary', ); - $ownerSchema->setFromRef('WarehouseInventoryAdjustmentAdvices.json#'); + $ownerSchema->setFromRef('WarehouseInventoryAdjustmentAdvices.json#/definitions/WarehouseInventoryAdjustmentAdvice'); } } \ No newline at end of file diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/Header.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeader.php similarity index 60% rename from src/RSX/v710/WarehouseInventoryAdjustmentAdvices/Header.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeader.php index 860d5c6..ba229e3 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/Header.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeader.php @@ -11,27 +11,27 @@ use Swaggest\JsonSchema\Structure\ClassStructure; -class Header extends ClassStructure +class WarehouseInventoryAdjustmentAdviceHeader extends ClassStructure { - /** @var HeaderHeaderOrder */ + /** @var WarehouseInventoryAdjustmentAdviceHeaderHeaderOrder */ public $headerOrder; - /** @var HeaderReferenceItems[]|array */ + /** @var WarehouseInventoryAdjustmentAdviceHeaderReferenceItems[]|array */ public $reference; - /** @var HeaderDateItems[]|array */ + /** @var WarehouseInventoryAdjustmentAdviceHeaderDateItems[]|array */ public $date; - /** @var HeaderContactItems[]|array */ + /** @var WarehouseInventoryAdjustmentAdviceHeaderContactItems[]|array */ public $contact; - /** @var HeaderAddressItems[]|array */ + /** @var WarehouseInventoryAdjustmentAdviceHeaderAddressItems[]|array */ public $address; - /** @var HeaderNotesItems[]|array */ + /** @var WarehouseInventoryAdjustmentAdviceHeaderNotesItems[]|array */ public $notes; - /** @var HeaderMiscellaneousItems[]|array */ + /** @var WarehouseInventoryAdjustmentAdviceHeaderMiscellaneousItems[]|array */ public $miscellaneous; /** @@ -40,30 +40,30 @@ class Header extends ClassStructure */ public static function setUpProperties($properties, Schema $ownerSchema) { - $properties->headerOrder = HeaderHeaderOrder::schema(); + $properties->headerOrder = WarehouseInventoryAdjustmentAdviceHeaderHeaderOrder::schema(); $ownerSchema->addPropertyMapping('HeaderOrder', self::names()->headerOrder); $properties->reference = Schema::arr(); - $properties->reference->items = HeaderReferenceItems::schema(); + $properties->reference->items = WarehouseInventoryAdjustmentAdviceHeaderReferenceItems::schema(); $properties->reference->maxItems = 10; $ownerSchema->addPropertyMapping('Reference', self::names()->reference); $properties->date = Schema::arr(); - $properties->date->items = HeaderDateItems::schema(); + $properties->date->items = WarehouseInventoryAdjustmentAdviceHeaderDateItems::schema(); $properties->date->maxItems = 5; $ownerSchema->addPropertyMapping('Date', self::names()->date); $properties->contact = Schema::arr(); - $properties->contact->items = HeaderContactItems::schema(); + $properties->contact->items = WarehouseInventoryAdjustmentAdviceHeaderContactItems::schema(); $properties->contact->maxItems = 3; $ownerSchema->addPropertyMapping('Contact', self::names()->contact); $properties->address = Schema::arr(); - $properties->address->items = HeaderAddressItems::schema(); + $properties->address->items = WarehouseInventoryAdjustmentAdviceHeaderAddressItems::schema(); $properties->address->maxItems = 100; $ownerSchema->addPropertyMapping('Address', self::names()->address); $properties->notes = Schema::arr(); - $properties->notes->items = HeaderNotesItems::schema(); + $properties->notes->items = WarehouseInventoryAdjustmentAdviceHeaderNotesItems::schema(); $properties->notes->maxItems = 20; $ownerSchema->addPropertyMapping('Notes', self::names()->notes); $properties->miscellaneous = Schema::arr(); - $properties->miscellaneous->items = HeaderMiscellaneousItems::schema(); + $properties->miscellaneous->items = WarehouseInventoryAdjustmentAdviceHeaderMiscellaneousItems::schema(); $ownerSchema->addPropertyMapping('Miscellaneous', self::names()->miscellaneous); $ownerSchema->type = Schema::OBJECT; $ownerSchema->required = array( diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItems.php similarity index 87% rename from src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItems.php index 3793a6d..16dd152 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItems.php @@ -11,7 +11,7 @@ use Swaggest\JsonSchema\Structure\ClassStructure; -class HeaderAddressItems extends ClassStructure +class WarehouseInventoryAdjustmentAdviceHeaderAddressItems extends ClassStructure { /** @var string */ public $tradingPartnerId; @@ -91,16 +91,16 @@ class HeaderAddressItems extends ClassStructure /** @var string */ public $addressAlternateName2; - /** @var HeaderAddressItemsReferenceIdentificationsItems[]|array */ + /** @var WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferenceIdentificationsItems[]|array */ public $referenceIdentifications; - /** @var HeaderAddressItemsReferenceItems[]|array */ + /** @var WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferenceItems[]|array */ public $reference; - /** @var HeaderAddressItemsContactItems[]|array */ + /** @var WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactItems[]|array */ public $contact; - /** @var HeaderAddressItemsDateItems[]|array */ + /** @var WarehouseInventoryAdjustmentAdviceHeaderAddressItemsDateItems[]|array */ public $date; /** @@ -164,16 +164,16 @@ public static function setUpProperties($properties, Schema $ownerSchema) $properties->addressAlternateName2 = Schema::string(); $ownerSchema->addPropertyMapping('AddressAlternateName2', self::names()->addressAlternateName2); $properties->referenceIdentifications = Schema::arr(); - $properties->referenceIdentifications->items = HeaderAddressItemsReferenceIdentificationsItems::schema(); + $properties->referenceIdentifications->items = WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferenceIdentificationsItems::schema(); $ownerSchema->addPropertyMapping('ReferenceIdentifications', self::names()->referenceIdentifications); $properties->reference = Schema::arr(); - $properties->reference->items = HeaderAddressItemsReferenceItems::schema(); + $properties->reference->items = WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferenceItems::schema(); $ownerSchema->addPropertyMapping('Reference', self::names()->reference); $properties->contact = Schema::arr(); - $properties->contact->items = HeaderAddressItemsContactItems::schema(); + $properties->contact->items = WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactItems::schema(); $ownerSchema->addPropertyMapping('Contact', self::names()->contact); $properties->date = Schema::arr(); - $properties->date->items = HeaderAddressItemsDateItems::schema(); + $properties->date->items = WarehouseInventoryAdjustmentAdviceHeaderAddressItemsDateItems::schema(); $ownerSchema->addPropertyMapping('Date', self::names()->date); $ownerSchema->type = Schema::OBJECT; $ownerSchema->required = array( diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItemsContactItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactItems.php similarity index 96% rename from src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItemsContactItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactItems.php index 009cc03..d095abf 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItemsContactItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactItems.php @@ -11,7 +11,7 @@ use Swaggest\JsonSchema\Structure\ClassStructure; -class HeaderAddressItemsContactItems extends ClassStructure +class WarehouseInventoryAdjustmentAdviceHeaderAddressItemsContactItems extends ClassStructure { /** @var string */ public $tradingPartnerId; diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderDateItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsDateItems.php similarity index 96% rename from src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderDateItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsDateItems.php index 028a290..f729de9 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderDateItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsDateItems.php @@ -11,7 +11,7 @@ use Swaggest\JsonSchema\Structure\ClassStructure; -class HeaderDateItems extends ClassStructure +class WarehouseInventoryAdjustmentAdviceHeaderAddressItemsDateItems extends ClassStructure { /** @var string */ public $tradingPartnerId; diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItemsReferenceIdentificationsItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferenceIdentificationsItems.php similarity index 97% rename from src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItemsReferenceIdentificationsItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferenceIdentificationsItems.php index 56c140a..e3a0162 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItemsReferenceIdentificationsItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferenceIdentificationsItems.php @@ -11,7 +11,7 @@ use Swaggest\JsonSchema\Structure\ClassStructure; -class HeaderAddressItemsReferenceIdentificationsItems extends ClassStructure +class WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferenceIdentificationsItems extends ClassStructure { /** @var string */ public $tradingPartnerId; diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItemsReferenceItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferenceItems.php similarity index 95% rename from src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItemsReferenceItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferenceItems.php index 665850b..53c76bd 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItemsReferenceItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferenceItems.php @@ -11,7 +11,7 @@ use Swaggest\JsonSchema\Structure\ClassStructure; -class LineItemsLineItemItemsAddressItemsReferenceItems extends ClassStructure +class WarehouseInventoryAdjustmentAdviceHeaderAddressItemsReferenceItems extends ClassStructure { /** @var string */ public $tradingPartnerId; diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderContactItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderContactItems.php similarity index 97% rename from src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderContactItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderContactItems.php index 314127a..eaf3bd2 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderContactItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderContactItems.php @@ -11,7 +11,7 @@ use Swaggest\JsonSchema\Structure\ClassStructure; -class HeaderContactItems extends ClassStructure +class WarehouseInventoryAdjustmentAdviceHeaderContactItems extends ClassStructure { /** @var string */ public $tradingPartnerId; diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsDateItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderDateItems.php similarity index 97% rename from src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsDateItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderDateItems.php index 8b55639..779db70 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsDateItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderDateItems.php @@ -11,7 +11,7 @@ use Swaggest\JsonSchema\Structure\ClassStructure; -class LineItemsLineItemItemsDateItems extends ClassStructure +class WarehouseInventoryAdjustmentAdviceHeaderDateItems extends ClassStructure { /** @var string */ public $tradingPartnerId; diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderHeaderOrder.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderHeaderOrder.php similarity index 97% rename from src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderHeaderOrder.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderHeaderOrder.php index d99de24..38e0e36 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderHeaderOrder.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderHeaderOrder.php @@ -11,7 +11,7 @@ use Swaggest\JsonSchema\Structure\ClassStructure; -class HeaderHeaderOrder extends ClassStructure +class WarehouseInventoryAdjustmentAdviceHeaderHeaderOrder extends ClassStructure { /** @var string */ public $tradingPartnerId; diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsMiscellaneousItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderMiscellaneousItems.php similarity index 96% rename from src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsMiscellaneousItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderMiscellaneousItems.php index 6922177..7584ad8 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsMiscellaneousItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderMiscellaneousItems.php @@ -11,7 +11,7 @@ use Swaggest\JsonSchema\Structure\ClassStructure; -class LineItemsLineItemItemsMiscellaneousItems extends ClassStructure +class WarehouseInventoryAdjustmentAdviceHeaderMiscellaneousItems extends ClassStructure { /** @var string */ public $tradingPartnerId; diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderNotesItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderNotesItems.php similarity index 97% rename from src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderNotesItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderNotesItems.php index 0b551e3..5d9215d 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderNotesItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderNotesItems.php @@ -11,7 +11,7 @@ use Swaggest\JsonSchema\Structure\ClassStructure; -class HeaderNotesItems extends ClassStructure +class WarehouseInventoryAdjustmentAdviceHeaderNotesItems extends ClassStructure { /** @var string */ public $tradingPartnerId; diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItemsReferenceItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderReferenceItems.php similarity index 96% rename from src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItemsReferenceItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderReferenceItems.php index 8986319..08ddcf4 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItemsReferenceItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceHeaderReferenceItems.php @@ -11,7 +11,7 @@ use Swaggest\JsonSchema\Structure\ClassStructure; -class HeaderAddressItemsReferenceItems extends ClassStructure +class WarehouseInventoryAdjustmentAdviceHeaderReferenceItems extends ClassStructure { /** @var string */ public $tradingPartnerId; diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItems.php similarity index 77% rename from src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItems.php index 94403d3..7bdcdf4 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItems.php @@ -11,9 +11,9 @@ use Swaggest\JsonSchema\Structure\ClassStructure; -class LineItems extends ClassStructure +class WarehouseInventoryAdjustmentAdviceLineItems extends ClassStructure { - /** @var LineItemsLineItemItems[]|array */ + /** @var WarehouseInventoryAdjustmentAdviceLineItemsLineItemItems[]|array */ public $lineItem; /** @@ -23,7 +23,7 @@ class LineItems extends ClassStructure public static function setUpProperties($properties, Schema $ownerSchema) { $properties->lineItem = Schema::arr(); - $properties->lineItem->items = LineItemsLineItemItems::schema(); + $properties->lineItem->items = WarehouseInventoryAdjustmentAdviceLineItemsLineItemItems::schema(); $ownerSchema->addPropertyMapping('LineItem', self::names()->lineItem); $ownerSchema->type = Schema::OBJECT; $ownerSchema->required = array( diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItems.php similarity index 58% rename from src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItems.php index 7bb804f..eb27c5f 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItems.php @@ -11,21 +11,21 @@ use Swaggest\JsonSchema\Structure\ClassStructure; -class LineItemsLineItemItems extends ClassStructure +class WarehouseInventoryAdjustmentAdviceLineItemsLineItemItems extends ClassStructure { - /** @var LineItemsLineItemItemsItemDetail */ + /** @var WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsItemDetail */ public $itemDetail; - /** @var LineItemsLineItemItemsReferenceItems[]|array */ + /** @var WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsReferenceItems[]|array */ public $reference; - /** @var LineItemsLineItemItemsDateItems[]|array */ + /** @var WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsDateItems[]|array */ public $date; - /** @var LineItemsLineItemItemsAddressItems[]|array */ + /** @var WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItems[]|array */ public $address; - /** @var LineItemsLineItemItemsMiscellaneousItems[]|array */ + /** @var WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsMiscellaneousItems[]|array */ public $miscellaneous; /** @@ -34,22 +34,22 @@ class LineItemsLineItemItems extends ClassStructure */ public static function setUpProperties($properties, Schema $ownerSchema) { - $properties->itemDetail = LineItemsLineItemItemsItemDetail::schema(); + $properties->itemDetail = WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsItemDetail::schema(); $ownerSchema->addPropertyMapping('ItemDetail', self::names()->itemDetail); $properties->reference = Schema::arr(); - $properties->reference->items = LineItemsLineItemItemsReferenceItems::schema(); + $properties->reference->items = WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsReferenceItems::schema(); $properties->reference->maxItems = 10; $ownerSchema->addPropertyMapping('Reference', self::names()->reference); $properties->date = Schema::arr(); - $properties->date->items = LineItemsLineItemItemsDateItems::schema(); + $properties->date->items = WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsDateItems::schema(); $properties->date->maxItems = 10; $ownerSchema->addPropertyMapping('Date', self::names()->date); $properties->address = Schema::arr(); - $properties->address->items = LineItemsLineItemItemsAddressItems::schema(); + $properties->address->items = WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItems::schema(); $properties->address->maxItems = 50; $ownerSchema->addPropertyMapping('Address', self::names()->address); $properties->miscellaneous = Schema::arr(); - $properties->miscellaneous->items = LineItemsLineItemItemsMiscellaneousItems::schema(); + $properties->miscellaneous->items = WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsMiscellaneousItems::schema(); $properties->miscellaneous->maxItems = 20; $ownerSchema->addPropertyMapping('Miscellaneous', self::names()->miscellaneous); $ownerSchema->type = Schema::OBJECT; diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItems.php similarity index 85% rename from src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItems.php index a74b8f1..8046d73 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItems.php @@ -11,7 +11,7 @@ use Swaggest\JsonSchema\Structure\ClassStructure; -class LineItemsLineItemItemsAddressItems extends ClassStructure +class WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItems extends ClassStructure { /** @var string */ public $tradingPartnerId; @@ -91,16 +91,16 @@ class LineItemsLineItemItemsAddressItems extends ClassStructure /** @var string */ public $addressAlternateName2; - /** @var LineItemsLineItemItemsAddressItemsReferenceIdentificationsItems[]|array */ + /** @var WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferenceIdentificationsItems[]|array */ public $referenceIdentifications; - /** @var LineItemsLineItemItemsAddressItemsReferenceItems[]|array */ + /** @var WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferenceItems[]|array */ public $reference; - /** @var LineItemsLineItemItemsAddressItemsContactItems[]|array */ + /** @var WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsContactItems[]|array */ public $contact; - /** @var LineItemsLineItemItemsAddressItemsDateItems[]|array */ + /** @var WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsDateItems[]|array */ public $date; /** @@ -164,16 +164,16 @@ public static function setUpProperties($properties, Schema $ownerSchema) $properties->addressAlternateName2 = Schema::string(); $ownerSchema->addPropertyMapping('AddressAlternateName2', self::names()->addressAlternateName2); $properties->referenceIdentifications = Schema::arr(); - $properties->referenceIdentifications->items = LineItemsLineItemItemsAddressItemsReferenceIdentificationsItems::schema(); + $properties->referenceIdentifications->items = WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferenceIdentificationsItems::schema(); $ownerSchema->addPropertyMapping('ReferenceIdentifications', self::names()->referenceIdentifications); $properties->reference = Schema::arr(); - $properties->reference->items = LineItemsLineItemItemsAddressItemsReferenceItems::schema(); + $properties->reference->items = WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferenceItems::schema(); $ownerSchema->addPropertyMapping('Reference', self::names()->reference); $properties->contact = Schema::arr(); - $properties->contact->items = LineItemsLineItemItemsAddressItemsContactItems::schema(); + $properties->contact->items = WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsContactItems::schema(); $ownerSchema->addPropertyMapping('Contact', self::names()->contact); $properties->date = Schema::arr(); - $properties->date->items = LineItemsLineItemItemsAddressItemsDateItems::schema(); + $properties->date->items = WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsDateItems::schema(); $ownerSchema->addPropertyMapping('Date', self::names()->date); $ownerSchema->type = Schema::OBJECT; $ownerSchema->required = array( diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItemsContactItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsContactItems.php similarity index 96% rename from src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItemsContactItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsContactItems.php index 12c5512..7784a0b 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItemsContactItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsContactItems.php @@ -11,7 +11,7 @@ use Swaggest\JsonSchema\Structure\ClassStructure; -class LineItemsLineItemItemsAddressItemsContactItems extends ClassStructure +class WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsContactItems extends ClassStructure { /** @var string */ public $tradingPartnerId; diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItemsDateItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsDateItems.php similarity index 96% rename from src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItemsDateItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsDateItems.php index b67a72c..9e03fbc 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderAddressItemsDateItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsDateItems.php @@ -11,7 +11,7 @@ use Swaggest\JsonSchema\Structure\ClassStructure; -class HeaderAddressItemsDateItems extends ClassStructure +class WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsDateItems extends ClassStructure { /** @var string */ public $tradingPartnerId; diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItemsReferenceIdentificationsItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferenceIdentificationsItems.php similarity index 96% rename from src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItemsReferenceIdentificationsItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferenceIdentificationsItems.php index 41121c0..398dc7a 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItemsReferenceIdentificationsItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferenceIdentificationsItems.php @@ -11,7 +11,7 @@ use Swaggest\JsonSchema\Structure\ClassStructure; -class LineItemsLineItemItemsAddressItemsReferenceIdentificationsItems extends ClassStructure +class WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferenceIdentificationsItems extends ClassStructure { /** @var string */ public $tradingPartnerId; diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsReferenceItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferenceItems.php similarity index 95% rename from src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsReferenceItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferenceItems.php index 8b54903..dd8eac3 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsReferenceItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferenceItems.php @@ -11,7 +11,7 @@ use Swaggest\JsonSchema\Structure\ClassStructure; -class LineItemsLineItemItemsReferenceItems extends ClassStructure +class WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsAddressItemsReferenceItems extends ClassStructure { /** @var string */ public $tradingPartnerId; diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItemsDateItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsDateItems.php similarity index 96% rename from src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItemsDateItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsDateItems.php index 1bdb7c8..e523b9c 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsAddressItemsDateItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsDateItems.php @@ -11,7 +11,7 @@ use Swaggest\JsonSchema\Structure\ClassStructure; -class LineItemsLineItemItemsAddressItemsDateItems extends ClassStructure +class WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsDateItems extends ClassStructure { /** @var string */ public $tradingPartnerId; diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsItemDetail.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsItemDetail.php similarity index 99% rename from src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsItemDetail.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsItemDetail.php index 7a38e17..ca63cf0 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/LineItemsLineItemItemsItemDetail.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsItemDetail.php @@ -11,7 +11,7 @@ use Swaggest\JsonSchema\Structure\ClassStructure; -class LineItemsLineItemItemsItemDetail extends ClassStructure +class WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsItemDetail extends ClassStructure { const CONST_03 = '03'; diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderMiscellaneousItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsMiscellaneousItems.php similarity index 95% rename from src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderMiscellaneousItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsMiscellaneousItems.php index 96f6817..cd3067e 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderMiscellaneousItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsMiscellaneousItems.php @@ -11,7 +11,7 @@ use Swaggest\JsonSchema\Structure\ClassStructure; -class HeaderMiscellaneousItems extends ClassStructure +class WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsMiscellaneousItems extends ClassStructure { /** @var string */ public $tradingPartnerId; diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderReferenceItems.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsReferenceItems.php similarity index 95% rename from src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderReferenceItems.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsReferenceItems.php index e493ef4..a9adc8f 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/HeaderReferenceItems.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsReferenceItems.php @@ -11,7 +11,7 @@ use Swaggest\JsonSchema\Structure\ClassStructure; -class HeaderReferenceItems extends ClassStructure +class WarehouseInventoryAdjustmentAdviceLineItemsLineItemItemsReferenceItems extends ClassStructure { /** @var string */ public $tradingPartnerId; diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/Meta.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceMeta.php similarity index 98% rename from src/RSX/v710/WarehouseInventoryAdjustmentAdvices/Meta.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceMeta.php index d534fe9..5006c2d 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/Meta.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceMeta.php @@ -11,7 +11,7 @@ use Swaggest\JsonSchema\Structure\ClassStructure; -class Meta extends ClassStructure +class WarehouseInventoryAdjustmentAdviceMeta extends ClassStructure { /** @var string */ public $tradingPartnerId; diff --git a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/Summary.php b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceSummary.php similarity index 97% rename from src/RSX/v710/WarehouseInventoryAdjustmentAdvices/Summary.php rename to src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceSummary.php index f77f7ae..9aa2e37 100644 --- a/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/Summary.php +++ b/src/RSX/v710/WarehouseInventoryAdjustmentAdvices/WarehouseInventoryAdjustmentAdviceSummary.php @@ -11,7 +11,7 @@ use Swaggest\JsonSchema\Structure\ClassStructure; -class Summary extends ClassStructure +class WarehouseInventoryAdjustmentAdviceSummary extends ClassStructure { /** @var string */ public $tradingPartnerId; From 651c3c34973013ba4a6ddfc8f8eb6d1e7f106534 Mon Sep 17 00:00:00 2001 From: Colin Mollenhour Date: Tue, 31 Mar 2026 12:18:25 -0400 Subject: [PATCH 7/7] Add sample file for EDI 947 --- .../947_Sample.json | 185 ++++++++++++++++++ 1 file changed, 185 insertions(+) create mode 100755 sample-files/WarehouseInventoryAdjustmentAdvices(947)/947_Sample.json diff --git a/sample-files/WarehouseInventoryAdjustmentAdvices(947)/947_Sample.json b/sample-files/WarehouseInventoryAdjustmentAdvices(947)/947_Sample.json new file mode 100755 index 0000000..99b829e --- /dev/null +++ b/sample-files/WarehouseInventoryAdjustmentAdvices(947)/947_Sample.json @@ -0,0 +1,185 @@ +{ + "Header" : { + "HeaderOrder" : { + "TradingPartnerId" : "String", + "DocumentId" : "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "RecordType" : "", + "Date1" : "1967-08-13", + "AdjustmentNumber1" : "String", + "AdjustmentNumber2" : "String", + "TsetPurposeCode" : "00", + "PurchaseOrderNumber" : "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "TransactionTypeCode" : "CR", + "ActionCode" : "ST" + }, + "Reference" : [ { + "TradingPartnerId" : "", + "DocumentId" : "", + "RecordType" : "", + "ReferenceQual" : "08", + "ReferenceID" : "String", + "Description" : "String" + } ], + "Date" : [ { + "TradingPartnerId" : "", + "DocumentId" : "", + "RecordType" : "", + "DateTimeQualifier1" : "02", + "Date1" : "1967-08-13", + "Time1" : "14:20:00", + "TimeCode1" : "TC", + "DateTimeFormQualifier1" : "DT" + } ], + "Contact" : [ { + "TradingPartnerId" : "", + "DocumentId" : "", + "RecordType" : "", + "ContactTypeCode" : "IC", + "ContactName" : "String", + "ContactPhone" : "String", + "ContactFax" : "String", + "ContactEmail" : "String", + "ContactReference" : "String" + } ], + "Address" : [ { + "TradingPartnerId" : "", + "DocumentId" : "", + "RecordType" : "", + "AddressTypeCode" : "BT", + "LocationCodeQualifier" : "1", + "AddressLocationNumber" : "String", + "AddressName" : "String", + "AddressAlternateName" : "String", + "Address1" : "String", + "Address2" : "String", + "Address3" : "String", + "Address4" : "String", + "City" : "String", + "State" : "MN", + "PostalCode" : "String", + "Country" : "US", + "ContactName" : "String", + "ContactPhone" : "String", + "ContactFax" : "String", + "ContactEmail" : "String", + "AddressTaxIdNumber" : "String", + "AddressTaxExemptNumber" : "String", + "AddressAlternateName2" : "String" + } ], + "Notes" : [ { + "TradingPartnerId" : "", + "DocumentId" : "", + "RecordType" : "", + "NoteInformationField" : "String" + } ], + "Miscellaneous" : [ { + "TradingPartnerId" : "", + "DocumentId" : "", + "RecordType" : "", + "Qualifier1" : "QU", + "Description1" : "String", + "Qualifier2" : "QU", + "Description2" : "String" + } ] + }, + "LineItems" : { + "LineItem" : [ { + "ItemDetail" : { + "TradingPartnerId" : "", + "DocumentId" : "", + "RecordType" : "", + "LineSequenceNumber" : "String", + "BuyerPartNumber" : "String", + "VendorPartNumber" : "String", + "ConsumerPackageCode" : "String", + "GTIN" : "String", + "UPCCaseCode" : "String", + "NatlDrugCode" : "String", + "PartNumberQualifier1" : "MF", + "PartNumber1" : "String", + "PartNumberQualifier2" : "MF", + "PartNumber2" : "String", + "PartNumberQualifier3" : "MF", + "PartNumber3" : "String", + "PartNumberQualifier4" : "MF", + "PartNumber4" : "String", + "PartDescription1" : "String", + "PartDescription2" : "String", + "AdjReasonCode" : "AA", + "QtyAdjusted" : 0.0, + "QtyAdjustedUOM" : "DZ", + "WarehouseLotID" : "String", + "Weight1" : 0.0, + "WeightQualifier1" : "G", + "WeightUOM1" : "LB", + "Weight2" : 0.0, + "WeightQualifier2" : "G", + "WeightUOM2" : "LB", + "InventoryTransaction" : "AD", + "ExtendedItemTotal" : 0.0 + }, + "Reference" : [ { + "TradingPartnerId" : "", + "DocumentId" : "", + "RecordType" : "", + "ReferenceQual" : "2I", + "ReferenceID" : "String", + "Description" : "String" + } ], + "Date" : [ { + "TradingPartnerId" : "", + "DocumentId" : "", + "RecordType" : "", + "DateTimeQualifier1" : "02", + "Date1" : "1967-08-13", + "Time1" : "14:20:00", + "TimeCode1" : "TC", + "DateTimeFormQualifier1" : "DT" + } ], + "Address" : [ { + "TradingPartnerId" : "", + "DocumentId" : "", + "RecordType" : "", + "AddressTypeCode" : "TB", + "LocationCodeQualifier" : "9", + "AddressLocationNumber" : "String", + "AddressName" : "String", + "AddressAlternateName" : "String", + "Address1" : "String", + "Address2" : "String", + "Address3" : "String", + "Address4" : "String", + "City" : "String", + "State" : "MN", + "PostalCode" : "String", + "Country" : "US", + "ContactName" : "String", + "ContactPhone" : "String", + "ContactFax" : "String", + "ContactEmail" : "String", + "AddressTaxIdNumber" : "String", + "AddressTaxExemptNumber" : "String", + "AddressAlternateName2" : "String" + } ], + "Miscellaneous" : [ { + "TradingPartnerId" : "", + "DocumentId" : "", + "RecordType" : "", + "Qualifier1" : "QU", + "Description1" : "String", + "Qualifier2" : "QU", + "Description2" : "String" + } ] + } ] + }, + "Summary" : { + "TradingPartnerId" : "", + "DocumentId" : "", + "RecordType" : "", + "TotalOrders" : 0.0, + "TotalWeight" : 0.0, + "WeightUOM" : "LB", + "TotalVolume" : 0.0, + "VolumeUOM" : "LT" + } +}