diff options
Diffstat (limited to 'tests/fixtures')
25 files changed, 314 insertions, 0 deletions
diff --git a/tests/fixtures/acknowledge_communication.json b/tests/fixtures/acknowledge_communication.json new file mode 100644 index 0000000..5fd7b9b --- /dev/null +++ b/tests/fixtures/acknowledge_communication.json @@ -0,0 +1,5 @@ +{ + "acknowledgement": [ + {"articleID": "SN34", "acknowledgeType": "READ"} + ] +} diff --git a/tests/fixtures/create_app_order.json b/tests/fixtures/create_app_order.json new file mode 100644 index 0000000..1d1bba8 --- /dev/null +++ b/tests/fixtures/create_app_order.json @@ -0,0 +1,18 @@ +{ + "shipTo": "672592", + "addressLine1": "1277 Jolly Avenue", + "country": "FI", + "zipCode": "00180", + "city": "Sunnyvale", + "state": "ZZ", + "firstName": "Test", + "lastName": "Apple", + "primaryPhone": "2086785671", + "emailAddress": "Test@Apple.com", + "productNumber": "8961", + "purchaseOrder": "Order8961", + "requestPart": { + "serialNumber": "" + }, + "pocLanguage": "FIN" +} diff --git a/tests/fixtures/create_carryin_repair.json b/tests/fixtures/create_carryin_repair.json new file mode 100644 index 0000000..059ad93 --- /dev/null +++ b/tests/fixtures/create_carryin_repair.json @@ -0,0 +1,43 @@ +{ + "shipTo": "677592", + "serialNumber": "C3TFJJTNDCP9", + "symptom": "Does not work", + "diagnosis": "Does not work", + "unitReceivedDate": "03/01/13", + "unitReceivedTime": "12:00 AM", + "checkIfOutOfWarrantyCoverage": "Y", + "overrideDiagnosticCodeCheck": "Y", + "poNumber": "Order12341", + "orderLines": [ + { + "partNumber": "FD661-6136", + "comptiaCode": "T03", + "comptiaModifier": "B", + "abused": "Y", + "outOfWarrantyFlag": "N", + "diagnosticCode": "" + }, + { + "partNumber": "076-1080", + "comptiaCode": "660", + "comptiaModifier": "A", + "abused": "Y", + "outOfWarrantyFlag": "N", + "diagnosticCode": "" + } + ], + "customerAddress": { + "addressLine1": "Address line 1", + "country": "FI", + "zipCode": "95014", + "regionCode": "005", + "city": "Cupertino", + "state": "ZZ", + "street": "Valley Green Dr", + "firstName": "First", + "lastName": "Last", + "companyName": "Apple Inc", + "primaryPhone": "4088887766", + "emailAddress": "abc@test.com" + } +} diff --git a/tests/fixtures/create_cnd_repair.json b/tests/fixtures/create_cnd_repair.json new file mode 100644 index 0000000..c46d8c1 --- /dev/null +++ b/tests/fixtures/create_cnd_repair.json @@ -0,0 +1,21 @@ +{ + "shipTo": "677592", + "customerAddress": { + "addressLine1": "1277 Henderson Avenue", + "city": "Helsinki", + "country": "FI", + "firstName": "test", + "lastName": "Apple", + "primaryPhone": "2085673498", + "region": "004", + "state": "ZZ", + "zipCode": "00180", + "emailAddress": "test@Apple.com" + }, + "notes": "This is a test note", + "symptom": "This is atest symptom", + "serialNumber": "", + "unitReceivedDate": "10/01/12", + "unitReceivedTime": "12:00 AM", + "classification": "N01" +} diff --git a/tests/fixtures/create_escalation.json b/tests/fixtures/create_escalation.json new file mode 100644 index 0000000..3e1ac9c --- /dev/null +++ b/tests/fixtures/create_escalation.json @@ -0,0 +1,11 @@ +{ + "shipTo": "677592", + "issueTypeCode": "PUR", + "notes": "This is a test", + "escalationContext": { + "contextType": "", "contextID": "" + }, + "attachment": [ + {"fileName": "", "fileData": ""} + ] +} diff --git a/tests/fixtures/create_srf_order.json b/tests/fixtures/create_srf_order.json new file mode 100644 index 0000000..7a58344 --- /dev/null +++ b/tests/fixtures/create_srf_order.json @@ -0,0 +1,9 @@ +{ + "shipToCode": "677592", + "purchaseOrderNumber": "Order12345", + "serialNumber": "", + "reasonForOrder": "SR7", + "orderLines": [ + {"partNumber": "034-4498", "quantity": "1"} + ] +} diff --git a/tests/fixtures/create_stocking_order.json b/tests/fixtures/create_stocking_order.json new file mode 100644 index 0000000..1af23a4 --- /dev/null +++ b/tests/fixtures/create_stocking_order.json @@ -0,0 +1,8 @@ +{ + "purchaseOrderNumber": "Order7899", + "shipToCode": "677592", + "orderLines": [ + {"partNumber": "661-5097", "quantity": "1"}, + {"partNumber": "661-5098", "quantity": "2"} + ] +} diff --git a/tests/fixtures/create_whole_unit_exchange.json b/tests/fixtures/create_whole_unit_exchange.json new file mode 100644 index 0000000..b7e77e2 --- /dev/null +++ b/tests/fixtures/create_whole_unit_exchange.json @@ -0,0 +1,32 @@ +{ + "billTo": "", + "customerAddress": "", + "diagnosedByTechId": "", + "diagnosis": "", + "fileName": "", + "fileData": "", + "imeiNumber": "", + "requestReviewByApple": "", + "serialNumber": "", + "notes": "", + "orderLines": [ + { + "partNumber": "", + "comptiaCode": "", + "comptiaModifier": "", + "outOfWarrantyFlag": "", + "coveredByACPlus": "", + "diagnosticCode": "" + } + ], + "poNumber": "", + "popFaxed": "", + "referenceNumber": "", + "shipTo": "", + "shipBox": "", + "shipUnitToCustomer": "", + "symptom": "", + "unitReceivedDate": "", + "unitReceivedTime": "", + "notaFiscalNumber": "" +} diff --git a/tests/fixtures/fetch_communication_articles.json b/tests/fixtures/fetch_communication_articles.json new file mode 100644 index 0000000..d5a0674 --- /dev/null +++ b/tests/fixtures/fetch_communication_articles.json @@ -0,0 +1,7 @@ +{ + "priority": "HIGH", + "fromDate": "", + "toDate": "", + "readStatus": "", + "productModel": {} +} diff --git a/tests/fixtures/fetch_communication_content.json b/tests/fixtures/fetch_communication_content.json new file mode 100644 index 0000000..cb28cb2 --- /dev/null +++ b/tests/fixtures/fetch_communication_content.json @@ -0,0 +1,4 @@ +{ + "articleID": "SN234", + "languageCode": "en" +} diff --git a/tests/fixtures/fetch_ios_activation.json b/tests/fixtures/fetch_ios_activation.json new file mode 100644 index 0000000..4b73647 --- /dev/null +++ b/tests/fixtures/fetch_ios_activation.json @@ -0,0 +1,3 @@ +{ + "serialNumber": "88028ELHA4S" +} diff --git a/tests/fixtures/parts_lookup.json b/tests/fixtures/parts_lookup.json new file mode 100644 index 0000000..b271e16 --- /dev/null +++ b/tests/fixtures/parts_lookup.json @@ -0,0 +1,3 @@ +{ + "partNumber": "661-5732" +} diff --git a/tests/fixtures/parts_pending_return.json b/tests/fixtures/parts_pending_return.json new file mode 100644 index 0000000..91e8ad2 --- /dev/null +++ b/tests/fixtures/parts_pending_return.json @@ -0,0 +1,3 @@ +{ + "repairType": "CA" +} diff --git a/tests/fixtures/parts_register_return.json b/tests/fixtures/parts_register_return.json new file mode 100644 index 0000000..c8a49ae --- /dev/null +++ b/tests/fixtures/parts_register_return.json @@ -0,0 +1,15 @@ +{ + "shipToCode": "", + "carrierCode": "XYZ", + "trackingNumber": "XYZ", + "length": "1", + "width": "1", + "height": "1", + "notes": "test", + "estimatedTotalWeight": "1", + "bulkReturnOrder": { + "boxNumber": "", + "partNumber": "661-5465", + "returnOrderNumber": "7443056106" + } +} diff --git a/tests/fixtures/parts_return_update.json b/tests/fixtures/parts_return_update.json new file mode 100644 index 0000000..5cdefee --- /dev/null +++ b/tests/fixtures/parts_return_update.json @@ -0,0 +1,12 @@ +{ + "repairConfirmationNumber": "G135764009", + "notes": "", + "orderLines": [ + {"partNumber": "661-6529"}, + {"comptiaCode": "N01"}, + {"comptiaModifier": "A"}, + {"orderNumber": "11223344"}, + {"returnOrderNumber": ""}, + {"returnType": "1"} + ] +} diff --git a/tests/fixtures/pending_app_orders.json b/tests/fixtures/pending_app_orders.json new file mode 100644 index 0000000..ec49768 --- /dev/null +++ b/tests/fixtures/pending_app_orders.json @@ -0,0 +1,4 @@ +{ + "startDate": "01/01/12", + "endDate": "10/02/12" +} diff --git a/tests/fixtures/register_bulk_return.json b/tests/fixtures/register_bulk_return.json new file mode 100644 index 0000000..3b6bda8 --- /dev/null +++ b/tests/fixtures/register_bulk_return.json @@ -0,0 +1,13 @@ +{ + "shipToCode": "", + "carrierCode": "XUPSN", + "trackingNumber": "12341234", + "length": "10", + "width": "10", + "height": "10", + "estimatedTotalWeight": "20", + "notes": "", + "bulkReturnOrder": [ + {"returnOrderNumber": "7444640074", "partNumber": "661-6028", "boxNumber": "1"} + ] +} diff --git a/tests/fixtures/repair_lookup.json b/tests/fixtures/repair_lookup.json new file mode 100644 index 0000000..12f35a6 --- /dev/null +++ b/tests/fixtures/repair_lookup.json @@ -0,0 +1,19 @@ +{ + "repairConfirmationNumber": "", + "customerEmailAddress": "", + "customerFirstName": "", + "customerLastName": "", + "fromDate": "", + "toDate": "", + "incompleteRepair": "", + "pendingShipment": "", + "purchaseOrderNumber": "", + "repairNumber": "", + "repairStatus": "", + "repairType": "", + "serialNumber": "W874939YX92", + "shipToCode": "", + "technicianFirstName": "", + "technicianLastName": "", + "unreceivedModules": "" +} diff --git a/tests/fixtures/return_label.json b/tests/fixtures/return_label.json new file mode 100644 index 0000000..edebf48 --- /dev/null +++ b/tests/fixtures/return_label.json @@ -0,0 +1,4 @@ +{ + "returnOrderNumber": "7438971408", + "partNumber": "NF661-5769" +} diff --git a/tests/fixtures/return_report.json b/tests/fixtures/return_report.json new file mode 100644 index 0000000..a868dd3 --- /dev/null +++ b/tests/fixtures/return_report.json @@ -0,0 +1,4 @@ +{ + "shipTo": "", + "warrantyType": "IW" +} diff --git a/tests/fixtures/update_carryin_repair.json b/tests/fixtures/update_carryin_repair.json new file mode 100644 index 0000000..90ee39e --- /dev/null +++ b/tests/fixtures/update_carryin_repair.json @@ -0,0 +1,13 @@ +{ + "repairConfirmationNumber": "G135773004", + "statusCode": "BEGR", + "technicianId": "", + "notes": "", + "orderLines": [ + { + "partNumber": "661-5594", + "comptiaCode": "F1A", + "comptiaModifier": "B" + } + ] +} diff --git a/tests/fixtures/update_escalation.json b/tests/fixtures/update_escalation.json new file mode 100644 index 0000000..cd46995 --- /dev/null +++ b/tests/fixtures/update_escalation.json @@ -0,0 +1,8 @@ +{ + "escalationId": "1440972", + "notes": "This is an update", + "status": "C", + "attachment": [ + {"fileName": "", "fileData": ""} + ] +} diff --git a/tests/fixtures/update_serial_number.json b/tests/fixtures/update_serial_number.json new file mode 100644 index 0000000..789bdf6 --- /dev/null +++ b/tests/fixtures/update_serial_number.json @@ -0,0 +1,12 @@ +{ + "repairConfirmationNumber": "G135762375", + "partInfo": [ + { + "partNumber": "661-4964", + "oldSerialNumber": "W882300FK22YA", + "serialNumber": "W8829012R22XA", + "reasonCode": "", + "isPartDOA": "N" + } + ] +} diff --git a/tests/fixtures/warranty_status.json b/tests/fixtures/warranty_status.json new file mode 100644 index 0000000..9d02027 --- /dev/null +++ b/tests/fixtures/warranty_status.json @@ -0,0 +1,3 @@ +{ + "serialNumber": "" +} diff --git a/tests/fixtures/warranty_status.xml b/tests/fixtures/warranty_status.xml new file mode 100644 index 0000000..9712590 --- /dev/null +++ b/tests/fixtures/warranty_status.xml @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="UTF-8"?> +<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> + <S:Body> + <ns3:WarrantyStatusResponse xmlns:ns2="http://asp.core.endpoint.ws.gsx.ist.apple.com/" xmlns:ns3="http://gsxws.apple.com/elements/global" xmlns:ns4="http://gsxws.apple.com/elements/core/asp" xmlns:ns5="http://gsxws.apple.com/elements/core/asp/am" xmlns:ns6="http://gsxws.apple.com/elements/core"> + <WarrantyStatusResponse> + <operationId>5fdef1309390619199</operationId> + <warrantyDetailInfo> + <serialNumber>70033CDFA4S</serialNumber> + <warrantyStatus>Apple Limited Warranty</warrantyStatus> + <coverageEndDate>08/24/11</coverageEndDate> + <coverageStartDate>08/25/10</coverageStartDate> + <daysRemaining>0</daysRemaining> + <estimatedPurchaseDate>08/25/10</estimatedPurchaseDate> + <globalWarranty/> + <purchaseCountry>United States</purchaseCountry> + <registrationDate>08/25/10</registrationDate> + <imageURL>http://service.info.apple.com/parts/service_parts/products/iphone4.jpg</imageURL> + <explodedViewURL>http://service.info.apple.com/parts/service_parts/ev/iphone4.ev.pdf</explodedViewURL> + <manualURL>http://download.info.apple.com/Apple_Support_Area/Misc/Service/servicemanuals/</manualURL> + <productDescription>iPhone 4</productDescription> + <configDescription>IPHONE 4,16GB BLACK</configDescription> + <slaGroupDescription/> + <ecorathFlag/> + <powerTrainFlag/> + <triCareFlag/> + <contractCoverageEndDate/> + <contractCoverageStartDate/> + <contractType/> + <laborCovered>Y</laborCovered> + <limitedWarranty>Y</limitedWarranty> + <partCovered>Y</partCovered> + <warrantyReferenceNo/> + <isPersonalized/> + <acPlusFlag>Y</acPlusFlag> + </warrantyDetailInfo> + <communicationMessage/> + </WarrantyStatusResponse> + </ns3:WarrantyStatusResponse> + </S:Body> +</S:Envelope> |